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.PowerSeries.Exp.Padic.Subst |
| 4 | import TauCeti.NumberTheory.Padics.Distribution.Amice.Norm |
| 5 | public import Mathlib.RingTheory.PowerSeries.Log |
| 6 | import Mathlib.NumberTheory.Padics.MahlerBasis |
| 7 | import Mathlib.RingTheory.Valuation.Extension |
| 8 | import Mathlib.RingTheory.Valuation.LocalSubring |
| 9 | import TauCeti.RingTheory.PowerSeries.Binomial |
| 10 | import TauCeti.RingTheory.PowerSeries.Substitution |
| 11 | public import Lib.CM.FormalGroup.IntegralParameter |
| 12 | import Lib.General.Algebra.AbsIntegrallyClosed |
| 13 | |
| 14 | /-! |
| 15 | # Integrality of exponentials, logarithms and roots of power series |
| 16 | |
| 17 | The file first shows that, over an algebraically closed valued field, there is an integral point at |
| 18 | which finitely many given polynomials are at least as large as all their coefficients. It then |
| 19 | bounds the coefficients of power series built by exponentials, logarithms and roots over `ℂ_[p]`. |
| 20 | There `v` denotes the additive valuation with `v(p) = 1`, so that `‖c‖ = p ^ (-v(c))`, and `v(g)` |
| 21 | for a series `g` is the infimum of the valuations of its coefficients. `expSubst g` is `exp ℂ_[p]` |
| 22 | substituted at `g`, written `exp g`, and `logOf f` is `log ℂ_[p]`, the series of `log (1 + X)`, |
| 23 | substituted at `f - 1`, written `log f`. For `g(0) = 0` it proves that `exp g` is integral when |
| 24 | `v(g) ≥ 1 / (p - 1)`, gives a divisibility criterion for `exp g - 1`, and shows that `exp g` lies in |
| 25 | a ring `𝒪[[T]]` if its `m`-th power does, for `m` prime to `p`. |
| 26 | |
| 27 | The imported notions used in the statements are these. |
| 28 | |
| 29 | * `seriesToCp` is the inclusion of the series with integral coefficients into all series over |
| 30 | `ℂ_[p]`. Its range consists of the series whose coefficients have norm at most `1`. |
| 31 | * `IsSeriesGenerator B T` says that `T = X + ⋯` and that `B` is the ring of all integral series in |
| 32 | `T`, written `B = 𝒪[[T]]`. |
| 33 | |
| 34 | ## Main definitions and results |
| 35 | |
| 36 | * `New.exists_val_coeff_le_val_eval`: at one integral point, finitely many polynomials are at least |
| 37 | as large as all their coefficients. |
| 38 | * `New.norm_coeff_expSubst_le_one`: `exp g` is integral if `g(0) = 0` and `v(g) ≥ 1 / (p - 1)`, |
| 39 | degree by degree. |
| 40 | * `New.norm_coeff_expSubst_sub_one_le`, `New.IsSeriesGenerator.mem_of_expSubst_smul_eq`: for |
| 41 | `v(c) ≥ 1 / (p - 1)` and `g(0) = 0`, the number `c` divides `exp g - 1` if it divides `g`, and, |
| 42 | for `c ≠ 0` and in a ring `𝒪[[T]]`, `c` divides `g` if it divides `exp g - 1`. |
| 43 | * `New.IsSeriesGenerator.expSubst_mem_of_pow_mem`: if `g(0) = 0` and `(exp g) ^ m ∈ 𝒪[[T]]` with `m` |
| 44 | prime to `p`, then `exp g ∈ 𝒪[[T]]`. |
| 45 | |
| 46 | ## Relation to the literature |
| 47 | |
| 48 | Known result: the Gauss norm equals the supremum norm on the unit polydisc over an algebraically |
| 49 | closed valued field. Source: Bosch, Güntzer and Remmert, *Non-Archimedean Analysis*. |
| 50 | |
| 51 | Known result: the integrality of the `p`-adic exponential and logarithm on series of large enough |
| 52 | valuation, and of the binomial series with exponent in `ℤ_p`. |
| 53 | -/ |
| 54 | |
| 55 | @[expose] public section |
| 56 | |
| 57 | /-! |
| 58 | ## A general integral point |
| 59 | |
| 60 | Each polynomial is a constant times a polynomial with nonzero reduction. As the residue field is |
| 61 | infinite, there is a point at which none of the reductions vanishes. |
| 62 | -/ |
| 63 | |
| 64 | section IntegralityPrinciple |
| 65 | |
| 66 | open Finset IsLocalRing MvPolynomial New.Variety.IsAbsIntegrallyClosed |
| 67 | |
| 68 | /-- Over an algebraically closed valued field there is an integral point at which each of finitely |
| 69 | many polynomials takes a value at least as large as all its coefficients. -/ |
| 70 | lemma New.exists_val_coeff_le_val_eval {K σ : Type*} {n : ℕ} [Field K] [IsAlgClosed K] |
| 71 | (v : Valuation K NNReal) (f : Fin n → MvPolynomial σ K) : |
| 72 | ∃ y : σ → v.valuationSubring, |
| 73 | ∀ (i : Fin n) (m : σ →₀ ℕ), |
| 74 | v ((f i).coeff m) ≤ v (eval (algebraMap v.valuationSubring K ∘ y) (f i)) := by |
| 75 | classical |
| 76 | -- Write `f i = c i • g i` with `g i` over `V` of nonzero reduction. The residue field is |
| 77 | -- algebraically closed, hence infinite, so at some `y` no reduction vanishes: each `g i` takes |
| 78 | -- a unit value at `y`. |
| 79 | set V : ValuationSubring K := v.valuationSubring |
| 80 | have h_scale (q : MvPolynomial σ K) : |
| 81 | ∃ (c : K) (g : MvPolynomial σ V), map (residue V) g ≠ 0 ∧ q = c • g.map (algebraMap V K) := by |
| 82 | -- A coefficient `q.coeff k` of largest valuation divides the others, with quotients `w m`. |
| 83 | obtain ⟨k, hk⟩ : ∃ k : σ →₀ ℕ, ∀ m ∈ q.support, |
| 84 | V.valuation (q.coeff m) ≤ V.valuation (q.coeff k) := |
| 85 | Set.exists_upper_bound_image q.support (V.valuation ∘ q.coeff) (Set.toFinite _) |
| 86 | have h_dvd : ∀ m ∈ q.support, ∃ w : V, (w : K) * q.coeff k = q.coeff m := |
| 87 | fun m hm ↦ (V.valuation_le_iff _ _).1 (hk m hm) |
| 88 | choose! w hw using h_dvd |
| 89 | let g : MvPolynomial σ V := monomial k 1 + ∑ d ∈ q.support.erase k, monomial d (w d) |
| 90 | have h_coeff (d : σ →₀ ℕ) : |
| 91 | g.coeff d = if k = d then 1 else if d ∈ q.support then w d else 0 := by |
| 92 | obtain rfl | hkd := eq_or_ne k d <;> simp [g, coeff_monomial, eq_comm, *] |
| 93 | refine ⟨q.coeff k, g, ne_of_apply_ne (·.coeff k) (by simp [coeff_map, h_coeff]), ?_⟩ |
| 94 | ext d |
| 95 | rw [AddMonoidAlgebra.coeff_smul_apply, coeff_map, h_coeff] |
| 96 | split_ifs with hkd hd |
| 97 | · simp [hkd] |
| 98 | · simp [← hw d hd, mul_comm] |
| 99 | · simpa using hd |
| 100 | -- Now `f i = c i • g i`, and the reduction of each `g i` is not zero. |
| 101 | choose c g hg hfg using fun i : Fin n ↦ h_scale (f i) |
| 102 | have : IsAlgClosed (ResidueField V) := |
| 103 | ((of_isIntegrallyClosedIn K).of_surjective residue_surjective).isAlgClosed |
| 104 | -- Over an infinite field a nonzero polynomial has a nonzero value. |
| 105 | obtain ⟨y₀, hy₀⟩ : |
| 106 | ∃ y₀ : σ → ResidueField V, eval y₀ (∏ i : Fin n, map (residue V) (g i)) ≠ eval y₀ 0 := |
| 107 | not_forall.1 fun h_eq ↦ prod_ne_zero_iff.2 (fun i _ ↦ hg i) (MvPolynomial.funext h_eq) |
| 108 | obtain ⟨y, rfl⟩ : ∃ y : σ → V, residue V ∘ y = y₀ := residue_surjective.comp_left y₀ |
| 109 | have h_unit (i : Fin n) : IsUnit (eval y (g i)) := by |
| 110 | rw [map_prod, map_zero, prod_ne_zero_iff] at hy₀ |
| 111 | rw [← residue_ne_zero_iff_isUnit] |
| 112 | simpa [eval_map, ← eval₂_comp] using hy₀ i (mem_univ i) |
| 113 | refine ⟨y, fun i m ↦ ?_⟩ |
| 114 | -- The factor `c i` is common, and the unit `eval y (g i)` divides every coefficient of `g i`. |
| 115 | have h_le : v (algebraMap V K ((g i).coeff m)) ≤ v (algebraMap V K (eval y (g i))) := |
| 116 | (Valuation.integer.integers v).le_of_dvd (h_unit i).dvd |
| 117 | grw [hfg i, AddMonoidAlgebra.coeff_smul_apply, coeff_map, smul_eval, eval_map, ← eval₂_comp, |
| 118 | smul_eq_mul, map_mul, map_mul, h_le] |
| 119 | |
| 120 | end IntegralityPrinciple |
| 121 | |
| 122 | /-! |
| 123 | ## Bounds for exponentials, logarithms and roots |
| 124 | |
| 125 | The bounds come from Legendre's formula for `v(j!)` and from the binomial series over `ℤ_p`. |
| 126 | -/ |
| 127 | |
| 128 | section SeriesBounds |
| 129 | |
| 130 | open PowerSeries IsUltrametricDist |
| 131 | |
| 132 | namespace New |
| 133 | variable {p : ℕ} [Fact p.Prime] |
| 134 | |
| 135 | |
| 136 | /-- If `g(0) = 0`, then `s g(X) - g(δ X)` has constant term `0`. -/ |
| 137 | lemma constantCoeff_smul_sub_rescale {g : ℂ_[p]⟦X⟧} (hg_zero : constantCoeff g = 0) |
| 138 | (s δ : ℂ_[p]) : constantCoeff (s • g - rescale δ g) = 0 := by |
| 139 | simp [constantCoeff_rescale, hg_zero] |
| 140 | |
| 141 | /-- The logarithmic derivative: `f (log f)' = f'` if `f(0) = 1`. -/ |
| 142 | lemma mul_derivative_logOf {f : ℂ_[p]⟦X⟧} (hf : constantCoeff f = 1) : |
| 143 | f * d⁄dX (logOf f) = d⁄dX f := by |
| 144 | rw [← PowerSeries.logDeriv_def, mul_comm, PowerSeries.logDeriv_mul f hf] |
| 145 | |
| 146 | section Bounds |
| 147 | |
| 148 | /-- Let `g` be a series in any variables. If the coefficients of `g` in degrees `≤ l` |
| 149 | have norm at most `r`, those of `g ^ j` in these degrees have norm at most `r ^ j`. -/ |
| 150 | lemma norm_coeff_pow_le {σ : Type} {g : MvPowerSeries σ ℂ_[p]} {l : ℕ} {r : ℝ} |
| 151 | (hg : ∀ m : σ →₀ ℕ, m.degree ≤ l → ‖g.coeff m‖ ≤ r) (j : ℕ) |
| 152 | {m : σ →₀ ℕ} (hm : m.degree ≤ l) : ‖(g ^ j).coeff m‖ ≤ r ^ j := by |
| 153 | simpa using MvPowerSeries.norm_coeff_pow_mul_prod_le (c := fun _ ↦ 1) |
| 154 | (fun _ ↦ zero_le_one) (fun k hk ↦ by simpa using hg k ((Finsupp.degree_mono hk).trans hm)) j |
| 155 | |
| 156 | /-- Let `g` be a series in any variables with `g(0) = 0`, with coefficients in degrees `≤ l` of |
| 157 | norm at most `r`, and let `f = ∑ f_j X ^ j` satisfy `‖f_j‖ r ^ j ≤ s` for all `j`. |
| 158 | Then the coefficients of `f(g)` in degrees `≤ l` have norm at most `s`. -/ |
| 159 | lemma norm_coeff_subst_le {σ : Type} {g : MvPowerSeries σ ℂ_[p]} {l : ℕ} {r s : ℝ} |
| 160 | {f : ℂ_[p]⟦X⟧} (hg_zero : g.constantCoeff = 0) |
| 161 | (hg : ∀ m : σ →₀ ℕ, m.degree ≤ l → ‖g.coeff m‖ ≤ r) (hf : ∀ j : ℕ, ‖coeff j f‖ * r ^ j ≤ s) |
| 162 | {m : σ →₀ ℕ} (hm : m.degree ≤ l) : ‖(f.subst g).coeff m‖ ≤ s := by |
| 163 | simpa using PowerSeries.norm_coeff_subst_mul_prod_le (c := fun _ ↦ 1) |
| 164 | (fun _ ↦ zero_le_one) (.of_constantCoeff_zero hg_zero) |
| 165 | (fun k hk ↦ by simpa using hg k ((Finsupp.degree_mono hk).trans hm)) hf |
| 166 | |
| 167 | /-- Let `g(0) = 0`. If the coefficients of `g` in degrees `≤ l` have norm at most |
| 168 | `p ^ (-1 / (p - 1))`, that is, valuation at least `1 / (p - 1)`, then `exp g`, written `expSubst g`, |
| 169 | is integral in these degrees. |
| 170 | |
| 171 | A consequence of the upper bound `v(j!) ≤ j / (p - 1)` given by Legendre's formula, applied to the |
| 172 | terms `g ^ j / j!` of the exponential series: the case of radius `1` of Tau Ceti's weighted bound. |
| 173 | -/ |
| 174 | lemma norm_coeff_expSubst_le_one {σ : Type} {g : MvPowerSeries σ ℂ_[p]} |
| 175 | (hg_zero : g.constantCoeff = 0) {l : ℕ} |
| 176 | (hg : ∀ m : σ →₀ ℕ, m.degree ≤ l → ‖g.coeff m‖ ≤ p ^ (-(1 / (p - 1)) : ℝ)) |
| 177 | {m : σ →₀ ℕ} (hm : m.degree ≤ l) : ‖(expSubst g).coeff m‖ ≤ 1 := by |
| 178 | simpa using PowerSeries.norm_coeff_subst_exp_mul_prod_le_one (p := p) (c := fun _ ↦ 1) |
| 179 | (fun _ ↦ zero_le_one) hg_zero |
| 180 | (fun k hk ↦ by simpa using hg k ((Finsupp.degree_mono hk).trans hm)) |
| 181 | |
| 182 | end Bounds |
| 183 | |
| 184 | /-- If the coefficients of the series `g` in one variable below the degree `l` have norm at most |
| 185 | `r`, those of `g ^ j` below the degree `l` have norm at most `r ^ j`. -/ |
| 186 | lemma norm_coeff_pow_le_of_lt {g : ℂ_[p]⟦X⟧} {l : ℕ} {r : ℝ} |
| 187 | (hg : ∀ n < l, ‖coeff n g‖ ≤ r) (j : ℕ) {n : ℕ} (hn : n < l) : ‖coeff n (g ^ j)‖ ≤ r ^ j := by |
| 188 | refine norm_coeff_pow_le (l := n) (fun m hm ↦ ?_) j (Finsupp.degree_single () n).le |
| 189 | rw [Finsupp.unique_single m] at hm ⊢ |
| 190 | exact hg _ (by simpa using hm.trans_lt hn) |
| 191 | |
| 192 | /-- Let `g` be a series in one variable with `g(0) = 0`, with coefficients below the degree `l` |
| 193 | of norm at most `r`, and let `f = ∑ f_j X ^ j` satisfy `‖f_j‖ r ^ j ≤ s` for all |
| 194 | `j`. Then the coefficients of `f(g)` below the degree `l` have norm at most `s`. -/ |
| 195 | lemma norm_coeff_subst_le_of_lt {f g : ℂ_[p]⟦X⟧} {l : ℕ} {r s : ℝ} |
| 196 | (hg_zero : constantCoeff g = 0) (hg : ∀ n < l, ‖coeff n g‖ ≤ r) |
| 197 | (hf : ∀ j : ℕ, ‖coeff j f‖ * r ^ j ≤ s) {n : ℕ} (hn : n < l) : ‖coeff n (f.subst g)‖ ≤ s := by |
| 198 | refine norm_coeff_subst_le (l := n) hg_zero (fun m hm ↦ ?_) hf (Finsupp.degree_single () n).le |
| 199 | rw [Finsupp.unique_single m] at hm ⊢ |
| 200 | exact hg _ (by simpa using hm.trans_lt hn) |
| 201 | |
| 202 | /-- A triangular system: let `x = X ^ 2 + ⋯` be integral below the degree `l` and `R` a polynomial. |
| 203 | If the coefficients of `R(x)` below the degree `l` have norm at most `s`, then so do the |
| 204 | coefficients `R_i` of `R` with `2 i < l`. -/ |
| 205 | lemma norm_coeff_le_of_aeval {x : ℂ_[p]⟦X⟧} {l : ℕ} {s : ℝ} (h_dvd : X ^ 2 ∣ x) |
| 206 | (h_two : coeff 2 x = 1) (hx : ∀ n < l, ‖coeff n x‖ ≤ 1) {R : Polynomial ℂ_[p]} |
| 207 | (hR : ∀ n < l, ‖coeff n (R.aeval x)‖ ≤ s) {i : ℕ} (hi : 2 * i < l) : ‖R.coeff i‖ ≤ s := by |
| 208 | -- Induction on `i`: in degree `2 i` only the powers `x ^ j` with `j ≤ i` contribute to `R(x)`, |
| 209 | -- and `x ^ i` has the coefficient `1` there. |
| 210 | obtain ⟨u, rfl⟩ := h_dvd |
| 211 | have hu : constantCoeff u = 1 := by simpa [coeff_X_pow_mul'] using h_two |
| 212 | have hs : HasSubst (X ^ 2 * u) := .of_constantCoeff_zero' (by simp) |
| 213 | have h_pow (j n : ℕ) : |
| 214 | coeff n ((X ^ 2 * u) ^ j) = if 2 * j ≤ n then coeff (n - 2 * j) (u ^ j) else 0 := by |
| 215 | rw [mul_pow, ← pow_mul, coeff_X_pow_mul'] |
| 216 | induction i using Nat.strong_induction_on with | _ i ih => ?_ |
| 217 | have h_lead : coeff (2 * i) ((X ^ 2 * u) ^ i) = 1 := by simp [h_pow i, hu] |
| 218 | have h_zero (j : ℕ) (hj : i < j) : coeff (2 * i) ((X ^ 2 * u) ^ j) = 0 := by |
| 219 | rw [h_pow, ite_eq_right (by omega)] |
| 220 | have h_sum : coeff (2 * i) (R.aeval (X ^ 2 * u)) = |
| 221 | ∑ j ∈ Finset.range i, R.coeff j * coeff (2 * i) ((X ^ 2 * u) ^ j) + R.coeff i := by |
| 222 | rw [← subst_coe hs, coeff_subst' hs, |
| 223 | finsum_eq_sum_of_support_subset (s := Finset.range (i + 1)) _ fun j hj ↦ ?_, |
| 224 | Finset.sum_range_succ, h_lead] |
| 225 | · simp |
| 226 | · by_contra h_not |
| 227 | exact hj (by simp [h_zero j (by simpa using h_not)]) |
| 228 | have h_lower : ‖∑ j ∈ Finset.range i, R.coeff j * coeff (2 * i) ((X ^ 2 * u) ^ j)‖ ≤ s := by |
| 229 | refine norm_sum_le_of_forall_le_of_nonneg ((norm_nonneg _).trans (hR _ hi)) fun j hj ↦ ?_ |
| 230 | have hj_lt : j < i := Finset.mem_range.1 hj |
| 231 | have h_int : ‖coeff (2 * i) ((X ^ 2 * u) ^ j)‖ ≤ 1 := |
| 232 | (norm_coeff_pow_le_of_lt hx j hi).trans_eq (one_pow j) |
| 233 | grw [norm_mul, h_int, mul_one, ih j hj_lt (by omega)] |
| 234 | rw [eq_sub_of_add_eq' h_sum.symm, sub_eq_add_neg] |
| 235 | exact (norm_add_le_max _ _).trans (max_le (hR _ hi) (by rwa [norm_neg])) |
| 236 | |
| 237 | /-- If `v(c) ≥ 1 / (p - 1)`, that is, `‖c‖ ≤ p ^ (-1 / (p - 1))`, then `c ^ j / (j + 1)!` is |
| 238 | integral, as `v((j + 1)!) ≤ j / (p - 1)`. -/ |
| 239 | lemma norm_pow_le_norm_factorial_succ {c : ℂ_[p]} (hc : ‖c‖ ≤ p ^ (-(1 / (p - 1)) : ℝ)) (j : ℕ) : |
| 240 | ‖c‖ ^ j ≤ ‖((j + 1).factorial : ℂ_[p])‖ := by |
| 241 | exact (pow_le_pow_left₀ (norm_nonneg c) hc j).trans |
| 242 | (by simpa [TauCeti.amiceRadius_def] using |
| 243 | TauCeti.amiceRadius_zero_pow_sub_one_le_norm_factorial (L := ℂ_[p]) j.succ_ne_zero) |
| 244 | |
| 245 | /-- If `v(c) ≥ 1 / (p - 1)`, that is, `‖c‖ ≤ p ^ (-1 / (p - 1))`, then `c ^ j / (j + 1)` is |
| 246 | integral. -/ |
| 247 | lemma norm_pow_le_norm_succ {c : ℂ_[p]} (hc : ‖c‖ ≤ p ^ (-(1 / (p - 1)) : ℝ)) (j : ℕ) : |
| 248 | ‖c‖ ^ j ≤ ‖((j + 1 : ℕ) : ℂ_[p])‖ := by |
| 249 | exact (pow_le_pow_left₀ (norm_nonneg c) hc j).trans |
| 250 | (by simpa [TauCeti.amiceRadius_def] using |
| 251 | TauCeti.amiceRadius_zero_pow_sub_one_le_norm_natCast (L := ℂ_[p]) j.succ_ne_zero) |
| 252 | |
| 253 | /-- Let `v(c) ≥ 1 / (p - 1)`, that is, `‖c‖ ≤ p ^ (-1 / (p - 1))`, and `g(0) = 0`. If `c` divides |
| 254 | the coefficients of `g` below the degree `l`, that is, they have norm at most `‖c‖`, then it also |
| 255 | divides those of `exp g - 1`, where `exp g` is `expSubst g`. -/ |
| 256 | lemma norm_coeff_expSubst_sub_one_le {c : ℂ_[p]} (hc : ‖c‖ ≤ p ^ (-(1 / (p - 1)) : ℝ)) |
| 257 | {g : ℂ_[p]⟦X⟧} (hg_zero : constantCoeff g = 0) {l : ℕ} (hg : ∀ n < l, ‖coeff n g‖ ≤ ‖c‖) |
| 258 | {n : ℕ} (hn : n < l) : ‖coeff n (expSubst g - 1)‖ ≤ ‖c‖ := by |
| 259 | have hs : HasSubst g := .of_constantCoeff_zero' hg_zero |
| 260 | have h_subst : expSubst g - 1 = (exp ℂ_[p] - 1).subst g := by |
| 261 | rw [subst_sub hs, ← coe_substAlgHom hs, map_one, coe_substAlgHom] |
| 262 | rw [h_subst] |
| 263 | refine norm_coeff_subst_le_of_lt hg_zero hg ?_ hn |
| 264 | rintro (_ | j) |
| 265 | · simp |
| 266 | calc ‖coeff (j + 1) (exp ℂ_[p] - 1)‖ * ‖c‖ ^ (j + 1) |
| 267 | = ‖c‖ ^ j / ‖((j + 1).factorial : ℂ_[p])‖ * ‖c‖ := by |
| 268 | simp [coeff_one, coeff_exp, pow_succ, div_eq_inv_mul, mul_assoc] |
| 269 | _ ≤ ‖c‖ := mul_le_of_le_one_left (norm_nonneg c) |
| 270 | (div_le_one_of_le₀ (norm_pow_le_norm_factorial_succ hc j) (norm_nonneg _)) |
| 271 | |
| 272 | /-- If `v(c) ≥ 1 / (p - 1)`, that is, `‖c‖ ≤ p ^ (-1 / (p - 1))`, the series `log (1 + c X) / c` |
| 273 | is integral: it lies in the range of `seriesToCp`, the inclusion of the integral series. -/ |
| 274 | lemma inv_smul_rescale_log_mem {c : ℂ_[p]} (hc : ‖c‖ ≤ p ^ (-(1 / (p - 1)) : ℝ)) : |
| 275 | c⁻¹ • rescale c (log ℂ_[p]) ∈ seriesToCp.range := by |
| 276 | rw [mem_range_seriesToCp] |
| 277 | rintro (_ | j) |
| 278 | · simp |
| 279 | calc ‖coeff (j + 1) (c⁻¹ • rescale c (log ℂ_[p]))‖ |
| 280 | = ‖c‖⁻¹ * ‖c‖ * (‖c‖ ^ j / ‖((j + 1 : ℕ) : ℂ_[p])‖) := by |
| 281 | simp [coeff_rescale, coeff_log, pow_succ, div_eq_mul_inv, mul_assoc, mul_left_comm] |
| 282 | _ ≤ ‖c‖ ^ j / ‖((j + 1 : ℕ) : ℂ_[p])‖ := |
| 283 | mul_le_of_le_one_left (by positivity) (inv_mul_le_one_of_le₀ le_rfl (norm_nonneg c)) |
| 284 | _ ≤ 1 := div_le_one_of_le₀ (norm_pow_le_norm_succ hc j) (norm_nonneg _) |
| 285 | |
| 286 | /-- For `m` prime to `p` the series `1 + X` has an `m`-th root with constant term `1` and integral |
| 287 | coefficients (it lies in the range of `seriesToCp`): the binomial series with exponent `1 / m`, as |
| 288 | its coefficients lie in `ℤ_p`. -/ |
| 289 | lemma exists_pow_eq_one_add_X {m : ℕ} (hm : p.Coprime m) : |
| 290 | ∃ b : ℂ_[p]⟦X⟧, b ∈ seriesToCp.range ∧ constantCoeff b = 1 ∧ b ^ m = 1 + X := by |
| 291 | -- The exponent `r = 1 / m` lies in `ℤ_p`. |
| 292 | obtain ⟨r, hr⟩ : ∃ r : ℤ_[p], m * r = 1 := |
| 293 | (PadicInt.isUnit_iff.2 (PadicInt.norm_natCast_eq_one_iff.2 hm)).exists_right_inv |
| 294 | let φ : ℤ_[p] →+* ℂ_[p] := (algebraMap ℚ_[p] ℂ_[p]).comp PadicInt.Coe.ringHom |
| 295 | have h_norm (x : ℤ_[p]) : ‖φ x‖ ≤ 1 := |
| 296 | (norm_algebraMap' ℂ_[p] (x : ℚ_[p])).trans_le x.norm_le_one |
| 297 | refine ⟨(binomialSeries ℤ_[p] r).map φ, mem_range_seriesToCp.2 fun n ↦ h_norm _, ?_, ?_⟩ |
| 298 | · simp [← coeff_zero_eq_constantCoeff_apply] |
| 299 | · rw [← map_pow, ← binomialPow_one_add_X, pow_binomialPow (by simp), nsmul_eq_mul, hr, |
| 300 | binomialPow_one (by simp), map_add, map_one, map_X] |
| 301 | |
| 302 | /-- Two series with constant term `1` and the same `m`-th power, `m ≠ 0`, are equal. -/ |
| 303 | lemma eq_of_pow_eq_pow_of_constantCoeff_eq_one {f g : ℂ_[p]⟦X⟧} {m : ℕ} (hm : m ≠ 0) |
| 304 | (hf : constantCoeff f = 1) (hg : constantCoeff g = 1) (h_pow : f ^ m = g ^ m) : f = g := by |
| 305 | apply (binomialPow_left_inj hf hg (Units.mk0 (m : ℚ) (Nat.cast_ne_zero.mpr hm))).mp |
| 306 | simpa [hf, hg] using h_pow |
| 307 | |
| 308 | namespace IsSeriesGenerator |
| 309 | |
| 310 | /-- Let `B = 𝒪[[T]]` (`IsSeriesGenerator B T`: `T = X + ⋯` and `B` is the ring of all integral |
| 311 | series in `T`), let `f` be a series with integral coefficients (an element of the range of |
| 312 | `seriesToCp`) and `h ∈ B` without constant term. Then `f(h) ∈ B`. -/ |
| 313 | lemma subst_mem {B : Subring ℂ_[p]⟦X⟧} {T : ℂ_[p]⟦X⟧} (hB : IsSeriesGenerator B T) |
| 314 | {f h : ℂ_[p]⟦X⟧} (hf : f ∈ seriesToCp.range) (hh : h ∈ B) (hh_zero : constantCoeff h = 0) : |
| 315 | f.subst h ∈ B := by |
| 316 | obtain ⟨G, rfl⟩ : ∃ G : (valRingCp p)⟦X⟧, seriesToCp G = f := hf |
| 317 | obtain ⟨F, rfl⟩ := (hB.mem_iff h).1 hh |
| 318 | have hF : constantCoeff F = 0 := by |
| 319 | simpa [constantCoeff_subst_of_constantCoeff_zero' hB.constantCoeff_eq_zero, |
| 320 | constantCoeff_seriesToCp] using hh_zero |
| 321 | exact (hB.mem_iff _).2 ⟨G.subst F, (subst_seriesToCp_subst hB.constantCoeff_eq_zero hF G).symm⟩ |
| 322 | |
| 323 | /-- Let `B = 𝒪[[T]]` (`IsSeriesGenerator B T`), `c ≠ 0`, `v(c) ≥ 1 / (p - 1)`, that is, |
| 324 | `‖c‖ ≤ p ^ (-1 / (p - 1))`, and `g(0) = 0`. If `exp (c g) = 1 + c H` with `H ∈ B`, where `exp` is |
| 325 | `expSubst`, then `g ∈ B`. -/ |
| 326 | lemma mem_of_expSubst_smul_eq {B : Subring ℂ_[p]⟦X⟧} {T : ℂ_[p]⟦X⟧} |
| 327 | (hB : IsSeriesGenerator B T) {c : ℂ_[p]} (hc_ne : c ≠ 0) |
| 328 | (hc : ‖c‖ ≤ p ^ (-(1 / (p - 1)) : ℝ)) {g H : ℂ_[p]⟦X⟧} (hg_zero : constantCoeff g = 0) |
| 329 | (hH : H ∈ B) (h_exp : expSubst (c • g) = 1 + c • H) : g ∈ B := by |
| 330 | -- Taking logarithms gives `g = (log (1 + c X) / c)(H)`, an integral series in `H`. |
| 331 | have hcg : constantCoeff (c • g) = 0 := by simp [hg_zero] |
| 332 | have hH_zero : constantCoeff H = 0 := by simpa [h_exp, hc_ne] using constantCoeff_subst_exp hcg |
| 333 | have hs : HasSubst H := .of_constantCoeff_zero' hH_zero |
| 334 | have h_log : (c⁻¹ • rescale c (log ℂ_[p])).subst H = g := |
| 335 | calc _ = c⁻¹ • logOf (1 + c • H) := by |
| 336 | rw [subst_smul hs, subst_rescale_eq_subst_smul _ hs, logOf_eq, add_sub_cancel_left] |
| 337 | _ = g := by rw [← h_exp, logOf_subst_exp hcg, inv_smul_smul₀ hc_ne] |
| 338 | rw [← h_log] |
| 339 | exact hB.subst_mem (inv_smul_rescale_log_mem hc) hH hH_zero |
| 340 | |
| 341 | /-- Let `B = 𝒪[[T]]` (`IsSeriesGenerator B T`: `T = X + ⋯` and `B` is the ring of all integral |
| 342 | series in `T`), `m` prime to `p` and `g(0) = 0`. If `(exp g) ^ m ∈ B`, where `exp g` is |
| 343 | `expSubst g`, then `exp g ∈ B`. -/ |
| 344 | lemma expSubst_mem_of_pow_mem {B : Subring ℂ_[p]⟦X⟧} {T : ℂ_[p]⟦X⟧} |
| 345 | (hB : IsSeriesGenerator B T) {m : ℕ} (hm : p.Coprime m) {g : ℂ_[p]⟦X⟧} |
| 346 | (hg_zero : constantCoeff g = 0) (h_pow : expSubst g ^ m ∈ B) : expSubst g ∈ B := by |
| 347 | -- If `b(0) = 1` and `b ^ m = 1 + X`, then `exp g` is `b` at `(exp g) ^ m - 1`. |
| 348 | obtain ⟨b, hb_mem, hb_one, hb_pow⟩ := exists_pow_eq_one_add_X hm |
| 349 | have hm_ne : m ≠ 0 := fun h ↦ (Fact.out : p.Prime).ne_one (by simpa [h] using hm) |
| 350 | set u : ℂ_[p]⟦X⟧ := expSubst g ^ m - 1 with hu |
| 351 | have hu_zero : constantCoeff u = 0 := by simp [hu, constantCoeff_subst_exp hg_zero] |
| 352 | have hs : HasSubst u := .of_constantCoeff_zero' hu_zero |
| 353 | have h_root : b.subst u = expSubst g := by |
| 354 | refine eq_of_pow_eq_pow_of_constantCoeff_eq_one hm_ne |
| 355 | ((constantCoeff_subst_of_constantCoeff_zero' hu_zero _).trans hb_one) |
| 356 | (constantCoeff_subst_exp hg_zero) ?_ |
| 357 | rw [← subst_pow hs, hb_pow, ← coe_substAlgHom hs, map_add, map_one, substAlgHom_X, hu] |
| 358 | ring |
| 359 | rw [← h_root] |
| 360 | exact hB.subst_mem hb_mem (sub_mem h_pow (one_mem B)) hu_zero |
| 361 | |
| 362 | end IsSeriesGenerator |
| 363 | |
| 364 | end New |
| 365 | |
| 366 | end SeriesBounds |