import Lib.DiscreteSeries.Bruhat.FourierKernels import New.Spanning.Frames.Correlations /-! # Volumes on quadrics and on sections The equation of a quadric is solved in a block of orthonormal coordinates: the other coordinates are free, and the points of size j of the fibres have mass bounded in terms of j. A section ⟨e_a, y⟩ = c of an isotropic cone, for a unit c, is an orbit of a Heisenberg group. The letters G^(l), U_( simp [PlaceData.freeIndex, e, Fin.ext_iff] at h ⊢ <;> lia /-- Let ρ be the volume `FloorGroups.floorVolume b` of V_b or the measure `F.floorQuadricMeasure b` of a quadric in V_b. In the coordinates of the basis `F.floorBasis b`, ρ is solved in every block of `F.blockRank` distinct orthonormal basis vectors. That is, the other coordinates are free, and over each of their values the points of the block with all coordinates in `Γ.ofSize j` have mass at most Λ^(`F.blockRank` (j+1)), where Λ = `Γ.loss` is the constant of the gauge Γ. -/ lemma exists_isSolvedIn {ρ : Measure (𝔰.BesselIndex → A)} (hρ : ρ = FloorGroups.floorVolume b ∨ ρ = F.floorQuadricMeasure b) : ∃ ρ₀ : Measure (Fin 2 ⊕ FloorPairs b m ⊕ ι ⊕ FloorPairs b m → A), ρ = ρ₀.map (F.floorBasis b *ᵥ ·) ∧ ∀ blk : Fin F.blockRank → ι, Function.Injective blk → ∀ j : ℕ, IsSolvedIn (inr ∘ inr ∘ inl ∘ blk) ρ₀ (Γ.ofSize j) (Γ.loss ^ (F.blockRank * (j + 1))) := by obtain rfl | rfl := hρ · refine ⟨volume, (F.map_floorBasis_volume b).symm, fun blk h_inj j ↦ ?_⟩ have h_box : volume (Γ.ofSize j) ^ Fintype.card (Fin F.blockRank) ≤ Γ.loss ^ (F.blockRank * (j + 1)) := by grw [volume_ofSize_le, ← pow_mul, Fintype.card_fin, mul_comm] exact isSolvedIn_volume (inr_injective.comp (inr_injective.comp (inl_injective.comp h_inj))) h_box · obtain ⟨l, hl_finite, hl, h_mass⟩ : ∃ l : ProbabilityTheory.Kernel (skewAdjoint A) (Fin F.blockRank → A), ProbabilityTheory.IsSFiniteKernel l ∧ IsDisintegration volume 1 l ∧ ∀ (β : skewAdjoint A) (j : ℕ), l β (Γ.vecsOfSize j) ≤ Γ.loss ^ (F.blockRank * (j + 1)) := Γ.exists_blockKernel refine ⟨quadricMeasure (hyperbolicGram (FloorPairs b m) 1) _, rfl, fun blk h_inj j ↦ ?_⟩ refine hl.isSolvedIn_quadricMeasure (fun β ↦ h_mass β j) ?_ (inr_injective.comp (inl_injective.comp h_inj)) ?_ _ · -- the Gram matrix off the first pair is hermitian simp [fromBlocks_conjTranspose, conjTranspose_fromRows_eq_fromCols_conjTranspose, conjTranspose_fromCols_eq_fromRows_conjTranspose] · -- the vectors of the block are orthonormal and orthogonal to the other basis vectors rintro i (k | k | k) <;> simp [Matrix.one_apply] /-- The volume of `Γ.ofSize j` is raised to the number of coordinates of V_b lying outside X' and outside one block of `F.blockRank` vectors. This power, times the bound Λ^(`F.blockRank` (j+1)) for the mass in that block, is at most Λ^(99 n (j+2)), where Λ = `Γ.loss` and n = `𝔰.n`. -/ lemma volume_pow_mul_le : volume (Γ.ofSize j) ^ (Fintype.card (Fin 2 ⊕ FloorPairs b m ⊕ ι ⊕ FloorPairs b m) - Fintype.card F.FreeIndex - Fintype.card (Fin F.blockRank)) * Γ.loss ^ (F.blockRank * (j + 1)) ≤ Γ.loss ^ (99 * 𝔰.n * (j + 2)) := by -- There are at most `99 n` coordinates off X', and each costs at most `Λ ^ (j + 1)`. have h_pairs : Fintype.card (FloorPairs b m) ≤ m + 𝔰.ϱ := by simp [card_finset_fin_le, Fintype.card_subtype] have h_card : Fintype.card (Fin 2 ⊕ FloorPairs b m ⊕ ι ⊕ FloorPairs b m) - Fintype.card F.FreeIndex - Fintype.card (Fin F.blockRank) + F.blockRank ≤ 99 * 𝔰.n := by have h_le : m ≤ 9 * 𝔰.n := Γ.pairs_le simp only [Fintype.card_sum (α := Fin 2), Fintype.card_sum (α := FloorPairs b m), Fintype.card_sum (α := ι), Fintype.card_fin] lia set d : ℕ := Fintype.card (Fin 2 ⊕ FloorPairs b m ⊕ ι ⊕ FloorPairs b m) - Fintype.card F.FreeIndex - Fintype.card (Fin F.blockRank) calc volume (Γ.ofSize j) ^ d * Γ.loss ^ (F.blockRank * (j + 1)) ≤ (Γ.loss ^ (j + 1)) ^ d * Γ.loss ^ (F.blockRank * (j + 1)) := by grw [volume_ofSize_le] _ = Γ.loss ^ ((d + F.blockRank) * (j + 1)) := by ring _ ≤ Γ.loss ^ (99 * 𝔰.n * (j + 2)) := pow_le_pow_right₀ Γ.one_le_loss (Nat.mul_le_mul h_card (by lia)) /-- Passage to coordinates in the basis `F.floorBasis b` of V_b: the integral of `Φ` over `Γ.vecsOfSize j` against the image of `ρ` under x ↦ `F.floorBasis b *ᵥ x` is at most the integral of `Φ (F.floorBasis b *ᵥ x)` over x in `Γ.vecsOfSize (j + 4)` against `ρ`. -/ lemma setLIntegral_map_floorBasis_le {ρ : Measure (Fin 2 ⊕ FloorPairs b m ⊕ ι ⊕ FloorPairs b m → A)} (Φ : (𝔰.BesselIndex → A) → ℝ≥0∞) : ∫⁻ v : 𝔰.BesselIndex → A in Γ.vecsOfSize j, Φ v ∂ρ.map (F.floorBasis b *ᵥ ·) ≤ ∫⁻ x : Fin 2 ⊕ FloorPairs b m ⊕ ι ⊕ FloorPairs b m → A in Γ.vecsOfSize (j + 4), Φ (F.floorBasis b *ᵥ x) ∂ρ := by simp only [← lintegral_indicator measurableSet_vecsOfSize] refine (lintegral_map_le _ (by fun_prop)).trans (lintegral_mono fun x ↦ ?_) by_cases hx : F.floorBasis b *ᵥ x ∈ Γ.vecsOfSize j · rw [indicator_of_mem hx, indicator_of_mem (mem_vecsOfSize_of_floorBasis_mulVec hx)] · simp [indicator_of_notMem hx] /-- Let ρ be the volume of V_b, the span of the basis vectors of floor at least b, or the measure `F.floorQuadricMeasure b` of a quadric in V_b. Let Λ = `Γ.loss`, n = `𝔰.n`, and let X' be the span of the columns of `F.orthonormalPart`. If φ is measurable and has integral at most B over the vectors of size j + 4 of X', then φ(y_X) has ρ-integral at most Λ^(99 n (j+6)) B over the vectors y of size j. Here y_X = `F.orthonormalPartᴴ *ᵥ T.splitGram *ᵥ y` is the vector of the products of the basis vectors of X' with y. -/ lemma setLIntegral_orthonormalPart_le {ρ : Measure (𝔰.BesselIndex → A)} {φ : (F.FreeIndex → A) → ℝ≥0∞} (hρ : ρ = FloorGroups.floorVolume b ∨ ρ = F.floorQuadricMeasure b) (hB : ∫⁻ w : F.FreeIndex → A in Γ.vecsOfSize (j + 4), φ w ≤ B) (hφ : Measurable φ := by fun_prop) : ∫⁻ y : 𝔰.BesselIndex → A in Γ.vecsOfSize j, φ (F.orthonormalPartᴴ *ᵥ T.splitGram *ᵥ y) ∂ρ ≤ Γ.loss ^ (99 * 𝔰.n * (j + 6)) * B := by -- Pairing with the basis of X' reads off coordinates. Solve in a block disjoint from X'. have h_cols : F.orthonormalPart = (F.floorBasis b).submatrix id (inr ∘ inr ∘ inl ∘ F.freeIndex) := by simp [← ext_iff, Matrix.mul_apply, floorBasis, inclMatrix, Matrix.one_apply] have h_coord (x : Fin 2 ⊕ FloorPairs b m ⊕ ι ⊕ FloorPairs b m → A) : F.orthonormalPartᴴ *ᵥ T.splitGram *ᵥ F.floorBasis b *ᵥ x = x ∘ inr ∘ inr ∘ inl ∘ F.freeIndex := calc _ = ((F.floorBasis b)ᴴ *ᵥ T.splitGram *ᵥ F.floorBasis b *ᵥ x) ∘ inr ∘ inr ∘ inl ∘ F.freeIndex := by rw [h_cols] rfl _ = (planeSumGram (hyperbolicGram (FloorPairs b m) (1 : Matrix ι ι A)) *ᵥ x) ∘ inr ∘ inr ∘ inl ∘ F.freeIndex := by rw [← F.gram_floorBasis b, ← mulVec_mulVec, ← mulVec_mulVec] _ = _ := by simp [funext_iff, fromBlocks_mulVec] obtain ⟨ρ₀, rfl, h_solved⟩ := Γ.exists_isSolvedIn hρ obtain ⟨_, blk, h_inj⟩ := Γ.exists_blocks have h_blk : Function.Injective blk := h_inj.comp (inr_injective.comp inr_injective) have h_disjoint : Function.Injective (F.freeIndex ⊕ᵥ blk) := by simpa only [elim_comp_map, Function.comp_id, elim_comp_inr] using h_inj.comp (map_injective.2 ⟨Function.injective_id, inr_injective⟩) grw [setLIntegral_map_floorBasis_le, ← Γ.volume_pow_mul_le (b := b) (j := j + 4), ← hB] simp only [h_coord] refine (h_solved blk h_blk (j + 4)).setLIntegral_le (Γ.isCompact_ofSize _).measurableSet ?_ hφ simpa only [Function.comp_assoc, comp_elim] using inr_injective.comp (inr_injective.comp (inl_injective.comp h_disjoint)) /-- Let S be a set of skew elements and u a unit such that (β - β') / u has size j + 1 for all β, β' in S. Then S has Haar measure at most |u|^(1/2) Λ^(j+2), where |u| is the modulus of u and Λ = `Γ.loss`. -/ lemma skewMeasure_le_of_sub_mem_ofSize {S : Set (skewAdjoint A)} (u : Aˣ) (h_diff : ∀ β ∈ S, ∀ β' ∈ S, u⁻¹ * (β - β').val ∈ Γ.ofSize (j + 1)) : skewMeasure S ≤ Place.modulus u.val ^ (2⁻¹ : ℝ) * Γ.loss ^ (j + 2) := by -- For such differences `d₁, d₂` the number `(τ δ⁻¹ d₁ + d₂) / u` has size `j + 3`, where `τ` has -- trace one and `δ` is the skew unit. Hence the squared mass of `S` is at most `modulus u` -- times the volume of the numbers of size `j + 3`. refine skewMeasure_le_of_sub_mem u⁻¹ (C := Γ.ofSize (1 + (j + 1) + 1)) ?_ ?_ · rintro ⟨β₁, β₂⟩ ⟨hβ₁, hβ₂⟩ ⟨β₁', β₂'⟩ ⟨hβ₁', hβ₂'⟩ have h_eq : u⁻¹ * (element * skewUnit⁻¹.val * (β₁ - β₁').val + (β₂ - β₂').val) = element * skewUnit⁻¹.val * (u⁻¹ * (β₁ - β₁').val) - u⁻¹ * (β₂' - β₂).val := by push_cast ring rw [Prod.mk_sub_mk, h_eq] exact sub_mem_ofSize (Γ.mul_mem_ofSize Γ.traceOne_div_mem_ofSize (h_diff β₁ hβ₁ β₁' hβ₁')) (mem_ofSize_mono (h_diff β₂' hβ₂' β₂ hβ₂)) · calc (Place.modulus u⁻¹.val)⁻¹ * volume (Γ.ofSize (1 + (j + 1) + 1)) ≤ Place.modulus u.val * Γ.loss ^ (1 + (j + 1) + 1 + 1) := by grw [volume_ofSize_le] simp _ ≤ Place.modulus u.val * Γ.loss ^ ((j + 2) * 2) := by gcongr · exact Γ.one_le_loss · lia _ = (Place.modulus u.val ^ (2⁻¹ : ℝ) * Γ.loss ^ (j + 2)) ^ 2 := by simp [mul_pow, ← rpow_mul_natCast, ← pow_mul] -- Keeps definitional checks from unfolding the finite sums. seal Finset.sum in /-- The integral over the skew variable in the Heisenberg group of floor a, with points n = `heisenbergElem a (ω, β)`; a vector part such as ω is extended by zero to the floors at most a (`inclMatrix`). Suppose that at each n with Φ(n) ≠ 0, w / u has size j for some w congruent to (n⁻¹ - 1) e*_a modulo the e_b with b < a, and Φ(n) ≤ C Ψ(ω / u). Then for ω = u v the integral of Φ over β is at most |u|^(1/2) `Γ.loss`^(j+2) C Ψ(v), and it vanishes unless v has size j. -/ lemma lintegral_heisenbergElem_skewMeasure_le {Φ : T.G → ℝ≥0∞} {Ψ : (𝔰.BesselIndex → A) → ℝ≥0∞} (u : Aˣ) (hΦ : ∀ t : ({k : 𝔰.BesselIndex // a + 1 ≤ floorOf k} → A) × skewAdjoint A, Φ (heisenbergElem a t) ≠ 0 → (∃ w : 𝔰.BesselIndex → A, CongrBelow a (((heisenbergElem (T := T) a t)⁻¹.val.val - 1) *ᵥ Pi.single (eStar a) 1) w ∧ u⁻¹.val • w ∈ Γ.vecsOfSize j) ∧ Φ (heisenbergElem a t) ≤ C * Ψ (u⁻¹.val • inclMatrix A Subtype.val *ᵥ t.1)) (v : {k : 𝔰.BesselIndex // a + 1 ≤ floorOf k} → A) : ∫⁻ β : skewAdjoint A, Φ (heisenbergElem a (u.val • v, β)) ∂skewMeasure ≤ Place.modulus u.val ^ (2⁻¹ : ℝ) * (Γ.loss ^ (j + 2) * (Γ.vecsOfSize j).indicator (C * Ψ ·) (inclMatrix A Subtype.val *ᵥ v)) := by let S : Set (skewAdjoint A) := support fun β ↦ Φ (heisenbergElem a (u.val • v, β)) -- On the support `S` the vector `v` has size `j`, and so has `(c - β) / u`, where `c` -- does not depend on `β`. let Q (w : {i : 𝔰.BesselIndex // a + 1 ≤ floorOf i} → A) : A := element * star (inclMatrix A Subtype.val *ᵥ w) ⬝ᵥ T.splitGram *ᵥ inclMatrix A Subtype.val *ᵥ w let c : A := skewPart (Q (u.val • v)) - Q (-(u.val • v)) have h_supp (β : skewAdjoint A) (hβ : β ∈ S) : inclMatrix A Subtype.val *ᵥ v ∈ Γ.vecsOfSize j ∧ u⁻¹ * (c - β) ∈ Γ.ofSize j ∧ Φ (heisenbergElem a (u.val • v, β)) ≤ C * Ψ (inclMatrix A Subtype.val *ᵥ v) := by obtain ⟨⟨w, h_congr, h_short⟩, h_le⟩ := hΦ (u.val • v, β) hβ rw [heisenbergElem_inv] at h_congr obtain ⟨h_vec, h_skew⟩ : u⁻¹.val • inclMatrix A Subtype.val *ᵥ (-(u.val • v)) ∈ Γ.vecsOfSize j ∧ u⁻¹ * ((skewPart (Q (u.val • v)) - β).val - Q (-(u.val • v))) ∈ Γ.ofSize j := mem_vecsOfSize_of_congrBelow_heisenbergElem h_congr h_short refine ⟨?_, ?_, ?_⟩ · simpa [mulVec_neg, vecsOfSize, mulVec_smul, neg_mem_iff_and_star_mem_iff] using h_vec · rwa [sub_right_comm] · simpa [smul_smul, mulVec_smul] using h_le have h_diff (β : skewAdjoint A) (hβ : β ∈ S) (β' : skewAdjoint A) (hβ' : β' ∈ S) : u⁻¹ * (β - β').val ∈ Γ.ofSize (j + 1) := by obtain ⟨-, h_near, -⟩ := h_supp β hβ obtain ⟨-, h_near', -⟩ := h_supp β' hβ' simpa [mul_sub] using sub_mem_ofSize h_near' h_near grw [← setLIntegral_eq_of_support_subset .rfl, ← mul_assoc, mul_comm, ← skewMeasure_le_of_sub_mem_ofSize u h_diff, ← setLIntegral_const] refine setLIntegral_mono measurable_const fun β hβ ↦ ?_ obtain ⟨h_size, -, h_le⟩ := h_supp β hβ rwa [indicator_of_mem h_size] /-- The integral over the Heisenberg group of floor a, with points n = `heisenbergElem a (ω, β)`, where ω is extended by zero to the floors at most a (`inclMatrix`). Suppose that at each n with Φ(n) ≠ 0, v / u has size j for some v congruent to (n⁻¹ - 1) e*_a modulo the e_b with b < a, and Φ(n) ≤ C Ψ(ω / u). Let Ψ be measurable, with integral at most I over the vectors of size j for the volume of V_(a+1). Then the integral of Φ for `heisenbergMeasure a` is at most C B for any B ≥ |u|^(r + 1/2) Λ^(j+2) I. Here Λ = `Γ.loss`, r is the number of coordinates of ω, and |u|^(r + 1/2) is `F.floorModulus a u`. -/ lemma lintegral_heisenbergMeasure_le {Φ : T.G → ℝ≥0∞} {Ψ : (𝔰.BesselIndex → A) → ℝ≥0∞} (u : Aˣ) (hI : ∫⁻ x : 𝔰.BesselIndex → A in Γ.vecsOfSize j, Ψ x ∂FloorGroups.floorVolume a.succ ≤ I) (hΦ : ∀ t : ({k : 𝔰.BesselIndex // a + 1 ≤ floorOf k} → A) × skewAdjoint A, Φ (heisenbergElem a t) ≠ 0 → (∃ v : 𝔰.BesselIndex → A, CongrBelow a (((heisenbergElem (T := T) a t)⁻¹.val.val - 1) *ᵥ Pi.single (eStar a) 1) v ∧ u⁻¹.val • v ∈ Γ.vecsOfSize j) ∧ Φ (heisenbergElem a t) ≤ C * Ψ (u⁻¹.val • inclMatrix A Subtype.val *ᵥ t.1)) (hB : F.floorModulus a u * (Γ.loss ^ (j + 2) * I) ≤ B := by simp [floorModulus] ring_nf gcongr <;> simp) (hΨ : Measurable Ψ := by fun_prop) : ∫⁻ n : T.G, Φ n ∂heisenbergMeasure a ≤ C * B := by -- Scale the coordinates `ω` of `V_(a+1)` by `u`, and integrate first over the skew variable. let D : Matrix {k : 𝔰.BesselIndex // a + 1 ≤ floorOf k} {k : 𝔰.BesselIndex // a + 1 ≤ floorOf k} A := u.val • 1 have hD : IsUnit D.det := by simp [D, IsUnit.pow] set r : ℕ := 𝔰.k + 1 + 2 * (𝔰.ϱ - (a + 1)) have h_jacobian : Place.modulus D.det = Place.modulus u.val ^ r := by rw [det_smul, det_one, mul_one, card_subtype_succ_le_floorOf_eq, map_pow] let χ : (𝔰.BesselIndex → A) → ℝ≥0∞ := (Γ.vecsOfSize j).indicator (C * Ψ ·) have hχ : Measurable χ := .indicator (by fun_prop) measurableSet_vecsOfSize have h_integral : ∫⁻ v : {k : 𝔰.BesselIndex // a + 1 ≤ floorOf k} → A, χ (inclMatrix A Subtype.val *ᵥ v) ≤ C * I := calc _ = ∫⁻ x, χ x ∂FloorGroups.floorVolume a.succ := (lintegral_map hχ (by fun_prop)).symm _ ≤ C * I := by grw [lintegral_indicator_le, lintegral_const_mul C hΨ, hI] calc ∫⁻ n : T.G, Φ n ∂heisenbergMeasure a ≤ ∫⁻ ω, ∫⁻ β, Φ (heisenbergElem a (ω, β)) ∂skewMeasure := by rw [heisenbergMeasure, dite_eq_left a.isLt] grw [lintegral_map_le _ (by fun_prop), lintegral_prod_le] _ ≤ Place.modulus u.val ^ r * ∫⁻ v, ∫⁻ β, Φ (heisenbergElem a (D *ᵥ v, β)) ∂skewMeasure := by grw [lintegral_eq_mul_lintegral_map (map_mulVec_volume _ D hD) (by simp [h_jacobian]) (by simp [h_jacobian]), lintegral_map_le _ (by fun_prop), h_jacobian] _ ≤ Place.modulus u.val ^ r * ∫⁻ v : {k : 𝔰.BesselIndex // a + 1 ≤ floorOf k} → A, Place.modulus u.val ^ (2⁻¹ : ℝ) * (Γ.loss ^ (j + 2) * χ (inclMatrix A Subtype.val *ᵥ v)) := by gcongr with v simpa [D, smul_mulVec] using lintegral_heisenbergElem_skewMeasure_le u hΦ v _ ≤ F.floorModulus a u * (Γ.loss ^ (j + 2) * (C * I)) := by grw [lintegral_const_mul' _ _ (by simp), lintegral_const_mul' _ _ (by simp [loss_ne_top]), h_integral, floorModulus, mul_assoc] _ ≤ C * B := by grw [← hB, mul_left_comm C, mul_left_comm C] end Gauge /-! ### Sections of the isotropic cones -/ /-- The vector c n⁻¹ e*_a. For n in the Heisenberg group of floor a it is a point of the section ⟨e_a, y⟩ = c of the isotropic cone of Y^(a). -/ noncomputable def sectionPoint (a : Fin 𝔰.ϱ) (c : A) (n : T.G) : 𝔰.BesselIndex → A := c • n⁻¹.val.val *ᵥ Pi.single (eStar a) 1 /-- The measure dy / dc = |c|^r dn of the section ⟨e_a, y⟩ = c, where r is the rank of Y^(a+1), |c| = `modulus c`, and dn is `heisenbergMeasure a` carried over by `sectionPoint a c`. -/ noncomputable def sectionMeasure (T : 𝔰.Form A) [IsHermitianUnit T.splitGram] (a : Fin 𝔰.ϱ) (c : A) : Measure (𝔰.BesselIndex → A) := modulus c ^ (𝔰.k + 1 + 2 * (𝔰.ϱ - (a + 1))) • (heisenbergMeasure a).map (sectionPoint (T := T) a c) omit [IsHermitianUnit T.splitGram] in @[fun_prop] lemma measurable_sectionPoint (c : A) : Measurable (sectionPoint (T := T) a c) := by unfold sectionPoint fun_prop omit [TopologicalSpace A] [MeasureSpace A] [Place A] [IsHermitianUnit T.splitGram] in /-- Let w = `floorWeyl a c` be the Weyl element of floor a that sends e_a to c e*_a, for a unit c. Then the point (w⁻¹ n)⁻¹ e_a of the orbit of e_a is c n⁻¹ e*_a = `sectionPoint a c n`. -/ lemma orbitPoint_floorWeyl_inv_mul (c : Aˣ) (n : T.G) : orbitPoint a.castSucc ((floorWeyl a c.val)⁻¹ * n) = sectionPoint a c.val n := by have h_weyl : (floorWeyl a c.val : T.G).val.val *ᵥ Pi.single (inl a) 1 = c.val • Pi.single (eStar a) 1 := by ext k simp [floorWeyl, weylOn, BesselIndex.level, Pi.single_apply] simp [orbitPoint, sectionPoint, ← mulVec_mulVec, -mulVec_single, h_weyl, mulVec_smul] /-- The measure `F.floorQuadricMeasure a.castSucc` of the isotropic cone of Y^(a) is dc times the measures `sectionMeasure T a c` of its sections ⟨e_a, y⟩ = c, where the product is that of the form `T` over `A` and e_a is the a-th isotropic basis vector. -/ lemma PlaceData.lintegral_floorQuadricMeasure_eq {f : (𝔰.BesselIndex → A) → ℝ≥0∞} (hf : Measurable f) : ∫⁻ y : 𝔰.BesselIndex → A, f y ∂F.floorQuadricMeasure a.castSucc = ∫⁻ c : A, ∫⁻ y : 𝔰.BesselIndex → A, f y ∂sectionMeasure T a c := by -- The measure of the cone is the image under `orbitPoint` of the floor measure, which is the -- Weyl law convolved with the Heisenberg measure. have h_floor : F.floorMeasure a.castSucc = weylLaw a ∗ₘ heisenbergMeasure a := by simp [floorMeasure] rw [← (measurePreserving_orbitPoint (F := F) a.castSucc).lintegral_comp hf, h_floor, lintegral_mconv (by fun_prop), weylLaw, lintegral_map (by fun_prop) (by fun_prop), lintegral_withDensity_eq_lintegral_mul _ (by fun_prop) (by fun_prop)] -- Almost every `c` is a unit, and for a unit the inner integrals agree. refine lintegral_congr_ae (ae_isUnit.mono ?_) rintro _ ⟨c, rfl⟩ simp only [sectionMeasure, lintegral_smul_measure, lintegral_map hf (measurable_sectionPoint _), ← orbitPoint_floorWeyl_inv_mul, Pi.mul_apply, smul_eq_mul] /-- The coordinates of a point of a section: for the Heisenberg element n = `heisenbergElem a t` with t = (ω, β), the point c n⁻¹ e*_a is c (e*_a - ω) plus a multiple of c e_a. Here ω is extended by zero to the floors at most a. -/ lemma exists_sectionPoint_heisenbergElem_eq (c : A) (t : ({k : 𝔰.BesselIndex // a + 1 ≤ floorOf k} → A) × skewAdjoint A) : ∃ μ : A, sectionPoint a c (heisenbergElem (T := T) a t) = c • (Pi.single (eStar a) 1 - inclMatrix A Subtype.val *ᵥ t.1 + μ • Pi.single (inl a) 1) := by rw [sectionPoint, heisenbergElem_inv, heisenbergElem_mulVec, Pi.single_eq_same, one_smul, mulVec_neg, ← sub_eq_add_neg] exact ⟨_, rfl⟩ section omit [TopologicalSpace A] [MeasureSpace A] [Place A] [IsHermitianUnit T.splitGram] /-- If n fixes the basis vectors of floor below a, the coordinates of floor below a of the vector c n⁻¹ e*_a = `sectionPoint a c n` vanish. -/ lemma sectionPoint_apply_eq_zero_of_floorOf_lt {c : A} {n : T.G} {k : 𝔰.BesselIndex} (hn : n ∈ floorGroup a) (hk : floorOf k < a) : sectionPoint a c n k = 0 := by have h_ne : k ≠ eStar a := fun h ↦ by simp [h] at hk have h_entry : n⁻¹.val.val k (eStar a) = 0 := by rw [apply_eq_one_apply_of_mem_floorGroup (inv_mem hn) k _ (.inl ⟨hk, hk.trans a.isLt⟩), one_apply_ne h_ne] rw [sectionPoint, mulVec_single_one, Pi.smul_apply, col_apply, h_entry, smul_zero] /-- Let the isometry n of the form `T` fix the basis vectors of floor below a (`floorGroup a`), and let z be congruent to the point c n⁻¹ e*_a = `sectionPoint a c n` modulo the e_b with b < a (`CongrBelow a`). If all entries of z have size j for the scale `S` (`S.vecsOfSize j`), then so have those of the point, whose coordinates of floor below a vanish. -/ lemma Size.sectionPoint_mem_vecsOfSize {S : Size T} {c : A} {n : T.G} {z : 𝔰.BesselIndex → A} (hn : n ∈ floorGroup a) (hz : CongrBelow a (sectionPoint a c n) z) (h_size : z ∈ S.vecsOfSize j) : sectionPoint a c n ∈ S.vecsOfSize j := by intro k by_cases hk : a.val ≤ BesselIndex.level k · rw [← hz k hk] exact h_size k · have h_floor : floorOf k < a := by grind [floorOf_level_cases k] simp [sectionPoint_apply_eq_zero_of_floorOf_lt hn h_floor, S.zero_one_mem_ofSize] open BesselIndex in /-- Let p be a sequence of units and a < l. The Weyl element w_p = `weylElem l p` sends e_a to p_a e*_a, so the coordinate of w_p v at e*_a (index `eStar a`) is p_a times the coordinate of v at e_a (index `inl a`). -/ lemma weylElem_mulVec_eStar {l : ℕ} (ha : a < l) (v : 𝔰.BesselIndex → A) : ((weylElem l p : T.G).val.val *ᵥ v) (eStar a) = p a * v (inl a) := by -- The row of `w_p` at `e*_a` has its only nonzero entry in the column of `e_a`. have h_zero (k : 𝔰.BesselIndex) (hk : k ≠ inl a) : (weylElem l p : T.G).val.val (eStar a) k = 0 := by have h_ne : eStar a ≠ if floorOf k < l ∧ floorOf k < 𝔰.ϱ then oppositeIndex k else k := by split_ifs with h_swap · intro h have h_opp : oppositeIndex (oppositeIndex k) = oppositeIndex (eStar a) := by rw [← h] exact hk (by simpa [oppositeIndex_involutive_and_floorOf_level] using h_opp) · exact fun h ↦ h_swap (by simp [← h, ha]) simp [weylElem, weylOn, h_ne] have h_entry : (weylElem l p : T.G).val.val (eStar a) (inl a) = p a := by simp [weylElem, weylOn, level, ha] rw [mulVec_apply_eq_sum, Fintype.sum_eq_single (inl a) fun k hk ↦ by rw [h_zero k hk, zero_mul], h_entry] open BesselIndex in /-- For the Weyl element w_p = `weylElem (a + 1) p` of the first a + 1 hyperbolic pairs and an isometry σ, the point (w_p σ)⁻¹ e_a of the orbit of e_a is (star p_a) σ⁻¹ e*_a. -/ lemma orbitPoint_weylElem_mul (σ : T.G) : orbitPoint a.castSucc (weylElem (a + 1) p * σ) = star (p a).val • σ⁻¹.val.val *ᵥ Pi.single (eStar a) 1 := by have h_weyl : (weylElem (a + 1) p : T.G)⁻¹.val.val *ᵥ Pi.single (inl a) 1 = star (p a).val • Pi.single (eStar a) 1 := by ext k simp [weylElem, weylOn, level, Pi.single_apply] simp [orbitPoint, ← mulVec_mulVec, -mulVec_single, mulVec_smul, -Subgroup.coe_inv, -InvMemClass.coe_inv, h_weyl] /-- For n in G^(a) = `floorGroup a`, ν in U_(