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.Data.Rat.Cast.OfScientific |
| 4 | import Mathlib.Topology.MetricSpace.Ultra.Pi |
| 5 | public import New.UpperBound.Size.Estimates |
| 6 | public import New.Reduction.Lattices.Colength |
| 7 | public import New.UpperBound.Divisibility.MarkedPrimes |
| 8 | public import New.UpperBound.Kernels.ThetaLiftGauge |
| 9 | import New.UpperBound.Divisibility.ChainDatumExpansion |
| 10 | import New.UpperBound.Divisibility.ChainValuation |
| 11 | import New.UpperBound.Divisibility.ColengthAtLevel |
| 12 | import New.UpperBound.Divisibility.MarkOperator |
| 13 | import New.UpperBound.Divisibility.ValuationAtLevel |
| 14 | import New.UpperBound.Divisibility.ValuationAtNonSplitPrimes |
| 15 | |
| 16 | /-! |
| 17 | # The divisibility of the composite lift at each prime |
| 18 | |
| 19 | This file bounds the gauge of the composite lift `New.Data.compositeLift` at a prime p, for a fixed |
| 20 | embedding ι : ℂ → ℂ_p; for p ≠ N it does so through the expansion `New.Data.restrictedChain` into |
| 21 | chains of `m` lifts. At the exceptional primes it uses the bound of |
| 22 | `New.Data.IsMarked.isOntoUpToColength_scaledHeckeOperator` for the elementary divisors of the |
| 23 | normalised Hecke operators `New.Data.IsMarked.scaledHeckeOperator`. |
| 24 | |
| 25 | A form *has valuation at least* `v` if its gauge at the base point `1` is at most `p ^ (-v)`. The |
| 26 | *a-places* (`New.Data.aPlaces`) are the infinite places ≡ 1 modulo q₀. At a non-split prime `p < x₁` |
| 27 | that is not *exceptional* (`New.Data.IsExceptional`), the loss pays for all collisions between |
| 28 | a-places. For an exceptional prime `p < x₁`, a *full mark* is a choice `Λ` of one prime from each |
| 29 | conjugate pair induced by the a-places; the places *inducing* `Λ` are those that induce a prime of |
| 30 | `Λ`, the *odd* places those that induce the conjugate of one. |
| 31 | |
| 32 | With `m` the number of lifts, `f` the number of infinite places of `E` and `a` the length of a long |
| 33 | row, the exponents below are built from the following numbers. |
| 34 | |
| 35 | * `D.heckeScalingExponent l` is `a` times the number of a-places that induce the prime `l`. |
| 36 | * `D.collisionExponent p`, written `j_p`, is the ceiling of `2 m f a / p`. |
| 37 | * `D.collisionSum p ev` is the sum of `a / p ^ e` over the collisions `(τ, e)` outside the set of |
| 38 | places `ev` (`New.Data.IsCollision`). |
| 39 | |
| 40 | ## Main definitions and results |
| 41 | |
| 42 | * `New.Data.IsWeakChainDatum.gaugeLe_restrictedChain_one`: for p different from N and d, the chain |
| 43 | of lifts keeps integrality. |
| 44 | * `New.Data.IsWeakChainDatum.gaugeLe_restrictedChain_collisionSum`: at a non-split prime `p < x₁` |
| 45 | the bounds for single lifts add up to the gain, less the loss and `m` times the collision sum. |
| 46 | * `New.Data.IsWeakChainDatum.gaugeLe_restrictedChain_of_isMarked`: the bound on the image of the |
| 47 | `m`-th power of the marked Hecke product includes one collision sum per lift. |
| 48 | * `New.Data.IsMarked.isOntoUpToColength_prod_scaledHeckeOperator_pow`: this power keeps the integral |
| 49 | source forms and is onto modulo `p ^ j_p` up to a small colength. |
| 50 | * `New.Data.exists_colengthDvd_gaugeLe_compositeLift`: there is a module of source forms whose |
| 51 | integral members have colength at most l in the integral source forms, with |
| 52 | l ≤ allowedLoss(p) · dim (source forms), and on whose ramified members the composite lift of a |
| 53 | chain datum has valuation at least gain(p) − allowedLoss(p). |
| 54 | The sum of these explicit losses is bounded by `New.Data.sum_allowedLoss_mul_log_le`. |
| 55 | |
| 56 | Notions from other files: |
| 57 | * `New.GaugeLe d c φ`: for every `g`, the p-adic gauge of the value `φ g` at `g * d` is at most `c`. |
| 58 | * `New.ColengthDvd M N z`: the index of `N` in `M` divides `z`, that is, each finite family in `M` |
| 59 | has combinations in `N` by a matrix whose determinant divides `z`. |
| 60 | * `New.IsOntoUpToColength p M n y c`: the endomorphism `y` keeps `M`, and `y (M) + p ^ n • M` has |
| 61 | index dividing `p ^ l` in `M` for some natural number `l ≤ c`. |
| 62 | * `New.Data.allowedLoss`: 2·loss(p) for a non-split prime p < x₁ (`New.Data.loss`); otherwise 2mfb |
| 63 | if p = N, and 0 if not. |
| 64 | * `New.Data.gain`: the divisibility asked of the chain of lifts at p. |
| 65 | |
| 66 | ## Relation to the literature |
| 67 | |
| 68 | For each prime p and twist of conductor prime to p, the chain of theta lifts is divisible by the |
| 69 | predicted power of p, less an error, on a submodule of the ramified source forms whose colength per |
| 70 | dimension is at most that error. The errors times log p have a small sum, which gives the |
| 71 | divisibility side of the bound. p-integrality of single theta lifts is known in the literature. |
| 72 | Related work: X. Zhang, Non-vanishing mod p of theta lifts for (O(2n+1),Mp(4n)), 2022; Berger, |
| 73 | Arithmetic properties of similitude theta lifts, 2009; Prasanna, Integrality of a ratio of Petersson |
| 74 | norms, 2006. |
| 75 | |
| 76 | At an inert prime p pairing two a-places, each lift may lose divisibility. Outside a sparse set of |
| 77 | such p, the chain regains the predicted power of p, up to about one lift's loss, on the image of |
| 78 | scaled Hecke operators above p applied once per lift. Once enlarged by a p-power multiple of all |
| 79 | source forms, this image has small colength. Hecke operators passing through theta lifts, p-power |
| 80 | scaling by weight and p-adapted lifts at ordinary p are known in the literature. Related work: |
| 81 | Rallis, Langlands' functoriality and the Weil representation, 1982; V. Lafforgue, Estimées pour les |
| 82 | valuations p-adiques des valeurs propres des opérateurs de Hecke, 2011; Z. Liu, Test Schwartz |
| 83 | functions at p for theta lifts of Hida families, arXiv 2510.21644, 2025. |
| 84 | -/ |
| 85 | |
| 86 | @[expose] public section |
| 87 | |
| 88 | open Module Finset Submodule Real |
| 89 | |
| 90 | namespace New.GaugeLe |
| 91 | |
| 92 | /-! ## Gauge bounds under sums, scalars and larger exponents -/ |
| 93 | |
| 94 | variable {E n : Type} [Field E] [CMType E] [Fintype n] [DecidableEq n] |
| 95 | {κ : NumberField.InfinitePlace E → ℕ → ℕ} {e : NumberField.InfinitePlace E → ℤ} |
| 96 | {p : ℕ} [hp : Fact p.Prime] [PadicPlace p] {d : Gf E n} |
| 97 | |
| 98 | /-- Gauge bounds can be weakened. If the `p`-adic gauge of every value `φ g` of a form, taken at |
| 99 | `g * d` for a fixed adelic point `d` (`New.GaugeLe`), is at most `p ^ r`, then it is at most |
| 100 | `p ^ r'` for every `r' ≥ r`. -/ |
| 101 | lemma rpow_mono {r r' : ℝ} {φ : AlgForm (E := E) n κ e} (hφ : GaugeLe d (p ^ r) φ) (hr : r ≤ r') : |
| 102 | GaugeLe d (p ^ r') φ := |
| 103 | fun g ↦ (hφ g).trans (rpow_le_rpow_of_exponent_le (mod_cast hp.out.pos) hr) |
| 104 | |
| 105 | /-- The `p`-adic gauge is ultrametric. If, for a fixed adelic point `d` and every `g`, the gauges of |
| 106 | the values of two forms at `g`, taken at `g * d` (`New.GaugeLe`), are at most `c`, then the same |
| 107 | holds for the sum of the two forms. -/ |
| 108 | lemma add {c : ℝ} {φ ψ : AlgForm (E := E) n κ e} (hφ : GaugeLe d c φ) (hψ : GaugeLe d c ψ) : |
| 109 | GaugeLe d c (φ + ψ) := fun g ↦ by |
| 110 | simpa [weylGauge, Matrix.mulVec_add] using |
| 111 | (IsUltrametricDist.norm_add_le_max _ _).trans (max_le (hφ g) (hψ g)) |
| 112 | |
| 113 | /-- Let `c` bound, for a fixed adelic point `d` and every `g`, the `p`-adic gauge of the value `φ g` |
| 114 | at `g * d` (`New.GaugeLe`). Then the values of `a • φ` are bounded in the same sense by `c` times |
| 115 | the `p`-adic absolute value of the complex number `a`. -/ |
| 116 | lemma smul {c : ℝ} {φ : AlgForm (E := E) n κ e} (hφ : GaugeLe d c φ) (a : ℂ) : |
| 117 | GaugeLe d (‖ιₚ a‖ * c) (a • φ) := fun g ↦ by |
| 118 | rw [Submodule.coe_smul, Pi.smul_apply, weylGauge_smul] |
| 119 | exact mul_le_mul_of_nonneg_left (hφ g) (norm_nonneg _) |
| 120 | |
| 121 | /-- Let `p ^ r` bound, for a fixed adelic point `d` and every `g`, the `p`-adic gauge of the value |
| 122 | `φ g` at `g * d` (`New.GaugeLe`), and let `β` be an integer with `β ≤ -r`. Then `p ^ (-β) • φ` has |
| 123 | these gauges at most `1`. -/ |
| 124 | lemma zpow_neg_smul {r : ℝ} {β : ℤ} {φ : AlgForm (E := E) n κ e} (hφ : GaugeLe d (p ^ r) φ) |
| 125 | (hβ : β ≤ -r) : GaugeLe d 1 ((p : ℂ) ^ (-β) • φ) := by |
| 126 | have hp_pos : (0 : ℝ) < p := mod_cast hp.out.pos |
| 127 | have h_norm : ‖ιₚ ((p : ℂ) ^ (-β))‖ = p ^ (β : ℝ) := by simp [norm_p_eq_inv] |
| 128 | have h_smul : GaugeLe d (p ^ (β + r)) ((p : ℂ) ^ (-β) • φ) := by |
| 129 | rw [rpow_add hp_pos, ← h_norm] |
| 130 | exact hφ.smul _ |
| 131 | simpa using h_smul.rpow_mono (r' := 0) (by linarith) |
| 132 | |
| 133 | end New.GaugeLe |
| 134 | |
| 135 | namespace New.Data |
| 136 | |
| 137 | section FixedPrime |
| 138 | |
| 139 | variable {P : Parameters} {D : Data P} {p : ℕ} [hp : Fact p.Prime] [PadicPlace p] |
| 140 | {Λ : Finset (FinPlace D.E)} |
| 141 | |
| 142 | /-! ## The valuation of the chains of lifts of a weak chain datum -/ |
| 143 | |
| 144 | variable {ϑ : D.Twist} {Ψ : D.Translations →₀ ℂ} |
| 145 | |
| 146 | /-- Let `Ψ` be a weak chain datum for the twist `ϑ`: coefficients, subject to integrality and |
| 147 | invariance conditions, of tuples `x` of translations. The datum `translateDatum x j` of the `j`-th |
| 148 | theta lift is the normalised vacuum vector translated by `x j`. That it lies in |
| 149 | `raises 1 1 (p ^ r j)` says that this lift, with both gauges based at the identity, multiplies |
| 150 | `p`-adic gauges by at most `p ^ r j`. Suppose this holds for every `x` in the support of `Ψ` and |
| 151 | `j < D.m`, that |
| 152 | `p ≠ D.N`, and that `p` is prime to `ϑ.normQ`, the product of the norms of the places in the set Q |
| 153 | of `ϑ`. Then `restrictedChain ϑ Ψ`, the combination with coefficients `Ψ` of chains of `D.m` lifts, |
| 154 | sends an integral source form to a form of gauge at most `p ^ ∑ j < D.m, r j`. -/ |
| 155 | lemma IsWeakChainDatum.gaugeLe_restrictedChain_of_mem_raises (hΨ : IsWeakChainDatum ϑ Ψ) |
| 156 | (hQ : p.Coprime ϑ.normQ) (hN : p ≠ D.N) {r : ℕ → ℝ} |
| 157 | (h_raises : ∀ x ∈ Ψ.support, ∀ j < D.m, |
| 158 | D.translateDatum x j ∈ (D.liftKernel ϑ j).raises 1 1 (p ^ r j)) |
| 159 | {v : D.SourceForm} (hv : v ∈ D.integralSourceForms) : |
| 160 | GaugeLe 1 (p ^ ∑ j ∈ range D.m, r j) (restrictedChain ϑ Ψ v) := by |
| 161 | exact GaugeLe.restrictToY D hN (hΨ.gaugeLe_chain hQ (t := 1) (by simp) (d := 1) |
| 162 | h_raises hv.2) |
| 163 | |
| 164 | /-- Let `Ψ` be a weak chain datum for the twist `ϑ`: coefficients, subject to integrality and |
| 165 | invariance conditions, of tuples of translations. Let `p` be a prime prime to the norm of the level |
| 166 | of `ϑ` and different from the level `N` and from `d`, the prime parameter that defines the quadratic |
| 167 | character `χ_K`. Then `restrictedChain ϑ Ψ`, the combination with coefficients `Ψ` of chains of `m` |
| 168 | theta lifts, sends an integral source form `v` to an integral form: in `GaugeLe 1 1`, the first `1` |
| 169 | is the base point, the second the bound on the `p`-adic gauge. -/ |
| 170 | lemma IsWeakChainDatum.gaugeLe_restrictedChain_one (hΨ : IsWeakChainDatum ϑ Ψ) |
| 171 | (hQ : p.Coprime ϑ.normQ) {v : D.SourceForm} |
| 172 | (hv : v ∈ D.integralSourceForms) (hN : p ≠ D.N) (hd : p ≠ P.d) : |
| 173 | GaugeLe 1 1 (restrictedChain ϑ Ψ v) := by |
| 174 | -- The data are standard for `δ = piMBar` and the scale is `star δ`, so each lift multiplies |
| 175 | -- gauges by at most a power of `‖ιₚ d‖⁻¹ = 1`. |
| 176 | have h_norm_d : ‖(P.d : PadicComplex p)‖ = 1 := |
| 177 | ((p.coprime_primes hp.out P.d_prime).2 hd).norm_natCast_eq_one _ |
| 178 | have h_ratio : ‖ιₚ (star (D.piMBar : ℂ))‖ / ‖ιₚ (star (D.piMBar : ℂ) * P.d)‖ = 1 := by |
| 179 | simp [h_norm_d] |
| 180 | have h_raises (x : D.Translations) (hx : x ∈ Ψ.support) (j : ℕ) : |
| 181 | D.translateDatum x j ∈ (D.liftKernel ϑ j).raises 1 1 (p ^ (0 : ℝ)) := by |
| 182 | have h_standard : D.translateDatum x j ∈ (D.liftKernel ϑ j).raises 1 1 |
| 183 | ((‖ιₚ (star (D.piMBar : ℂ))‖ / ‖ιₚ (star (D.piMBar : ℂ) * P.d)‖) ^ |
| 184 | boxes D.columnCount (Fintype.card (D.X (j + 1)))) := |
| 185 | P.mem_raises_of_standardData (c := star D.piMBar) D.piMBar_ne_zero |
| 186 | (hΨ.translateDatum_mem_standardData hQ hN hx j (.inl rfl)) |
| 187 | rwa [h_ratio, one_pow, ← rpow_zero p] at h_standard |
| 188 | have h_chain : GaugeLe 1 (p ^ ∑ _j ∈ range D.m, (0 : ℝ)) (restrictedChain ϑ Ψ v) := |
| 189 | hΨ.gaugeLe_restrictedChain_of_mem_raises hQ hN (fun x hx j _ ↦ h_raises x hx j) hv |
| 190 | simpa using h_chain |
| 191 | |
| 192 | /-- Let `Ψ` be a weak chain datum for the twist `ϑ`, and `p < x₁` a non-split prime |
| 193 | (`IsSmallNonsplit`) prime to the norm of the level of `ϑ`. For an integral source form `v`, the |
| 194 | image under the combination `restrictedChain ϑ Ψ` of chains of `m` theta lifts has valuation at |
| 195 | least `gain p - loss p - m * collisionSum p ∅`. |
| 196 | |
| 197 | Here `gain p` is the divisibility asked of the chain at `p` and `loss p = f a (log b)² / p`, times |
| 198 | `m` if `p ≡ ±1` modulo `m`. -/ |
| 199 | lemma IsWeakChainDatum.gaugeLe_restrictedChain_collisionSum (hΨ : IsWeakChainDatum ϑ Ψ) |
| 200 | (hQ : p.Coprime ϑ.normQ) |
| 201 | {v : D.SourceForm} (hv : v ∈ D.integralSourceForms) (hp_small : D.IsSmallNonsplit p) : |
| 202 | GaugeLe 1 (p ^ (D.m * D.collisionSum p ∅ + D.loss p - D.gain p)) (restrictedChain ϑ Ψ v) := by |
| 203 | obtain ⟨hp_M, hp_N, -⟩ := hp_small.not_dvd_M_mul_N |
| 204 | have hm_pos : (0 : ℝ) < D.m := HasLogBound.pos D |
| 205 | -- As `p` does not divide `D.M`, the product of the two level primes, the data are standard for |
| 206 | -- every `δ`, so lift `j` raises valuations by `divisibilityBound p j ∅`. |
| 207 | have h_raises (x : D.Translations) (hx : x ∈ Ψ.support) (j : ℕ) : |
| 208 | D.translateDatum x j ∈ (D.liftKernel ϑ j).raises 1 1 (p ^ (-D.divisibilityBound p j ∅)) := |
| 209 | D.mem_raises_neg_divisibilityBound hp_small.2 ϑ |
| 210 | (hΨ.translateDatum_mem_standardData hQ hp_N hx j (.inr hp_M)) |
| 211 | have h_lift (j : ℕ) (hj : j ∈ range D.m) : |
| 212 | -D.divisibilityBound p j ∅ ≤ D.collisionSum p ∅ + (D.loss p - D.gain p) / D.m := by |
| 213 | have h_bound : D.gain p / D.m - D.collisionSum p ∅ - D.f * D.logB ^ 2 * (D.a / p) / D.m ≤ |
| 214 | D.divisibilityBound p j ∅ := by |
| 215 | simpa [Finset.inter_empty _] using le_divisibilityBound (mem_range.1 hj) hp_small ∅ |
| 216 | have h_loss : D.f * D.logB ^ 2 * (D.a / p) / D.m ≤ D.loss p / D.m := |
| 217 | div_le_div_of_nonneg_right (D.le_loss p) hm_pos.le |
| 218 | rw [sub_div] |
| 219 | linarith |
| 220 | refine (hΨ.gaugeLe_restrictedChain_of_mem_raises hQ hp_N |
| 221 | (fun x hx j _ ↦ h_raises x hx j) hv).rpow_mono ?_ |
| 222 | calc ∑ j ∈ range D.m, -D.divisibilityBound p j ∅ |
| 223 | ≤ ∑ _j ∈ range D.m, (D.collisionSum p ∅ + (D.loss p - D.gain p) / D.m) := sum_le_sum h_lift |
| 224 | _ = D.m * D.collisionSum p ∅ + D.loss p - D.gain p := by |
| 225 | rw [sum_const, card_range, nsmul_eq_mul] |
| 226 | field |
| 227 | |
| 228 | /-- The crude bound. Let `Ψ` be a weak chain datum for the twist `ϑ`, and `p < x₁` a non-split prime |
| 229 | (`IsSmallNonsplit`) prime to the norm of the level of `ϑ`. For an integral source form `v` and |
| 230 | `j_p = D.collisionExponent p = ⌈2 m f a / p⌉`, the image of `p ^ j_p • v` under the combination |
| 231 | `restrictedChain ϑ Ψ` of chains of `m` theta lifts has valuation at least `gain p - loss p`. -/ |
| 232 | lemma IsWeakChainDatum.gaugeLe_pow_collisionExponent_smul (hΨ : IsWeakChainDatum ϑ Ψ) |
| 233 | (hQ : p.Coprime ϑ.normQ) {v : D.SourceForm} (hv : v ∈ D.integralSourceForms) |
| 234 | (hp_small : D.IsSmallNonsplit p) : |
| 235 | GaugeLe 1 (p ^ (D.loss p - D.gain p)) |
| 236 | (restrictedChain ϑ Ψ ((p : ℂ) ^ D.collisionExponent p • v)) := by |
| 237 | have hp_pos : (0 : ℝ) < p := mod_cast hp.out.pos |
| 238 | -- Every collision `(τ, e)` has `e ≥ 1`, so `j_p` pays for the collisions of all `m` lifts. |
| 239 | have h_paid : D.m * D.collisionSum p ∅ ≤ D.collisionExponent p := by |
| 240 | have h_sum : D.collisionSum p ∅ ≤ 2 * D.f * D.a / p ^ 1 := |
| 241 | collisionSum_le fun h_coll ↦ (mem_positivePartnerExponents.1 h_coll.1).1 |
| 242 | rw [collisionExponent] |
| 243 | grw [h_sum, pow_one, ← Nat.le_ceil] |
| 244 | have h_norm : ‖ιₚ ((p : ℂ) ^ D.collisionExponent p)‖ = p ^ (-D.collisionExponent p : ℝ) := by |
| 245 | simp [norm_p_eq_inv, rpow_neg] |
| 246 | have h_gauge : |
| 247 | GaugeLe 1 (p ^ (-D.collisionExponent p + (D.m * D.collisionSum p ∅ + D.loss p - D.gain p))) |
| 248 | ((p : ℂ) ^ D.collisionExponent p • restrictedChain ϑ Ψ v) := by |
| 249 | rw [rpow_add hp_pos, ← h_norm] |
| 250 | exact (hΨ.gaugeLe_restrictedChain_collisionSum hQ hv hp_small).smul _ |
| 251 | rw [map_smul] |
| 252 | exact h_gauge.rpow_mono (by linarith) |
| 253 | |
| 254 | /-- **Valuation.** Let `Λ` be a marked set of primes above an exceptional prime `p` below `x₁`, |
| 255 | and let `Y` be the product of the scaled Hecke operators at its members. The restricted chain on |
| 256 | `(Y ^ m) v`, for an integral source form `v`, has valuation at least |
| 257 | `gain p - 2 * loss p - m * C`. Each lift pays the collision sum `C` outside the places inducing |
| 258 | `Λ`. A full mark covers every conjugate pair and gives `C = 0`. Equivalently, the `p`-adic |
| 259 | gauge is at most `p ^ (m * C + 2 * loss p - gain p)`. Here `gain p` is the divisibility asked of |
| 260 | the chain. At an exceptional prime `loss p = f a (log b)² / p` since `p ≢ ±1` modulo `m`. -/ |
| 261 | theorem IsWeakChainDatum.gaugeLe_restrictedChain_of_isMarked (hΨ : IsWeakChainDatum ϑ Ψ) |
| 262 | (hQ : p.Coprime ϑ.normQ) {v : D.SourceForm} (hv : v ∈ D.integralSourceForms) |
| 263 | (hΛ : D.IsMarked Λ) : |
| 264 | GaugeLe 1 (p ^ (D.m * D.collisionSum p (placesInducing Λ) + 2 * D.loss p - D.gain p)) |
| 265 | (restrictedChain ϑ Ψ (((Λ.attach.toList.map hΛ.scaledHeckeOperator).prod ^ D.m) v)) := by |
| 266 | have hm_pos : 0 < (D.m : ℝ) := HasLogBound.pos D |
| 267 | let C := D.collisionSum p (placesInducing Λ) |
| 268 | -- Each lift loses C. The surplus at the marked places and the loss allowance pay for the |
| 269 | -- low columns and the transfer exponents. |
| 270 | have h_lift (j : ℕ) (hj : j ∈ range D.m) : |
| 271 | #Λ * D.transferExponent p + liftLoss Λ j ≤ C + (2 * D.loss p - D.gain p) / D.m := by |
| 272 | have h_bound : D.gain p / D.m - C + #(D.aPlaces ∩ placesInducing Λ) * (D.a / D.x₁) - |
| 273 | D.f * D.logB ^ 2 * (D.a / p) / D.m ≤ D.divisibilityBound p j (placesInducing Λ) := by |
| 274 | have h_ne : p ≠ P.d := ne_of_chiK_ne_zero (by simp [hΛ.isExceptional.chiK_eq_neg_one]) |
| 275 | simpa [C, piPrimeValuation_of_ne h_ne] using |
| 276 | le_divisibilityBound (mem_range.1 hj) hΛ.isSmallNonsplit (placesInducing Λ) |
| 277 | have h_low : #Λ * D.transferExponent p + D.ceilLogLifts p * ∑ σ ∈ placesInducing Λ, |
| 278 | D.lowColumns j σ ≤ D.loss p / D.m + #(D.aPlaces ∩ placesInducing Λ) * (D.a / D.x₁) := |
| 279 | hΛ.card_mul_transferExponent_add_sum_lowColumns_le (mem_range.1 hj) |
| 280 | have h_loss : D.f * D.logB ^ 2 * (D.a / p) / D.m ≤ D.loss p / D.m := |
| 281 | div_le_div_of_nonneg_right (D.le_loss p) hm_pos.le |
| 282 | rw [liftLoss, sub_div, mul_div_assoc] |
| 283 | linarith |
| 284 | refine (hΨ.gaugeLe_scaledHeckeOperator_pow hQ hΛ hv).rpow_mono ?_ |
| 285 | calc ∑ j ∈ range D.m, (#Λ * D.transferExponent p + liftLoss Λ j) |
| 286 | ≤ ∑ _j ∈ range D.m, (C + (2 * D.loss p - D.gain p) / D.m) := sum_le_sum h_lift |
| 287 | _ = D.m * D.collisionSum p (placesInducing Λ) + 2 * D.loss p - D.gain p := by |
| 288 | rw [sum_const, card_range, nsmul_eq_mul, mul_add, mul_div_cancel₀ _ hm_pos.ne'] |
| 289 | dsimp [C] |
| 290 | ring |
| 291 | |
| 292 | /-! ## The index of the image of the scaled Hecke operators -/ |
| 293 | |
| 294 | /-- Let `Λ` be a marked set of primes of `E` above the exceptional non-split prime `p < x₁`: it is |
| 295 | disjoint from its conjugate and each of its primes is induced by an a-place. Let |
| 296 | `A_l = heckeScalingExponent l`, which is `a` times the number of a-places that induce `l`, |
| 297 | `j_p = collisionExponent p = ⌈2 m f a / p⌉`, `m` the number of lifts and `f` the number of infinite |
| 298 | places of `E`. Then `m` times the sum over `l ∈ Λ` of `12 A_l / (m p) + j_p / (m ^ 2 f)`, the |
| 299 | colength exponent per dimension of the scaled Hecke operator at `l`, is at most `loss p`, which is |
| 300 | `f a (log b)² / p`, times `m` if `p ≡ ±1` modulo `m`. -/ |
| 301 | lemma IsMarked.mul_sum_heckeScalingExponent_le_loss (hΛ : D.IsMarked Λ) : |
| 302 | D.m * ∑ l ∈ Λ, (12 * D.heckeScalingExponent l / (D.m * p) + |
| 303 | 1 / (D.m ^ 2 * D.f) * D.collisionExponent p : ℝ) ≤ D.loss p := by |
| 304 | have hp_pos : (0 : ℝ) < p := mod_cast hp.out.pos |
| 305 | have hm_pos : (0 : ℝ) < D.m := HasLogBound.pos D |
| 306 | -- Each a-place induces one prime, so the `A_l` add up to at most `a f`. |
| 307 | have h_sum : ∑ l ∈ Λ, heckeScalingExponent l ≤ D.a * D.f := |
| 308 | (sum_heckeScalingExponent Λ).trans_le (Nat.mul_le_mul_left _ (card_le_univ _)) |
| 309 | have h_exponent : (D.collisionExponent p : ℝ) ≤ 2 * D.m * D.f * D.a / p + 1 := by |
| 310 | rw [collisionExponent] |
| 311 | exact (Nat.ceil_lt_add_one (by positivity)).le.trans_eq (by ring) |
| 312 | have h_size : (14 * D.f * D.a + p / D.m : ℝ) ≤ D.f * D.logB ^ 2 * D.a := by |
| 313 | -- The size of `p < x₁`, as an instance for `D.le_of_hasLogBound`. |
| 314 | have hp_size : D.HasLogUpper p D.logX₁ := |
| 315 | D.hasLogUpper_of_le_of_nonneg hΛ.isSmallNonsplit.1.le p.cast_nonneg |
| 316 | exact D.le_of_hasLogBound |
| 317 | calc D.m * ∑ l ∈ Λ, (12 * D.heckeScalingExponent l / (D.m * p) + |
| 318 | 1 / (D.m ^ 2 * D.f) * D.collisionExponent p : ℝ) |
| 319 | = D.m * (12 * (∑ l ∈ Λ, heckeScalingExponent l : ℕ) / (D.m * p) + |
| 320 | #Λ * (1 / (D.m ^ 2 * D.f) * D.collisionExponent p)) := by |
| 321 | rw [sum_add_distrib, ← sum_div, ← mul_sum, sum_const, nsmul_eq_mul, Nat.cast_sum] |
| 322 | _ ≤ D.m * (12 * (D.a * D.f : ℕ) / (D.m * p) + |
| 323 | D.f * (1 / (D.m ^ 2 * D.f) * (2 * D.m * D.f * D.a / p + 1))) := by |
| 324 | gcongr |
| 325 | exact hΛ.card_le |
| 326 | _ = (14 * D.f * D.a + p / D.m) / p := by |
| 327 | push_cast |
| 328 | field |
| 329 | _ ≤ D.f * D.logB ^ 2 * D.a / p := div_le_div_of_nonneg_right h_size hp_pos.le |
| 330 | _ ≤ D.loss p := (mul_div_assoc _ _ _).trans_le (D.le_loss p) |
| 331 | |
| 332 | /-- **Colength.** Let `Λ` be a marked set of primes above the exceptional non-split prime `p < x₁`, |
| 333 | `Y` the product over `l ∈ Λ` of the Hecke operators at `l` scaled by `p ^ heckeScalingExponent l`, |
| 334 | and `M` the module of integral source forms. Then `Y ^ m`, with `m` the number of lifts, keeps `M`, |
| 335 | and the index of `Y ^ m M + p ^ j_p M` in `M` divides `p ^ c` for some natural number |
| 336 | `c ≤ loss p * dim (source forms)`. -/ |
| 337 | theorem IsMarked.isOntoUpToColength_prod_scaledHeckeOperator_pow (hΛ : D.IsMarked Λ) : |
| 338 | IsOntoUpToColength ↑p D.integralSourceForms (D.collisionExponent p) |
| 339 | ((Λ.attach.toList.map hΛ.scaledHeckeOperator).prod ^ D.m) |
| 340 | (D.loss p * finrank ℂ D.SourceForm) := by |
| 341 | -- Exponents add under products, and `Y ^ m` is the product over `m` copies of `Λ`. |
| 342 | let L : List Λ := (List.replicate D.m Λ.attach.toList).flatten |
| 343 | let cost (l : FinPlace D.E) : ℝ := |
| 344 | 12 * D.heckeScalingExponent l / (D.m * p) + 1 / (D.m ^ 2 * D.f) * D.collisionExponent p |
| 345 | have h_onto : IsOntoUpToColength ↑p D.integralSourceForms (D.collisionExponent p) |
| 346 | (L.map hΛ.scaledHeckeOperator).prod (L.map fun l : Λ ↦ cost l * finrank ℂ D.SourceForm).sum := |
| 347 | IsOntoUpToColength.prod L fun l _ ↦ hΛ.isOntoUpToColength_scaledHeckeOperator |
| 348 | (D.collisionExponent p) l.property |
| 349 | have h_prod : |
| 350 | (L.map hΛ.scaledHeckeOperator).prod = (Λ.attach.toList.map hΛ.scaledHeckeOperator).prod ^ |
| 351 | D.m := by |
| 352 | simp [L] |
| 353 | have h_cost : (L.map fun l : Λ ↦ cost l * finrank ℂ D.SourceForm).sum = |
| 354 | (D.m * ∑ l ∈ Λ, cost l) * finrank ℂ D.SourceForm := by |
| 355 | rw [← Λ.sum_attach, mul_assoc, sum_mul, ← sum_map_toList] |
| 356 | simp [L, List.sum_flatten] |
| 357 | rw [h_prod, h_cost] at h_onto |
| 358 | obtain ⟨h_stable, c, hc, h_index⟩ := h_onto |
| 359 | exact ⟨h_stable, c, hc.trans |
| 360 | (mul_le_mul_of_nonneg_right hΛ.mul_sum_heckeScalingExponent_le_loss (Nat.cast_nonneg _)), |
| 361 | h_index⟩ |
| 362 | |
| 363 | omit [PadicPlace p] in |
| 364 | /-- A prime `p` lies in `D.smallNonsplitPrimes` if and only if `p < x₁` and `χ_K(p) ≠ 1`. -/ |
| 365 | lemma mem_smallNonsplitPrimes_iff_isSmallNonsplit : |
| 366 | p ∈ D.smallNonsplitPrimes ↔ D.IsSmallNonsplit p := by |
| 367 | simp [Nat.lt_ceil, hp.out] |
| 368 | |
| 369 | omit [PadicPlace p] in |
| 370 | /-- A prime `p` outside `D.smallNonsplitPrimes` splits in `K`, that is `χ_K(p) = 1`, or is at least |
| 371 | `x₁`. -/ |
| 372 | lemma chiK_eq_one_or_le_of_notMem_smallNonsplitPrimes (h_notMem : p ∉ D.smallNonsplitPrimes) : |
| 373 | chiK P.d p = 1 ∨ D.x₁ ≤ p := by |
| 374 | rwa [mem_smallNonsplitPrimes_iff_isSmallNonsplit, not_and_or, not_lt, not_ne_iff, or_comm] |
| 375 | at h_notMem |
| 376 | |
| 377 | omit [PadicPlace p] in |
| 378 | /-- Outside the small non-split primes and the level prime, neither a gain nor a loss occurs. -/ |
| 379 | lemma gain_allowedLoss_eq_zero (h_notMem : p ∉ D.smallNonsplitPrimes) (hN : p ≠ D.N) : |
| 380 | D.gain p = 0 ∧ D.allowedLoss p = 0 := |
| 381 | ⟨D.gain_eq_zero (chiK_eq_one_or_le_of_notMem_smallNonsplitPrimes h_notMem), |
| 382 | by simp [allowedLoss, h_notMem, hN]⟩ |
| 383 | |
| 384 | open scoped Pointwise in |
| 385 | /-- Let `Ψ` be a chain datum for the twist `ϑ`, with `p` prime to the norm of the level of `ϑ`. Let |
| 386 | `Λ` be a full mark: a set of primes above the exceptional non-split prime `p < x₁`, disjoint from |
| 387 | its conjugate and induced by a-places, that contains the prime of each a-place or its conjugate. Let |
| 388 | `Y` be the product over `l ∈ Λ` of the Hecke operators at `l` scaled by |
| 389 | `p ^ heckeScalingExponent l`, `M` the module of integral source forms over the ring `embValRing` of |
| 390 | complex numbers that are `p`-integral under `ιₚ`, and `j_p = collisionExponent p = ⌈2 m f a / p⌉`. |
| 391 | |
| 392 | The composite lift passes a source form through `m` theta lifts with the glued tensor of `Ψ` as data |
| 393 | and restricts the result from `X_m` to `Y_m`. For a source form in `Y ^ m M + p ^ j_p M` it has |
| 394 | valuation at least `gain p - 2 * loss p`. -/ |
| 395 | lemma IsChainDatum.gaugeLe_compositeLift_of_isFullMark (hΨ : IsChainDatum ϑ Ψ) |
| 396 | (hQ : p.Coprime ϑ.normQ) (hΛ : D.IsFullMark Λ) {φ : D.SourceForm} |
| 397 | (hφ : φ ∈ D.integralSourceForms.map ((Λ.attach.toList.map hΛ.scaledHeckeOperator).prod ^ D.m) ⊔ |
| 398 | (p : embValRing) ^ D.collisionExponent p • D.integralSourceForms) : |
| 399 | GaugeLe 1 (p ^ (2 * D.loss p - D.gain p)) (compositeLift ϑ Ψ φ) := by |
| 400 | have h_loss : 0 ≤ D.loss p := le_trans (by positivity) (D.le_loss p) |
| 401 | obtain ⟨Ψ', hΨ', h_eq⟩ : ∃ Ψ' : D.Translations →₀ ℂ, IsWeakChainDatum ϑ Ψ' ∧ |
| 402 | ∀ φ : D.SourceForm, compositeLift ϑ Ψ φ = restrictedChain ϑ Ψ' φ := |
| 403 | hΨ.exists_isWeakChainDatum_compositeLift_eq |
| 404 | obtain ⟨u, hu, v, hv, rfl⟩ : ∃ u ∈ D.integralSourceForms, ∃ v ∈ D.integralSourceForms, |
| 405 | ((Λ.attach.toList.map hΛ.scaledHeckeOperator).prod ^ D.m) u + |
| 406 | (p : ℂ) ^ D.collisionExponent p • v = φ := by |
| 407 | obtain ⟨_, ⟨u, hu, rfl⟩, _, ⟨v, hv, rfl⟩, h_sum⟩ := mem_sup.1 hφ |
| 408 | exact ⟨u, hu, v, hv, h_sum⟩ |
| 409 | rw [h_eq, map_add] |
| 410 | have h_mark := hΨ'.gaugeLe_restrictedChain_of_isMarked hQ hu hΛ.toIsMarked |
| 411 | rw [hΛ.collisionSum_placesInducing_eq_zero, mul_zero, zero_add] at h_mark |
| 412 | exact h_mark.add |
| 413 | ((hΨ'.gaugeLe_pow_collisionExponent_smul hQ hv hΛ.isSmallNonsplit).rpow_mono (by linarith)) |
| 414 | |
| 415 | end FixedPrime |
| 416 | |
| 417 | /-- The divisibility at one prime. There are a natural number `l ≤ allowedLoss p * dim`, where `dim` |
| 418 | is the dimension of the space of source forms, and a module `S` of source forms whose integral |
| 419 | members have index dividing `p ^ l` in the integral source forms (`New.ColengthDvd`), such that for |
| 420 | every twist `ϑ` of level prime to `p` and every chain datum `Ψ` (`New.Data.IsChainDatum`) the |
| 421 | composite lift of a ramified source form in `S` has valuation at least `gain p - allowedLoss p`. -/ |
| 422 | theorem exists_colengthDvd_gaugeLe_compositeLift {P : Parameters} {D : Data P} {p : ℕ} |
| 423 | [hp : Fact p.Prime] [PadicPlace p] : |
| 424 | ∃ (l : ℕ) (S : Submodule embValRing D.SourceForm), |
| 425 | l ≤ D.allowedLoss p * finrank ℂ D.SourceForm ∧ |
| 426 | ColengthDvd D.integralSourceForms S (p ^ l) ∧ |
| 427 | ∀ (ϑ : D.Twist) (Ψ : D.Translations →₀ ℂ), IsChainDatum ϑ Ψ → p.Coprime ϑ.normQ → |
| 428 | ∀ φ ∈ S, φ ∈ D.ramifiedSourceForms → |
| 429 | GaugeLe 1 (p ^ (D.allowedLoss p - D.gain p)) (compositeLift ϑ Ψ φ) := by |
| 430 | -- There are three cases. If `p ≠ N` is split or at least `x₁`, or if `p < x₁` is non-split and |
| 431 | -- not exceptional, every integral source form works: away from `N`, a chain datum expands into |
| 432 | -- a weak chain datum. The other two cases are `p < x₁` exceptional and `p = N`. |
| 433 | have h_loss : 0 ≤ D.loss p := le_trans (by positivity) (D.le_loss p) |
| 434 | have h_cases : ((p ∉ D.smallNonsplitPrimes ∧ p ≠ D.N) ∨ |
| 435 | (p ∈ D.smallNonsplitPrimes ∧ ¬D.IsExceptional p)) ∨ |
| 436 | (p ∈ D.smallNonsplitPrimes ∧ D.IsExceptional p) ∨ (p ∉ D.smallNonsplitPrimes ∧ p = D.N) := by |
| 437 | tauto |
| 438 | obtain h_full | ⟨h_mem, h_exc⟩ | ⟨h_mem, hN⟩ := h_cases |
| 439 | · -- For split or large primes away from `N`, and for non-exceptional small primes, every |
| 440 | -- integral source form satisfies the bound after expansion into a weak chain datum. |
| 441 | refine ⟨0, D.integralSourceForms, |
| 442 | by simpa using mul_nonneg (D.allowedLoss_nonneg p) (Nat.cast_nonneg _), |
| 443 | .of_le le_rfl, fun ϑ Ψ hΨ hQ φ hφ _ ↦ ?_⟩ |
| 444 | obtain ⟨Ψ', hΨ', h_eq⟩ := hΨ.exists_isWeakChainDatum_compositeLift_eq |
| 445 | rw [h_eq] |
| 446 | obtain ⟨h_mem, hN⟩ | ⟨h_mem, h_exc⟩ := h_full |
| 447 | · obtain ⟨h_gain, h_loss_zero⟩ := gain_allowedLoss_eq_zero h_mem hN |
| 448 | have hd : p ≠ P.d := by |
| 449 | rintro rfl |
| 450 | exact h_mem (mem_smallNonsplitPrimes_iff_isSmallNonsplit.2 |
| 451 | ⟨D.lt_of_hasLogBound, by simp [chiK, ZMod.natCast_self]⟩) |
| 452 | rw [h_gain, h_loss_zero, sub_zero, rpow_zero] |
| 453 | exact hΨ'.gaugeLe_restrictedChain_one hQ hφ hN hd |
| 454 | · rw [allowedLoss, ite_eq_left h_mem] |
| 455 | have h_nonsplit := mem_smallNonsplitPrimes_iff_isSmallNonsplit.1 h_mem |
| 456 | have h_collision_budget := mul_collisionSum_le_loss h_nonsplit h_exc |
| 457 | exact (hΨ'.gaugeLe_restrictedChain_collisionSum hQ hφ h_nonsplit).rpow_mono (by linarith) |
| 458 | · -- `p < x₁` is exceptional: for a full mark `Λ` with operator `Y`, the module is |
| 459 | -- `Y ^ m M + p ^ j_p M`, where `M` is the module of integral source forms. |
| 460 | rw [allowedLoss, ite_eq_left h_mem] |
| 461 | obtain ⟨Λ, hΛ⟩ : ∃ Λ : Finset (FinPlace D.E), D.IsFullMark Λ := |
| 462 | D.exists_isFullMark (mem_smallNonsplitPrimes_iff_isSmallNonsplit.1 h_mem).1 h_exc |
| 463 | -- Trade collision loss in valuation for the colength of this submodule. |
| 464 | obtain ⟨-, l, hl, h_colength⟩ : |
| 465 | IsOntoUpToColength ↑p D.integralSourceForms (D.collisionExponent p) |
| 466 | ((Λ.attach.toList.map hΛ.scaledHeckeOperator).prod ^ D.m) |
| 467 | (D.loss p * finrank ℂ D.SourceForm) := |
| 468 | hΛ.isOntoUpToColength_prod_scaledHeckeOperator_pow |
| 469 | have h_colength_budget : |
| 470 | D.loss p * finrank ℂ D.SourceForm ≤ 2 * D.loss p * finrank ℂ D.SourceForm := by |
| 471 | gcongr |
| 472 | linarith |
| 473 | exact ⟨l, _, hl.trans h_colength_budget, h_colength, fun ϑ Ψ hΨ hQ φ hφ _ ↦ |
| 474 | hΨ.gaugeLe_compositeLift_of_isFullMark hQ hΛ hφ⟩ |
| 475 | · -- `p = N`: the module consists of the source forms in `upIntegralForms`, and `x₁ ≤ N` makes the |
| 476 | -- gain zero. |
| 477 | rw [allowedLoss, ite_eq_right h_mem, ite_eq_left hN] |
| 478 | subst hN |
| 479 | obtain ⟨l, hl, h_colength⟩ : ∃ l : ℕ, l ≤ D.m * D.f * D.b * finrank ℂ D.SourceForm ∧ |
| 480 | ColengthDvd (integralFormsAt D.SourceForm 1) D.upIntegralForms (D.N ^ l) := |
| 481 | D.exists_colengthDvd_upIntegralForms_pow |
| 482 | have h_colength_budget : |
| 483 | D.m * D.f * D.b * finrank ℂ D.SourceForm ≤ 2 * D.m * D.f * D.b * finrank ℂ |
| 484 | D.SourceForm := by |
| 485 | gcongr |
| 486 | linarith |
| 487 | refine ⟨l, D.upIntegralForms.comap (D.SourceForm.subtype.restrictScalars embValRing), |
| 488 | hl.trans h_colength_budget, h_colength.comap _ le_rfl fun _ _ ↦ mem_comap.2, |
| 489 | fun ϑ Ψ hΨ _ φ hφ h_ram ↦ ?_⟩ |
| 490 | rw [D.gain_eq_zero (.inr D.le_of_hasLogBound), sub_zero] |
| 491 | exact D.gaugeLe_compositeLift_at_N hΨ h_ram hφ |
| 492 | |
| 493 | end New.Data |