Riemann hypothesis: the Lean proof, cleaned up together
The 2026 Lean proof of the Riemann hypothesis and GRH, machine-checked by others, not refereed, no word from Clay; cleaned up together: more readable, faster to build, the theorems unchanged

| 1 | module |
| 2 | |
| 3 | import Mathlib.Algebra.Order.Star.Int |
| 4 | import Mathlib.Algebra.Order.Star.Real |
| 5 | import TauCeti.Analysis.Real.Sqrt |
| 6 | public import New.Spanning.RemainingTerms.Size |
| 7 | public import New.Spanning.Unfolding.Climbing |
| 8 | import Lib.Adelic.Unitary.CongruenceLevels |
| 9 | import New.Spanning.RemainingTerms.Sum |
| 10 | |
| 11 | /-! |
| 12 | # The expansion of the squares and the second moment near the Bessel subgroup |
| 13 | |
| 14 | This file proves the expansion of the squares and the bound on the second moment near `R̄₀`, where |
| 15 | `R̄₀ = reducedImage besselS` is the reduction of the Bessel subgroup. These results concern the |
| 16 | operators `P_s = P* s P`, stated in terms of their blocks. The terms in the Bessel subgroup give the |
| 17 | operator `r_ψ(s)`, which is `New.Filling.besselTranslate`, and the terms off it give `P_s - r_ψ(s)`. |
| 18 | Along the way it treats the terms of cell rank `0` and the cosets `ζ R̄₀` by integral `ζ ∈ E` with |
| 19 | `ζ ζ̄ = 1`, called roots of unity (these are the roots of unity of `E`, by Kronecker's theorem), and |
| 20 | it computes the blocks of the Bessel subgroup. |
| 21 | |
| 22 | ## Main definitions and results |
| 23 | |
| 24 | * `New.Filling.sqrt_secondMoment_compl_besselS_le`: the expansion of the squares. |
| 25 | * `New.Filling.secondMoment_compl_besselS_le`: `P_s` is close to `r_ψ(s)` near `R̄₀`. |
| 26 | |
| 27 | Notions from other files: |
| 28 | * `termsOver c s c'`: the rational `γ` such that `h_c⁻¹ γ h_c'` (`translateByClassReps`) is integral |
| 29 | with reduction `s`; such a `γ` lies over the block `(c, s, c')`. |
| 30 | * `amplitudeSum side T c s c'`: the sum of the amplitudes of the elements of `T` over that block. |
| 31 | * `secondMoment A Ω`: the sum of `‖A c s c'‖² / unipotentCovolume²` over all classes `c`, `c'` and |
| 32 | `s ∈ Ω`. |
| 33 | * `reducedImage A`: the image in the finite group `ResidueGL` of the integral elements of `A`. |
| 34 | -/ |
| 35 | |
| 36 | @[expose] public section |
| 37 | |
| 38 | namespace New |
| 39 | |
| 40 | open Matrix Complex Module InnerProductSpace EuclideanSpace Finset Fintype |
| 41 | |
| 42 | section Scalars |
| 43 | |
| 44 | variable {R n : Type} [CommRing R] [StarRing R] [Fintype n] [DecidableEq n] (J : Matrix n n R) |
| 45 | |
| 46 | /-- A scalar `ζ` with `ζ ζ̄ = 1` as an isometry of the form `J`. -/ |
| 47 | noncomputable def scalarIsometry (ζ : R) (hζ : ζ * star ζ = 1) : U J := |
| 48 | ⟨⟨ζ • 1, star ζ • 1, by simp [smul_smul, mul_comm, hζ], by simp [smul_smul, hζ]⟩, |
| 49 | mem_unitaryGroupOf_iff.2 <| show (ζ • 1)ᴴ * J * (ζ • 1) = J by simp [smul_smul, hζ]⟩ |
| 50 | |
| 51 | lemma scalarIsometry_one (h : (1 : R) * star 1 = 1) : scalarIsometry J 1 h = 1 := by |
| 52 | ext : 2 |
| 53 | simp [scalarIsometry] |
| 54 | |
| 55 | /-- For `ζ ζ̄ = 1` and an isometry `g` of `J`, the matrix of `ζ⁻¹ g` is `ζ̄` times that of `g`. -/ |
| 56 | lemma val_scalarIsometry_inv_mul {ζ : R} (hζ : ζ * star ζ = 1) (g : U J) : |
| 57 | (((scalarIsometry J ζ hζ)⁻¹ * g : U J) : GL n R).val = star ζ • (g : GL n R).val := by |
| 58 | simp [scalarIsometry] |
| 59 | |
| 60 | end Scalars |
| 61 | |
| 62 | /-- Let `ϱ > 0`, so that the first frame vector `e₁` is orthogonal to the frame. If `g` maps `e₁` to |
| 63 | a multiple of itself, then the leading minors of positive size of `frameGram g`, the matrix of the |
| 64 | products of the frame with its image under `g`, vanish. -/ |
| 65 | lemma leadingMinor_frameGram_eq_zero {R : Type} [CommRing R] {𝔰 : Shape} (T : 𝔰.Form R) |
| 66 | (hϱ : 0 < 𝔰.ϱ) {g : Matrix 𝔰.BesselIndex 𝔰.BesselIndex R} |
| 67 | (hg : ∀ j : 𝔰.BesselIndex, j ≠ 𝔰.besselFrame 0 → g j (𝔰.besselFrame 0) = 0) |
| 68 | {l : Fin (𝔰.ϱ + 2)} (hl : 0 < l.val) : leadingMinor (T.frameGram g) l = 0 := by |
| 69 | have h_orth (b : Fin (𝔰.ϱ + 1)) : T.splitGram (𝔰.besselFrame b) (𝔰.besselFrame 0) = 0 := by |
| 70 | rw [show 𝔰.besselFrame 0 = .inl ⟨0, hϱ⟩ from besselFrame_castSucc ⟨0, hϱ⟩] |
| 71 | cases b using Fin.lastCases <;> simp [splitGram] |
| 72 | have h_col (b : Fin (𝔰.ϱ + 1)) : T.frameGram g b 0 = 0 := by |
| 73 | rw [Shape.Form.frameGram, submatrix_apply, Matrix.mul_apply, |
| 74 | Fintype.sum_eq_single (𝔰.besselFrame 0) |
| 75 | fun j hj ↦ by rw [hg j hj, mul_zero], h_orth, zero_mul] |
| 76 | exact det_eq_zero_of_column_eq_zero ⟨0, hl⟩ fun a ↦ h_col (Fin.castLE l.is_le a) |
| 77 | |
| 78 | /-- A real function `β` of positive type on a group, that is, with `β (a⁻¹ b) = ⟪u a, u b⟫` for |
| 79 | vectors `u a` of an inner product space, is largest at `1`. -/ |
| 80 | lemma le_apply_one_of_inner_eq {G V : Type*} [Group G] [NormedAddCommGroup V] |
| 81 | [InnerProductSpace ℂ V] {β : G → ℝ} {u : G → V} |
| 82 | (h_posType : ∀ a b : G, ⟪u a, u b⟫_ℂ = β (a⁻¹ * b)) (s : G) : β s ≤ β 1 := by |
| 83 | have h_norm (a : G) : ‖u a‖ ^ 2 = β 1 := by |
| 84 | rw [norm_sq_eq_re_inner (𝕜 := ℂ), h_posType, inv_mul_cancel, RCLike.re_to_complex, ofReal_re] |
| 85 | calc β s = RCLike.re ⟪u 1, u s⟫_ℂ := by simp [h_posType] |
| 86 | _ ≤ ‖u 1‖ * ‖u s‖ := re_inner_le_norm (u 1) (u s) |
| 87 | _ ≤ β 1 := by linarith [two_mul_le_add_sq ‖u 1‖ ‖u s‖, h_norm 1, h_norm s] |
| 88 | |
| 89 | open scoped Classical in |
| 90 | /-- The sum of `β` over the elements of a subgroup `H` with the property `p`, read in the whole |
| 91 | group. -/ |
| 92 | lemma sum_subgroup_filter {G : Type*} [Group G] [Fintype G] (H : Subgroup G) (p : G → Prop) |
| 93 | (β : G → ℝ) : ∑ s : H with p s.val, β s.val = ∑ s : G with s ∈ H ∧ p s, β s := by |
| 94 | rw [← filter_filter, sum_filter, sum_filter p, sum_subtype (p := (· ∈ H)) _ (by simp)] |
| 95 | |
| 96 | /-- If row `j` of `M` vanishes before the index `b`, and `v` vanishes after `b` and is `1` at `b`, |
| 97 | then the entry `j` of `M v` is `M j b`. -/ |
| 98 | lemma mulVec_apply_eq_of_eq_zero_of_lt {R m n : Type*} [Semiring R] [Fintype n] [LinearOrder n] |
| 99 | {M : Matrix m n R} {v : n → R} {j : m} {b : n} (hM : ∀ a : n, a < b → M j a = 0) |
| 100 | (hv : ∀ a : n, b < a → v a = 0) (hb : v b = 1) : (M *ᵥ v) j = M j b := by |
| 101 | rw [mulVec_apply_eq_sum, Fintype.sum_eq_single b, hb, mul_one] |
| 102 | intro a ha |
| 103 | obtain h | h := ha.lt_or_gt <;> simp [hM, hv, h] |
| 104 | |
| 105 | variable {E : Type} [Field E] [CMType E] {𝔰 : Shape} {S : Filling E 𝔰} |
| 106 | |
| 107 | /-- Suppose that for every index `a` the frame and its image under `γ` have a common vector that is |
| 108 | a combination of their vectors up to `a`, with coefficient `1` at `a` in both |
| 109 | (`PairOccursAt`). Then `γ` lies in the Bessel subgroup. -/ |
| 110 | lemma mem_besselS_of_pairOccursAt {γ : S.G E} |
| 111 | (h_pairs : ∀ a : Fin (𝔰.ϱ + 1), PairOccursAt γ 1 1 a) : γ ∈ besselS := by |
| 112 | -- By induction on `b`, the vector `γ e_b` is `e_b` plus earlier frame vectors. |
| 113 | have h_col (j : 𝔰.BesselIndex) (b : Fin (𝔰.ϱ + 1)) (hb : b.val ≤ BesselIndex.level j) : |
| 114 | frameImage (γ : GL 𝔰.BesselIndex E).val j b = frameImage 1 j b := by |
| 115 | induction b using WellFoundedLT.induction with | ind b ih |
| 116 | obtain ⟨x, y, hxy, hx, hy, h_zero⟩ := h_pairs b |
| 117 | -- In row `j` of the relation at index `b` only the two terms at `b` remain. |
| 118 | have h_one (a : Fin (𝔰.ϱ + 1)) (ha : a < b) : |
| 119 | frameImage (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex E) j a = 0 := |
| 120 | one_apply_ne fun hj : j = _ ↦ ha.not_ge (by rwa [hj, level_besselFrame] at hb) |
| 121 | have h_γ (a : Fin (𝔰.ϱ + 1)) (ha : a < b) : frameImage (γ : GL _ E).val j a = 0 := by |
| 122 | rw [ih a ha (le_trans ha.le hb), h_one a ha] |
| 123 | rw [← mulVec_apply_eq_of_eq_zero_of_lt h_γ (fun a ha ↦ (h_zero a ha).2) hy, |
| 124 | ← mulVec_apply_eq_of_eq_zero_of_lt h_one (fun a ha ↦ (h_zero a ha).1) hx, hxy] |
| 125 | exact Filling.mem_besselS_iff_frameImage.2 h_col |
| 126 | |
| 127 | /-- If the first frame vector satisfies `ζ e₁ = γ e₁` in the form of `PairOccursAt` at the |
| 128 | index `0`, then `ζ` is the diagonal entry of `γ` at `e₁`. -/ |
| 129 | lemma PairOccursAt.apply_besselFrame_zero {γ : S.G E} {ζ : E} |
| 130 | (h_pair : PairOccursAt γ ζ 1 0) : |
| 131 | (γ : GL 𝔰.BesselIndex E).val (𝔰.besselFrame 0) (𝔰.besselFrame 0) = ζ := by |
| 132 | obtain ⟨x, y, hxy, hx, hy, h_zero⟩ := h_pair |
| 133 | simpa [mulVec_eq_sum, Fin.sum_univ_succ, hx, hy, h_zero, Matrix.one_apply] using |
| 134 | congrFun hxy.symm (𝔰.besselFrame 0) |
| 135 | |
| 136 | /-- Let `ζ ζ̄ = 1`. If the frame and its image under `γ` have common vectors with leading |
| 137 | coefficients `ζ` and `1` at every index, then `ζ⁻¹ γ` lies in the Bessel subgroup. -/ |
| 138 | lemma scalarIsometry_inv_mul_mem_besselS {γ : S.G E} {ζ : E} (hζ : ζ * star ζ = 1) |
| 139 | (h_pairs : ∀ a : Fin (𝔰.ϱ + 1), PairOccursAt γ ζ 1 a) : |
| 140 | (scalarIsometry (S.ratMiddle E).splitGram ζ hζ)⁻¹ * γ ∈ (S.ratMiddle E).besselS := by |
| 141 | refine mem_besselS_of_pairOccursAt fun a ↦ ?_ |
| 142 | obtain ⟨x, y, hxy, hx, hy, h_zero⟩ := h_pairs a |
| 143 | refine ⟨star ζ • x, y, ?_, by simp [hx, mul_comm, hζ], hy, fun b hb ↦ by simp [h_zero b hb]⟩ |
| 144 | have h_smul : frameImage (star ζ • (γ : GL 𝔰.BesselIndex E).val) = |
| 145 | star ζ • frameImage (γ : GL 𝔰.BesselIndex E).val := rfl |
| 146 | rw [mulVec_smul, hxy, val_scalarIsometry_inv_mul, h_smul, smul_mulVec] |
| 147 | |
| 148 | namespace Filling |
| 149 | |
| 150 | /-! ### Terms of cell rank `0` and scalar cosets -/ |
| 151 | |
| 152 | /-- For `γ` in the Bessel subgroup and classes `c`, `c'` with representatives `h_c`, `h_c'`, the |
| 153 | finite adelic element `h_c⁻¹ γ h_c'` lies in the Bessel subgroup. -/ |
| 154 | lemma translateByClassReps_mem_besselS {γ : S.G E} (hγ : γ ∈ besselS) (c c' : S.Classes) : |
| 155 | S.translateByClassReps c c' γ ∈ besselS := by |
| 156 | obtain ⟨u, hu, η, rfl⟩ := exists_besselU_mul_toBesselH hγ |
| 157 | have h_rep (k : Gf E 𝔰.κ) : S.inclHFin k ∈ besselS := |
| 158 | mem_partialUnitriangularGroup_of_mem_floorGroup (inclHFin_mem_besselH k) |
| 159 | -- The representatives `h_c`, `h_c'` are values of `inclHFin`. |
| 160 | refine mul_mem (mul_mem (inv_mem (h_rep _)) ?_) (h_rep _) |
| 161 | rw [map_mul, ratToFin_toBesselH] |
| 162 | exact mul_mem (mem_partialUnitriangularGroup_of_mem_besselU (ratToFin_mem_besselU_iff.2 hu)) |
| 163 | (h_rep _) |
| 164 | |
| 165 | /-- If `h_c⁻¹ γ h_c' = translateByClassReps c c' γ` is an element `k` of the stabilizer of the |
| 166 | lattice, then the diagonal entry of `γ` at the first frame vector `e₁` is integral, being the same |
| 167 | entry of `k`. -/ |
| 168 | lemma apply_besselFrame_zero_mem_Ô {γ : S.G E} {c c' : S.Classes} {k : S.latticeStabilizer} |
| 169 | (hk : (k : S.GFin) = S.translateByClassReps c c' γ) : |
| 170 | ((γ : GL 𝔰.BesselIndex E).val (𝔰.besselFrame 0) (𝔰.besselFrame 0) : 𝔸f E) ∈ Ô E := by |
| 171 | have h_first : 𝔰.besselFrame 0 = .inl ⟨0, pos_of_gt S.ten_pow_five_le_varrho⟩ := |
| 172 | besselFrame_castSucc ⟨0, _⟩ |
| 173 | have h_frame : frameImage ((k : S.GFin) : GL 𝔰.BesselIndex (𝔸f E)).val = |
| 174 | S.classCoord c * finAdeleMatrix (frameImage (γ : GL 𝔰.BesselIndex E).val) := by |
| 175 | rw [hk, frameImage_translateByClassReps] |
| 176 | have h_entry : (k : S.GFin).val (𝔰.besselFrame 0) (𝔰.besselFrame 0) = |
| 177 | ((γ : GL 𝔰.BesselIndex E).val (𝔰.besselFrame 0) (𝔰.besselFrame 0) : 𝔸f E) := by |
| 178 | simpa [classCoord_eq_fromBlocks, Matrix.mul_apply, Matrix.one_apply, h_first] |
| 179 | using congrFun₂ h_frame (𝔰.besselFrame 0) 0 |
| 180 | rw [← h_entry] |
| 181 | exact k.property.isIntMatrix _ _ |
| 182 | |
| 183 | /-- If the matrix of an element `z` of the stabilizer of the lattice is the scalar `ζ`, an integral |
| 184 | adele, then its reduction at a chosen place `w` is the residue of `ζ` at `w`. -/ |
| 185 | lemma val_reduction_of_eq_smul_one {z : S.latticeStabilizer} {ζ : Ô E} |
| 186 | (hz : ((z : S.GFin) : GL 𝔰.BesselIndex (𝔸f E)).val = (ζ : 𝔸f E) • 1) |
| 187 | (i : Fin 2) (w : S.chosenPlaces i) : |
| 188 | (S.reduction z i w).val = New.reduceAt (w : FinPlace E) ζ • 1 := by |
| 189 | ext a b |
| 190 | change New.reduceAt (w : FinPlace E) ⟨((z : S.GFin) : GL 𝔰.BesselIndex (𝔸f E)).val a b, _⟩ = _ |
| 191 | by_cases hab : a = b <;> simp [hz, hab] |
| 192 | |
| 193 | /-- The classes `c`, `c'` are double cosets of the unitary group of the middle space `X₀`, with |
| 194 | representatives `h_c`, `h_c'`; a rational `γ` lies over the block `(c, s, c')` (`termsOver`) if |
| 195 | `h_c⁻¹ γ h_c'` is integral with reduction `s`. Let such a `γ` have norm-one pairs occurring from |
| 196 | level `0`: for one `ζ` with `ζ ζ̄ = 1`, the frame and its image under `γ` have common vectors with |
| 197 | leading coefficients `ζ`, `1` at every index. Then there is an integral `ζ` with `ζ ζ̄ = 1` such |
| 198 | that `γ` lies in `ζ` times the Bessel subgroup and `s` in `ζ` times the reduction of the Bessel |
| 199 | subgroup (`InScalarCoset`). -/ |
| 200 | lemma exists_scalar_mul_besselS {γ : S.G E} {c c' : S.Classes} {s : S.ResidueGL} |
| 201 | (hγ : γ ∈ S.termsOver c s c') (h_pair : NormOnePairOccursFrom 0 γ) : |
| 202 | ∃ (ζ : E) (hζ : ζ * star ζ = 1) (h_int : (ζ : 𝔸f E) ∈ Ô E), |
| 203 | (∃ γ₀ ∈ besselS, γ = scalarIsometry (S.ratMiddle E).splitGram ζ hζ * γ₀) ∧ |
| 204 | S.InScalarCoset ⟨ζ, h_int⟩ s := by |
| 205 | obtain ⟨k, rfl, hk⟩ : |
| 206 | ∃ k : S.latticeStabilizer, S.reduction k = s ∧ (k : S.GFin) = S.translateByClassReps c c' γ := |
| 207 | hγ |
| 208 | obtain ⟨ζ, hζ, h_flag⟩ : ∃ ζ : E, ζ * star ζ = 1 ∧ |
| 209 | ∀ a : Fin (𝔰.ϱ + 1), 0 ≤ a.val → PairOccursAt γ ζ 1 a := h_pair |
| 210 | -- `ζ` is the coefficient of `γ e₁ = ζ e₁`, an entry of the integral matrix `k`. |
| 211 | have h_int : (ζ : 𝔸f E) ∈ Ô E := by |
| 212 | simpa only [(h_flag 0 bot_le).apply_besselFrame_zero] using apply_besselFrame_zero_mem_Ô hk |
| 213 | let γ₀ : S.G E := (scalarIsometry (S.ratMiddle E).splitGram ζ hζ)⁻¹ * γ |
| 214 | have hγ₀ : γ₀ ∈ besselS := scalarIsometry_inv_mul_mem_besselS hζ fun a ↦ h_flag a bot_le |
| 215 | -- The scalar `ζ` as an element `z` of the stabilizer of the lattice; `k = z k₀`. |
| 216 | have hζ_fin : (ζ : 𝔸f E) * star (ζ : 𝔸f E) = 1 := by |
| 217 | simpa using congrArg (algebraMap E (𝔸f E)) hζ |
| 218 | let z : S.latticeStabilizer := ⟨scalarIsometry _ (ζ : 𝔸f E) hζ_fin, |
| 219 | mem_intGL.2 ⟨IsIntMatrix.smul h_int .one, IsIntMatrix.smul (star_mem_Ô h_int) .one⟩⟩ |
| 220 | let k₀ : S.latticeStabilizer := z⁻¹ * k |
| 221 | have hk₀ : (k₀ : S.GFin) = S.translateByClassReps c c' γ₀ := by |
| 222 | refine Subtype.ext (Units.ext ?_) |
| 223 | have hk₀_val : ((k₀ : S.GFin) : GL 𝔰.BesselIndex (𝔸f E)).val = |
| 224 | star (ζ : 𝔸f E) • ((k : S.GFin) : GL 𝔰.BesselIndex (𝔸f E)).val := |
| 225 | val_scalarIsometry_inv_mul _ hζ_fin (k : S.GFin) |
| 226 | have hγ₀_val : (γ₀ : GL 𝔰.BesselIndex E).val = star ζ • (γ : GL 𝔰.BesselIndex E).val := |
| 227 | val_scalarIsometry_inv_mul _ hζ γ |
| 228 | rw [hk₀_val, hk, coe_translateByClassReps, coe_translateByClassReps] |
| 229 | simp [hγ₀_val] |
| 230 | have hk₀_mem : (k₀ : S.GFin) ∈ besselS := by |
| 231 | simpa [hk₀] using translateByClassReps_mem_besselS hγ₀ c c' |
| 232 | refine ⟨ζ, hζ, h_int, ⟨γ₀, hγ₀, (mul_inv_cancel_left _ γ).symm⟩, S.reduction k₀, |
| 233 | ⟨k₀, hk₀_mem, rfl⟩, fun i w ↦ ?_⟩ |
| 234 | calc (S.reduction k i w).val = (S.reduction z i w).val * (S.reduction k₀ i w).val := by |
| 235 | rw [← Units.val_mul, ← Pi.mul_apply, ← Pi.mul_apply, ← map_mul, mul_inv_cancel_left] |
| 236 | _ = New.reduceAt (w : FinPlace E) ⟨ζ, h_int⟩ • (S.reduction k₀ i w).val := by |
| 237 | rw [val_reduction_of_eq_smul_one (z := z) (ζ := ⟨ζ, h_int⟩) rfl, smul_one_mul] |
| 238 | |
| 239 | /-- An integral element of the Bessel subgroup fixes the first frame vector `e₁`. -/ |
| 240 | lemma apply_besselFrame_zero_of_mem_besselS {k : S.latticeStabilizer} (hk : (k : S.GFin) ∈ besselS) |
| 241 | (j : 𝔰.BesselIndex) : (k : S.GFin).val j (𝔰.besselFrame 0) = |
| 242 | (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex (𝔸f E)) j (𝔰.besselFrame 0) := |
| 243 | mem_besselS_iff_frameImage.1 hk j 0 bot_le |
| 244 | |
| 245 | /-- An element `t` of the reduction of the Bessel subgroup fixes the first frame vector modulo |
| 246 | every chosen place `w`: its column there is that of the identity matrix. -/ |
| 247 | lemma apply_besselFrame_zero_of_mem_reducedImage {t : S.ResidueGL} (ht : t ∈ S.reducedImage besselS) |
| 248 | (i : Fin 2) (w : S.chosenPlaces i) (j : 𝔰.BesselIndex) : |
| 249 | (t i w).val j (𝔰.besselFrame 0) = |
| 250 | (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex (ResField (w : FinPlace E))) j |
| 251 | (𝔰.besselFrame 0) := by |
| 252 | obtain ⟨k, hk, rfl⟩ := ht |
| 253 | simpa using reduction_apply_congr 1 i w (apply_besselFrame_zero_of_mem_besselS hk j) |
| 254 | |
| 255 | /-- Let `s` coincide, at the chosen places above `p_i`, with an element `t` of the reduction of the |
| 256 | Bessel subgroup. Then modulo each such place `w`, and modulo its conjugate (`isConj = true`), the |
| 257 | span of the frame and its image under `s` share a nonzero vector (`MeetsAt`), namely the first |
| 258 | frame vector. -/ |
| 259 | lemma meetsAt_of_eq_of_mem_reducedImage {s t : S.ResidueGL} (ht : t ∈ S.reducedImage besselS) |
| 260 | {i : Fin 2} (hs : s i = t i) (w : S.chosenPlaces i) (isConj : Bool) : |
| 261 | S.MeetsAt s (⟨i, w⟩, isConj) := by |
| 262 | obtain ⟨k, hk, rfl⟩ : ∃ k : S.latticeStabilizer, (k : S.GFin) ∈ besselS ∧ S.reduction k = t := ht |
| 263 | have h_action : S.actionAt s (⟨i, w⟩, isConj) = S.actionAt (S.reduction k) (⟨i, w⟩, isConj) := by |
| 264 | simp only [actionAt, hs] |
| 265 | refine ⟨Pi.single 0 1, Pi.single 0 1, by simp, funext fun j ↦ ?_⟩ |
| 266 | have h_col : (k : S.GFin).val j (𝔰.besselFrame 0) = if j = 𝔰.besselFrame 0 then 1 else 0 := by |
| 267 | rw [apply_besselFrame_zero_of_mem_besselS hk j, Matrix.one_apply] |
| 268 | rw [h_action, actionAt_reduction, mulVec_single_one, mulVec_single_one] |
| 269 | obtain rfl | hj := eq_or_ne j (𝔰.besselFrame 0) |
| 270 | · simp [h_col, ← Submonoid.one_def, Matrix.one_apply] |
| 271 | · simp [hj, h_col, ← ZeroMemClass.zero_def] |
| 272 | |
| 273 | /-- An element `s` of `ζ` times the reduction of the Bessel subgroup is not open (`IsOpenElement`): |
| 274 | at every chosen place the leading minor of size `1` of the products of the frame with its image |
| 275 | under `s` vanishes. -/ |
| 276 | lemma InScalarCoset.not_isOpenElement {ζ : Ô E} {s : S.ResidueGL} (hs : S.InScalarCoset ζ s) : |
| 277 | ¬S.IsOpenElement s := by |
| 278 | rintro ⟨w, hw⟩ |
| 279 | obtain ⟨t, ht, h_eq⟩ : ∃ t ∈ S.reducedImage besselS, ∀ (i : Fin 2) (v : S.chosenPlaces i), |
| 280 | (s i v).val = New.reduceAt (v : FinPlace E) ζ • (t i v).val := hs |
| 281 | have hϱ : 0 < 𝔰.ϱ := pos_of_gt S.ten_pow_five_le_varrho |
| 282 | have h_col (j : 𝔰.BesselIndex) (hj : j ≠ 𝔰.besselFrame 0) : |
| 283 | (s 0 w).val j (𝔰.besselFrame 0) = 0 := by |
| 284 | simp [h_eq, apply_besselFrame_zero_of_mem_reducedImage ht, hj] |
| 285 | exact hw ⟨1, Nat.succ_lt_succ hϱ⟩ (leadingMinor_frameGram_eq_zero _ hϱ h_col one_pos) |
| 286 | |
| 287 | lemma inScalarCoset_one {s : S.ResidueGL} (hs : s ∈ S.reducedImage besselS) : S.InScalarCoset 1 s := |
| 288 | ⟨s, hs, by simp⟩ |
| 289 | |
| 290 | /-- If `s` is not in the reduction of the Bessel subgroup, the terms in the Bessel subgroup |
| 291 | contribute `0` to every block `(c, s, c')`, as none of them lies over it. -/ |
| 292 | lemma amplitudeSum_besselS_eq_zero {side : FullOrCut} {s : S.ResidueGL} |
| 293 | (hs : s ∉ S.reducedImage besselS) |
| 294 | (c c' : S.Classes) : S.amplitudeSum side (S.ratMiddle E).besselS c s c' = 0 := by |
| 295 | have h_empty : IsEmpty ↥(((S.ratMiddle E).besselS : Set (S.G E)) ∩ S.termsOver c s c') := by |
| 296 | refine ⟨?_⟩ |
| 297 | rintro ⟨γ, hγ, k, rfl, hk⟩ |
| 298 | have hk_mem : (k : S.GFin) ∈ besselS := by |
| 299 | simpa [hk] using translateByClassReps_mem_besselS hγ c c' |
| 300 | exact hs ⟨k, hk_mem, rfl⟩ |
| 301 | rw [amplitudeSum, tsum_empty] |
| 302 | |
| 303 | /-- The complement of the Bessel subgroup is stable under multiplication by the unipotent group |
| 304 | `besselU` on both sides. -/ |
| 305 | lemma isStable_compl_besselS : |
| 306 | S.IsStable ((S.ratMiddle E).besselS : Set (S.G E))ᶜ := |
| 307 | fun u hu u' hu' γ ↦ (S.isStable_besselS u hu u' hu' γ).not |
| 308 | |
| 309 | /-- An integral `ζ ∈ E` |
| 310 | with `ζ ζ̄ = 1` that is `1` modulo every place of |
| 311 | `chosenPlaces i`, the finite places of norm `p_i = levelPrime i` chosen in `S`, is `1`. -/ |
| 312 | lemma eq_one_of_reduceAt_scalar_eq_one {ζ : E} |
| 313 | (hζ : ζ * star ζ = 1) (h_int : (ζ : 𝔸f E) ∈ Ô E) (i : Fin 2) |
| 314 | (h_residue : ∀ w : S.chosenPlaces i, New.reduceAt (w : FinPlace E) ⟨ζ, h_int⟩ = 1) : ζ = 1 := by |
| 315 | -- View `ζ` as an isometry `z` of the standard lattice of rank one and apply freeness to it. |
| 316 | let z : U (stdSpace E Unit).J := scalarIsometry (stdSpace E Unit).J ζ hζ |
| 317 | let x : Gf E Unit := 1⁻¹ * stdEmbFin z * 1 |
| 318 | have h_mem : x ∈ stdLevel E Unit := mem_stdLevel.2 fun _ _ ↦ by |
| 319 | simpa [x, z, scalarIsometry] using h_int |
| 320 | have h_red (w : S.chosenPlaces i) : stdLevel.reduceAt (w : FinPlace E) ⟨x, h_mem⟩ = 1 := by |
| 321 | ext |
| 322 | simpa [stdLevel.reduceAt, x, z, scalarIsometry] using h_residue w |
| 323 | have hz : z = 1 := S.eq_one_of_reduceAt_eq_one (by simp; linarith [S.thousand_mul_le_k]) i h_mem |
| 324 | h_red |
| 325 | simpa [z, scalarIsometry] using congrArg (fun g : U (stdSpace E Unit).J ↦ g.val () ()) hz |
| 326 | |
| 327 | /-- The product `k f` of the rank `k` of `X₀` and the number `f` of infinite places of `E` is at |
| 328 | least `40`. -/ |
| 329 | lemma forty_le_k_mul_numInfPlaces (S : Filling E 𝔰) : 40 ≤ 𝔰.k * Core.numInfPlaces E := |
| 330 | le_mul_of_le_of_one_le (by linarith [S.thousand_mul_le_k]) NeZero.one_le |
| 331 | |
| 332 | /-- The set `Ω` is disjoint from the cosets `ζ R̄₀` of the reduction `R̄₀` of the Bessel subgroup, |
| 333 | for all integral `ζ ≠ 1` in `E` with `ζ ζ̄ = 1`. -/ |
| 334 | def AvoidsScalarCosets (S : Filling E 𝔰) (Ω : Set S.ResidueGL) : Prop := |
| 335 | ∀ (ζ : E) (h_int : (ζ : 𝔸f E) ∈ Ô E), ζ * star ζ = 1 → ζ ≠ 1 → |
| 336 | ∀ s ∈ Ω, ¬S.InScalarCoset ⟨ζ, h_int⟩ s |
| 337 | |
| 338 | /-- Let `Ω` avoid the cosets of the reduction of the Bessel subgroup by the roots of unity `ζ ≠ 1`. |
| 339 | Then no `γ` off the Bessel subgroup that lies over a block `(c, s, c')` with `s ∈ Ω` has a norm-one |
| 340 | pair occurring from level `0`: such a `γ` is `ζ` times an element of the Bessel subgroup, and |
| 341 | `ζ = 1`. -/ |
| 342 | lemma AvoidsScalarCosets.not_normOnePairOccursFrom_zero {Ω : Set S.ResidueGL} |
| 343 | (hΩ : S.AvoidsScalarCosets Ω) |
| 344 | (γ : S.G E) (h_off : γ ∈ ((S.ratMiddle E).besselS : Set (S.G E))ᶜ) (c c' : S.Classes) |
| 345 | (s : S.ResidueGL) (hs : s ∈ Ω) (hγ : γ ∈ S.termsOver c s c') : ¬NormOnePairOccursFrom 0 γ := by |
| 346 | intro h_pair |
| 347 | obtain ⟨ζ, hζ, h_int, ⟨γ₀, hγ₀, rfl⟩, h_coset⟩ := exists_scalar_mul_besselS hγ h_pair |
| 348 | obtain rfl : ζ = 1 := by_contra fun h_ne ↦ hΩ ζ h_int hζ h_ne s hs h_coset |
| 349 | exact h_off (by simpa [scalarIsometry_one] using hγ₀) |
| 350 | |
| 351 | /-- An element `γ` of the Bessel subgroup has a norm-one pair occurring from level `0`: at every |
| 352 | index, the frame and its image under `γ` have a common vector with both leading coefficients `1`. -/ |
| 353 | lemma normOnePairOccursFrom_zero_of_mem_besselS {γ : S.G E} (hγ : γ ∈ besselS) : |
| 354 | NormOnePairOccursFrom 0 γ := by |
| 355 | refine ⟨1, by simp, fun a _ ↦ ?_⟩ |
| 356 | -- The vector `γ e_a` is `e_a` plus earlier frame vectors. |
| 357 | let F : Matrix 𝔰.BesselIndex (Fin (𝔰.ϱ + 1)) E := frameImage (γ : GL 𝔰.BesselIndex E).val |
| 358 | have h_col (i : 𝔰.BesselIndex) (hi : a.val ≤ BesselIndex.level i) : F i a = frameImage 1 i a := |
| 359 | mem_besselS_iff_frameImage.1 hγ i a hi |
| 360 | let x (b : Fin (𝔰.ϱ + 1)) : E := F (𝔰.besselFrame b) a |
| 361 | have hx (b : Fin (𝔰.ϱ + 1)) (hb : a ≤ b) : x b = if b = a then 1 else 0 := by |
| 362 | simpa [x, Matrix.one_apply, besselFrame_injective.eq_iff] using |
| 363 | h_col (𝔰.besselFrame b) (by rwa [level_besselFrame]) |
| 364 | -- It has no part in `X₀` or along the dual vectors. |
| 365 | have h_off (i : 𝔰.BesselIndex) (hi : 𝔰.ϱ ≤ BesselIndex.level i) (h_ne : i ≠ 𝔰.z) : |
| 366 | F i a = 0 := by |
| 367 | refine (h_col i (a.is_le.trans hi)).trans (one_apply_ne fun h : i = 𝔰.besselFrame a ↦ ?_) |
| 368 | rw [h, level_besselFrame] at hi |
| 369 | exact h_ne (by rw [h, Fin.last_le_iff.1 hi, besselFrame_top]) |
| 370 | have h_common : frameImage 1 *ᵥ x = F *ᵥ Pi.single a 1 := by |
| 371 | rw [frameImage_one_mulVec, mulVec_single_one] |
| 372 | -- The rows at `e₁, …, e_ϱ`, in `X₀`, at the last frame vector and at the dual vectors. |
| 373 | ext (b | (j | j) | b) |
| 374 | · simp [x, Fin.init] |
| 375 | · exact (h_off (.inr (.inl (.inl j))) le_rfl (by simp)).symm |
| 376 | · simp [x] |
| 377 | · exact (h_off (.inr (.inr b)) (show 𝔰.ϱ ≤ 2 * 𝔰.ϱ - b.val by lia) (by simp)).symm |
| 378 | exact ⟨x, Pi.single a 1, h_common, by simp [hx], by simp, fun b hb ↦ by simp [hx b hb.le, hb.ne']⟩ |
| 379 | |
| 380 | /-! ### The blocks of the Bessel subgroup -/ |
| 381 | |
| 382 | /-- Let `u` lie in the unipotent group `besselU`. At each infinite place `v`, let the image |
| 383 | `ratToInf η v` of `η` be `embedH (k v)`: the unitary matrix `k v` in `U(κ)` acts on `X₀` and the |
| 384 | other basis vectors are fixed. Then, for either `side` (full or cut), left translation by the image |
| 385 | of `u η` multiplies the values of `besselFn` by the tensor product (`kroneckerPi`) of the matrices |
| 386 | `rep (k v)` of the local Bessel systems `besselSystem v`, divided by `unipotentChar` of the finite |
| 387 | adelic image `ratToFin u`. -/ |
| 388 | lemma besselFn_mul_of_eq_embedH {side : FullOrCut} {u η : S.G E} (hu : u ∈ besselU) |
| 389 | {k : NumberField.InfinitePlace E → U (1 : Matrix 𝔰.κ 𝔰.κ ℂ)} |
| 390 | (hk : ∀ v : NumberField.InfinitePlace E, S.ratToInf η v = RealPlace.embedH (k v)) |
| 391 | (y : NumberField.InfinitePlace E → 𝔰.G₁) : |
| 392 | S.besselFn side (S.ratToInf (u * η) * y) = ((S.unipotentChar (S.ratToFin u))⁻¹ • |
| 393 | kroneckerPi fun v : NumberField.InfinitePlace E ↦ ((S.besselSystem v).rep (k v)).val) *ᵥ |
| 394 | S.besselFn side y := by |
| 395 | rw [map_mul, mul_assoc, besselFn_ratToInf_mul hu, smul_mulVec] |
| 396 | have h_map (v : NumberField.InfinitePlace E) (h : U (1 : Matrix 𝔰.κ 𝔰.κ ℂ)) (z : 𝔰.G₁) : |
| 397 | (S.besselSystem v).besselFn side (RealPlace.embedH h * z) = |
| 398 | toEuclideanCLM (𝕜 := ℂ) ((S.besselSystem v).rep h).1 ((S.besselSystem v).besselFn side z) := |
| 399 | ((S.besselSystem v).isCutPair.isBesselFunction side).map_unitary_mul h z |
| 400 | ext |
| 401 | simp [besselFn, hk, h_map, kroneckerPi, mulVec, dotProduct, Fintype.prod_sum, prod_mul_distrib] |
| 402 | |
| 403 | /-- For `side` either the full Bessel function or its cut, an element `γ` of the Bessel subgroup |
| 404 | `besselS` acts on the values of `besselFn side` by a unitary matrix. That is, there is a unitary `M` |
| 405 | indexed by `BesselCoord` with `besselFn side (ratToInf γ * y) = M *ᵥ besselFn side y` for all |
| 406 | `y`. -/ |
| 407 | lemma exists_unitary_besselFn_mul {side : FullOrCut} {γ : S.G E} (hγ : γ ∈ besselS) : |
| 408 | ∃ M ∈ unitaryGroup S.BesselCoord ℂ, ∀ y : NumberField.InfinitePlace E → 𝔰.G₁, |
| 409 | S.besselFn side (S.ratToInf γ * y) = M *ᵥ S.besselFn side y := by |
| 410 | obtain ⟨u, hu, η, hη, rfl⟩ := mem_besselS.1 hγ |
| 411 | choose k hk using fun v ↦ exists_eq_toBesselH (hη.ratToInf_mem_agreeWithOneOn v) isUnit_one |
| 412 | refine ⟨_, ?_, besselFn_mul_of_eq_embedH hu hk⟩ |
| 413 | -- A scalar of modulus one times a tensor product of unitary matrices is unitary. |
| 414 | have h_star : star (kroneckerPi fun v ↦ ((S.besselSystem v).rep (k v)).val) = |
| 415 | kroneckerPi fun v ↦ star ((S.besselSystem v).rep (k v)).val := |
| 416 | Matrix.ext fun _ _ ↦ by simp [kroneckerPi] |
| 417 | have h_norm : ‖S.unipotentChar (S.ratToFin u)‖ = 1 := norm_selfDualChar |
| 418 | rw [mem_unitaryGroup_iff, star_smul, smul_mul_smul_comm, h_star, ← kroneckerPi_mul, |
| 419 | Complex.star_def, mul_conj', norm_inv, h_norm] |
| 420 | simp [kroneckerPi_one] |
| 421 | |
| 422 | /-- If `σ` and `τ` act on the Bessel function by `M` and `N`, their translations on the two |
| 423 | arguments of the Bessel kernel act by the Kronecker product of `M` and the conjugate of `N`. -/ |
| 424 | lemma besselKernel_mul_mul_inv {side : FullOrCut} {σ τ : S.G E} |
| 425 | {M N : Matrix S.BesselCoord S.BesselCoord ℂ} |
| 426 | (hM : ∀ y, S.besselFn side (S.ratToInf σ * y) = M *ᵥ S.besselFn side y) |
| 427 | (hN : ∀ y, S.besselFn side (S.ratToInf τ * y) = N *ᵥ S.besselFn side y) |
| 428 | (γ : S.G E) (y : NumberField.InfinitePlace E → 𝔰.G₁) : |
| 429 | S.besselKernel side (σ * γ * τ⁻¹) (S.ratToInf σ * y) = |
| 430 | toEuclideanCLM (𝕜 := ℂ) (kronecker M (N.map star)) (S.besselKernel side γ y) := by |
| 431 | ext ⟨i, j⟩ |
| 432 | -- Expand the product of the two translated coordinates as a sum over pairs. |
| 433 | trans (M *ᵥ S.besselFn side y) i * star ((N *ᵥ S.besselFn side ((S.ratToInf γ)⁻¹ * y)) j) |
| 434 | · simp [besselKernel, hM, hN, mul_assoc] |
| 435 | · simp [besselKernel, mulVec, dotProduct, sum_prod_type, Fintype.sum_mul_sum, mul_mul_mul_comm] |
| 436 | |
| 437 | open scoped Classical in |
| 438 | /-- Let `E` contain a primitive `5040`-th root of unity and let the filling `S` be admissible |
| 439 | (`IsAdmissible`). The classes `c` index the double cosets of the unitary group of `X₀`, with |
| 440 | representatives `h_c`, and `termsOver c s c'` is the set of rational `γ` with `h_c⁻¹ γ h_c'` |
| 441 | integral of reduction `s`: these lie over the block `(c, s, c')`. Let `γ` in the Bessel subgroup |
| 442 | `besselS` lie over it and act on the values of the full Bessel function by the matrix `M`, whose |
| 443 | indices `BesselCoord` are the coordinates of those values. Then the sum of amplitudes |
| 444 | (`amplitudeSum`, for the full function) of the terms in the Bessel subgroup is |
| 445 | `unipotentCovolume • M` over this block and `0` over the blocks `(c, s, d)` with `d ≠ c'`; here |
| 446 | `unipotentCovolume` is the positive constant that stands for the covolume of the unipotent lattice |
| 447 | at a class. -/ |
| 448 | lemma amplitudeSum_besselS_apply [HasPrimitiveRoot5040 E] [S.IsAdmissible] {γ : S.G E} |
| 449 | {c c' : S.Classes} {s : S.ResidueGL} (hγ : γ ∈ besselS) (hγ_over : γ ∈ S.termsOver c s c') |
| 450 | {M : Matrix S.BesselCoord S.BesselCoord ℂ} |
| 451 | (hM : ∀ y : NumberField.InfinitePlace E → 𝔰.G₁, |
| 452 | S.besselFn .full (S.ratToInf γ * y) = M *ᵥ S.besselFn .full y) |
| 453 | (d : S.Classes) (i j : S.BesselCoord) : |
| 454 | S.amplitudeSum .full (S.ratMiddle E).besselS c s d (i, j) = |
| 455 | if c' = d then S.unipotentCovolume * M i j else 0 := by |
| 456 | -- Translation by `γ` moves the block `(c', 1, d)` to `(c, s, d)` and acts by `M ⊗ 1`. |
| 457 | have h_move : S.amplitudeSum .full (S.ratMiddle E).besselS c s d = toEuclideanCLM (𝕜 := ℂ) |
| 458 | (kronecker M 1) (S.amplitudeSum .full (S.ratMiddle E).besselS c' 1 d) := by |
| 459 | simpa using amplitudeSum_mul_mul_inv isStable_besselS hγ hγ_over (one_mem _) |
| 460 | (S.classUnipotent d).one_mem.2 (by simp [hγ, mul_mem_cancel_left]) _ |
| 461 | (besselKernel_mul_mul_inv (τ := 1) hM (N := 1) (by simp)) 1 |
| 462 | split_ifs with h <;> simp [h_move, h, amplitudeSum_besselS_one_eq_ite, apply_ite, |
| 463 | mulVec, dotProduct, Matrix.one_apply, sum_prod_type, mul_comm] |
| 464 | |
| 465 | /-- Let `E` contain a primitive `5040`-th root of unity and let the filling `S` be admissible |
| 466 | (`IsAdmissible`). For classes `c`, `d` and `s` in `ResidueGL`, a term lies over the block |
| 467 | `(c, s, d)` (`termsOver`) if `h_c⁻¹ γ h_d` is integral with reduction `s`. The sum of amplitudes |
| 468 | (`amplitudeSum`, for the full Bessel function) of the terms in the Bessel subgroup `besselS` over |
| 469 | `(d, s⁻¹, c)` is the adjoint of that over `(c, s, d)`, as a matrix indexed by the coordinates of the |
| 470 | Bessel function. -/ |
| 471 | lemma amplitudeSum_besselS_inv [HasPrimitiveRoot5040 E] [S.IsAdmissible] (c d : S.Classes) |
| 472 | (s : S.ResidueGL) (i j : S.BesselCoord) : |
| 473 | S.amplitudeSum .full (S.ratMiddle E).besselS d s⁻¹ c (j, i) = |
| 474 | star (S.amplitudeSum .full (S.ratMiddle E).besselS c s d (i, j)) := by |
| 475 | by_cases h : ∃ γ ∈ (S.ratMiddle E).besselS, γ ∈ S.termsOver c s d |
| 476 | · -- If `γ` acts by the unitary matrix `M`, then `γ⁻¹` acts by its adjoint. |
| 477 | obtain ⟨γ, hγ, hγ_over⟩ := h |
| 478 | obtain ⟨M, hM_unitary, hM⟩ := exists_unitary_besselFn_mul (side := .full) hγ |
| 479 | have hM_inv (y : NumberField.InfinitePlace E → 𝔰.G₁) : |
| 480 | S.besselFn .full (S.ratToInf γ⁻¹ * y) = star M *ᵥ S.besselFn .full y := by |
| 481 | rw [← mul_inv_cancel_left (S.ratToInf γ) y, hM] |
| 482 | simp [mem_unitaryGroup_iff'.1 hM_unitary] |
| 483 | simp [amplitudeSum_besselS_apply hγ hγ_over hM, |
| 484 | amplitudeSum_besselS_apply (inv_mem hγ) (termsOver.inv hγ_over) hM_inv] |
| 485 | · have h_empty : IsEmpty ↥(((S.ratMiddle E).besselS : Set (S.G E)) ∩ S.termsOver c s d) := |
| 486 | ⟨fun γ ↦ h ⟨γ, γ.property⟩⟩ |
| 487 | have h_empty_inv : IsEmpty ↥(((S.ratMiddle E).besselS : Set (S.G E)) ∩ S.termsOver d s⁻¹ c) := |
| 488 | ⟨fun ⟨γ, hγ, hγ_over⟩ ↦ h ⟨γ⁻¹, inv_mem hγ, termsOver.inv hγ_over⟩⟩ |
| 489 | simp [amplitudeSum, tsum_empty] |
| 490 | |
| 491 | /-- Let `E` contain a primitive `5040`-th root of unity and let the filling `S` be admissible |
| 492 | (`IsAdmissible`). Let `δ` in the Bessel subgroup lie over `(d, t, d')` and act on the values of the |
| 493 | full Bessel function by `N`, and let `T` be a set of terms that is stable with `T δ = T`. Then the |
| 494 | sum of amplitudes of `T`, for the full function, over `(c, s t⁻¹, d)` is `A Nᴴ`, where `A` is that |
| 495 | over `(c, s, d')`. -/ |
| 496 | lemma amplitudeSum_mul_inv_apply [HasPrimitiveRoot5040 E] [S.IsAdmissible] {T : Set (S.G E)} |
| 497 | (hT : S.IsStable T) {δ : S.G E} {d d' : S.Classes} {t : S.ResidueGL} (hδ : δ ∈ besselS) |
| 498 | (hδ_over : δ ∈ S.termsOver d t d') (hT_mul_inv : ∀ γ : S.G E, γ ∈ T ↔ γ * δ⁻¹ ∈ T) |
| 499 | {N : Matrix S.BesselCoord S.BesselCoord ℂ} |
| 500 | (hN : ∀ y : NumberField.InfinitePlace E → 𝔰.G₁, |
| 501 | S.besselFn .full (S.ratToInf δ * y) = N *ᵥ S.besselFn .full y) |
| 502 | (c : S.Classes) (s : S.ResidueGL) (i j : S.BesselCoord) : |
| 503 | S.amplitudeSum .full T c (s * t⁻¹) d (i, j) = |
| 504 | ∑ k : S.BesselCoord, star (N j k) * S.amplitudeSum .full T c s d' (i, k) := by |
| 505 | -- Translation by `δ⁻¹` on the right acts on the kernel by `1 ⊗ conj N`. |
| 506 | have h_move : S.amplitudeSum .full T c (s * t⁻¹) d = |
| 507 | toEuclideanCLM (𝕜 := ℂ) (kronecker 1 (N.map star)) (S.amplitudeSum .full T c s d') := by |
| 508 | simpa using amplitudeSum_mul_mul_inv hT (one_mem _) (S.classUnipotent c).one_mem.2 hδ hδ_over |
| 509 | (by simpa using hT_mul_inv) _ (besselKernel_mul_mul_inv (σ := 1) (M := 1) (by simp) hN) s |
| 510 | simp [h_move, mulVec, dotProduct, Matrix.one_apply, sum_prod_type] |
| 511 | |
| 512 | /-! ### The expansion of the squares and the second moment near `R̄₀` -/ |
| 513 | |
| 514 | /-- Let `E` contain a primitive `5040`-th root of unity and let the filling `S` be admissible |
| 515 | (`IsAdmissible`). Let `Ω` avoid the cosets `ζ R̄₀` of the roots of unity `ζ ≠ 1`, and let `s ∈ Ω`. |
| 516 | Then over each block at `s` the terms off the Bessel subgroup `besselS` have the same sum of |
| 517 | amplitudes as the terms of `Γ* = remainingTerms`. These are the `γ` with `termDisc γ ≠ 0`, and those |
| 518 | with agreeing characters that move the span of the isotropic frame vectors `e₁, …, e_ϱ`. -/ |
| 519 | lemma AvoidsScalarCosets.amplitudeSum_compl_besselS_eq [HasPrimitiveRoot5040 E] [S.IsAdmissible] |
| 520 | {side : FullOrCut} {Ω : Set S.ResidueGL} (hΩ : S.AvoidsScalarCosets Ω) {s : S.ResidueGL} |
| 521 | (hs : s ∈ Ω) (c c' : S.Classes) : |
| 522 | S.amplitudeSum side (S.ratMiddle E).besselSᶜ c s c' = |
| 523 | S.amplitudeSum side S.remainingTerms c s c' := by |
| 524 | -- The terms off `R₀` and `Γ*` whose characters do not agree (`CharsAgree` fails) form a stable |
| 525 | -- set with sum `0`. One whose characters agree has a norm-one pair occurring from level `0`, so |
| 526 | -- lies over no block at `s`. |
| 527 | set offBessel : Set (S.G E) := ((S.ratMiddle E).besselS : Set (S.G E))ᶜ |
| 528 | set agreeing : Set (S.G E) := {γ | S.CharsAgree γ} |
| 529 | have h_sub : offBessel ∩ S.remainingTerms = S.remainingTerms := |
| 530 | Set.inter_eq_right.2 fun γ hγ h_mem ↦ |
| 531 | (normOnePairOccursFrom_zero_of_mem_besselS h_mem).notMem_remainingTerms hγ |
| 532 | have h_stable : S.IsStable (offBessel ∩ S.remainingTermsᶜ ∩ agreeingᶜ) := fun u hu u' hu' γ ↦ by |
| 533 | simp only [Set.mem_inter_iff, Set.mem_compl_iff S.remainingTerms, Set.mem_compl_iff agreeing] |
| 534 | rw [isStable_compl_besselS u hu u' hu' γ, isStable_remainingTerms u hu u' hu' γ] |
| 535 | simp only [offBessel, agreeing, Set.mem_ofPred_eq, |
| 536 | charsAgree_mul_mul_iff_of_mem_besselU (inv_mem hu) hu'] |
| 537 | have h_disagree : S.amplitudeSum side (offBessel ∩ S.remainingTermsᶜ ∩ agreeingᶜ) c s c' = 0 := |
| 538 | amplitudeSum_eq_zero_of_not_charsAgree h_stable (fun γ hγ ↦ hγ.2) c s c' |
| 539 | have h_empty : IsEmpty ↥(offBessel ∩ S.remainingTermsᶜ ∩ agreeing ∩ S.termsOver c s c') := |
| 540 | ⟨fun ⟨γ, ⟨⟨h_off, h_out⟩, h_agree⟩, h_over⟩ ↦ |
| 541 | hΩ.not_normOnePairOccursFrom_zero γ h_off c c' s hs h_over |
| 542 | (CharsAgree.normOnePairOccursFrom_zero h_agree h_out)⟩ |
| 543 | have h_agree : S.amplitudeSum side (offBessel ∩ S.remainingTermsᶜ ∩ agreeing) c s c' = 0 := |
| 544 | tsum_empty |
| 545 | rw [amplitudeSum_eq_inter_compl_add_inter offBessel S.remainingTerms, h_sub, |
| 546 | amplitudeSum_eq_inter_compl_add_inter (offBessel ∩ S.remainingTermsᶜ) agreeing] |
| 547 | simp [h_disagree, h_agree] |
| 548 | |
| 549 | /-- Let `E` contain a primitive `5040`-th root of unity, let the filling `S` be admissible |
| 550 | (`IsAdmissible`), and let `Ω` avoid the cosets of the reduction of the Bessel subgroup by the roots |
| 551 | of unity `ζ ≠ 1`. For each block over `Ω` and each link, sum the amplitudes for the cut Bessel |
| 552 | function of the terms with that link and nonzero `termDisc`; let the squared norms of these sums |
| 553 | (`linkSecondMoment`) add up to at most `C unipotentCovolume²`, with `C ≥ 0` and the positive |
| 554 | constant `unipotentCovolume` that stands for the covolume of the unipotent lattice at a class. Then |
| 555 | the second moment over `Ω` of the terms off the Bessel subgroup, for the full Bessel function, has |
| 556 | square root at most `C^(1/2) + b⁻¹⁵ 𝒟_id^(1/2)`, where `b = S.b` and `𝒟_id = identitySecondMoment` |
| 557 | is the order of the reduction of the Bessel subgroup times the number `sourceDim` of pairs of a |
| 558 | class and a coordinate. -/ |
| 559 | theorem sqrt_secondMoment_compl_besselS_le [HasPrimitiveRoot5040 E] [S.IsAdmissible] |
| 560 | {Ω : Set S.ResidueGL} (hΩ : S.AvoidsScalarCosets Ω) {C : ℝ} (hC : 0 ≤ C) |
| 561 | (h_links : linkSecondMoment {γ : S.G E | S.termDisc γ ≠ 0} Ω ≤ .ofReal |
| 562 | (C * S.unipotentCovolume ^ 2)) : |
| 563 | √(secondMoment (S.amplitudeSum .full (S.ratMiddle E).besselSᶜ) Ω) ≤ |
| 564 | √C + (S.b ^ 15)⁻¹ * √S.identitySecondMoment := by |
| 565 | classical |
| 566 | have hb : 1000 ≤ S.b := S.thousand_le_b |
| 567 | have h_id_nonneg : 0 ≤ S.identitySecondMoment := identitySecondMoment_nonneg |
| 568 | set remaining : Set (S.G E) := S.remainingTerms |
| 569 | -- Over `Ω` the blocks of `P_s - r_ψ(s)` are those of `Γ*`. |
| 570 | have h_blocks : secondMoment (S.amplitudeSum .full (S.ratMiddle E).besselSᶜ) Ω = |
| 571 | secondMoment (S.amplitudeSum .full remaining) Ω := |
| 572 | sum_congr rfl fun c _ ↦ sum_congr rfl fun c' _ ↦ sum_congr rfl fun s hs ↦ by |
| 573 | rw [hΩ.amplitudeSum_compl_besselS_eq (mem_filter.1 hs).2] |
| 574 | have h_sqrt : √((S.b ^ 40)⁻¹ * S.identitySecondMoment) = (S.b ^ 20)⁻¹ * |
| 575 | √S.identitySecondMoment := by |
| 576 | rw [Real.sqrt_mul' _ h_id_nonneg, Real.sqrt_inv, pow_mul _ 20 2, Real.sqrt_sq (by positivity)] |
| 577 | -- The pairs of terms with the same link give `C`, the other pairs at most `b^(-kf) 𝒟_id`. |
| 578 | have h_pairs : secondMoment (S.amplitudeSum .cut remaining) Ω ≤ C + (S.b ^ 40)⁻¹ * |
| 579 | S.identitySecondMoment := by |
| 580 | grw [secondMoment_remainingTerms_le hC h_links, |
| 581 | ← pow_le_pow_right₀ S.one_le_b S.forty_le_k_mul_numInfPlaces, div_eq_inv_mul] |
| 582 | have h_small : 2 * (S.b ^ 5)⁻¹ ≤ 1 := by |
| 583 | grw [← hb] |
| 584 | norm_num |
| 585 | calc _ ≤ √(secondMoment (S.amplitudeSum .full remaining - S.amplitudeSum .cut remaining) Ω) + |
| 586 | √(secondMoment (S.amplitudeSum .cut remaining) Ω) := by |
| 587 | grw [h_blocks, ← sqrt_secondMoment_add_le, sub_add_cancel] |
| 588 | -- Passing to the cut function costs `b⁻²⁰ 𝒟_id^(1/2)`. |
| 589 | _ ≤ (S.b ^ 20)⁻¹ * √S.identitySecondMoment + (√C + (S.b ^ 20)⁻¹ * √S.identitySecondMoment) := by |
| 590 | grw [secondMoment_sub_cut_le, h_pairs, Real.sqrt_add_le_add_sqrt, h_sqrt] |
| 591 | _ = √C + 2 * (S.b ^ 5)⁻¹ * ((S.b ^ 15)⁻¹ * √S.identitySecondMoment) := by ring |
| 592 | _ ≤ √C + (S.b ^ 15)⁻¹ * √S.identitySecondMoment := by grw [h_small, one_mul] |
| 593 | |
| 594 | /-- Let `s` coincide at the chosen places above `p_i = levelPrime i` with an element `t` of |
| 595 | `reducedImage besselS`, the reduction of the Bessel subgroup. Then the product of the norms |
| 596 | `p_i` of these places and their conjugates is at most `meetNorm s`, the product of the norms of the |
| 597 | places at which `s` meets, as `s` meets at each of them. -/ |
| 598 | lemma prod_levelPrime_le_meetNorm_of_eq |
| 599 | {s t : S.ResidueGL} (ht : t ∈ S.reducedImage besselS) {i : Fin 2} (hs : s i = t i) : |
| 600 | ∏ _ : S.chosenPlaces i × Bool, S.levelPrime i ≤ S.meetNorm s := by |
| 601 | classical |
| 602 | let φ (p : S.chosenPlaces i × Bool) : (Σ j, S.chosenPlaces j) × Bool := (⟨i, p.1⟩, p.2) |
| 603 | have hφ : φ.Injective := fun p p' h ↦ by simpa [φ, Prod.ext_iff] using h |
| 604 | have h_meet : ∀ p ∈ univ.image φ, S.MeetsAt s p := |
| 605 | forall_mem_image.2 fun p _ ↦ meetsAt_of_eq_of_mem_reducedImage ht hs p.1 p.2 |
| 606 | exact (prod_image hφ.injOn).symm.trans_le (prod_le_meetNorm h_meet) |
| 607 | |
| 608 | /-- The set of the `s` that coincide with an element of `R̄₀`, the reduction of the Bessel subgroup, |
| 609 | at the chosen places above `p_i` avoids the cosets `ζ R̄₀` with `ζ ≠ 1`: such an `s` fixes the first |
| 610 | frame vector there, so `ζ` is `1` modulo these places. -/ |
| 611 | lemma avoidsScalarCosets_setOf_exists_apply_eq |
| 612 | (i : Fin 2) : S.AvoidsScalarCosets |
| 613 | {s : S.ResidueGL | ∃ t ∈ S.reducedImage besselS, s i = t i} := by |
| 614 | rintro ζ h_int hζ h_ne s ⟨t, ht, hs⟩ ⟨t', ht', h_coset⟩ |
| 615 | refine h_ne (S.eq_one_of_reduceAt_scalar_eq_one hζ h_int i fun w ↦ ?_) |
| 616 | have h_entry : (s i w).val (𝔰.besselFrame 0) (𝔰.besselFrame 0) = |
| 617 | New.reduceAt w.val ⟨ζ, h_int⟩ * (t' i w).val (𝔰.besselFrame 0) (𝔰.besselFrame 0) := by |
| 618 | rw [h_coset i w, Matrix.smul_apply, smul_eq_mul] |
| 619 | rw [hs, apply_besselFrame_zero_of_mem_reducedImage ht, |
| 620 | apply_besselFrame_zero_of_mem_reducedImage ht', one_apply_eq, mul_one] at h_entry |
| 621 | exact h_entry.symm |
| 622 | |
| 623 | /-- Each level prime `levelPrime i` is at most `b` times the other, so `M / b ≤ p_i ^ 2`, with |
| 624 | `p_i = levelPrime i`, for the level `M = p₀ p₁`. -/ |
| 625 | lemma M_div_b_le_levelPrime_sq (i : Fin 2) : S.M / S.b ≤ (S.levelPrime i : ℝ) ^ 2 := by |
| 626 | have hb : 0 < S.b := one_pos.trans_le S.one_le_b |
| 627 | have h_le (j : Fin 2) : (S.levelPrime j : ℝ) ≤ S.levelPrime i * S.b := by |
| 628 | grw [S.levelPrime_le j, ← S.le_levelPrime i, ← pow_succ] |
| 629 | rw [div_le_iff₀ hb, M, Nat.cast_mul, sq, mul_assoc] |
| 630 | obtain rfl | rfl : i = 0 ∨ i = 1 := by omega |
| 631 | · grw [h_le 1] |
| 632 | · grw [mul_comm, h_le 0] |
| 633 | |
| 634 | /-- For admissible filling data `S` of shape `𝔰` over a CM field `E` with `f` infinite places, |
| 635 | parameter `b = S.b`, level `M = S.M`, and index `i : Fin 2`, let `meetBound` be the product of the |
| 636 | level prime `p_i = S.levelPrime i` over the chosen places above `p_i` and their conjugates. Then |
| 637 | `(b ^ (2 f) / meetBound) ^ k * 𝒟_main ≤ b⁻³⁰ 𝒟_id`, where `k = 𝔰.k`, `𝒟_main = S.mainSecondMoment`, |
| 638 | and `𝒟_id = S.identitySecondMoment`. -/ |
| 639 | private lemma pow_div_prod_levelPrime_mul_mainSecondMoment_le [hS : S.IsAdmissible] (i : Fin 2) : |
| 640 | (S.b ^ (2 * Core.numInfPlaces E) / |
| 641 | (∏ _ : S.chosenPlaces i × Bool, S.levelPrime i : ℕ)) ^ 𝔰.k * S.mainSecondMoment ≤ |
| 642 | (S.b ^ 30)⁻¹ * S.identitySecondMoment := by |
| 643 | -- With `m = k f`, `meetBound ≥ (M / b)^f` and `𝒟_main ≤ (M / b⁶)^m 𝒟_id`, the sums over links |
| 644 | -- give at most `(b³ / M)^m (M / b⁶)^m 𝒟_id = b^(-3m) 𝒟_id ≤ b⁻³⁰ 𝒟_id`. |
| 645 | have hb : 1000 ≤ S.b := S.thousand_le_b |
| 646 | have h_id_nonneg : 0 ≤ S.identitySecondMoment := identitySecondMoment_nonneg |
| 647 | set meetBound : ℕ := ∏ _ : S.chosenPlaces i × Bool, S.levelPrime i with h_meetBound_def |
| 648 | have hM : (0 : ℝ) < S.M := Nat.cast_pos.2 (two_pos.trans_le two_le_M) |
| 649 | have h_meetBound_ge : (S.M / S.b) ^ Core.numInfPlaces E ≤ meetBound := by |
| 650 | grw [h_meetBound_def, prod_const, card_univ, Fintype.card_prod, S.card_chosenPlaces, |
| 651 | Fintype.card_bool, |
| 652 | Nat.cast_pow, pow_mul', M_div_b_le_levelPrime_sq] |
| 653 | have h_exp : 30 ≤ 3 * (𝔰.k * Core.numInfPlaces E) := by |
| 654 | linarith [S.forty_le_k_mul_numInfPlaces] |
| 655 | calc _ ≤ (S.b ^ (2 * Core.numInfPlaces E) / (S.M / S.b) ^ Core.numInfPlaces E) ^ 𝔰.k * |
| 656 | ((S.M / S.b ^ 6) ^ (𝔰.k * Core.numInfPlaces E) * S.identitySecondMoment) := by |
| 657 | grw [hS.mainSecondMoment_le, ← h_meetBound_ge] |
| 658 | _ = (S.b ^ (3 * (𝔰.k * Core.numInfPlaces E)))⁻¹ * S.identitySecondMoment := by |
| 659 | simp only [div_pow] |
| 660 | field |
| 661 | _ ≤ (S.b ^ 30)⁻¹ * S.identitySecondMoment := by grw [pow_le_pow_right₀ S.one_le_b h_exp] |
| 662 | |
| 663 | /-- The second moment near the Bessel subgroup. Let `E` contain a primitive `5040`-th root of unity |
| 664 | and let the filling `S` be admissible (`IsAdmissible`). Let `Ω` be the set of `s` that coincide with |
| 665 | an element of `R̄₀` at the chosen places above `p_i`. Then the second moment over `Ω` of the terms |
| 666 | off the Bessel subgroup, that is `∑ ‖P_s - r_ψ(s)‖²`, is at most `b⁻¹² 𝒟_id`. Here `P_s` and |
| 667 | `r_ψ(s)` are the operators whose blocks at `s` are the conjugates of the amplitude sums of all terms |
| 668 | and of the terms in the Bessel subgroup, divided by `unipotentCovolume`, `R̄₀` is the reduction of |
| 669 | the Bessel subgroup, `p_i = levelPrime i`, `b` is the parameter `S.b` of the filling and |
| 670 | `𝒟_id = identitySecondMoment = #R̄₀ D_X`, with `D_X = sourceDim` the number of pairs of a class and |
| 671 | a coordinate. -/ |
| 672 | theorem secondMoment_compl_besselS_le [HasPrimitiveRoot5040 E] [hS : S.IsAdmissible] (i : Fin 2) : |
| 673 | secondMoment (S.amplitudeSum .full (S.ratMiddle E).besselSᶜ) |
| 674 | {s : S.ResidueGL | ∃ t ∈ S.reducedImage besselS, s i = t i} ≤ (S.b ^ 12)⁻¹ * |
| 675 | S.identitySecondMoment := by |
| 676 | have hb : 1000 ≤ S.b := S.thousand_le_b |
| 677 | have h_id_nonneg : 0 ≤ S.identitySecondMoment := identitySecondMoment_nonneg |
| 678 | have h_main_nonneg : 0 ≤ S.mainSecondMoment := mainSecondMoment_nonneg |
| 679 | set Ω : Set S.ResidueGL := {s | ∃ t ∈ S.reducedImage besselS, s i = t i} |
| 680 | set meetBound : ℕ := ∏ _ : S.chosenPlaces i × Bool, S.levelPrime i |
| 681 | have h_meetBound_ne : meetBound ≠ 0 := |
| 682 | prod_ne_zero_iff.2 fun _ _ ↦ (S.levelPrime_prime_and_ne i).1.ne_zero |
| 683 | -- Every `s ∈ Ω` meets at the `f` chosen places above `p_i` and at their conjugates. |
| 684 | have h_meet : ∀ s ∈ Ω, meetBound ≤ S.meetNorm s := fun s ⟨t, ht, hs⟩ ↦ |
| 685 | prod_levelPrime_le_meetNorm_of_eq ht hs |
| 686 | have h_links : (S.b ^ (2 * Core.numInfPlaces E) / meetBound) ^ 𝔰.k * S.mainSecondMoment ≤ |
| 687 | (S.b ^ 30)⁻¹ * S.identitySecondMoment := |
| 688 | pow_div_prod_levelPrime_mul_mainSecondMoment_le i |
| 689 | have h_sqrt : √(secondMoment (S.amplitudeSum .full (S.ratMiddle E).besselSᶜ) Ω) ≤ |
| 690 | 2 * (S.b ^ 15)⁻¹ * √S.identitySecondMoment := |
| 691 | calc _ ≤ √((S.b ^ (2 * Core.numInfPlaces E) / meetBound) ^ 𝔰.k * S.mainSecondMoment) + |
| 692 | (S.b ^ 15)⁻¹ * √S.identitySecondMoment := |
| 693 | sqrt_secondMoment_compl_besselS_le (avoidsScalarCosets_setOf_exists_apply_eq i) |
| 694 | (by positivity) |
| 695 | (linkSecondMoment_le_of_le_meetNorm h_meetBound_ne h_meet) |
| 696 | _ ≤ √((S.b ^ 30)⁻¹ * S.identitySecondMoment) + (S.b ^ 15)⁻¹ * √S.identitySecondMoment := by |
| 697 | grw [h_links] |
| 698 | _ = 2 * (S.b ^ 15)⁻¹ * √S.identitySecondMoment := by |
| 699 | rw [Real.sqrt_mul' _ h_id_nonneg, Real.sqrt_inv, pow_mul _ 15 2, |
| 700 | Real.sqrt_sq (by positivity)] |
| 701 | ring |
| 702 | have h_small : (2 * (S.b ^ 15)⁻¹) ^ 2 ≤ (S.b ^ 12)⁻¹ := by |
| 703 | have h_four : 4 ≤ S.b ^ 18 := le_trans (by linarith) (le_self_pow₀ S.one_le_b (by norm_num)) |
| 704 | field_simp |
| 705 | linarith |
| 706 | grw [(Real.sqrt_le_iff.1 h_sqrt).2, mul_pow, Real.sq_sqrt h_id_nonneg, h_small] |
| 707 | |
| 708 | end Filling |
| 709 | |
| 710 | end New |