Zeta and L-valuesBlueprintDependency graphThesis
Contents

Recursion.lean

Statement index · Original Lean file

1import Thesis.CyclotomicValues23set_option maxHeartbeats 100000045/-!6# The character-group recursion behind Theorem 4.1 (thesis steps O11–O13)78Self-contained companion file for `Thesis.main_congruence` (direction (i), member m16).9Builds against the project oleans; no `sorry`, no project-owned axioms.1011Main results:1213* `secondKindChars_succ_eq` — the level-`α+1` second-kind characters are the14 `changeLevel` image of the level-`α` ones, disjointly unioned with the characters15 whose conductor does not divide `p^(α+1)` (thesis: `R_{p^(α+1)} = R_{p^α} ⊔ P_{p^(α+2)}`).16* `cyclotomicTowerValue_succ_mul`, `cyclotomicTowerValue_succ` —17 `x_(α+1) = x_α * newProduct_α`.18* `main_congruence_of_newProduct` — Theorem 4.1 follows from19 (B) `PadicIntegral p (cyclotomicTowerValue p 0 n)` and20 (N) `∀ α, newProduct_α ≡ 1 (mod p^(α+1))`.2122To integrate: replace the `by sorry` of `Thesis.main_congruence` by23`main_congruence_of_newProduct p n Fact.out hp_base hp_new α` after supplying24`hp_base` (integrality of `-B_n/n`, via `cyclotomicTowerValue_zero_of_ne_one`) and25`hp_new` (the Iwasawa/Stickelberger input). See `theorem41-report.md` §3–§4 for the26exact content and difficulty of (B) and (N).27-/2829namespace Thesis30noncomputable section31open scoped BigOperators32open DirichletCharacter3334attribute [local instance] Classical.decEq Classical.propDecidable3536/-- Generalized Bernoulli numbers only depend on the values of the character on integers. -/37lemma generalizedBernoulli_congr {A : Type*} [Field A] [Algebra ℚ A] {N M : ℕ} (hNM : N = M)38 {χ : DirichletCharacter A N} {ψ : DirichletCharacter A M}39 (h : ∀ a : ℤ, χ a = ψ a) (n : ℕ) :40 generalizedBernoulli χ n = generalizedBernoulli ψ n := by41 subst hNM42 simp only [generalizedBernoulli]43 congr 144 refine Finset.sum_congr rfl fun a _ => ?_45 have h2 : χ (a : ZMod N) = ψ (a : ZMod N) := by simpa using h (a : ℤ)46 rw [h2]4748/-- Raising a vanishing `p^α`-th power to the `p`-th power. -/49lemma pow_prime_pow_succ {M : Type*} [Monoid M] {p : ℕ} (x : M) (α : ℕ)50 (hx : x ^ p ^ α = 1) : x ^ p ^ (α + 1) = 1 := by51 rw [show p ^ (α + 1) = p ^ α * p by rw [pow_succ], pow_mul, hx, one_pow]5253variable (p : ℕ) [Fact p.Prime]5455/-- The primitive associate is insensitive to changing level. -/56lemma primitiveDirichletValue_changeLevel {N M : ℕ} [NeZero M] (h : N ∣ M)57 (χ : DirichletCharacter ℂ_[p] N) (n : ℕ) :58 primitiveDirichletValue (changeLevel h χ) n = primitiveDirichletValue χ n := by59 unfold primitiveDirichletValue dirichletValue60 exact congrArg (fun z => -z / (n : ℂ_[p]))61 (generalizedBernoulli_congr (A := ℂ_[p]) (conductor_changeLevel (χ := χ) h)62 (fun a => primitiveCharacter_changeLevel_apply h χ a) n)6364/-- Second-kind characters are stable under change of level. -/65lemma isSecondKind_changeLevel {α N M : ℕ} (h : N ∣ M)66 {χ : DirichletCharacter ℂ_[p] N} (hχ : IsSecondKind p α χ) :67 IsSecondKind p α (changeLevel h χ) := by68 unfold IsSecondKind at *69 rw [← map_pow, hχ, map_one]7071/-- Membership in `secondKindChars`. -/72lemma mem_secondKindChars {α : ℕ} {χ : DirichletCharacter ℂ_[p] (p ^ (α + 1))} :73 χ ∈ secondKindChars p α ↔ IsSecondKind p α χ :=74 ⟨fun h => (Finset.mem_filter.mp h).2, fun h => Finset.mem_filter.mpr ⟨Finset.mem_univ _, h⟩⟩7576/-- Every Dirichlet character of level `N` satisfies `χ ^ φ(N) = 1`. -/77lemma DirichletCharacter.pow_totient_eq_one {N : ℕ} [NeZero N]78 (χ : DirichletCharacter ℂ_[p] N) : χ ^ Nat.totient N = 1 := by79 rw [← ZMod.card_units_eq_totient N]80 exact MulChar.pow_card_eq_one χ8182/-- `gcd(p^(α+1), φ(p^(α+1))) = p^α`. -/83lemma gcd_pow_totient {p : ℕ} (hp : p.Prime) (α : ℕ) :84 Nat.gcd (p ^ (α + 1)) (Nat.totient (p ^ (α + 1))) = p ^ α := by85 rw [Nat.totient_prime_pow_succ hp α, show p ^ (α + 1) = p ^ α * p by rw [pow_succ],86 Nat.gcd_mul_left]87 have h1 : Nat.gcd p (p - 1) ∣ p - (p - 1) :=88 Nat.dvd_sub (Nat.gcd_dvd_left p (p - 1)) (Nat.gcd_dvd_right p (p - 1))89 have h2 : p - (p - 1) = 1 := by have := hp.two_le; omega90 rw [h2, Nat.dvd_one] at h191 rw [h1, Nat.mul_one]9293/-- The `α+1`-st layer of characters splits into the image of the `α`-th layer and94the new characters. -/95theorem secondKindChars_succ_eq (α : ℕ) (hp : p.Prime) :96 secondKindChars p (α + 1) =97 (secondKindChars p α).image (changeLevel (pow_dvd_pow p (show α + 1 ≤ α + 2 by omega))) ∪98 (secondKindChars p (α + 1)).filter (fun χ => ¬ χ.conductor ∣ p ^ (α + 1)) := by99 classical100 have hN1 : NeZero (p ^ (α + 1)) := ⟨pow_ne_zero _ hp.ne_zero⟩101 have hN2 : NeZero (p ^ (α + 2)) := ⟨pow_ne_zero _ hp.ne_zero⟩102 have hdvd : p ^ (α + 1) ∣ p ^ (α + 2) := pow_dvd_pow p (show α + 1 ≤ α + 2 by omega)103 ext χ104 simp only [Finset.mem_union, Finset.mem_image, Finset.mem_filter, mem_secondKindChars,105 IsSecondKind]106 constructor107 · intro hχ108 by_cases hc : χ.conductor ∣ p ^ (α + 1)109 · left110 have hft : χ.FactorsThrough (p ^ (α + 1)) :=111 FactorsThrough.mono χ (factorsThrough_conductor χ) hc hdvd112 refine ⟨hft.χ₀, ?_, hft.eq_changeLevel.symm⟩113 have h1 : hft.χ₀ ^ p ^ (α + 1) = 1 := by114 have h := hft.eq_changeLevel115 rw [h] at hχ116 rwa [← map_pow, changeLevel_eq_one_iff hdvd] at hχ117 have h2 : hft.χ₀ ^ Nat.totient (p ^ (α + 1)) = 1 :=118 DirichletCharacter.pow_totient_eq_one p hft.χ₀119 have hgcd := gcd_pow_totient hp α120 have hd : orderOf hft.χ₀ ∣ Nat.gcd (p ^ (α + 1)) (Nat.totient (p ^ (α + 1))) :=121 Nat.dvd_gcd (orderOf_dvd_iff_pow_eq_one.mpr h1)122 (orderOf_dvd_iff_pow_eq_one.mpr h2)123 have hd' : orderOf hft.χ₀ ∣ p ^ α := by rwa [hgcd] at hd124 exact orderOf_dvd_iff_pow_eq_one.mp hd'125 · exact Or.inr ⟨hχ, hc⟩126 · rintro (⟨y, hy, rfl⟩ | ⟨hχ, -⟩)127 · have hy' : y ^ p ^ α = 1 := hy128 have h2 : (changeLevel hdvd y) ^ p ^ α = 1 := by129 rw [← map_pow, hy', map_one]130 have h3 : (changeLevel hdvd y) ^ p ^ (α + 1) = 1 := pow_prime_pow_succ _ α h2131 simpa using h3132 · exact hχ133134/-- **Tower recursion (O13).** -/135theorem cyclotomicTowerValue_succ_mul (α n : ℕ) (hp : p.Prime) :136 cyclotomicTowerValue p (α + 1) n = cyclotomicTowerValue p α n *137 ∏ χ ∈ (secondKindChars p (α + 1)).filter (fun χ => ¬ χ.conductor ∣ p ^ (α + 1)),138 primitiveDirichletValue χ n := by139 classical140 have hN2 : NeZero (p ^ (α + 2)) := ⟨pow_ne_zero _ hp.ne_zero⟩141 have hdvd : p ^ (α + 1) ∣ p ^ (α + 2) := pow_dvd_pow p (show α + 1 ≤ α + 2 by omega)142 have hdisj : Disjoint143 ((secondKindChars p α).image (changeLevel hdvd))144 ((secondKindChars p (α + 1)).filter (fun χ => ¬ χ.conductor ∣ p ^ (α + 1))) := by145 rw [Finset.disjoint_left]146 intro x hx hx'147 simp only [Finset.mem_image] at hx148 obtain ⟨y, -, rfl⟩ := hx149 simp only [Finset.mem_filter] at hx'150 exact hx'.2 (by rw [conductor_changeLevel]; exact y.conductor_dvd_level)151 simp only [cyclotomicTowerValue]152 conv_lhs => rw [secondKindChars_succ_eq p α hp]153 rw [Finset.prod_union hdisj]154 rw [Finset.prod_image (g := changeLevel hdvd)155 (f := fun χ => primitiveDirichletValue χ n)156 (fun x _ y _ hxy => changeLevel_injective hdvd hxy)]157 congr 1158 exact Finset.prod_congr rfl fun χ _ => primitiveDirichletValue_changeLevel p hdvd χ n159160161/-- The product over the characters that are new at level `α+1`. -/162noncomputable def newProduct (α n : ℕ) : ℂ_[p] :=163 ∏ χ ∈ (secondKindChars p (α + 1)).filter (fun χ => ¬ χ.conductor ∣ p ^ (α + 1)),164 primitiveDirichletValue χ n165166/-- The recursion in terms of `newProduct`. -/167theorem cyclotomicTowerValue_succ (α n : ℕ) (hp : p.Prime) :168 cyclotomicTowerValue p (α + 1) n = cyclotomicTowerValue p α n * newProduct p α n :=169 cyclotomicTowerValue_succ_mul p α n hp170171/-- `AdmissibleIndex 3 n` is always false: `n` even forces `2 = 3 - 1 ∣ n`.172So every `hp : 3 ≤ p` theorem stated with `AdmissibleIndex p n` is vacuous at `p = 3`. -/173lemma not_admissibleIndex_three (n : ℕ) : ¬ AdmissibleIndex 3 n := by174 rintro ⟨-, hev, hnd⟩175 obtain ⟨k, hk⟩ := hev176 exact hnd ⟨k, by omega⟩177178/-- Admissible indices are at least `2`. -/179lemma two_le_of_admissibleIndex {p n : ℕ} (hn : AdmissibleIndex p n) : 2 ≤ n := by180 obtain ⟨hpos, hev, -⟩ := hn181 obtain ⟨k, hk⟩ := hev182 omega183184/-! ### Congruence calculus for `PadicModEq` -/185186lemma padicIntegral_pow {k : ℕ} : PadicIntegral p ((p : ℂ_[p]) ^ k) := by187 induction k with188 | zero => simpa using padicIntegral_one p189 | succ k ih =>190 rw [pow_succ]191 exact padicIntegral_mul ih (by simpa using padicIntegral_natCast p p)192193lemma padicModEq_mul_right {k : ℕ} {x y : ℂ_[p]} (h : PadicModEq p k x y) (z : ℂ_[p])194 (hz : PadicIntegral p z) : PadicModEq p k (x * z) (y * z) := by195 rw [PadicModEq] at h ⊢196 have heq : (x * z - y * z) / (p : ℂ_[p]) ^ k = ((x - y) / (p : ℂ_[p]) ^ k) * z := by197 rw [← sub_mul, div_mul_eq_mul_div, mul_div_assoc]198 rw [heq]199 exact padicIntegral_mul h hz200201lemma padicIntegral_of_padicModEq {k : ℕ} {x y : ℂ_[p]} (hp : p.Prime)202 (h : PadicModEq p k x y) (hy : PadicIntegral p y) : PadicIntegral p x := by203 rw [PadicModEq] at h204 have hp0 : (p : ℂ_[p]) ≠ 0 := by exact_mod_cast hp.ne_zero205 have hx : x = y + (p : ℂ_[p]) ^ k * ((x - y) / (p : ℂ_[p]) ^ k) := by206 field_simp207 ring208 rw [hx]209 exact padicIntegral_add hy (padicIntegral_mul (padicIntegral_pow (p := p)) h)210211lemma padicIntegral_of_padicModEq_one {k : ℕ} {z : ℂ_[p]} (hp : p.Prime)212 (h : PadicModEq p k z 1) : PadicIntegral p z :=213 padicIntegral_of_padicModEq (p := p) hp h (padicIntegral_one p)214215lemma padicModEq_mul_of_modEq_one {k : ℕ} {x q : ℂ_[p]} (hx : PadicIntegral p x)216 (h : PadicModEq p k q 1) : PadicModEq p k x (x * q) := by217 have h1 : PadicModEq p k (q * x) x := by218 simpa using padicModEq_mul_right (p := p) h x hx219 have h2 : PadicModEq p k (x * q) x := by rwa [mul_comm x q]220 exact padicModEq_symm h2221222/-- **Theorem 4.1, reduced to the base case and the new-character congruence.**223224The tower value is integral at every level and consecutive tower values are congruent225modulo `p^(α+1)`, *given* (i) integrality of the bottom value `ζ(1-n) = -B_n/n` and226(ii) the congruence `newProduct α ≡ 1 (mod p^(α+1))` for the characters that are new at227level `α+1`. Obligation (i) is von Staudt–Clausen for `p ∤ denom(B_n)`; obligation (ii)228is the Iwasawa-theoretic input (Stickelberger / Kubota–Leopoldt), where the source229invokes the local norm-group computation. -/230theorem main_congruence_of_newProduct (n : ℕ) (hp : p.Prime)231 (hbase : PadicIntegral p (cyclotomicTowerValue p 0 n))232 (hnew : ∀ α : ℕ, PadicModEq p (α + 1) (newProduct p α n) 1) :233 ∀ α : ℕ, PadicIntegral p (cyclotomicTowerValue p α n) ∧234 PadicModEq p (α + 1) (cyclotomicTowerValue p α n)235 (cyclotomicTowerValue p (α + 1) n) := by236 intro α237 induction α with238 | zero =>239 refine ⟨hbase, ?_⟩240 rw [cyclotomicTowerValue_succ p 0 n hp]241 exact padicModEq_mul_of_modEq_one (p := p) hbase (hnew 0)242 | succ α ih =>243 obtain ⟨hint, -⟩ := ih244 have hq : PadicIntegral p (newProduct p α n) :=245 padicIntegral_of_padicModEq_one (p := p) hp (hnew α)246 have hint' : PadicIntegral p (cyclotomicTowerValue p α n * newProduct p α n) :=247 padicIntegral_mul hint hq248 rw [cyclotomicTowerValue_succ p (α + 1) n hp, cyclotomicTowerValue_succ p α n hp]249 exact ⟨hint', padicModEq_mul_of_modEq_one (p := p) hint' (hnew (α + 1))⟩250251end252end Thesis253254section Audit255#print axioms Thesis.primitiveDirichletValue_changeLevel256#print axioms Thesis.gcd_pow_totient257#print axioms Thesis.secondKindChars_succ_eq258#print axioms Thesis.cyclotomicTowerValue_succ_mul259#print axioms Thesis.main_congruence_of_newProduct260#print axioms Thesis.not_admissibleIndex_three261end Audit