Contents
StatementChecks.lean
Statement index · Original Lean file
1
import Thesis.Theorem43Lemmas2import Thesis.KummerLeopoldt34/-!5Independent statement checks against the supplied thesis and Lean sources.6The counterexample proofs below do not invoke any of the archive's admitted results.7-/89set_option pp.universes false in10#check @Thesis.rootProduct_congruences11#print Thesis.ShiftPowerSeries1213namespace ThesisStatementChecks1415open Thesis1617local instance : Fact (Nat.Prime 5) := ⟨by decide⟩1819/-- The index 1 makes the required constant term vanish. -/20noncomputable def zeroShift : ShiftPowerSeries 5 1 where21 series := 022 constant_term := by simp [padicIntToCp]2324theorem rootProduct_zeroShift : rootProduct zeroShift 0 = 0 := by25 classical26 obtain ⟨ζ, hζ⟩ := HasEnoughRootsOfUnity.exists_primitiveRoot ℂ_[5] 527 unfold rootProduct28 apply Finset.prod_eq_zero (i := ζ)29 · simpa using (mem_primitiveRoots (by decide : 0 < 5)).mpr hζ30 · simp [ShiftPowerSeries.eval, evalPowerSeries, zeroShift, padicIntToCp]3132theorem bernoulli_two_nonzero_mod_five :33 ¬ ResidueModEq 5 ((bernoulli 2 : ℂ_[5]) / 2) 0 := by34 have h6 : ‖(6 : ℂ_[5])‖ = 1 :=35 norm_natCast_eq_one_of_not_dvd (p := 5) (n := 6) (by decide)36 have h2 : ‖(2 : ℂ_[5])‖ = 1 :=37 norm_natCast_eq_one_of_not_dvd (p := 5) (n := 2) (by decide)38 rw [ResidueModEq, sub_zero, bernoulli_two, Rat.cast_inv, Rat.cast_ofNat,39 norm_div, norm_inv, h6, h2]40 norm_num4142/-- This is the second implication asserted by the archive when the43 independently bound test index is 2, the series index is 1 and α is 0. -/44theorem counterexample :45 AdmissibleIndex 5 2 ∧46 ¬ (¬ResidueModEq 5 ((bernoulli 2 : ℂ_[5]) / 2) 0 →47 ResidueModEq 5 (rootProduct zeroShift 0) 1) := by48 refine ⟨⟨by decide, even_two, by decide⟩, ?_⟩49 intro h50 have bad := h bernoulli_two_nonzero_mod_five51 simp [rootProduct_zeroShift, ResidueModEq] at bad5253#print axioms counterexample5455/-- The norm-bound part of Lemma 4.7 already follows from the archive's56convergence estimates. It says that the product belongs to the integers of57ℂₚ. Descent to ℤₚ and identification with a field norm require more. -/58theorem rootProduct_norm_bound {p seriesIndex : ℕ} [Fact p.Prime]59 (F : ShiftPowerSeries p seriesIndex) (hp : 3 ≤ p) (α : ℕ) :60 PadicIntegral p (rootProduct F α) := by61 classical62 unfold PadicIntegral rootProduct63 rw [norm_prod]64 apply Finset.prod_le_one65 · intro ζ _66 exact norm_nonneg _67 · intro ζ hζ68 have hprim : IsPrimitiveRoot ζ (p ^ (α + 1)) :=69 (mem_primitiveRoots (pow_pos (Fact.out : Nat.Prime p).pos _)).mp hζ70 have hz : ‖ζ - 1‖ < 1 :=71 norm_sub_one_lt_one_of_pow_prime_pow_eq_one (by omega) hprim.pow_eq_one72 apply norm_tsum_le_of_forall_le (summable_evalPowerSeries F.series hz) zero_le_one73 intro j74 rw [norm_mul, norm_pow]75 exact mul_le_one₀ (norm_padicIntToCp_le_one _) (pow_nonneg (norm_nonneg _) _)76 (pow_le_one₀ (norm_nonneg _) hz.le)7778/-- The two indices in the archived declaration are independently quantified.79The second implication already gives a contradiction at the stated witness. -/80theorem independent_indices_false :81 ¬ ∀ {seriesIndex : ℕ} (F : ShiftPowerSeries 5 seriesIndex)82 (_hp : 3 ≤ 5) (α n : ℕ) (_hn : AdmissibleIndex 5 n),83 (ResidueModEq 5 ((bernoulli n : ℂ_[5]) / n) 0 →84 ResidueModEq 5 (rootProduct F α) 0) ∧85 (¬ ResidueModEq 5 ((bernoulli n : ℂ_[5]) / n) 0 →86 ResidueModEq 5 (rootProduct F α) 1) := by87 intro universalClaim88 exact counterexample.2 (universalClaim zeroShift (by decide) 0 2 counterexample.1).28990/-- The field of the archive structure forces −1/3 at p=5, n=2. -/91theorem archived_constant_at_five (F : ShiftPowerSeries 5 2) :92 padicIntToCp (PowerSeries.constantCoeff F.series) = -(1 / 3 : ℂ_[5]) := by93 rw [F.constant_term, bernoulli_two]94 norm_num9596/-- The normalized value from the thesis, separately formalized in the archive. -/97theorem thesis_constant_at_five : klZeta 5 2 = 1 / 3 := by98 norm_num [klZeta, bernoulli_two]99100/-- This comparison of the two displayed right-hand sides needs no series input. -/101theorem constant_formulas_unequal :102 (1 - (5 : ℂ_[5]) ^ (2 - 1 : ℕ)) * (bernoulli 2 : ℂ_[5]) / 2 ≠103 (klZeta 5 2 : ℂ_[5]) := by104 rw [thesis_constant_at_five, bernoulli_two]105 norm_num106107theorem constant_term_mismatch (F : ShiftPowerSeries 5 2) :108 padicIntToCp (PowerSeries.constantCoeff F.series) ≠ (klZeta 5 2 : ℂ_[5]) := by109 rw [archived_constant_at_five, thesis_constant_at_five]110 norm_num111112set_option maxHeartbeats 2000000 in113/-- Removing the denominator n changes the divisibility test when p divides n. -/114theorem normalized_bernoulli_at_ten :115 (5 : ℤ) ∣ (bernoulli 10).num ∧116 ¬ (5 : ℤ) ∣ (bernoulli 10 / 10).num ∧117 bernoulli 10 / 10 = 1 / 132 := by118 have h : bernoulli 10 = 5 / 66 := by decide +kernel119 norm_num [h]120121/-- The primitive trivial character is present in every character group.122At index ten its generalized Bernoulli number is the ordinary one. -/123theorem trivial_character_at_ten :124 (5 : ℤ) ∣ (generalizedBernoulli (1 : DirichletCharacter ℚ 1) 10).num ∧125 ¬ (5 : ℤ) ∣ (bernoulli 10 / 10).num := by126 rw [generalizedBernoulli_modOne_of_ne_one _ (by decide : 10 ≠ 1)]127 exact ⟨normalized_bernoulli_at_ten.1, normalized_bernoulli_at_ten.2.1⟩128129/-- The weighted increment permits the irregular branch of the thesis's argument. -/130theorem step_iff_weighted {p : ℕ} [Fact p.Prime] (α n : ℕ) :131 PadicModEq p (α + 1) (cyclotomicTowerValue p α n)132 (cyclotomicTowerValue p (α + 1) n) ↔133 PadicIntegral p (cyclotomicTowerValue p α n * (1 - newProduct p α n) /134 (p : ℂ_[p]) ^ (α + 1)) := by135 rw [PadicModEq, cyclotomicTowerValue_succ p α n Fact.out, mul_sub, mul_one]136137/-- Base integrality and the weighted increments imply the complete tower congruence138for the archive's finite-product model. The weighted divisibility remains an input. -/139theorem main_congruence_of_weighted {p : ℕ} [Fact p.Prime] (n : ℕ)140 (hbase : PadicIntegral p (cyclotomicTowerValue p 0 n))141 (hweighted : ∀ α, PadicIntegral p (cyclotomicTowerValue p α n *142 (1 - newProduct p α n) / (p : ℂ_[p]) ^ (α + 1))) (α : ℕ) :143 PadicIntegral p (cyclotomicTowerValue p α n) ∧144 PadicModEq p (α + 1) (cyclotomicTowerValue p α n)145 (cyclotomicTowerValue p (α + 1) n) := by146 refine ⟨?_, (step_iff_weighted α n).mpr (hweighted α)⟩147 induction α with148 | zero => exact hbase149 | succ α ih =>150 exact padicIntegral_of_padicModEq p Fact.out151 (padicModEq_symm ((step_iff_weighted α n).mpr (hweighted α))) ih152153/-- In the nonunit branch one factor of p at each level suffices.154Together with the archive's unit-branch reduction this implements the155two different valuation arguments in the proof of Theorem 4.1. -/156theorem main_congruence_of_divisible_factors {p : ℕ} [Fact p.Prime] (n : ℕ)157 (hbase : PadicModEq p 1 (cyclotomicTowerValue p 0 n) 0)158 (hnew : ∀ α, PadicModEq p 1 (newProduct p α n) 0) (α : ℕ) :159 PadicIntegral p (cyclotomicTowerValue p α n) ∧160 PadicModEq p (α + 1) (cyclotomicTowerValue p α n)161 (cyclotomicTowerValue p (α + 1) n) := by162 have htower : ∀ a, PadicIntegral p163 (cyclotomicTowerValue p a n / (p : ℂ_[p]) ^ (a + 1)) := by164 intro a165 induction a with166 | zero => simpa [PadicModEq] using hbase167 | succ a ih =>168 have hq : PadicIntegral p (newProduct p a n / p) := by169 simpa [PadicModEq] using hnew a170 rw [cyclotomicTowerValue_succ p a n Fact.out, pow_succ]171 simpa only [div_mul_div_comm] using padicIntegral_mul ih hq172 apply main_congruence_of_weighted n173 · exact padicIntegral_of_padicModEq p Fact.out hbase (padicIntegral_zero p)174 · intro a175 have hq : PadicIntegral p (newProduct p a n) :=176 padicIntegral_of_padicModEq p Fact.out (hnew a) (padicIntegral_zero p)177 convert padicIntegral_mul (htower a) (padicIntegral_sub (padicIntegral_one p) hq)178 using 1 <;> ring179180#print axioms independent_indices_false181#print axioms rootProduct_norm_bound182#print axioms constant_formulas_unequal183#print axioms constant_term_mismatch184#print axioms normalized_bernoulli_at_ten185#print axioms trivial_character_at_ten186#print axioms main_congruence_of_weighted187#print axioms main_congruence_of_divisible_factors188189end ThesisStatementChecks