import OAI.LieTheory.Semisimple.Integration import Mathlib.Geometry.Manifold.Algebra.LieGroup import Mathlib.Geometry.Manifold.Algebra.Structures import Mathlib.Geometry.Manifold.BumpFunction import Mathlib.Analysis.Complex.Circle import Mathlib.Topology.Algebra.ContinuousMonoidHom import Mathlib.MeasureTheory.Group.Integral import Mathlib.MeasureTheory.Measure.Haar.Basic /-! # Regularity -/ namespace OAI.LieTheory.Semisimple.Regularity.Constructions.CharacterTriviality noncomputable section /-! Automatic smoothness of circle-valued characters, by compact smoothing. -/ open Set Filter _root_.Metric _root_.MeasureTheory open scoped _root_.Manifold ContDiff _root_.Topology Pointwise variable {E G : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] [Group G] [TopologicalSpace G] [T2Space G] [SecondCountableTopology G] [ChartedSpace E G] [LieGroup (π“˜(ℝ, E)) ∞ G] [IsTopologicalGroup G] [MeasurableSpace G] [BorelSpace G] {ΞΌ : Measure G} [IsFiniteMeasureOnCompacts ΞΌ] [ΞΌ.IsOpenPosMeasure] omit [SecondCountableTopology G] [IsTopologicalGroup G] in theorem exists_bump_character_integral_ne_zero (Ο‡ : G β†’β‚œ* Circle) : βˆƒ b : SmoothBumpFunction (π“˜(ℝ, E)) (1 : G), (∫ y, (b y : β„‚) * (Ο‡ y : β„‚) βˆ‚ΞΌ) β‰  0 := by have hc : Continuous (fun y : G => (Ο‡ y : β„‚)) := continuous_subtype_val.comp Ο‡.continuous have hn : {y : G | 0 < (Ο‡ y : β„‚).re} ∈ 𝓝 1 := by apply (isOpen_lt continuous_const (Complex.continuous_re.comp hc)).mem_nhds simp obtain ⟨b, _, hb⟩ := (SmoothBumpFunction.nhds_basis_tsupport (I := π“˜(ℝ, E)) (1 : G)).mem_iff.mp hn refine ⟨b, ?_⟩ have hint : Integrable (fun y : G => (b y : β„‚) * (Ο‡ y : β„‚)) ΞΌ := ((Complex.continuous_ofReal.comp b.continuous).mul hc).integrable_of_hasCompactSupport ((b.hasCompactSupport.comp_left rfl).mul_right) have hpos : 0 < ∫ y, b y * (Ο‡ y : β„‚).re βˆ‚ΞΌ := by apply integral_pos_of_integrable_nonneg_nonzero (x := (1 : G)) (b.continuous.mul (Complex.continuous_re.comp hc)) Β· exact (b.continuous.mul (Complex.continuous_re.comp hc)).integrable_of_hasCompactSupport b.hasCompactSupport.mul_right Β· intro y by_cases hy : b y = 0 Β· simp [hy] Β· exact mul_nonneg b.nonneg (le_of_lt (hb (subset_tsupport b hy))) Β· simp have hreal : (∫ y, (b y : β„‚) * (Ο‡ y : β„‚) βˆ‚ΞΌ).re = ∫ y, b y * (Ο‡ y : β„‚).re βˆ‚ΞΌ := by have h := (Complex.reCLM.integral_comp_comm hint).symm simpa only [Complex.reCLM_apply, Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, zero_mul, sub_zero] using h intro hz rw [← hreal, hz, Complex.zero_re] at hpos exact (lt_irrefl 0) hpos variable [ΞΌ.IsMulLeftInvariant] omit [T2Space G] [SecondCountableTopology G] [IsFiniteMeasureOnCompacts ΞΌ] [ΞΌ.IsOpenPosMeasure] in theorem character_smoothing_identity (Ο‡ : G β†’β‚œ* Circle) (b : G β†’ ℝ) (x : G) : (∫ y, (Ο‡ y : β„‚) * (b (x⁻¹ * y) : β„‚) βˆ‚ΞΌ) = (Ο‡ x : β„‚) * ∫ y, (b y : β„‚) * (Ο‡ y : β„‚) βˆ‚ΞΌ := by rw [← integral_mul_left_eq_self (fun y => (Ο‡ y : β„‚) * (b (x⁻¹ * y) : β„‚)) x] simp only [inv_mul_cancel_left, map_mul, Circle.coe_mul] simp_rw [mul_assoc, mul_comm (Ο‡ _ : β„‚) (b _ : β„‚)] exact integral_const_mul _ _ include ΞΌ in theorem contMDiffAt_character_one (Ο‡ : G β†’β‚œ* Circle) : ContMDiffAt (π“˜(ℝ, E)) (π“˜(ℝ, β„‚)) ∞ (fun y => (Ο‡ y : β„‚)) (1 : G) := by obtain ⟨b, hb⟩ := exists_bump_character_integral_ne_zero (E := E) (ΞΌ := ΞΌ) Ο‡ let c : β„‚ := ∫ y, (b y : β„‚) * (Ο‡ y : β„‚) βˆ‚ΞΌ let e := extChartAt (π“˜(ℝ, E)) (1 : G) obtain ⟨r, hr, hball⟩ := nhds_basis_closedBall.mem_iff.mp ((isOpen_extChartAt_target (I := π“˜(ℝ, E)) (1 : G)).mem_nhds (mem_extChartAt_target 1)) let U := ball (e 1) r let L := e.symm '' closedBall (e 1) r have hL : IsCompact L := (isCompact_closedBall _ _).image_of_continuousOn ((continuousOn_extChartAt_symm (1 : G)).mono hball) let K := L * tsupport b have hK : IsCompact K := hL.mul b.hasCompactSupport let k : E Γ— G β†’ β„‚ := fun p => (b ((e.symm p.1)⁻¹ * p.2) : β„‚) have hk : ContMDiffOn ((π“˜(ℝ, E)).prod (π“˜(ℝ, E))) (π“˜(ℝ, β„‚)) ∞ k (U Γ—Λ’ univ) := by have he : ContMDiffOn (π“˜(ℝ, E)) (π“˜(ℝ, E)) ∞ e.symm U := (contMDiffOn_extChartAt_symm (I := π“˜(ℝ, E)) (n := ∞) (1 : G)).mono (fun _ hy => hball (ball_subset_closedBall hy)) have hm : ContMDiffOn ((π“˜(ℝ, E)).prod (π“˜(ℝ, E))) (π“˜(ℝ, E)) ∞ (fun p : E Γ— G => (e.symm p.1)⁻¹ * p.2) (U Γ—Λ’ univ) := ((he.comp contMDiffOn_fst (fun (p : E Γ— G) (hp : p ∈ U Γ—Λ’ univ) => hp.1)).inv.mul contMDiffOn_snd) exact Complex.ofRealCLM.contDiff.contMDiff.comp_contMDiffOn (b.contMDiff.comp_contMDiffOn hm) have hc : Continuous (fun y : G => (Ο‡ y : β„‚)) := continuous_subtype_val.comp Ο‡.continuous have hs := Integration.Constructions.CharacterTriviality.contDiffOn_weightedIntegral (ΞΌ := ΞΌ) (H := E) (k := k) isOpen_ball hK hk hc have heq (p : E) (hp : p ∈ U) : (∫ y in K, (Ο‡ y : β„‚) β€’ k (p, y) βˆ‚ΞΌ) = (Ο‡ (e.symm p) : β„‚) * c := by have hsupport : Function.support (fun y => (Ο‡ y : β„‚) β€’ k (p, y)) βŠ† K := by intro y hy have hby : b ((e.symm p)⁻¹ * y) β‰  0 := by intro hz apply hy simp [k, hz] exact ⟨e.symm p, ⟨p, ball_subset_closedBall hp, rfl⟩, (e.symm p)⁻¹ * y, subset_tsupport b hby, mul_inv_cancel_left _ _⟩ rw [setIntegral_eq_integral_of_forall_compl_eq_zero (fun y hy => by by_contra hy' exact hy (hsupport hy'))] exact character_smoothing_identity (ΞΌ := ΞΌ) Ο‡ b (e.symm p) have hsΟ‡ : ContDiffOn ℝ ∞ (fun p => (Ο‡ (e.symm p) : β„‚)) U := by apply (hs.mul (contDiffOn_const (c := c⁻¹))).congr intro p hp rw [heq p hp] exact (mul_inv_cancel_rightβ‚€ hb _).symm have hat := ((hsΟ‡ (e 1) (mem_ball_self hr)).contDiffAt (ball_mem_nhds _ hr)).contMDiffAt.comp (1 : G) (contMDiffAt_extChartAt (I := π“˜(ℝ, E)) (n := ∞)) apply hat.congr_of_eventuallyEq filter_upwards [extChartAt_source_mem_nhds (I := π“˜(ℝ, E)) (1 : G)] with y hy change (Ο‡ y : β„‚) = (Ο‡ (e.symm (e y)) : β„‚) rw [e.left_inv hy] include ΞΌ in theorem contMDiff_character (Ο‡ : G β†’β‚œ* Circle) : ContMDiff (π“˜(ℝ, E)) (π“˜(ℝ, β„‚)) ∞ (fun y => (Ο‡ y : β„‚)) := by intro x have h1 := contMDiffAt_character_one (E := E) (ΞΌ := ΞΌ) Ο‡ have hx : ContMDiffAt (π“˜(ℝ, E)) (π“˜(ℝ, β„‚)) ∞ (fun y : G => (Ο‡ (x⁻¹ * y) : β„‚)) x := by apply h1.comp_of_eq (contMDiffAt_const.mul contMDiffAt_id) exact inv_mul_cancel x have hmul := (((ContinuousLinearMap.mul ℝ β„‚) (Ο‡ x : β„‚)).contDiff (n := ∞)).contMDiff.contMDiffAt.comp x hx apply hmul.congr_of_eventuallyEq filter_upwards [] with y change (Ο‡ y : β„‚) = (Ο‡ x : β„‚) * (Ο‡ (x⁻¹ * y) : β„‚) simp only [map_mul, map_inv, Circle.coe_mul, Circle.coe_inv] exact (mul_inv_cancel_leftβ‚€ (Circle.coe_ne_zero _) _).symm end end OAI.LieTheory.Semisimple.Regularity.Constructions.CharacterTriviality