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.CategoryTheory.Countable |
| 5 | public import Mathlib.Topology.Algebra.ProperConstSMul -- shake: keep (needed public by an exposed definition) |
| 6 | import TauCeti.Topology.Algebra.Group.Units |
| 7 | import TauCeti.Topology.Instances.Matrix |
| 8 | public import Lib.DiscreteSeries.Bruhat.QuadricBlocks |
| 9 | public import Lib.SiegelWeil.OneVector.FinitePlaceDensity |
| 10 | public import New.Spanning.Bessel.Basic |
| 11 | public import New.Spanning.Frames.Correlations |
| 12 | import Lib.Base |
| 13 | import Lib.General.LinearAlgebra.HermiteForm |
| 14 | import Lib.SiegelWeil.OneVector.StandardQuadrics |
| 15 | import New.Spanning.Frames.QuadricPlancherel |
| 16 | import New.Spanning.Frames.QuadricVolumes |
| 17 | import New.Spanning.Unfolding.BesselLevelStructure |
| 18 | |
| 19 | /-! |
| 20 | # Place data and gauges at a finite place from the lattice of integral vectors |
| 21 | |
| 22 | The estimates on the tower of unitary groups are proved for an abstract place `A` (a |
| 23 | `New.Floors.Place`) with a place datum (`New.Floors.PlaceData`) and a gauge (`New.Floors.Gauge`). |
| 24 | This file supplies these data at a finite place `New.Floors.IntegralPlace`, whose ring of integers |
| 25 | is `integers`, from the lattice of integral vectors. A finite place in this sense may be a finite |
| 26 | set of finite places read as one ring. |
| 27 | |
| 28 | * `New.Floors.IntegralPlace.IsLatticeData`, `New.Floors.IntegralPlace.exists_isLatticeData`: the |
| 29 | lattice datum, and its existence. |
| 30 | * `New.Floors.IntegralPlace.IsLargeLatticeData`, |
| 31 | `New.Floors.IntegralPlace.IsLargeLatticeData.gauge`: such a datum with rank bounds, a character |
| 32 | trivial on traces and a unimodular group, and its gauges. |
| 33 | * `New.Floors.IntegralPlace.IsLargeLatticeData.heisenbergMeasure_eq_floorModulus`, |
| 34 | `New.Floors.IntegralPlace.IsLargeLatticeData.ascConv_mconv_unitaryLevel_coset`: masses of the |
| 35 | congruence subgroup `K(g)` and its cosets. |
| 36 | * `New.Floors.IntegralPlace.IsLargeLatticeData.groupMeasure_boxSet_le`, |
| 37 | `New.Floors.IntegralPlace.IsLargeLatticeData.le_partialGroupMeasure_boxSet`, |
| 38 | `New.Floors.IntegralPlace.IsLargeLatticeData.isHaarMeasure_groupMeasure`: bounds for the mass of |
| 39 | the group of integral isometries, and the fact that `F.groupMeasure` is a Haar measure. |
| 40 | |
| 41 | The form `h` has Gram matrix `T.splitGram`: `ϱ` hyperbolic planes and a middle block `T`. The number |
| 42 | `ϱ` comes from the shape `𝔰`. `New.unitaryLevel integers g J` is the congruence subgroup `K(g)` of |
| 43 | the unitary group (integral elements congruent to `1` modulo `g`), `P.modulus u` is the factor by |
| 44 | which a unit `u` scales the volume, and `z` is the last vector of the frame e_0, …, e_(ϱ-1), z. |
| 45 | |
| 46 | Notions from other files: |
| 47 | * `New.latticeMiddleGram`: The Gram matrix of X₀ ⊕ Az in the basis x_i (i ≠ k₀), v, z, where |
| 48 | v = x_{k₀}/p̄ + z/N and N = p p̄. |
| 49 | * `New.idealZeta`: The ideal zeta sum ∑ [R : I]^(−s) over the ideals I of finite index in R, for a |
| 50 | natural number s, with values in [0, ∞]. |
| 51 | * `New.Floors.HyperbolicBasis`: A basis of the middle block made of a first hyperbolic pair, `m` |
| 52 | more pairs and an orthonormal part indexed by `ι`. |
| 53 | * `New.Shape.Form.besselU`, `New.Shape.Form.besselH`: The block upper unitriangular isometries, and |
| 54 | the isometries that fix all basis vectors outside X₀. |
| 55 | |
| 56 | ## Relation to the literature |
| 57 | |
| 58 | See `New.Spanning.MainTerm.EnergyEstimate` for related work. |
| 59 | -/ |
| 60 | |
| 61 | @[expose] public section |
| 62 | |
| 63 | noncomputable section |
| 64 | |
| 65 | namespace New.Floors |
| 66 | |
| 67 | open Matrix MeasureTheory Measure ENNReal Sum Fintype PlaceData FloorGroups Pointwise Place |
| 68 | SemilocalField Finset |
| 69 | |
| 70 | /-! ### The vector `x - (π π̄)⁻¹ t z` in the lattice basis -/ |
| 71 | |
| 72 | section TailVector |
| 73 | |
| 74 | variable {A : Type} {𝔰 : Shape} [CommRing A] [StarRing A] |
| 75 | |
| 76 | /-- The vector x − (ππ̄)⁻¹t z of X₀ ⊕ Az, for x in `𝔰.κ → A` and t in A, written in the lattice |
| 77 | basis `besselLatticeBasis 𝔰 π`. -/ |
| 78 | def vectorOfLastEntry (π : Aˣ) (t : A) (x : 𝔰.κ → A) : 𝔰.BesselIndex → A := |
| 79 | (besselLatticeBasis 𝔰 π)⁻¹.val *ᵥ (0 ⊕ᵥ ((x ⊕ᵥ fun _ : Unit ↦ -(π * star π)⁻¹ * t) ⊕ᵥ 0)) |
| 80 | |
| 81 | variable {π : Aˣ} {N t : A} {x : 𝔰.κ → A} |
| 82 | |
| 83 | /-- Let `π π̄ = N`, let `h` be the form with Gram matrix `J = (latticeMiddleGram 𝔰 N).splitGram`, |
| 84 | and let `e = vectorOfLastEntry π t x`. Then (a) `h(e, e) = x* x - t t̄ / (π π̄)`, and (b) |
| 85 | `h(z, e) = t`. -/ |
| 86 | lemma form_vectorOfLastEntry (hN : π * star ↑π = N) : |
| 87 | let J : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A := (latticeMiddleGram 𝔰 N).splitGram |
| 88 | let e : 𝔰.BesselIndex → A := vectorOfLastEntry π t x |
| 89 | -- (a) the value h(e, e) |
| 90 | star e ⬝ᵥ J *ᵥ e = star x ⬝ᵥ x - (π * star π)⁻¹.val * t * star t ∧ |
| 91 | -- (b) the pairing h(z, e) |
| 92 | (J *ᵥ e) 𝔰.z = t := by |
| 93 | intro J e |
| 94 | -- in the standard basis `e` has coordinates `v`, and the middle block is `middleGram` |
| 95 | let B : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A := besselLatticeBasis 𝔰 π |
| 96 | let s : A := (π * star π)⁻¹.val * t |
| 97 | let v : 𝔰.BesselIndex → A := 0 ⊕ᵥ ((x ⊕ᵥ fun _ : Unit ↦ -s) ⊕ᵥ 0) |
| 98 | have h_coord : B *ᵥ e = v := by simp [B, e, v, s, vectorOfLastEntry, mulVec_mulVec] |
| 99 | have h_pair : J *ᵥ e = Bᴴ *ᵥ (𝔰.middleGram N).splitGram *ᵥ v := by |
| 100 | rw [← h_coord, mulVec_mulVec, mulVec_mulVec, gram_besselLatticeBasis π N hN] |
| 101 | have h_cancel : N * s = t := by |
| 102 | rw [← hN, ← mul_assoc, ← Units.coe_star, ← Units.val_mul, Units.mul_inv, one_mul] |
| 103 | constructor |
| 104 | · calc star e ⬝ᵥ J *ᵥ e |
| 105 | _ = star v ⬝ᵥ (𝔰.middleGram N).splitGram *ᵥ v := by |
| 106 | rw [h_pair, ← star_mulVec_dotProduct, h_coord] |
| 107 | _ = star x ⬝ᵥ x - star s * (N * s) := by |
| 108 | simp [v, splitGram, middleGram, mulVec, dotProduct, Matrix.one_apply, sub_eq_add_neg] |
| 109 | _ = star x ⬝ᵥ x - (π * star π)⁻¹.val * t * star t := by |
| 110 | rw [h_cancel] |
| 111 | simp [s, mul_comm, mul_left_comm] |
| 112 | · rw [h_pair, ← h_cancel] |
| 113 | simp [B, v, besselLatticeBasis, splitGram, middleGram, mulVec, dotProduct, Matrix.one_apply] |
| 114 | |
| 115 | /-- The vector `vectorOfLastEntry π t x` depends continuously on the pair `(t, x)`. -/ |
| 116 | @[fun_prop] |
| 117 | lemma continuous_vectorOfLastEntry [TopologicalSpace A] [MeasureSpace A] [P : Place A] : |
| 118 | Continuous fun z : A × (𝔰.κ → A) ↦ vectorOfLastEntry π z.1 z.2 := by |
| 119 | refine continuous_const.matrix_mulVec (continuous_pi ?_) |
| 120 | rintro (i | (i | i) | i) <;> simp only [Sum.elim_inl, Sum.elim_inr] <;> fun_prop |
| 121 | |
| 122 | end TailVector |
| 123 | |
| 124 | /-! ### The lattice datum of integral vectors -/ |
| 125 | |
| 126 | variable {ι : Type} {𝔰 : Shape} [Fintype ι] [DecidableEq ι] {m : ℕ} |
| 127 | {A : Type} [SemilocalField A] [StarRing A] [P : IntegralPlace A] |
| 128 | {T : 𝔰.Form A} [IsHermitianUnit T.splitGram] {g : Aˣ} (F : PlaceData ι T m) |
| 129 | |
| 130 | /-- The principal congruence subgroup K(g) of the place datum `F`: the integral isometries congruent |
| 131 | to 1 modulo the unit `g = F.levelUnit`. -/ |
| 132 | abbrev PlaceData.congruenceSubgroup : Subgroup (U T.splitGram) := |
| 133 | unitaryLevel O F.levelUnit T.splitGram |
| 134 | |
| 135 | variable (𝔰 g) in |
| 136 | /-- The pairs (ω₁, ω₂) of vectors with ω₁ integral and ω₂ ≡ ω₁ modulo g. -/ |
| 137 | abbrev IntegralPlace.congruentPairs : Set ((𝔰.BesselIndex → A) × (𝔰.BesselIndex → A)) := |
| 138 | {ω : (𝔰.BesselIndex → A) × (𝔰.BesselIndex → A) | |
| 139 | ω.1 ∈ intVectors P.integers 𝔰.BesselIndex ∧ g⁻¹.val • (ω.1 - ω.2) ∈ intVectors P.integers |
| 140 | 𝔰.BesselIndex} |
| 141 | |
| 142 | /-- For a unit `g` of the finite place `A`, the set `P.congruentPairs 𝔰 g` of the pairs (ω₁, ω₂) |
| 143 | with ω₁ and g⁻¹ (ω₁ - ω₂) integral is open, contains 0 and has compact closure. -/ |
| 144 | lemma IntegralPlace.isOpen_congruentPairs_and_isCompact_closure : |
| 145 | IsOpen (P.congruentPairs 𝔰 g) ∧ 0 ∈ P.congruentPairs 𝔰 g ∧ |
| 146 | IsCompact (closure (P.congruentPairs 𝔰 g)) := by |
| 147 | obtain ⟨h_open, h_compact, -⟩ := isOpen_isCompact_volume_intVectors (A := A) (ι := 𝔰.BesselIndex) |
| 148 | refine ⟨.inter (h_open.preimage continuous_fst) (h_open.preimage (by fun_prop)), by simp, ?_⟩ |
| 149 | -- The set lies in the image of the pairs of integral vectors under (ω, δ) ↦ (ω, ω - g δ). |
| 150 | have h_image : IsCompact ((fun ω : (𝔰.BesselIndex → A) × (𝔰.BesselIndex → A) ↦ |
| 151 | (ω.1, ω.1 - g.val • ω.2)) '' |
| 152 | (intVectors P.integers 𝔰.BesselIndex ×ˢ intVectors P.integers 𝔰.BesselIndex)) := |
| 153 | (h_compact.prod h_compact).image (by fun_prop) |
| 154 | exact h_image.closure_of_subset fun ω hω ↦ ⟨(ω.1, g⁻¹.val • (ω.1 - ω.2)), hω, by simp [smul_smul]⟩ |
| 155 | |
| 156 | /-- The place datum `F` at a finite place is the one given by the lattice of integral vectors. Its |
| 157 | data are integral (`integral_data`). Its box is the group `K` of integral isometries, and its close |
| 158 | pairs are the pairs of integral vectors congruent modulo the level. Its measures are normalised or |
| 159 | bounded below on `K` (`volume_le_and_boxSet_closePairs_positions_eq`). An isotropic vector is dual |
| 160 | to the last frame vector (`exists_isotropic`). -/ |
| 161 | structure IntegralPlace.IsLatticeData : Prop where |
| 162 | /-- The Gram matrix is hermitian and invertible over `integers`, the basis `F.basisMatrix` is |
| 163 | integral, and the unit `F.levelUnit` is integral and fixed by the involution. -/ |
| 164 | integral_data : |
| 165 | IsUnimodular integers T.splitGram ∧ IsIntMatrix integers F.basisMatrix ∧ F.levelUnit.val ∈ |
| 166 | integers ∧ |
| 167 | star F.levelUnit.val = F.levelUnit |
| 168 | /-- The box `F.boxSet` is the group of integral isometries. Its `F.topFloorMeasure`-measure is at |
| 169 | least the volume of the units of `integers`, and its `F.measureH`-measure is `1`. The close pairs |
| 170 | are the pairs of integral vectors congruent modulo `F.levelUnit`. The positions `F.positions` are |
| 171 | the `y⁻¹ * u * y |
| 172 | * k`, with `u` in `T.besselU` and `k` in `F.congruenceSubgroup`. -/ |
| 173 | volume_le_and_boxSet_closePairs_positions_eq : |
| 174 | volume P.intUnits ≤ F.topFloorMeasure F.boxSet ∧ |
| 175 | F.boxSet = unitaryLevel integers 1 T.splitGram ∧ |
| 176 | F.measureH F.boxSet = 1 ∧ |
| 177 | F.closePairs = P.congruentPairs 𝔰 F.levelUnit ∧ |
| 178 | F.positions = {y⁻¹ * u * y | (y : T.G) (u ∈ T.besselU)} * F.congruenceSubgroup |
| 179 | /-- There is a vector `u` such that pairing with `u` reads the coordinate at the last frame vector |
| 180 | z, and this coordinate of `u` is zero; so `u` is isotropic with h(u, z) = 1. -/ |
| 181 | exists_isotropic : ∃ u : 𝔰.BesselIndex → A, |
| 182 | star u ᵥ* T.splitGram = Pi.single (𝔰.besselFrame 𝔰.top) 1 ∧ u (𝔰.besselFrame 𝔰.top) = 0 |
| 183 | |
| 184 | /-- A lattice datum with `m + 1` further hyperbolic pairs is large if its ranks satisfy the bounds |
| 185 | of `zeta_le_and_le_card`, the character of the place is trivial on traces, and the unitary group is |
| 186 | unimodular. -/ |
| 187 | class IntegralPlace.IsLargeLatticeData (F : PlaceData ι T (m + 1)) : |
| 188 | Prop extends P.IsLatticeData F where |
| 189 | /-- The ideal zeta sum of `P.integers` at `m` has `𝔰.n`-th power at most `1 + 2⁻¹ ^ 𝔰.n`, the |
| 190 | number `m` is less than `9 * 𝔰.n`, and the orthonormal part of the basis has at least `53 * 𝔰.n` |
| 191 | vectors. -/ |
| 192 | zeta_le_and_le_card : |
| 193 | idealZeta P.integers m ^ 𝔰.n ≤ ENNReal.ofReal (1 + 2⁻¹ ^ 𝔰.n) ∧ |
| 194 | m < 9 * 𝔰.n ∧ |
| 195 | 53 * 𝔰.n ≤ Fintype.card ι |
| 196 | /-- The character of the place is trivial on traces. -/ |
| 197 | psi_add_star (x : A) : P.ψ (x + star x) = 1 |
| 198 | /-- The unitary group is unimodular: some left Haar measure is right invariant. -/ |
| 199 | unimodular : ∃ ν : Measure T.G, ν.IsHaarMeasure ∧ ν.IsMulRightInvariant |
| 200 | |
| 201 | omit [IsHermitianUnit T.splitGram] in |
| 202 | /-- Let `T.G` be the unitary group of the form with middle block `T` over the finite place `A`, and |
| 203 | K = `unitaryLevel integers 1 T.splitGram` its subgroup of isometries over the ring of integers. |
| 204 | Let H = `T.besselH` be the fixer of the basis vectors outside `𝔰.κ`, and 𝖴 = `T.besselU` the group |
| 205 | of block upper unitriangular isometries. There is an s-finite measure on `T.G`, carried by H and |
| 206 | invariant under right translation by H, that gives K mass `1` and, for every `y`, gives the set |
| 207 | 𝖴 K y⁻¹ mass at most `1`. -/ |
| 208 | lemma IntegralPlace.exists_right_invariant_measure_besselH : |
| 209 | ∃ η : Measure T.G, |
| 210 | SFinite η ∧ |
| 211 | η (unitaryLevel integers 1 T.splitGram) = 1 ∧ |
| 212 | (∀ᵐ x : T.G ∂η, x ∈ T.besselH) ∧ |
| 213 | (∀ s ∈ T.besselH, η ∗ₘ dirac s = η) ∧ |
| 214 | ∀ y : T.G, η {h : T.G | ∃ u ∈ T.besselU, u * (h * y) ∈ unitaryLevel integers 1 T.splitGram} ≤ |
| 215 | 1 := by |
| 216 | -- `ν` is the right Haar measure on the closed subgroup `H` with ν (H ∩ K) = 1, and `η` its |
| 217 | -- image in the whole group |
| 218 | let K : Subgroup (U T.splitGram) := unitaryLevel integers 1 T.splitGram |
| 219 | let H : Subgroup T.G := T.besselH |
| 220 | have h_closed : IsClosed (H : Set T.G) := isClosed_of_entries_eq_one mem_floorGroup |
| 221 | have h_emb : MeasurableEmbedding (Subtype.val : H → T.G) := |
| 222 | .subtypeVal h_closed.measurableSet |
| 223 | have h_open : IsOpen (K : Set T.G)⁻¹ := IsOpen.inv unitaryLevel_open_compact.1 |
| 224 | let K₀ : TopologicalSpace.PositiveCompacts H := |
| 225 | ⟨⟨Subtype.val ⁻¹' (K : Set T.G)⁻¹, unitaryLevel_open_compact.2.inv.preimage_val h_closed⟩, |
| 226 | 1, by rw [h_open.preimage_val.interior_eq]; simp⟩ |
| 227 | let ν : Measure H := (haarMeasure K₀).inv |
| 228 | let η : Measure T.G := ν.map Subtype.val |
| 229 | have η_apply (S : Set T.G) : η S = ν (Subtype.val ⁻¹' S) := h_emb.map_apply ν S |
| 230 | have η_box : η K = 1 := |
| 231 | calc η K = haarMeasure K₀ (Subtype.val ⁻¹' (K : Set T.G))⁻¹ := by |
| 232 | rw [η_apply, Measure.inv_apply] |
| 233 | _ = 1 := haarMeasure_self |
| 234 | have η_right (s : T.G) (hs : s ∈ H) : η ∗ₘ dirac s = η := by |
| 235 | have h_pres : MeasurePreserving (· * s) η η := |
| 236 | (h_emb.measurable.measurePreserving ν).of_semiconj (measurePreserving_mul_right ν ⟨s, hs⟩) |
| 237 | (fun _ ↦ rfl) (by fun_prop) |
| 238 | rw [mconv_dirac, h_pres.map_eq] |
| 239 | -- the `h` in H with `h y ∈ besselU · K` lie in one right coset of H ∩ K |
| 240 | have η_le (y : T.G) : η {h : T.G | ∃ u ∈ T.besselU, u * (h * y) ∈ K} ≤ 1 := by |
| 241 | rw [← η_box, η_apply, η_apply] |
| 242 | exact measure_le_of_div_mem fun h ⟨u, hu, huh⟩ ↦ ⟨h, fun k ⟨w, hw, hwk⟩ ↦ |
| 243 | div_mem_unitaryLevel_of_besselU_mul h.prop k.prop hu hw huh hwk⟩ |
| 244 | exact ⟨η, inferInstance, η_box, h_emb.ae_map_iff.mpr (by simp), η_right, η_le⟩ |
| 245 | |
| 246 | /-- Let `N` in `P.integers` be self-conjugate and let the rank `𝔰.k` of X₀ be `|ι| + 2 m + 1`. Then |
| 247 | the middle block `latticeMiddleGram 𝔰 N` has an integral hyperbolic basis in which the coordinate |
| 248 | at z (the index `inr ()`) of a vector is its coefficient at the second vector `inl 1` of the first |
| 249 | pair. -/ |
| 250 | lemma IntegralPlace.exists_isIntMatrix_hyperbolicBasis {N : A} (hN : N ∈ P.integers) |
| 251 | (hN_star : star N = N) (hm : 𝔰.k = Fintype.card ι + 2 * m + 1) : |
| 252 | ∃ B : HyperbolicBasis ι (latticeMiddleGram 𝔰 N) m, |
| 253 | IsIntMatrix P.integers B.basisMatrix ∧ B.basisMatrix (inr ()) = Pi.single (inl 1) 1 := by |
| 254 | -- Split the distinguished plane separately from the orthonormal complement. |
| 255 | let f : SplitIndex m ι ≃ {i : 𝔰.κ // 𝔰.k₀ ≠ i} := equivOfCardEq (by simp +arith [hm]) |
| 256 | obtain ⟨C, hC, hC_int⟩ := P.exists_integral_hyperbolicBlock (Fin m) ι |
| 257 | let coords : Fin 2 ⊕ SplitIndex m ι → 𝔰.MiddleIndex := |
| 258 | ![inl 𝔰.k₀, inr ()] ⊕ᵥ fun i ↦ inl (f i) |
| 259 | let E : Matrix 𝔰.MiddleIndex (Fin 2 ⊕ SplitIndex m ι) A := |
| 260 | inclMatrix A coords * fromBlocks !![-1, -N * P.element; 0, 1] 0 0 C |
| 261 | have E_int : IsIntMatrix P.integers E := |
| 262 | .mul (by simp [IsIntMatrix, inclMatrix, Matrix.one_apply, ite_mem]) (by |
| 263 | rintro (i | i) (j | j) |
| 264 | · fin_cases i <;> fin_cases j <;> simp [hN, mul_mem, P.element_mem] |
| 265 | · simp |
| 266 | · simp |
| 267 | · exact hC_int i j) |
| 268 | have E_form : Eᴴ * latticeMiddleGram 𝔰 N * E = planeSumGram (hyperbolicGram (Fin m) 1) := by |
| 269 | have h_ne (i : SplitIndex m ι) : (f i : 𝔰.κ) ≠ 𝔰.k₀ := (f i).prop.symm |
| 270 | have h_trace : P.element + star P.element = 1 := P.element_add_star |
| 271 | have h_mid : (latticeMiddleGram 𝔰 N).submatrix coords coords = |
| 272 | fromBlocks !![0, -1; -1, -N] 0 0 1 := by |
| 273 | simp [← Matrix.ext_iff, Matrix.submatrix_apply, coords, latticeMiddleGram, diagonal, h_ne, |
| 274 | Subtype.val_inj, Matrix.one_apply] |
| 275 | rw [gram_mul, conjTranspose_inclMatrix_mul_mul_inclMatrix, h_mid] |
| 276 | simp [fromBlocks_conjTranspose, fromBlocks_multiply, hC, planeSumGram, hN_star, |
| 277 | ← Matrix.ext_iff, Matrix.mul_apply] |
| 278 | grind |
| 279 | obtain ⟨V, hV, hV_eq⟩ : ∃ V ∈ intGL 𝔰.MiddleIndex P.integers, V.val = latticeMiddleGram 𝔰 N := |
| 280 | (isUnimodular_latticeMiddleGram 𝔰 ⟨hN, hN_star⟩).2 |
| 281 | have h_det : P.modulus (latticeMiddleGram 𝔰 N).det = 1 := by rw [← hV_eq, modulus_det_eq_one hV] |
| 282 | refine ⟨⟨E, E_form, by lia, h_det⟩, E_int, ?_⟩ |
| 283 | simp [E, coords, funext_iff, Matrix.mul_apply, inclMatrix, Matrix.one_apply] |
| 284 | |
| 285 | omit [IsHermitianUnit T.splitGram] in |
| 286 | /-- If a hyperbolic basis of the middle block is integral, so is the basis of each floor. -/ |
| 287 | lemma IntegralPlace.isIntMatrix_floorBasis {B : HyperbolicBasis ι T m} |
| 288 | (hB : IsIntMatrix P.integers B.basisMatrix) (b : Fin 𝔰.n) : |
| 289 | IsIntMatrix P.integers (B.floorBasis b) := by |
| 290 | refine .mul (.mul ?_ ?_) ?_ |
| 291 | · simp [IsIntMatrix, inclMatrix, Matrix.one_apply, ite_mem] |
| 292 | · simp [IsIntMatrix, hB _, diagonal, ite_mem] |
| 293 | · simp [IsIntMatrix, inclMatrix, Matrix.one_apply, ite_mem] |
| 294 | |
| 295 | omit [IsHermitianUnit T.splitGram] in |
| 296 | /-- A combination of the columns of `B.floorBasis b`, the basis of the space of the floor `b`, |
| 297 | vanishes at every basis index whose floor (`floorOf`) is below `b`. -/ |
| 298 | lemma HyperbolicBasis.floorBasis_mulVec_eq_zero (B : HyperbolicBasis ι T m) {b : Fin 𝔰.n} |
| 299 | (v : Fin 2 ⊕ FloorPairs b m ⊕ ι ⊕ FloorPairs b m → A) {i : 𝔰.BesselIndex} |
| 300 | (hi : floorOf i < b) : (B.floorBasis b *ᵥ v) i = 0 := by |
| 301 | have hb : (b : ℕ) < 𝔰.ϱ + 1 := b.is_lt |
| 302 | -- the columns of `floorBasis b` involve only basis indices of floor at least `b` |
| 303 | simp only [floorBasis, ← mulVec_mulVec] |
| 304 | refine sum_eq_zero fun j _ ↦ mul_eq_zero_of_left (one_apply_ne ?_) _ |
| 305 | rintro rfl |
| 306 | rcases j with (j | j) | ⟨j, hj⟩ | ⟨j, hj⟩ |
| 307 | · -- an index of X₀ has floor `ϱ + 1` |
| 308 | exact absurd (hi.trans hb) (lt_irrefl (𝔰.ϱ + 1)) |
| 309 | · -- the index of z has floor `ϱ` |
| 310 | exact absurd hb (Nat.not_lt.2 hi) |
| 311 | · exact absurd hi (Nat.not_lt.2 hj) |
| 312 | · exact absurd hi (Nat.not_lt.2 hj) |
| 313 | |
| 314 | omit [DecidableEq ι] in |
| 315 | /-- An integral form `J` takes values in `P.integers` on integral vectors. -/ |
| 316 | lemma IntegralPlace.star_dotProduct_mulVec_mem_integers {J : Matrix ι ι A} |
| 317 | (hJ : IsIntMatrix P.integers J) {v w : ι → A} (hv : v ∈ intVectors P.integers ι) |
| 318 | (hw : w ∈ intVectors P.integers ι) : star v ⬝ᵥ J *ᵥ w ∈ P.integers := |
| 319 | sum_mem fun i _ ↦ mul_mem (isAdelic.toIsStarStable.star_mem (hv i)) (hJ.mulVec hw i) |
| 320 | |
| 321 | omit [DecidableEq ι] in |
| 322 | /-- For an integral form `J` and integral vectors `v` and `w`, the matrix of the rank one map |
| 323 | `y ↦ h(w, y) v` is integral, where `h` is the form of `J`. -/ |
| 324 | lemma IntegralPlace.isIntMatrix_vecMulVec_star_vecMul {J : Matrix ι ι A} |
| 325 | (hJ : IsIntMatrix P.integers J) {v w : ι → A} (hv : v ∈ intVectors P.integers ι) |
| 326 | (hw : w ∈ intVectors P.integers ι) : IsIntMatrix P.integers (vecMulVec v (star w ᵥ* J)) := |
| 327 | fun i j ↦ mul_mem (hv i) |
| 328 | (sum_mem fun k _ ↦ mul_mem (isAdelic.toIsStarStable.star_mem (hw k)) (hJ k j)) |
| 329 | |
| 330 | omit [DecidableEq ι] in |
| 331 | /-- The flat chart `flatChart J β` of the quadric `h(v, v) = δ⁻¹ β` in a hyperbolic plane plus an |
| 332 | integral form `J`, with integral parameter `β`, maps `((t, w), a)` to an integral vector if `t` is a |
| 333 | unit of `P.integers` and `w` and `a` are integral. -/ |
| 334 | lemma IntegralPlace.flatChart_mem_intVectors {J : Matrix ι ι A} (hJ : IsIntMatrix P.integers J) |
| 335 | {β a : skewAdjoint A} (hβ : (β : A) ∈ P.integers) (ha : (a : A) ∈ P.integers) |
| 336 | {t : Aˣ} (ht : t.val ∈ P.integers) (ht_inv : t⁻¹.val ∈ P.integers) |
| 337 | {w : ι → A} (hw : w ∈ intVectors P.integers ι) : |
| 338 | flatChart J β ((t, w), a) ∈ intVectors P.integers (Fin 2 ⊕ ι) := by |
| 339 | obtain ⟨h_element, -, h_skew_inv, -⟩ := data_normalised (A := A) |
| 340 | have h_norm : P.skewUnit⁻¹.val * β - star w ⬝ᵥ J *ᵥ w ∈ P.integers := |
| 341 | sub_mem (mul_mem h_skew_inv hβ) (star_dotProduct_mulVec_mem_integers hJ hw hw) |
| 342 | have h_inv : Ring.inverse (star t.val) ∈ P.integers := by |
| 343 | simpa using isAdelic.toIsStarStable.star_mem ht_inv |
| 344 | have h_first : Ring.inverse (star t.val) * P.element * |
| 345 | (P.skewUnit⁻¹.val * β - star w ⬝ᵥ J *ᵥ w) + t * a ∈ P.integers := |
| 346 | add_mem (mul_mem (mul_mem h_inv h_element) h_norm) (mul_mem ht ha) |
| 347 | rintro (i | i) |
| 348 | · fin_cases i |
| 349 | · exact h_first |
| 350 | · exact ht |
| 351 | · exact hw i |
| 352 | |
| 353 | |
| 354 | /-- Let `T.splitGram` be unimodular over `P.integers`. Let `u` be an integral vector with |
| 355 | `star u ᵥ* T.splitGram` equal to the dual of the last frame vector z, and with z-coordinate `0`. Let |
| 356 | `e` be integral with z-coordinate `r`, a unit of `P.integers`. Then the scaled Eichler map along `u` |
| 357 | attached to `e` lies in `unitaryLevel P.integers 1 T.splitGram`, the group of integral |
| 358 | isometries. -/ |
| 359 | lemma IntegralPlace.topEichler_mem_unitaryLevel_one (hT : IsUnimodular P.integers T.splitGram) |
| 360 | {u : 𝔰.BesselIndex → A} (hu : u ∈ intVectors P.integers 𝔰.BesselIndex) |
| 361 | (hu_dual : star u ᵥ* T.splitGram = Pi.single (𝔰.besselFrame 𝔰.top) 1) |
| 362 | (hu_last : u (𝔰.besselFrame 𝔰.top) = 0) {e : 𝔰.BesselIndex → A} |
| 363 | (he : e ∈ intVectors P.integers 𝔰.BesselIndex) {r : Aˣ} (hr_inv : r⁻¹.val ∈ P.integers) |
| 364 | (he_last : e 𝔰.z = r) : |
| 365 | topEichler hu_dual hu_last e ∈ unitaryLevel P.integers 1 T.splitGram := by |
| 366 | -- The map is `1 + r⁻¹ (r u h(v, ·) - (v + s u) h(u, ·))` with `r⁻¹`, `v` and `s` integral. |
| 367 | let z : 𝔰.BesselIndex → A := Pi.single (𝔰.besselFrame 𝔰.top) 1 |
| 368 | let s : A := star (e - z) ⬝ᵥ T.splitGram *ᵥ e - |
| 369 | P.element * (star e ⬝ᵥ T.splitGram *ᵥ e - star z ⬝ᵥ T.splitGram *ᵥ z) |
| 370 | have hJ : IsIntMatrix P.integers T.splitGram := hT.isIntMatrix |
| 371 | have hz : z ∈ intVectors P.integers 𝔰.BesselIndex := single_mem_intVectors _ |
| 372 | have hv : e - z ∈ intVectors P.integers 𝔰.BesselIndex := sub_mem he hz |
| 373 | have hs : s ∈ P.integers := |
| 374 | sub_mem (star_dotProduct_mulVec_mem_integers hJ hv he) (mul_mem data_normalised.1 |
| 375 | (sub_mem (star_dotProduct_mulVec_mem_integers hJ he he) |
| 376 | (star_dotProduct_mulVec_mem_integers hJ hz hz))) |
| 377 | have hru : e 𝔰.z • u ∈ intVectors P.integers 𝔰.BesselIndex := fun i ↦ mul_mem (he 𝔰.z) (hu i) |
| 378 | have hvs : e - z + s • u ∈ intVectors P.integers 𝔰.BesselIndex := |
| 379 | fun i ↦ add_mem (hv i) (mul_mem hs (hu i)) |
| 380 | have h_inv : Ring.inverse (e 𝔰.z) ∈ P.integers := by rwa [he_last, Ring.inverse_unit] |
| 381 | have h_int : IsIntMatrix P.integers (Ring.inverse (e 𝔰.z) • |
| 382 | (vecMulVec (e 𝔰.z • u) (star (e - z) ᵥ* T.splitGram) - |
| 383 | vecMulVec (e - z + s • u) (star u ᵥ* T.splitGram))) := |
| 384 | .smul h_inv (.sub (isIntMatrix_vecMulVec_star_vecMul hJ hru hv) |
| 385 | (isIntMatrix_vecMulVec_star_vecMul hJ hvs hu)) |
| 386 | refine hT.mem_unitaryLevel (one_mem _) ?_ |
| 387 | rw [inv_one, one_smul, coe_topEichler, topEichlerMatrix, add_sub_cancel_left] |
| 388 | have h_last : e (𝔰.besselFrame 𝔰.top) = e 𝔰.z := by simp |
| 389 | rw [h_last] |
| 390 | exact h_int |
| 391 | |
| 392 | /-- Let the form be unimodular, let `u` be an integral isotropic vector dual to the last frame |
| 393 | vector z, and let `B` be an integral hyperbolic basis in which the z-coordinate is the coefficient |
| 394 | at the second vector of the first pair. Then there is a measure `θ` on the group of the top floor |
| 395 | (`T.floorGroup 𝔰.ϱ`) that `orbitPoint`, the map `σ ↦ σ⁻¹ z`, carries to the measure |
| 396 | `B.floorQuadricMeasure` of the top quadric, and that gives the group of integral isometries mass at |
| 397 | least the volume of `P.intUnits`, the set of units of the ring of integers. -/ |
| 398 | lemma IntegralPlace.exists_measure_floorGroup_top (hT : IsUnimodular P.integers T.splitGram) |
| 399 | {u : 𝔰.BesselIndex → A} (hu : u ∈ intVectors P.integers 𝔰.BesselIndex) |
| 400 | (hu_dual : star u ᵥ* T.splitGram = Pi.single (𝔰.besselFrame 𝔰.top) 1) |
| 401 | (hu_last : u (𝔰.besselFrame 𝔰.top) = 0) {B : HyperbolicBasis ι T m} |
| 402 | (hB : IsIntMatrix P.integers B.basisMatrix) |
| 403 | (hB_last : B.basisMatrix (inr ()) = Pi.single (inl 1) 1) : |
| 404 | ∃ θ : Measure T.G, |
| 405 | SFinite θ ∧ |
| 406 | (∀ᵐ x : T.G ∂θ, x ∈ T.floorGroup 𝔰.ϱ) ∧ |
| 407 | θ.map (orbitPoint 𝔰.top) = B.floorQuadricMeasure 𝔰.top ∧ |
| 408 | volume P.intUnits ≤ θ (unitaryLevel P.integers 1 T.splitGram) := by |
| 409 | -- `θ` is the image of the chart measure under the Eichler maps `Φ p` attached to the points |
| 410 | -- `φ p` of the quadric through z |
| 411 | let J : Matrix (FloorPairs 𝔰.top m ⊕ ι ⊕ FloorPairs 𝔰.top m) |
| 412 | (FloorPairs 𝔰.top m ⊕ ι ⊕ FloorPairs 𝔰.top m) A := hyperbolicGram (FloorPairs 𝔰.top m) 1 |
| 413 | let β : skewAdjoint A := |
| 414 | P.skewUnitMul (T.splitGram (𝔰.besselFrame 𝔰.top) (𝔰.besselFrame 𝔰.top)) |
| 415 | let φ (p : (A × (FloorPairs 𝔰.top m ⊕ ι ⊕ FloorPairs 𝔰.top m → A)) × skewAdjoint A) : |
| 416 | 𝔰.BesselIndex → A := B.floorBasis 𝔰.top *ᵥ flatChart J β p |
| 417 | let Φ (p : (A × (FloorPairs 𝔰.top m ⊕ ι ⊕ FloorPairs 𝔰.top m → A)) × skewAdjoint A) : T.G := |
| 418 | topEichler hu_dual hu_last (φ p) |
| 419 | have φ_last (t : A) (w) (a : skewAdjoint A) : φ ((t, w), a) 𝔰.z = t := by |
| 420 | simp [φ, Matrix.mul_apply, mulVec, dotProduct, HyperbolicBasis.floorBasis, inclMatrix, |
| 421 | flatChart, Matrix.one_apply, hB_last] |
| 422 | have Φ_meas : Measurable Φ := (measurable_topEichler hu_dual hu_last).comp (by fun_prop) |
| 423 | have Φ_orbit (t : A) (w) (a : skewAdjoint A) (ht : IsUnit t) : |
| 424 | orbitPoint 𝔰.top (Φ ((t, w), a)) = φ ((t, w), a) := by |
| 425 | have hJ : Jᴴ = J := by |
| 426 | simp [J, conjTranspose_hyperbolicGram] |
| 427 | refine orbitPoint_topEichler hu_dual hu_last ?_ (by simpa [φ_last]) |
| 428 | rw [star_mulVec_dotProduct, mulVec_mulVec, mulVec_mulVec, B.gram_floorBasis, |
| 429 | form_flatChart hJ ht] |
| 430 | simp [β] |
| 431 | -- integral parameters whose first coordinate is a unit of `integers` give integral isometries |
| 432 | have Φ_box : (intUnits ×ˢ SetLike.coe (intVectors P.integers _)) ×ˢ |
| 433 | {a : skewAdjoint A | a.val ∈ P.integers} ⊆ Φ ⁻¹' unitaryLevel P.integers 1 T.splitGram := by |
| 434 | rintro ⟨⟨_, w⟩, a⟩ ⟨⟨⟨ht, t, ht_inv, rfl⟩, hw⟩, ha⟩ |
| 435 | have hJ : IsIntMatrix P.integers J := by simp [J, IsIntMatrix, Matrix.one_apply, ite_mem] |
| 436 | obtain ⟨-, h_skew, -⟩ := data_normalised (A := A) |
| 437 | have hβ : (β : A) ∈ P.integers := mul_mem h_skew (hT.isIntMatrix _ _) |
| 438 | have φ_int : φ ((t, w), a) ∈ intVectors P.integers 𝔰.BesselIndex := |
| 439 | (isIntMatrix_floorBasis hB _).mulVec (flatChart_mem_intVectors hJ hβ ha ht ht_inv hw) |
| 440 | exact topEichler_mem_unitaryLevel_one hT hu hu_dual hu_last φ_int ht_inv (φ_last t w a) |
| 441 | refine ⟨(volume.prod P.skewMeasure).map Φ, inferInstance, ?_, ?_, ?_⟩ |
| 442 | · refine (ae_map_iff Φ_meas.aemeasurable measurableSet_floorGroup).2 (.of_forall fun p ↦ ?_) |
| 443 | exact topEichler_mem_floorGroup hu_dual hu_last fun i hi ↦ B.floorBasis_mulVec_eq_zero _ hi |
| 444 | · have h_chart : B.floorQuadricMeasure 𝔰.top = (volume.prod P.skewMeasure).map φ := |
| 445 | Measure.map_map (by fun_prop) (by fun_prop) |
| 446 | rw [Measure.map_map (by fun_prop) Φ_meas, h_chart] |
| 447 | -- the first coordinate is almost always a unit |
| 448 | refine map_congr ?_ |
| 449 | filter_upwards [quasiMeasurePreserving_fst.ae (quasiMeasurePreserving_fst.ae ae_isUnit)] |
| 450 | with ⟨⟨t, w⟩, a⟩ ht using Φ_orbit t w a ht |
| 451 | · grw [← le_map_apply Φ_meas.aemeasurable, ← Φ_box] |
| 452 | simp [volume_eq_prod, isOpen_isCompact_volume_intVectors, data_normalised] |
| 453 | |
| 454 | |
| 455 | /-- At the finite place `P`, let `N` be in `P.integers` with `star N = N`, let `g` be a unit of `A` |
| 456 | in `P.integers` with `star g = g`, and let the rank `𝔰.k` of X₀ be `|ι| + 2 m + 1`. Then the matrix |
| 457 | `latticeMiddleGram 𝔰 N` has a place datum `F : PlaceData ι (latticeMiddleGram 𝔰 N) m` with |
| 458 | `P.IsLatticeData F` and `F.levelUnit = g`. -/ |
| 459 | theorem IntegralPlace.exists_isLatticeData {N : A} |
| 460 | [IsHermitianUnit (latticeMiddleGram 𝔰 N).splitGram] (hN : N ∈ integers ∧ star N = N) |
| 461 | (hg : g.val ∈ integers ∧ star g.val = g) (hm : 𝔰.k = Fintype.card ι + 2 * m + 1) : |
| 462 | ∃ F : PlaceData ι (latticeMiddleGram 𝔰 N) m, P.IsLatticeData F ∧ F.levelUnit = g := by |
| 463 | let T : 𝔰.Form A := latticeMiddleGram 𝔰 N |
| 464 | let K : Subgroup T.G := unitaryLevel integers 1 T.splitGram |
| 465 | have h_unimod : IsUnimodular integers T.splitGram := |
| 466 | (isUnimodular_latticeMiddleGram 𝔰 hN).splitGram |
| 467 | -- pairing with `x` reads the coordinate at z |
| 468 | let x : 𝔰.BesselIndex → A := Pi.single (𝔰.indexX₀ 𝔰.k₀) (-1) |
| 469 | have hx : x ∈ intVectors integers 𝔰.BesselIndex := fun i ↦ by simp [x, Pi.single_apply, ite_mem] |
| 470 | have hx_dual : star x ᵥ* T.splitGram = Pi.single (𝔰.besselFrame 𝔰.top) 1 := by |
| 471 | simp [x, T, splitGram, latticeMiddleGram, diagonal, funext_iff] |
| 472 | have hx_last : x (𝔰.besselFrame 𝔰.top) = 0 := by simp [x] |
| 473 | obtain ⟨B, hB, hB_last⟩ := exists_isIntMatrix_hyperbolicBasis hN.1 hN.2 hm |
| 474 | obtain ⟨θ, _, θ_mem, θ_map, θ_box⟩ := |
| 475 | exists_measure_floorGroup_top h_unimod hx hx_dual hx_last hB hB_last |
| 476 | obtain ⟨η, _, η_box, η_spec⟩ := exists_right_invariant_measure_besselH (T := T) |
| 477 | let F : PlaceData ι T m := |
| 478 | { B with |
| 479 | topFloorMeasure := θ |
| 480 | measureH := η |
| 481 | levelUnit := g |
| 482 | closePairs := P.congruentPairs 𝔰 g |
| 483 | boxSet := K |
| 484 | positions := {y⁻¹ * u * y | (y : T.G) (u ∈ T.besselU)} * unitaryLevel integers g T.splitGram |
| 485 | neZero_measureH := ⟨fun h ↦ by simp [h] at η_box⟩ |
| 486 | topFloorMeasure_mem_and_map_eq := ⟨θ_mem, θ_map⟩ |
| 487 | measureH_mem_and_invariant_and_le_one := η_spec |
| 488 | star_levelUnit := hg.2 |
| 489 | isOpen_closePairs_and_zero_mem_and_isCompact_closure := |
| 490 | isOpen_congruentPairs_and_isCompact_closure |
| 491 | isCompact_boxSet_and_measurableSet_positions := |
| 492 | ⟨unitaryLevel_open_compact.2, |
| 493 | unitaryLevel_open_compact.1.mul_left.measurableSet⟩ } |
| 494 | exact ⟨F, ⟨⟨h_unimod, hB, hg⟩, ⟨θ_box, rfl, η_box, rfl, rfl⟩, x, hx_dual, hx_last⟩, rfl⟩ |
| 495 | |
| 496 | /-! ### Large lattice data: gauges and masses -/ |
| 497 | |
| 498 | namespace IntegralPlace.IsLargeLatticeData |
| 499 | |
| 500 | variable {F : PlaceData ι T (m + 1)} [h : P.IsLargeLatticeData F] |
| 501 | |
| 502 | /-- The close pairs of a large lattice datum are the pairs of integral vectors congruent modulo the |
| 503 | level. -/ |
| 504 | theorem closePairs_eq : F.closePairs = P.congruentPairs 𝔰 F.levelUnit := by |
| 505 | obtain ⟨-, -, -, h_close, -⟩ := h.volume_le_and_boxSet_closePairs_positions_eq |
| 506 | exact h_close |
| 507 | |
| 508 | /-- An integral unit `α` of `A` has `modulus α ≤ 1`, so `2 ≤ 2 / modulus α`. -/ |
| 509 | lemma two_le_two_div_modulus {α : Aˣ} (hα : α.val ∈ integers) : 2 ≤ 2 / P.modulus α := by |
| 510 | grw [modulus_le_one α hα, div_one] |
| 511 | |
| 512 | /-- For a unit `α` of `A`, the inverse modulus of `α ^ j` is at most `(2 / modulus α) ^ j`. -/ |
| 513 | lemma inv_modulus_pow_le (α : Aˣ) (j : ℕ) : (P.modulus (α ^ j).val)⁻¹ ≤ (2 / P.modulus α) ^ j := by |
| 514 | grw [← one_le_two] |
| 515 | simp [ENNReal.inv_pow] |
| 516 | |
| 517 | include h in |
| 518 | /-- Let `F` be a large lattice datum with `m + 1` further pairs, so that the ideal zeta sum |
| 519 | `ζ = idealZeta P.integers m` is at most 2, and let `α` be an integral unit of `A`. The bound |
| 520 | `ζ * modulus (α ^ j) ^ (-n)`, which occurs for masses on quadrics, is at most `(2 / modulus α) ^ k` |
| 521 | if `j * n + 1 ≤ k`. -/ |
| 522 | lemma idealZeta_mul_inv_modulus_pow_le {α : Aˣ} (hα : α.val ∈ integers) {j n k : ℕ} |
| 523 | (hk : j * n + 1 ≤ k) : |
| 524 | idealZeta P.integers m * (P.modulus (α ^ j).val)⁻¹ ^ n ≤ (2 / P.modulus α) ^ k := by |
| 525 | have h_two : 2 ≤ 2 / P.modulus α := two_le_two_div_modulus hα |
| 526 | have h_zeta : idealZeta P.integers m ≤ 2 := le_two_of_pow_le_ofReal h.zeta_le_and_le_card.1 |
| 527 | calc idealZeta P.integers m * (P.modulus (α ^ j).val)⁻¹ ^ n |
| 528 | _ ≤ 2 / P.modulus α * ((2 / P.modulus α) ^ j) ^ n := by |
| 529 | grw [h_zeta.trans h_two, inv_modulus_pow_le] |
| 530 | _ = (2 / P.modulus α) ^ (j * n + 1) := by rw [← pow_mul, ← pow_succ'] |
| 531 | _ ≤ (2 / P.modulus α) ^ k := pow_le_pow_right₀ (one_le_two.trans h_two) hk |
| 532 | |
| 533 | /-- The box of a large lattice datum is the group of integral isometries. -/ |
| 534 | theorem boxSet_eq : F.boxSet = unitaryLevel integers 1 T.splitGram := by |
| 535 | simp only [h.volume_le_and_boxSet_closePairs_positions_eq] |
| 536 | |
| 537 | include h in |
| 538 | /-- If `F` is a large lattice datum (`P.IsLargeLatticeData F`), the Gram matrix `T.splitGram` is |
| 539 | hermitian and invertible over `integers`, that is, unimodular. -/ |
| 540 | theorem isUnimodular_splitGram : IsUnimodular integers T.splitGram := |
| 541 | h.integral_data.1 |
| 542 | |
| 543 | /-- At a large lattice datum the basis matrix has entries in `integers`. -/ |
| 544 | theorem isIntMatrix_basisMatrix : IsIntMatrix integers F.basisMatrix := by |
| 545 | simp only [h.integral_data] |
| 546 | |
| 547 | include h in |
| 548 | /-- At a large lattice datum with `m + 1` further hyperbolic pairs, the ideal zeta sum of |
| 549 | `P.integers` at `m` is at most `2`. -/ |
| 550 | theorem idealZeta_le_two : idealZeta P.integers m ≤ 2 := |
| 551 | le_two_of_pow_le_ofReal h.zeta_le_and_le_card.1 |
| 552 | |
| 553 | include h in |
| 554 | /-- At a large lattice datum the form `T.splitGram` takes integral values on integral vectors. -/ |
| 555 | theorem star_dotProduct_splitGram_mulVec_mem {v w : 𝔰.BesselIndex → A} |
| 556 | (hv : v ∈ intVectors integers 𝔰.BesselIndex) (hw : w ∈ intVectors integers 𝔰.BesselIndex) : |
| 557 | star v ⬝ᵥ T.splitGram *ᵥ w ∈ integers := |
| 558 | sum_mem fun i _ ↦ mul_mem (isAdelic.toIsStarStable.star_mem (hv i)) |
| 559 | (h.isUnimodular_splitGram.isIntMatrix.mulVec hw i) |
| 560 | |
| 561 | include h in |
| 562 | /-- The quadrics of a block. The place datum has m + 1 further hyperbolic pairs, so a block has rank |
| 563 | 2 m + 4. Its volume disintegrates along the standard form into an s-finite kernel, and on each |
| 564 | quadric the points y with u y integral, u a unit, have mass at most ζ |u|^(-(2 m + 3)), where ζ is |
| 565 | the ideal zeta sum `idealZeta P.integers m`. -/ |
| 566 | lemma exists_kernel_isDisintegration_coordinateBox_le : |
| 567 | ∃ q : ProbabilityTheory.Kernel (skewAdjoint A) (Fin F.blockRank → A), |
| 568 | ProbabilityTheory.IsSFiniteKernel q ∧ |
| 569 | IsDisintegration volume 1 q ∧ |
| 570 | ∀ (β : skewAdjoint A) (u : Aˣ), |
| 571 | q β (coordinateBox (Fin F.blockRank) {x : A | u.val * x ∈ P.integers}) ≤ |
| 572 | idealZeta P.integers m * (P.modulus u)⁻¹ ^ (2 * m + 3) := |
| 573 | exists_kernel_isDisintegration_le h.idealZeta_le_two |
| 574 | (Fintype.card_fin _) (by lia) |
| 575 | |
| 576 | /-- For a large lattice datum `F`, the elements of `F.productDifferences` are integral. These are |
| 577 | the numbers (h(ω₁, ω'₁) - h(ω₂, ω'₂)) / g, where g = `F.levelUnit`, h is the form `T.splitGram`, and |
| 578 | (ω₁, ω₂), (ω'₁, ω'₂) are pairs in `F.closePairs`. -/ |
| 579 | lemma mem_of_mem_productDifferences {c : A} (hc : c ∈ F.productDifferences) : c ∈ P.integers := by |
| 580 | obtain ⟨z, hz, z', hz', rfl⟩ : ∃ z ∈ F.closePairs, ∃ z' ∈ F.closePairs, |
| 581 | c = F.levelUnit⁻¹ * (star z.1 ⬝ᵥ T.splitGram *ᵥ z'.1 - star z.2 ⬝ᵥ T.splitGram *ᵥ z'.2) := hc |
| 582 | rw [closePairs_eq] at hz hz' |
| 583 | obtain ⟨hz_int, hz_cong⟩ := hz |
| 584 | obtain ⟨hz'_int, hz'_cong⟩ := hz' |
| 585 | obtain ⟨-, -, hg, -⟩ := h.integral_data |
| 586 | -- Write `z.1 - z.2 = g • b` and `z'.1 - z'.2 = g • d` with `b` and `d` integral. |
| 587 | let b : 𝔰.BesselIndex → A := F.levelUnit⁻¹.val • (z.1 - z.2) |
| 588 | let d : 𝔰.BesselIndex → A := F.levelUnit⁻¹.val • (z'.1 - z'.2) |
| 589 | have h_gap : F.levelUnit⁻¹ * (star z.1 ⬝ᵥ T.splitGram *ᵥ z'.1 - star z.2 ⬝ᵥ T.splitGram *ᵥ z'.2) = |
| 590 | star z.1 ⬝ᵥ T.splitGram *ᵥ d + star b ⬝ᵥ T.splitGram *ᵥ z'.1 - |
| 591 | F.levelUnit * star b ⬝ᵥ T.splitGram *ᵥ d := by |
| 592 | have h_star : star F.levelUnit⁻¹.val = F.levelUnit⁻¹.val := by |
| 593 | simp [← inverse_star_unit, F.star_levelUnit] |
| 594 | simp only [b, d, mulVec_sub, mulVec_smul, star_smul, star_sub, h_star, smul_sub, |
| 595 | dotProduct_sub, sub_dotProduct, dotProduct_smul, smul_dotProduct, smul_eq_mul] |
| 596 | grind [F.levelUnit.mul_inv] |
| 597 | rw [h_gap] |
| 598 | exact sub_mem (add_mem (h.star_dotProduct_splitGram_mulVec_mem hz_int hz'_cong) |
| 599 | (h.star_dotProduct_splitGram_mulVec_mem hz_cong hz'_int)) |
| 600 | (mul_mem hg (h.star_dotProduct_splitGram_mulVec_mem hz_cong hz'_cong)) |
| 601 | |
| 602 | /-- Let `F` be a large lattice datum, `x` an integral isometry, and `z = y⁻¹ u y k` with `u` in |
| 603 | `T.besselU` and `k` in `F.congruenceSubgroup`. Let `v` have `ϱ` rows, and let `σ` split |
| 604 | `F.FreeIndex` into `3 ϱ` excepted indices and `d` others, listed by `σ ∘ inr`. There is a matrix `V` |
| 605 | invertible over the integers such that every integral combination `ω` of its columns at these `d` |
| 606 | indices is in `F.commonVectors x z v`: `v ω = 0`, and (x⁻¹ w, (x z)⁻¹ w) is a close pair for the |
| 607 | vector `w = F.orthonormalPart *ᵥ ω`. -/ |
| 608 | lemma exists_intGL_mulVec_mem_commonVectors {x y u k : T.G} |
| 609 | (hx : x ∈ unitaryLevel integers 1 T.splitGram) |
| 610 | (hu : u ∈ T.besselU) (hk : k ∈ F.congruenceSubgroup) (v : Matrix (Fin 𝔰.ϱ) F.FreeIndex A) |
| 611 | {d : ℕ} (σ : SplitIndex 𝔰.ϱ (Fin 𝔰.ϱ) ⊕ Fin d ≃ F.FreeIndex) : |
| 612 | ∃ V ∈ intGL F.FreeIndex P.integers, ∀ t ∈ intVectors P.integers (Fin d), |
| 613 | V.val.submatrix id (σ ∘ inr) *ᵥ t ∈ F.commonVectors x (y⁻¹ * u * y * k) v := by |
| 614 | -- A column operation `V` clears `3 ϱ` rows outside `3 ϱ` columns: the rows of `v`, the last `ϱ` |
| 615 | -- rows of `N`, and the first `ϱ` rows of `(u⁻¹ - 1) N`. `Y` has the other columns. |
| 616 | let N : Matrix 𝔰.BesselIndex F.FreeIndex A := (y * x⁻¹).val.val * F.orthonormalPart |
| 617 | let C : Matrix (Fin 𝔰.ϱ ⊕ Fin 𝔰.ϱ ⊕ Fin 𝔰.ϱ) F.FreeIndex A := |
| 618 | fromRows v (N ∘ inr ∘ inr ⊕ᵥ ((u⁻¹.val.val - 1) * N) ∘ inl) |
| 619 | obtain ⟨V, hV, h_clear⟩ := isAdelic.isValuationPair.exists_mul_clear_cols C |
| 620 | (.trans .inl σ.toEmbedding) |
| 621 | let Y : Matrix F.FreeIndex (Fin d) A := V.val.submatrix id (σ ∘ inr) |
| 622 | have h_zero (a : Fin 𝔰.ϱ ⊕ Fin 𝔰.ϱ ⊕ Fin 𝔰.ϱ) (j : Fin d) : (C * Y) a j = 0 := |
| 623 | h_clear a (σ (inr j)) (by simp) |
| 624 | have h_orth : v * Y = 0 := ext fun a ↦ h_zero (inl a) |
| 625 | -- `u⁻¹` fixes the columns of `N Y`: off the first rows it is the identity except in the last |
| 626 | -- columns (`apply_inr_of_mem_besselU`), and these meet the last rows of `N Y`, which vanish |
| 627 | have h_fix : (u⁻¹.val.val - 1) * N * Y = 0 := by |
| 628 | ext (i | i) j |
| 629 | · exact h_zero (inr (inr i)) j |
| 630 | · have h_last (a : Fin 𝔰.ϱ) : (N * Y) (eStar a) j = 0 := h_zero (inr (inl a)) j |
| 631 | have hu_inv : u⁻¹ ∈ T.besselU := inv_mem hu |
| 632 | generalize u⁻¹ = u' at hu_inv ⊢ |
| 633 | simp [Matrix.mul_assoc, Matrix.mul_apply (N := N * Y), apply_inr_of_mem_besselU hu_inv, |
| 634 | h_last, Matrix.one_apply] |
| 635 | -- so `(x z)⁻¹ = k⁻¹ y⁻¹ u⁻¹ y x⁻¹` acts on the columns as `k⁻¹ x⁻¹` |
| 636 | let W : Matrix 𝔰.BesselIndex (Fin d) A := x⁻¹.val.val * (F.orthonormalPart * Y) |
| 637 | have h_act : (x * (y⁻¹ * u * y * k))⁻¹.val.val * (F.orthonormalPart * Y) = k⁻¹.val.val * W := by |
| 638 | rw [Matrix.mul_assoc, Matrix.sub_mul, Matrix.one_mul, sub_eq_zero] at h_fix |
| 639 | calc |
| 640 | _ = (k⁻¹ * y⁻¹).val.val * (u⁻¹.val.val * (N * Y)) := by simp [N, Matrix.mul_assoc] |
| 641 | _ = (k⁻¹ * y⁻¹).val.val * (N * Y) := by rw [h_fix] |
| 642 | _ = k⁻¹.val.val * W := by simp [N, W, Matrix.mul_assoc] |
| 643 | have h_int : IsIntMatrix integers W := |
| 644 | (inv_mem hx).1.isIntMatrix.mul (by simp [Matrix.mul_apply, h.isIntMatrix_basisMatrix _, Y, |
| 645 | hV.isIntMatrix _, IsIntMatrix, mul_mem, sum_mem]) |
| 646 | have h_cong : IsIntMatrix integers (F.levelUnit⁻¹.val • (W - k⁻¹.val.val * W)) := by |
| 647 | simpa [← smul_neg, Matrix.sub_mul, Units.smul_def] using ((inv_mem hk).2.mul h_int).neg |
| 648 | refine ⟨V, hV, fun t ht ↦ ⟨?_, ?_⟩⟩ |
| 649 | · rw [mulVec_mulVec, h_orth, zero_mulVec] |
| 650 | · rw [IsShortFrom, closePairs_eq] |
| 651 | simp only [mulVec_mulVec] |
| 652 | rw [h_act] |
| 653 | exact ⟨h_int.mulVec ht, by simpa only [smul_mulVec, sub_mulVec] using h_cong.mulVec ht⟩ |
| 654 | /-- Let `F` be a large lattice datum, `α` an integral unit of `A`, and `S` the sizes for which size |
| 655 | `j` means that `α ^ j * c` is integral. Let `x` be an integral isometry (`F.boxSet`), `z` a product |
| 656 | `y⁻¹ u y k` with `u` in `T.besselU` and `k` in `F.congruenceSubgroup` (`F.positions`), and |
| 657 | W = `F.commonVectors x z v`. Some measurable φ is an `IsCommonBound` with loss `2 / P.modulus α`: |
| 658 | φ(w) bounds 1 / vol ⟨w, W⟩ and the volume of the `c` with ⟨c w, W⟩ ⊆ `F.productDifferences`, and the |
| 659 | integral of `φ ^ F.volumeExponent` over the vectors of size `j` is at most |
| 660 | `(2 / P.modulus α) ^ (99 * 𝔰.n * (j + 1))`. -/ |
| 661 | lemma exists_isCommonBound {α : Aˣ} (hα : α.val ∈ integers) {S : Size T} |
| 662 | (hS : ∀ j : ℕ, S.ofSize j = {c : A | α ^ j * c ∈ integers}) {x z : T.G} (hx : x ∈ F.boxSet) |
| 663 | (hz : z ∈ F.positions) (v : Matrix (Fin 𝔰.ϱ) F.FreeIndex A) : |
| 664 | ∃ φ : (F.FreeIndex → A) → ℝ≥0∞, |
| 665 | F.IsCommonBound S (2 / P.modulus α) (F.commonVectors x z v) φ := by |
| 666 | -- Take for φ(u) the content index of `Yᴴ u`, where the integral combinations of the columns of |
| 667 | -- `Y` are common vectors. |
| 668 | obtain ⟨-, hm, h_card⟩ := h.zeta_le_and_le_card |
| 669 | simp only [h.volume_le_and_boxSet_closePairs_positions_eq] at hx hz |
| 670 | obtain ⟨_, ⟨y, n, hn, rfl⟩, k, hk, rfl⟩ := Set.mem_mul.1 hz |
| 671 | let σ : SplitIndex 𝔰.ϱ (Fin 𝔰.ϱ) ⊕ Fin (F.volumeExponent + (m + 5)) ≃ F.FreeIndex := |
| 672 | equivOfCardEq <| by |
| 673 | simp only [volumeExponent, Fintype.card_sum, Fintype.card_fin] |
| 674 | lia |
| 675 | obtain ⟨V, hV, h_common⟩ : ∃ V ∈ intGL F.FreeIndex P.integers, |
| 676 | ∀ t ∈ intVectors P.integers (Fin (F.volumeExponent + (m + 5))), |
| 677 | V.val.submatrix id (σ ∘ inr) *ᵥ t ∈ F.commonVectors x (y⁻¹ * n * y * k) v := |
| 678 | h.exists_intGL_mulVec_mem_commonVectors hx hn hk v σ |
| 679 | set Y : Matrix F.FreeIndex (Fin (F.volumeExponent + (m + 5))) A := V.val.submatrix id (σ ∘ inr) |
| 680 | have h_adj (u : F.FreeIndex → A) (t : Fin (F.volumeExponent + (m + 5)) → A) : |
| 681 | star u ⬝ᵥ Y *ᵥ t = star (Yᴴ *ᵥ u) ⬝ᵥ t := by |
| 682 | simp [star_mulVec, dotProduct_mulVec] |
| 683 | refine ⟨fun u ↦ P.contentIndex 0 (Yᴴ *ᵥ u), by fun_prop, fun u ↦ le_iInf fun h_unit ↦ ?_, |
| 684 | fun u ↦ le_iInf fun _ ↦ measure_mono fun c hc i ↦ ?_, fun j ↦ ?_⟩ |
| 685 | · -- if `t` is the content of `Yᴴ u`, the products of `u` with common vectors fill |
| 686 | -- `star t • integers` |
| 687 | obtain ⟨t, r, hr, hrt, ht⟩ : ∃ t : Aˣ, ∃ r ∈ intVectors integers _, r ⬝ᵥ Yᴴ *ᵥ u = t ∧ |
| 688 | ∀ c : A, (∀ j, c * (Yᴴ *ᵥ u) j ∈ integers) ↔ t * c ∈ integers := exists_content h_unit |
| 689 | have h_vol : P.modulus (star t).val ≤ volume |
| 690 | ((fun w : F.FreeIndex → A ↦ star u ⬝ᵥ w) '' F.commonVectors x (y⁻¹ * n * y * k) v) := by |
| 691 | refine modulus_le_volume fun a ha ↦ ⟨Y *ᵥ (a • star r), h_common _ fun i ↦ ?_, ?_⟩ |
| 692 | · exact mul_mem ha (isAdelic.toIsStarStable.star_mem (hr i)) |
| 693 | · simp [star_dotProduct_star, h_adj, hrt, mul_comm] |
| 694 | simpa [ht] using ENNReal.inv_le_inv.2 h_vol |
| 695 | · -- test the condition on `c` at the `i`-th column of `Y` |
| 696 | have h_mem : star (c • u) ⬝ᵥ Y *ᵥ Pi.single i 1 ∈ integers := |
| 697 | h.mem_of_mem_productDifferences (hc _ (h_common _ (single_mem_intVectors i))) |
| 698 | have h_star : c * (Yᴴ *ᵥ u) i = star (star (c • u) ⬝ᵥ Y *ᵥ Pi.single i 1) := by |
| 699 | rw [h_adj, dotProduct_single, mul_one, Pi.star_apply, star_star, mulVec_smul] |
| 700 | rfl |
| 701 | rw [h_star] |
| 702 | exact isAdelic.toIsStarStable.star_mem h_mem |
| 703 | · simp only [Size.vecsOfSize, hS] |
| 704 | calc |
| 705 | _ ≤ idealZeta P.integers m * (P.modulus (α ^ j).val)⁻¹ ^ (3 * 𝔰.ϱ + (m + 5)) := |
| 706 | lintegral_contentIndex_pow_le h.idealZeta_le_two σ 0 (α ^ j) hV |
| 707 | ⟨by simp +arith, Fintype.card_fin _, by lia⟩ |
| 708 | _ ≤ (2 / P.modulus α) ^ (99 * 𝔰.n * (j + 1)) := |
| 709 | h.idealZeta_mul_inv_modulus_pow_le hα (by rw [Shape.n] at hm ⊢; nlinarith) |
| 710 | |
| 711 | /-- The gauge of scale `α` at a large lattice datum, for an integral self-conjugate unit `α` of `A`: |
| 712 | a number `x` has size `j` if `α ^ j * x` is integral, and the field `loss` is `2 / P.modulus α`. -/ |
| 713 | @[simp] |
| 714 | def gauge (α : Aˣ := 1) (hα : α.val ∈ integers := by simp) |
| 715 | (sα : star α.val = α := by simp [*] <;> ring) : |
| 716 | Gauge F where |
| 717 | ofSize j := {x : A | α ^ j * x ∈ integers} |
| 718 | loss := 2 / P.modulus α |
| 719 | mul_mem_ofSize hx hy := by |
| 720 | simpa only [Set.mem_ofPred_eq, pow_add, mul_mul_mul_comm] using integers.mul_mem hx hy |
| 721 | sum_mem_ofSize := by simp_all [pow_succ', mul_assoc, mul_sum, mul_mem, sum_mem] |
| 722 | neg_mem_iff_and_star_mem_iff := by |
| 723 | refine ⟨by simp, fun hx ↦ ?_, fun hx ↦ ?_⟩ <;> simpa [sα] using isAdelic.1.1 hx |
| 724 | zero_one_mem_ofSize := by simp [pow_mem hα] |
| 725 | splitGram_and_inv_mem := by |
| 726 | simp [hα, h.integral_data.1.isIntMatrix _, |
| 727 | h.integral_data.1.isUnit_det_and_isIntMatrix_inv.2 _, mul_mem] |
| 728 | isCompact_ofSize j := isCompact_O.preimage_smul (α ^ j) |
| 729 | two_le_loss := two_le_two_div_modulus hα |
| 730 | loss_ne_top := by simp [div_eq_top] |
| 731 | pairs_le := h.zeta_le_and_le_card.2.1 |
| 732 | one_le_kernelBound := by simp [data_normalised] |
| 733 | levelUnit_mem_ofSize := by simp [hα, h.integral_data, mul_mem] |
| 734 | hasMatrixSize_basisMatrix := by simp [hα, h.integral_data.2.1 _, Size.HasMatrixSize, mul_mem] |
| 735 | traceOne_div_mem_ofSize := by simp [hα, data_normalised, mul_mem] |
| 736 | hasMatrixSize_boxSet := by |
| 737 | simp_all [h.volume_le_and_boxSet_closePairs_positions_eq, unitaryLevel, mem_intGL, |
| 738 | -Sum.forall, Size.HasMatrixSize, mul_mem] |
| 739 | mem_vecsOfSize_of_mem_closePairs ω₁ ω₂ hω := by |
| 740 | rw [closePairs_eq] at hω |
| 741 | exact ⟨fun i ↦ mul_mem (pow_mem hα 1) (hω.1 i), fun i ↦ mul_mem (pow_mem hα 1) (hω.2 i)⟩ |
| 742 | exists_unit_smul_mem_closePairs i hM := by |
| 743 | -- Take `c = α ^ (i + 1)`: one factor `α` clears the denominator `g`, the others those of the |
| 744 | -- vectors. |
| 745 | have h_inv : (α : A) ^ (i + 2) * (α ^ (i + 1))⁻¹.val = α := by |
| 746 | rw [pow_succ', mul_assoc, ← Units.val_pow_eq_pow_val, Units.mul_inv, mul_one] |
| 747 | refine ⟨α ^ (i + 1), by rwa [Set.mem_ofPred, h_inv], fun ω₁ h₁ ω₂ h₂ ↦ ?_⟩ |
| 748 | rw [closePairs_eq] |
| 749 | refine ⟨fun k ↦ by simpa [pow_succ', mul_assoc] using mul_mem hα (h₁ k), fun k ↦ ?_⟩ |
| 750 | convert integers.mul_mem hM (integers.sub_mem (h₁ k) (h₂ k)) using 1 |
| 751 | simp |
| 752 | ring |
| 753 | modulus_le j u hu := (inv_modulus_pow_le α j).trans' |
| 754 | (by simpa [mul_comm] using modulus_le_one (α ^ j * u) hu) |
| 755 | volume_ofSize_le j := (volume_setOf_mul_mem (α ^ j)).trans_le <| (inv_modulus_pow_le α j).trans <| |
| 756 | by |
| 757 | bound [one_le_two.trans (two_le_two_div_modulus hα)] |
| 758 | two_mul_blockRank_le := by |
| 759 | obtain ⟨-, hm, h_rank⟩ := h.zeta_le_and_le_card |
| 760 | simp only [blockRank] |
| 761 | lia |
| 762 | exists_blockKernel := by |
| 763 | obtain ⟨l, h_sfinite, h_dis, h_mass⟩ := |
| 764 | h.exists_kernel_isDisintegration_coordinateBox_le |
| 765 | exact ⟨l, h_sfinite, h_dis, fun β j ↦ |
| 766 | (h_mass β (α ^ j)).trans |
| 767 | (h.idealZeta_mul_inv_modulus_pow_le hα (by simp only [blockRank]; nlinarith))⟩ |
| 768 | exists_commonBound _ hx _ hz := h.exists_isCommonBound hα (fun _ ↦ rfl) hx hz |
| 769 | |
| 770 | include h in |
| 771 | /-- At a large lattice datum `F`, let `g` be an integral self-conjugate unit of `A`, `a < 𝔰.ϱ`, |
| 772 | `v` a vector on floors strictly above `a`, and `β` a skew-adjoint element of `A`. If `g⁻¹ * β` is |
| 773 | integral, the extension of `v` by zero has the form `g • w` for an integral vector `w`, and |
| 774 | `P.element * g * star w ⬝ᵥ T.splitGram *ᵥ w` is integral, then `P.heisenbergElem a (v, β)` lies in |
| 775 | the congruence subgroup `unitaryLevel integers g T.splitGram`. -/ |
| 776 | private lemma heisenbergElem_mem_unitaryLevel (hg : g.val ∈ integers ∧ star g.val = g) |
| 777 | (a : Fin 𝔰.ϱ) {v : {i : 𝔰.BesselIndex // a + 1 ≤ floorOf i} → A} {β : skewAdjoint A} |
| 778 | {w : 𝔰.BesselIndex → A} (hw : g • w = inclMatrix A Subtype.val *ᵥ v) |
| 779 | (hw_int : w ∈ intVectors integers 𝔰.BesselIndex) |
| 780 | (h_form : P.element * g * star w ⬝ᵥ T.splitGram *ᵥ w ∈ integers) |
| 781 | (hβ : g⁻¹.val * (β : A) ∈ integers) : |
| 782 | P.heisenbergElem (T := T) a (v, β) ∈ unitaryLevel integers g T.splitGram := by |
| 783 | -- With `e = e_a`, the Eichler map minus `1`, divided by `g`, is |
| 784 | -- `(w - s e) h(e, ·) - e h(w, ·)` with `s` integral. |
| 785 | obtain ⟨hg_mem, hg_star⟩ := hg |
| 786 | let e : 𝔰.BesselIndex → A := Pi.single (inl a) 1 |
| 787 | let s : A := P.element * g * star w ⬝ᵥ T.splitGram *ᵥ w - g⁻¹.val * (β : A) |
| 788 | have hJ : IsIntMatrix integers T.splitGram := h.isUnimodular_splitGram.isIntMatrix |
| 789 | have he : e ∈ intVectors integers 𝔰.BesselIndex := single_mem_intVectors _ |
| 790 | have hs : s ∈ integers := sub_mem h_form hβ |
| 791 | have hws : w - s • e ∈ intVectors integers 𝔰.BesselIndex := |
| 792 | fun i ↦ sub_mem (hw_int i) (mul_mem hs (he i)) |
| 793 | have h_param : P.element * star (g • w) ⬝ᵥ T.splitGram *ᵥ (g • w) - (β : A) = g * s := by |
| 794 | simp [s, Units.smul_def, mulVec_smul, hg_star, mul_sub, mul_left_comm, mul_assoc] |
| 795 | have h_eichler : eichlerMap T.splitGram e (-(g • w)) (g * s) - 1 = |
| 796 | g • (vecMulVec (w - s • e) (star e ᵥ* T.splitGram) - |
| 797 | vecMulVec e (star w ᵥ* T.splitGram)) := by |
| 798 | ext i j |
| 799 | simp only [eichlerMap, Units.smul_def, star_neg, star_smul, hg_star, neg_vecMul, smul_vecMul, |
| 800 | Matrix.sub_apply, Matrix.add_apply, Matrix.smul_apply, vecMulVec_apply, Pi.add_apply, |
| 801 | Pi.sub_apply, Pi.neg_apply, Pi.smul_apply, smul_eq_mul] |
| 802 | ring |
| 803 | refine h.isUnimodular_splitGram.mem_unitaryLevel hg_mem ?_ |
| 804 | simp only [TraceOne.heisenbergElem, ← hw] |
| 805 | change IsIntMatrix integers (g⁻¹ • (eichlerMap T.splitGram e (-(g • w)) _ - 1)) |
| 806 | rw [h_param, h_eichler, inv_smul_smul] |
| 807 | exact .sub (isIntMatrix_vecMulVec_star_vecMul hJ hws he) |
| 808 | (isIntMatrix_vecMulVec_star_vecMul hJ he hw_int) |
| 809 | |
| 810 | include h in |
| 811 | /-- At a large lattice datum `F`, let `g` be an integral self-conjugate unit of `A`, `a < 𝔰.ϱ`, and |
| 812 | `S` a subgroup of the unipotent group `unipotentBelow a` of the floors below `a`. Some `u ∈ S` moves |
| 813 | the point `P.heisenbergElem a (v, β)` of the Heisenberg group of floor `a` into the congruence |
| 814 | subgroup `unitaryLevel integers g T.splitGram` exactly when every entry of `g⁻¹ * v` and also |
| 815 | `g⁻¹ * β` are integral. -/ |
| 816 | lemma exists_mul_heisenbergElem_mem_unitaryLevel_iff |
| 817 | (hg : g.val ∈ integers ∧ star g.val = g) (a : Fin 𝔰.ϱ) {S : Subgroup T.G} |
| 818 | (hS : S ≤ unipotentBelow a) (v : {i : 𝔰.BesselIndex // a + 1 ≤ floorOf i} → A) |
| 819 | (β : skewAdjoint A) : |
| 820 | (∃ u ∈ S, u * P.heisenbergElem (T := T) a (v, β) ∈ unitaryLevel integers g T.splitGram) ↔ |
| 821 | (∀ i : {i : 𝔰.BesselIndex // a + 1 ≤ floorOf i}, g⁻¹.val * v i ∈ integers) ∧ |
| 822 | g⁻¹.val * (β : A) ∈ integers := by |
| 823 | -- Write the extension of `v` by zero as `g • w`; then `v / g` is integral if and only if `w` is. |
| 824 | obtain ⟨w, hw⟩ : ∃ w : 𝔰.BesselIndex → A, g • w = inclMatrix A Subtype.val *ᵥ v := |
| 825 | MulAction.surjective g _ |
| 826 | have h_int : (∀ i, g⁻¹.val * v i ∈ integers) ↔ w ∈ intVectors integers 𝔰.BesselIndex := by |
| 827 | rw [← inv_smul_smul g w, hw] |
| 828 | simp [inclMatrix_val_mulVec, dite_mem, intVectors, Units.smul_def] |
| 829 | obtain ⟨hg_mem, hg_star⟩ := hg |
| 830 | have h_form (hw_int : w ∈ intVectors integers 𝔰.BesselIndex) : |
| 831 | P.element * g * star w ⬝ᵥ T.splitGram *ᵥ w ∈ integers := |
| 832 | mul_mem (mul_mem data_normalised.1 hg_mem) |
| 833 | (h.star_dotProduct_splitGram_mulVec_mem hw_int hw_int) |
| 834 | rw [h_int] |
| 835 | constructor |
| 836 | · -- In the gauge of scale `1`, the column of `e*_a` gives `w` and `(β - τ h(v, v)) / g`. |
| 837 | rintro ⟨u, hu, -, h_cong⟩ |
| 838 | obtain ⟨hw_int, hβ⟩ := h.gauge.mem_vecsOfSize_and_mem_ofSize_of_heisenbergElem (i := 0) (u := g) |
| 839 | (t := (v, β)) ⟨u, hS hu, fun i ↦ by simpa [Units.smul_def] using h_cong i (eStar a)⟩ |
| 840 | rw [← hw] at hw_int hβ |
| 841 | replace hw_int : w ∈ intVectors integers 𝔰.BesselIndex := fun i ↦ by |
| 842 | simpa [Units.smul_def] using hw_int i |
| 843 | replace hβ : g⁻¹.val * (β : A) - P.element * g * star w ⬝ᵥ T.splitGram *ᵥ w ∈ integers := by |
| 844 | simpa [Units.smul_def, mulVec_smul, hg_star, mul_sub, mul_left_comm, mul_assoc] using hβ |
| 845 | exact ⟨hw_int, by simpa using add_mem hβ (h_form hw_int)⟩ |
| 846 | · -- Take `u = 1`: `P.heisenbergElem a (v, β)` already lies in the congruence subgroup. |
| 847 | rintro ⟨hw_int, hβ⟩ |
| 848 | refine ⟨1, S.one_mem, ?_⟩ |
| 849 | simpa only [one_mul] using |
| 850 | h.heisenbergElem_mem_unitaryLevel ⟨hg_mem, hg_star⟩ a hw hw_int (h_form hw_int) hβ |
| 851 | |
| 852 | /-- For a large lattice datum, an integral self-conjugate unit `g` of `A`, `a < ϱ` and a subgroup |
| 853 | `S` of the unipotent group `unipotentBelow a` of the floors below `a`, the set `S·K(g)` has mass |
| 854 | `F.floorModulus a g = modulus g ^ (𝔰.k + 1 + 2(ϱ − a − 1) + 1/2)` for the measure |
| 855 | `heisenbergMeasure a` of the Heisenberg group of floor `a`. -/ |
| 856 | theorem heisenbergMeasure_eq_floorModulus (hg : g.val ∈ integers ∧ star g.val = g) (a : Fin 𝔰.ϱ) |
| 857 | {S : Subgroup T.G} (hS : S ≤ unipotentBelow a) : |
| 858 | heisenbergMeasure a |
| 859 | {y : U T.splitGram | ∃ u ∈ S, u * (y * 1) ∈ unitaryLevel integers g T.splitGram} = |
| 860 | F.floorModulus a g := by |
| 861 | -- `heisenbergMeasure a` is the image of `dv dβ` under the Heisenberg chart, and the preimage of |
| 862 | -- `S·K(g)` is a box. |
| 863 | have h_chart : P.heisenbergElem (T := T) a ⁻¹' |
| 864 | {y : U T.splitGram | ∃ u ∈ S, u * (y * 1) ∈ unitaryLevel integers g T.splitGram} = |
| 865 | Set.univ.pi (fun _ ↦ {x : A | g⁻¹.val * x ∈ integers}) ×ˢ |
| 866 | {β : skewAdjoint A | g⁻¹.val * (β : A) ∈ integers} := by |
| 867 | ext ⟨v, β⟩ |
| 868 | simpa only [Set.mem_preimage, Set.mem_ofPred, mul_one, Set.mem_prod, Set.mem_univ_pi] using |
| 869 | h.exists_mul_heisenbergElem_mem_unitaryLevel_iff hg a hS v β |
| 870 | have h_star : star g⁻¹.val = g⁻¹.val := by simp [← inverse_star_unit, hg] |
| 871 | -- each coordinate of floor above `a` contributes `modulus g`, and `β` contributes |
| 872 | -- `modulus g ^ (1 / 2)` |
| 873 | rw [heisenbergMeasure, dite_eq_left a.is_lt, |
| 874 | map_apply (by fun_prop) measurableSet_exists_mul_mem_level, h_chart, prod_prod, |
| 875 | skewMeasure_setOf_mul_mem g⁻¹ h_star, volume_pi_pi, prod_const, Finset.card_univ, |
| 876 | card_subtype_succ_le_floorOf_eq] |
| 877 | simp [floorModulus, inv_rpow] |
| 878 | |
| 879 | /-- For a large lattice datum `F` (`P.IsLargeLatticeData F`), a self-conjugate unit `g` of `A` in |
| 880 | `integers`, and `j ≤ 𝔰.ϱ` (the number of hyperbolic planes), the convolution |
| 881 | `ascConv heisenbergMeasure j` of the Heisenberg measures `heisenbergMeasure l`, `l < j`, gives the |
| 882 | congruence subgroup `unitaryLevel integers g T.splitGram` the mass `∏ l < j, F.floorModulus l g`. |
| 883 | Each factor is |
| 884 | |g|^(r+1/2), where r is the rank of the vector part of floor `l`. -/ |
| 885 | theorem ascConv_unitaryLevel (hg : g.val ∈ integers ∧ star g.val = g) (j : ℕ) (hj : j ≤ 𝔰.ϱ) : |
| 886 | ascConv heisenbergMeasure j (unitaryLevel integers g T.splitGram : Set (U T.splitGram)) = |
| 887 | ∏ l ∈ Finset.range j, F.floorModulus l g := by |
| 888 | induction j with |
| 889 | | zero => simp [ascConv] |
| 890 | | succ j ih => |
| 891 | -- unfolding splits off the factor `heisenbergMeasure j`, of mass `F.floorModulus j g` |
| 892 | rw [prod_range_succ, ← ih (by lia), ← heisenbergMeasure_eq_floorModulus hg ⟨j, hj⟩ le_rfl, |
| 893 | ← ascConv_mconv_unfolding] |
| 894 | simp [ascConv] |
| 895 | |
| 896 | variable {c : T.G} {θ : Measure T.G} [SFinite θ] |
| 897 | |
| 898 | /-- Unfolding over all floors. Let `F` be a large lattice datum and `g` a self-conjugate unit of `A` |
| 899 | in `integers`. Write `K(g) = unitaryLevel integers g T.splitGram`. Then the convolution |
| 900 | `ascConv heisenbergMeasure (𝔰.ϱ + 2) ∗ₘ θ` gives the coset `K(g) c⁻¹` the mass |
| 901 | `∏ l < 𝔰.ϱ, F.floorModulus l g` times the `θ`-mass of `𝖴 K(g) c⁻¹`. Here `𝖴` is the Bessel unipotent |
| 902 | group `T.besselU`. -/ |
| 903 | theorem ascConv_mconv_unitaryLevel_coset (hg : g.val ∈ integers ∧ star g.val = g) : |
| 904 | (ascConv heisenbergMeasure (𝔰.ϱ + 2) ∗ₘ θ) |
| 905 | {y : T.G | y * c ∈ unitaryLevel integers g T.splitGram} = |
| 906 | (∏ l ∈ Finset.range 𝔰.ϱ, F.floorModulus l g) * |
| 907 | θ {y : T.G | ∃ u ∈ T.besselU, u * (y * c) ∈ unitaryLevel integers g T.splitGram} := by |
| 908 | -- The two top floors contribute the unit mass at `1`. |
| 909 | have h_top : ascConv (T := T) heisenbergMeasure (𝔰.ϱ + 2) = ascConv heisenbergMeasure 𝔰.ϱ := by |
| 910 | simp [ascConv] |
| 911 | rw [ascConv_mconv_unfolding, h_top, h.ascConv_unitaryLevel hg 𝔰.ϱ le_rfl] |
| 912 | simp [unipotentBelow_eq_besselU] |
| 913 | |
| 914 | /-- For a large lattice datum `F` at a finite place, the box `F.boxSet`, which is the group of |
| 915 | integral isometries, has `F.groupMeasure`-mass at most `1 + 2⁻¹ ^ n`, where `n = ϱ + 1`. -/ |
| 916 | theorem groupMeasure_boxSet_le : F.groupMeasure F.boxSet ≤ ENNReal.ofReal (1 + 2⁻¹ ^ 𝔰.n) := by |
| 917 | -- Unfolding at level `1` bounds `F.groupMeasure F.boxSet` by the mass of the frames near the box, |
| 918 | -- and each of the `𝔰.n` floors contributes at most `idealZeta P.integers m`: for the gauge of |
| 919 | -- scale `1` every `ofSize j` is `P.integers`, of volume `1`. |
| 920 | have h_floor (l : Fin 𝔰.n) : F.FloorMassLe l (idealZeta P.integers m) 1 := by |
| 921 | -- Solve the equation in a block. The other coordinates are free in `P.integers`. |
| 922 | obtain ⟨q, _, h_dis, h_mass⟩ := h.exists_kernel_isDisintegration_coordinateBox_le |
| 923 | obtain ⟨blk', blk, h_inj⟩ : ∃ blk' blk : Fin F.blockRank → ι, |
| 924 | Function.Injective (F.freeIndex ⊕ᵥ (blk' ⊕ᵥ blk)) := h.gauge.exists_blocks |
| 925 | have h_blocks : Function.Injective (blk' ⊕ᵥ blk) := h_inj.comp inr_injective |
| 926 | have h_blk : Function.Injective blk := h_blocks.comp inr_injective |
| 927 | -- `mid` places the orthonormal indices among the indices of the hyperbolic form |
| 928 | let mid : ι → FloorPairs l (m + 1) ⊕ ι ⊕ FloorPairs l (m + 1) := inr ∘ inl |
| 929 | have h_mid : Function.Injective mid := inr_injective.comp inl_injective |
| 930 | refine h.gauge.floorMassLe_one_of_le l fun β ↦ ?_ |
| 931 | have h_solved : IsSolvedIn (inr ∘ mid ∘ blk) |
| 932 | (quadricMeasure (hyperbolicGram (FloorPairs l (m + 1)) (1 : Matrix ι ι A)) β) P.integers |
| 933 | (idealZeta P.integers m) := by |
| 934 | refine h_dis.isSolvedIn_quadricMeasure (h_mass := fun b ↦ by simpa using h_mass b 1) |
| 935 | (hT := ?_) (h_inj := h_mid.comp h_blk) (h_orth := ?_) β |
| 936 | · simp [conjTranspose_hyperbolicGram] |
| 937 | · rintro i (k | k | k) <;> simp [mid, Matrix.one_apply] |
| 938 | have h_disjoint : Function.Injective ((inr ∘ mid ∘ blk') ⊕ᵥ (inr ∘ mid ∘ blk) : |
| 939 | Fin F.blockRank ⊕ Fin F.blockRank → |
| 940 | Fin 2 ⊕ FloorPairs l (m + 1) ⊕ ι ⊕ FloorPairs l (m + 1)) := by |
| 941 | simpa only [comp_elim] using inr_injective.comp (h_mid.comp h_blocks) |
| 942 | simpa [SemilocalField.volume_O, volume_coordinateBox, Size.vecsOfSize, -Sum.forall, |
| 943 | Set.univ_inter] using! |
| 944 | h_solved.setLIntegral_le isOpen_O.measurableSet h_disjoint measurable_one |
| 945 | calc F.groupMeasure F.boxSet |
| 946 | _ ≤ F.quotientMeasureFrom 0 {g : T.G | F.IsNear (𝔰.ϱ + 2) (g * 1)} := by |
| 947 | simpa [h.boxSet_eq, floorModulus, IsNear, partialGroupMeasure_zero_eq] using |
| 948 | (h.ascConv_mconv_unitaryLevel_coset (g := 1) (c := 1) (by simp)).le |
| 949 | _ ≤ idealZeta P.integers m ^ 𝔰.n := F.quotientMeasureFrom_isNear_le h_floor 0 1 |
| 950 | _ ≤ ENNReal.ofReal (1 + 2⁻¹ ^ 𝔰.n) := h.zeta_le_and_le_card.1 |
| 951 | |
| 952 | /-- The box of a large lattice datum is a group, so its mass for a convolution `σ ∗ₘ θ` is at least |
| 953 | the product of its masses for `σ` and `θ`. -/ |
| 954 | lemma mul_le_mconv_boxSet (σ θ : Measure T.G) [SFinite θ] : |
| 955 | σ F.boxSet * θ F.boxSet ≤ (σ ∗ₘ θ) F.boxSet := by |
| 956 | grw [← prod_prod, mconv, ← le_map_apply (by fun_prop), boxSet_eq] |
| 957 | exact measure_mono fun z ⟨hz₁, hz₂⟩ ↦ mul_mem hz₁ hz₂ |
| 958 | |
| 959 | /-- Let `F` be a large lattice datum. The measure `weylLaw l` is the image of `modulus c ^ d dc` |
| 960 | under `c ↦ (floorWeyl l c)⁻¹`, for a natural number `d` depending on the floor `l`. It gives the box |
| 961 | `F.boxSet` mass at least the volume of `P.intUnits`, the set of units of the ring of integers. -/ |
| 962 | lemma volume_intUnits_le_weylLaw_boxSet (l : ℕ) : volume P.intUnits ≤ weylLaw l F.boxSet := by |
| 963 | -- For a unit `u` of `P.integers` the Weyl element `floorWeyl l u` lies in the box, and the |
| 964 | -- density `modulus u ^ d` is at least `1`. |
| 965 | have h_mem : P.intUnits ⊆ (fun c : A ↦ (floorWeyl (T := T) l c)⁻¹) ⁻¹' F.boxSet := by |
| 966 | rintro _ ⟨hu, u, hu_inv, rfl⟩ |
| 967 | rw [boxSet_eq] |
| 968 | refine inv_mem (h.isUnimodular_splitGram.mem_unitaryLevel integers.one_mem ?_) |
| 969 | simp [floorWeyl, weylOn, Matrix.one_apply, hu, hu_inv, IsIntMatrix, ite_mem, |
| 970 | IsStarStable.star_mem, sub_mem] |
| 971 | have h_density (d : ℕ) : ∀ c ∈ P.intUnits, 1 ≤ P.modulus c ^ d := by |
| 972 | rintro _ ⟨-, u, hu_inv, rfl⟩ |
| 973 | exact one_le_pow₀ (by simpa using modulus_le_one _ hu_inv) |
| 974 | let d : ℕ := 𝔰.k + 1 + 2 * (𝔰.ϱ - (l + 1)) |
| 975 | calc volume P.intUnits |
| 976 | _ ≤ ∫⁻ c in P.intUnits, P.modulus c ^ d := by |
| 977 | grw [← meas_le_lintegral₀ (by fun_prop) (h_density d), restrict_eq_self _ subset_rfl] |
| 978 | _ ≤ volume.withDensity (fun c : A ↦ P.modulus c ^ d) P.intUnits := withDensity_apply_le _ _ |
| 979 | _ ≤ volume.withDensity (fun c : A ↦ P.modulus c ^ d) |
| 980 | ((fun c : A ↦ (floorWeyl (T := T) l c)⁻¹) ⁻¹' F.boxSet) := measure_mono h_mem |
| 981 | _ ≤ weylLaw l F.boxSet := le_map_apply (by fun_prop) _ |
| 982 | |
| 983 | /-- Let `F` be a large lattice datum at a finite place. Let `l + i = 𝔰.ϱ`. The measure |
| 984 | `F.partialGroupMeasure l (i + 2)` convolves the Heisenberg and floor measures of the `i + 2` floors |
| 985 | from `l` on. It gives the box `F.boxSet`, the group of integral isometries, mass at least |
| 986 | `volume P.intUnits ^ (i + 1)`. -/ |
| 987 | theorem le_partialGroupMeasure_boxSet (i l : ℕ) (hl : l + i = 𝔰.ϱ) : |
| 988 | volume P.intUnits ^ (i + 1) ≤ F.partialGroupMeasure l (i + 2) F.boxSet := by |
| 989 | -- Each floor contributes at least `volume P.intUnits`; descend from the top floor. |
| 990 | induction i generalizing l with |
| 991 | | zero => |
| 992 | obtain rfl : l = 𝔰.ϱ := hl |
| 993 | obtain ⟨h_theta, -, h_norm, -⟩ := h.volume_le_and_boxSet_closePairs_positions_eq |
| 994 | simp [descConv, floorMeasure] |
| 995 | grw [← h.mul_le_mconv_boxSet] |
| 996 | simpa [h_norm] using h_theta |
| 997 | | succ i ih => |
| 998 | have h_eta : heisenbergMeasure l F.boxSet = 1 := by |
| 999 | simpa [floorModulus, ← h.boxSet_eq] using |
| 1000 | h.heisenbergMeasure_eq_floorModulus (g := 1) (by simp) ⟨l, by lia⟩ bot_le |
| 1001 | rw [pow_succ] |
| 1002 | grw [ih (l + 1) (by lia), h.volume_intUnits_le_weylLaw_boxSet l] |
| 1003 | rw [← one_mul (weylLaw l F.boxSet), ← mul_one (weylLaw l F.boxSet), ← h_eta] |
| 1004 | grw [h.mul_le_mconv_boxSet, h.mul_le_mconv_boxSet, h.mul_le_mconv_boxSet] |
| 1005 | simp [descConv, floorMeasure, show l < 𝔰.ϱ by lia] |
| 1006 | |
| 1007 | /-- For a large lattice datum, `F.groupMeasure` is a Haar measure. -/ |
| 1008 | instance isHaarMeasure_groupMeasure : F.groupMeasure.IsHaarMeasure := by |
| 1009 | -- `F.groupMeasure` is right invariant, so it is a multiple `d • ν` of a unimodular Haar measure |
| 1010 | obtain ⟨ν, hν_haar, hν_right⟩ : ∃ ν : Measure T.G, ν.IsHaarMeasure ∧ ν.IsMulRightInvariant := |
| 1011 | h.unimodular |
| 1012 | obtain ⟨d, hd⟩ : ∃ d : ℝ≥0∞, F.groupMeasure = d • ν := |
| 1013 | exists_eq_smul_haar ν F.isMulRightInvariant_groupMeasure |
| 1014 | have hd_zero : d ≠ 0 := fun h_zero ↦ by simp [h_zero, partialGroupMeasure_ne_zero] at hd |
| 1015 | -- `d` is finite because the box has finite mass for `F.groupMeasure` and non-zero mass for `ν` |
| 1016 | have hd_top : d ≠ ∞ := by |
| 1017 | rintro rfl |
| 1018 | have h_box : ν F.boxSet ≠ 0 := by |
| 1019 | rw [boxSet_eq] |
| 1020 | exact unitaryLevel_open_compact.1.measure_ne_zero ν ⟨1, one_mem _⟩ |
| 1021 | simpa [hd, h_box] using h.groupMeasure_boxSet_le |
| 1022 | rw [hd] |
| 1023 | exact .smul _ hd_zero hd_top |
| 1024 | |
| 1025 | end IntegralPlace.IsLargeLatticeData |
| 1026 | |
| 1027 | end New.Floors |
| 1028 | |
| 1029 | end |