Zeta and L-valuesBlueprintDependency graphThesis
Contents

verification-Audit.lean

Statement index · Original Lean file

1import Mathlib.Data.Rat.Defs2import Mathlib.Tactic34/-!5# Machine-checked arithmetic instances of the Ch. 4 statements67**Audit artifact** (swarm smwl0fg4l, member m8). No `sorry`, no axioms: every8proposition below is decided by `norm_num` on explicit rationals.910The rational *values* of `ζ_{F_α}(1-n)` were produced by the exact-arithmetic script11`audit/zetaF.py` (character-product formula, see `audit/verify-out.txt`); Lean checks12the p-adic content: integrality, the congruence of Theorem 4.1, its *sharpness*, the13necessity of the hypothesis `p - 1 ∤ n`, and the falsity of Lemma 4.7 as literally14printed. `F_α` = the degree-`p^α` subfield of `ℚ(μ_{p^{α+1}})`, `p` odd.15-/1617namespace ThesisAudit1819/-- `q ∈ ℤ_p`, i.e. the denominator of `q` is prime to `p`. -/20abbrev PInt (p : ℕ) (q : ℚ) : Prop := ¬ (p ∣ q.den)2122/-- `a ≡ b (mod p^k)` for `p`-integral rationals `a b`. -/23abbrev CongMod (p k : ℕ) (a b : ℚ) : Prop :=24 PInt p a ∧ PInt p b ∧ ((p : ℤ) ^ k ∣ (a - b).num)2526/-! ## Theorem 4.1: `ζ_{F_α}(1-n) ∈ ℤ_p` and `ζ_{F_α}(1-n) ≡ ζ_{F_{α+1}}(1-n) (mod p^{α+1})` -/2728/-! ### p = 5, n = 2 (`p - 1 = 4` does not divide `2`) -/29/-- `ζ_{F_0}(1-2)` is `5`-adically integral. -/30theorem int_p5_n2_a0 : PInt 5 (-1/12 : ℚ) := by norm_num [PInt]31/-- Theorem 4.1, `p = 5`, `n = 2`, `α = 0`: congruence modulo `5^1`. -/32theorem cong_p5_n2_a0 : CongMod 5 1 (-1/12 : ℚ) (-284/3 : ℚ) :=33 by norm_num [CongMod, PInt]34/-- **Sharpness**: the modulus `5^1` of Theorem 4.1 cannot be increased in this35instance (`v_5(ζ_{F_1}(1-2) - ζ_{F_0}(1-2)) = 1`). -/36theorem sharp_p5_n2_a0 : ¬ CongMod 5 2 (-1/12 : ℚ) (-284/3 : ℚ) :=37 by norm_num [CongMod, PInt]3839/-- `ζ_{F_1}(1-2)` is `5`-adically integral. -/40theorem int_p5_n2_a1 : PInt 5 (-284/3 : ℚ) := by norm_num [PInt]41/-- Theorem 4.1, `p = 5`, `n = 2`, `α = 1`: congruence modulo `5^2`. -/42theorem cong_p5_n2_a1 : CongMod 5 2 (-284/3 : ℚ) (-2554677410005136764265677770744695619584/3 : ℚ) :=43 by norm_num [CongMod, PInt]44/-- **Sharpness**: the modulus `5^2` of Theorem 4.1 cannot be increased in this45instance (`v_5(ζ_{F_2}(1-2) - ζ_{F_1}(1-2)) = 2`). -/46theorem sharp_p5_n2_a1 : ¬ CongMod 5 3 (-284/3 : ℚ) (-2554677410005136764265677770744695619584/3 : ℚ) :=47 by norm_num [CongMod, PInt]4849/-- `ζ_{F_2}(1-2)` is `5`-adically integral. -/50theorem int_p5_n2_a2 : PInt 5 (-2554677410005136764265677770744695619584/3 : ℚ) := by norm_num [PInt]5152/-! ### p = 7, n = 2 (`p - 1 = 6` does not divide `2`) -/53/-- `ζ_{F_0}(1-2)` is `7`-adically integral. -/54theorem int_p7_n2_a0 : PInt 7 (-1/12 : ℚ) := by norm_num [PInt]55/-- Theorem 4.1, `p = 7`, `n = 2`, `α = 0`: congruence modulo `7^1`. -/56theorem cong_p7_n2_a0 : CongMod 7 1 (-1/12 : ℚ) (-4406096/3 : ℚ) :=57 by norm_num [CongMod, PInt]58/-- **Sharpness**: the modulus `7^1` of Theorem 4.1 cannot be increased in this59instance (`v_7(ζ_{F_1}(1-2) - ζ_{F_0}(1-2)) = 1`). -/60theorem sharp_p7_n2_a0 : ¬ CongMod 7 2 (-1/12 : ℚ) (-4406096/3 : ℚ) :=61 by norm_num [CongMod, PInt]6263/-- `ζ_{F_1}(1-2)` is `7`-adically integral. -/64theorem int_p7_n2_a1 : PInt 7 (-4406096/3 : ℚ) := by norm_num [PInt]65/-- Theorem 4.1, `p = 7`, `n = 2`, `α = 1`: congruence modulo `7^2`. -/66theorem cong_p7_n2_a1 : CongMod 7 2 (-4406096/3 : ℚ) (-10216270805862273216319538566611844715625549504447744911140189734402260214801035161705669756263205702823076429824/3 : ℚ) :=67 by norm_num [CongMod, PInt]68/-- **Sharpness**: the modulus `7^2` of Theorem 4.1 cannot be increased in this69instance (`v_7(ζ_{F_2}(1-2) - ζ_{F_1}(1-2)) = 2`). -/70theorem sharp_p7_n2_a1 : ¬ CongMod 7 3 (-4406096/3 : ℚ) (-10216270805862273216319538566611844715625549504447744911140189734402260214801035161705669756263205702823076429824/3 : ℚ) :=71 by norm_num [CongMod, PInt]7273/-- `ζ_{F_2}(1-2)` is `7`-adically integral. -/74theorem int_p7_n2_a2 : PInt 7 (-10216270805862273216319538566611844715625549504447744911140189734402260214801035161705669756263205702823076429824/3 : ℚ) := by norm_num [PInt]7576/-! ### p = 5, n = 6 (`p - 1 = 4` does not divide `6`) -/77/-- `ζ_{F_0}(1-6)` is `5`-adically integral. -/78theorem int_p5_n6_a0 : PInt 5 (-1/252 : ℚ) := by norm_num [PInt]79/-- Theorem 4.1, `p = 5`, `n = 6`, `α = 0`: congruence modulo `5^1`. -/80theorem cong_p5_n6_a0 : CongMod 5 1 (-1/252 : ℚ) (-323390421080746279844/63 : ℚ) :=81 by norm_num [CongMod, PInt]8283/-- `ζ_{F_1}(1-6)` is `5`-adically integral. -/84theorem int_p5_n6_a1 : PInt 5 (-323390421080746279844/63 : ℚ) := by norm_num [PInt]8586/-! ### p = 7, n = 4 (`p - 1 = 6` does not divide `4`) -/87/-- `ζ_{F_0}(1-4)` is `7`-adically integral. -/88theorem int_p7_n4_a0 : PInt 7 (1/120 : ℚ) := by norm_num [PInt]89/-- Theorem 4.1, `p = 7`, `n = 4`, `α = 0`: congruence modulo `7^1`. -/90theorem cong_p7_n4_a0 : CongMod 7 1 (1/120 : ℚ) (7510159412652487566424/15 : ℚ) :=91 by norm_num [CongMod, PInt]92/-- **Sharpness**: the modulus `7^1` of Theorem 4.1 cannot be increased in this93instance (`v_7(ζ_{F_1}(1-4) - ζ_{F_0}(1-4)) = 1`). -/94theorem sharp_p7_n4_a0 : ¬ CongMod 7 2 (1/120 : ℚ) (7510159412652487566424/15 : ℚ) :=95 by norm_num [CongMod, PInt]9697/-- `ζ_{F_1}(1-4)` is `7`-adically integral. -/98theorem int_p7_n4_a1 : PInt 7 (7510159412652487566424/15 : ℚ) := by norm_num [PInt]99100/-! ### p = 11, n = 2 (`p - 1 = 10` does not divide `2`) -/101/-- `ζ_{F_0}(1-2)` is `11`-adically integral. -/102theorem int_p11_n2_a0 : PInt 11 (-1/12 : ℚ) := by norm_num [PInt]103/-- Theorem 4.1, `p = 11`, `n = 2`, `α = 0`: congruence modulo `11^1`. -/104theorem cong_p11_n2_a0 : CongMod 11 1 (-1/12 : ℚ) (-1089159146059629824/3 : ℚ) :=105 by norm_num [CongMod, PInt]106/-- **Sharpness**: the modulus `11^1` of Theorem 4.1 cannot be increased in this107instance (`v_11(ζ_{F_1}(1-2) - ζ_{F_0}(1-2)) = 1`). -/108theorem sharp_p11_n2_a0 : ¬ CongMod 11 2 (-1/12 : ℚ) (-1089159146059629824/3 : ℚ) :=109 by norm_num [CongMod, PInt]110111/-- `ζ_{F_1}(1-2)` is `11`-adically integral. -/112theorem int_p11_n2_a1 : PInt 11 (-1089159146059629824/3 : ℚ) := by norm_num [PInt]113114/-! ### p = 13, n = 2 (`p - 1 = 12` does not divide `2`) -/115/-- `ζ_{F_0}(1-2)` is `13`-adically integral. -/116theorem int_p13_n2_a0 : PInt 13 (-1/12 : ℚ) := by norm_num [PInt]117/-- Theorem 4.1, `p = 13`, `n = 2`, `α = 0`: congruence modulo `13^1`. -/118theorem cong_p13_n2_a0 : CongMod 13 1 (-1/12 : ℚ) (-588656626284831260044288/3 : ℚ) :=119 by norm_num [CongMod, PInt]120/-- **Sharpness**: the modulus `13^1` of Theorem 4.1 cannot be increased in this121instance (`v_13(ζ_{F_1}(1-2) - ζ_{F_0}(1-2)) = 1`). -/122theorem sharp_p13_n2_a0 : ¬ CongMod 13 2 (-1/12 : ℚ) (-588656626284831260044288/3 : ℚ) :=123 by norm_num [CongMod, PInt]124125/-- `ζ_{F_1}(1-2)` is `13`-adically integral. -/126theorem int_p13_n2_a1 : PInt 13 (-588656626284831260044288/3 : ℚ) := by norm_num [PInt]127128/-! ### p = 13, n = 4 (`p - 1 = 12` does not divide `4`) -/129/-- `ζ_{F_0}(1-4)` is `13`-adically integral. -/130theorem int_p13_n4_a0 : PInt 13 (1/120 : ℚ) := by norm_num [PInt]131/-- Theorem 4.1, `p = 13`, `n = 4`, `α = 0`: congruence modulo `13^1`. -/132theorem cong_p13_n4_a0 : CongMod 13 1 (1/120 : ℚ) (18681627030255062776346621005728155044542259059597813527413939046912/15 : ℚ) :=133 by norm_num [CongMod, PInt]134/-- **Sharpness**: the modulus `13^1` of Theorem 4.1 cannot be increased in this135instance (`v_13(ζ_{F_1}(1-4) - ζ_{F_0}(1-4)) = 1`). -/136theorem sharp_p13_n4_a0 : ¬ CongMod 13 2 (1/120 : ℚ) (18681627030255062776346621005728155044542259059597813527413939046912/15 : ℚ) :=137 by norm_num [CongMod, PInt]138139/-- `ζ_{F_1}(1-4)` is `13`-adically integral. -/140theorem int_p13_n4_a1 : PInt 13 (18681627030255062776346621005728155044542259059597813527413939046912/15 : ℚ) := by norm_num [PInt]141142/-! ## The hypothesis `p - 1 ∤ n` is necessary: without it integrality fails -/143144/-- `ζ_{F_0}(1-4)` is **not** `5`-adically integral (here `4 ∣ 4`). -/145theorem notint_p5_n4_a0 : ¬ PInt 5 (1/120 : ℚ) := by norm_num [PInt]146147/-- `ζ_{F_1}(1-4)` is **not** `5`-adically integral (here `4 ∣ 4`). -/148theorem notint_p5_n4_a1 : ¬ PInt 5 (75880707482/75 : ℚ) := by norm_num [PInt]149150/-- `ζ_{F_0}(1-6)` is **not** `7`-adically integral (here `6 ∣ 6`). -/151theorem notint_p7_n6_a0 : ¬ PInt 7 (-1/252 : ℚ) := by norm_num [PInt]152153/-- `ζ_{F_0}(1-10)` is **not** `11`-adically integral (here `10 ∣ 10`). -/154theorem notint_p11_n10_a0 : ¬ PInt 11 (-1/132 : ℚ) := by norm_num [PInt]155156/-! ## Lemma 4.7 as printed vs. corrected157158Printed: `H_{α,n} := ∏_{ζ ∈ P_{p^α}} F_n(ζ-1)` (`P_m` = primitive `m`-th roots of unity).159At `α = 0` this reads `H_{0,n} = F_n(0) = a_0 = -(1-p^{n-1}) B_n/n`, so the printed160claim `p ∤ B_n/n ⟹ H_{α,n} ≡ 1 (mod p)` for `p = 5, n = 2` says `1/3 ≡ 1 (mod 5)`,161which is **false**. (The proof of Lemma 4.7 computes the norm over `P_{p^{α+1}}`;162the exponent `p^α(p-1)` in eq. (4.8) is `|P_{p^{α+1}}|`. So the index set in the163statement is a typo.) -/164165/-- The value `a_0 = F_2(0)` for `p = 5, n = 2`. -/166theorem a0_p5_n2 : (-(1 - (5:ℚ)^(2-1)) * (1/6) / 2) = (1/3 : ℚ) := by norm_num167168/-- **Lemma 4.7 (2), printed form, is false**: `α = 0` gives `H = 1/3 ≢ 1 (mod 5)`. -/169theorem lemma47_printed_false : ¬ CongMod 5 1 (1/3) 1 := by norm_num [CongMod, PInt]170171/-- Corrected `H_{α,n}` (index set `P_{p^{α+1}}`), `p = 5, n = 2, α = 0`: `H = 1136`,172and indeed `H ≡ 1 (mod 5)`. -/173theorem lemma47_corrected_a0 : CongMod 5 1 (1136 : ℚ) 1 := by norm_num [CongMod, PInt]174175/-- and it is not `≡ 1` modulo `25`, so the `mod p` in Lemma 4.7 is sharp here. -/176theorem lemma47_a0_sharp : ¬ CongMod 5 2 (1136 : ℚ) 1 := by norm_num [CongMod, PInt]177178/-- Corrected `H_{α,n}` for `α = 1`, `p = 5`, `n = 2`: `H ≡ 1 (mod 25)`, `H ≢ 1 (mod 125)`. -/179theorem lemma47_corrected_a1 : CongMod 5 2 (8995342992975833676991823136424984576 : ℚ) 1 := by norm_num [CongMod, PInt]180theorem lemma47_a1_sharp : ¬ CongMod 5 3 (8995342992975833676991823136424984576 : ℚ) 1 := by norm_num [CongMod, PInt]181182/-! ## Theorem 4.1 is vacuous for `p = 3`183184`n` even and `p - 1 = 2 ∤ n` cannot both hold, so the statement has no instances at185`p = 3` — one reason Theorem B in §1.3 is stated for `p ≥ 5`. Note also that the first186instance one might try, `n = 2`, genuinely fails: `ζ(-1) = -1/12 ∉ ℤ_3`. -/187188theorem thm41_vacuous_at_three : ¬ ∃ n : ℕ, 0 < n ∧ Even n ∧ ¬ ((3 - 1) ∣ n) := by189 rintro ⟨n, -, hn, h⟩; exact h hn.two_dvd190191/-- `p = 3`, `n = 2`: integrality fails. -/192theorem p3_fails : ¬ PInt 3 (-1/12) := by norm_num [PInt]193194end ThesisAudit