module import TauCeti.Algebra.Group.AddChar.Basic import Mathlib.Algebra.GroupWithZero.Torsion import Mathlib.CategoryTheory.Countable import Mathlib.MeasureTheory.Function.FactorsThrough import Mathlib.MeasureTheory.Group.IntegralConvolution import Mathlib.Topology.Separation.CompletelyRegular import TauCeti.Analysis.Matrix.IndefiniteUnitaryGroup import TauCeti.MeasureTheory.Integral.Pi import TauCeti.Topology.Algebra.Group.Units public import Lib.DiscreteSeries.Bruhat.FloorGroups public import Lib.General.Measure.QuadricDisintegration public import Lib.Adelic.QuotientMeasure.Basic import Lib.General.Measure.IntegralOperators /-! # Heisenberg elements, measures of the floors, hyperbolic bases and Plancherel at a place Algebra and measure theory on the unitary group `G` of the form `New.Shape.Form.splitGram T`, first over a ring with involution and a `τ` of trace one, then over a place `A` (`New.Floors.Place`), along its floors. The basis is `e_a`, a middle block, `e*_a` (`a < ϱ`). `V_l` is spanned by the basis vectors of floor at least `l`: for `l ≤ ϱ`, the middle block and the pairs with `l ≤ a`. `h` is the form. The frame `f_0, …, f_ϱ` (`New.Shape.besselFrame`) is `e_0, …, e_(ϱ-1)` followed by the last vector `z` of the middle block. In `New.Floors.FloorGroups`, the groups `floorGroup`, `unipotentBelow`, `floorUnipotent` and `partialUnitriangularGroup` are `G_l = U(V_l)`, `N_( exact ⟨s, by simp, 1, one_mem _, (mul_one s).symm⟩ | succ j ih => obtain ⟨γ, hγ, ν, hν, rfl⟩ := ih (by grind) have hν_succ : ν ∈ unipotentBelow (j + 1) := unipotentBelow_le_succ hν have hγ_unitri : γ ∈ partialUnitriangularGroup (j + 1) := (mul_mem_cancel_right (unipotentBelow_le_partialUnitriangularGroup hν)).1 hs obtain ⟨g, hg, n, hn, rfl⟩ := exists_floorGroup_mul_floorUnipotent ⟨hγ_unitri, hγ⟩ exact ⟨g, hg, n * ν, mul_mem hn.2 hν_succ, mul_assoc g n ν⟩ /-- Let `A` have a trace-one element and let the Gram matrix `T.splitGram` of the whole space be hermitian and invertible. Then an isometry s lies in the Bessel subgroup `besselS`, the subgroup generated by `besselU` and `besselH`, if and only if s = uh. Here u lies in `besselU`, the isometries that are block upper unitriangular for the levels with identity middle block, and h lies in `besselH`, the isometries fixing every basis vector of floor at most ϱ (the `e_a`, the `e*_a` and `z`). -/ lemma _root_.New.mem_besselS : s ∈ besselS ↔ ∃ u ∈ besselU, ∃ h ∈ besselH, s = u * h := by constructor · -- `s = h * ν = (h * ν * h⁻¹) * h`, and `h` normalises `unipotentBelow` intro hs obtain ⟨h, hh, ν, hν, rfl⟩ := exists_floorGroup_mul_unipotentBelow hs exact ⟨h * ν * h⁻¹, unipotentBelow_le_besselU (conj_mem_unipotentBelow hh hν), h, hh, by simp⟩ · rintro ⟨u, hu, h, hh, rfl⟩ exact mul_mem (mem_partialUnitriangularGroup_of_mem_besselU hu) (mem_partialUnitriangularGroup_of_mem_floorGroup hh) /-- If the Gram matrix of the whole space is hermitian and invertible, then the Bessel subgroup `besselS` normalises `besselU0`, the group of the elements of `besselU` that fix the frame. -/ lemma besselS_le_normalizer_besselU0 : T.besselS ≤ Subgroup.normalizer T.besselU0 := by refine le_normalizer_iff.2 fun s hs u hu ↦ ?_ obtain ⟨hu, h_frame⟩ := mem_besselU0_iff.1 hu refine mem_besselU0_iff.2 ⟨(besselS_le_normalizer_besselU hs u).1 hu, ?_⟩ -- with `s⁻¹ = v * h`, the frame block ignores `h` and is multiplicative in `u` and `v` obtain ⟨v, hv, h, hh, hs_inv⟩ := mem_besselS.1 (inv_mem hs) calc frameMatrix (s * u * s⁻¹) = frameMatrix s * frameMatrix u * frameMatrix v := by rw [hs_inv, ← mul_assoc, frameMatrix_mul_besselH _ hh, frameMatrix_mul hv, frameMatrix_mul hu] _ = frameMatrix (s * s⁻¹) := by rw [h_frame, mul_one, hs_inv, ← mul_assoc, frameMatrix_mul_besselH _ hh, frameMatrix_mul hv] _ = 1 := by simpa using (mem_besselU0_iff.1 (one_mem T.besselU0)).2 /-- Induction along the groups N_( intro s hs have h_eq : s = 1 := eq_one_of_mem_floorGroup_inf ⟨floorGroup_zero.ge (mem_top s), hs⟩ (Or.inl le_rfl) rwa [h_eq] | succ j ih => intro s hs -- write `s = γ * ν` with `γ ∈ floorGroup j` and `ν ∈ unipotentBelow j`; then `γ = s * ν⁻¹` lies -- in `unipotentBelow (j + 1)` obtain ⟨γ, hγ, ν, hν, rfl⟩ := exists_floorGroup_mul_unipotentBelow (j := j) (unipotentBelow_le_partialUnitriangularGroup hs) have γ_mem : γ ∈ unipotentBelow (j + 1) := (mul_mem_cancel_right (unipotentBelow_le_succ hν)).1 hs exact h_step j γ ⟨hγ, γ_mem⟩ ν (ih ν hν) /-- Let `A` have a trace-one element τ and let `T.splitGram` be hermitian and invertible. For a < ϱ, every g in N_a = G_a ∩ N_( simp have h_col : frameMatrix (heisenbergElem (T := T) a p) b c = ((heisenbergElem (T := T) a p).val.val *ᵥ Pi.single (𝔰.besselFrame c) 1) (𝔰.besselFrame b) := by simp [frameMatrix, -heisenbergElem_mulVec] rw [h_col, heisenbergElem_mulVec, h_dual, ← besselFrame_castSucc] simp [vecMulVec_apply, Pi.single_apply, Matrix.one_apply, besselFrame_injective.eq_iff, sub_eq_add_neg, -besselFrame_castSucc] /-- Let s be in G_{a+1}, so that s fixes the basis vectors of floor below a + 1. Let v be a vector of the floors at least a + 1, extended by zero, let β be skew, and let ν(v, β) = `heisenbergElem a (v, β)` be the Eichler transformation e*_a ↦ e*_a + v + (β − τh(v,v))e_a. Then the sum of the entries just above the diagonal of the block of sν(v, β)s⁻¹ on the frame (f_0, …, f_ϱ) = (e_0, …, e_(ϱ-1), z) equals −h(v, s⁻¹f_{a+1}), where s⁻¹f_{a+1} is `orbitPoint a.succ s`. -/ lemma simpleRootSum_conj_heisenbergElem (hs : s ∈ floorGroup (a + 1)) : simpleRootSum (s * heisenbergElem a p * s⁻¹) = -(star (inclMatrix A (↑) *ᵥ p.1) ⬝ᵥ T.splitGram *ᵥ orbitPoint a.succ s) := by -- conjugation by `s` applies `s` to the vector of the Heisenberg element rw [mul_heisenbergElem hs, mul_inv_cancel_right, ← form_mulVec_mulVec s, ← inclMatrix_mulVec_floor_block a.isLt hs, orbitPoint_eq_iff.1 rfl] -- the entries at the simple roots are read off the matrix on the frame change ∑ b : Fin 𝔰.ϱ, frameMatrix (heisenbergElem (T := T) a _) b.castSucc b.succ = _ simp [frameMatrix_heisenbergElem, vecMulVec_apply, Pi.single_apply, (Fin.castSucc_lt_succ ..).ne] end FloorGroups /-- The Heisenberg element `heisenbergElem a p` of floor `a` is a continuous function of its parameter `p`, a pair of a vector and a skew element. -/ @[fun_prop] lemma continuous_heisenbergElem [TopologicalSpace A] [IsTopologicalRing A] [ContinuousStar A] [T2Space A] [TraceOne A] {T : 𝔰.Form A} [H : IsHermitianUnit T.splitGram] {a : Fin 𝔰.ϱ} : Continuous (heisenbergElem (T := T) a) := by refine (Matrix.unitaryGroupOf.isClosedEmbedding_val H.isUnit).continuous_iff.2 ?_ simp only [↓comp_def, heisenbergElem, eichlerMap, star_neg, mulVec_mulVec, Pi.star_single, star_one, single_vecMul, one_smul, val_of_coe] fun_prop variable [TopologicalSpace A] [MeasureSpace A] [P : Place A] (ι : Type) [Fintype ι] [DecidableEq ι] (T : 𝔰.Form A) (m : ℕ) {n k Z : Type} [Fintype n] [Fintype k] [DecidableEq k] /-! ### The Haar measure of `V_l` -/ /-- Haar measure of `V_l`, as a measure on all vectors: the image of the volume on the coordinates of floor at least `l` under extension by zero. -/ abbrev FloorGroups.floorVolume (l : ℕ) : Measure (𝔰.BesselIndex → A) := Measure.map (fun v ↦ inclMatrix A (Subtype.val : {i // l ≤ floorOf i} → 𝔰.BesselIndex) *ᵥ v) volume /-! ### Hyperbolic bases, Weyl elements and changes of coordinates -/ /-- A basis of the middle space `V_ϱ`, which has Gram matrix `T` and rank `𝔰.k + 1`: a first hyperbolic pair, `m` more pairs and an orthonormal part indexed by `ι`. So there are `card ι + 2 * m + 2` basis vectors, and the field `card_eq` equates the two counts. As the modulus of `det T` is 1, the change of coordinates preserves volume (`New.Floors.HyperbolicBasis.measurePreserving_mulVec`). -/ structure HyperbolicBasis where /-- The matrix whose columns are the basis vectors. -/ basisMatrix : Matrix 𝔰.MiddleIndex (Fin 2 ⊕ SplitIndex m ι) A /-- The Gram matrix of the basis for `T`: m + 1 hyperbolic planes and an orthonormal part. -/ gram_eq : basisMatrixᴴ * T * basisMatrix = planeSumGram (hyperbolicGram (Fin m) 1) /-- The number of basis vectors is the rank of V_ϱ. -/ card_eq : 𝔰.k + 1 = card ι + 2 * m + 2 /-- The modulus of the determinant of `T` is 1. -/ modulus_det : P.modulus T.det = 1 variable {ι T m} (F : HyperbolicBasis ι T m) (b : Fin 𝔰.n) [MeasurableSpace Z] {ζ : Measure Z} /-- The image of the measure md(c)^{d_l} dc on A under c ↦ w_l(c)⁻¹, where w_l(c) is the Weyl element of floor l and d_l = `𝔰.k` + 1 + 2(ϱ − (l + 1)), the subtraction being truncated. -/ abbrev Place.weylLaw (l : ℕ) : Measure T.G := (volume.withDensity fun c ↦ modulus c ^ (𝔰.k + 1 + 2 * (𝔰.ϱ - (l + 1)))).map fun c ↦ (floorWeyl l c)⁻¹ /-- Reindexing the coordinates along a bijection preserves the volume. -/ lemma measurePreserving_inclMatrix (g : n ≃ k) : MeasurePreserving (inclMatrix A g *ᵥ ·) := by have h_eq : (inclMatrix A g *ᵥ ·) = (MeasurableEquiv.piCongrLeft (fun _ : n ↦ A) g.symm).symm := by ext v i simp [inclMatrix, submatrix_mulVec_equiv, MeasurableEquiv.piCongrLeft] rw [h_eq] exact (measurePreserving_piCongrLeft _ g.symm).symm /-- If `f` enumerates the basis indices of `V_l` without repetition, then extension by zero along `f` carries the volume of `n → A` to the Haar measure of `V_l`. -/ lemma map_inclMatrix_eq_floorVolume (f : n → 𝔰.BesselIndex) (hf_inj : Injective f := by intro; simp) (hf_range : ∀ i : 𝔰.BesselIndex, i ∈ Set.range f ↔ l ≤ floorOf i := by simp) : volume.map (inclMatrix A f *ᵥ ·) = floorVolume l := by -- `f` factors through a bijection `e` onto the indices of `V_l`, which permutes the coordinates let e : n ≃ {i : 𝔰.BesselIndex // l ≤ floorOf i} := (Equiv.ofInjective f hf_inj).trans (.subtypeEquivRight hf_range) have h_incl : inclMatrix A (Subtype.val : {i : 𝔰.BesselIndex // l ≤ floorOf i} → 𝔰.BesselIndex) * inclMatrix A e = inclMatrix A f := mul_inclMatrix .. rw [floorVolume, ← (measurePreserving_inclMatrix e).map_eq] simp (disch := fun_prop) [Measure.map_map, comp_def, h_incl] /-- Extension by zero from the middle block carries the volume to the Haar measure of `V_ϱ`. -/ lemma map_inclMatrix_middle_eq_floorVolume : volume.map (inclMatrix A (inr ∘ inl : 𝔰.MiddleIndex → 𝔰.BesselIndex) *ᵥ ·) = floorVolume 𝔰.top := map_inclMatrix_eq_floorVolume _ (inr_injective.comp inl_injective) (by simp) /-- The indices of the hyperbolic pairs of `V_b` after the first: the `m` other pairs of `V_ϱ`, and the pairs `e_a`, `e*_a` with `b ≤ a`. -/ abbrev FloorPairs (m : ℕ) : Type := Fin m ⊕ {i : Fin 𝔰.ϱ // b.val ≤ i} /-- The basis of `V_b` made of the basis `F` of `V_ϱ` and the pairs `e_a`, `e*_a` with `b ≤ a`, as the columns of a matrix. It is the block matrix of `F.basisMatrix` and the identity on these pairs, with its rows placed among the basis indices and its columns reordered. The Gram matrix is computed in `New.Floors.HyperbolicBasis.gram_floorBasis`. -/ def HyperbolicBasis.floorBasis : Matrix 𝔰.BesselIndex (Fin 2 ⊕ FloorPairs b m ⊕ ι ⊕ FloorPairs b m) A := let S : Type := {i : Fin 𝔰.ϱ // b.val ≤ i} -- the basis indices of `V_b`: the middle block, then the `e_a` and the `e*_a` with `b ≤ a` let incl : 𝔰.MiddleIndex ⊕ S ⊕ S → 𝔰.BesselIndex := inr ∘ inl ⊕ᵥ Sum.map (↑) (inr ∘ (↑)) -- the new order: the first pair of `F.basisMatrix`; the first vectors of the other pairs; the -- orthonormal part; the second vectors of the other pairs let order : Fin 2 ⊕ FloorPairs b m ⊕ ι ⊕ FloorPairs b m → (Fin 2 ⊕ SplitIndex m ι) ⊕ S ⊕ S := inl ∘ inl ⊕ᵥ (Sum.map (inr ∘ inl) inl ⊕ᵥ (inl ∘ inr ∘ inr ∘ inl ⊕ᵥ Sum.map (inr ∘ inr ∘ inr) inr)) inclMatrix A incl * F.basisMatrix.fromBlocks 0 0 (diagonal (n := S ⊕ S) 1) * inclMatrix A order /-- The Gram matrix of `F.floorBasis b` consists of a hyperbolic plane for the first pair, one for each pair indexed by `FloorPairs b m`, and an orthonormal part indexed by `ι`. -/ lemma HyperbolicBasis.gram_floorBasis : (F.floorBasis b)ᴴ * T.splitGram * F.floorBasis b = planeSumGram (hyperbolicGram (FloorPairs b m) (1 : Matrix ι ι A)) := by -- on the basis vectors of `V_b` the form is `T` plus hyperbolic planes; `F.gram_eq` handles `T` let S : Type := {i : Fin 𝔰.ϱ // b.val ≤ i} let incl : 𝔰.MiddleIndex ⊕ S ⊕ S → 𝔰.BesselIndex := inr ∘ inl ⊕ᵥ Sum.map (↑) (inr ∘ (↑)) have block : T.splitGram.submatrix incl incl = T.fromBlocks 0 0 (fromBlocks 0 1 1 0) := by simp [incl, S, splitGram, ← ext_iff, Matrix.one_apply] rw [floorBasis, gram_mul, conjTranspose_inclMatrix_mul_mul_inclMatrix, gram_mul, conjTranspose_inclMatrix_mul_mul_inclMatrix, block] simp [F.gram_eq, fromBlocks_conjTranspose, fromBlocks_multiply, ← ext_iff, Matrix.one_apply] /-- A square change of coordinates preserves volume if the original form has determinant of modulus one and the Gram matrix of the new coordinates squares to one. -/ lemma Place.measurePreserving_mulVec_of_gram_sq [DecidableEq n] {B : Matrix n k A} {T : Matrix n n A} (h_card : card n = card k) (hT : P.modulus T.det = 1) (h_gram : (Bᴴ * T * B) ^ 2 = 1) : MeasurePreserving (B *ᵥ ·) := by let e : n ≃ k := equivOfCardEq h_card let M : Matrix n n A := B * inclMatrix A e have gram_sq : (Mᴴ * T * M) ^ 2 = 1 := by rw [gram_mul, conjTranspose_inclMatrix_mul_mul_inclMatrix, sq, submatrix_mul_equiv, ← sq, h_gram, submatrix_one_equiv] have h_left : Mᴴ * T * M * (Mᴴ * T) * M = 1 := by rw [Matrix.mul_assoc _ _ M, ← sq, gram_sq] have h_unit : IsUnit M.det := isUnit_det_of_left_inverse h_left -- Taking determinants, `modulus M.det ^ 4 = 1`, since `modulus T.det = 1`. have h_md : P.modulus M.det = 1 := by have h_det : P.modulus ((Mᴴ * T * M) ^ 2).det = 1 := by simp [gram_sq] simpa [hT, ← sq, toNNReal_eq_one_iff] using congrArg ENNReal.toNNReal h_det have h_vol : volume.map (M *ᵥ ·) = volume := by simp [P.map_mulVec_volume _ M h_unit, h_md] refine ⟨by fun_prop, ?_⟩ simpa (disch := fun_prop) [← (measurePreserving_inclMatrix e).map_eq, Measure.map_map, ↓ comp_def] using h_vol /-- Multiplication by `F.basisMatrix`, the matrix of the hyperbolic basis `F` of `V_ϱ`, preserves the volume of coordinate vectors. -/ lemma HyperbolicBasis.measurePreserving_mulVec : MeasurePreserving (F.basisMatrix *ᵥ ·) := by apply P.measurePreserving_mulVec_of_gram_sq (by simp +arith [F.card_eq]) F.modulus_det simp [F.gram_eq, sq, fromBlocks_multiply, fromCols_mul_fromRows, fromCols_mul_fromBlocks, fromBlocks_mul_fromRows, ← ext_iff, Matrix.one_apply] /-- The basis `F.floorBasis b` carries the volume of its coordinates to the Haar measure of `V_b`. -/ lemma HyperbolicBasis.map_floorBasis_volume : volume.map (F.floorBasis b *ᵥ ·) = FloorGroups.floorVolume b := by let S : Type := {i : Fin 𝔰.ϱ // b.val ≤ i} let incl : 𝔰.MiddleIndex ⊕ S ⊕ S → 𝔰.BesselIndex := inr ∘ inl ⊕ᵥ Sum.map (↑) (inr ∘ (↑)) let order : Fin 2 ⊕ FloorPairs b m ⊕ ι ⊕ FloorPairs b m → (Fin 2 ⊕ SplitIndex m ι) ⊕ S ⊕ S := inl ∘ inl ⊕ᵥ (Sum.map (inr ∘ inl) inl ⊕ᵥ (inl ∘ inr ∘ inr ∘ inl ⊕ᵥ Sum.map (inr ∘ inr ∘ inr) inr)) have h_incl : volume.map (inclMatrix A incl *ᵥ ·) = FloorGroups.floorVolume b := map_inclMatrix_eq_floorVolume incl (by simp [incl, S, Injective]) (by simp [incl, S, b.is_le]) have h_order : Bijective order := by simp [order, S, Bijective, Injective, Surjective] simp only [floorBasis, diagonal_one', ← mulVec_mulVec, fromBlocks_mulVec, zero_mulVec, add_zero, one_mulVec, zero_add] -- The map permutes the coordinates, splits off those of the pairs `e_a`, `e*_a` with `b ≤ a`, -- applies `F.basisMatrix` to the others, and includes the result as `V_b`. Each step preserves -- volume. exact (MeasurePreserving.comp ⟨by fun_prop, h_incl⟩ (measurePreserving_sumElim.comp ((F.measurePreserving_mulVec.prod (.id _)).comp ((measurePreserving_sumPiEquivProdPi _).comp (measurePreserving_inclMatrix (.ofBijective order h_order)))))).map_eq variable {μ ν : Measure T.G} [SFinite μ] [SFinite ν] (σ : ℕ → Measure T.G) [∀ l, SFinite (σ l)] {i j : ℕ} {s : T.G} {S : Subgroup T.G} {f : T.G → ℝ≥0∞} /-- The measure `η_l` on the unitary group. For `l < ϱ` it is the image of the Haar measure of `V_(l+1)` times the skew measure of the place, under the Heisenberg parametrisation `New.Floors.TraceOne.heisenbergElem` of `N_l`. Otherwise it is the unit mass at `1`. -/ def Place.heisenbergMeasure [H : IsHermitianUnit T.splitGram] (l : ℕ) : Measure (U T.splitGram) := if h : l < 𝔰.ϱ then (volume.prod P.skewMeasure).map (heisenbergElem (T := T) ⟨l, h⟩) else dirac 1 /-- The group `G_l` is a measurable set: finitely many entries are prescribed. -/ lemma measurableSet_floorGroup : MeasurableSet (T.floorGroup l : Set T.G) := (isClosed_of_entries_eq_one mem_floorGroup).measurableSet @[simp] lemma heisenbergMeasure_eq_dirac_one [H : IsHermitianUnit T.splitGram] (h : 𝔰.ϱ ≤ l) : heisenbergMeasure l = dirac (1 : T.G) := dite_eq_right h.not_gt @[fun_prop] lemma continuous_orbitPoint : Continuous (orbitPoint b : T.G → 𝔰.BesselIndex → A) := by fun_prop [orbitPoint] variable [H : IsHermitianUnit T.splitGram] in instance : SFinite (heisenbergMeasure l : Measure T.G) := by fun_cases heisenbergMeasure <;> infer_instance /-- A function with values in the unitary group is measurable if it is measurable as a function with values in matrices. -/ lemma measurable_unitary_of_coe [H : IsHermitianUnit T.splitGram] {f : Z → T.G} (hf : Measurable fun z : Z ↦ (f z : GL 𝔰.BesselIndex A).val) : Measurable f := (Matrix.unitaryGroupOf.isClosedEmbedding_val H.isUnit) |>.measurableEmbedding.measurable_comp_iff.1 hf @[fun_prop] lemma continuous_weylElem [H : IsHermitianUnit T.splitGram] : Continuous (weylElem 𝔰.ϱ : (ℕ → Aˣ) → T.G) := by refine (Matrix.unitaryGroupOf.isClosedEmbedding_val H.isUnit).continuous_iff.2 (continuous_matrix fun i j ↦ ?_) simp only [Function.comp_apply, weylElem, weylOn, Units.isUnit, and_true, and_self, ↓inverse_star_unit, Pi.star_apply, isUnit_star, star_star, Ring.inverse_invertible, invOf_units, of_apply] -- each entry is constant, a parameter, or its conjugate inverse split_ifs <;> fun_prop @[fun_prop] lemma measurable_floorWeyl [H : IsHermitianUnit T.splitGram] : Measurable (floorWeyl l : A → T.G) := by classical have h_isUnit : Measurable fun c : A ↦ IsUnit c := Units.measurableEmbedding_val.measurableSet_range.mem refine measurable_unitary_of_coe (measurable_pi_iff.2 fun i ↦ measurable_pi_iff.2 fun j ↦ ?_) simp only [floorWeyl, weylOn, eq_ite_iff, not_and, Pi.star_apply, isUnit_star, star_star, of_apply] -- each entry is constant, `c`, or its conjugate inverse, on pieces cut out by `IsUnit c` apply_rules [Measurable.ite] <;> measurability /-- An element `s` of `G_l` acts on the coordinates of floor at least `l` by a block that preserves their volume. -/ lemma measurePreserving_floor_block_mulVec [H : IsHermitianUnit T.splitGram] (h : s ∈ floorGroup l) : MeasurePreserving fun v : { a // l ≤ floorOf a } → A ↦ (s : GL 𝔰.BesselIndex A).val.toSquareBlockProp (l ≤ floorOf ·) *ᵥ v := by -- `s` is block triangular with the identity on the indices of floor below `l`, so the block has -- the determinant of `s`, which has norm one have outside : s.val.val.toSquareBlockProp (¬l ≤ floorOf ·) = 1 := by ext i j have h_entry : s.val.val i j = (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) i j := h i j (by grind) simpa [toSquareBlockProp_def, Matrix.one_apply, Subtype.ext_iff] using h_entry have h_det : s.val.val.det = (s.val.val.toSquareBlockProp (l ≤ floorOf ·)).det := by simp [twoBlockTriangular_det' s.val.val (l ≤ floorOf ·) (by grind [one_apply_ne]), outside] have h_unitary : s.val.val.det ∈ unitary A := (U.det (H.isUnit.map detMonoidHom) s).property refine measurePreserving_mulVec _ ?_ rw [← h_det] exact h_unitary.1 /-- The measure `η_l = heisenbergMeasure l` is carried by `N_l`. -/ lemma ae_mem_floorUnipotent [H : IsHermitianUnit T.splitGram] : ∀ᵐ x : T.G ∂heisenbergMeasure l, x ∈ floorUnipotent l := by fun_cases heisenbergMeasure · exact (ae_map_iff (by fun_prop) (measurableSet_floorGroup.inter (isClosed_of_entries_eq_one mem_unipotentBelow).measurableSet)).2 (.of_forall (heisenbergElem_mem_floorUnipotent _)) · simp /-- The measure `η_l = heisenbergMeasure l` on the unitary group `T.G` is invariant under right and under left translation by every element `s` of `N_l = floorUnipotent l = G_l ∩ N_( simp [eq_one_of_mem_floorGroup_inf h (by grind)] case case1 hl => obtain ⟨⟨v, t⟩, rfl⟩ := exists_eq_heisenbergElem_of_mem (a := ⟨l, hl⟩) h -- By `heisenbergElem_mul`, multiplication by `heisenbergElem a (v, t)` on either side -- translates the skew parameter, which `P.skewMeasure` absorbs, and translates the vector by -- `v`, which volume absorbs. have skew_inv (Φ : T.G → ℝ≥0∞) (w : {i : 𝔰.BesselIndex // l + 1 ≤ floorOf i} → A) (β₀ : skewAdjoint A) : ∫⁻ β, Φ (heisenbergElem ⟨l, hl⟩ (w, β + β₀)) ∂P.skewMeasure = ∫⁻ β, Φ (heisenbergElem ⟨l, hl⟩ (w, β)) ∂P.skewMeasure := lintegral_add_right_eq_self (fun β ↦ Φ (heisenbergElem ⟨l, hl⟩ (w, β))) β₀ have vec_inv (Φ : T.G → ℝ≥0∞) : ∫⁻ w, ∫⁻ β, Φ (heisenbergElem ⟨l, hl⟩ (w + v, β)) ∂P.skewMeasure = ∫⁻ w, ∫⁻ β, Φ (heisenbergElem ⟨l, hl⟩ (w, β)) ∂P.skewMeasure := lintegral_add_right_eq_self (fun w ↦ ∫⁻ β, Φ (heisenbergElem ⟨l, hl⟩ (w, β)) ∂P.skewMeasure) v constructor all_goals refine ext_of_lintegral _ fun Φ hΦ ↦ ?_ simp (disch := fun_prop) [heisenbergElem_mul, add_assoc, add_comm t, add_comm v, skew_inv, vec_inv, ↓ mconv_dirac, ↓ lintegral_map, ↓ lintegral_prod, ↓ dirac_mconv] /-- Let `η_l = heisenbergMeasure l` be the measure on the unitary group `T.G` carried by the Heisenberg group `N_l`. For `l < ϱ` it is the image of Haar measure on `V_(l+1)` times the skew measure of the place under `heisenbergElem`, and otherwise it is the unit mass at `1`. If `s` lies in `G_(l+1) = floorGroup (l + 1)`, the unitary elements fixing every basis vector of floor below `l + 1`, then `dirac s ∗ₘ η_l = η_l ∗ₘ dirac s`. -/ lemma dirac_mconv_heisenbergMeasure_comm [H : IsHermitianUnit T.splitGram] (h : s ∈ floorGroup (l + 1)) : dirac s ∗ₘ heisenbergMeasure l = heisenbergMeasure l ∗ₘ dirac s := by fun_cases heisenbergMeasure case case2 => simp case case1 hl => -- by `mul_heisenbergElem`, moving `s` across applies its block to the vector, which keeps the -- volume nth_rw 2 [← ((measurePreserving_floor_block_mulVec h).prod (.id _)).map_eq] simp (disch := fun_prop) [↓Measure.map_map, mul_heisenbergElem (a := ⟨l, hl⟩) h, Prod.map_def, ↓ dirac_mconv, ↓ comp_def, ↓ mconv_dirac] /-! ### Convolutions along the floors, quadric measures and Plancherel -/ /-- For measures σ_l on the unitary group, the convolution σ_{a+i−1} ∗ ⋯ ∗ σ_a in descending order of i consecutive terms; the Dirac measure at 1 if i = 0. -/ def descConv : ℕ → ℕ → Measure T.G | _, 0 => dirac 1 | a, i + 1 => descConv (a + 1) i ∗ₘ σ a /-- For measures σ_l on the unitary group, the convolution σ_0 ∗ ⋯ ∗ σ_{j−1} in ascending order; the Dirac measure at 1 if j = 0. -/ def ascConv : ℕ → Measure T.G | 0 => dirac 1 | j + 1 => ascConv j ∗ₘ σ j instance (a i : ℕ) : SFinite (descConv σ a i) := by fun_induction descConv <;> infer_instance instance : SFinite (ascConv σ j) := by fun_induction ascConv <;> infer_instance variable {σ} lemma lintegral_mconv_dirac (f : T.G → ℝ≥0∞) : lintegral (μ ∗ₘ dirac s) f = ∫⁻ x : T.G, f (x * s) ∂μ := by simpa [↓ mconv_dirac] using lintegral_map_equiv f (.mulRight s) lemma lintegral_dirac_mconv (f : T.G → ℝ≥0∞) (s : T.G) : lintegral (dirac s ∗ₘ μ) f = ∫⁻ x : T.G, f (s * x) ∂μ := by simpa [↓ dirac_mconv] using lintegral_map_equiv f (.mulLeft s) /-- If `dirac s ∗ₘ μ = μ ∗ₘ dirac t`, then the substitution `x ↦ s⁻¹ * x * t` preserves integrals against `μ`. -/ lemma lintegral_eq_of_dirac_mconv_eq {t : T.G} (h : dirac s ∗ₘ μ = μ ∗ₘ dirac t) : lintegral μ f = ∫⁻ x : T.G, f (s⁻¹ * x * t) ∂μ := by simpa [↓lintegral_dirac_mconv, ↓lintegral_mconv_dirac, mul_assoc] using congrArg (lintegral · fun x : T.G ↦ f (s⁻¹ * x)) h /-- The integral against a convolution as an iterated integral, with the right factor outside. -/ lemma lintegral_mconv_symm (hf : Measurable f) : lintegral (μ ∗ₘ ν) f = ∫⁻ y : T.G, ∫⁻ x : T.G, f (x * y) ∂μ ∂ν := (lintegral_mconv hf).trans (lintegral_lintegral_swap (by fun_prop)) /-- The integral of an integrable function against a convolution, with the right measure in the outer integral and the integrand evaluated at `x * y`. -/ lemma integral_mconv_symm {M F : Type*} [Monoid M] [MeasurableSpace M] [MeasurableMul₂ M] [NormedAddCommGroup F] [NormedSpace ℝ F] {μ ν : Measure M} [SFinite μ] [SFinite ν] {f : M → F} (hf : Integrable f (μ ∗ₘ ν)) : ∫ z, f z ∂(μ ∗ₘ ν) = ∫ y, ∫ x, f (x * y) ∂μ ∂ν := (integral_mconv hf).trans (integral_integral_swap (hf.comp_measurable measurable_mul)) /-- The mass of `Y` under `μ ∗ₘ ν` is the `ν`-integral of the mass of `Y * y⁻¹` under `μ`. -/ lemma mconv_apply_eq_lintegral {Y : Set T.G} (hY : MeasurableSet Y) : (μ ∗ₘ ν) Y = ∫⁻ y : T.G, μ {x : T.G | x * y ∈ Y} ∂ν := (map_apply measurable_mul hY).trans (prod_apply_symm (measurable_mul hY)) omit [SFinite μ] in /-- The convolution of two measures carried by a measurable subgroup `S` is carried by `S`. -/ lemma ae_mem_mconv (hμ : ∀ᵐ x : T.G ∂μ, x ∈ S) (hν : ∀ᵐ x : T.G ∂ν, x ∈ S) (hS : MeasurableSet (S : Set T.G) := by exact measurableSet_floorGroup) : ∀ᵐ x : T.G ∂μ ∗ₘ ν, x ∈ S := (ae_map_iff (by fun_prop) hS).2 (.mono (measure_prod_compl_eq_zero hμ hν) fun _ hx ↦ S.mul_mem hx.1 hx.2) /-- If `dirac s` commutes with `ν` for `μ`-almost every `s`, then `μ` commutes with `ν` under convolution. -/ lemma mconv_comm_of_ae (h : ∀ᵐ s : T.G ∂μ, dirac s ∗ₘ ν = ν ∗ₘ dirac s) : μ ∗ₘ ν = ν ∗ₘ μ := by refine ext_of_lintegral _ fun f hf ↦ ?_ calc lintegral (μ ∗ₘ ν) f = ∫⁻ s, ∫⁻ y, f (s * y) ∂ν ∂μ := lintegral_mconv hf _ = ∫⁻ s, ∫⁻ y, f (y * s) ∂ν ∂μ := lintegral_congr_of_ae_imp h fun s hs ↦ by rw [← lintegral_dirac_mconv, hs, lintegral_mconv_dirac] _ = lintegral (ν ∗ₘ μ) f := (lintegral_mconv_symm hf).symm /-- A descending convolution of `i + j` terms splits after the first `i` indices. -/ lemma descConv_add (i j a : ℕ) : descConv σ a (i + j) = descConv σ (a + i) j ∗ₘ descConv σ a i := by fun_induction descConv σ a i with | case1 a => simp | case2 a i ih => rw [show i + 1 + j = i + j + 1 by ring, descConv, ih, mconv_assoc, show a + 1 + i = a + (i + 1) by ring] /-- A descending convolution starting at `0` gains its next term `σ i` on the left. -/ lemma descConv_succ (i : ℕ) : descConv σ 0 (i + 1) = σ i ∗ₘ descConv σ 0 i := by simp [↓descConv_add, descConv] omit [TopologicalSpace A] [Place A] [SFinite μ] in /-- A function with nonzero integral is nonzero at some point where a given almost everywhere property holds. -/ lemma exists_ne_zero_of_ae {p : T.G → Prop} (h : ∀ᵐ x : T.G ∂μ, p x) (hf : lintegral μ f ≠ 0) : ∃ x : T.G, p x ∧ f x ≠ 0 := by by_contra! h_zero exact hf (lintegral_eq_zero_of_ae_eq_zero (h.mono h_zero)) /-- The measure on a quadric in V_b: the image of `New.Floors.Place.quadricMeasure` with parameter β under the basis `F.floorBasis b`. By default, β is obtained from h(f_b, f_b) by `skewUnitMul`. -/ abbrev HyperbolicBasis.floorQuadricMeasure [_H : IsHermitianUnit T.splitGram] (β : skewAdjoint A := skewUnitMul (T.splitGram (𝔰.besselFrame b) (𝔰.besselFrame b)) (IsHermitian.apply IsHermitianUnit.conjTranspose_eq (𝔰.besselFrame b) (𝔰.besselFrame b))) : Measure (𝔰.BesselIndex → A) := (quadricMeasure (hyperbolicGram (FloorPairs b m) 1) β).map (F.floorBasis b *ᵥ ·) /-- Let `V_b` be the span of the basis vectors of floor at least `b`, with Haar measure `floorVolume b` (the volume on those coordinates, extended by zero). The measures `F.floorQuadricMeasure b β`, images under the basis `F.floorBasis b` of the quadric measures with skew parameter `β`, disintegrate this Haar measure along `h(x, x)`, where `h = T.splitGram`. -/ lemma HyperbolicBasis.isDisintegration_floorVolume [H : IsHermitianUnit T.splitGram] {μ : Measure (𝔰.BesselIndex → A)} (hμ : μ = FloorGroups.floorVolume b) : IsDisintegration μ T.splitGram (F.floorQuadricMeasure b ·) := by -- Transport `isDisintegration_quadricMeasure` along `F.floorBasis b`. Its Gram matrix has square -- one, which gives a left inverse of `F.floorBasis b`. have gram : (F.floorBasis b)ᴴ * T.splitGram * F.floorBasis b = planeSumGram (hyperbolicGram (FloorPairs b m) (1 : Matrix ι ι A)) := F.gram_floorBasis b have left_inv : (F.floorBasis b)ᴴ * T.splitGram * F.floorBasis b * ((F.floorBasis b)ᴴ * T.splitGram) * F.floorBasis b = 1 := by rw [Matrix.mul_assoc _ _ (F.floorBasis b), gram] rw [fromBlocks_multiply] simp [hyperbolicGram_mul, ← one_fin_two] rw [hμ, ← F.map_floorBasis_volume b] exact (isDisintegration_quadricMeasure (by simp [conjTranspose_hyperbolicGram])).map gram left_inv /-- Let `b ≤ ϱ` and let `Z` be a nonempty standard Borel space. Let `Φ : T.G → Z` be a measurable function that is left invariant under `Q_(b+1) ∩ G_b`, where `Q_(b+1)` is the partially unitriangular group `partialUnitriangularGroup (b + 1)` and `G_b = floorGroup b` is the group of isometries fixing every basis vector of floor below `b`. Then there is a measurable `Ψ` on vectors with `Φ σ = Ψ (orbitPoint b σ)` for every `σ ∈ G_b`, where `orbitPoint b σ = σ⁻¹ f_b` and `f_b` is the vector of index `b` in the frame `(e_0, …, e_{ϱ-1}, z)`. -/ lemma exists_factor_orbitPoint [StandardBorelSpace Z] [Nonempty Z] {Φ : T.G → Z} (hΦ : Measurable Φ) (h_inv : (partialUnitriangularGroup (b + 1) ⊓ floorGroup b).FixesLeft Φ) : ∃ Ψ : (𝔰.BesselIndex → A) → Z, Measurable Ψ ∧ ∀ σ ∈ floorGroup b, Φ σ = Ψ (orbitPoint b σ) := by -- On `floorGroup b` the invariant function `Φ` factors through `orbitPoint b`, as -- `Ψ ∘ orbitPoint b`. The source is standard Borel and the range of `orbitPoint b` is countably -- separated, so `Ψ` is measurable on that range; it extends measurably to all vectors because `Z` -- is standard Borel and nonempty. have : StandardBorelSpace (T.floorGroup b) := measurableSet_floorGroup.standardBorel have h_factors : FactorsThrough (Φ ∘ (↑)) fun σ : T.floorGroup b ↦ orbitPoint b σ.val := fun σ τ h ↦ by simpa using h_inv _ (inv_mul_mem_of_orbitPoint_eq σ⁻¹.property τ⁻¹.property h) τ obtain ⟨Ψ, hΨ⟩ : ∃ Ψ : (𝔰.BesselIndex → A) → Z, Φ ∘ (↑) = Ψ ∘ fun σ : T.floorGroup b ↦ orbitPoint b σ.val := (factorsThrough_iff _).1 h_factors have h_meas : Measurable (Ψ ∘ fun σ : T.floorGroup b ↦ orbitPoint b σ.val) := by rw [← hΨ] exact hΦ.comp (by fun_prop) rw [Measurable.measurable_comp_iff_restrict (by fun_prop)] at h_meas obtain ⟨Ψ', hΨ'_meas, hΨ'⟩ := h_meas.exists_eq_measurable_comp refine ⟨Ψ', hΨ'_meas, fun σ hσ ↦ ?_⟩ calc Φ σ = Ψ (orbitPoint b σ) := congrFun hΨ ⟨σ, hσ⟩ _ = Ψ' (orbitPoint b σ) := congrFun hΨ' ⟨orbitPoint b σ, ⟨σ, hσ⟩, rfl⟩ /-- If every `σ l` is carried by `G_l`, then so is the descending convolution starting at `l`. -/ lemma ae_descConv_mem (h : ∀ {l : ℕ}, ∀ᵐ x : T.G ∂σ l, x ∈ floorGroup l) : ∀ᵐ x : T.G ∂descConv σ l i, x ∈ floorGroup l := by fun_induction descConv with | case1 => simp | case2 a i ih => exact ae_mem_mconv (ih.mono (floorGroup_anti a.le_succ)) h measurableSet_floorGroup variable [H : IsHermitianUnit T.splitGram] /-- Let `η_i = heisenbergMeasure i` be the measure on the unitary group `T.G` carried by the Heisenberg group `N_i`: the image of Haar measure on `V_(i+1)` times the skew measure of the place for `i < ϱ`, and the unit mass at `1` otherwise. Let `η_{ simp [ascConv] | succ j ih => intro s hs rw [ascConv, ← mconv_assoc, ih s (floorGroup_anti j.le_succ hs), mconv_assoc, dirac_mconv_heisenbergMeasure_comm hs, mconv_assoc] /-- η_{ simp [ascConv] | succ j ih => exact ae_mem_mconv (ih.mono (by grind)) (ae_mem_floorUnipotent.mono fun _ hx ↦ hx.2) (isClosed_of_entries_eq_one mem_unipotentBelow).measurableSet omit [DecidableEq ι] in /-- Plancherel's inequality with a damping factor `∏ i, G (v i)`, for `G ≥ 0` continuous and integrable and the additive character `ψ` of the place `A`: the constant is the `L¹` norm of the transform of `G` (dilated by `ξ`), to the power `card ι`. -/ lemma Place.lintegral_damped_fourier_le (ξ : A) {G : A → ℝ} (hG : Continuous G) (hG_int : Integrable G) (hG_pos : 0 ≤ G) {f : (ι → A) → ℂ} (hf : Integrable f) (hf_meas : Measurable f) : ∫⁻ v : ι → A, ‖(‖∫ w : ι → A, P.ψ (ξ * star v ⬝ᵥ w) * f w‖ ^ 2 * ∏ i : ι, G (v i) : ℂ)‖ₑ ≤ (∫⁻ a : A, ‖∫ v : A, G v * P.ψ (star v * ξ * a)‖ₑ) ^ card ι * ∫⁻ w : ι → A, ‖f w‖ₑ ^ 2 := by -- Expand the square as a double integral over `x = (w, w')` and integrate over `v` first. let g (v : ι → A) (x : (ι → A) × (ι → A)) : ℂ := P.ψ (ξ * star v ⬝ᵥ (x.2 - x.1)) * ((∏ i, G (v i)) * (star (f x.1) * f x.2)) have hg : Integrable g.uncurry := .mono ((Integrable.fintype_prod fun _ ↦ hG_int).smul_prod (hf.mul_prod hf)) (Measurable.aestronglyMeasurable (by fun_prop)) (by simp [g, uncurry]) have h_expand (v : ι → A) : ‖∫ w : ι → A, P.ψ (ξ * star v ⬝ᵥ w) * f w‖ ^ 2 * ∏ i : ι, (G (v i) : ℂ) = ∫ x : (ι → A) × (ι → A), g v x := by rw [← Complex.conj_mul', ← integral_conj, ← integral_prod_mul, ← integral_mul_const] refine integral_congr_ae (.of_forall fun x ↦ ?_) simp [g, mul_sub, P.ψ.map_sub_eq_div, division_def, Complex.inv_eq_conj] ring -- The transform of the damping factor is a product of transforms of `G`. have h_factor (z : ι → A) : ‖∫ v : ι → A, P.ψ (ξ * star v ⬝ᵥ z) * ∏ i : ι, (G (v i) : ℂ)‖ₑ ≤ ∏ i : ι, ‖∫ v : A, G v * P.ψ (star v * ξ * z i)‖ₑ := by simp [eNorm, ← ofNNReal_finsetProd, ← nnNorm_prod, ← integral_fintype_prod_volume_eq_prod, dotProduct, Finset.mul_sum, Finset.prod_mul_distrib, mul_comm, mul_left_comm, AddChar.map_sum_eq_prod] -- For a fixed difference `z = w' - w`, Cauchy–Schwarz bounds `∫ |f w| |f (w + z)|`. have h_cauchy (z : ι → A) : ∫⁻ w : ι → A, ‖f w‖ₑ * ‖f (w + z)‖ₑ ≤ ∫⁻ w : ι → A, ‖f w‖ₑ ^ 2 := by simpa [← rpow_add_of_nonneg, ← two_mul, lintegral_add_right_eq_self (‖f ·‖ₑ ^ 2)] using lintegral_mul_le_Lp_mul_Lq _ .two_two hf.1.eNorm (hf.comp_add_right z).1.eNorm have h_diff (z : ι → A) : ∫⁻ w : ι → A, ‖∫ v : ι → A, g v (w, w + z)‖ₑ ≤ (∏ i : ι, ‖∫ v : A, G v * P.ψ (star v * ξ * z i)‖ₑ) * ∫⁻ w : ι → A, ‖f w‖ₑ ^ 2 := by simpa [g, ← mul_assoc (ψ _), integral_mul_const, lintegral_const_mul'] using mul_le_mul' (h_factor z) (h_cauchy z) have h_nonneg (v : ι → A) : (‖∫ x : (ι → A) × (ι → A), g v x‖ : ℂ) = ∫ x : (ι → A) × (ι → A), g v x := by simp [← h_expand, abs_of_nonneg (hG_pos _)] simp only [Complex.ofReal_prod, h_expand] calc ∫⁻ v, ‖∫ x, g v x‖ₑ _ ≤ ‖∫ v, ∫ x, g v x‖ₑ := by -- The inner integrals are non-negative reals. grw [← ofReal_integral_norm_eq_lintegral_eNorm (by exact hg.integral_prod_left), Real.ofReal_le_eNorm] rw [← integral_congr_ae (.of_forall h_nonneg), integral_complex_ofReal] simp [eNorm] _ ≤ ∫⁻ x : (ι → A) × (ι → A), ‖∫ v, g v x‖ₑ := by grw [integral_integral_swap hg, eNorm_integral_le_lintegral_eNorm] _ ≤ ∫⁻ z : ι → A, ∫⁻ w, ‖∫ v, g v (w, w + z)‖ₑ := by grw [volume_eq_prod, ← (measurePreserving_prod_add_swap ..).map_eq, lintegral_map_le, lintegral_prod_le] fun_prop _ ≤ ∫⁻ z : ι → A, (∏ i, ‖∫ v, G v * P.ψ (star v * ξ * z i)‖ₑ) * ∫⁻ w, ‖f w‖ₑ ^ 2 := lintegral_mono h_diff _ = (∫⁻ a : A, ‖∫ v : A, G v * P.ψ (star v * ξ * a)‖ₑ) ^ card ι * ∫⁻ w : ι → A, ‖f w‖ₑ ^ 2 := by rw [lintegral_mul_const _ (by fun_prop), card, ← Finset.prod_const (lintegral ..), ← TauCeti.lintegral_fintype_prod_eq_prod _ (by fun_prop), volume_pi] /-- Plancherel's inequality at a place A: for a unit η and f measurable and integrable on A^ι, ∫ |∫ ψ(η v*w) f(w) dw|² dv ≤ (c/md η)^{|ι|} ∫ |f|². Here v*w is `star v ⬝ᵥ w`, ψ is the additive character of the place, and md is its `modulus`. The constant c = `kernelBound` is part of the data of the place: a bound in [0, ∞] on the L¹ norm of the Fourier transform of a kernel that the place provides. -/ lemma Place.plancherel_inequality (η : Aˣ) {f : (ι → A) → ℂ} (hf : Integrable f) (hf_meas : Measurable f) : ∫⁻ v : ι → A, ‖∫ w : ι → A, P.ψ (η * star v ⬝ᵥ w) * f w‖ₑ ^ 2 ≤ (P.kernelBound / P.modulus η) ^ card ι * ∫⁻ w : ι → A, ‖f w‖ₑ ^ 2 := by -- Damp the integrand by `∏ i, G (star x * v i)`, which tends to `1` as `x → 0`. By Fatou's lemma -- it suffices to bound the damped integral for units `x`, which accumulate at `0`. obtain ⟨G, hG, hG_int, hG_pos, hG_zero, hG_mass⟩ := P.exists_plancherel_kernel let damped (x : A) (v : ι → A) : ℝ≥0∞ := ‖(‖∫ w, P.ψ (η * star v ⬝ᵥ w) * f w‖ ^ 2 * ∏ i, G (star x * v i) : ℂ)‖ₑ have h_limit (v : ι → A) : Tendsto (damped · v) (nhds 0) (nhds (‖∫ w, P.ψ (η * star v ⬝ᵥ w) * f w‖ₑ ^ 2)) := Continuous.tendsto' (by fun_prop) 0 _ (by simp [damped, eNorm, hG_zero]) have h_unit (u : Aˣ) : ∫⁻ v : ι → A, damped u v ≤ (P.kernelBound / P.modulus η) ^ card ι * ∫⁻ w : ι → A, ‖f w‖ₑ ^ 2 := by -- Substitute `v ↦ (star u)⁻¹ • v` on the left and `z ↦ η * u⁻¹ * z` in the mass of the kernel; -- both sides acquire the factor `(modulus u)⁻¹ ^ card ι`. grw [lintegral_eq_mul_lintegral_map (map_mulVec_volume _ (star u⁻¹.1 • 1) _), lintegral_map_le, ← hG_mass, lintegral_eq_mul_lintegral_map (map_mul_volume (η * u⁻¹)) (modulus_ne_zero _) (modulus_ne_top _), lintegral_map] · have h_cancel (a : A) : star u.val * (star u⁻¹.val * a) = a := by simp [← mul_assoc, ← star_mul] simpa [damped, smul_mulVec, mul_pow, ENNReal.mul_div_right_comm, ENNReal.div_self, mul_assoc, h_cancel] using mul_le_mul_right (lintegral_damped_fourier_le (η.val * u⁻¹.val) hG hG_int hG_pos hf hf_meas) ((P.modulus u)⁻¹ ^ card ι) -- the side goals: measurability, and the determinant is a unit any_goals fun_prop all_goals simp [IsUnit.pow] grw [lintegral_mono fun v ↦ (h_limit v).liminf_eq.ge, lintegral_liminf_le (by fun_prop)] exact liminf_le_of_frequently_le' ((mem_closure_iff_frequently.1 (dense_of_ae ae_isUnit 0)).mono (Set.forall_mem_range.2 h_unit)) end New.Floors end