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.CategoryTheory.Shift.Basic |
| 4 | import Mathlib.RingTheory.PicardGroup |
| 5 | public import Lib.General.LinearAlgebra.PartnerAlgebra |
| 6 | public import New.Spanning.RemainingTerms.Data |
| 7 | import Lib.Adelic.Reduction.DefiniteClassSums |
| 8 | import New.Spanning.RemainingTerms.FramesOverLattice |
| 9 | import New.Spanning.Unfolding.Climbing |
| 10 | import New.Spanning.Unfolding.ReducedPoints |
| 11 | |
| 12 | /-! |
| 13 | # Sums over lattices of given corank and small discriminant |
| 14 | |
| 15 | This file bounds the sum of `(disc L) ^ (-k)` over all classes and all lattices `L ⊂ Λ ∩ X₀` of |
| 16 | given corank and small discriminant (`sum_discriminant_inv_le`). |
| 17 | |
| 18 | Notions from other files: |
| 19 | * `X₀ = E ^ κ` is the hermitian space with the standard form, `k` is the cardinality of `κ`, and |
| 20 | `k₀ = 𝔰.k₀` is a distinguished element of `κ`. `Gf E κ` is the finite adelic unitary group of |
| 21 | `X₀`, and `stdLevel E κ` is the stabiliser of the standard lattice `Ô ^ κ` in it. |
| 22 | * `S.piN` is the finite idele `π̄` with `π π̄ = N`, and in the bounds `f = numInfPlaces E`. |
| 23 | * `S.Classes` is the set of double cosets of `Gf E κ` under the rational points and the level |
| 24 | `S.sourceLevel`. If `g` is the chosen representative of the class `c`, then the lattice |
| 25 | `S.classLatticeX₀ c`, also written `Λ ∩ X₀`, consists of the vectors `v` for which `g⁻¹ v` is |
| 26 | integral with entry `k₀` divisible by `π̄`. |
| 27 | * `discriminant r L` is the square root of the generalised index `genIndex` of the Gram determinant |
| 28 | of a basis of the lattice `L` of rank `r`. |
| 29 | -/ |
| 30 | |
| 31 | @[expose] public section |
| 32 | |
| 33 | noncomputable section |
| 34 | |
| 35 | namespace New.Filling |
| 36 | |
| 37 | /-! ## Means over the classes, and cosets told apart by one row -/ |
| 38 | |
| 39 | section ClassesAndCosets |
| 40 | |
| 41 | open Matrix ENNReal Finset Fintype DoubleCoset Subgroup |
| 42 | |
| 43 | variable {E : Type} [Field E] [CMType E] {𝔰 : Shape} {S : Filling E 𝔰} |
| 44 | |
| 45 | /-- Let `A` be finite and nonempty with elements mapped by `a` into `Gf E κ`, let `f` be a real |
| 46 | function on `S.Classes` and `b` a real number. If for every `u` the sum of `f` over the classes of |
| 47 | the translates `u * a φ`, `φ ∈ A`, is at most `card A * b`, then the sum of `f` over all classes is |
| 48 | at most `card S.Classes * b`. -/ |
| 49 | private lemma sum_classes_le_of_sum_translates_le_real {A : Type} [Fintype A] [Nonempty A] |
| 50 | (a : A → Gf E 𝔰.κ) (f : S.Classes → ℝ) {b : ℝ} |
| 51 | (h_translates : ∀ u : Gf E 𝔰.κ, ∑ φ : A, f ⟦u * a φ⟧ ≤ card A * b) : |
| 52 | ∑ c : S.Classes, f c ≤ card S.Classes * b := by |
| 53 | -- The defect `δ = b - f` is a function on the double cosets. |
| 54 | let δ (g : Gf E 𝔰.κ) : ℝ := b - f ⟦g⟧ |
| 55 | have δ_inv : ∀ γ ∈ stdRatPoints, ∀ k ∈ S.sourceLevel, ∀ g : Gf E 𝔰.κ, δ (γ * g * k) = δ g := by |
| 56 | intro γ hγ k hk g |
| 57 | have same_class : (⟦g⟧ : S.Classes) = ⟦γ * g * k⟧ := |
| 58 | Quotient.sound (DoubleCoset.rel_iff.mpr ⟨γ, hγ, k, hk, rfl⟩) |
| 59 | simp only [δ, same_class] |
| 60 | have δ_fixed : S.sourceLevel ≤ rightStabilizer δ := fun k hk g ↦ by |
| 61 | simpa using δ_inv 1 (one_mem _) k hk g |
| 62 | have δ_smooth : δ ∈ smoothInvariants stdRatPoints := |
| 63 | ⟨fun γ hγ g ↦ by simpa using δ_inv γ hγ 1 (one_mem _) g, |
| 64 | isOpen_mono δ_fixed S.isLevel_sourceLevel.isOpen⟩ |
| 65 | -- The sum of the translates of `δ` is nonnegative, and the integral is translation invariant. |
| 66 | have translates_nonneg (g : Gf E 𝔰.κ) : 0 ≤ ∑ φ : A, δ (g * a φ) := by |
| 67 | simpa [δ] using h_translates g |
| 68 | have integral_nonneg : 0 ≤ ∑ _φ : A, classIntegral stdRatPoints S.sourceLevel δ := |
| 69 | calc 0 ≤ classIntegral stdRatPoints S.sourceLevel fun g ↦ ∑ φ : A, δ (g * a φ) := by |
| 70 | -- The integral is a weighted sum of values with nonnegative weights. |
| 71 | refine mul_nonneg (by simp) (finsum_nonneg fun q ↦ mul_nonneg (by simp) ?_) |
| 72 | exact translates_nonneg q.out |
| 73 | _ = ∑ _φ : A, classIntegral stdRatPoints S.sourceLevel δ := |
| 74 | classIntegral_sum univ (fun _ ↦ AddMonoidHom.id ℝ) a (fun _ ↦ δ_smooth) fun _ ↦ rfl |
| 75 | -- As `S.sourceLevel` fixes `δ`, its integral is the sum of `b - f c` over the classes `c`. |
| 76 | have integral_eq : |
| 77 | classIntegral stdRatPoints S.sourceLevel δ = ∑ c : S.Classes, (b - f c) := by |
| 78 | rw [classIntegral_eq_classSum δ_fixed, classSum_sourceLevel_eq_sum] |
| 79 | exact sum_congr rfl fun c _ ↦ congrArg (fun d : S.Classes ↦ b - f d) c.out_eq |
| 80 | simpa [integral_eq, Fintype.card_pos] using integral_nonneg |
| 81 | |
| 82 | /-- Let `A` be finite and nonempty with elements mapped by `a` into the finite adelic unitary group |
| 83 | `Gf E κ`, and let `f` be a function on `S.Classes`, the double cosets of this group under the |
| 84 | rational points and the level. If for every `u` the sum of `f` over the classes of the translates |
| 85 | `u * a φ`, `φ ∈ A`, is at most `card A * b`, then the sum of `f` over all classes is at most |
| 86 | `card S.Classes * b` (for `b ≥ 0`). -/ |
| 87 | lemma sum_classes_le_of_sum_translates_le {A : Type} [Fintype A] [Nonempty A] (a : A → Gf E 𝔰.κ) |
| 88 | (f : S.Classes → ℝ≥0∞) {b : ℝ} (hb : 0 ≤ b) |
| 89 | (h_translates : ∀ u : Gf E 𝔰.κ, ∑ φ : A, f ⟦u * a φ⟧ ≤ .ofReal (card A * b)) : |
| 90 | ∑ c : S.Classes, f c ≤ .ofReal (card S.Classes * b) := by |
| 91 | -- `f` is finite, since every class is a term of one of the sums. |
| 92 | have f_ne_top : ∀ c : S.Classes, f c ≠ ∞ := Quotient.ind fun g ↦ by |
| 93 | obtain ⟨φ⟩ : Nonempty A := inferInstance |
| 94 | simpa using |
| 95 | sum_ne_top.mp (ne_top_of_le_ne_top ofReal_ne_top (h_translates (g / a φ))) φ (mem_univ φ) |
| 96 | lift f to S.Classes → NNReal using f_ne_top |
| 97 | have h_real : ((∑ c : S.Classes, f c : NNReal) : ℝ) ≤ card S.Classes * b := by |
| 98 | rw [NNReal.coe_sum] |
| 99 | refine sum_classes_le_of_sum_translates_le_real a (fun c ↦ (f c : ℝ)) fun g ↦ ?_ |
| 100 | have h_real : ((∑ φ : A, f ⟦g * a φ⟧ : NNReal) : ℝ) ≤ card A * b := |
| 101 | (le_ofReal_iff_toReal_le coe_ne_top (by positivity)).mp |
| 102 | ((ofNNReal_finsetSum _ _).trans_le (h_translates g)) |
| 103 | simpa using h_real |
| 104 | rw [← ofNNReal_finsetSum] |
| 105 | exact (le_ofReal_iff_toReal_le coe_ne_top (by positivity)).mpr h_real |
| 106 | |
| 107 | variable (S) in |
| 108 | /-- The rows `𝔰.k₀` of the matrices of `y⁻¹` and `y'⁻¹` are congruent modulo `S.piN`: their |
| 109 | difference maps every integral vector into `Ô π̄`. -/ |
| 110 | abbrev InverseRowsCongruent (y y' : stdLevel E 𝔰.κ) : Prop := |
| 111 | let Y : Matrix 𝔰.κ 𝔰.κ (𝔸f E) := (y⁻¹ : Gf E 𝔰.κ) |
| 112 | let Y' : Matrix 𝔰.κ 𝔰.κ (𝔸f E) := (y'⁻¹ : Gf E 𝔰.κ) |
| 113 | colLattice (Ô E) (replicateRow Unit (Y 𝔰.k₀) - replicateRow Unit (Y' 𝔰.k₀)) ≤ |
| 114 | .comap (.proj ()) (Ô E ∙ S.piN.val) |
| 115 | |
| 116 | /-- Let `y`, `y'` be integral unitary matrices whose inverses have congruent rows `𝔰.k₀` modulo the |
| 117 | idele `S.piN` of the filling `S` (`InverseRowsCongruent`). Then `y` and `y'` lie in the same coset |
| 118 | of the subgroup of elements that the inclusion `S.inclHFin` of `Gf E κ` in the unitary group of the |
| 119 | large space maps into the subgroup `S.latticeStabilizer` of integral matrices in the lattice |
| 120 | basis. -/ |
| 121 | lemma inv_mul_mem_of_inverseRowsCongruent {y y' : stdLevel E 𝔰.κ} |
| 122 | (h_congr : S.InverseRowsCongruent y y') : |
| 123 | y⁻¹ * y' ∈ (S.latticeStabilizer.comap S.inclHFin).subgroupOf (stdLevel E 𝔰.κ) := by |
| 124 | -- It is enough that row `k₀` of `y⁻¹ y'` is congruent to that of `1`. |
| 125 | refine S.inclHFin_mem_latticeStabilizer_iff.2 ⟨(y⁻¹ * y').property, fun _ j ↦ ?_⟩ |
| 126 | -- Apply the difference of the rows to the integral column `j` of `y'`. |
| 127 | let Y : Matrix 𝔰.κ 𝔰.κ (𝔸f E) := ((y⁻¹ : stdLevel E 𝔰.κ) : Gf E 𝔰.κ) |
| 128 | let Y' : Matrix 𝔰.κ 𝔰.κ (𝔸f E) := ((y'⁻¹ : stdLevel E 𝔰.κ) : Gf E 𝔰.κ) |
| 129 | let M : Matrix 𝔰.κ 𝔰.κ (𝔸f E) := (y' : Gf E 𝔰.κ) |
| 130 | let row : Matrix Unit 𝔰.κ (𝔸f E) := replicateRow Unit (Y 𝔰.k₀) - replicateRow Unit (Y' 𝔰.k₀) |
| 131 | have h_image : row *ᵥ Mᵀ j ∈ colLattice (Ô E) row := |
| 132 | ⟨Mᵀ j, y'.property.isIntMatrix.transpose j, rfl⟩ |
| 133 | have h_entry : ((Y - Y') * M) 𝔰.k₀ j ∈ Ô E ∙ S.piN.val := h_congr h_image |
| 134 | simpa [M, Y, Y', Matrix.sub_mul] using h_entry |
| 135 | |
| 136 | end ClassesAndCosets |
| 137 | |
| 138 | /-! |
| 139 | ## Lattices of given corank |
| 140 | |
| 141 | The lattice of a class is the kernel of a row modulo `piN` on a unimodular lattice. One averages |
| 142 | over the rows and counts the rows that vanish modulo `piN` on a given lattice. One then sums over |
| 143 | the sublattices of finite index of a primitive lattice, and finally over the primitive lattices. |
| 144 | -/ |
| 145 | |
| 146 | section CrudeLattices |
| 147 | |
| 148 | open NumberField Matrix Module Fintype ENNReal Pointwise |
| 149 | |
| 150 | variable {E : Type} [Field E] [CMType E] [HasPrimitiveRoot5040 E] {𝔰 : Shape} |
| 151 | |
| 152 | section Forms |
| 153 | |
| 154 | variable {S : Filling E 𝔰} |
| 155 | |
| 156 | variable (S) in |
| 157 | /-- The lattices of rank `r` in `L₀` with discriminant at most `S.discriminantBound`. -/ |
| 158 | abbrev BoundedDiscSublattice (r : ℕ) (L₀ : Submodule (Ô E) (𝔰.κ → 𝔸f E)) : Type := |
| 159 | {L : Submodule (Ô E) (𝔰.κ → 𝔸f E) // |
| 160 | IsLatticeOfRank r L ∧ L ≤ L₀ ∧ discriminant r L ≤ S.discriminantBound} |
| 161 | |
| 162 | /-- The unimodular lattice `u Ô ^ κ`: the vectors `v` with `u⁻¹ v` integral. -/ |
| 163 | abbrev unimodularLattice (u : Gf E 𝔰.κ) : Submodule (Ô E) (𝔰.κ → 𝔸f E) := |
| 164 | preimageLattice (Ô E) u.val.inv |
| 165 | |
| 166 | variable (S) in |
| 167 | /-- The linear form "row `k₀` of `y⁻¹ u⁻¹`" on `u Ô ^ κ`, called the form of `y`, vanishes on `L` |
| 168 | modulo `piN`. -/ |
| 169 | def RowVanishesModPiN (u : Gf E 𝔰.κ) (y : stdLevel E 𝔰.κ) (L : Submodule (Ô E) (𝔰.κ → 𝔸f E)) : |
| 170 | Prop := |
| 171 | ∀ v ∈ L, |
| 172 | (((y⁻¹ : Gf E 𝔰.κ) : Matrix 𝔰.κ 𝔰.κ (𝔸f E)) *ᵥ u.val.inv *ᵥ v) 𝔰.k₀ ∈ Ô E ∙ S.piN.val |
| 173 | |
| 174 | variable (S) in |
| 175 | /-- The term `(disc L) ^ (-k)`, for the discriminant in rank `r`, if the form of `y` on `u Ô ^ κ` |
| 176 | vanishes on `L` modulo `piN`, and `0` otherwise. -/ |
| 177 | def discWeightIfRowVanishes (u : Gf E 𝔰.κ) (y : stdLevel E 𝔰.κ) (r : ℕ) : |
| 178 | Submodule (Ô E) (𝔰.κ → 𝔸f E) → ℝ≥0∞ := |
| 179 | {L : Submodule (Ô E) (𝔰.κ → 𝔸f E) | S.RowVanishesModPiN u y L}.indicator |
| 180 | fun L ↦ ENNReal.ofReal (discriminant r L ^ 𝔰.k)⁻¹ |
| 181 | |
| 182 | variable (S) in |
| 183 | /-- The cosets in `stdLevel E κ` of the subgroup of elements that `inclHFin` maps into |
| 184 | `latticeStabilizer`: those whose row `k₀` is congruent to that of `1` modulo `piN`. They |
| 185 | parametrise the positions of the form modulo `piN`. -/ |
| 186 | abbrev LatticeStabilizerCoset : Type := |
| 187 | stdLevel E 𝔰.κ ⧸ (S.latticeStabilizer.comap S.inclHFin).subgroupOf (stdLevel E 𝔰.κ) |
| 188 | |
| 189 | /-! ### Unimodular lattices -/ |
| 190 | |
| 191 | omit [HasPrimitiveRoot5040 E] in |
| 192 | /-- Let the chosen representative of the class `c` be `η u y` with `η` rational and `y` integral, |
| 193 | and let `L` lie in the lattice `Λ ∩ X₀` of `c`, which consists of the vectors `v` for which |
| 194 | `(η u y)⁻¹ v` is integral with entry `k₀` divisible by `π̄ = S.piN`. Then `η⁻¹ L` lies in `u Ô ^ κ`, |
| 195 | and the form of `y` vanishes on it modulo `π̄`. -/ |
| 196 | lemma map_le_and_rowVanishesModPiN_of_out_eq {c : S.Classes} {η : U (stdSpace E 𝔰.κ).J} |
| 197 | {u : Gf E 𝔰.κ} {y : stdLevel E 𝔰.κ} (hc : c.out = (stdSpace E 𝔰.κ).embFin η * u * y) |
| 198 | {L : Submodule (Ô E) (𝔰.κ → 𝔸f E)} (h_le : L ≤ S.classLatticeX₀ c) : |
| 199 | L.map ((finAdeleMatrix (η⁻¹ : GL 𝔰.κ E).val).mulVecLin.restrictScalars (Ô E)) ≤ |
| 200 | unimodularLattice u ∧ |
| 201 | S.RowVanishesModPiN u y |
| 202 | (L.map ((finAdeleMatrix (η⁻¹ : GL 𝔰.κ E).val).mulVecLin.restrictScalars (Ô E))) := by |
| 203 | let Y : Matrix 𝔰.κ 𝔰.κ (𝔸f E) := ((y⁻¹ : stdLevel E 𝔰.κ) : Gf E 𝔰.κ) |
| 204 | let H : Matrix 𝔰.κ 𝔰.κ (𝔸f E) := finAdeleMatrix (η⁻¹ : GL 𝔰.κ E).val |
| 205 | have hH : H = ((stdSpace E 𝔰.κ).embFin η⁻¹ : Gf E 𝔰.κ) := by simp [H, -map_inv] |
| 206 | have h_coord : S.classCoordX₀ c = middleInclusionMatrix 𝔰 S.piN * (Y * (u.val.inv * H)) := by |
| 207 | rw [classCoordX₀, hc, _root_.mul_inv_rev, _root_.mul_inv_rev, ← map_inv, hH] |
| 208 | -- The coercion to matrices respects products, and turns `u⁻¹` into `u.1.inv`. |
| 209 | rfl |
| 210 | -- For `v ∈ L` the vector `y⁻¹ u⁻¹ η⁻¹ v` is integral, with entry `k₀` divisible by `piN`. |
| 211 | have h_vector (v : 𝔰.κ → 𝔸f E) (hv : v ∈ L) : |
| 212 | Y *ᵥ u.val.inv *ᵥ H *ᵥ v ∈ intVectors (Ô E) 𝔰.κ ∧ |
| 213 | (Y *ᵥ u.val.inv *ᵥ H *ᵥ v) 𝔰.k₀ ∈ Ô E ∙ S.piN.val := by |
| 214 | have h_int : IsIntMatrix (Ô E) |
| 215 | (middleInclusionMatrix 𝔰 S.piN * replicateCol Unit (Y *ᵥ u.1.inv *ᵥ H *ᵥ v)) := fun i j ↦ by |
| 216 | -- `classLatticeX₀` consists of the vectors that `classCoordX₀` makes integral. |
| 217 | have h_entry : (S.classCoordX₀ c *ᵥ v) i ∈ Ô E := h_le hv i |
| 218 | rwa [h_coord, ← mulVec_mulVec, ← mulVec_mulVec, ← mulVec_mulVec] at h_entry |
| 219 | obtain ⟨h_all, h_row⟩ := S.isIntMatrix_middleInclusionMatrix_mul_iff.1 h_int |
| 220 | exact ⟨fun i ↦ h_all i (), h_row ()⟩ |
| 221 | constructor |
| 222 | · rintro _ ⟨v, hv, rfl⟩ |
| 223 | exact (mulVec_mem_intVectors_iff (inv_mem y.property)).1 (h_vector v hv).left |
| 224 | · rintro _ ⟨v, hv, rfl⟩ |
| 225 | exact (h_vector v hv).right |
| 226 | |
| 227 | /-- Let `E` contain a primitive 5040th root of unity, let `S` be filling data over `E`, and let the |
| 228 | chosen representative of the class `c` be `η u y` with `η` rational and `y` integral. The sum of |
| 229 | `(disc L) ^ (-k)`, `k = #κ`, over the lattices `L` of rank `r` and discriminant at most |
| 230 | `S.discriminantBound` in `Λ ∩ X₀` is at most the same sum over those in `u Ô ^ κ` on which the form |
| 231 | "row `𝔰.k₀` of `y⁻¹ u⁻¹`" vanishes modulo `S.piN`. -/ |
| 232 | lemma tsum_discriminant_inv_le_of_out_eq {c : S.Classes} {η : U (stdSpace E 𝔰.κ).J} {u : Gf E 𝔰.κ} |
| 233 | {y : stdLevel E 𝔰.κ} (hc : c.out = (stdSpace E 𝔰.κ).embFin η * u * y) (r : ℕ) : |
| 234 | ∑' L : S.BoundedDiscSublattice r (S.classLatticeX₀ c), |
| 235 | ENNReal.ofReal (discriminant r L.val ^ 𝔰.k)⁻¹ ≤ |
| 236 | ∑' L : S.BoundedDiscSublattice r (unimodularLattice u), |
| 237 | S.discWeightIfRowVanishes u y r L.val := by |
| 238 | -- The rational isometry `η⁻¹` moves the lattices injectively and preserves the discriminant. |
| 239 | let H : Matrix 𝔰.κ 𝔰.κ E := (η⁻¹ : GL 𝔰.κ E).val |
| 240 | let P : (𝔰.κ → 𝔸f E) →ₗ[Ô E] 𝔰.κ → 𝔸f E := (finAdeleMatrix H).mulVecLin.restrictScalars (Ô E) |
| 241 | have hH : Hᴴ * H = 1 := by simpa [H, |
| 242 | star_eq_conjTranspose] using mem_unitaryGroupOf_iff.1 η⁻¹.property |
| 243 | have h_inv : finAdeleMatrix Hᴴ * finAdeleMatrix H = 1 := by |
| 244 | simpa only [Matrix.map_mul, Matrix.map_one, map_zero, map_one] using congrArg finAdeleMatrix hH |
| 245 | have hP : Function.Injective P := |
| 246 | HasLeftInv.injective_mulVec (X := finAdeleMatrix H) ⟨_, h_inv⟩ |
| 247 | have h_map (L : S.BoundedDiscSublattice r (S.classLatticeX₀ c)) : |
| 248 | (IsLatticeOfRank r (L.val.map P) ∧ L.val.map P ≤ unimodularLattice u ∧ |
| 249 | discriminant r (L.val.map P) ≤ S.discriminantBound) ∧ |
| 250 | S.RowVanishesModPiN u y (L.1.map P) ∧ discriminant r (L.1.map P) = discriminant r L.1 := by |
| 251 | obtain ⟨L, hL, h_le, h_small⟩ := L |
| 252 | obtain ⟨h_rank, h_disc⟩ := hL.map_of_unitary hH |
| 253 | obtain ⟨h_map_le, h_kills⟩ := map_le_and_rowVanishesModPiN_of_out_eq hc h_le |
| 254 | exact ⟨⟨h_rank, h_map_le, h_disc.trans_le h_small⟩, h_kills, h_disc⟩ |
| 255 | let move (L : S.BoundedDiscSublattice r (S.classLatticeX₀ c)) : |
| 256 | S.BoundedDiscSublattice r (unimodularLattice u) := |
| 257 | ⟨L.val.map P, (h_map L).1⟩ |
| 258 | have h_move : Function.Injective move := fun L L' h ↦ |
| 259 | Subtype.ext (Submodule.map_injective_of_injective hP (congrArg Subtype.val h)) |
| 260 | calc _ = ∑' L : S.BoundedDiscSublattice r (S.classLatticeX₀ c), |
| 261 | S.discWeightIfRowVanishes u y r (move L).val := by |
| 262 | refine tsum_congr fun L ↦ ?_ |
| 263 | obtain ⟨-, h_kills, h_disc⟩ := h_map L |
| 264 | rw [discWeightIfRowVanishes, Set.indicator_of_mem h_kills, h_disc] |
| 265 | _ ≤ _ := tsum_comp_le_tsum_of_injective h_move fun L ↦ S.discWeightIfRowVanishes u y r L.val |
| 266 | |
| 267 | omit [HasPrimitiveRoot5040 E] in |
| 268 | /-- Let `u` be in `Gf E 𝔰.κ`, and let `φ` be a coset in `stdLevel E 𝔰.κ` of the preimage under |
| 269 | `inclHFin` of `latticeStabilizer`, with chosen element `φ.out`. Then the chosen representative of |
| 270 | the class of `u * φ.out` in the double cosets `S.Classes` equals `embFin η * u * y`. Here `η` is |
| 271 | some rational point of the unitary group `U` of the standard form on `𝔰.κ`, and `y` is some element |
| 272 | of `stdLevel E 𝔰.κ` lying in the coset `φ`. Of the standing hypotheses `S.IsAdmissible`, only one is |
| 273 | used: the level `sourceLevel` of `S`, which defines the double cosets `S.Classes`, is the preimage |
| 274 | of K(M). -/ |
| 275 | lemma exists_mk_out_eq_embFin_mul [S.IsAdmissible] (u : Gf E 𝔰.κ) (φ : S.LatticeStabilizerCoset) : |
| 276 | ∃ (η : U (stdSpace E 𝔰.κ).J) (y : stdLevel E 𝔰.κ), |
| 277 | (y : S.LatticeStabilizerCoset) = φ ∧ |
| 278 | (⟦u * φ.out⟧ : S.Classes).out = (stdSpace E 𝔰.κ).embFin η * u * y := by |
| 279 | obtain ⟨_, ⟨η, rfl⟩, g, hg, h_out⟩ : ∃ γ ∈ stdRatPoints (E := E), ∃ g ∈ S.sourceLevel, |
| 280 | (⟦u * φ.out⟧ : S.Classes).out = γ * (u * φ.out : Gf E 𝔰.κ) * g := |
| 281 | (DoubleCoset.eq ..).1 (DoubleCoset.out_eq' ..).symm |
| 282 | have hg_level : S.inclHFin g ∈ S.principalLevel := IsAdmissible.sourceLevel_eq.le hg |
| 283 | have hg_stab : S.inclHFin g ∈ S.latticeStabilizer := |
| 284 | (S.principalLevel_eq_unitaryLevel.le hg_level).1 |
| 285 | refine ⟨η, φ.out * ⟨g, S.isLevel_sourceLevel.le hg⟩, ?_, h_out.trans (by simp [mul_assoc])⟩ |
| 286 | exact (QuotientGroup.mk_mul_of_mem φ.out hg_stab).trans φ.out_eq |
| 287 | |
| 288 | /-! ### Forms and sublattices -/ |
| 289 | |
| 290 | variable (S) in |
| 291 | /-- The generalised index of `S.piN` is `N ^ f`, where `N = π π̄` and `f` is the number of |
| 292 | infinite places of `E`. -/ |
| 293 | lemma genIndex_piN_eq_pow : genIndex S.piN.val = S.N ^ numInfPlaces E := by |
| 294 | have h_sq : genIndex S.piN.val ^ 2 = (S.N ^ numInfPlaces E) ^ 2 := by |
| 295 | rw [← genIndex_natCast, ← S.piN_mul_star, map_mul, genIndex_star, sq] |
| 296 | exact (pow_left_inj₀ (genIndex_pos _).le (by positivity) two_ne_zero).1 h_sq |
| 297 | |
| 298 | omit [HasPrimitiveRoot5040 E] in |
| 299 | /-- A vector lies in `d Ô ^ ι` if and only if its multiple by `d⁻¹` is integral. -/ |
| 300 | lemma mem_smul_intVectors_iff {ι : Type} {d : (𝔸f E)ˣ} {v : ι → 𝔸f E} : |
| 301 | v ∈ d • intVectors (Ô E) ι ↔ d⁻¹ • v ∈ intVectors (Ô E) ι := by |
| 302 | refine ⟨?_, fun hv ↦ ⟨d⁻¹ • v, hv, smul_inv_smul d v⟩⟩ |
| 303 | rintro ⟨w, hw : w ∈ intVectors (Ô E) ι, rfl⟩ |
| 304 | simpa [inv_smul_smul, ← Units.smul_def] using hw |
| 305 | |
| 306 | omit [HasPrimitiveRoot5040 E] in |
| 307 | /-- Let `U` be invertible with `U` and `U⁻¹` integral, and let `m` be its first `r` columns |
| 308 | `firstCols e U`. Two forms `v`, `w` are congruent modulo `d` if their values on the other columns |
| 309 | of `U` are, and if their values on `m A`, divided by `d`, differ by a combination of the rows of |
| 310 | `A` with integral coefficients. -/ |
| 311 | lemma sub_mem_smul_intVectors_of_values {π : Type} [Fintype π] [DecidableEq π] {r l : ℕ} |
| 312 | {e : Fin r ⊕ Fin l ≃ π} {U : GL π (𝔸f E)} (hU : U ∈ intGL π (Ô E)) |
| 313 | {A : GL (Fin r) (𝔸f E)} {d : (𝔸f E)ˣ} {v w : π → 𝔸f E} |
| 314 | (h_rows : d⁻¹ • v ᵥ* (firstCols e U * A.val) - d⁻¹ • w ᵥ* (firstCols e U * A.val) ∈ |
| 315 | colLattice (Ô E) A.valᵀ) |
| 316 | (h_rest : (fun i : Fin l ↦ (v ᵥ* U.val) (e (.inr i)) - (w ᵥ* U.val) (e (.inr i))) ∈ |
| 317 | d • intVectors (Ô E) (Fin l)) : |
| 318 | v - w ∈ d • intVectors (Ô E) π := by |
| 319 | obtain ⟨s, hs_int, hs : A.valᵀ *ᵥ s = |
| 320 | d⁻¹ • v ᵥ* (firstCols e U * A.val) - d⁻¹ • w ᵥ* (firstCols e U * A.val)⟩ := h_rows |
| 321 | let z : π → 𝔸f E := d⁻¹ • (v - w) |
| 322 | have h_first : z ᵥ* firstCols e U = s := by |
| 323 | refine vecMul_injective_of_isUnit A.isUnit ?_ |
| 324 | change (z ᵥ* firstCols e U) ᵥ* A.val = s ᵥ* A.val |
| 325 | rw [← mulVec_transpose A.val s, hs, vecMul_vecMul, smul_vecMul, sub_vecMul, smul_sub] |
| 326 | have h_values : z ᵥ* U.val ∈ intVectors (Ô E) π := by |
| 327 | intro p |
| 328 | obtain ⟨i | i, rfl⟩ := e.surjective p |
| 329 | · rw [show (z ᵥ* U.val) (e (.inl i)) = s i from congrFun h_first i] |
| 330 | exact hs_int i |
| 331 | · simpa only [z, smul_vecMul, sub_vecMul, Pi.smul_apply, Pi.sub_apply] using |
| 332 | mem_smul_intVectors_iff.1 h_rest i |
| 333 | refine mem_smul_intVectors_iff.2 ?_ |
| 334 | simpa only [mulVec_transpose, vecMul_vecMul, U.mul_inv, vecMul_one] using |
| 335 | hU.isIntMatrix_inv.transpose.mulVec h_values |
| 336 | |
| 337 | /-- **Few forms vanish on a sublattice.** Let the CM field `E` contain a primitive 5040th root of |
| 338 | unity. Let `m` be a basis of a primitive sublattice of rank `r` and corank `l` in `Ô ^ π`, and let |
| 339 | `L` be its sublattice with the basis `m A`. For `a` in a set `B` let `Y a` be integral linear forms |
| 340 | whose values on `L` are divisible by the integral idele `d` and which are pairwise incongruent |
| 341 | modulo `d`. Then `B` has at most `[det A] [d] ^ l` elements, where `[·]` is the generalised index |
| 342 | and `[det A]` is the index of `L` in the primitive sublattice. -/ |
| 343 | lemma encard_le_of_vecMul_mem_smul {α π : Type} [Fintype π] {r l : ℕ} {B : Set α} |
| 344 | (Y : α → π → 𝔸f E) {m : Matrix π (Fin r) (𝔸f E)} {A : GL (Fin r) (𝔸f E)} {d : (𝔸f E)ˣ} |
| 345 | (hY : ∀ a ∈ B, Y a ∈ intVectors (Ô E) π) (hm : IsPrimitiveMatrix (Ô E) m) |
| 346 | (h_rank : r + l = card π) (hA : IsIntMatrix (Ô E) A.val) (hd : d.val ∈ Ô E) |
| 347 | (h_kills : ∀ a ∈ B, Y a ᵥ* (m * A.val) ∈ d • intVectors (Ô E) (Fin r)) |
| 348 | (h_incongruent : ∀ a ∈ B, ∀ b ∈ B, Y a - Y b ∈ d • intVectors (Ô E) π → a = b) : |
| 349 | B.encard ≤ ENNReal.ofReal (genIndex A.val.det * genIndex d.val ^ l) := by |
| 350 | classical |
| 351 | -- Extend `m` to a basis `U` of `Ô ^ π`, and write the values of `Y a` on `m A` as `d W a`. The |
| 352 | -- class of `W a` modulo the rows of `A` fixes the values on `m` modulo `d`, and the values on the |
| 353 | -- other `l` basis vectors have `[d] ^ l` classes modulo `d`. |
| 354 | let e : Fin r ⊕ Fin l ≃ π := equivOfCardEq (by simpa using h_rank) |
| 355 | obtain ⟨U, hU, rfl⟩ : ∃ U ∈ intGL π (Ô E), m = firstCols e U := |
| 356 | (isValuationPair_Ô.exists_firstCols_iff e).2 hm |
| 357 | let W (a : α) : Fin r → 𝔸f E := d⁻¹ • Y a ᵥ* (firstCols e U * A.val) |
| 358 | let rest (a : α) (i : Fin l) : 𝔸f E := (Y a ᵥ* U.val) (e (.inr i)) |
| 359 | have h_rest_int (a : α) (ha : a ∈ B) : rest a ∈ intVectors (Ô E) (Fin l) := fun i ↦ by |
| 360 | simpa only [mulVec_transpose] using hU.isIntMatrix.transpose.mulVec (hY a ha) (e (.inr i)) |
| 361 | have hW_int (a : α) (ha : a ∈ B) : W a ∈ intVectors (Ô E) (Fin r) := |
| 362 | mem_smul_intVectors_iff.1 (h_kills a ha) |
| 363 | have hA_pos : 0 < genIndex A.val.det := genIndex_pos A.det |
| 364 | have h_index : (submoduleIndex (colLattice (Ô E) A.valᵀ) (intVectors (Ô E) (Fin r)) : ℝ) = |
| 365 | genIndex A.val.det := by |
| 366 | rw [← det_transpose] |
| 367 | exact submoduleIndex_colLattice_intVectors (M := transposeGL A) hA.transpose |
| 368 | have h_unique (a : α) (ha : a ∈ B) (b : α) (hb : b ∈ B) |
| 369 | (h_rows : W a - W b ∈ colLattice (Ô E) A.valᵀ) |
| 370 | (h_rest : rest a - rest b ∈ d • intVectors (Ô E) (Fin l)) : a = b := |
| 371 | h_incongruent a ha b hb (sub_mem_smul_intVectors_of_values hU h_rows h_rest) |
| 372 | -- Sort the forms by the class of `W a`, and those in one such class by the class of `rest a`. |
| 373 | have h_class (C : Set α) (hC : C ⊆ B) |
| 374 | (h_rows : ∀ a ∈ C, ∀ b ∈ C, W a - W b ∈ colLattice (Ô E) A.valᵀ) : |
| 375 | C.encard ≤ ENNReal.ofReal (genIndex d.val ^ l) := by |
| 376 | refine (encard_le_of_colouring (fun a (_ : Unit) ↦ rest a) (submoduleIndex_smul_ne_zero hd) |
| 377 | (fun a ha _ ↦ h_rest_int a (hC ha)) (x := 1) fun D hD _ _ h_rest ↦ ?_).trans_eq ?_ |
| 378 | · have h_single : D.encard ≤ 1 := Set.encard_le_one_iff.2 fun a b ha hb ↦ |
| 379 | h_unique a (hC (hD ha)) b (hC (hD hb)) (h_rows a (hD ha) b (hD hb)) (h_rest a ha b hb ()) |
| 380 | exact_mod_cast h_single |
| 381 | · rw [submoduleIndex_smul_intVectors hd, card_unit, pow_one, mul_one, Fintype.card_fin] |
| 382 | have h_finite : submoduleIndex (colLattice (Ô E) A.valᵀ) (intVectors (Ô E) (Fin r)) ≠ 0 := |
| 383 | mod_cast h_index.trans_ne hA_pos.ne' |
| 384 | refine (encard_le_of_colouring (fun a (_ : Unit) ↦ W a) h_finite (fun a ha _ ↦ hW_int a ha) |
| 385 | fun C hC _ _ h_rows ↦ h_class C hC fun a ha b hb ↦ h_rows a ha b hb ()).trans_eq ?_ |
| 386 | rw [h_index, card_unit, pow_one, ofReal_mul hA_pos.le] |
| 387 | |
| 388 | /-- Let `E` contain a primitive 5040th root of unity, and let `S` be filling data over `E` with |
| 389 | prime `N = π π̄` and `π̄ = S.piN`. The set `S.LatticeStabilizerCoset` is the quotient of `stdLevel`, |
| 390 | the group of integral unitary matrices on `κ`, by its subgroup of matrices whose row `𝔰.k₀` is |
| 391 | congruent to that of `1` modulo `π̄`. Let `y φ` be an element of each such coset `φ`, |
| 392 | let `V` have codimension `l`, and let `A` be invertible over the finite adeles, with integral |
| 393 | entries. Let `m = sublatticeBasis u.val.val_inv V` be the basis of the adelic points of `V` in |
| 394 | `u Ô ^ κ`. Then for at most `[det A] (N ^ f) ^ l` cosets `φ` the form "row `𝔰.k₀` of |
| 395 | `(y φ)⁻¹ u⁻¹`" vanishes modulo `π̄` on the lattice with basis `m A`. Here `[·]` is the generalised |
| 396 | index and `f` is the number of infinite places. -/ |
| 397 | lemma encard_rowVanishesModPiN_le (u : Gf E 𝔰.κ) {y : S.LatticeStabilizerCoset → stdLevel E 𝔰.κ} |
| 398 | (hy : ∀ φ : S.LatticeStabilizerCoset, (y φ : S.LatticeStabilizerCoset) = φ) |
| 399 | {V : Submodule E (𝔰.κ → E)} {l : ℕ} |
| 400 | (h_rank : finrank E V + l = 𝔰.k) {A : GL (Fin (finrank E V)) (𝔸f E)} |
| 401 | (hA : IsIntMatrix (Ô E) A.val) : |
| 402 | {φ : S.LatticeStabilizerCoset | S.RowVanishesModPiN u (y φ) |
| 403 | (colLattice (Ô E) ((sublatticeBasis u.val.val_inv V).val * A.val))}.encard ≤ |
| 404 | ENNReal.ofReal (genIndex A.val.det * (S.N ^ numInfPlaces E) ^ l) := by |
| 405 | -- Count the rows `k₀` of the `(y φ)⁻¹` modulo `piN`; congruent rows belong to one coset. |
| 406 | let m : Matrix 𝔰.κ (Fin (finrank E V)) (𝔸f E) := (sublatticeBasis u.val.val_inv V).val |
| 407 | let B : Set S.LatticeStabilizerCoset := |
| 408 | {φ | S.RowVanishesModPiN u (y φ) (colLattice (Ô E) (m * A.val))} |
| 409 | let row (φ : S.LatticeStabilizerCoset) : 𝔰.κ → 𝔸f E := |
| 410 | (((y φ)⁻¹ : stdLevel E 𝔰.κ) : Gf E 𝔰.κ).val.val 𝔰.k₀ |
| 411 | have h_kills (φ : S.LatticeStabilizerCoset) (hφ : φ ∈ B) : row φ ᵥ* (u.val.inv * m * A.val) ∈ |
| 412 | S.piN • intVectors (Ô E) (Fin (finrank E V)) := by |
| 413 | have h_entry (i : Fin (finrank E V)) : ∃ a ∈ Ô E, |
| 414 | S.piN * a = (row φ ᵥ* (u.val.inv * m * A.val)) i := by |
| 415 | rw [Matrix.mul_assoc] |
| 416 | obtain ⟨a, ha, h_value⟩ := mem_span_singleton_iff_exists_mul.1 (hφ _ (col_mem_colLattice i)) |
| 417 | exact ⟨a, ha, h_value.symm⟩ |
| 418 | choose a ha h_value using h_entry |
| 419 | exact ⟨a, ha, funext h_value⟩ |
| 420 | have h_apart (φ : S.LatticeStabilizerCoset) (_ : φ ∈ B) (φ' : S.LatticeStabilizerCoset) |
| 421 | (_ : φ' ∈ B) |
| 422 | (h_congr : row φ - row φ' ∈ S.piN • intVectors (Ô E) 𝔰.κ) : φ = φ' := by |
| 423 | obtain ⟨a, ha, h_value⟩ := h_congr |
| 424 | rw [← hy φ, ← hy φ'] |
| 425 | refine QuotientGroup.eq.2 (inv_mul_mem_of_inverseRowsCongruent (colLattice_le fun i ↦ ?_)) |
| 426 | -- Entry `i` of the difference of the two rows is `π̄ a i`. |
| 427 | exact mem_span_singleton_iff_exists_mul.2 ⟨a i, ha i, (congrFun h_value i).symm⟩ |
| 428 | rw [← S.genIndex_piN_eq_pow] |
| 429 | exact encard_le_of_vecMul_mem_smul row (fun φ _ ↦ (y φ).property.isIntMatrix_inv 𝔰.k₀) |
| 430 | (isPrimitiveMatrix_mul_sublatticeBasis u.val.val_inv V) h_rank hA S.piN_mem h_kills h_apart |
| 431 | |
| 432 | /-- Let `E` contain a primitive 5040th root of unity, and let `S` be filling data over `E` with |
| 433 | prime `N = π π̄` and `π̄ = S.piN`. The set `S.LatticeStabilizerCoset` is the quotient of `stdLevel`, |
| 434 | the group of integral unitary matrices on `κ`, by its subgroup of matrices whose row `𝔰.k₀` is |
| 435 | congruent to that of `1` modulo `π̄`. Let `y φ` be an element of each such coset `φ`, and let |
| 436 | `L ⊂ u Ô ^ κ` be a lattice of rank `r` and corank `l`. There is a subspace `V` of dimension `r` such |
| 437 | that `L` has a finite index `i` in the lattice `saturatedLattice` of adelic points of `V` in |
| 438 | `u Ô ^ κ`, `disc L` is `i` times the discriminant of that lattice, and for at most `i (N ^ f) ^ l` |
| 439 | of the `φ` the form "row `𝔰.k₀` of `(y φ)⁻¹ u⁻¹`" takes values divisible by `π̄` on `L` |
| 440 | (`RowVanishesModPiN`). -/ |
| 441 | lemma exists_saturatedLattice_encard_rowVanishesModPiN_le (u : Gf E 𝔰.κ) |
| 442 | {y : S.LatticeStabilizerCoset → stdLevel E 𝔰.κ} |
| 443 | (hy : ∀ φ : S.LatticeStabilizerCoset, (y φ : S.LatticeStabilizerCoset) = φ) {r l : ℕ} |
| 444 | (h_rank : r + l = 𝔰.k) |
| 445 | {L : Submodule (Ô E) (𝔰.κ → 𝔸f E)} (hL : IsLatticeOfRank r L) (h_le : L ≤ unimodularLattice u) : |
| 446 | ∃ V : Submodule E (𝔰.κ → E), |
| 447 | finrank E V = r ∧ |
| 448 | L ≤ saturatedLattice u.val.val_inv V ∧ |
| 449 | submoduleIndex L (saturatedLattice u.val.val_inv V) ≠ 0 ∧ |
| 450 | discriminant r L = sublatticeDiscriminant u.val.val_inv V * |
| 451 | submoduleIndex L (saturatedLattice u.val.val_inv V) ∧ |
| 452 | {φ : S.LatticeStabilizerCoset | S.RowVanishesModPiN u (y φ) L}.encard ≤ ENNReal.ofReal |
| 453 | (submoduleIndex L (saturatedLattice u.val.val_inv V) * (S.N ^ numInfPlaces E) ^ l) := by |
| 454 | -- `L` has a basis `m A`, with `m` a basis of the saturated lattice; the index is `[det A]`. |
| 455 | obtain ⟨V, A, rfl, hA, rfl, h_disc⟩ : |
| 456 | ∃ (V : Submodule E (𝔰.κ → E)) (A : GL (Fin (finrank E V)) (𝔸f E)), |
| 457 | finrank E V = r ∧ IsIntMatrix (Ô E) A.val ∧ |
| 458 | colLattice (Ô E) ((sublatticeBasis u.val.val_inv V).val * A.val) = L ∧ |
| 459 | discriminant r L = sublatticeDiscriminant u.val.val_inv V * genIndex A.val.det := |
| 460 | hL.exists_eq_colLattice_sublatticeBasis_mul u.val.val_inv h_le |
| 461 | let m : Matrix 𝔰.κ (Fin (finrank E V)) (𝔸f E) := (sublatticeBasis u.val.val_inv V).val |
| 462 | have hm : IsPrimitiveMatrix (Ô E) (u.val.inv * m) := |
| 463 | isPrimitiveMatrix_mul_sublatticeBasis u.val.val_inv V |
| 464 | have h_inv : HasLeftInv m := by |
| 465 | obtain ⟨p, -, hp⟩ := hm.right |
| 466 | exact ⟨p * u.val.inv, by rw [Matrix.mul_assoc, hp]⟩ |
| 467 | have h_index : submoduleIndex (colLattice (Ô E) (m * A.val)) (saturatedLattice u.val.val_inv V) = |
| 468 | genIndex A.val.det := submoduleIndex_colLattice_mul h_inv hA |
| 469 | refine ⟨V, rfl, colLattice_mul_le m hA, ?_, by rw [h_index, h_disc], ?_⟩ |
| 470 | · exact Nat.cast_ne_zero.1 (h_index.trans_ne (genIndex_pos A.det).ne') |
| 471 | · rw [h_index] |
| 472 | exact encard_rowVanishesModPiN_le u hy h_rank hA |
| 473 | |
| 474 | /-- Let `d, i ≥ 1` be real numbers with `d i ≤ H`, and let `r ≤ k`. Then `i (d i) ^ (-k)` is at most |
| 475 | `H ^ (μ + 2) d ^ (-k-1) i ^ (-r-μ)` for every `μ`. -/ |
| 476 | lemma mul_inv_pow_le_of_mul_le {d i H : ℝ} (hd : 1 ≤ d) (hi : 1 ≤ i) (hH : d * i ≤ H) {r k : ℕ} |
| 477 | (hr : r ≤ k) (μ : ℕ) : |
| 478 | i * ((d * i) ^ k)⁻¹ ≤ H ^ (μ + 2) * ((d ^ (k + 1))⁻¹ * i⁻¹ ^ (r + μ)) := by |
| 479 | have hi_le : i ≤ H := (le_mul_of_one_le_left (by positivity) hd).trans hH |
| 480 | have hH_pos : 0 < H := by linarith |
| 481 | calc i * ((d * i) ^ k)⁻¹ |
| 482 | _ = i * (d * i) ^ (μ + 1) * (d ^ (k + μ + 1) * i ^ (k + μ + 1))⁻¹ := by |
| 483 | field |
| 484 | _ ≤ H * H ^ (μ + 1) * (d ^ (k + 1) * i ^ (r + μ))⁻¹ := by |
| 485 | have hd_pow : d ^ (k + 1) ≤ d ^ (k + μ + 1) := pow_le_pow_right₀ hd (by lia) |
| 486 | have hi_pow : i ^ (r + μ) ≤ i ^ (k + μ + 1) := pow_le_pow_right₀ hi (by lia) |
| 487 | gcongr |
| 488 | _ = H ^ (μ + 2) * ((d ^ (k + 1))⁻¹ * i⁻¹ ^ (r + μ)) := by ring |
| 489 | |
| 490 | /-- For a finite adelic unitary `u` and a subspace `V` of `E ^ κ`, the lattice of the adelic points |
| 491 | of `V` in `u Ô ^ κ` has discriminant at least `1`. -/ |
| 492 | lemma one_le_sublatticeDiscriminant_unimodular (u : Gf E 𝔰.κ) (V : Submodule E (𝔰.κ → E)) : |
| 493 | 1 ≤ sublatticeDiscriminant u.val.val_inv V := by |
| 494 | refine one_le_sublatticeDiscriminant u.val.val_inv V fun m hm ↦ ?_ |
| 495 | -- As `u⁻¹` is unitary, the Gram matrix of `m` is that of the integral matrix `u⁻¹ m`. |
| 496 | have h_unitary : (u.val.inv)ᴴ * u.val.inv = 1 := by |
| 497 | simpa [star_eq_conjTranspose] using mem_unitaryGroupOf_iff.1 u⁻¹.property |
| 498 | have h_gram : (u.val.inv * m)ᴴ * (u.val.inv * m) = mᴴ * m := by |
| 499 | rw [conjTranspose_mul, Matrix.mul_assoc, ← Matrix.mul_assoc _ u.val.inv, h_unitary, |
| 500 | Matrix.one_mul] |
| 501 | rw [← h_gram] |
| 502 | exact hm.conjTranspose.mul hm |
| 503 | |
| 504 | /-- The weight of the subspace `V` of `E ^ κ`: it is `d ^ (-k-1)` if `V` has codimension `l`, with |
| 505 | `d` the discriminant of the lattice of the adelic points of `V` in `u Ô ^ κ`, and `0` otherwise. -/ |
| 506 | abbrev subspaceDiscWeight (u : Gf E 𝔰.κ) (l : ℕ) (V : Submodule E (𝔰.κ → E)) : ℝ≥0∞ := |
| 507 | if finrank E V + l = 𝔰.k then ENNReal.ofReal (sublatticeDiscriminant u.1.val_inv V ^ (𝔰.k + 1))⁻¹ |
| 508 | else 0 |
| 509 | |
| 510 | omit [HasPrimitiveRoot5040 E] in |
| 511 | /-- Let `u` be in `Gf E 𝔰.κ`, let `y` assign an element `y φ` of `stdLevel E 𝔰.κ` to each coset `φ` |
| 512 | in `S.LatticeStabilizerCoset`, and let `L` be an `Ô`-submodule of `𝔸f E ^ 𝔰.κ`. The sum over these |
| 513 | cosets `φ` of the weights `S.discWeightIfRowVanishes u (y φ) r L` equals the number of cosets `φ` |
| 514 | for which the form of `y φ` vanishes on `L` modulo `piN`, times `(discriminant r L ^ 𝔰.k)⁻¹`. -/ |
| 515 | lemma sum_discWeightIfRowVanishes_eq_encard_mul [Fintype S.LatticeStabilizerCoset] (u : Gf E 𝔰.κ) |
| 516 | (y : S.LatticeStabilizerCoset → stdLevel E 𝔰.κ) (r : ℕ) (L : Submodule (Ô E) (𝔰.κ → 𝔸f E)) : |
| 517 | ∑ φ : S.LatticeStabilizerCoset, S.discWeightIfRowVanishes u (y φ) r L = |
| 518 | {φ : S.LatticeStabilizerCoset | S.RowVanishesModPiN u (y φ) L}.encard * |
| 519 | ENNReal.ofReal (discriminant r L ^ 𝔰.k)⁻¹ := by |
| 520 | rw [← tsum_set_const, |
| 521 | _root_.tsum_subtype _ fun _ : S.LatticeStabilizerCoset ↦ |
| 522 | ENNReal.ofReal (discriminant r L ^ 𝔰.k)⁻¹, |
| 523 | tsum_fintype] |
| 524 | refine Finset.sum_congr rfl fun φ _ ↦ ?_ |
| 525 | by_cases h_kills : S.RowVanishesModPiN u (y φ) L <;> simp [discWeightIfRowVanishes, h_kills] |
| 526 | |
| 527 | /-- Let `S` be filling data over `E` with shape `𝔰`, and let `u` be in `Gf E 𝔰.κ`. The set |
| 528 | `S.LatticeStabilizerCoset` is the quotient of `stdLevel`, the group of integral unitary matrices on |
| 529 | `κ`, by its subgroup of matrices whose row `k₀` is congruent to that of `1` modulo `S.piN`. Let |
| 530 | `y φ` be an element of each such coset `φ`, and call row `k₀` of `(y φ)⁻¹ u⁻¹` the form of `φ`. Let |
| 531 | `k = #κ`, let `r + l = k`, and let `L` be a lattice of rank `r` in `u Ô ^ κ` with discriminant at |
| 532 | most `H`. Then `L` has a finite index `i` in the lattice of the adelic points in `u Ô ^ κ` of some |
| 533 | subspace `V`. Moreover, the sum of `(disc L) ^ (-k)` over the `φ` whose form vanishes on `L` modulo |
| 534 | `S.piN` is at most `(N ^ f) ^ l H ^ (μ + 2) * subspaceDiscWeight u l V * i ^ (-dim V - μ)`, for any |
| 535 | natural number `μ`. Here `subspaceDiscWeight u l V` is `d ^ (-k-1)` if `V` has codimension `l`, with |
| 536 | `d` the discriminant of that lattice of `V`, and `0` otherwise. `N` is the prime of `S`, `H` is |
| 537 | `discriminantBound` and `f` is the number of infinite places. -/ |
| 538 | lemma exists_sum_discWeightIfRowVanishes_le [Fintype S.LatticeStabilizerCoset] (u : Gf E 𝔰.κ) |
| 539 | {y : S.LatticeStabilizerCoset → stdLevel E 𝔰.κ} |
| 540 | (hy : ∀ φ : S.LatticeStabilizerCoset, (y φ : S.LatticeStabilizerCoset) = φ) |
| 541 | {r l : ℕ} (h_rank : r + l = 𝔰.k) (μ : ℕ) (L : S.BoundedDiscSublattice r (unimodularLattice u)) : |
| 542 | ∃ V : Submodule E (𝔰.κ → E), |
| 543 | (L.val ≤ saturatedLattice u.val.val_inv V ∧ |
| 544 | submoduleIndex L.val (saturatedLattice u.val.val_inv V) ≠ 0) ∧ |
| 545 | ∑ φ : S.LatticeStabilizerCoset, S.discWeightIfRowVanishes u (y φ) r L.val ≤ |
| 546 | ENNReal.ofReal ((S.N ^ numInfPlaces E) ^ l * S.discriminantBound ^ (μ + 2)) * |
| 547 | (subspaceDiscWeight u l V * |
| 548 | (submoduleIndex L.val (saturatedLattice u.val.val_inv V) : ℝ≥0∞)⁻¹ ^ |
| 549 | (finrank E V + μ)) := by |
| 550 | obtain ⟨L, hL, h_le, h_small⟩ := L |
| 551 | -- At most `i (N ^ f) ^ l` forms vanish on `L`, and each of them contributes `(d i) ^ (-k)`. |
| 552 | obtain ⟨V, rfl, h_sat, h_index, h_disc, h_forms⟩ := |
| 553 | exists_saturatedLattice_encard_rowVanishesModPiN_le u hy h_rank hL h_le |
| 554 | refine ⟨V, ⟨h_sat, h_index⟩, ?_⟩ |
| 555 | set d : ℝ := sublatticeDiscriminant u.val.val_inv V |
| 556 | set i : ℕ := submoduleIndex L (saturatedLattice u.val.val_inv V) |
| 557 | have hd : 1 ≤ d := one_le_sublatticeDiscriminant_unimodular u V |
| 558 | have hi : (1 : ℝ) ≤ i := Nat.one_le_cast.2 h_index.pos |
| 559 | have hi_pos : (0 : ℝ) < i := one_pos.trans_le hi |
| 560 | have h_di : d * i ≤ S.discriminantBound := h_disc.ge.trans h_small |
| 561 | have h_exponents : i * ((d * i) ^ 𝔰.k)⁻¹ ≤ |
| 562 | S.discriminantBound ^ (μ + 2) * ((d ^ (𝔰.k + 1))⁻¹ * (i : ℝ)⁻¹ ^ (finrank E V + μ)) := |
| 563 | mul_inv_pow_le_of_mul_le hd hi h_di (Nat.le.intro h_rank) μ |
| 564 | have discriminantBound_nonneg : 0 ≤ S.discriminantBound := |
| 565 | (hL.discriminant_pos.trans_le h_small).le |
| 566 | calc ∑ φ : S.LatticeStabilizerCoset, S.discWeightIfRowVanishes u (y φ) (finrank E V) L |
| 567 | _ = {φ : S.LatticeStabilizerCoset | S.RowVanishesModPiN u (y φ) L}.encard * |
| 568 | ENNReal.ofReal ((d * i) ^ 𝔰.k)⁻¹ := by |
| 569 | rw [sum_discWeightIfRowVanishes_eq_encard_mul, h_disc] |
| 570 | _ ≤ ENNReal.ofReal (i * (S.N ^ numInfPlaces E) ^ l) * ENNReal.ofReal ((d * i) ^ 𝔰.k)⁻¹ := by |
| 571 | gcongr |
| 572 | _ = ENNReal.ofReal ((S.N ^ numInfPlaces E) ^ l * (i * ((d * i) ^ 𝔰.k)⁻¹)) := by |
| 573 | rw [← ENNReal.ofReal_mul (by positivity), mul_comm (i : ℝ), mul_assoc] |
| 574 | _ ≤ ENNReal.ofReal ((S.N ^ numInfPlaces E) ^ l * S.discriminantBound ^ (μ + 2) * |
| 575 | ((d ^ (𝔰.k + 1))⁻¹ * (i : ℝ)⁻¹ ^ (finrank E V + μ))) := by |
| 576 | grw [h_exponents, mul_assoc] |
| 577 | _ = ENNReal.ofReal ((S.N ^ numInfPlaces E) ^ l * S.discriminantBound ^ (μ + 2)) * |
| 578 | (ENNReal.ofReal (d ^ (𝔰.k + 1))⁻¹ * ENNReal.ofReal (i : ℝ)⁻¹ ^ (finrank E V + μ)) := by |
| 579 | rw [ENNReal.ofReal_mul (by positivity), ← ENNReal.ofReal_pow (inv_pos.2 hi_pos).le, |
| 580 | ← ENNReal.ofReal_mul (p := (d ^ (𝔰.k + 1))⁻¹) (by positivity)] |
| 581 | _ = ENNReal.ofReal ((S.N ^ numInfPlaces E) ^ l * S.discriminantBound ^ (μ + 2)) * |
| 582 | (subspaceDiscWeight u l V * (i : ℝ≥0∞)⁻¹ ^ (finrank E V + μ)) := by |
| 583 | rw [subspaceDiscWeight, ite_eq_left h_rank, ENNReal.ofReal_inv_of_pos hi_pos, |
| 584 | ENNReal.ofReal_natCast] |
| 585 | |
| 586 | /-- Let `u` be in the finite adelic unitary group `Gf E 𝔰.κ`, let `V` be a subspace of `E ^ 𝔰.κ`, |
| 587 | and let `Λ = saturatedLattice u.1.val_inv V` be the lattice of adelic points of `V` in `u Ô ^ 𝔰.κ`. |
| 588 | Here `𝔰.k = #𝔰.κ` is the size of the index set of the shape `𝔰`, and `𝔰.ϱ` is its number of |
| 589 | hyperbolic planes. The sum of `[Λ : M] ^ (-dim V - 2 𝔰.ϱ - 4)` over the sublattices `M` of finite |
| 590 | index in `Λ` is at most `2 ^ 𝔰.k`. The filling data `S : Filling E 𝔰` are used only for a bound on |
| 591 | the degree of `E` in terms of `𝔰.ϱ`. -/ |
| 592 | lemma tsum_index_saturatedLattice_le (S : Filling E 𝔰) (u : Gf E 𝔰.κ) (V : Submodule E (𝔰.κ → E)) : |
| 593 | ∑' M : {M : Submodule (Ô E) (𝔰.κ → 𝔸f E) // M ≤ saturatedLattice u.val.val_inv V ∧ |
| 594 | submoduleIndex M (saturatedLattice u.val.val_inv V) ≠ 0}, |
| 595 | (submoduleIndex M.val (saturatedLattice u.val.val_inv V) : ℝ≥0∞)⁻¹ ^ |
| 596 | (finrank E V + (2 * 𝔰.ϱ + 4)) ≤ 2 ^ 𝔰.k := by |
| 597 | -- The sum is bounded by a power of the ideal zeta sum at `2 ϱ + 4`, which is at most `2`. |
| 598 | have h_zeta_pow : idealZeta (Ô E) (2 * 𝔰.ϱ + 4) ^ (𝔰.ϱ + 1) ≤ ENNReal.ofReal (1 + 2⁻¹ ^ 0) := by |
| 599 | simpa only [zero_add] using idealZeta_intAdeles_pow_le 0 S.mul_finrank_le_pow |
| 600 | have h_zeta : idealZeta (Ô E) (2 * 𝔰.ϱ + 4) ≤ 2 := le_two_of_pow_le_ofReal h_zeta_pow |
| 601 | have h_rank : finrank E V ≤ 𝔰.k := V.finrank_le.trans_eq (finrank_fintype_fun_eq_card E) |
| 602 | calc _ ≤ idealZeta (Ô E) (2 * 𝔰.ϱ + 4) ^ finrank E V := |
| 603 | (isLatticeOfRank_saturatedLattice u.val.val_inv V).tsum_submoduleIndex_inv_pow_le _ |
| 604 | _ ≤ 2 ^ finrank E V := by gcongr |
| 605 | _ ≤ 2 ^ 𝔰.k := pow_le_pow_right₀ one_le_two h_rank |
| 606 | |
| 607 | /-! ### The sum over the forms and the lattices in a unimodular lattice -/ |
| 608 | |
| 609 | /-- Let `S` be filling data over the CM field `E` with shape `𝔰`, and let `u` be in the finite |
| 610 | adelic unitary group `Gf E 𝔰.κ`. The set `S.LatticeStabilizerCoset` is the quotient of `stdLevel`, |
| 611 | the group of integral unitary matrices on `κ`, by its subgroup of matrices whose row `k₀` is |
| 612 | congruent to that of `1` modulo `S.piN`. Let `y φ` be an element of each such coset `φ`, and call |
| 613 | row `k₀` of `(y φ)⁻¹ u⁻¹` the form of `φ`. Let `r + l = k = #κ`. Take the sum of `(disc L) ^ (-k)` |
| 614 | over the pairs of a coset `φ` and a lattice `L` of rank `r` in `u Ô ^ κ` with discriminant at most |
| 615 | `H` on which the form of `φ` vanishes modulo `S.piN`. This sum is at most `(N ^ f) ^ l H ^ (2 ϱ + 6) |
| 616 | (200 f k rd) ^ (f (k + 1) l) 2 ^ k`. Here `N` is the prime of `S`, `H` is `discriminantBound`, `ϱ` |
| 617 | is the number of hyperbolic planes of `𝔰`, `f` is the number of infinite places and `rd` is the root |
| 618 | discriminant of `E`. -/ |
| 619 | lemma sum_tsum_discWeightIfRowVanishes_le [Fintype S.LatticeStabilizerCoset] (u : Gf E 𝔰.κ) |
| 620 | {y : S.LatticeStabilizerCoset → stdLevel E 𝔰.κ} |
| 621 | (hy : ∀ φ : S.LatticeStabilizerCoset, (y φ : S.LatticeStabilizerCoset) = φ) |
| 622 | {r l : ℕ} (h_rank : r + l = 𝔰.k) : |
| 623 | ∑ φ : S.LatticeStabilizerCoset, ∑' L : S.BoundedDiscSublattice r (unimodularLattice u), |
| 624 | S.discWeightIfRowVanishes u (y φ) r L.val ≤ |
| 625 | ENNReal.ofReal ((S.N ^ numInfPlaces E) ^ l * S.discriminantBound ^ (2 * 𝔰.ϱ + 4 + 2)) * |
| 626 | (ENNReal.ofReal ((200 * (numInfPlaces E * 𝔰.k) * rootDiscr E) ^ |
| 627 | (numInfPlaces E * (𝔰.k + 1) * l)) * 2 ^ 𝔰.k) := by |
| 628 | -- Each `L` is a sublattice of finite index in the saturated lattice of some subspace `V`. Sort |
| 629 | -- the `L` by `V`, and sum first over the sublattices and then over the subspaces. |
| 630 | set C : ℝ≥0∞ := |
| 631 | ENNReal.ofReal ((S.N ^ numInfPlaces E) ^ l * S.discriminantBound ^ (2 * 𝔰.ϱ + 4 + 2)) |
| 632 | let Sub (V : Submodule E (𝔰.κ → E)) : Type := |
| 633 | {M : Submodule (Ô E) (𝔰.κ → 𝔸f E) // M ≤ saturatedLattice u.val.val_inv V ∧ |
| 634 | submoduleIndex M (saturatedLattice u.val.val_inv V) ≠ 0} |
| 635 | let w (V : Submodule E (𝔰.κ → E)) (M : Sub V) : ℝ≥0∞ := |
| 636 | (submoduleIndex M.1 (saturatedLattice u.1.val_inv V) : ℝ≥0∞)⁻¹ ^ (finrank E V + (2 * 𝔰.ϱ + 4)) |
| 637 | have h_span (L : S.BoundedDiscSublattice r (unimodularLattice u)) : |
| 638 | ∃ (V : Submodule E (𝔰.κ → E)) (M : Sub V), M.val = L.val ∧ |
| 639 | ∑ φ : S.LatticeStabilizerCoset, S.discWeightIfRowVanishes u (y φ) r L.val ≤ C * |
| 640 | (subspaceDiscWeight u l V * w V M) := by |
| 641 | obtain ⟨V, h_sub, h_term⟩ := exists_sum_discWeightIfRowVanishes_le u hy h_rank (2 * 𝔰.ϱ + 4) L |
| 642 | exact ⟨V, ⟨L.val, h_sub⟩, rfl, h_term⟩ |
| 643 | choose span M hM h_term using h_span |
| 644 | let sort (L : S.BoundedDiscSublattice r (unimodularLattice u)) : Σ V : Submodule E (𝔰.κ → E), |
| 645 | Sub V := |
| 646 | ⟨span L, M L⟩ |
| 647 | have h_sort : Function.Injective sort := by |
| 648 | intro L L' h |
| 649 | have h_eq : (sort L).snd.val = (sort L').snd.val := by rw [h] |
| 650 | exact Subtype.ext (by rwa [← hM L, ← hM L']) |
| 651 | calc _ = ∑' L : S.BoundedDiscSublattice r (unimodularLattice u), ∑ φ : S.LatticeStabilizerCoset, |
| 652 | S.discWeightIfRowVanishes u (y φ) r L.val := |
| 653 | (Summable.tsum_finsetSum fun _ _ ↦ CompleteLattice.summable).symm |
| 654 | _ ≤ ∑' L : S.BoundedDiscSublattice r (unimodularLattice u), |
| 655 | C * (subspaceDiscWeight u l (span L) * w (span L) (M L)) := tsum_le_tsum h_term |
| 656 | _ ≤ ∑' p : Σ V : Submodule E (𝔰.κ → E), Sub V, C * (subspaceDiscWeight u l p.1 * w p.1 p.2) := |
| 657 | tsum_comp_le_tsum_of_injective h_sort fun p ↦ C * (subspaceDiscWeight u l p.1 * w p.1 p.2) |
| 658 | _ = C * ∑' V : Submodule E (𝔰.κ → E), subspaceDiscWeight u l V * ∑' M : Sub V, w V M := by |
| 659 | simp only [tsum_sigma', ENNReal.tsum_mul_left] |
| 660 | _ ≤ C * ((∑' V : Submodule E (𝔰.κ → E), subspaceDiscWeight u l V) * 2 ^ 𝔰.k) := by |
| 661 | rw [← ENNReal.tsum_mul_right] |
| 662 | gcongr with V |
| 663 | exact S.tsum_index_saturatedLattice_le u V |
| 664 | _ ≤ _ := by |
| 665 | gcongr |
| 666 | -- The weight vanishes off the subspaces of codimension `l`. |
| 667 | have h_support : Function.support (subspaceDiscWeight u l) ⊆ |
| 668 | {V : Submodule E (𝔰.κ → E) | finrank E V + l = Fintype.card 𝔰.κ} := |
| 669 | fun V hV ↦ of_not_not fun h_codim ↦ hV (ite_eq_right h_codim) |
| 670 | have h_weight (V : {V : Submodule E (𝔰.κ → E) // finrank E V + l = Fintype.card 𝔰.κ}) : |
| 671 | subspaceDiscWeight u l V.val = ENNReal.ofReal |
| 672 | (sublatticeDiscriminant u.val.val_inv V.val ^ (𝔰.k + 1))⁻¹ := |
| 673 | ite_eq_left V.property |
| 674 | rw [← tsum_subtype_eq_of_support_subset h_support] |
| 675 | exact (tsum_congr h_weight).trans_le (tsum_sublatticeDiscriminant_inv_le u l) |
| 676 | |
| 677 | end Forms |
| 678 | |
| 679 | /-! ### The constants and the sum over all classes -/ |
| 680 | |
| 681 | omit [HasPrimitiveRoot5040 E] in |
| 682 | /-- The number `S.tailScale = b ^ (k f / 4)` is nonnegative, as the size parameter `b` is. Here |
| 683 | `k = |κ|` and `f` is the number of infinite places of `E`. -/ |
| 684 | lemma tailScale_nonneg (S : Filling E 𝔰) : 0 ≤ S.tailScale := by |
| 685 | have hb : 0 < S.b := by linarith [S.thousand_le_b] |
| 686 | rw [tailScale] |
| 687 | positivity |
| 688 | |
| 689 | /-- For every natural number `ϱ`, with `n = ϱ + 1`, the number `1 + n ^ 3 (2 ϱ + 6) + 1` is at |
| 690 | most `10 ^ 5 n ^ 9`. This bounds an exponent of the size parameter in |
| 691 | `pow_mul_discriminantBound_pow_le`. -/ |
| 692 | lemma add_mul_succ_pow_three_le (ϱ : ℕ) : |
| 693 | 1 + (ϱ + 1) ^ 3 * (2 * ϱ + 4 + 2) + 1 ≤ 10 ^ 5 * (ϱ + 1) ^ 9 := by |
| 694 | have h_one : 1 ≤ (ϱ + 1) ^ 9 := Nat.one_le_pow _ _ ϱ.succ_pos |
| 695 | have h_linear : 2 * ϱ + 4 + 2 ≤ 6 * (ϱ + 1) := by lia |
| 696 | have h_cube : (ϱ + 1) ^ 3 ≤ (ϱ + 1) ^ 8 := by gcongr; lia |
| 697 | calc 1 + (ϱ + 1) ^ 3 * (2 * ϱ + 4 + 2) + 1 |
| 698 | _ ≤ (ϱ + 1) ^ 9 + (ϱ + 1) ^ 8 * (6 * (ϱ + 1)) + (ϱ + 1) ^ 9 := by gcongr |
| 699 | _ = 8 * (ϱ + 1) ^ 9 := by ring |
| 700 | _ ≤ 10 ^ 5 * (ϱ + 1) ^ 9 := Nat.mul_le_mul_right _ (by norm_num) |
| 701 | |
| 702 | section |
| 703 | |
| 704 | omit [HasPrimitiveRoot5040 E] |
| 705 | |
| 706 | /-- Let `S` be filling data that satisfy the standing hypotheses `IsAdmissible`. The product |
| 707 | `b ^ f H ^ (2 ϱ + 6) 2 ^ k` is at most `tailScale = b ^ (k f / 4)`. Here `b` is the size parameter |
| 708 | of `S`, `k = #κ`, `f` is the number of infinite places of `E`, and |
| 709 | `H = discriminantBound = b ^ (n ^ 3 f)` with `n = ϱ + 1`. -/ |
| 710 | lemma pow_mul_discriminantBound_pow_le (S : Filling E 𝔰) : |
| 711 | S.b ^ numInfPlaces E * S.discriminantBound ^ (2 * 𝔰.ϱ + 4 + 2) * 2 ^ 𝔰.k ≤ S.tailScale := by |
| 712 | have hb : 2 ≤ S.b := by linarith [S.thousand_le_b] |
| 713 | have discriminantBound_nonneg : 0 ≤ S.discriminantBound := pow_nonneg (zero_le_two.trans hb) _ |
| 714 | have h_two : (2 : ℝ) ^ 𝔰.k ≤ S.b ^ numInfPlaces E := |
| 715 | (by gcongr : (2 : ℝ) ^ 𝔰.k ≤ S.b ^ 𝔰.k).trans (pow_le_pow_right₀ S.one_le_b S.k_le_f) |
| 716 | have h_exponent : 1 + 𝔰.n ^ 3 * (2 * 𝔰.ϱ + 4 + 2) + 1 ≤ 10 ^ 5 * 𝔰.n ^ 9 := |
| 717 | add_mul_succ_pow_three_le 𝔰.ϱ |
| 718 | calc S.b ^ numInfPlaces E * S.discriminantBound ^ (2 * 𝔰.ϱ + 4 + 2) * 2 ^ 𝔰.k |
| 719 | _ ≤ S.b ^ numInfPlaces E * S.discriminantBound ^ (2 * 𝔰.ϱ + 4 + 2) * S.b ^ numInfPlaces E := by |
| 720 | gcongr |
| 721 | _ = S.b ^ ((1 + 𝔰.n ^ 3 * (2 * 𝔰.ϱ + 4 + 2) + 1) * numInfPlaces E) := by |
| 722 | rw [discriminantBound] |
| 723 | ring |
| 724 | _ ≤ S.tailScale := pow_le_tailScale (Nat.mul_le_mul_right _ h_exponent) |
| 725 | |
| 726 | /-- Let `S` be filling data that satisfy the standing hypotheses `IsAdmissible`, among them |
| 727 | `N ≤ b ^ (60 (ϱ + 1))`. The product `N ^ f (200 f k rd) ^ (f (k + 1))` is at most |
| 728 | `tailScale = b ^ (k f / 4)`. Here `N` is the prime and `b` the size parameter of `S`, `k = #κ`, `f` |
| 729 | is the number of infinite places and `rd` the root discriminant of `E`. -/ |
| 730 | lemma pow_mul_mul_rootDiscr_pow_le_tailScale (S : Filling E 𝔰) [S.IsAdmissible] : |
| 731 | S.N ^ numInfPlaces E * |
| 732 | (200 * (numInfPlaces E * 𝔰.k) * rootDiscr E) ^ (numInfPlaces E * (𝔰.k + 1)) ≤ |
| 733 | S.tailScale := by |
| 734 | -- Compare the thousandth powers, which are bounded by powers of `b`. |
| 735 | have hb : 0 < S.b := by linarith [S.thousand_le_b] |
| 736 | have h_exponent : 60 * 𝔰.n * 1000 + (𝔰.k + 1) ≤ 250 * 𝔰.k := by |
| 737 | have hk : 1000 * (2 * 𝔰.ϱ + 2) ≤ 𝔰.k := S.thousand_mul_le_k |
| 738 | lia |
| 739 | refine le_of_pow_le_pow_left₀ (n := 1000) (by norm_num) S.tailScale_nonneg ?_ |
| 740 | set X : ℝ := 200 * (numInfPlaces E * 𝔰.k) * rootDiscr E |
| 741 | calc (S.N ^ numInfPlaces E * X ^ (numInfPlaces E * (𝔰.k + 1))) ^ 1000 |
| 742 | _ = (S.N ^ 1000 * (X ^ 1000) ^ (𝔰.k + 1)) ^ numInfPlaces E := by |
| 743 | simp only [mul_pow, ← pow_mul] |
| 744 | ring |
| 745 | _ ≤ ((S.b ^ (60 * 𝔰.n)) ^ 1000 * S.b ^ (𝔰.k + 1)) ^ numInfPlaces E := by |
| 746 | gcongr |
| 747 | exacts [IsAdmissible.N_le, S.mul_rootDiscr_pow_le] |
| 748 | _ ≤ (S.b ^ (250 * 𝔰.k)) ^ numInfPlaces E := by |
| 749 | rw [← pow_mul, ← pow_add] |
| 750 | gcongr |
| 751 | exact S.one_le_b |
| 752 | _ = (S.b ^ (𝔰.k * numInfPlaces E)) ^ 250 := by ring |
| 753 | _ = S.tailScale ^ 1000 := by rw [← tailScale_pow_four, ← pow_mul] |
| 754 | |
| 755 | /-- Let `S` be filling data that satisfy the standing hypotheses `IsAdmissible`, among them |
| 756 | `N ≤ b ^ (60 (ϱ + 1))`. For every `l`, the constant `(N ^ f) ^ l H ^ (2 ϱ + 6) (200 f |
| 757 | k rd) ^ (f (k + 1) l) 2 ^ k` of `sum_tsum_discWeightIfRowVanishes_le` is at most |
| 758 | `tailScale ^ (l + 1) / b ^ f`. Here `N` is the prime and `b` the size parameter of `S`, `k = #κ`, |
| 759 | `f` is the number of infinite places and `rd` the root discriminant of `E`, |
| 760 | `H = discriminantBound = b ^ ((ϱ + 1) ^ 3 f)` and `tailScale = b ^ (k f / 4)`. -/ |
| 761 | lemma mul_rootDiscr_pow_le_tailScale_pow_div (S : Filling E 𝔰) [S.IsAdmissible] (l : ℕ) : |
| 762 | (S.N ^ numInfPlaces E) ^ l * S.discriminantBound ^ (2 * 𝔰.ϱ + 4 + 2) * |
| 763 | ((200 * (numInfPlaces E * 𝔰.k) * rootDiscr E) ^ (numInfPlaces E * (𝔰.k + 1) * l) * |
| 764 | 2 ^ 𝔰.k) ≤ |
| 765 | S.tailScale ^ (l + 1) / S.b ^ numInfPlaces E := by |
| 766 | have hb : 0 < S.b := by linarith [S.thousand_le_b] |
| 767 | have h_rd : 0 < rootDiscr E := rootDiscr_pos E |
| 768 | have hτ : 0 ≤ S.tailScale := S.tailScale_nonneg |
| 769 | rw [le_div_iff₀ (by positivity)] |
| 770 | calc _ = S.b ^ numInfPlaces E * S.discriminantBound ^ (2 * 𝔰.ϱ + 4 + 2) * 2 ^ 𝔰.k * |
| 771 | (S.N ^ numInfPlaces E * |
| 772 | (200 * (numInfPlaces E * 𝔰.k) * rootDiscr E) ^ (numInfPlaces E * (𝔰.k + 1))) ^ l := by |
| 773 | rw [pow_mul _ _ l] |
| 774 | ring |
| 775 | _ ≤ S.tailScale * S.tailScale ^ l := by |
| 776 | gcongr |
| 777 | · exact S.pow_mul_discriminantBound_pow_le |
| 778 | · exact S.pow_mul_mul_rootDiscr_pow_le_tailScale |
| 779 | _ = S.tailScale ^ (l + 1) := by ring |
| 780 | |
| 781 | end |
| 782 | |
| 783 | /-- **Lattices of given corank.** Let `S` be filling data, with prime `N = π π̄` and size parameter |
| 784 | `b`, that satisfy the standing hypotheses `IsAdmissible`; those used are the form of the level, |
| 785 | `N ≤ b ^ (60 (ϱ + 1))`, the lower bounds `1000 ≤ b` and `5 ≤ N`, and a lower bound for an index. Let |
| 786 | `k₀ = 𝔰.k₀` be the distinguished index in `κ` given by the shape `𝔰`, and let `r + l = k = #κ`. For |
| 787 | a class `c` in the double coset space `S.Classes` of `U(X₀)`, with chosen representative `g`, the |
| 788 | lattice `classLatticeX₀ c` consists of the adelic vectors `v` such that `g⁻¹ v` is integral with |
| 789 | entry `k₀` divisible by `π̄`. Take the sum of `(disc L) ^ (-k)` over all `c` and all lattices `L` of |
| 790 | rank `r` in that lattice with `disc L ≤ discriminantBound = b ^ ((ϱ + 1) ^ 3 f)`. This sum is at |
| 791 | most `tailScale ^ (l + 1)` times the number of classes divided by `N ^ (k f)`. -/ |
| 792 | theorem sum_discriminant_inv_le {S : Filling E 𝔰} [S.IsAdmissible] {r l : ℕ} |
| 793 | (h_rank : r + l = 𝔰.k) : |
| 794 | ∑ c : S.Classes, ∑' L : {L : Submodule (Ô E) (𝔰.κ → 𝔸f E) // IsLatticeOfRank r L ∧ |
| 795 | L ≤ S.classLatticeX₀ c ∧ discriminant r L ≤ S.discriminantBound}, |
| 796 | ENNReal.ofReal (discriminant r L.val ^ 𝔰.k)⁻¹ ≤ |
| 797 | .ofReal (card S.Classes / S.N ^ (𝔰.k * numInfPlaces E) * S.tailScale ^ (l + 1)) := by |
| 798 | -- The mean over the classes is a mean over `u` of the mean over the lattice stabilizer cosets |
| 799 | -- `φ`, of which there are at least `(N ^ k / b) ^ f`. |
| 800 | have hb : 0 < S.b := by linarith [S.thousand_le_b] |
| 801 | have hN : (0 : ℝ) < S.N := by linarith [S.five_le_N] |
| 802 | have hτ : 0 ≤ S.tailScale := S.tailScale_nonneg |
| 803 | have discriminantBound_nonneg : 0 ≤ S.discriminantBound := pow_nonneg hb.le _ |
| 804 | have h_rd : 0 < rootDiscr E := rootDiscr_pos E |
| 805 | have h_card : (S.N ^ 𝔰.k / S.b) ^ numInfPlaces E ≤ (Nat.card S.LatticeStabilizerCoset : ℝ) := |
| 806 | IsAdmissible.le_relIndex |
| 807 | have h_card_pos : (0 : ℝ) < Nat.card S.LatticeStabilizerCoset := h_card.trans_lt' (by positivity) |
| 808 | let : Fintype S.LatticeStabilizerCoset := |
| 809 | Subgroup.fintypeOfIndexNeZero (Nat.cast_pos.1 h_card_pos).ne' |
| 810 | rw [mul_comm_div] |
| 811 | refine sum_classes_le_of_sum_translates_le (fun φ : S.LatticeStabilizerCoset ↦ φ.out.val) _ |
| 812 | (by positivity) fun u ↦ ?_ |
| 813 | have h_rep : ∀ φ : S.LatticeStabilizerCoset, ∃ (η : U (stdSpace E 𝔰.κ).J) (y : stdLevel E 𝔰.κ), |
| 814 | (y : S.LatticeStabilizerCoset) = φ ∧ |
| 815 | (⟦u * φ.out⟧ : S.Classes).out = (stdSpace E 𝔰.κ).embFin η * u * y := |
| 816 | exists_mk_out_eq_embFin_mul u |
| 817 | choose η y hy h_out using h_rep |
| 818 | calc ∑ φ : S.LatticeStabilizerCoset, ∑' L : |
| 819 | S.BoundedDiscSublattice r (S.classLatticeX₀ ⟦u * φ.out⟧), |
| 820 | ENNReal.ofReal (discriminant r L.val ^ 𝔰.k)⁻¹ |
| 821 | _ ≤ ∑ φ : S.LatticeStabilizerCoset, ∑' L : S.BoundedDiscSublattice r (unimodularLattice u), |
| 822 | S.discWeightIfRowVanishes u (y φ) r L.val := |
| 823 | Finset.sum_le_sum fun φ _ ↦ tsum_discriminant_inv_le_of_out_eq (h_out φ) r |
| 824 | _ ≤ ENNReal.ofReal ((S.N ^ numInfPlaces E) ^ l * S.discriminantBound ^ (2 * 𝔰.ϱ + 4 + 2) * |
| 825 | ((200 * (numInfPlaces E * 𝔰.k) * rootDiscr E) ^ (numInfPlaces E * (𝔰.k + 1) * l) * |
| 826 | 2 ^ 𝔰.k)) := by |
| 827 | refine (sum_tsum_discWeightIfRowVanishes_le u hy h_rank).trans_eq ?_ |
| 828 | simp (disch := positivity) only [ENNReal.ofReal_mul, ENNReal.ofReal_pow two_pos.le, |
| 829 | ENNReal.ofReal_ofNat] |
| 830 | _ ≤ ENNReal.ofReal (S.tailScale ^ (l + 1) / S.b ^ numInfPlaces E) := |
| 831 | ENNReal.ofReal_le_ofReal (S.mul_rootDiscr_pow_le_tailScale_pow_div l) |
| 832 | _ = ENNReal.ofReal ((S.N ^ 𝔰.k / S.b) ^ numInfPlaces E * |
| 833 | (S.tailScale ^ (l + 1) / S.N ^ (𝔰.k * numInfPlaces E))) := by |
| 834 | congr 1 |
| 835 | rw [div_pow, ← pow_mul] |
| 836 | field_simp |
| 837 | _ ≤ ENNReal.ofReal |
| 838 | (card S.LatticeStabilizerCoset * |
| 839 | (S.tailScale ^ (l + 1) / S.N ^ (𝔰.k * numInfPlaces E))) := by |
| 840 | grw [h_card, Nat.card_eq_fintype_card] |
| 841 | |
| 842 | end CrudeLattices |
| 843 | |
| 844 | end New.Filling |
| 845 | |
| 846 | end |