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 TauCeti.RingTheory.Derivation.Basic |
| 4 | import TauCeti.RingTheory.MvPowerSeries.Derivative |
| 5 | public import New.Derivatives.Sharpness.LeastValuation |
| 6 | public import New.Derivatives.Divisibility.NormalForm |
| 7 | |
| 8 | /-! |
| 9 | # Least valuations along couplings |
| 10 | |
| 11 | Throughout, `v` is the valuation of `ℂ_[p]` with `‖x‖ = p ^ (-v x)`, a series is integral if its |
| 12 | coefficients lie in the valuation ring `valRingCp p`, and `seriesToCp` views an integral series as a |
| 13 | series over `ℂ_[p]`. |
| 14 | |
| 15 | ## Main definitions and results |
| 16 | |
| 17 | * `New.IsCouplingFamily`: each selected coupling `z_τ ^ p ^ e τ * z_(τ⁺)` has `e τ` odd and has |
| 18 | strictly the lowest exponent among such couplings of selected places with the same partner. |
| 19 | * `New.powerDegree`, `New.partnerDegree`: the degrees `ν'` and `ν''` of the two parts of a product |
| 20 | of couplings, with their values at a place and their total degrees. |
| 21 | * `New.pairExponent`, `New.couplingSubst`: the exponent of `z' ^ ν' * z'' ^ ν''`, and the |
| 22 | substitution `z_0 = δ_0 z' + z''`, `z_c = δ_c z'`. |
| 23 | * `New.IsCouplingFamily.norm_coeff_pairExponent`: the valuation of the coefficient of |
| 24 | `z' ^ ν' * z'' ^ ν''` in `F(z' + z'') ∏_(c ≠ 0) F(δ_c z')` for `F = W exp (κ Ξ)`, where `κ` is a |
| 25 | scalar of negative valuation. |
| 26 | * `New.CMLattice.leastValLE_six_of_isCouplingFamily`: at an inert prime `p` the least valuation |
| 27 | `val₆` on six copies satisfies `val₆(ν) ≤ -|j|` and `v(ν'! ν''!) + val₆(ν) ≤ γ_p |ν| - |j|`, where |
| 28 | `ν = ν' + ν''` and `γ_p = gammaPrime d p = 1 / (p - 1) - varpiValuation d p`. |
| 29 | |
| 30 | The variable `z'` that is raised to the power `p ^ e` is separated from the variable `z''` that |
| 31 | occurs linearly; the term in which every derivative in `z''` brings down `κ` dominates. |
| 32 | |
| 33 | Notions from other files: |
| 34 | * `couplingSum S pr l` is the series `Ξ = ∑ l a b • Γ_a ^ p ^ b` over `a ∈ S` and `b : ℕ`, where |
| 35 | `Γ_a` is the sum of the couplings `z_τ ^ p ^ a * z_(pr a τ)` over all `τ`. |
| 36 | * `copySubst a` substitutes `z ↦ ∑ a_k z_k` in copies `z_k` of the variables. |
| 37 | * `C : CMLattice d` is a lattice with multiplication by the integers of `ℚ(√-d)` and a chosen point |
| 38 | `t` of order two; `C.θ` is the twisted translate by `t` of its sigma function, normalized to `1` |
| 39 | at `0`, and `C.thetaProd μ m = ∏ θ(μ_i z) ^ m i`, read over `ℂ_[p]` through the embedding of `ℂ` |
| 40 | that `PadicPlace p` fixes. |
| 41 | * `C.LeastValLE μ m n ν r` says `val_n(ν) ≤ r` for the least valuation `val_n(ν)` of a coefficient |
| 42 | of degree `ν` in a product `∏ (H_c Θ)(z_c)` over `n` copies, where `Θ = C.thetaProd μ m` and the |
| 43 | `H_c` run through the ring `C.multiSeriesRing μ`. |
| 44 | -/ |
| 45 | |
| 46 | @[expose] public section |
| 47 | |
| 48 | /-! ## Families of couplings -/ |
| 49 | |
| 50 | namespace New |
| 51 | |
| 52 | section families |
| 53 | |
| 54 | variable {Φ : Type} |
| 55 | |
| 56 | /-- The couplings `z_τ ^ p ^ e τ * z_(τ⁺)`, `τ ∈ Φ₀`, `τ⁺ = pr (e τ) τ`, have `e τ` odd, and each |
| 57 | has strictly the lowest exponent among the couplings `z_τ₁ ^ p ^ e' * z_(τ⁺)` with `τ₁ ∈ Φ₀`, |
| 58 | `e'` odd and `pr e' τ₁ = τ⁺`. Here `pr e τ` is the partner of the place `τ` for the exponent `e`. -/ |
| 59 | structure IsCouplingFamily (pr : ℕ → Φ → Φ) (Φ₀ : Finset Φ) (e : Φ → ℕ) : Prop where |
| 60 | /-- The exponents are odd. -/ |
| 61 | odd : ∀ τ ∈ Φ₀, Odd (e τ) |
| 62 | /-- For `τ, τ₁ ∈ Φ₀` and odd `e' ≤ e τ`, the equation `pr e' τ₁ = τ⁺` holds only for `τ₁ = τ`, |
| 63 | `e' = e τ`. -/ |
| 64 | eq_of_partner_eq : ∀ τ ∈ Φ₀, ∀ τ₁ ∈ Φ₀, ∀ e' ≤ e τ, Odd e' → |
| 65 | pr e' τ₁ = pr (e τ) τ → τ₁ = τ ∧ e' = e τ |
| 66 | |
| 67 | /-- The degree `ν'` of the monomial `∏ z_τ ^ (p ^ e τ * j τ)` over `τ ∈ Φ₀`. -/ |
| 68 | noncomputable def powerDegree (p : ℕ) (Φ₀ : Finset Φ) (e j : Φ → ℕ) : Φ × Unit →₀ ℕ := |
| 69 | ∑ τ ∈ Φ₀, .single (τ, ()) (p ^ e τ * j τ) |
| 70 | |
| 71 | /-- The degree `ν''` of the monomial `∏ z_(τ⁺) ^ j τ` over `τ ∈ Φ₀`, where `τ⁺ = pr (e τ) τ`. -/ |
| 72 | noncomputable def partnerDegree (pr : ℕ → Φ → Φ) (Φ₀ : Finset Φ) (e j : Φ → ℕ) : |
| 73 | Φ × Unit →₀ ℕ := |
| 74 | ∑ τ ∈ Φ₀, .single (pr (e τ) τ, ()) (j τ) |
| 75 | |
| 76 | /-- For `τ ∈ Φ₀`, the degree `powerDegree p Φ₀ e j` has the exponent `p ^ e τ * j τ` at `τ`. -/ |
| 77 | lemma powerDegree_apply_of_mem {p : ℕ} {Φ₀ : Finset Φ} {e j : Φ → ℕ} {τ : Φ} (hτ : τ ∈ Φ₀) : |
| 78 | powerDegree p Φ₀ e j (τ, ()) = p ^ e τ * j τ := by |
| 79 | classical simp [powerDegree, Finsupp.finsetSum_apply, Finsupp.single_apply, hτ] |
| 80 | |
| 81 | /-- For `τ ∉ Φ₀`, the degree `powerDegree p Φ₀ e j` has the exponent `0` at `τ`. -/ |
| 82 | lemma powerDegree_apply_of_notMem {p : ℕ} {Φ₀ : Finset Φ} {e j : Φ → ℕ} {τ : Φ} (hτ : τ ∉ Φ₀) : |
| 83 | powerDegree p Φ₀ e j (τ, ()) = 0 := by |
| 84 | classical simp [powerDegree, Finsupp.finsetSum_apply, Finsupp.single_apply, hτ] |
| 85 | |
| 86 | /-- The exponent of the degree `partnerDegree pr Φ₀ e j` at a place `t` is the sum of the `j τ` |
| 87 | over the `τ ∈ Φ₀` whose partner `pr (e τ) τ` is `t`. -/ |
| 88 | lemma partnerDegree_apply {pr : ℕ → Φ → Φ} {Φ₀ : Finset Φ} {e j : Φ → ℕ} [DecidableEq Φ] (t : Φ) : |
| 89 | partnerDegree pr Φ₀ e j (t, ()) = ∑ τ ∈ Φ₀ with pr (e τ) τ = t, j τ := by |
| 90 | simp [partnerDegree, Finsupp.finsetSum_apply, Finsupp.single_apply, Finset.sum_filter] |
| 91 | |
| 92 | /-- If the selected partners are distinct, the degree at a partner is the multiplicity of |
| 93 | its unique start. -/ |
| 94 | lemma partnerDegree_apply_of_injOn {pr : ℕ → Φ → Φ} {Φ₀ : Finset Φ} {e j : Φ → ℕ} |
| 95 | (hinj : Set.InjOn (fun τ ↦ pr (e τ) τ) Φ₀) {τ : Φ} (hτ : τ ∈ Φ₀) : |
| 96 | partnerDegree pr Φ₀ e j (pr (e τ) τ, ()) = j τ := by |
| 97 | classical |
| 98 | rw [partnerDegree_apply] |
| 99 | exact Finset.sum_eq_single_of_mem τ (Finset.mem_filter.2 ⟨hτ, rfl⟩) |
| 100 | fun a ha hne ↦ (hne (hinj (Finset.mem_filter.1 ha).1 hτ (Finset.mem_filter.1 ha).2)).elim |
| 101 | |
| 102 | /-- A place outside the image of the selected partners has degree zero. -/ |
| 103 | lemma partnerDegree_apply_of_notMem_image {pr : ℕ → Φ → Φ} {Φ₀ : Finset Φ} {e j : Φ → ℕ} |
| 104 | [DecidableEq Φ] {t : Φ} (ht : t ∉ Φ₀.image (fun τ ↦ pr (e τ) τ)) : |
| 105 | partnerDegree pr Φ₀ e j (t, ()) = 0 := by |
| 106 | rw [partnerDegree_apply, Finset.filter_eq_empty_iff.2 |
| 107 | (fun τ hτ h ↦ ht (Finset.mem_image.2 ⟨τ, hτ, h⟩)), Finset.sum_empty] |
| 108 | |
| 109 | /-- The total degree of `powerDegree p Φ₀ e j` is the sum of the `p ^ e τ * j τ` over `τ ∈ Φ₀`. -/ |
| 110 | lemma degree_powerDegree {p : ℕ} {Φ₀ : Finset Φ} {e j : Φ → ℕ} : |
| 111 | (powerDegree p Φ₀ e j).degree = ∑ τ ∈ Φ₀, p ^ e τ * j τ := by |
| 112 | simp only [powerDegree, map_sum, Finsupp.degree_single] |
| 113 | |
| 114 | /-- The total degree of `partnerDegree pr Φ₀ e j` is the sum of the `j τ` over `τ ∈ Φ₀`. -/ |
| 115 | lemma degree_partnerDegree {pr : ℕ → Φ → Φ} {Φ₀ : Finset Φ} {e j : Φ → ℕ} : |
| 116 | (partnerDegree pr Φ₀ e j).degree = ∑ τ ∈ Φ₀, j τ := by |
| 117 | simp only [partnerDegree, map_sum, Finsupp.degree_single] |
| 118 | |
| 119 | end families |
| 120 | |
| 121 | end New |
| 122 | |
| 123 | /-! ## The coefficient of a product of couplings in a product of copies -/ |
| 124 | |
| 125 | open MvPolynomial (jetPairing jetPairing_monomial jetPairing_mul_X) |
| 126 | open MvPowerSeries Finset Nat |
| 127 | |
| 128 | namespace New |
| 129 | |
| 130 | section steps |
| 131 | open IsLocalRing |
| 132 | |
| 133 | variable {p : ℕ} [Fact p.Prime] {X Y : Type} |
| 134 | |
| 135 | /-- For integral series `W`, `Ξ` with `W` a unit and `Ξ(0) = 0`, and for any scalar `κ ∈ ℂ_[p]`, the |
| 136 | logarithmic derivative of `W exp (κ Ξ)` in the variable `x` is `κ ∂Ξ + B` with `B = ∂W / W` |
| 137 | integral. Here `expSubst a` is the series `exp a` and `seriesToCp` views an integral series as a |
| 138 | series over `ℂ_[p]`. -/ |
| 139 | lemma exists_pderiv_mul_expSubst {W Ξ : MvPowerSeries X (valRingCp p)} (hW : IsUnit W) |
| 140 | (hΞ : Ξ.constantCoeff = 0) (κ : ℂ_[p]) (x : X) : ∃ B : MvPowerSeries X (valRingCp p), |
| 141 | pderiv x (seriesToCp W * expSubst (κ • seriesToCp Ξ)) = |
| 142 | (κ • seriesToCp (pderiv x Ξ) + seriesToCp B) * |
| 143 | (seriesToCp W * expSubst (κ • seriesToCp Ξ)) := by |
| 144 | obtain ⟨B, hB⟩ : W ∣ pderiv x W := hW.dvd |
| 145 | -- the chain rule for the exponential series |
| 146 | have h_exp : pderiv x (expSubst (κ • seriesToCp Ξ)) = |
| 147 | expSubst (κ • seriesToCp Ξ) * κ • seriesToCp (pderiv x Ξ) := by |
| 148 | simp [hΞ, PowerSeries.subst, pderiv_subst, hasSubst_of_constantCoeff_zero, ← map_pderiv, |
| 149 | ← PowerSeries.derivative.eq_def, PowerSeries.derivative_exp, smul_eq_C_mul] |
| 150 | refine ⟨B, ?_⟩ |
| 151 | rw [Derivation.leibniz, h_exp, ← map_pderiv, hB, map_mul, smul_eq_mul, smul_eq_mul] |
| 152 | ring |
| 153 | |
| 154 | /-- Let `κ ∈ ℂ_[p]` have norm greater than `1`, and let `∂` be the derivative in the variable `y`. |
| 155 | If `∂G = (κ A + B) G` with `A`, `B` integral, then for integral `g` we have `∂(g G) = κ g' G` with |
| 156 | `g'` integral and congruent to `g A` modulo the maximal ideal. -/ |
| 157 | lemma exists_pderiv_mul_eq_smul {κ : ℂ_[p]} (hκ : 1 < ‖κ‖) {G : MvPowerSeries Y ℂ_[p]} |
| 158 | {A B : MvPowerSeries Y (valRingCp p)} {y : Y} |
| 159 | (hG : pderiv y G = (κ • seriesToCp A + seriesToCp B) * G) |
| 160 | (g : MvPowerSeries Y (valRingCp p)) : ∃ g' : MvPowerSeries Y (valRingCp p), |
| 161 | pderiv y (seriesToCp g * G) = κ • (seriesToCp g' * G) ∧ |
| 162 | g'.map (residue (valRingCp p)) = |
| 163 | g.map (residue (valRingCp p)) * A.map (residue (valRingCp p)) := by |
| 164 | -- `g' = g A + κ⁻¹ (∂g + g B)`, and `κ⁻¹` lies in the maximal ideal |
| 165 | let κInv : valRingCp p := ⟨κ⁻¹, (norm_inv κ).trans_le (inv_le_one_of_one_le₀ hκ.le)⟩ |
| 166 | have h_residue : residue (valRingCp p) κInv = 0 := by |
| 167 | simp [residue_eq_zero_iff, mem_nonunits_iff, isUnit_integer_iff_norm_eq_one, κInv, hκ.ne'] |
| 168 | have h_cancel : C κ * seriesToCp (C κInv) = (1 : MvPowerSeries Y ℂ_[p]) := by |
| 169 | simp [κInv, ← map_mul, norm_pos_iff.1 (one_pos.trans hκ)] |
| 170 | refine ⟨g * A + C κInv * (pderiv y g + g * B), ?_, by simp [h_residue]⟩ |
| 171 | simp only [Derivation.leibniz, hG, smul_eq_mul, smul_eq_C_mul, map_add, map_mul, map_pderiv] |
| 172 | linear_combination |
| 173 | -(pderiv y (seriesToCp g) + seriesToCp g * seriesToCp B) * G * h_cancel |
| 174 | |
| 175 | /-- Let `κ ∈ ℂ_[p]` have norm greater than `1`. If `∂_(t i) G = (κ A_i + B_i) G` with `A_i`, `B_i` |
| 176 | integral, then `(∏_(i ∈ T) ∂_(t i)) G = κ ^ #T g G` with `g` integral and congruent to `∏ A_i` |
| 177 | modulo the maximal ideal. The identity is stated after applying each differential operator `f(∂)` |
| 178 | and evaluating at `0`: `jetPairing f G` is `f(∂) G (0)`. -/ |
| 179 | lemma exists_jet_mul_prod_X {κ : ℂ_[p]} (hκ : 1 < ‖κ‖) {G : MvPowerSeries Y ℂ_[p]} {ι : Type} |
| 180 | {t : ι → Y} {A : ι → MvPowerSeries Y (valRingCp p)} |
| 181 | (hG : ∀ i : ι, ∃ B : MvPowerSeries Y (valRingCp p), |
| 182 | pderiv (t i) G = (κ • seriesToCp (A i) + seriesToCp B) * G) |
| 183 | (T : Finset ι) : |
| 184 | ∃ g : MvPowerSeries Y (valRingCp p), |
| 185 | g.map (residue (valRingCp p)) = ∏ i ∈ T, (A i).map (residue (valRingCp p)) ∧ |
| 186 | ∀ f : MvPolynomial Y ℂ_[p], |
| 187 | jetPairing (f * ∏ i ∈ T, .X (t i)) G = κ ^ #T * jetPairing f (seriesToCp g * G) := by |
| 188 | induction T using cons_induction with |
| 189 | | empty => exact ⟨1, by simp, by simp⟩ |
| 190 | | cons i T hi ih => |
| 191 | obtain ⟨g, hg_res, hg_jet⟩ := ih |
| 192 | obtain ⟨B, hB⟩ := hG i |
| 193 | obtain ⟨g', hg'_deriv, hg'_res⟩ := exists_pderiv_mul_eq_smul hκ hB g |
| 194 | refine ⟨g', by rw [hg'_res, hg_res, prod_cons, mul_comm], fun f ↦ ?_⟩ |
| 195 | rw [prod_cons, ← mul_assoc, hg_jet, jetPairing_mul_X, hg'_deriv, map_smul, card_cons, pow_succ, |
| 196 | smul_eq_mul, mul_assoc] |
| 197 | |
| 198 | /-- The exponent of the monomial `z' ^ ν' * z'' ^ ν''` in two copies of the variables. -/ |
| 199 | noncomputable def pairExponent (ν' ν'' : X →₀ ℕ) : X × Fin 2 →₀ ℕ := |
| 200 | ν'.mapDomain (fun x : X ↦ (x, 0)) + ν''.mapDomain fun x : X ↦ (x, 1) |
| 201 | |
| 202 | /-- Identifying the two copies of the variables sends `z' ^ ν' * z'' ^ ν''` to `z ^ (ν' + ν'')`. -/ |
| 203 | lemma mapDomain_fst_pairExponent (ν' ν'' : X →₀ ℕ) : |
| 204 | (pairExponent ν' ν'').mapDomain Prod.fst = ν' + ν'' := by |
| 205 | simp [pairExponent, Finsupp.mapDomain_add, ← Finsupp.mapDomain_comp] |
| 206 | |
| 207 | /-- The product of the factorials of the entries of `pairExponent ν' ν''`, the exponent of |
| 208 | `z' ^ ν' * z'' ^ ν''`, is `(∏_x (ν' x)!) * (∏_x (ν'' x)!)`, computed in `ℂ_[p]`. -/ |
| 209 | lemma prod_factorial_pairExponent [Fintype X] (ν' ν'' : X →₀ ℕ) : |
| 210 | ((pairExponent ν' ν'').prod fun (_ : X × Fin 2) (n : ℕ) ↦ (n ! : ℂ_[p])) = |
| 211 | (∏ x : X, ((ν' x)! : ℂ_[p])) * ∏ x : X, ((ν'' x)! : ℂ_[p]) := by |
| 212 | have h_apply (ν : X →₀ ℕ) (k k' : Fin 2) (x : X) : |
| 213 | ν.mapDomain (fun y : X ↦ (y, k)) (x, k') = if k = k' then ν x else 0 := by |
| 214 | rcases eq_or_ne k k' with rfl | hk |
| 215 | · simp [ Finsupp.mapDomain_apply_of_injective (Prod.mk_left_injective k)] |
| 216 | · simp [Finsupp.mapDomain_of_notMem_range, hk] |
| 217 | simp [Finsupp.prod_fintype, Fintype.prod_prod_type, pairExponent, h_apply, prod_mul_distrib] |
| 218 | |
| 219 | end steps |
| 220 | |
| 221 | section couplings |
| 222 | open IsLocalRing |
| 223 | |
| 224 | variable {p : ℕ} [Fact p.Prime] {Φ : Type} [Fintype Φ] |
| 225 | |
| 226 | open Classical in |
| 227 | /-- Let `Ξ = ∑ l a b • Γ_a ^ p ^ b` be the coupling sum over odd `a`. Let `τ ∈ Φ₀` for a coupling |
| 228 | family (`e τ₁` is odd on `Φ₀`, and no other pair of an odd `a ≤ e τ` and `τ₁ ∈ Φ₀` has |
| 229 | `pr a τ₁ = τ⁺ = pr (e τ) τ`). Put `z_τ₁ = 0` for `τ₁ ∉ Φ₀` and reduce modulo the maximal ideal. Then |
| 230 | `Ξ_τ = ∂Ξ / ∂z_(τ⁺)` agrees with `l (e τ) 0 • z_τ ^ p ^ e τ` in all total degrees up to |
| 231 | `p ^ e τ`. -/ |
| 232 | lemma IsCouplingFamily.isLowestTerm_pderiv_couplingSum {pr : ℕ → Φ → Φ} {Φ₀ : Finset Φ} |
| 233 | {e : Φ → ℕ} {l : ℕ → ℕ → valRingCp p} (he : IsCouplingFamily pr Φ₀ e) {τ : Φ} (hτ : τ ∈ Φ₀) : |
| 234 | IsLowestTerm 1 (rescale (fun x : Φ × Unit ↦ if x.1 ∈ Φ₀ then 1 else 0) |
| 235 | ((pderiv (pr (e τ) τ, ()) (couplingSum {a : ℕ | Odd a} pr l)).map |
| 236 | (residue (valRingCp p)))) |
| 237 | (.single (τ, ()) (p ^ e τ)) (residue (valRingCp p) (l (e τ) 0)) := by |
| 238 | have hp : 1 < p := Fact.out (p := p.Prime).one_lt |
| 239 | have h_zero : 0 ∉ {a : ℕ | Odd a} := by simp |
| 240 | intro d hd |
| 241 | rw [coeff_rescale, coeff_map] |
| 242 | by_cases hd_eq : d = .single (τ, ()) (p ^ e τ) |
| 243 | · simp [hd_eq, residue_coeff_pderiv_couplingSum h_zero (he.odd τ hτ) (τ, ()), hτ] |
| 244 | -- Any other term is `z_τ₁ ^ p ^ a` with `a ≤ e τ` and the same partner, so `τ₁ ∉ Φ₀`. |
| 245 | rw [coeff_monomial_ne hd_eq] |
| 246 | by_contra h_ne |
| 247 | obtain ⟨a, ha_odd, ⟨τ₁, ⟨⟩⟩, h_pair, rfl⟩ : ∃ a : ℕ, Odd a ∧ ∃ x : Φ × Unit, |
| 248 | (pr a x.1, x.2) = (pr (e τ) τ, ()) ∧ d = .single x (p ^ a) := |
| 249 | exists_eq_single_of_residue_coeff_pderiv_ne_zero h_zero (right_ne_zero_of_mul h_ne) |
| 250 | have h_le : a ≤ e τ := by simpa [Finsupp.weight_single, pow_le_pow_iff_right₀ hp] using hd |
| 251 | have hτ₁ : τ₁ ∈ Φ₀ := by_contra fun h ↦ by simp [h, (one_pos.trans hp).ne'] at h_ne |
| 252 | obtain ⟨rfl, rfl⟩ : τ₁ = τ ∧ a = e τ := |
| 253 | he.eq_of_partner_eq τ hτ τ₁ hτ₁ a h_le ha_odd (congrArg Prod.fst h_pair) |
| 254 | exact hd_eq rfl |
| 255 | |
| 256 | /-- A series with constant term `1` has lowest term `1 = 1 z ^ 0` for the total degree: |
| 257 | `IsLowestTerm w f m c` says that, in `w`-weight at most that of `m`, the coefficients of `f` are |
| 258 | those of `c z ^ m`, here with all weights `1`, `m = 0` and `c = 1`. -/ |
| 259 | lemma isLowestTerm_zero_one {X R : Type} [CommRing R] {f : MvPowerSeries X R} |
| 260 | (hf : f.constantCoeff = 1) : IsLowestTerm 1 f 0 1 := by |
| 261 | intro d hd |
| 262 | obtain rfl : d = 0 := by |
| 263 | simpa [Finsupp.degree_eq_weight_one, ← Pi.one_def, ← Finsupp.degree_eq_zero_iff] using hd |
| 264 | simp [hf] |
| 265 | |
| 266 | /-- Let `Ξ = ∑ l a b • Γ_a ^ p ^ b` be the coupling sum over odd `a`, where `Γ_a` is the sum of all |
| 267 | `z_τ ^ p ^ a * z_(pr a τ)`, with units `l a 0`, and let `Ξ_τ = ∂Ξ / ∂z_(τ⁺)`, `τ⁺ = pr (e τ) τ`, for |
| 268 | `τ` in a coupling family `Φ₀` (each `z_τ ^ p ^ e τ * z_(τ⁺)` has `e τ` odd and strictly lowest |
| 269 | degree among the `z_τ₁ ^ p ^ a * z_(τ⁺)` with `τ₁ ∈ Φ₀`, `a` odd and `pr a τ₁ = τ⁺`). If |
| 270 | `g ≡ ∏ Ξ_τ ^ j τ` modulo the maximal ideal and `U` has constant term `1`, then the coefficient of |
| 271 | `z ^ ν'` in `g U` is a unit, where `ν' = powerDegree p Φ₀ e j` is the degree of |
| 272 | `∏ z_τ ^ (p ^ e τ * j τ)`. -/ |
| 273 | lemma IsCouplingFamily.norm_coeff_powerDegree {pr : ℕ → Φ → Φ} {Φ₀ : Finset Φ} {e : Φ → ℕ} |
| 274 | {l : ℕ → ℕ → valRingCp p} (he : IsCouplingFamily pr Φ₀ e) |
| 275 | (hl : ∀ a : ℕ, Odd a → IsUnit (l a 0)) {j : Φ → ℕ} |
| 276 | {g U : MvPowerSeries (Φ × Unit) (valRingCp p)} |
| 277 | (hg : g.map (residue (valRingCp p)) = ∏ τ ∈ Φ₀, |
| 278 | (pderiv (pr (e τ) τ, ()) (couplingSum {a : ℕ | Odd a} pr l)).map |
| 279 | (residue (valRingCp p)) ^ j τ) |
| 280 | (hU : U.constantCoeff = 1) : |
| 281 | ‖coeff (powerDegree p Φ₀ e j) (seriesToCp (g * U))‖ = 1 := by |
| 282 | classical |
| 283 | -- After reducing and putting `z_τ₁ = 0` for `τ₁ ∉ Φ₀` (the map `Z`), the lowest term of `g U` is |
| 284 | -- `lead * z ^ ν'` with `lead ≠ 0`. |
| 285 | let Z := rescale (R := ResidueField (valRingCp p)) fun x : Φ × Unit ↦ if x.1 ∈ Φ₀ then 1 else 0 |
| 286 | let lead : ResidueField (valRingCp p) := ∏ τ ∈ Φ₀, residue (valRingCp p) (l (e τ) 0) ^ j τ |
| 287 | have h_lead : lead ≠ 0 := prod_ne_zero_iff.2 fun τ hτ ↦ |
| 288 | pow_ne_zero _ ((residue_ne_zero_iff_isUnit _).2 (hl (e τ) (he.odd τ hτ))) |
| 289 | have hg_low : |
| 290 | IsLowestTerm 1 (Z (g.map (residue (valRingCp p)))) (powerDegree p Φ₀ e j) lead := by |
| 291 | rw [hg, map_prod] |
| 292 | refine IsLowestTerm.prod fun τ hτ ↦ ?_ |
| 293 | simpa [Z, mul_comm] using (he.isLowestTerm_pderiv_couplingSum (l := l) hτ).pow (j τ) |
| 294 | have h_coeff : |
| 295 | coeff (powerDegree p Φ₀ e j) (Z ((g * U).map (residue (valRingCp p)))) = lead := by |
| 296 | have hU_low : IsLowestTerm 1 (Z (U.map (residue (valRingCp p)))) 0 1 := |
| 297 | isLowestTerm_zero_one (by simp [← coeff_zero_eq_constantCoeff_apply, Z, hU]) |
| 298 | rw [map_mul, map_mul, hg_low.mul hU_low _ (by simp), add_zero, mul_one, coeff_monomial_same] |
| 299 | rw [coeff_rescale, coeff_map] at h_coeff |
| 300 | rw [coeff_map, Subring.coe_subtype, ← isUnit_integer_iff_norm_eq_one] |
| 301 | exact (residue_ne_zero_iff_isUnit _).1 (right_ne_zero_of_mul (h_coeff.trans_ne h_lead)) |
| 302 | |
| 303 | /-- The coefficients of the substitution `z_0 = δ_0 z' + z''`, `z_c = δ_c z'` for `c ≠ 0`, in two |
| 304 | copies `z'`, `z''` of the variables. -/ |
| 305 | noncomputable def couplingSubst {R : Type} [CommRing R] {n : ℕ} (δ : Fin (n + 1) → R) |
| 306 | (c : Fin (n + 1)) : Fin 2 → R := |
| 307 | ![δ c, if c = 0 then 1 else 0] |
| 308 | |
| 309 | /-- The coefficients of `couplingSubst δ` are integral if the `δ_c` are. -/ |
| 310 | lemma norm_couplingSubst_le_one {n : ℕ} {δ : Fin (n + 1) → ℂ_[p]} |
| 311 | (hδ : ∀ c : Fin (n + 1), ‖δ c‖ ≤ 1) (c : Fin (n + 1)) (k : Fin 2) : |
| 312 | ‖couplingSubst δ c k‖ ≤ 1 := by |
| 313 | fin_cases k <;> simp [couplingSubst, hδ, apply_ite (‖·‖), ite_le_one] |
| 314 | |
| 315 | /-- Let `δ 0 = 1` and let `G = ∏_c copySubst (couplingSubst δ c) F`, that is, |
| 316 | `G(z', z'') = F(z' + z'') ∏_(c ≠ 0) F(δ_c z')` in two copies `z'`, `z''` of the variables. Only the |
| 317 | first factor involves `z''`, so if `∂_x F = L F`, then the derivative of `G` in `z''_x` is |
| 318 | `L(z' + z'') G`. -/ |
| 319 | lemma pderiv_prod_copySubst_couplingSubst {X R : Type} [Fintype X] [CommRing R] {n : ℕ} |
| 320 | {δ : Fin (n + 1) → R} (hδ : δ 0 = 1) {F L : MvPowerSeries X R} {x : X} |
| 321 | (hF : pderiv x F = L * F) : |
| 322 | pderiv (x, 1) (∏ c : Fin (n + 1), copySubst (couplingSubst δ c) F) = |
| 323 | copySubst 1 L * ∏ c : Fin (n + 1), copySubst (couplingSubst δ c) F := by |
| 324 | have h_first : couplingSubst δ 0 = 1 := by |
| 325 | simp [funext_iff, Fin.forall_fin_two, couplingSubst, hδ] |
| 326 | have h_rest : pderiv (x, 1) (∏ c : Fin n, copySubst (couplingSubst δ c.succ) F) = 0 := by |
| 327 | simp [Derivation.leibniz_prod, pderiv_copySubst, couplingSubst] |
| 328 | have h_deriv : pderiv (x, (1 : Fin 2)) (copySubst 1 F) = copySubst 1 L * copySubst 1 F := by |
| 329 | simp [pderiv_copySubst, hF] |
| 330 | rw [Fin.prod_univ_succ, Derivation.leibniz, h_rest, h_first, h_deriv, smul_zero, zero_add, |
| 331 | smul_eq_mul, mul_comm, mul_assoc] |
| 332 | |
| 333 | /-- Scaling the variables by `ϖ` in each factor of `∏ F(∑ A c k z_k)` (product over `c`) multiplies |
| 334 | the coefficient of `z ^ γ` by `ϖ ^ γ.degree`, the total degree of `γ`. -/ |
| 335 | lemma coeff_prod_copySubst_rescale {X K I R : Type} [Fintype X] [Fintype K] [Fintype I] |
| 336 | [CommRing R] (A : I → K → R) (F : MvPowerSeries X R) (ϖ : R) (γ : X × K →₀ ℕ) : |
| 337 | coeff γ (∏ c : I, copySubst (A c) (F.rescale fun _ : X ↦ ϖ)) = |
| 338 | ϖ ^ γ.degree * coeff γ (∏ c : I, copySubst (A c) F) := by |
| 339 | simp only [← rescale_copySubst, ← map_prod, coeff_rescale] |
| 340 | rw [Finsupp.prod_fintype _ _ (by simp), prod_pow_eq_pow_sum, ← Finsupp.degree_eq_sum] |
| 341 | |
| 342 | omit [Fintype Φ] in |
| 343 | /-- The monomial `z' ^ ν'` times the product, over `τ ∈ Φ₀`, of `j τ` copies of `z''_(τ⁺)`, where |
| 344 | `τ⁺ = pr (e τ) τ`, is `z' ^ ν' * z'' ^ ν''` with `ν'' = partnerDegree pr Φ₀ e j`. -/ |
| 345 | lemma monomial_mul_prod_X_partner {R : Type} [CommRing R] (pr : ℕ → Φ → Φ) (Φ₀ : Finset Φ) |
| 346 | (e j : Φ → ℕ) (ν' : Φ × Unit →₀ ℕ) : |
| 347 | MvPolynomial.monomial (ν'.mapDomain fun x : Φ × Unit ↦ (x, 0)) (1 : R) * |
| 348 | ∏ i ∈ Φ₀.sigma fun τ : Φ ↦ range (j τ), .X ((pr (e i.1) i.1, ()), (1 : Fin 2)) = |
| 349 | .monomial (pairExponent ν' (partnerDegree pr Φ₀ e j)) 1 := by |
| 350 | simp [pairExponent, partnerDegree, prod_sigma, MvPolynomial.X_pow_eq_monomial, |
| 351 | Finsupp.mapDomain_finsetSum, ← MvPolynomial.monomial_sum_one] |
| 352 | |
| 353 | /-- Let `κ ∈ ℂ_[p]` have norm greater than `1`, let `F = W exp (κ Ξ)` with `W`, `Ξ` integral, `W` a |
| 354 | unit and `Ξ(0) = 0`, let `δ 0 = 1` and let `G = F(z' + z'') ∏_(c ≠ 0) F(δ_c z')` in two copies `z'`, |
| 355 | `z''` of the variables. Differentiating `G` in the variables `z''_(t i)`, `i ∈ T`, gives |
| 356 | `κ ^ #T g G` with `g` integral and `g(z', 0) ≡ ∏ ∂_(t i) Ξ` modulo the maximal ideal. -/ |
| 357 | lemma exists_jet_prod_copySubst_couplingSubst {X ι : Type} [Fintype X] {κ : ℂ_[p]} (hκ : 1 < ‖κ‖) |
| 358 | {W Ξ : MvPowerSeries X (valRingCp p)} (hW : IsUnit W) (hΞ : Ξ.constantCoeff = 0) |
| 359 | {F : MvPowerSeries X ℂ_[p]} (hF : F = seriesToCp W * expSubst (κ • seriesToCp Ξ)) |
| 360 | {n : ℕ} {δ : Fin (n + 1) → ℂ_[p]} (hδ : δ 0 = 1) {G : MvPowerSeries (X × Fin 2) ℂ_[p]} |
| 361 | (hG : G = ∏ c : Fin (n + 1), copySubst (couplingSubst δ c) F) (t : ι → X) (T : Finset ι) : |
| 362 | ∃ g : MvPowerSeries (X × Fin 2) (valRingCp p), |
| 363 | (killCompl (Function.Embedding.sectL X 0) g).map (residue (valRingCp p)) = |
| 364 | ∏ i ∈ T, (pderiv (t i) Ξ).map (residue (valRingCp p)) ∧ |
| 365 | ∀ f : MvPolynomial (X × Fin 2) ℂ_[p], |
| 366 | jetPairing (f * ∏ i ∈ T, .X (t i, 1)) G = κ ^ #T * jetPairing f (seriesToCp g * G) := by |
| 367 | have h_log (i : ι) : ∃ B : MvPowerSeries (X × Fin 2) (valRingCp p), pderiv (t i, 1) G = |
| 368 | (κ • seriesToCp (copySubst 1 (pderiv (t i) Ξ)) + seriesToCp B) * G := by |
| 369 | obtain ⟨B, hB⟩ := exists_pderiv_mul_expSubst hW hΞ κ (t i) |
| 370 | rw [← hF] at hB |
| 371 | refine ⟨copySubst 1 B, ?_⟩ |
| 372 | simp [hG, pderiv_prod_copySubst_couplingSubst hδ hB, map_copySubst, Pi.one_def] |
| 373 | obtain ⟨g, hg_res, hg_jet⟩ := exists_jet_mul_prod_X hκ h_log T |
| 374 | exact ⟨g, by simp [← killCompl_map, hg_res, map_copySubst, killCompl_copySubst, ← Pi.one_def], |
| 375 | hg_jet⟩ |
| 376 | |
| 377 | /-- Let `Ξ = ∑ l a b • Γ_a ^ p ^ b` be the coupling sum over odd `a`, where `Γ_a` is the sum of all |
| 378 | `z_τ ^ p ^ a * z_(pr a τ)`, and let `ν' = powerDegree p Φ₀ e j`, `ν'' = partnerDegree pr Φ₀ e j` be |
| 379 | the degrees of `∏ z_τ ^ (p ^ e τ * j τ)` and `∏ z_(τ⁺) ^ j τ`, `τ⁺ = pr (e τ) τ`, for a coupling |
| 380 | family (odd `e τ`, each coupling `z_τ ^ p ^ e τ * z_(τ⁺)`, `τ ∈ Φ₀`, of strictly lowest degree among |
| 381 | the `z_τ₁ ^ p ^ a * z_(τ⁺)` with `τ₁ ∈ Φ₀`, `a` odd and `pr a τ₁ = τ⁺`). Let `F = W exp (κ Ξ)` over |
| 382 | `ℂ_[p]`, with `W` integral and a unit, `l a 0` a unit for odd `a`, and `κ ∈ ℂ_[p]` of negative |
| 383 | valuation `v(κ)`. Let `δ 0 = 1` and let `∏_c F(δ_c z) = U` be integral with constant term `1`. Then |
| 384 | the coefficient of `z' ^ ν' * z'' ^ ν''` in the product `G = F(z' + z'') ∏_(c ≠ 0) F(δ_c z')` given |
| 385 | by `couplingSubst δ` has valuation `|j| v(κ) - v(ν''!)`, where `|j| = ∑ j τ` and |
| 386 | `ν''! = ∏ (ν'' x)!`. -/ |
| 387 | lemma IsCouplingFamily.norm_coeff_pairExponent {pr : ℕ → Φ → Φ} {Φ₀ : Finset Φ} {e : Φ → ℕ} |
| 388 | {l : ℕ → ℕ → valRingCp p} (he : IsCouplingFamily pr Φ₀ e) |
| 389 | (hl : ∀ a : ℕ, Odd a → IsUnit (l a 0)) {κ : ℂ_[p]} (hκ : 1 < ‖κ‖) |
| 390 | {W U : MvPowerSeries (Φ × Unit) (valRingCp p)} (hW : IsUnit W) (hU : U.constantCoeff = 1) |
| 391 | {F : MvPowerSeries (Φ × Unit) ℂ_[p]} |
| 392 | (hF : F = seriesToCp W * expSubst (κ • seriesToCp (couplingSum {a : ℕ | Odd a} pr l))) |
| 393 | {n : ℕ} {δ : Fin (n + 1) → ℂ_[p]} (hδ : δ 0 = 1) |
| 394 | (h_prod : ∏ c : Fin (n + 1), F.rescale (fun _ : Φ × Unit ↦ δ c) = seriesToCp U) (j : Φ → ℕ) : |
| 395 | ‖∏ x : Φ × Unit, ((partnerDegree pr Φ₀ e j x)! : ℂ_[p])‖ * |
| 396 | ‖coeff (pairExponent (powerDegree p Φ₀ e j) (partnerDegree pr Φ₀ e j)) |
| 397 | (∏ c : Fin (n + 1), copySubst (couplingSubst δ c) F)‖ = |
| 398 | ‖κ‖ ^ ∑ τ ∈ Φ₀, j τ := by |
| 399 | -- Differentiating `G` in `z''` gives `κ ^ |j| g G` with `g ≡ ∏ (∂Ξ / ∂z_(τ⁺)) ^ j τ` at |
| 400 | -- `z'' = 0`, where `G = U`; the coefficient of `z' ^ ν'` in `g U` is a unit. |
| 401 | set ν' : Φ × Unit →₀ ℕ := powerDegree p Φ₀ e j |
| 402 | set ν'' : Φ × Unit →₀ ℕ := partnerDegree pr Φ₀ e j |
| 403 | set G : MvPowerSeries ((Φ × Unit) × Fin 2) ℂ_[p] := |
| 404 | ∏ c : Fin (n + 1), copySubst (couplingSubst δ c) F with hG |
| 405 | -- `ν'₀` is the exponent of `z' ^ ν'` in the two copies of the variables. |
| 406 | set ν'₀ : (Φ × Unit) × Fin 2 →₀ ℕ := ν'.mapDomain fun x : Φ × Unit ↦ (x, 0) with hν'₀ |
| 407 | -- Step 1: the derivatives in `z''`, taken `j τ` times at each `τ⁺`. |
| 408 | obtain ⟨g, hg_res, hg_jet⟩ := exists_jet_prod_copySubst_couplingSubst hκ hW |
| 409 | constantCoeff_couplingSum hF hδ hG (fun i : Σ _ : Φ, ℕ ↦ (pr (e i.1) i.1, ())) |
| 410 | (Φ₀.sigma fun τ : Φ ↦ range (j τ)) |
| 411 | have h_jet : jetPairing (.monomial (pairExponent ν' ν'') 1) G = |
| 412 | κ ^ (∑ τ ∈ Φ₀, j τ) * jetPairing (.monomial ν'₀ 1) (seriesToCp g * G) := by |
| 413 | simp only [← monomial_mul_prod_X_partner pr Φ₀ e j ν', hg_jet, card_sigma, card_range, ν'', |
| 414 | hν'₀] |
| 415 | -- Step 2: put `z'' = 0`. |
| 416 | let ι : Φ × Unit ↪ (Φ × Unit) × Fin 2 := Function.Embedding.sectL (Φ × Unit) 0 |
| 417 | have hG_zero : killCompl ι G = seriesToCp U := by |
| 418 | simp [G, ι, killCompl_copySubst, couplingSubst, ← h_prod] |
| 419 | have hg_zero : (killCompl ι g).map (residue (valRingCp p)) = ∏ τ ∈ Φ₀, |
| 420 | (pderiv (pr (e τ) τ, ()) (couplingSum {a : ℕ | Odd a} pr l)).map |
| 421 | (residue (valRingCp p)) ^ j τ := by |
| 422 | simp only [ι, hg_res, prod_sigma, prod_const, card_range] |
| 423 | have h_unit : ‖coeff ν'₀ (seriesToCp g * G)‖ = 1 := by |
| 424 | rw [show ν'₀ = ν'.embDomain ι from (Finsupp.embDomain_eq_mapDomain ι ν').symm, |
| 425 | ← coeff_killCompl, map_mul, hG_zero, killCompl_map, ← map_mul, |
| 426 | he.norm_coeff_powerDegree hl hg_zero hU] |
| 427 | -- Step 3: pass from jets to coefficients and divide by `ν'!`. |
| 428 | have h_fact : (ν'₀.prod fun (_ : (Φ × Unit) × Fin 2) (n : ℕ) ↦ (n ! : ℂ_[p])) = |
| 429 | ∏ x : Φ × Unit, ((ν' x)! : ℂ_[p]) := by |
| 430 | simp [hν'₀, Finsupp.prod_mapDomain_index_inj (Prod.mk_left_injective _), Finsupp.prod_fintype] |
| 431 | rw [jetPairing_monomial, jetPairing_monomial, prod_factorial_pairExponent, h_fact] at h_jet |
| 432 | have h_div : (∏ x : Φ × Unit, ((ν'' x)! : ℂ_[p])) * coeff (pairExponent ν' ν'') G = |
| 433 | κ ^ (∑ τ ∈ Φ₀, j τ) * coeff ν'₀ (seriesToCp g * G) := |
| 434 | mul_left_cancel₀ (prod_ne_zero_iff.2 fun x _ ↦ cast_ne_zero.2 (factorial_ne_zero (ν' x))) |
| 435 | (by linear_combination h_jet) |
| 436 | rw [← norm_mul, h_div, norm_mul, h_unit, mul_one, norm_pow] |
| 437 | |
| 438 | end couplings |
| 439 | |
| 440 | namespace CMLattice |
| 441 | |
| 442 | variable {d : ℕ} [PrimeSevenModEight d] (C : CMLattice d) {p : ℕ} [Fact p.Prime] |
| 443 | |
| 444 | /-- Let `d` be a prime `≡ 7 mod 8` (the class `PrimeSevenModEight d`). At a prime `p` inert in |
| 445 | `ℚ(√-d)` (that is, `(p / d) = -1`), `ρ_p (p + 1) = 1 / (p - 1)` for |
| 446 | `ρ_p = varpiValuation d p = 1 / (p² - 1)`. -/ |
| 447 | lemma varpiValuation_mul_add_one_of_inert (h_inert : chiK d p = -1) : |
| 448 | varpiValuation d p * (p + 1) = 1 / (p - 1) := by |
| 449 | have hp : (1 : ℝ) < p := mod_cast Fact.out (p := p.Prime).one_lt |
| 450 | rw [varpiValuation_of_inert h_inert, show (p : ℝ) ^ 2 - 1 = (p - 1) * (p + 1) by ring] |
| 451 | field_simp [sub_ne_zero.2 hp.ne'] |
| 452 | |
| 453 | /-- Let `d` be a prime `≡ 7 mod 8` and let the prime `p` be inert in `ℚ(√-d)`, that is, the Legendre |
| 454 | symbol `chiK d p = (p / d)` is `-1`. If `v(ϖ) = ρ_p = varpiValuation d p = 1 / (p² - 1)`, then |
| 455 | `ϖ ^ (p + 1) / p` has valuation `1 / (p - 1) - 1`. -/ |
| 456 | lemma norm_pow_div_of_inert {ϖ : ℂ_[p]} (h_inert : chiK d p = -1) |
| 457 | (hϖ : ‖ϖ‖ = p ^ (-varpiValuation d p)) : |
| 458 | ‖ϖ ^ (p + 1) / p‖ = p ^ (1 - 1 / (p - 1) : ℝ) := by |
| 459 | have hp_pos : (0 : ℝ) < p := cast_pos.2 (Fact.out : p.Prime).pos |
| 460 | have h_exponent : -varpiValuation d p * (p + 1 : ℕ) = -(1 / (p - 1) : ℝ) := by |
| 461 | rw [neg_mul, cast_add_one, varpiValuation_mul_add_one_of_inert h_inert] |
| 462 | calc ‖ϖ ^ (p + 1) / p‖ = (p : ℝ) ^ (-varpiValuation d p * (p + 1 : ℕ)) * p := by |
| 463 | rw [norm_div, norm_pow, hϖ, norm_p_eq_inv, div_inv_eq_mul, Real.rpow_mul_natCast hp_pos.le] |
| 464 | _ = p ^ (1 - 1 / (p - 1) : ℝ) := by |
| 465 | rw [h_exponent, ← Real.rpow_add_one hp_pos.ne', neg_add_eq_sub] |
| 466 | |
| 467 | /-- Let `d` be a prime `≡ 7 mod 8` and let the prime `p` be inert in `ℚ(√-d)`. If `ϖ ∈ ℂ_[p]` |
| 468 | has valuation `ρ_p = varpiValuation d p = 1 / (p² - 1)`, then `ϖ ^ (p + 1) / p` has negative |
| 469 | valuation, that is, norm greater than `1`. -/ |
| 470 | lemma one_lt_norm_pow_div_of_inert {ϖ : ℂ_[p]} (h_inert : chiK d p = -1) |
| 471 | (hϖ : ‖ϖ‖ = p ^ (-varpiValuation d p)) : 1 < ‖ϖ ^ (p + 1) / p‖ := by |
| 472 | have hp_ne_two : p ≠ 2 := fun h ↦ by simp [h, QuadField.chiK_two] at h_inert |
| 473 | have hp_two : (2 : ℝ) < p := mod_cast (Fact.out : p.Prime).two_le.lt_of_ne' hp_ne_two |
| 474 | rw [norm_pow_div_of_inert h_inert hϖ] |
| 475 | refine Real.one_lt_rpow (by linarith) (sub_pos.2 ?_) |
| 476 | rw [div_lt_one (by linarith)] |
| 477 | linarith |
| 478 | |
| 479 | omit [PrimeSevenModEight d] in |
| 480 | /-- Let `C : CMLattice d` be a CM lattice, let `θ` be the series over `ℂ_[p]` of its normalized |
| 481 | theta function `C.θ`, and suppose that `Θ = C.thetaProd μ m = ∏ θ(μ_i z) ^ m i` has the exponential |
| 482 | factorization `Θ(ϖ z) = W exp (κ Ξ)` with scalars `ϖ`, `κ ∈ ℂ_[p]`, integral series `W`, `Ξ` and |
| 483 | `Ξ(0) = 0`. Then `W` is a unit, since its constant term is `Θ(0) = 1`. -/ |
| 484 | lemma isUnit_of_rescale_thetaProd_eq [PadicPlace p] {J X : Type} [Fintype J] [Fintype X] |
| 485 | {μ : J → X → ℂ_[p]} {m : J → ℕ} {ϖ κ : ℂ_[p]} {W Ξ : MvPowerSeries X (valRingCp p)} |
| 486 | (hΞ : Ξ.constantCoeff = 0) |
| 487 | (hW : (C.thetaProd μ m).rescale (fun _ : X ↦ ϖ) = seriesToCp W * expSubst (κ • seriesToCp Ξ)) : |
| 488 | IsUnit W := by |
| 489 | have h_const : (W.constantCoeff : ℂ_[p]) = 1 := by |
| 490 | simpa [constantCoeff_thetaProd, PowerSeries.constantCoeff_subst_of_constantCoeff_zero, hΞ] using |
| 491 | (congrArg (coeff 0) hW).symm |
| 492 | rw [isUnit_iff_constantCoeff, isUnit_integer_iff_norm_eq_one, h_const, norm_one] |
| 493 | |
| 494 | /-- Let `C` be a CM lattice for a prime `d ≡ 7 mod 8`, let the linear forms `μ` be integral, let |
| 495 | `Θ = C.thetaProd μ m = ∏ θ(μ_i z) ^ m i`, where `θ` is the series over `ℂ_[p]` of the normalized |
| 496 | theta function `C.θ` (`PadicPlace p` fixes an embedding of `ℂ` in `ℂ_[p]`), and let `v(ϖ) ≥ ρ_p`, |
| 497 | where `ρ_p = varpiValuation d p` is `1 / (p - 1)`, `1 / (p² - 1)`, `1 / (2 p - 2)` for `p` split, |
| 498 | inert, ramified in `ℚ(√-d)`. There are six integral `δ_c` with `δ 0 = 1` such that `∏ Θ(δ_c ϖ z)` |
| 499 | is integral with constant term `1`. -/ |
| 500 | lemma exists_prod_rescale_rescale_thetaProd_eq [PadicPlace p] {J X : Type} [Fintype J] |
| 501 | [Fintype X] {μ : J → X → ℂ_[p]} (m : J → ℕ) {ϖ : ℂ_[p]} |
| 502 | (hμ : ∀ (i : J) (x : X), ‖μ i x‖ ≤ 1) (hϖ : ‖ϖ‖ ≤ p ^ (-varpiValuation d p)) : |
| 503 | ∃ (δ : Fin 6 → ℂ_[p]) (U : MvPowerSeries X (valRingCp p)), |
| 504 | δ 0 = 1 ∧ (∀ c : Fin 6, ‖δ c‖ ≤ 1) ∧ U.constantCoeff = 1 ∧ |
| 505 | ∏ c : Fin 6, ((C.thetaProd μ m).rescale fun _ : X ↦ ϖ).rescale (fun _ : X ↦ δ c) = |
| 506 | seriesToCp U := by |
| 507 | -- the product lies in `C.multiSeriesRing μ`, whose rescaled series are integral |
| 508 | obtain ⟨δ, hδ, h_mem, -, h_const⟩ : ∃ δ : Fin 6 → ℤ_[p], δ 0 = 1 ∧ |
| 509 | C.scaledThetaProd μ m δ ∈ C.multiSeriesRing μ ∧ |
| 510 | (∃ V ∈ C.multiSeriesRing μ, C.scaledThetaProd μ m δ * V = 1) ∧ |
| 511 | constantCoeff (C.scaledThetaProd μ m δ) = 1 := C.exists_scaledThetaProd_mem_mul_eq_one μ m |
| 512 | obtain ⟨U, hU : seriesToCp U = (C.scaledThetaProd μ m δ).rescale fun _ : X ↦ ϖ⟩ := |
| 513 | C.rescale_mem_range_seriesToCp_of_mem_multiSeriesRing hμ hϖ h_mem |
| 514 | have hU_const : (U.constantCoeff : ℂ_[p]) = 1 := by simpa [h_const] using congrArg (coeff 0) hU |
| 515 | refine ⟨fun c ↦ algebraMap ℚ_[p] ℂ_[p] (δ c), U, by simp [hδ], fun c ↦ ?_, |
| 516 | Subtype.ext hU_const, ?_⟩ |
| 517 | · simpa using (δ c).norm_le_one |
| 518 | · simp only [hU, scaledThetaProd, map_prod, rescale_rescale, mul_comm] |
| 519 | |
| 520 | /-- Let `C` be a CM lattice for a prime `d ≡ 7 mod 8`, and let `θ`, `y` be the series over `ℂ_[p]` |
| 521 | of the normalized theta function `C.θ` and of the function `C.translatedY` of `℘` and `℘'` at |
| 522 | `z + t`. Let `Θ = C.thetaProd μ m = ∏ θ(μ_i z) ^ m i` for integral linear forms `μ_i`. The ring |
| 523 | `C.multiSeriesRing μ` consists of the integral series in the `y(μ_i z)`. |
| 524 | |
| 525 | Let `p` be inert, and let `Θ` have the normal form `Θ(ϖ z) = W exp (ϖ ^ (p + 1) / p * ∑ l a b • |
| 526 | Γ_a ^ p ^ b)` with `W` integral, `a` odd in the sum, `Γ_a` the sum of all |
| 527 | `z_τ ^ p ^ a * z_(pr a τ)`, `v(ϖ) = ρ_p = varpiValuation d p` and with `l a 0` a unit for odd `a`. |
| 528 | For a coupling family (odd `e τ`, each coupling `z_τ ^ p ^ e τ * z_(τ⁺)`, `τ ∈ Φ₀`, |
| 529 | `τ⁺ = pr (e τ) τ`, of strictly lowest degree among the `z_τ₁ ^ p ^ a * z_(τ⁺)` with `τ₁ ∈ Φ₀`, `a` |
| 530 | odd and `pr a τ₁ = τ⁺`) let `ν = ν' + ν''` be the degree of `∏ (z_τ ^ p ^ e τ * z_(τ⁺)) ^ j τ`, with |
| 531 | `ν' = powerDegree p Φ₀ e j` and `ν'' = partnerDegree pr Φ₀ e j`. Let `val₆(ν)` be the least |
| 532 | valuation of a coefficient of degree `ν` in a product `∏ (H_c Θ)(z_c)` over six copies, with |
| 533 | `H_c ∈ C.multiSeriesRing μ`. Then `v(ν''!) + val₆(ν) ≤ |j| / (p - 1) - |j| - ρ_p |ν|` with |
| 534 | `|j| = ∑ j τ` and `ν''! = ∏ (ν'' x)!`. -/ |
| 535 | lemma leastValLE_partnerDegree_of_isCouplingFamily [PadicPlace p] {J Φ : Type} |
| 536 | [Fintype J] [Fintype Φ] {μ : J → Φ × Unit → ℂ_[p]} {m : J → ℕ} {pr : ℕ → Φ → Φ} {ϖ : ℂ_[p]} |
| 537 | {l : ℕ → ℕ → valRingCp p} {Φ₀ : Finset Φ} {e : Φ → ℕ} (h_inert : chiK d p = -1) |
| 538 | (hμ : ∀ (i : J) (x : Φ × Unit), ‖μ i x‖ ≤ 1) (hϖ : ‖ϖ‖ = p ^ (-varpiValuation d p)) |
| 539 | (hl : ∀ a : ℕ, Odd a → IsUnit (l a 0)) |
| 540 | (hΘ : HasNormalForm (partnerExponents d p) pr ϖ l (C.thetaProd μ m)) |
| 541 | (he : IsCouplingFamily pr Φ₀ e) (j : Φ → ℕ) : |
| 542 | C.LeastValLE μ m 6 (powerDegree p Φ₀ e j + partnerDegree pr Φ₀ e j) |
| 543 | ((∑ τ ∈ Φ₀, (j τ : ℝ)) / (p - 1) - ∑ τ ∈ Φ₀, (j τ : ℝ) - |
| 544 | varpiValuation d p * (powerDegree p Φ₀ e j + partnerDegree pr Φ₀ e j).degree - |
| 545 | ∑ x : Φ × Unit, (padicValNat p (partnerDegree pr Φ₀ e j x)! : ℝ)) := by |
| 546 | -- Substitute `z_0 = z' + z''` and `z_c = δ_c z'` in `∏ Θ(z_c)` and scale by `ϖ`; the coefficient |
| 547 | -- of `z' ^ ν' * z'' ^ ν''` is given by `norm_coeff_pairExponent`. |
| 548 | set ν' : Φ × Unit →₀ ℕ := powerDegree p Φ₀ e j |
| 549 | set ν'' : Φ × Unit →₀ ℕ := partnerDegree pr Φ₀ e j |
| 550 | set ρ : ℝ := varpiValuation d p |
| 551 | have hp_pos : (0 : ℝ) < p := cast_pos.2 (Fact.out : p.Prime).pos |
| 552 | rw [partnerExponents_of_inert h_inert] at hΘ |
| 553 | obtain ⟨W, hW : (C.thetaProd μ m).rescale (fun _ : Φ × Unit ↦ ϖ) = seriesToCp W * |
| 554 | expSubst ((ϖ ^ (p + 1) / p) • seriesToCp (couplingSum {a : ℕ | Odd a} pr l))⟩ := hΘ |
| 555 | have hW_unit : IsUnit W := C.isUnit_of_rescale_thetaProd_eq constantCoeff_couplingSum hW |
| 556 | have h_norm : ‖ϖ ^ (p + 1) / p‖ = p ^ (1 - 1 / (p - 1) : ℝ) := |
| 557 | norm_pow_div_of_inert h_inert hϖ |
| 558 | -- The coefficient for the scaled series `Θ(ϖ z)`, with `∏ Θ(δ_c ϖ z) = U` integral. |
| 559 | obtain ⟨δ, U, hδ_zero, hδ_le, hU_const, h_prod⟩ : |
| 560 | ∃ (δ : Fin 6 → ℂ_[p]) (U : MvPowerSeries (Φ × Unit) (valRingCp p)), |
| 561 | δ 0 = 1 ∧ (∀ c : Fin 6, ‖δ c‖ ≤ 1) ∧ U.constantCoeff = 1 ∧ |
| 562 | ∏ c : Fin 6, ((C.thetaProd μ m).rescale fun _ ↦ ϖ).rescale (fun _ ↦ δ c) = seriesToCp U := |
| 563 | C.exists_prod_rescale_rescale_thetaProd_eq m hμ hϖ.le |
| 564 | have h_scaled : ‖∏ x : Φ × Unit, ((ν'' x)! : ℂ_[p])‖ * ‖coeff (pairExponent ν' ν'') |
| 565 | (∏ c : Fin 6, copySubst (couplingSubst δ c) ((C.thetaProd μ m).rescale fun _ ↦ ϖ))‖ = |
| 566 | ‖ϖ ^ (p + 1) / p‖ ^ ∑ τ ∈ Φ₀, j τ := |
| 567 | he.norm_coeff_pairExponent hl (one_lt_norm_pow_div_of_inert h_inert hϖ) |
| 568 | hW_unit hU_const hW hδ_zero h_prod j |
| 569 | -- Undoing the scaling by `ϖ` lowers the valuation by `ρ_p |ν|`. |
| 570 | set G : MvPowerSeries ((Φ × Unit) × Fin 2) ℂ_[p] := |
| 571 | ∏ c : Fin 6, copySubst (couplingSubst δ c) (C.thetaProd μ m) with hG |
| 572 | set valFact : ℝ := ∑ x : Φ × Unit, (padicValNat p (ν'' x)! : ℝ) with h_valFact |
| 573 | set sumJ : ℝ := ∑ τ ∈ Φ₀, (j τ : ℝ) with h_sumJ |
| 574 | have h_degree : (pairExponent ν' ν'').degree = (ν' + ν'').degree := by |
| 575 | rw [← mapDomain_fst_pairExponent, Finsupp.degree_mapDomain] |
| 576 | have h_fact : ‖∏ x : Φ × Unit, ((ν'' x)! : ℂ_[p])‖ = p ^ (-valFact) := |
| 577 | norm_prod_natCast_eq_rpow_neg_sum (fun x ↦ (ν'' x).factorial_ne_zero) |
| 578 | have h_rpow : p ^ (-valFact + -ρ * (ν' + ν'').degree) * ‖coeff (pairExponent ν' ν'') G‖ = |
| 579 | p ^ ((1 - 1 / (p - 1)) * sumJ) := by |
| 580 | rw [coeff_prod_copySubst_rescale, norm_mul, norm_pow, h_degree, h_fact, hϖ, h_norm] at h_scaled |
| 581 | rw [Real.rpow_add hp_pos, Real.rpow_mul_natCast hp_pos.le, mul_assoc, h_scaled, h_sumJ, |
| 582 | ← cast_sum, Real.rpow_mul_natCast hp_pos.le] |
| 583 | -- Solve for the norm of the coefficient. |
| 584 | rw [mul_comm, ← eq_div_iff (by positivity), ← Real.rpow_sub hp_pos] at h_rpow |
| 585 | -- The substitution is integral, so this coefficient bounds `val₆(ν)`. |
| 586 | have h_le : (p : ℝ) ^ (-(sumJ / (p - 1) - sumJ - ρ * (ν' + ν'').degree - valFact)) ≤ |
| 587 | ‖coeff (pairExponent ν' ν'') (∏ c, copySubst (couplingSubst δ c) (1 * C.thetaProd μ m))‖ := by |
| 588 | simp only [one_mul, ← hG, h_rpow] |
| 589 | exact le_of_eq (by ring_nf) |
| 590 | simpa only [mapDomain_fst_pairExponent] using |
| 591 | leastValLE_of_copySubst (norm_couplingSubst_le_one hδ_le) (fun _ ↦ one_mem _) h_le |
| 592 | |
| 593 | /-- Couplings. Let `C` be a CM lattice for a prime `d ≡ 7 mod 8`, let `θ` be the series over `ℂ_[p]` |
| 594 | of its normalized theta function `C.θ`, let `p` be inert in `ℚ(√-d)`, let the linear forms `μ` |
| 595 | be integral, and let the theta product `Θ = C.thetaProd μ m = ∏ θ(μ_i z) ^ m i` have the normal form |
| 596 | `Θ(ϖ z) = W exp (ϖ ^ (p + 1) / p * ∑ l a b • Γ_a ^ p ^ b)` with `W` integral, `a` odd in the sum, |
| 597 | `Γ_a` the sum of all `z_τ ^ p ^ a * z_(pr a τ)`, `v(ϖ) = ρ_p = varpiValuation d p` and `l a 0` a |
| 598 | unit for odd `a`. For a coupling family (odd `e τ`, each coupling `z_τ ^ p ^ e τ * z_(τ⁺)`, |
| 599 | `τ ∈ Φ₀`, `τ⁺ = pr (e τ) τ`, of strictly lowest degree among those with the partner `τ⁺`) let `ν'` |
| 600 | and `ν''` be the degrees of `∏ z_τ ^ (p ^ e τ * j τ)` and `∏ z_(τ⁺) ^ j τ`, and `ν = ν' + ν''`. Let |
| 601 | `val₆(ν)` be the least valuation of a coefficient of degree `ν` in a product `∏ (H_c Θ)(z_c)` over |
| 602 | six copies, with `H_c` in the ring `C.multiSeriesRing μ` of integral series in the `y(μ_i z)`, where |
| 603 | `y` is the series of `C.translatedY`. Then `val₆(ν) ≤ -|j|` and |
| 604 | `v(ν'! ν''!) + val₆(ν) ≤ γ_p |ν| - |j|`, where `|j| = ∑ j τ` and |
| 605 | `γ_p = gammaPrime d p = 1 / (p - 1) - ρ_p = p / (p² - 1)`. -/ |
| 606 | lemma leastValLE_six_of_isCouplingFamily [PadicPlace p] {J Φ : Type} |
| 607 | [Fintype J] [Fintype Φ] {μ : J → Φ × Unit → ℂ_[p]} {m : J → ℕ} {pr : ℕ → Φ → Φ} {ϖ : ℂ_[p]} |
| 608 | {l : ℕ → ℕ → valRingCp p} {Φ₀ : Finset Φ} {e : Φ → ℕ} (h_inert : chiK d p = -1) |
| 609 | (hμ : ∀ (i : J) (x : Φ × Unit), ‖μ i x‖ ≤ 1) (hϖ : ‖ϖ‖ = p ^ (-varpiValuation d p)) |
| 610 | (hl : ∀ a : ℕ, Odd a → IsUnit (l a 0)) |
| 611 | (hΘ : HasNormalForm (partnerExponents d p) pr ϖ l (C.thetaProd μ m)) |
| 612 | (he : IsCouplingFamily pr Φ₀ e) (j : Φ → ℕ) : |
| 613 | C.LeastValLE μ m 6 (powerDegree p Φ₀ e j + partnerDegree pr Φ₀ e j) (-∑ τ ∈ Φ₀, (j τ : ℝ)) ∧ |
| 614 | C.LeastValLE μ m 6 (powerDegree p Φ₀ e j + partnerDegree pr Φ₀ e j) |
| 615 | (gammaPrime d p * (powerDegree p Φ₀ e j + partnerDegree pr Φ₀ e j).degree - |
| 616 | ∑ τ ∈ Φ₀, (j τ : ℝ) - |
| 617 | ∑ x : Φ × Unit, (padicValNat p (powerDegree p Φ₀ e j x)! : ℝ) - |
| 618 | ∑ x : Φ × Unit, (padicValNat p (partnerDegree pr Φ₀ e j x)! : ℝ)) := by |
| 619 | set ν' : Φ × Unit →₀ ℕ := powerDegree p Φ₀ e j |
| 620 | set ν'' : Φ × Unit →₀ ℕ := partnerDegree pr Φ₀ e j |
| 621 | set ρ : ℝ := varpiValuation d p |
| 622 | set sumJ : ℝ := ∑ τ ∈ Φ₀, (j τ : ℝ) with h_sumJ |
| 623 | have h_val : C.LeastValLE μ m 6 (ν' + ν'') (sumJ / (p - 1) - sumJ - ρ * (ν' + ν'').degree - |
| 624 | ∑ x : Φ × Unit, (padicValNat p (ν'' x)! : ℝ)) := |
| 625 | C.leastValLE_partnerDegree_of_isCouplingFamily h_inert hμ hϖ hl hΘ he j |
| 626 | have h_degree : ((ν' + ν'').degree : ℝ) = ν'.degree + sumJ := by |
| 627 | simp [ν'', sumJ, degree_partnerDegree] |
| 628 | refine ⟨h_val.mono ?_, h_val.mono ?_⟩ |
| 629 | · -- `|ν| ≥ (p + 1) |j|` and `ρ_p (p + 1) = 1 / (p - 1)` |
| 630 | have h_power : p * sumJ ≤ ν'.degree := by |
| 631 | rw [degree_powerDegree, cast_sum, h_sumJ, mul_sum] |
| 632 | exact sum_le_sum fun τ hτ ↦ |
| 633 | mod_cast Nat.mul_le_mul_right (j τ) (le_self_pow (he.odd τ hτ).pos.ne' p) |
| 634 | have h_scale : sumJ / (p - 1) ≤ ρ * (ν' + ν'').degree := by |
| 635 | rw [h_degree, ← one_div_mul_eq_div, ← varpiValuation_mul_add_one_of_inert h_inert, mul_assoc, |
| 636 | _root_.add_one_mul] |
| 637 | exact mul_le_mul_of_nonneg_left (add_le_add_left h_power _) (varpiValuation_nonneg d p) |
| 638 | linarith [show 0 ≤ ∑ x : Φ × Unit, (padicValNat p (ν'' x)! : ℝ) by positivity] |
| 639 | · -- `v(ν'!) ≤ |ν'| / (p - 1)` and `|ν| = |ν'| + |j|` |
| 640 | have h_legendre : ∑ x : Φ × Unit, (padicValNat p (ν' x)! : ℝ) ≤ ν'.degree / (p - 1) := by |
| 641 | rw [Finsupp.degree_eq_sum, cast_sum, Finset.sum_div] |
| 642 | exact sum_le_sum fun x _ ↦ |
| 643 | (padicValNat_factorial_mem_Icc (Nat.lt_pow_self (Fact.out : p.Prime).one_lt)).2 |
| 644 | rw [gammaPrime, sub_mul, one_div_mul_eq_div, h_degree, add_div] |
| 645 | linarith |
| 646 | |
| 647 | end CMLattice |
| 648 | |
| 649 | end New |