Contents
verification-EulerAudit.lean
Statement index · Original Lean file
1
/-2Audit artifact — swarm `smwl2pri6`, member m15 (direction d10: source fidelity / counterexample audit).34# `euler_congruence_source_statement` is **false** as formalized56`Thesis/Applications.lean` renders Corollary 4.14 of the thesis (Corollary 4.6 of the7thesis text) by fixing Harder's Euler-characteristic formula as the structure field89 structure SymplecticEulerData (p n : ℕ) where10 euler : ℕ → ℂ_[p]11 euler_eq : ∀ α, euler α =12 (2 : ℂ_[p]) ^ (-(n * (p ^ α - n) : ℤ)) * ∏ i ∈ Finset.Icc 1 n, cyclotomicTowerValue p α (2 * i)1314(note: the `: ℤ` annotation makes the whole exponent an *integer* expression, so15`p ^ α - n` is integer subtraction and no truncation occurs), and states1617 theorem euler_congruence_source_statement (D : SymplecticEulerData p n)18 (hp : max 3 (n + 1) < p) (α : ℕ) : PadicModEq p 1 (D.euler α) (D.euler (α + 1))1920with the printed hypothesis `p > max 3 (n+1)`. That hypothesis does not force21`(p - 1) ∤ 2i` for `1 ≤ i ≤ n`, and the conclusion is not merely unproven but **false**:2223`p = 5`, `n = 2` satisfies `max 3 (n+1) = 3 < 5`, yet2425 euler 0 = 2^(2·1) · ζ(-1) · ζ(-3) = 4 · (-1/12) · (1/120) = -1/360,26 euler 1 = 2^(-6) · ζ_{F_1}(-1) · ζ_{F_1}(-3) = (1/64)(-284/3)(75880707482/75)27 = -2693765115611/1800,2829and `(euler 0 - euler 1)/5 = 448960852601/1500` has `5`-adic valuation `-3`, so its30norm in `ℂ_[5]` is `125 > 1`: `PadicModEq 5 1 (D.euler 0) (D.euler 1)` fails.3132What is proved here, kernel-checked:3334* `euler_zero_eq` — the value at `α = 0` for arbitrary `p, n, D` (no hypotheses);35* `euler_zero_p5_two` — it equals `-1/360` at `p = 5, n = 2` (fully unconditional);36* `euler_one_p5_two` — `euler 1 = -2693765115611/1800` from the two exact level-one37 values of the tower (the only external input);38* `euler_congruence_source_statement_inconsistent` — **the refutation, unconditionally**:39 `¬ (PadicIntegral 5 (D.euler 1) ∧ PadicModEq 5 1 (D.euler 0) (D.euler 1))`;40 i.e. the congiuence at `α = 0` is incompatible with the integrality of41 Harder's `euler 1`, which is exactly what Theorem 4.1 (Lemma 4.8) supplies;42* `euler_congruence_false` — the same refutation with the integrality replaced by the two exact43 level-one tower values;44* `euler_congruence_p7_two_holds` — the corrected statement (`HarderIndexCondition`) holds at45 `p = 7, n = 2`, where `6 ∤ 2` and `6 ∤ 4` (the index condition is46 exactly what removes the counterexample).4748The two level-one values `ζ_{F_1}(-1) = -284/3` and `ζ_{F_1}(-3) = 75880707482/75` are exact49rational values of explicit finite products of generalized Bernoulli numbers; they are50recomputed independently in this directory by `cyc.py` (character-product formula in51`ℚ(ζ_100)`), and are the same values recorded in `verification/Audit.lean`52(`int_p5_n2_a1`, `notint_p5_n4_a1`).53-/54import Thesis.Applications5556namespace ThesisAudit5758open scoped BigOperators59open Thesis6061noncomputable section6263instance : Fact (Nat.Prime 5) := ⟨by norm_num⟩6465instance : Fact (Nat.Prime 7) := ⟨by norm_num⟩6667variable {p : ℕ} [Fact p.Prime]6869/-! ## 1. The value of `euler 0` -/7071/-- At `α = 0` the exponent `-n (p^α - n)` is `-(n (1 - n)) = n (n - 1)` (integer arithmetic:72the `: ℤ` annotation in `euler_eq` puts the subtraction in `ℤ`). -/73theorem euler_zero_eq (n : ℕ) (D : SymplecticEulerData p n) :74 D.euler 0 = (2 : ℂ_[p]) ^ ((n : ℤ) * ((n : ℤ) - 1)) *75 ∏ i ∈ Finset.Icc 1 n, cyclotomicTowerValue p 0 (2 * i) := by76 rw [D.euler_eq 0]77 have hexp : (-(↑n * ((↑p : ℤ) ^ (0 : ℕ) - ↑n))) = (n : ℤ) * ((n : ℤ) - 1) := by78 rw [pow_zero]; ring79 rw [hexp]8081/-- `p = 5`, `n = 2`: the formalized `euler 0` is `4 · ζ(-1) · ζ(-3) = -1/360`. No hypothesis. -/82theorem euler_zero_p5_two (D : SymplecticEulerData 5 2) :83 D.euler 0 = (-1 / 360 : ℂ_[5]) := by84 rw [euler_zero_eq]85 have hI : Finset.Icc 1 2 = ({1, 2} : Finset ℕ) := by decide86 rw [hI, Finset.prod_pair (by decide)]87 rw [show (2 * 1 : ℕ) = 2 by norm_num, show (2 * 2 : ℕ) = 4 by norm_num]88 rw [cyclotomicTowerValue_zero_of_ne_one (p := 5) (by norm_num),89 cyclotomicTowerValue_zero_of_ne_one (p := 5) (by norm_num)]90 norm_num [bernoulli]9192/-! ## 2. Norms of specific rationals in `ℂ_[p]` -/9394lemma norm_prime_cast (p : ℕ) [Fact p.Prime] : ‖(p : ℂ_[p])‖ = (p : ℝ)⁻¹ := by95 rw [show (p : ℂ_[p]) = ((p : ℚ_[p]) : ℂ_[p]) by norm_cast,96 PadicComplex.norm_extends', Padic.norm_p]9798lemma norm_natCast_eq_one_of_not_dvd (p : ℕ) [Fact p.Prime] (n : ℕ) (h : ¬ p ∣ n) :99 ‖(n : ℂ_[p])‖ = 1 := by100 rw [show (n : ℂ_[p]) = ((n : ℚ_[p]) : ℂ_[p]) by norm_cast,101 PadicComplex.norm_extends', Padic.norm_natCast_eq_one_iff]102 exact (Fact.out : Nat.Prime p).coprime_iff_not_dvd.mpr h103104lemma norm_five : ‖(5 : ℂ_[5])‖ = (5 : ℝ)⁻¹ := norm_prime_cast 5105106lemma norm_seven : ‖(7 : ℂ_[7])‖ = (7 : ℝ)⁻¹ := norm_prime_cast 7107108/-! ## 3. The level-one tower values and the refutation -/109110/-- `euler 1` at `p = 5`, `n = 2`, from the two exact level-one values of the tower. -/111theorem euler_one_p5_two (D : SymplecticEulerData 5 2)112 (h2 : cyclotomicTowerValue 5 1 2 = (-284 / 3 : ℂ_[5]))113 (h4 : cyclotomicTowerValue 5 1 4 = (75880707482 / 75 : ℂ_[5])) :114 D.euler 1 = (-2693765115611 / 1800 : ℂ_[5]) := by115 rw [D.euler_eq 1]116 have hI : Finset.Icc 1 2 = ({1, 2} : Finset ℕ) := by decide117 rw [hI, Finset.prod_pair (by decide)]118 rw [show (2 * 1 : ℕ) = 2 by norm_num, show (2 * 2 : ℕ) = 4 by norm_num]119 rw [h2, h4]120 norm_num121122/-- Norm of `360` in `ℂ_[5]`: `5 ∤ 72`, so `‖360‖ = ‖5‖`. -/123lemma norm_360 : ‖(360 : ℂ_[5])‖ = (5 : ℝ)⁻¹ := by124 have h72 : ‖(72 : ℂ_[5])‖ = 1 := norm_natCast_eq_one_of_not_dvd 5 72 (by norm_num)125 rw [show (360 : ℂ_[5]) = (5 : ℂ_[5]) * (72 : ℂ_[5]) by norm_num, norm_mul, norm_five, h72,126 mul_one]127128/-- **The refutation, hypothesis-free.** At `p = 5`, `n = 2`, `α = 0` the value `euler 0` is129`-1/360`, of norm `5`. Hence the conclusion `PadicModEq 5 1 (euler 0) (euler 1)` of130`euler_congruence_source_statement` is **incompatible** with `euler 1` being `5`-adically integral:131an integral `euler 1` and `‖euler 0‖ = 5` give `‖euler 0 - euler 1‖ = 5 > ‖5‖`.132133Since `euler 1 = 2^(-6)·ζ_{F_1}(-1)·ζ_{F_1}(-3)` and `ζ_{F_α}(1-n) ∈ ℤ_p` is exactly134`cyclotomicTowerValue_integral` (Lemma 4.8) — true, but still a `sorry` in this project — the135mathematical statement "Theorem 4.1 gives integrality, hence the congruence" is inconsistent at136`p = 5, n = 2, α = 0`: the printed hypothesis `p > max 3 (n+1)` does not suffice. -/137theorem euler_congruence_source_statement_inconsistent (D : SymplecticEulerData 5 2) :138 ¬ (PadicIntegral 5 (D.euler 1) ∧ PadicModEq 5 1 (D.euler 0) (D.euler 1)) := by139 rintro ⟨hint, hcong⟩140 rw [PadicIntegral] at hint141 rw [euler_zero_p5_two D] at hcong142 rw [PadicModEq, PadicIntegral] at hcong143 have hfive : ((5 : ℕ) : ℂ_[5]) = (5 : ℂ_[5]) := by norm_num144 rw [hfive] at hcong145 -- `‖(-1/360 : ℂ_[5])‖ = 5`146 have h360 : ‖(-1 / 360 : ℂ_[5])‖ = 5 := by147 rw [show (-1 / 360 : ℂ_[5]) = -(1 / 360 : ℂ_[5]) by norm_num, norm_neg, norm_div,148 norm_one, norm_360]149 norm_num150 -- an integral `D.euler 1` and `‖-1/360‖ = 5` give `‖(-1/360) - D.euler 1‖ = 5`151 have hsub : ‖(-1 / 360 : ℂ_[5]) - D.euler 1‖ = 5 := by152 have hle : ‖(-1 / 360 : ℂ_[5]) - D.euler 1‖ ≤ 5 := by153 have h := PadicComplex.isNonarchimedean 5 (-1 / 360 : ℂ_[5]) (-(D.euler 1))154 rw [show (-1 / 360 : ℂ_[5]) + -(D.euler 1) = (-1 / 360 : ℂ_[5]) - D.euler 1 from by ring,155 norm_neg, h360] at h156 exact h.trans (max_le le_rfl (by linarith))157 have hge : (5 : ℝ) ≤ ‖(-1 / 360 : ℂ_[5]) - D.euler 1‖ := by158 have h := PadicComplex.isNonarchimedean 5 ((-1 / 360 : ℂ_[5]) - D.euler 1) (D.euler 1)159 rw [sub_add_cancel, h360] at h160 by_contra hlt161 have hlt' : ‖(-1 / 360 : ℂ_[5]) - D.euler 1‖ < 5 := lt_of_not_ge hlt162 have : max ‖(-1 / 360 : ℂ_[5]) - D.euler 1‖ ‖D.euler 1‖ < 5 := max_lt hlt' (by linarith)163 linarith164 exact le_antisymm hle hge165 rw [norm_div, hsub, pow_one, norm_five] at hcong166 norm_num at hcong167168/-- The same inconsistency stated with the integrality replaced by the two exact level-one values169(each of which implies it). -/170theorem euler_congruence_false (D : SymplecticEulerData 5 2)171 (h2 : cyclotomicTowerValue 5 1 2 = (-284 / 3 : ℂ_[5]))172 (h4 : cyclotomicTowerValue 5 1 4 = (75880707482 / 75 : ℂ_[5])) :173 ¬ PadicModEq 5 1 (D.euler 0) (D.euler 1) := by174 rw [euler_zero_p5_two D, euler_one_p5_two D h2 h4]175 intro h176 rw [PadicModEq, PadicIntegral] at h177 have hfive : ((5 : ℕ) : ℂ_[5]) = (5 : ℂ_[5]) := by norm_num178 rw [hfive] at h179 have hval : (((-1 / 360 : ℂ_[5]) - (-2693765115611 / 1800 : ℂ_[5])) /180 (5 : ℂ_[5]) ^ 1)181 = (448960852601 : ℂ_[5]) / 1500 := by182 norm_num183 rw [hval] at h184 have hA : ‖(448960852601 : ℂ_[5])‖ = 1 :=185 norm_natCast_eq_one_of_not_dvd 5 _ (by norm_num)186 have hB : ‖(1500 : ℂ_[5])‖ = (5 : ℝ) ^ (-3 : ℤ) := by187 have hfac : (1500 : ℂ_[5]) = (5 : ℂ_[5]) ^ 3 * (12 : ℂ_[5]) := by norm_num188 have h12 : ‖(12 : ℂ_[5])‖ = 1 := norm_natCast_eq_one_of_not_dvd 5 12 (by norm_num)189 rw [hfac, norm_mul, norm_pow, norm_five, h12, mul_one]190 norm_num191 rw [norm_div, hA, hB] at h192 rw [show ((5 : ℝ) ^ (-3 : ℤ)) = 1 / 125 by norm_num] at h193 norm_num at h194195/-! ## 4. The corrected statement holds at `p = 7`, `n = 2` -/196197/-- With the index condition `HarderIndexCondition 7 2` (`6 ∤ 2`, `6 ∤ 4`) the congruence of198`euler_congruence_strengthened` **does** hold at the same `n = 2`, so the missing hypothesis199— not the congruence itself — is the defect. -/200theorem euler_congruence_p7_two_holds (D : SymplecticEulerData 7 2)201 (h2 : cyclotomicTowerValue 7 1 2 = (-4406096 / 3 : ℂ_[7]))202 (h4 : cyclotomicTowerValue 7 1 4 = (7510159412652487566424 / 15 : ℂ_[7])) :203 PadicModEq 7 1 (D.euler 0) (D.euler 1) := by204 have hzero : D.euler 0 = (-1 / 360 : ℂ_[7]) := by205 rw [euler_zero_eq]206 have hI : Finset.Icc 1 2 = ({1, 2} : Finset ℕ) := by decide207 rw [hI, Finset.prod_pair (by decide)]208 rw [show (2 * 1 : ℕ) = 2 by norm_num, show (2 * 2 : ℕ) = 4 by norm_num]209 rw [cyclotomicTowerValue_zero_of_ne_one (p := 7) (by norm_num),210 cyclotomicTowerValue_zero_of_ne_one (p := 7) (by norm_num)]211 norm_num [bernoulli]212 have hone : D.euler 1 = (-258519401151956834816175943 / 360 : ℂ_[7]) := by213 rw [D.euler_eq 1]214 have hI : Finset.Icc 1 2 = ({1, 2} : Finset ℕ) := by decide215 rw [hI, Finset.prod_pair (by decide)]216 rw [show (2 * 1 : ℕ) = 2 by norm_num, show (2 * 2 : ℕ) = 4 by norm_num]217 rw [h2, h4]218 norm_num219 rw [PadicModEq, PadicIntegral, hzero, hone]220 have hseven : ((7 : ℕ) : ℂ_[7]) = (7 : ℂ_[7]) := by norm_num221 rw [hseven]222 have hval : (((-1 / 360 : ℂ_[7]) - (-258519401151956834816175943 / 360 : ℂ_[7])) /223 (7 : ℂ_[7]) ^ 1)224 = (6155223836951353209908951 : ℂ_[7]) / 60 := by225 norm_num226 rw [hval, norm_div]227 have hA : ‖(6155223836951353209908951 : ℂ_[7])‖ = 1 :=228 norm_natCast_eq_one_of_not_dvd 7 _ (by norm_num)229 have hB : ‖(60 : ℂ_[7])‖ = 1 := norm_natCast_eq_one_of_not_dvd 7 60 (by norm_num)230 rw [hA, hB]231 norm_num232233end234235end ThesisAudit236237/-! ## Axiom audit: no `sorryAx`, no custom axioms. -/238#print axioms ThesisAudit.euler_zero_eq239#print axioms ThesisAudit.euler_zero_p5_two240#print axioms ThesisAudit.euler_one_p5_two241#print axioms ThesisAudit.euler_congruence_source_statement_inconsistent242#print axioms ThesisAudit.euler_congruence_false243#print axioms ThesisAudit.euler_congruence_p7_two_holds