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.Analysis.Convex.Integral |
| 4 | import Mathlib.RingTheory.PiTensorProduct |
| 5 | import Mathlib.Topology.Algebra.ProperConstSMul |
| 6 | import Mathlib.Topology.UniformSpace.Uniformizable |
| 7 | import TauCeti.NumberTheory.NumberField.Countable |
| 8 | public import Lib.Adelic.Adeles.IdeleModulus |
| 9 | import Lib.Adelic.Adeles.StrongApproximation |
| 10 | |
| 11 | /-! |
| 12 | # Idelic theta sums over principal ideles as Riemann sums |
| 13 | |
| 14 | This file proves the lattice-sum estimate behind the continuation of Hecke `L`-functions to |
| 15 | `s = 1`. Ideles are pairs of a unit of the Minkowski space `mixedSpace K` and a finite idele. The |
| 16 | file defines the principal ideles, the module of an idele, an adelic tent and its theta sum over |
| 17 | the principal ideles. It writes theta sums as Riemann sums over the image of `K`. It shows that |
| 18 | `thetaSum d (r / 3) b` depends, up to an error, only on the module of `b`. |
| 19 | |
| 20 | ## Main definitions and results |
| 21 | |
| 22 | * `New.ZetaIntegral.principalIdeles`: the image of `Kˣ` in the idele group; |
| 23 | `New.ZetaIntegral.ideleModule` is the module of an idele. |
| 24 | * `New.ZetaIntegral.adelicTent r d`: a tent of height and radius `r` at `1` times the indicator of |
| 25 | `d * (x - 1) ∈ Ô`. |
| 26 | * `New.ZetaIntegral.thetaSum d r b`: the sum of the tent over the coset of `b` modulo the |
| 27 | principal ideles. `New.ZetaIntegral.exists_abs_sub_thetaSum_le`: `thetaSum d (r / 3) b` |
| 28 | depends only on the module `l` of `b`, up to an error: for each `l > 0` some `i` has |
| 29 | `|i - thetaSum d (r / 3) b| ≤ C * l ^ δ * |thetaSum d r b|` for all `b` of module `l`. |
| 30 | |
| 31 | Notions from other files: |
| 32 | * `New.finIdeleAbs`: The module |x| of a finite idele x: the adelic absolute value of the idele with |
| 33 | finite part x and component 1 at infinity. |
| 34 | * `New.Ô`: The subring Ô of finite adeles of K that are integral at every finite place. |
| 35 | |
| 36 | ## Relation to the literature |
| 37 | |
| 38 | Known; see `Lib.ClassField.HeckeL.ContinuationAtOne` for sources. |
| 39 | -/ |
| 40 | |
| 41 | @[expose] public section |
| 42 | |
| 43 | noncomputable section |
| 44 | |
| 45 | section IdelicThetaSum |
| 46 | |
| 47 | open NumberField MeasureTheory Measure Metric mixedEmbedding Set ENNReal Module Algebra AddSubgroup |
| 48 | ContinuousLinearMap Units Continuous Real |
| 49 | |
| 50 | /-- Lowering a tent changes it little. Let `0 < r` and `0 < ε`, and let `D'` be within `ε * r / 3` |
| 51 | of `D`. Then the tent of height `(r - ε * r) / 3` at distance `D'` is within `ε * max (r - D) 0` of |
| 52 | the tent of height `r / 3` at distance `D`. -/ |
| 53 | lemma abs_max_sub_max_le_mul_max {R : Type*} [Field R] [LinearOrder R] [IsStrictOrderedRing R] |
| 54 | {r ε D D' : R} (hr : 0 < r) (hε : 0 < ε) (hD : |D' - D| ≤ ε * r / 3) : |
| 55 | |max ((r - ε * r) / 3 - D') 0 - max (r / 3 - D) 0| ≤ ε * max (r - D) 0 := by |
| 56 | obtain ⟨hD_lower, hD_upper⟩ := abs_le.mp hD |
| 57 | have h_εr : 0 < ε * r := mul_pos hε hr |
| 58 | rcases le_or_gt (r / 3) D with hD_ge | hD_lt |
| 59 | · -- Both tents vanish. |
| 60 | have h_max_low : max ((r - ε * r) / 3 - D') 0 = 0 := max_eq_right (by linarith) |
| 61 | have h_max_mid : max (r / 3 - D) 0 = 0 := max_eq_right (by linarith) |
| 62 | rw [h_max_low, h_max_mid, sub_zero, abs_zero] |
| 63 | positivity |
| 64 | · -- The tent loses at most `2 * ε * r / 3`, while `r - D > 2 * r / 3`. |
| 65 | have h_top := mul_le_mul_of_nonneg_left (le_max_left (r - D) 0) hε.le |
| 66 | have h_εD := mul_lt_mul_of_pos_left hD_lt hε |
| 67 | exact (abs_max_sub_max_le_abs _ _ 0).trans (abs_le.mpr ⟨by linarith, by linarith⟩) |
| 68 | |
| 69 | namespace New.ZetaIntegral |
| 70 | |
| 71 | /-! ### The principal ideles, the module and the test function -/ |
| 72 | |
| 73 | /-- The subgroup of principal ideles: the image of K^× in the idele group. -/ |
| 74 | def principalIdeles (K : Type*) [Field K] [NumberField K] : Subgroup ((mixedSpace K)ˣ × (𝔸f K)ˣ) := |
| 75 | ((Units.map (mixedEmbedding K).toMonoidHom).prod principalIdele).range |
| 76 | |
| 77 | variable {K : Type*} [Field K] [NumberField K] |
| 78 | (r : ℝ) (d : (𝔸f K)ˣ) (a : (mixedSpace K)ˣ × (𝔸f K)ˣ) |
| 79 | |
| 80 | /-- The module of an idele, a homomorphism to ℝ: the absolute value of the norm to ℝ of its |
| 81 | infinite part times the module `New.finIdeleAbs` of its finite part. -/ |
| 82 | def ideleModule : (mixedSpace K)ˣ × (𝔸f K)ˣ →* ℝ := |
| 83 | (normHom.toMonoidHom.comp ((Algebra.norm ℝ).comp (coeHom (mixedSpace K)))).coprod |
| 84 | (finIdeleAbs (E := K)) |
| 85 | |
| 86 | open scoped Classical in |
| 87 | /-- The function on adeles x = (x_∞, x_f) equal to the tent max(r − dist(x_∞, 1), 0) if x_f lies |
| 88 | in 1 + d⁻¹Ô, and 0 otherwise. -/ |
| 89 | @[simp] |
| 90 | def adelicTent (x : mixedSpace K × 𝔸f K) : ℝ := |
| 91 | if d.val * (x.snd - 1) ∈ Ô K then max (r - dist x.fst 1) 0 else 0 |
| 92 | |
| 93 | deriving instance PolishSpace for mixedSpace K |
| 94 | |
| 95 | /-! ### Continuity, scaling and supports -/ |
| 96 | |
| 97 | /-- The idele norm module `ideleModule a` is strictly positive for any idele `a`. -/ |
| 98 | @[simp] |
| 99 | lemma ideleModule_pos : 0 < ideleModule a := mul_pos (a.fst.map (norm ℝ)).norm_pos ideleAbs_pos |
| 100 | |
| 101 | /-- The module of an idele is continuous. -/ |
| 102 | @[fun_prop] |
| 103 | lemma continuous_ideleModule : Continuous (ideleModule (K := K)) := by |
| 104 | classical |
| 105 | have h_inf : Continuous fun x : (mixedSpace K)ˣ ↦ |norm ℝ x.val| := |
| 106 | (continuous_det.comp ((mul ℝ (mixedSpace K)).continuous.comp continuous_val)).abs |
| 107 | have h_fin : Continuous (finIdeleAbs (E := K)) := |
| 108 | continuous_ideleAbs.comp (units_map _ (prodMk_right _)) |
| 109 | exact h_inf.fst'.mul h_fin.snd' |
| 110 | |
| 111 | /-- The adelic tent function `adelicTent r d` is continuous. -/ |
| 112 | @[fun_prop] |
| 113 | lemma continuous_adelicTent : Continuous (adelicTent r d) := by |
| 114 | -- The condition on the finite part cuts out a clopen set, on which the tent is continuous. |
| 115 | have h_clopen : IsClopen {x : mixedSpace K × 𝔸f K | d.val * (x.snd - 1) ∈ Ô K} := |
| 116 | IsClopen.preimage ⟨isCompact_Ô.isClosed, isOpen_Ô⟩ (by fun_prop) |
| 117 | exact h_clopen.continuous_indicator (by fun_prop) |
| 118 | |
| 119 | open scoped Classical in |
| 120 | /-- Multiplication by an idele `a` on `mixedSpace K × 𝔸f K` takes the Haar measure `volume` to |
| 121 | `(ideleModule a)⁻¹ • volume`. -/ |
| 122 | lemma measurePreserving_idele_mul : |
| 123 | MeasurePreserving (a.map val val * ·) volume (ENNReal.ofReal (ideleModule a)⁻¹ • volume) := by |
| 124 | -- Multiplication scales the Haar measure by the inverse module on each of the two factors. |
| 125 | have h_inf : MeasurePreserving (a.fst.val * ·) volume |
| 126 | (ENNReal.ofReal |(norm ℝ a.fst.val)⁻¹| • volume) := |
| 127 | ⟨by fun_prop, map_linearMap_addHaar_eq_smul_addHaar volume (a.fst.map (norm ℝ)).ne_zero⟩ |
| 128 | have h_fin : MeasurePreserving (a.snd.val * ·) volume |
| 129 | (ENNReal.ofReal (finIdeleAbs a.snd)⁻¹ • volume) := by |
| 130 | refine ⟨by fun_prop, ?_⟩ |
| 131 | rw [← genIndex_eq_inv_finIdeleAbs, genIndex_eq_inv_distribHaarChar] |
| 132 | exact map_smul_eq_inv_distribHaarChar_smul (A := 𝔸f K) a.snd |
| 133 | have h_module : ideleModule a = |norm ℝ a.fst.val| * finIdeleAbs a.snd := rfl |
| 134 | have h_measure : ENNReal.ofReal (ideleModule a)⁻¹ • (volume : Measure (mixedSpace K × 𝔸f K)) = |
| 135 | (ENNReal.ofReal |(norm ℝ a.fst.val)⁻¹| • volume).prod |
| 136 | (ENNReal.ofReal (finIdeleAbs a.snd)⁻¹ • volume) := by |
| 137 | rw [prod_smul_left, prod_smul_right, smul_smul, ← Measure.volume_eq_prod, |
| 138 | ← ENNReal.ofReal_mul (abs_nonneg _), h_module, _root_.mul_inv, abs_inv] |
| 139 | rw [h_measure] |
| 140 | exact h_inf.prod h_fin |
| 141 | |
| 142 | /-- The product formula: a principal idele has module one. -/ |
| 143 | @[simp] |
| 144 | lemma ideleModule_principal_eq_one : ∀ γ : principalIdeles K, ideleModule γ.val = 1 := by |
| 145 | -- The finite part of the module of `x` is `|norm ℚ x|⁻¹` (`finIdeleAbs_principalIdele`), so it is |
| 146 | -- enough to compare the two norms of `x`; the matrices of multiplication by `x` in |
| 147 | -- `latticeBasis K` and `integralBasis K` have the same entries. |
| 148 | have h_norm (x : K) : norm ℝ (mixedEmbedding K x) = norm ℚ x := by |
| 149 | simp [← map_mul, norm_eq_matrix_det (latticeBasis K), norm_eq_matrix_det (integralBasis K), |
| 150 | Matrix.det_apply', leftMulMatrix_eq_repr_mul, latticeBasis_repr_apply] |
| 151 | simp [principalIdeles, ideleModule, finIdeleAbs_principalIdele, field, h_norm] |
| 152 | |
| 153 | open scoped Classical in |
| 154 | /-- The adelic tent is nonzero exactly on the open ball of radius `r` at infinity |
| 155 | and the coset `1 + d⁻¹ Ô` at the finite places. -/ |
| 156 | lemma adelicTent_ne_zero_iff {x : mixedSpace K × 𝔸f K} : |
| 157 | adelicTent r d x ≠ 0 ↔ dist x.fst 1 < r ∧ d.val * (x.snd - 1) ∈ Ô K := by |
| 158 | by_cases h : d.val * (x.snd - 1) ∈ Ô K <;> simp [adelicTent, h] |
| 159 | |
| 160 | open scoped Classical in |
| 161 | /-- Where `adelicTent r d` is nonzero, the infinite part is within `r` of `1` and `d` times the |
| 162 | finite part minus `1` is integral. -/ |
| 163 | lemma dist_le_and_mem_of_adelicTent_ne_zero {x : mixedSpace K × 𝔸f K} |
| 164 | (hx : adelicTent r d x ≠ 0) : dist x.fst 1 ≤ r ∧ d.val * (x.snd - 1) ∈ Ô K := by |
| 165 | obtain ⟨h_dist, h_mem⟩ := (adelicTent_ne_zero_iff r d).mp hx |
| 166 | exact ⟨h_dist.le, h_mem⟩ |
| 167 | |
| 168 | /-- The tent `adelicTent r d`, composed with multiplication by an idele `a`, has compact support. -/ |
| 169 | lemma hasCompactSupport_adelicTent_mul : |
| 170 | HasCompactSupport (fun x : mixedSpace K × 𝔸f K ↦ adelicTent r d (a.map val val * x)) := by |
| 171 | classical |
| 172 | -- `adelicTent r d` vanishes off the product of a closed ball and a translate of `d⁻¹ Ô`; |
| 173 | -- multiplication by a unit is a homeomorphism. |
| 174 | have h_inf : IsCompact ((a.fst • ·) ⁻¹' closedBall (1 : mixedSpace K) r) := |
| 175 | (isCompact_closedBall 1 r).preimage_smul a.fst |
| 176 | have h_fin : IsCompact ((a.snd • ·) ⁻¹' ((· + 1) '' ((d • ·) ⁻¹' (Ô K : Set (𝔸f K))))) := |
| 177 | ((isCompact_Ô.preimage_smul d).image (continuous_add_const 1)).preimage_smul a.snd |
| 178 | refine .intro (h_inf.prod h_fin) fun x ↦ not_imp_comm.mp fun h_ne ↦ ?_ |
| 179 | obtain ⟨h_dist, h_mem⟩ := dist_le_and_mem_of_adelicTent_ne_zero r d h_ne |
| 180 | exact ⟨h_dist, a.snd.val * x.snd - 1, h_mem, sub_add_cancel _ _⟩ |
| 181 | |
| 182 | open scoped Classical in |
| 183 | /-- Moving `x` by `w` with `‖w.1‖ ≤ ε * r / 3` and `d * w.2` integral, and lowering the tent from |
| 184 | `r / 3` to `(r - ε * r) / 3`, changes `adelicTent` by at most `ε * adelicTent r d x`. -/ |
| 185 | lemma abs_adelicTent_add_sub_le {ε : ℝ} (hr : 0 < r) (hε : 0 < ε) (x w : mixedSpace K × 𝔸f K) |
| 186 | (hw_norm : ‖w.fst‖ ≤ ε * r / 3) (hw_mem : d.val * w.snd ∈ Ô K) : |
| 187 | |adelicTent ((r - ε * r) / 3) d (x + w) - adelicTent (r / 3) d x| ≤ ε * adelicTent r d x := by |
| 188 | -- The finite conditions of the three tents agree, as `d * w.2` is integral; at the infinite |
| 189 | -- part the distance to `1` moves by at most `‖w.1‖` (`abs_max_sub_max_le_mul_max`). |
| 190 | have h_dist : |dist (x.fst + w.fst) 1 - dist x.fst 1| ≤ ε * r / 3 := |
| 191 | (abs_dist_sub_le (x.fst + w.fst) x.fst 1).trans ((dist_self_add_left _ _).trans_le hw_norm) |
| 192 | have h_mem_iff : d.val * (x.snd + w.snd - 1) ∈ Ô K ↔ d.val * (x.snd - 1) ∈ Ô K := by |
| 193 | rw [add_sub_right_comm, mul_add, add_mem_cancel_right hw_mem] |
| 194 | simp only [adelicTent, Prod.fst_add, Prod.snd_add, h_mem_iff] |
| 195 | split_ifs |
| 196 | · exact abs_max_sub_max_le_mul_max hr hε h_dist |
| 197 | · simp |
| 198 | |
| 199 | open scoped Classical in |
| 200 | /-- The box `ball 0 ρ ×ˢ d⁻¹ Ô` in `mixedSpace K × 𝔸f K`: the points whose infinite part has norm |
| 201 | less than `ρ` and whose finite part times `d` is integral. -/ |
| 202 | def adelicBox (ρ : ℝ) : Set (mixedSpace K × 𝔸f K) := |
| 203 | ball (0 : mixedSpace K) ρ ×ˢ ((d.val * ·) ⁻¹' (Ô K : Set (𝔸f K))) |
| 204 | |
| 205 | open scoped Classical in |
| 206 | /-- The box `adelicBox d ρ` is open in `mixedSpace K × 𝔸f K`. -/ |
| 207 | lemma isOpen_adelicBox (ρ : ℝ) : IsOpen (adelicBox d ρ) := |
| 208 | isOpen_ball.prod (isOpen_Ô.preimage (continuous_const_mul d.val)) |
| 209 | |
| 210 | open scoped Classical in |
| 211 | /-- Blichfeldt's lemma for ideles. Let `F` be a fundamental domain for `K` in |
| 212 | `mixedSpace K × 𝔸f K`, and suppose the preimage, under multiplication by `a`, of the box |
| 213 | `ball 0 ρ ×ˢ d⁻¹ Ô` has more volume than `F`. Then for some principal idele `γ` the idele `a * γ` |
| 214 | has infinite part of norm less than `2 * ρ`, and `d` times its finite part is integral. -/ |
| 215 | lemma exists_principal_mul_mem_box {F : Set (mixedSpace K × 𝔸f K)} {ρ : ℝ} |
| 216 | (hF : |
| 217 | IsAddFundamentalDomain ((mixedEmbedding K).prod (algebraMap K (𝔸f K))).toAddMonoidHom.range F) |
| 218 | (h_vol : volume F < |
| 219 | volume ((a.map val val * ·) ⁻¹' ball (0 : mixedSpace K) ρ ×ˢ ((d.val * ·) ⁻¹' Ô K))) : |
| 220 | ∃ γ : principalIdeles K, |
| 221 | ‖((a * γ.val).map val val).fst‖ < 2 * ρ ∧ d.val * ((a * γ.val).map val val).snd ∈ Ô K := by |
| 222 | let j : K →+ mixedSpace K × 𝔸f K := ((mixedEmbedding K).prod (algebraMap K (𝔸f K))).toAddMonoidHom |
| 223 | have : IsAddHaarMeasure (volume : Measure (mixedSpace K × 𝔸f K)) := prod.instIsAddHaarMeasure .. |
| 224 | have : Countable j.range := (countable_range j).to_subtype |
| 225 | let S : Set (mixedSpace K × 𝔸f K) := (a.map val val * ·) ⁻¹' adelicBox d ρ |
| 226 | have hS : MeasurableSet S := |
| 227 | (measurePreserving_idele_mul a).measurable (isOpen_adelicBox d ρ).measurableSet |
| 228 | -- Two points `x` and `y + x` of the preimage `S` differ by a nonzero `y ∈ K`. |
| 229 | have h_blichfeldt : ∃ x ∈ S, ∃ x' ∈ S, ∃ z : j.range, z ≠ 0 ∧ z +ᵥ x = x' := |
| 230 | hF.exists_ne_zero_vadd_eq hS.nullMeasurableSet h_vol |
| 231 | obtain ⟨x, hx_mem, _, hy_mem, ⟨_, y, rfl⟩, hy_ne, rfl⟩ := h_blichfeldt |
| 232 | obtain ⟨hx_inf, hx_fin⟩ : |
| 233 | dist (a.fst.val * x.fst) 0 < ρ ∧ d.val * (a.snd.val * x.snd) ∈ Ô K := hx_mem |
| 234 | obtain ⟨hy_inf, hy_fin⟩ : |
| 235 | dist (a.fst.val * (mixedEmbedding K y + x.fst)) 0 < ρ ∧ |
| 236 | d.val * (a.snd.val * (algebraMap K (𝔸f K) y + x.snd)) ∈ Ô K := hy_mem |
| 237 | have hy_ne_zero : y ≠ 0 := fun hy ↦ hy_ne (Subtype.ext (by simp [hy])) |
| 238 | -- `γ` is the principal idele of `y`; the difference of the two images is `a * γ`. |
| 239 | let γ : principalIdeles K := ⟨_, .mk0 y hy_ne_zero, rfl⟩ |
| 240 | refine ⟨γ, ?_, ?_⟩ |
| 241 | · calc ‖a.fst.val * mixedEmbedding K y‖ |
| 242 | = dist (a.fst.val * (mixedEmbedding K y + x.fst)) (a.fst.val * x.fst) := by simp [mul_add] |
| 243 | _ < ρ + ρ := (dist_triangle_right _ _ 0).trans_lt (add_lt_add hy_inf hx_inf) |
| 244 | _ = 2 * ρ := (two_mul ρ).symm |
| 245 | · change d.val * (a.snd.val * algebraMap K (𝔸f K) y) ∈ Ô K |
| 246 | simpa [mul_add] using (Ô K).sub_mem hy_fin hx_fin |
| 247 | |
| 248 | /-! ### Theta sums as Riemann sums over the image of `K` -/ |
| 249 | |
| 250 | /-- A principal idele, as a point of `mixedSpace K × 𝔸f K`, lies in the image of `K`. -/ |
| 251 | lemma map_val_val_mem_range_of_mem_principalIdeles {b : (mixedSpace K)ˣ × (𝔸f K)ˣ} |
| 252 | (hb : b ∈ principalIdeles K) : |
| 253 | b.map val val ∈ ((mixedEmbedding K).prod (algebraMap K (𝔸f K))).toAddMonoidHom.range := by |
| 254 | obtain ⟨x, rfl⟩ := hb |
| 255 | exact ⟨x, rfl⟩ |
| 256 | |
| 257 | /-- A principal idele, as an element of the image of `K` in `mixedSpace K × 𝔸f K`. -/ |
| 258 | private def principalIdelesToRange : |
| 259 | principalIdeles K → ((mixedEmbedding K).prod (algebraMap K (𝔸f K))).toAddMonoidHom.range := |
| 260 | Subtype.map (fun b ↦ b.map val val) fun _ ↦ map_val_val_mem_range_of_mem_principalIdeles |
| 261 | |
| 262 | /-- The map `principalIdelesToRange` from the principal ideles to the image of `K` in |
| 263 | `mixedSpace K × 𝔸f K` is injective. -/ |
| 264 | private lemma principalIdelesToRange_injective : |
| 265 | Function.Injective (principalIdelesToRange (K := K)) := |
| 266 | Subtype.map_injective _ (val_injective.prodMap val_injective) |
| 267 | |
| 268 | /-- If the image of `K` in `mixedSpace K × 𝔸f K` is discrete, so are the principal ideles: they map |
| 269 | continuously and injectively to it. -/ |
| 270 | lemma discreteTopology_principalIdeles |
| 271 | (h_disc : |
| 272 | DiscreteTopology ((mixedEmbedding K).prod (algebraMap K (𝔸f K))).toAddMonoidHom.range) : |
| 273 | DiscreteTopology (principalIdeles K) := |
| 274 | .of_continuous_injective (f := principalIdelesToRange) |
| 275 | ((continuous_val.prodMap continuous_val).subtype_map _) principalIdelesToRange_injective |
| 276 | |
| 277 | /-- Let the image of `K` in `mixedSpace K × 𝔸f K` be discrete. For `ρ ≤ 1`, an idele `b` and a |
| 278 | principal idele `γ`, the sum of `adelicTent ρ d` at the points `b * γ * y`, `y` in the image of |
| 279 | `K`, is its sum at the points `γ' * b`, `γ'` principal. The term of `y = 0` vanishes, and the |
| 280 | nonzero `y` are the principal ideles. -/ |
| 281 | lemma hasSum_adelicTent_mul_range |
| 282 | (h_disc : |
| 283 | DiscreteTopology ((mixedEmbedding K).prod (algebraMap K (𝔸f K))).toAddMonoidHom.range) |
| 284 | {ρ : ℝ} (hρ : ρ ≤ 1) (b : (mixedSpace K)ˣ × (𝔸f K)ˣ) (γ : principalIdeles K) : |
| 285 | HasSum (fun y : ((mixedEmbedding K).prod (algebraMap K (𝔸f K))).toAddMonoidHom.range ↦ |
| 286 | adelicTent ρ d ((b * γ.val).map val val * y)) |
| 287 | (∑' γ' : principalIdeles K, adelicTent ρ d ((γ'.val * b).map val val)) := by |
| 288 | classical |
| 289 | let j : K →+ mixedSpace K × 𝔸f K := ((mixedEmbedding K).prod (algebraMap K (𝔸f K))).toAddMonoidHom |
| 290 | let f : mixedSpace K × 𝔸f K → ℝ := fun x ↦ adelicTent ρ d ((b * γ.val).map val val * x) |
| 291 | -- `g` identifies the principal ideles with the nonzero elements of `j.range`, and `f 0 = 0`. |
| 292 | let g : principalIdeles K → j.range := principalIdelesToRange |
| 293 | have h_support : (Function.support fun y : j.range ↦ f y) ⊆ Set.range g := by |
| 294 | rintro ⟨_, y, rfl⟩ hy |
| 295 | have hy_ne_zero : y ≠ 0 := fun hy_zero ↦ hy (by simp [f, hy_zero, hρ]) |
| 296 | exact ⟨⟨_, .mk0 y hy_ne_zero, rfl⟩, rfl⟩ |
| 297 | -- Only finitely many points of the discrete `j.range` lie in the compact support of `f`. |
| 298 | have h_fin_supp : Function.HasFiniteSupport fun y : j.range ↦ f y := |
| 299 | tendsto_coe_cofinite_of_isDiscrete _ ⟨h_disc⟩ <| |
| 300 | (Filter.mem_cocompact' (s := {x | f x = 0})).mpr |
| 301 | ⟨_, hasCompactSupport_adelicTent_mul ρ d (b * γ), subset_tsupport f⟩ |
| 302 | rw [(summable_of_hasFiniteSupport h_fin_supp).hasSum_iff] |
| 303 | calc ∑' y : j.range, f y |
| 304 | = ∑' γ' : principalIdeles K, f (g γ') := |
| 305 | (principalIdelesToRange_injective.tsum_eq h_support).symm |
| 306 | _ = ∑' γ' : principalIdeles K, adelicTent ρ d (((γ * γ').val * b).map val val) := by |
| 307 | refine tsum_congr fun γ' ↦ ?_ |
| 308 | change adelicTent ρ d ((b * γ.val * γ'.val).map val val) = _ |
| 309 | rw [Subgroup.coe_mul, mul_assoc, mul_comm b] |
| 310 | _ = ∑' γ' : principalIdeles K, adelicTent ρ d ((γ'.val * b).map val val) := |
| 311 | (Equiv.mulLeft γ).tsum_eq fun γ' ↦ adelicTent ρ d ((γ'.val * b).map val val) |
| 312 | |
| 313 | open scoped Classical in |
| 314 | /-- Multiplication by an idele `b`: for `t > 0`, the preimage of `adelicBox d (t * ρ)` has |
| 315 | `(ideleModule b)⁻¹ * t ^ [K : ℚ]` times the volume of `adelicBox d ρ`. -/ |
| 316 | lemma volume_preimage_idele_mul_adelicBox {t ρ : ℝ} (ht : 0 < t) (b : (mixedSpace K)ˣ × (𝔸f K)ˣ) : |
| 317 | volume ((b.map val val * ·) ⁻¹' adelicBox d (t * ρ)) = |
| 318 | ENNReal.ofReal ((ideleModule b)⁻¹ * t ^ finrank ℚ K) * volume (adelicBox d ρ) := by |
| 319 | rw [(measurePreserving_idele_mul b).measure_preimage (isOpen_adelicBox d _).nullMeasurableSet, |
| 320 | smul_apply, _root_.smul_eq_mul, ENNReal.ofReal_mul (by simp [le_of_lt]), mul_assoc] |
| 321 | simp only [adelicBox, Measure.volume_eq_prod (mixedSpace K) (𝔸f K), Measure.prod_prod, |
| 322 | addHaar_ball_mul_of_pos volume (0 : mixedSpace K) ht ρ, mixedEmbedding.finrank, mul_assoc] |
| 323 | |
| 324 | open scoped Classical in |
| 325 | open scoped Pointwise in |
| 326 | /-- One cell of the Riemann sum. Let `F ⊆ closedBall 0 R ×ˢ Ô K` be measurable of volume one, let |
| 327 | `c` be an idele with infinite part of norm less than `t * r / 3` and `d` times its finite part |
| 328 | integral, and let `y` be in the image of `K`. Then the mean over `y + F` of the tent of radius |
| 329 | `(r - R * t * r) / 3` at `c * x` is within `R * t` times the tent of radius `r` at `c * y` of |
| 330 | the tent of radius `r / 3` at `c * y`. -/ |
| 331 | lemma norm_setIntegral_vadd_sub_adelicTent_le {R t : ℝ} (hR : 0 < R) (ht : 0 < t) (hr : 0 < r) |
| 332 | {F : Set (mixedSpace K × 𝔸f K)} |
| 333 | (hF_sub : F ⊆ closedBall (0 : mixedSpace K) R ×ˢ (Ô K : Set (𝔸f K))) |
| 334 | (hF_meas : MeasurableSet F) (hF_vol : volume F = 1) {c : (mixedSpace K)ˣ × (𝔸f K)ˣ} |
| 335 | (hc_inf : ‖(c.map val val).fst‖ < t * r / 3) (hc_fin : d.val * (c.map val val).snd ∈ Ô K) |
| 336 | (y : ((mixedEmbedding K).prod (algebraMap K (𝔸f K))).toAddMonoidHom.range) : |
| 337 | ‖(∫ x in y +ᵥ F, adelicTent ((r - R * t * r) / 3) d (c.map val val * x)) - |
| 338 | adelicTent (r / 3) d (c.map val val * y)‖ ≤ |
| 339 | R * t * adelicTent r d (c.map val val * y) := by |
| 340 | -- The mean of a function over a cell lies in a closed ball if the function does at each point. |
| 341 | have : IsAddHaarMeasure (volume : Measure (mixedSpace K × 𝔸f K)) := prod.instIsAddHaarMeasure .. |
| 342 | have : IsProbabilityMeasure (volume.restrict (y +ᵥ F)) := |
| 343 | ⟨by rw [Measure.restrict_apply_univ, AddSubgroup.vadd_def, measure_vadd, hF_vol]⟩ |
| 344 | have h_int : Integrable fun x ↦ adelicTent ((r - R * t * r) / 3) d (c.map val val * x) := |
| 345 | (hasCompactSupport_adelicTent_mul ((r - R * t * r) / 3) d c).integrable |
| 346 | rw [← mem_closedBall_iff_norm] |
| 347 | refine (convex_closedBall _ _).integral_mem isClosed_closedBall |
| 348 | (ae_restrict_of_forall_mem (hF_meas.const_vadd y) ?_) h_int.restrict |
| 349 | rintro _ ⟨z, hz, rfl⟩ |
| 350 | obtain ⟨hz_ball, hz_int⟩ : z.fst ∈ closedBall (0 : mixedSpace K) R ∧ z.snd ∈ Ô K := hF_sub hz |
| 351 | have h_inf : ‖(c.map val val * z).fst‖ ≤ R * t * r / 3 := |
| 352 | (norm_mul_le_of_le hc_inf.le (mem_closedBall_zero_iff.mp hz_ball)).trans_eq (by ring) |
| 353 | have h_fin : d.val * (c.map val val * z).snd ∈ Ô K := by |
| 354 | simpa [mul_assoc] using mul_mem hc_fin hz_int |
| 355 | change |adelicTent ((r - R * t * r) / 3) d (c.map val val * ((y : mixedSpace K × 𝔸f K) + z)) - |
| 356 | adelicTent (r / 3) d (c.map val val * y)| ≤ R * t * adelicTent r d (c.map val val * y) |
| 357 | rw [mul_add] |
| 358 | exact abs_adelicTent_add_sub_le r d hr (mul_pos hR ht) _ (c.map val val * z) h_inf h_fin |
| 359 | |
| 360 | /-- The theta sum of radius `ρ` at an idele `b`: the sum of the tent `adelicTent ρ d` over the coset |
| 361 | of `b` modulo the principal ideles. -/ |
| 362 | def thetaSum (ρ : ℝ) (b : (mixedSpace K)ˣ × (𝔸f K)ˣ) : ℝ := |
| 363 | ∑' γ : principalIdeles K, adelicTent ρ d ((γ.val * b).map val val) |
| 364 | |
| 365 | open scoped Classical in |
| 366 | /-- Given a volume-one fundamental domain `F` and `n` with `1 < n * volume (adelicBox d (r / 6))`, |
| 367 | any idele `b` of module `l` admits a principal idele `γ` such that `b * γ` has infinite part of norm |
| 368 | less than `((n * l) ^ [K : ℚ]⁻¹) * r / 3` and `d` times its finite part integral. -/ |
| 369 | private lemma exists_principal_mul_small {F : Set (mixedSpace K × 𝔸f K)} {n : ℕ} {l : ℝ} |
| 370 | (hF : |
| 371 | IsAddFundamentalDomain ((mixedEmbedding K).prod (algebraMap K (𝔸f K))).toAddMonoidHom.range F) |
| 372 | (hF_vol : volume F = 1) (hn_vol : 1 < (n : ℝ≥0∞) * volume (adelicBox d (r / 6))) |
| 373 | {b : (mixedSpace K)ˣ × (𝔸f K)ˣ} (hb : ideleModule b = l) : |
| 374 | ∃ γ : principalIdeles K, |
| 375 | ‖((b * γ.val).map val val).fst‖ < ((n : ℝ) * l) ^ (finrank ℚ K : ℝ)⁻¹ * r / 3 ∧ |
| 376 | d.val * ((b * γ.val).map val val).snd ∈ Ô K := by |
| 377 | have hn : 0 < n := Nat.pos_of_ne_zero fun h ↦ by simp [h] at hn_vol |
| 378 | have hl : 0 < l := hb ▸ ideleModule_pos b |
| 379 | let t : ℝ := ((n : ℝ) * l) ^ (finrank ℚ K : ℝ)⁻¹ |
| 380 | have ht : 0 < t := by positivity |
| 381 | -- Blichfeldt: as `t ^ [K : ℚ] = n * l`, the preimage of the box of radius `t * (r / 6)` under |
| 382 | -- multiplication by `b` has `n` times the volume of the box of radius `r / 6`, which is more |
| 383 | -- than the volume of `F`. |
| 384 | have h_scale : (ideleModule b)⁻¹ * t ^ finrank ℚ K = n := by |
| 385 | rw [hb, Real.rpow_inv_natCast_pow (by positivity) finrank_pos.ne'] |
| 386 | field_simp |
| 387 | have h_vol : volume F < volume ((b.map val val * ·) ⁻¹' adelicBox d (t * (r / 6))) := by |
| 388 | rwa [hF_vol, volume_preimage_idele_mul_adelicBox d ht b, h_scale, ENNReal.ofReal_natCast] |
| 389 | obtain ⟨γ, hγ_inf, hγ_fin⟩ := exists_principal_mul_mem_box d b hF h_vol |
| 390 | exact ⟨γ, by linarith, hγ_fin⟩ |
| 391 | |
| 392 | open scoped Classical Pointwise in |
| 393 | /-- Given a volume-one fundamental domain `F ⊆ closedBall 0 R ×ˢ Ô K` and a principal idele `γ` |
| 394 | making `b * γ` have infinite part of norm less than `t * r / 3` and `d` times its finite part |
| 395 | integral, the Riemann sum `thetaSum d (r / 3) b` is within `R * t * |thetaSum d r b|` of the |
| 396 | `(ideleModule b)⁻¹`-scaled integral of the lowered tent. -/ |
| 397 | private lemma abs_integral_sub_thetaSum_le {R t l : ℝ} (hr_pos : 0 < r) (hr : r < 1) |
| 398 | (hR : 0 < R) (ht : 0 < t) {F : Set (mixedSpace K × 𝔸f K)} |
| 399 | (h_disc : |
| 400 | DiscreteTopology ((mixedEmbedding K).prod (algebraMap K (𝔸f K))).toAddMonoidHom.range) |
| 401 | (hF_sub : F ⊆ closedBall (0 : mixedSpace K) R ×ˢ (Ô K : Set (𝔸f K))) |
| 402 | (hF_meas : MeasurableSet F) (hF_vol : volume F = 1) |
| 403 | (hF : |
| 404 | IsAddFundamentalDomain ((mixedEmbedding K).prod (algebraMap K (𝔸f K))).toAddMonoidHom.range F) |
| 405 | {b : (mixedSpace K)ˣ × (𝔸f K)ˣ} (hb : ideleModule b = l) {γ : principalIdeles K} |
| 406 | (hγ_small : ‖((b * γ.val).map val val).fst‖ < t * r / 3) |
| 407 | (hγ_fin : d.val * ((b * γ.val).map val val).snd ∈ Ô K) : |
| 408 | |(∫ x, adelicTent ((r - R * t * r) / 3) d x ∂(ENNReal.ofReal l⁻¹ • volume)) - |
| 409 | thetaSum d (r / 3) b| ≤ R * t * |thetaSum d r b| := by |
| 410 | let j : K →+ mixedSpace K × 𝔸f K := ((mixedEmbedding K).prod (algebraMap K (𝔸f K))).toAddMonoidHom |
| 411 | have : IsAddHaarMeasure (volume : Measure (mixedSpace K × 𝔸f K)) := prod.instIsAddHaarMeasure .. |
| 412 | have : Countable j.range := (countable_range j).to_subtype |
| 413 | -- `f ρ'` is the tent of radius `ρ'` after multiplication by `b * γ`. For `ρ' ≤ 1` the term of |
| 414 | -- `0` vanishes, so `thetaSum d ρ' b` is the sum of `f ρ'` over `j.range`; and the integral of |
| 415 | -- `f ρ` is the sum of its integrals over the cells. |
| 416 | let ρ : ℝ := (r - R * t * r) / 3 |
| 417 | let f : ℝ → mixedSpace K × 𝔸f K → ℝ := fun ρ' x ↦ adelicTent ρ' d ((b * γ.val).map val val * x) |
| 418 | have h_sum (ρ' : ℝ) (hρ' : ρ' ≤ 1) : HasSum (fun y : j.range ↦ f ρ' y) (thetaSum d ρ' b) := |
| 419 | hasSum_adelicTent_mul_range d h_disc hρ' b γ |
| 420 | have h_cells : HasSum (fun y : j.range ↦ ∫ x in y +ᵥ F, f ρ x) (∫ x, f ρ x) := by |
| 421 | have h_int : Integrable (f ρ) := (hasCompactSupport_adelicTent_mul ρ d (b * γ.val)).integrable |
| 422 | rw [← hF.sum_restrict] at h_int |
| 423 | simpa only [hF.sum_restrict] using hasSum_integral_measure h_int |
| 424 | -- Each cell is within `R * t` times the tent of radius `r` of its term of `thetaSum d (r / 3) b`. |
| 425 | have h_bound : ‖(∫ x, f ρ x) - thetaSum d (r / 3) b‖ ≤ R * t * thetaSum d r b := |
| 426 | (h_cells.sub (h_sum (r / 3) (by linarith))).norm_le_of_bounded |
| 427 | ((h_sum r hr.le).mul_left (R * t)) <| |
| 428 | norm_setIntegral_vadd_sub_adelicTent_le r d hR ht hr_pos hF_sub hF_meas hF_vol hγ_small hγ_fin |
| 429 | -- Change variables by `b * γ`, of module `l`. |
| 430 | have h_module : ideleModule (b * γ.val) = l := by |
| 431 | rw [map_mul, ideleModule_principal_eq_one, mul_one, hb] |
| 432 | have h_change : ∫ x, adelicTent ρ d x ∂(ENNReal.ofReal l⁻¹ • volume) = ∫ x, f ρ x := by |
| 433 | rw [← h_module] |
| 434 | exact ((measurePreserving_idele_mul (b * γ.val)).hasLaw.integral_comp (by fun_prop)).symm |
| 435 | rw [h_change] |
| 436 | calc |(∫ x, f ρ x) - thetaSum d (r / 3) b| |
| 437 | ≤ R * t * thetaSum d r b := h_bound |
| 438 | _ ≤ R * t * |thetaSum d r b| := mul_le_mul_of_nonneg_left (le_abs_self _) (mul_pos hR ht).le |
| 439 | |
| 440 | /-- The principal ideles are discrete. Let `0 < r < 1` and let `thetaSum d ρ b` be the sum of the |
| 441 | adelic tent of radius `ρ` over the coset of `b` modulo the principal ideles. There are `δ > 0` and |
| 442 | `C` such that for every `l > 0` some number `i` is within `C * l ^ δ * |thetaSum d r b|` of |
| 443 | `thetaSum d (r / 3) b`, for all ideles `b` of module `l`. The bound on `r` makes the tents of radius |
| 444 | `r` and `r / 3` vanish at `0`, so the theta sums may be taken over all of `K`. -/ |
| 445 | lemma exists_abs_sub_thetaSum_le (hr_pos : 0 < r) (hr : r < 1) : |
| 446 | DiscreteTopology (principalIdeles K) ∧ |
| 447 | ∃ δ > (0 : ℝ), ∃ C : ℝ, ∀ l > (0 : ℝ), ∃ i : ℝ, ∀ b : (mixedSpace K)ˣ × (𝔸f K)ˣ, |
| 448 | ideleModule b = l → |i - thetaSum d (r / 3) b| ≤ C * l ^ δ * |thetaSum d r b| := by |
| 449 | classical |
| 450 | -- Take a fundamental domain `F` of volume one for `K` in its adeles. Blichfeldt's lemma moves `b` |
| 451 | -- by a principal idele `γ` to a small `b * γ`; then `thetaSum d (r / 3) b` is a Riemann sum, over |
| 452 | -- the cells `y +ᵥ F`, for an integral of `adelicTent` that depends only on `ideleModule b`. |
| 453 | let j : K →+ mixedSpace K × 𝔸f K := ((mixedEmbedding K).prod (algebraMap K (𝔸f K))).toAddMonoidHom |
| 454 | have : IsAddHaarMeasure (volume : Measure (mixedSpace K × 𝔸f K)) := prod.instIsAddHaarMeasure .. |
| 455 | obtain ⟨R, hR, h_fund⟩ : |
| 456 | ∃ R > (0 : ℝ), HasFundDomain j (closedBall (0 : mixedSpace K) R ×ˢ (Ô K : Set (𝔸f K))) := |
| 457 | exists_hasFundDomain (mixedEmbedding K) (.refl ℝ (mixedSpace K)) (.id volume) fun _ ↦ rfl |
| 458 | have h_disc : DiscreteTopology j.range := h_fund.isCovolOneLattice.toDiscreteTopology |
| 459 | obtain ⟨-, F, hF_sub, hF_meas, hF_vol, hF_uniq⟩ := h_fund |
| 460 | -- A unique `y ∈ K` with `j y + x ∈ F` is a unique element of `j.range`, as `j` is injective. |
| 461 | have hF : IsAddFundamentalDomain j.range F := .mk' hF_meas.nullMeasurableSet fun x ↦ |
| 462 | (j.ofInjective (RingHom.injective _)).existsUnique_congr_right.mp (hF_uniq x) |
| 463 | -- `n` copies of the box of radius `r / 6` have volume above `1 = volume F`. |
| 464 | have h_box_ne_zero : volume (adelicBox d (r / 6)) ≠ 0 := |
| 465 | (isOpen_adelicBox d _).measure_ne_zero volume ⟨0, by simpa [adelicBox] using hr_pos⟩ |
| 466 | obtain ⟨n, hn, hn_vol⟩ : ∃ n : ℕ, 0 < n ∧ 1 < (n : ℝ≥0∞) * volume (adelicBox d (r / 6)) := |
| 467 | exists_nat_pos_mul_gt h_box_ne_zero one_ne_top |
| 468 | refine ⟨discreteTopology_principalIdeles h_disc, (finrank ℚ K : ℝ)⁻¹, by simp [finrank_pos], |
| 469 | R * (n : ℝ) ^ (finrank ℚ K : ℝ)⁻¹, fun l hl ↦ ?_⟩ |
| 470 | let t : ℝ := ((n : ℝ) * l) ^ (finrank ℚ K : ℝ)⁻¹ |
| 471 | refine ⟨∫ x, adelicTent ((r - R * t * r) / 3) d x ∂(ENNReal.ofReal l⁻¹ • volume), fun b hb ↦ ?_⟩ |
| 472 | obtain ⟨γ, hγ_small, hγ_fin⟩ := exists_principal_mul_small r d hF hF_vol hn_vol hb |
| 473 | rw [mul_assoc R ((n : ℝ) ^ _), ← Real.mul_rpow n.cast_nonneg hl.le] |
| 474 | exact abs_integral_sub_thetaSum_le r d hr_pos hr hR (by positivity) h_disc hF_sub hF_meas hF_vol |
| 475 | hF hb hγ_small hγ_fin |
| 476 | |
| 477 | end New.ZetaIntegral |
| 478 | |
| 479 | end IdelicThetaSum |
| 480 | |
| 481 | end |