import OAI.GroupTheory.PolycyclicRecognition.Geometry.ExponentialProduct import OAI.GroupTheory.PolycyclicRecognition.Algebra.ContinuousOneParameter import OAI.GroupTheory.PolycyclicRecognition.Geometry.LocalParameterSmoothness namespace OAI /-! # Automatic smoothness of continuous homomorphisms into algebra units Products of one-parameter subgroups supply coordinates of the second kind. The integral argument for continuous algebra-valued one-parameter groups then proves smoothness in those coordinates. -/ noncomputable section namespace PolycyclicRecognition open Function open scoped Manifold ContDiff variable {E G A : Type*} [NormedAddCommGroup E] [NormedSpace โ„ E] [TopologicalSpace G] [ChartedSpace E G] [Group G] [LieGroup (๐“˜(โ„, E)) โŠค G] [NormedRing A] [NormedAlgebra โ„ A] [CompleteSpace A] theorem contDiff_comp_exponentialProduct {Exp : GroupLieAlgebra (๐“˜(โ„, E)) G โ†’ G} (hExp : IsGroupExponential Exp) (ฯ : G โ†’* Aหฃ) (hฯ : Continuous (fun g => (ฯ g : A))) {n : โ„•} (v : Fin n โ†’ E) : ContDiff โ„ โˆž (fun x => (ฯ (exponentialProduct Exp v x) : A)) := by induction n with | zero => simpa only [exponentialProduct, map_one, Units.val_one] using (contDiff_const : ContDiff โ„ โˆž (fun _ : Fin 0 โ†’ โ„ => (1 : A))) | succ n ih => have hc : ContDiff โ„ โˆž (fun t : โ„ => (ฯ (Exp (t โ€ข v 0)) : A)) := by apply contDiff_continuous_oneParameter ยท exact hฯ.comp (hExp.contMDiff_curve (v 0)).continuous ยท rw [zero_smul] have hz : Exp (0 : E) = 1 := hExp.map_zero rw [hz, map_one, Units.val_one] ยท intro s t have heq : Exp ((s + t) โ€ข v 0) = Exp (s โ€ข v 0) * Exp (t โ€ข v 0) := hExp.map_add_smul (v 0) s t rw [heq, map_mul, Units.val_mul] have hh := hc.comp (ContinuousLinearMap.proj (0 : Fin (n + 1)) : (Fin (n + 1) โ†’ โ„) โ†’L[โ„] โ„).contDiff have ht := (ih (v โˆ˜ Fin.succ)).comp (coordinateTail n).contDiff have hp := hh.mul ht change ContDiff โ„ โˆž (fun x : Fin (n + 1) โ†’ โ„ => (ฯ (Exp (x 0 โ€ข v 0)) : A) * (ฯ (exponentialProduct Exp (v โˆ˜ Fin.succ) (x โˆ˜ Fin.succ)) : A)) at hp simpa only [exponentialProduct, map_mul, Units.val_mul] using hp theorem contMDiffAt_one_of_continuous_unitsHom [FiniteDimensional โ„ E] {Exp : GroupLieAlgebra (๐“˜(โ„, E)) G โ†’ G} (hExp : IsGroupExponential Exp) (ฯ : G โ†’* Aหฃ) (hฯ : Continuous (fun g => (ฯ g : A))) : ContMDiffAt (๐“˜(โ„, E)) (๐“˜(โ„, A)) โˆž (fun g => (ฯ g : A)) 1 := by let b := Module.finBasis โ„ E let d := b.equivFun.toContinuousLinearEquiv.symm have hcomb : tangentCombination b = d.toContinuousLinearMap := by ext x simp only [tangentCombination_apply] exact (b.equivFun_symm_apply x).symm have hd : HasMFDerivAt (๐“˜(โ„, Fin (Module.finrank โ„ E) โ†’ โ„)) (๐“˜(โ„, E)) (exponentialProduct Exp b) 0 d.toContinuousLinearMap := by apply (hExp.hasMFDerivAt_exponentialProduct_zero b).congr_mfderiv exact hcomb have hh := contMDiffAt_of_local_parameterization (f := fun g => (ฯ g : A)) (hExp.contMDiff_exponentialProduct b).contMDiffAt hd (contDiff_comp_exponentialProduct hExp ฯ hฯ b).contDiffAt simpa only [hExp.exponentialProduct_zero] using hh theorem contMDiff_of_continuous_unitsHom [FiniteDimensional โ„ E] {Exp : GroupLieAlgebra (๐“˜(โ„, E)) G โ†’ G} (hExp : IsGroupExponential Exp) (ฯ : G โ†’* Aหฃ) (hฯ : Continuous (fun g => (ฯ g : A))) : ContMDiff (๐“˜(โ„, E)) (๐“˜(โ„, A)) โˆž (fun g => (ฯ g : A)) := by have hbase := contMDiffAt_one_of_continuous_unitsHom hExp ฯ hฯ intro g have hl : ContMDiffAt (๐“˜(โ„, E)) (๐“˜(โ„, E)) โˆž (fun x : G => gโปยน * x) g := (contMDiff_mul_left (I := ๐“˜(โ„, E)) (a := gโปยน) : ContMDiff (๐“˜(โ„, E)) (๐“˜(โ„, E)) โˆž (fun x : G => gโปยน * x)).contMDiffAt have hm := hbase.comp_of_eq hl (inv_mul_cancel g) have hh := (ContinuousLinearMap.mul โ„ A (ฯ g : A)).contDiff.contMDiff.contMDiffAt.comp g hm have heq : (fun x => (ฯ g : A) * (ฯ (gโปยน * x) : A)) = fun x => (ฯ x : A) := by funext x rw [โ† Units.val_mul, โ† map_mul, mul_inv_cancel_left] change ContMDiffAt (๐“˜(โ„, E)) (๐“˜(โ„, A)) โˆž (fun x => (ฯ g : A) * (ฯ (gโปยน * x) : A)) g at hh rwa [heq] at hh end PolycyclicRecognition end end OAI