∃ (n : ℕ) (b : Module.Basis (Fin n) ℝE₀),
IsHomeomorph (orderedAxes (G:=G) b) ∧
(∀ a, orderedAxes (G:=G) b a ∈ Γ ↔∀ i, ∃z : ℤ, a i = z) ∧∀g : G, RawLinearBasis.Triangular b (RawLieAdjoint.adjoint (E₀:=E₀) g).toLinearMap
let : IsTopologicalGroupG:= topologicalGroup_of_lieGroup I₀∞let : IsTopologicalGroupQ:= topologicalGroup_of_lieGroup 𝓘(ℝ,F) ∞let : SimplyConnectedSpaceS:= central_range_simplyConnected_of_nilpotent hstop
obtain ⟨n,v,hv,hvΓ,htri⟩ := hQ
havehlog : ∀i : Fin n, ∃w : GroupLieAlgebraI₀G,
exp w ∈ Γ ∧ mfderiv I₀ 𝓘(ℝ,F) π 1 w = v i :=by
intro i
havehei : exp (G:=Q) (v i) ∈ Γ.map π :=by
erw [exp,← orderedAxes_single v i 1]
apply (hvΓ _).mpr
intro j
by_cases h : j = i
· subst j; exact ⟨1,by simp⟩
· exact ⟨0,by simp [Pi.single_eq_of_ne h]⟩
obtain ⟨γ,hγΓ,hγ⟩ := hei
obtain ⟨w,hw⟩ := (exponential_of_nilpotent (E₀:=E₀) hstop).2 γ
refine ⟨w,hw ▸ hγΓ,?_⟩
apply exp_injective_of_nilpotent hstopQ
exact (curve_map π (hπ.mdifferentiable (by simp)) w 1).symm.trans
((congrArg π hw).trans hγ)
choose w hwΓ hw using hlog
let qh := hv.homeomorph (orderedAxes (G:=Q) v)
havehproj : ∀ a, π (orderedAxes (G:=G) w a) = orderedAxes (G:=Q) v a :=by
intro a
erw [orderedAxes_map π (hπ.mdifferentiable (by simp))]
congr 1
exact funext hw
letsectionFn : Q→G:= orderedAxes (G:=G) w ∘ qh.symm
havehs : Continuous sectionFn := (orderedAxes_contMDiff w).continuous.comp qh.symm.continuous
havehsec : ∀ q, π (sectionFn q) = q :=by
intro q
exact (hproj (qh.symm q)).trans (qh.apply_symm_apply q)
obtain ⟨k,b,hb⟩ := exists_central_lattice_basis (E₀:=E₀) hstop Γ
letu : Fin k →GroupLieAlgebraI₀G:=fun i => (b i).val
letHC : (Fin k →ℝ) ≃ₜ S:=
b.equivFun.toContinuousLinearEquiv.symm.toHomeomorph.trans (centralHomeomorph (G:=G))
havehHC : ∀ a, (HCa : G) = orderedAxes (G:=G) u a :=fun a => centralAxes_basis b a
have huΓ : ∀ a, orderedAxes (G:=G) u a ∈ Γ ↔∀ i, ∃z : ℤ, a i = z :=by
intro a
rw [← centralAxes_basis b a,hb]
simp only [LinearEquiv.apply_symm_apply]
letHK : (Fin k →ℝ) ≃ₜ π.ker :=HC.trans (Homeomorph.setCongr (congrArg SetLike.coe hker))
havehHK : ∀ a, (HKa : G) = orderedAxes (G:=G) u a := hHC
letT:=RawGroupSection.trivialization π hπ.continuous sectionFn hs hsec
letH:= (qh.prodCongr HK).trans ThavehH : ∀ a z, H (a,z) = orderedAxes (G:=G) w a * orderedAxes (G:=G) u z :=by
intro a z
change sectionFn (qh a) * (HKz : G) = _
change orderedAxes w (qh.symm (qh a)) * (HKz : G) = _
rw [qh.symm_apply_apply,hHK]
letP:= (RawGroupSection.finAppendHomeomorph n k).symm.trans HhavehP : (P : (Fin (n+k) →ℝ) →G) = orderedAxes (G:=G) (Fin.append w u) :=by
funext a
change H (a ∘Fin.castAdd _,a ∘Fin.natAdd n) = _
rw [hH,← orderedAxes_append]
simp only [Function.comp_def,Fin.append_castAdd_natAdd]
havehtemp : IsHomeomorph (orderedAxes (G:=G) (Fin.append w u)) ∧∀ a, orderedAxes (G:=G) (Fin.append w u) a ∈ Γ ↔∀ i, ∃z : ℤ, a i = z :=by
refine ⟨hP ▸ P.isHomeomorph,?_⟩
intro a
let x := a ∘Fin.castAdd k
let z := a ∘Fin.natAdd n
haveha : a = Fin.append x z :=Fin.append_castAdd_natAdd.symm
rw [ha,orderedAxes_append]
havehm : orderedAxes w x * orderedAxes u z ∈ Γ ↔
(∀ i, ∃q : ℤ, x i = q) ∧∀ i, ∃q : ℤ, z i = q :=by
constructor
· intro h
havehq : orderedAxes (G:=Q) v x ∈ Γ.map π :=byhavehe : π (orderedAxes (G:=G) u z) = 1:=by
rw [← hHK]; exact (HK z).property
simpa only [map_mul,hproj,he,mul_one] usingSubgroup.mem_map_of_mem π h
have hx := (hvΓ x).mp hq
havehz : orderedAxes (G:=G) u z ∈ Γ :=by
exact (Γ.mul_mem_cancel_left (orderedAxes_int_mem Γ w hwΓ x hx)).mp h
exact ⟨hx,(huΓ z).mp hz⟩
· rintro ⟨hx,hz⟩
exact Γ.mul_mem (orderedAxes_int_mem Γ w hwΓ x hx) ((huΓ z).mpr hz)
rw [hm]
constructor
· rintro ⟨hx,hz⟩ i
refine Fin.addCases (fun j => ?_) (fun j => ?_) i
· simpa only [Fin.append_left] using hx j
· simpa only [Fin.append_right] using hz j
· intro h
exact ⟨fun i =>by simpa only [Fin.append_left] using h (Fin.castAdd k i),
fun i =>by simpa only [Fin.append_right] using h (Fin.natAdd n i)⟩
letD : E₀→L[ℝ] F:= mfderiv I₀ 𝓘(ℝ,F) π 1havehDK : D.ker = C:= tangent_projection_kernel hstop hstopQ π hπ hker
obtain ⟨bb,hbb⟩ :=RawLinearBasis.basis_append_lifts CD.toLinearMap hDK hDsurj v b w hw
refine ⟨n+k,bb,?_,?_,?_⟩
· rw [hbb]
exact htemp.1
· rw [hbb]
exact htemp.2
· intro g
apply RawLinearBasis.triangular_append CD.toLinearMap hDK v b w hw bb hbb
(RawLieAdjoint.adjoint (E₀:=E₀) g).toLinearMap
(RawLieAdjoint.adjoint (E₀:=F) (π g)).toLinearMap
· exact adjoint_tangent_projection hstopQ π hπ g
· exact adjoint_central g
· exact htri (π g)