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.Ring.IsFormallyReal |
| 4 | import Mathlib.Data.Rat.Cast.OfScientific |
| 5 | public import New.OneLift.HeckeValues.TwistedRatio |
| 6 | import New.OneLift.ComparisonOperator.ExchangeData |
| 7 | |
| 8 | /-! |
| 9 | # Ratios of Hecke values and heights of functions of the twist |
| 10 | |
| 11 | This file treats functions of an `m`-fold twist `ϑ` with modulus Q. Here `ϖ` generates the product |
| 12 | of the chosen places, and `D.twistModulus ϑ e` is the modulus `ϖ ^ e Q`, with exponent e at the |
| 13 | chosen places and 1 at the places of Q. It defines the ratios of Hecke values and the absolute |
| 14 | value of a function of the twist up to a constant and a power of the norm of Q. Heights are |
| 15 | stated with `TauCeti.PrimePadicIso.HeightLe y c`: the family y, indexed by the ι : ℂ ≅ ℚ̄_l, has |
| 16 | height at most c. |
| 17 | |
| 18 | ## Main definitions and results |
| 19 | |
| 20 | * `New.Data.lRatioProd`, `New.Data.HasAbsUpToNormPower`: ratios of Hecke values, and the absolute |
| 21 | value of a function of the twist up to a constant and a power of the norm of Q. |
| 22 | * `New.Data.CriticalPair.lValueProd_mul_inv_eq`, `New.Data.CriticalPair.isTameFor_mul`, |
| 23 | `New.Data.CriticalPair.isTameFor_mul_inv`: for a ramified pair with character ν and a twist ξ, |
| 24 | the character νξ and its inverse are tame, and the `L`-value product of `(ν ξ)⁻¹` is expressed |
| 25 | by the ratios of Hecke values. |
| 26 | |
| 27 | Notions from other files: |
| 28 | * `New.Data.MFoldTwist`: a twist ϑ whose tame part has ψ_wⁿ non-trivial for all w in Q and |
| 29 | 1 ≤ n ≤ m. |
| 30 | * `New.Data.CriticalPair`: an integer 1 ≤ z ≤ t and a character ν of weight −c, z ≤ c ≤ 4b, with |
| 31 | tame part supported on the chosen places. |
| 32 | -/ |
| 33 | |
| 34 | @[expose] public section |
| 35 | |
| 36 | noncomputable section |
| 37 | |
| 38 | namespace New.Data |
| 39 | |
| 40 | open Finset Fintype Exchange Rows Modulus MulChar |
| 41 | |
| 42 | variable {P : Parameters} {D : Data P} {c c' : D.MFoldTwist → ℂ} |
| 43 | |
| 44 | /-- The residue ring of the modulus ϖ^e·Q attached to ϑ, with (ϖ) the product of the chosen places, |
| 45 | has order (∏ N w)^e · ∏_{w ∈ Q} N w, the first product running over the chosen places w. -/ |
| 46 | lemma card_residueRing_twistModulus (e : ℕ) (ϑ : D.TameChar) : |
| 47 | Fintype.card (D.twistModulus ϑ e).ResidueRing = |
| 48 | (∏ i : (i : Fin 2) × D.ChosenPlace i, (D.chosenPlace i).q) ^ e * ϑ.normQ := by |
| 49 | -- the places of `Q` in `D.levelPlaces ϑ` are the elements of `ϑ.Q` |
| 50 | have h_twist : |
| 51 | ∏ i : (D.levelPlaces ϑ).TwistIndex, ((D.levelPlaces ϑ).twistPlace i).q = ϑ.normQ := |
| 52 | prod_coe_sort ϑ.Q FinPlace.q |
| 53 | rw [LevelPlaces.card_levelModulus_residueRing, h_twist] |
| 54 | rfl |
| 55 | |
| 56 | section Moduli |
| 57 | |
| 58 | variable {f f' : D.MFoldTwist → ℝ} |
| 59 | |
| 60 | variable (D) in |
| 61 | /-- The product over `1 ≤ z ≤ s` of the ratios `|L^{MQ}(z, (ν ϑ)⁻¹) / L^M(z, ν⁻¹)|` of Hecke values, |
| 62 | where `L^M` omits the chosen places and their conjugates, and `L^{MQ}` also the places of the |
| 63 | modulus `Q` of `ϑ` and their conjugates. -/ |
| 64 | noncomputable def lRatioProd (ν : AutChar D.E) (s : ℕ) (ϑ : D.TameChar) : ℝ := |
| 65 | ∏ z ∈ Icc 1 s, ‖(ν * ϑ.toAutChar)⁻¹.L ({w : FinPlace D.E | D.IsChosen w} ∪ ϑ.Q) z‖ / |
| 66 | ‖ν⁻¹.L {w : FinPlace D.E | D.IsChosen w} z‖ |
| 67 | |
| 68 | /-- The character `ν` of a pair and its inverse have the same `L`-function away from the chosen |
| 69 | places and their conjugates. -/ |
| 70 | lemma CriticalPair.L_inv (p : D.CriticalPair) : |
| 71 | p.character⁻¹.L {w : FinPlace D.E | D.IsChosen w} = |
| 72 | p.character.L {w : FinPlace D.E | D.IsChosen w} := |
| 73 | p.hasWeight.L_inv p.tamePart_eq_one |
| 74 | |
| 75 | lemma lRatioProd_nonneg (ν : AutChar D.E) (s : ℕ) (ϑ : D.TameChar) : 0 ≤ D.lRatioProd ν s ϑ := |
| 76 | prod_nonneg fun _ _ ↦ div_nonneg (norm_nonneg _) (norm_nonneg _) |
| 77 | |
| 78 | /-- For a pair `p = (ν, z)`, the number `lRatioProd` is the product over `1 ≤ i ≤ z` of the ratios |
| 79 | `CriticalPair.ratio` `= |L(i, (ν ϑ)⁻¹)| / |L(i, ν⁻¹)|` of the pairs `p.lowerPoint i = (ν, i)`; the |
| 80 | sign argument of `CriticalPair.ratio` has its default value `1`. -/ |
| 81 | lemma CriticalPair.ofReal_lRatioProd (p : D.CriticalPair) (ϑ : D.TameChar) : |
| 82 | (D.lRatioProd p.character p.z ϑ : ℂ) = ∏ z ∈ Icc 1 p.z, (p.lowerPoint z).ratio ϑ := by |
| 83 | rw [lRatioProd, Complex.ofReal_prod] |
| 84 | exact prod_congr rfl fun z hz ↦ by simp [CriticalPair.ratio, CriticalPair.lowerPoint, |
| 85 | mem_Icc.1 hz] |
| 86 | |
| 87 | /-- For a critical pair `p` (a character `ν = p.character` and an integer `z = p.z`) and a tame |
| 88 | character `ϑ` with places `ϑ.Q`, the number `lValueProd` up to `z` for `(ν ϑ)⁻¹` and the chosen |
| 89 | places together with `ϑ.Q` is a product of three factors. They are `lValueProd` for `ν` and the |
| 90 | chosen places, `ϑ.normQ ^ z ^ 2`, and `D.lRatioProd ν z ϑ ^ 2`, the square of the product of ratios |
| 91 | of Hecke L-values. -/ |
| 92 | lemma CriticalPair.lValueProd_mul_inv_eq (p : D.CriticalPair) (ϑ : D.TameChar) : |
| 93 | lValueProd ({w : FinPlace D.E | D.IsChosen w} ∪ ϑ.Q) (p.character * ϑ.toAutChar)⁻¹ p.z = |
| 94 | lValueProd {w : FinPlace D.E | D.IsChosen w} p.character p.z * (ϑ.normQ : ℝ) ^ p.z ^ 2 * |
| 95 | D.lRatioProd p.character p.z ϑ ^ 2 := by |
| 96 | have h_inv : lValueProd {w : FinPlace D.E | D.IsChosen w} p.character⁻¹ p.z = |
| 97 | lValueProd {w : FinPlace D.E | D.IsChosen w} p.character p.z := by simp [lValueProd, p.L_inv] |
| 98 | have h_eq : |
| 99 | (lValueProd ({w : FinPlace D.E | D.IsChosen w} ∪ ϑ.Q) (p.character * ϑ.toAutChar)⁻¹ p.z : ℂ) = |
| 100 | (ϑ.normQ : ℂ) ^ p.z ^ 2 * |
| 101 | (lValueProd {w : FinPlace D.E | D.IsChosen w} p.character p.z * |
| 102 | (D.lRatioProd p.character p.z ϑ : ℂ) ^ 2) := by |
| 103 | simpa [prod_pow, ← p.ofReal_lRatioProd, h_inv] using p.lValueProd_eq_mul_prod_ratio_sq 1 ϑ |
| 104 | rw [mul_left_comm, ← mul_assoc] at h_eq |
| 105 | exact_mod_cast h_eq |
| 106 | |
| 107 | /-- At the powers of the trivial twist the product of the ratios of Hecke values is `1`. -/ |
| 108 | lemma CriticalPair.lRatioProd_one_pow (p : D.CriticalPair) (n : ℕ) : |
| 109 | D.lRatioProd p.character p.z ((1 : D.MFoldTwist).pow n) = 1 := by |
| 110 | refine prod_eq_one fun z hz ↦ ?_ |
| 111 | -- the ratio at the trivial twist is `L / L`, and it is not zero |
| 112 | have h_ne : p.character⁻¹.L {w : FinPlace D.E | D.IsChosen w} z ≠ 0 := by |
| 113 | simpa [CriticalPair.ratio, CriticalPair.lowerPoint, mem_Icc.1 hz, TameChar.pow, |
| 114 | toAutChar_one_and_toTwist_one_and_Q_one] |
| 115 | using (p.lowerPoint z).ratio_ne_zero ((1 : D.MFoldTwist).pow n) 1 |
| 116 | simp [TameChar.pow, toAutChar_one_and_toTwist_one_and_Q_one, h_ne] |
| 117 | |
| 118 | variable (D c f) in |
| 119 | /-- `c` has absolute value `f` up to a norm power: `‖c ϑ‖² = C (Nm Q)ᵏ (f ϑ)²` for all `m`-fold |
| 120 | twists `ϑ`, with `Q` the modulus of `ϑ` and with a real `C` and an integer `k` that do not depend on |
| 121 | `ϑ`. The case `C = 0`, where `c` vanishes for all twists, is allowed. -/ |
| 122 | def HasAbsUpToNormPower : Prop := |
| 123 | ∃ (C : ℝ) (k : ℤ), ∀ ϑ : D.MFoldTwist, ‖c ϑ‖ ^ 2 = C * (ϑ.normQ : ℝ) ^ k * f ϑ ^ 2 |
| 124 | |
| 125 | /-- If `c` has absolute value `f` up to a norm power and `c'` has absolute value `f'` up to a norm |
| 126 | power, then `c * c'` has absolute value `f * f'` up to a norm power. -/ |
| 127 | lemma HasAbsUpToNormPower.mul (hcf : D.HasAbsUpToNormPower c f) |
| 128 | (hcf' : D.HasAbsUpToNormPower c' f') : D.HasAbsUpToNormPower (c * c') (f * f') := by |
| 129 | obtain ⟨C, k, hc⟩ := hcf |
| 130 | obtain ⟨C', k', hc'⟩ := hcf' |
| 131 | refine ⟨C * C', k + k', fun ϑ ↦ ?_⟩ |
| 132 | have h_ne : (ϑ.normQ : ℝ) ≠ 0 := by |
| 133 | simp [prod_eq_zero_iff, IsDedekindDomain.HeightOneSpectrum.ne_bot] |
| 134 | rw [Pi.mul_apply, Pi.mul_apply, norm_mul, mul_pow, hc, hc', zpow_add₀ h_ne] |
| 135 | ring |
| 136 | |
| 137 | /-- A function of the twist whose squared norm is a constant times a power of the norm of `𝔪 = ϖᵉ Q` |
| 138 | has absolute value `1` up to a norm power. -/ |
| 139 | lemma HasAbsUpToNormPower.of_norm_sq_eq_mul_card_zpow (e : ℕ) (C : ℝ) (k : ℤ) |
| 140 | (hc : ∀ ϑ : D.MFoldTwist, ‖c ϑ‖ ^ 2 = C * card (D.twistModulus ϑ e).ResidueRing ^ k) : |
| 141 | D.HasAbsUpToNormPower c 1 := by |
| 142 | refine ⟨C * (((∏ i, (D.chosenPlace i).q) ^ e : ℕ) : ℝ) ^ k, k, fun ϑ ↦ ?_⟩ |
| 143 | simp [hc, card_residueRing_twistModulus, mul_zpow, mul_assoc] |
| 144 | |
| 145 | lemma HasAbsUpToNormPower.one : D.HasAbsUpToNormPower 1 1 := ⟨1, 0, by simp⟩ |
| 146 | |
| 147 | lemma HasAbsUpToNormPower.const (a : ℂ) : D.HasAbsUpToNormPower (fun _ : D.MFoldTwist ↦ a) 1 := |
| 148 | ⟨‖a‖ ^ 2, 0, by simp⟩ |
| 149 | |
| 150 | lemma HasAbsUpToNormPower.inv (h : D.HasAbsUpToNormPower c f) : D.HasAbsUpToNormPower c⁻¹ f⁻¹ := by |
| 151 | obtain ⟨C, k, hc⟩ := h |
| 152 | exact ⟨C⁻¹, -k, fun ϑ ↦ by simp [hc, zpow_neg, mul_comm]⟩ |
| 153 | |
| 154 | /-- If each `γ a` has absolute value `F a` up to a norm power, then the product of the `γ a` has as |
| 155 | absolute value up to a norm power the product of the `F a`. -/ |
| 156 | lemma HasAbsUpToNormPower.prod {A : Type} {s : Finset A} {γ : A → D.MFoldTwist → ℂ} |
| 157 | {F : A → D.MFoldTwist → ℝ} (h : ∀ a ∈ s, D.HasAbsUpToNormPower (γ a) (F a)) : |
| 158 | D.HasAbsUpToNormPower (∏ a ∈ s, γ a) (∏ a ∈ s, F a) := by |
| 159 | induction s using Finset.cons_induction with |
| 160 | | empty => simpa using HasAbsUpToNormPower.one |
| 161 | | cons a s ha ih => |
| 162 | simpa only [prod_cons] using |
| 163 | (h a (mem_cons_self a s)).mul (ih fun b hb ↦ h b (mem_cons_of_mem hb)) |
| 164 | |
| 165 | /-- Let `c` and `f` be a complex and a real function of the `m`-fold twist `ϑ`, and write |
| 166 | `N(Q) = ϑ.normQ` for the norm of the modulus `Q` of `ϑ`. Suppose `c` has absolute value `f` up to a |
| 167 | norm power, that is `‖c ϑ‖² = C N(Q)ᵏ (f ϑ)²` with `C` and `k` independent of `ϑ`, and that `f ≥ 0`, |
| 168 | `f 1 = 1` and `c 1 ≠ 0` at the trivial twist `1`. Then there is an integer `e` with |
| 169 | `‖c ϑ / c 1‖ = N(Q) ^ (e / 2) * f ϑ` for all `ϑ`. -/ |
| 170 | lemma HasAbsUpToNormPower.exists_norm_div_eq {c : D.MFoldTwist → ℂ} {f : D.MFoldTwist → ℝ} |
| 171 | (h_abs : D.HasAbsUpToNormPower c f) (hf_one : f 1 = 1) (hf : ∀ ϑ : D.MFoldTwist, 0 ≤ f ϑ) |
| 172 | (hc : c 1 ≠ 0) : |
| 173 | ∃ e : ℤ, ∀ ϑ : D.MFoldTwist, ‖c ϑ / c 1‖ = (ϑ.normQ : ℝ) ^ (e / 2 : ℝ) * f ϑ := by |
| 174 | obtain ⟨C, k, h_norm⟩ := h_abs |
| 175 | have hC : ‖c 1‖ ^ 2 = C := by simp [h_norm, hf_one, toAutChar_one_and_toTwist_one_and_Q_one] |
| 176 | refine ⟨k, fun ϑ ↦ ?_⟩ |
| 177 | have h_sq : ((ϑ.normQ : ℝ) ^ (k / 2 : ℝ)) ^ 2 = (ϑ.normQ : ℝ) ^ k := by |
| 178 | rw [← Real.rpow_natCast, ← Real.rpow_mul (Nat.cast_nonneg _), Nat.cast_ofNat, |
| 179 | div_mul_cancel₀ _ two_ne_zero, Real.rpow_intCast] |
| 180 | refine (pow_left_inj₀ (norm_nonneg _) (mul_nonneg (by positivity) (hf ϑ)) two_ne_zero).1 ?_ |
| 181 | rw [norm_div, div_pow, div_eq_iff (pow_ne_zero 2 (norm_ne_zero_iff.2 hc)), h_norm ϑ, mul_pow, |
| 182 | h_sq, hC] |
| 183 | ring |
| 184 | |
| 185 | /-- Let `p = (ν, z)` be a critical pair, `e ≠ 0`, and `c` a complex function of the `m`-fold twist |
| 186 | `ϑ`. Write `Q` for the modulus of `ϑ` and `𝔪 = ϖᵉ Q`, with `(ϖ)` the product of the chosen places. |
| 187 | Suppose `‖c ϑ‖²` is a constant `C` times `lValueProd` up to `z` for `(ν ϑⁿ)⁻¹` and the places of |
| 188 | `𝔪`. Then `‖c ϑ‖² = C' N(Q)ᵏ (f ϑ)²` with `C'` and `k` independent of `ϑ`, where `f ϑ` is the |
| 189 | product `lRatioProd` of the ratios of Hecke values at `ϑⁿ`. -/ |
| 190 | lemma CriticalPair.hasAbsUpToNormPower_of_norm_sq_eq_lValueProd {c : D.MFoldTwist → ℂ} |
| 191 | (p : D.CriticalPair) (e : ℕ) [NeZero e] (n : ℕ) {C : ℝ} |
| 192 | (hc : ∀ ϑ : D.MFoldTwist, ‖c ϑ‖ ^ 2 = |
| 193 | C * lValueProd (D.twistModulus ϑ e).places (p.character * ϑ.toAutChar ^ n)⁻¹ p.z) : |
| 194 | D.HasAbsUpToNormPower c fun ϑ : D.MFoldTwist ↦ D.lRatioProd p.character p.z (ϑ.pow n) := by |
| 195 | refine ⟨C * lValueProd {w | D.IsChosen w} p.character p.z, (p.z ^ 2 : ℕ), fun ϑ ↦ ?_⟩ |
| 196 | have h_prod : lValueProd ({w | D.IsChosen w} ∪ ϑ.Q) (p.character * ϑ.toAutChar ^ n)⁻¹ p.z = |
| 197 | lValueProd {w | D.IsChosen w} p.character p.z * (ϑ.normQ : ℝ) ^ p.z ^ 2 * |
| 198 | D.lRatioProd p.character p.z (ϑ.pow n) ^ 2 := |
| 199 | p.lValueProd_mul_inv_eq (ϑ.pow n) |
| 200 | rw [hc, places_twistModulus, h_prod, zpow_natCast] |
| 201 | ring |
| 202 | |
| 203 | variable (D) in |
| 204 | /-- `F` is the product of the ratios of Hecke values of a ramified pair at the `n`-th powers of the |
| 205 | twists, for some `1 ≤ n ≤ m`. -/ |
| 206 | def IsRamifiedRatio (F : D.MFoldTwist → ℝ) : Prop := |
| 207 | ∃ (p : D.CriticalPair) (n : D.LiftIndex), p.IsRamified ∧ |
| 208 | ∀ ϑ : D.MFoldTwist, F ϑ = D.lRatioProd p.character p.z (ϑ.pow n) |
| 209 | |
| 210 | /-- Let `θ ι` be twists with small ratios: their moduli have norm `N ι = (θ ι).normQ` prime to `ℓ`, |
| 211 | and the inverse ratios of L-values of ramified pairs at their powers have height at most the cut-off |
| 212 | `D.x₁`. For `a` in a finite set `s`, let `F a` be a ramified ratio: `F a ϑ` is the product |
| 213 | `lRatioProd` of the ratios of Hecke values of a ramified pair at `ϑⁿ`, for a fixed `1 ≤ n ≤ m`. Then |
| 214 | the family `((N ι) ^ (e / 2) ∏_{a ∈ s} F a (θ ι))⁻¹` has height at most `#s · t · x₁`. -/ |
| 215 | theorem HasSmallRatios.heightLe_inv_rpow_mul_prod {A : Type} {s : Finset A} |
| 216 | {F : A → D.MFoldTwist → ℝ} {θ : PrimePadicIso → D.MFoldTwist} |
| 217 | (hθ : D.HasSmallRatios θ) (e : ℤ) (hF : ∀ a ∈ s, D.IsRamifiedRatio (F a)) : |
| 218 | HeightLe (fun ι : PrimePadicIso ↦ |
| 219 | ((((θ ι).normQ : ℝ) ^ (e / 2 : ℝ) * ∏ a ∈ s, F a (θ ι) : ℝ) : ℂ)⁻¹) (#s * (D.t * D.x₁)) := by |
| 220 | -- Each factor is a product of at most `t` ratios, whose inverses have height at most `x₁`. |
| 221 | have h_factor (a : A) (ha : a ∈ s) : |
| 222 | HeightLe (fun ι : PrimePadicIso ↦ ((F a (θ ι) : ℝ) : ℂ)⁻¹) (D.t * D.x₁) := by |
| 223 | obtain ⟨p, n, hp, h_eq⟩ := hF a ha |
| 224 | have h_ratios : HeightLe |
| 225 | (∏ z ∈ Icc 1 p.z, fun ι : PrimePadicIso ↦ ((p.lowerPoint z).ratio ((θ ι).powTwist n) 1)⁻¹) |
| 226 | (∑ _z ∈ Icc 1 p.z, D.x₁) := |
| 227 | .prod fun z _ ↦ hθ.height_le n (p.lowerPoint z) 1 hp |
| 228 | refine h_ratios.mono ?_ fun ι ↦ le_of_eq ?_ |
| 229 | · rw [sum_const, Nat.card_Icc, Nat.add_sub_cancel, nsmul_eq_mul] |
| 230 | grw [p.z_mem.2] |
| 231 | · rw [h_eq, p.ofReal_lRatioProd, Finset.prod_apply, prod_inv_distrib] |
| 232 | rfl |
| 233 | have h_prod : HeightLe (∏ a ∈ s, fun ι : PrimePadicIso ↦ ((F a (θ ι) : ℝ) : ℂ)⁻¹) |
| 234 | (#s * (D.t * D.x₁)) := |
| 235 | (TauCeti.PrimePadicIso.HeightLe.prod h_factor).mono (by simp) fun _ ↦ le_rfl |
| 236 | -- The norm of the modulus is prime to the prime of `ι`, so its power does not raise the height. |
| 237 | refine (h_prod.rpow_mul _ (fun _ ↦ -(e / 2)) hθ.coprime).mono le_rfl fun ι ↦ le_of_eq ?_ |
| 238 | rw [Rat.cast_neg, Real.rpow_neg (Nat.cast_nonneg _), Complex.ofReal_inv, Finset.prod_apply, |
| 239 | prod_inv_distrib, ← mul_inv, Complex.ofReal_mul, Complex.ofReal_prod] |
| 240 | norm_cast |
| 241 | |
| 242 | /-- A function `G` of the twist that is a ramified ratio (`IsRamifiedRatio`) is nonnegative at every |
| 243 | `m`-fold twist `ϑ`. -/ |
| 244 | lemma IsRamifiedRatio.nonneg {G : D.MFoldTwist → ℝ} (h : D.IsRamifiedRatio G) |
| 245 | (ϑ : D.MFoldTwist) : 0 ≤ G ϑ := by |
| 246 | obtain ⟨p, n, -, h_eq⟩ := h |
| 247 | simpa [h_eq] using lRatioProd_nonneg p.character p.z (ϑ.pow n) |
| 248 | |
| 249 | lemma IsRamifiedRatio.apply_one {G : D.MFoldTwist → ℝ} (h : D.IsRamifiedRatio G) : G 1 = 1 := by |
| 250 | obtain ⟨p, n, -, h_eq⟩ := h |
| 251 | rw [h_eq, p.lRatioProd_one_pow] |
| 252 | |
| 253 | variable (D) in |
| 254 | /-- The pair of the character `ν = (υ ^ (-Δ) χ) ^ n` and the integer `t`. Here |
| 255 | `υ = WeilData.upsilonU1` is the splitting character on the norm-one ideles, `Δ = D.gap`, and |
| 256 | `χ = D.chiM` has weight `0` and tame part `D.chiMLocal`, so `ν` has weight `-n Δ` and tame part |
| 257 | `D.chiMLocal ^ n`. As `D.untwistedLiftChar j = D.chiZero * (υ ^ (-Δ) χ) ^ j`, one has |
| 258 | `ν = D.untwistedLiftChar (i + n) / D.untwistedLiftChar i` for every `i`. -/ |
| 259 | noncomputable def quotientPair (n : D.LiftIndex) : D.CriticalPair where |
| 260 | character := (WeilData.upsilonU1 ^ (-D.gap : ℤ) * D.chiM) ^ n.val |
| 261 | negWeight (_ : D.Φ) := n.val * D.gap |
| 262 | tamePart := D.chiMLocal ^ (n.val : ℤ) |
| 263 | z := D.t |
| 264 | hasWeight := by |
| 265 | convert! ((WeilData.hasWeight_upsilonU1_zpow (-D.gap : ℤ)).mul D.chiM_hasWeight).zpow n.val <;> |
| 266 | simp |
| 267 | tamePart_eq_one w hw := by simp_all |
| 268 | z_mem := ⟨D.nat_le_of_hasLogBound, le_rfl⟩ |
| 269 | le_negWeight _ := (D.nat_le_of_hasLogBound : D.t ≤ D.gap).trans (Nat.le_mul_of_pos_left _ n.2.1) |
| 270 | negWeight_le _ := by |
| 271 | grw [(Set.mem_Icc.1 n.property).2] |
| 272 | exact D.le_of_hasLogBound |
| 273 | |
| 274 | lemma quotientPair_character (n : D.LiftIndex) (i : ℕ) : |
| 275 | (D.quotientPair n).character = D.untwistedLiftChar (i + n) / D.untwistedLiftChar i := by |
| 276 | simp [quotientPair, untwistedLiftChar, pow_add, ← mul_assoc] |
| 277 | |
| 278 | /-- The tame part of `quotientPair n` is nontrivial exactly at the chosen places, since |
| 279 | `1 ≤ n ≤ m`. -/ |
| 280 | lemma isRamified_quotientPair (n : D.LiftIndex) : (D.quotientPair n).IsRamified := by |
| 281 | intro w |
| 282 | exact D.chiMLocal_zpow_ne_one_iff_isChosen (n.val : ℤ) (by grind [n.2]) (by grind [n.2]) w |
| 283 | |
| 284 | variable (D) in |
| 285 | /-- The product of the ratios of Hecke values of the character |
| 286 | `D.untwistedLiftChar j / D.untwistedLiftChar i` at the twist `ϑ ^ (j - i)` (truncated subtraction), |
| 287 | over the points `1 ≤ z ≤ t`. The characters `D.untwistedLiftChar j = D.chiZero * (υ ^ (-D.gap) * |
| 288 | D.chiM) ^ j` of U(1)(𝔸), with `υ = WeilData.upsilonU1`, form a geometric progression. -/ |
| 289 | noncomputable def quotientRatio (i j : ℕ) (ϑ : D.MFoldTwist) : ℝ := |
| 290 | D.lRatioProd (D.untwistedLiftChar j / D.untwistedLiftChar i) D.t (ϑ.pow (j - i)) |
| 291 | |
| 292 | lemma quotientRatio_add_eq_lRatioProd (n : D.LiftIndex) (i : ℕ) (ϑ : D.MFoldTwist) : |
| 293 | D.quotientRatio i (i + n) ϑ = |
| 294 | D.lRatioProd (D.quotientPair n).character (D.quotientPair n).z (ϑ.pow n) := by |
| 295 | rw [quotientRatio, Nat.add_sub_cancel_left, quotientPair_character n i] |
| 296 | rfl |
| 297 | |
| 298 | /-- For `i < j ≤ m`, `D.quotientRatio i j` is a ramified ratio (`IsRamifiedRatio`), with |
| 299 | `n = j − i`. It is the product of the ratios of Hecke values of |
| 300 | `D.untwistedLiftChar j / D.untwistedLiftChar i` at the powers ϑ^(j − i). -/ |
| 301 | lemma isRamifiedRatio_quotientRatio {i j : ℕ} (hij : i < j) (hj : j ≤ D.m) : |
| 302 | D.IsRamifiedRatio (D.quotientRatio i j) := by |
| 303 | obtain ⟨n, rfl⟩ := Nat.exists_eq_add_of_lt hij |
| 304 | let dist : D.LiftIndex := ⟨n + 1, n.succ_pos, by omega⟩ |
| 305 | exact ⟨D.quotientPair dist, dist, isRamified_quotientPair dist, |
| 306 | quotientRatio_add_eq_lRatioProd dist i⟩ |
| 307 | |
| 308 | end Moduli |
| 309 | |
| 310 | /-- Let ν be tame for the squarefree modulus 𝔪₀ = ϖQ with weight γ and character χ of O_E/𝔪₀: ν has |
| 311 | weight γ and a tame part (ψ_w) that is non-trivial exactly at the w ∣ 𝔪₀, and χ = ∏_{w ∣ 𝔪₀} ψ_w. |
| 312 | Then χ is primitive: for each a ≠ 0 in O_E/𝔪₀ some χ(1 + ca) is neither 0 nor 1. -/ |
| 313 | lemma isPrimitiveMulChar_of_isTameFor {ϑ : D.TameChar} {ν : AutChar D.E} |
| 314 | {γ : NumberField.InfinitePlace D.E → ℤ} {χ : MulChar (D.twistModulus ϑ 1).ResidueRing ℂ} |
| 315 | (h_tame : IsTameFor (D.twistModulus ϑ 1) ν γ χ) : IsPrimitiveMulChar χ := by |
| 316 | -- Some residue of `a` is nonzero, say at `w`, and `ψ w x ≠ 1` for some unit `x`. Choose `c` so |
| 317 | -- that `1 + c * a` is `x` at `w` and `1` at the other places. |
| 318 | intro a ha |
| 319 | obtain ⟨-, ψ, -, hψ, hχ⟩ := h_tame |
| 320 | obtain ⟨w, hw, ha'⟩ : ∃ w : FinPlace D.E, ∃ hw : w ∈ (D.twistModulus ϑ 1).places, |
| 321 | modulusResidue (D.twistModulus ϑ 1) hw a ≠ 0 := by |
| 322 | contrapose! ha |
| 323 | exact (eq_iff_modulusResidue_eq (D.levelPlaces ϑ).apart.injective |
| 324 | (D.levelPlaces ϑ).ideal_levelModulus_one).2 fun i ↦ by simp [ha] |
| 325 | obtain ⟨x, hx⟩ : ∃ x : (ResField w)ˣ, ψ w x ≠ 1 := ne_one_iff.1 ((hψ w).2 hw) |
| 326 | obtain ⟨b, hb⟩ : ∃ b : NumberField.RingOfIntegers D.E, |
| 327 | modulusResidue (D.twistModulus ϑ 1) hw (Ideal.Quotient.mk (D.twistModulus ϑ 1).ideal b) = |
| 328 | (x - 1) / modulusResidue (D.twistModulus ϑ 1) hw a := |
| 329 | algebraMap_ResField_surjective w ((x - 1) / modulusResidue (D.twistModulus ϑ 1) hw a) |
| 330 | -- `c` is `b` times the idempotent that is `1` at `w` and `0` elsewhere. |
| 331 | let c : (D.twistModulus ϑ 1).ResidueRing := |
| 332 | Modulus.reduction (D.twistModulus ϑ 1) ⟨idem {w}, idem_mem_Ô {w}⟩ * |
| 333 | Ideal.Quotient.mk (D.twistModulus ϑ 1).ideal b |
| 334 | have h_self : modulusResidue (D.twistModulus ϑ 1) hw (1 + c * a) = x := by simp [c, hb, ha'] |
| 335 | have h_other (v : (D.twistModulus ϑ 1).places) (hv : v ≠ ⟨w, hw⟩) : |
| 336 | modulusResidue (D.twistModulus ϑ 1) v.property (1 + c * a) = 1 := by |
| 337 | have h_ne : v.val ≠ w := fun h ↦ hv (Subtype.ext h) |
| 338 | simp [c, h_ne] |
| 339 | have h_apply : χ (1 + c * a) = ψ w x := by |
| 340 | rw [hχ, charOfTamePart_apply, finprod_eq_single _ (Subtype.mk w hw), h_self] |
| 341 | intro v hv |
| 342 | simp [h_other v hv] |
| 343 | exact ⟨c, by simp [h_apply, apply_eq_zero_iff], by rwa [h_apply]⟩ |
| 344 | |
| 345 | /-- For a ramified critical pair with character `ν` of weight `-negWeight`, a twist `ξ` of modulus |
| 346 | `Q` and `e ≠ 0`, the character `ν ξ` is tame for `𝔪 = ϖᵉ Q` with weight `-negWeight`: its tame part |
| 347 | `ψ = p.tamePart * ξ.tamePart` is non-trivial exactly at the places of `𝔪`, and its character on |
| 348 | `O_E / 𝔪` is `charOfTamePart 𝔪 ψ = ∏_{w ∣ 𝔪} ψ_w`. -/ |
| 349 | lemma CriticalPair.isTameFor_mul (p : D.CriticalPair) (hp : p.IsRamified) (ξ : D.Twist) (e : ℕ) |
| 350 | [NeZero e] : |
| 351 | IsTameFor (D.twistModulus ξ.toTameChar e) (p.character * ξ.toAutChar) |
| 352 | (fun τ : NumberField.InfinitePlace D.E ↦ -p.negWeight τ) |
| 353 | (charOfTamePart (D.twistModulus ξ.toTameChar e) (p.tamePart * ξ.tamePart)) := by |
| 354 | exact isTameFor_of_hasWeight ξ (by simpa using p.hasWeight.mul ξ.hasWeight) hp |
| 355 | |
| 356 | /-- For a ramified critical pair with character `ν` of weight `-negWeight`, a twist `ξ` of modulus |
| 357 | `Q` and `e ≠ 0`, the character `(ν ξ)⁻¹` is tame for `𝔪 = ϖᵉ Q` with weight `negWeight`. -/ |
| 358 | lemma CriticalPair.isTameFor_mul_inv (p : D.CriticalPair) (hp : p.IsRamified) (ξ : D.Twist) (e : ℕ) |
| 359 | [NeZero e] : |
| 360 | IsTameFor (D.twistModulus ξ.toTameChar e) (p.character * ξ.toAutChar)⁻¹ |
| 361 | (fun τ : NumberField.InfinitePlace D.E ↦ p.negWeight τ) |
| 362 | (charOfTamePart (D.twistModulus ξ.toTameChar e) (p.tamePart * ξ.tamePart))⁻¹ := by |
| 363 | simpa [Pi.neg_def] using (p.isTameFor_mul hp ξ e).inv |
| 364 | |
| 365 | /-- For a ramified critical pair `(ν, z)`, `1 ≤ n ≤ m` and `e ≠ 0`, the character `(ν ϑⁿ)⁻¹` is tame |
| 366 | for the modulus `twistModulus ϑ e = ϖᵉ Q` ((ϖ) the product of the chosen places, Q the modulus of |
| 367 | ϑ), with weight `negWeight`. -/ |
| 368 | lemma CriticalPair.isTameFor_inv_mul_pow (p : D.CriticalPair) (hp : p.IsRamified) (e : ℕ) [NeZero e] |
| 369 | (n : D.LiftIndex) (ϑ : D.MFoldTwist) : |
| 370 | IsTameFor (D.twistModulus ϑ e) (p.character * ϑ.toAutChar ^ n.val)⁻¹ |
| 371 | (fun τ : NumberField.InfinitePlace D.E ↦ p.negWeight τ) |
| 372 | (charOfTamePart (D.twistModulus ϑ e) (p.tamePart * ϑ.tamePart ^ n.val))⁻¹ := |
| 373 | p.isTameFor_mul_inv hp (ϑ.powTwist n) e |
| 374 | |
| 375 | end New.Data |
| 376 | |
| 377 | end |