Zeta and L-valuesBlueprintDependency graphThesis
Contents

KummerResiduePartial.lean

Statement index · Original Lean file

1/-2Part of the Kummer-congruence work (swarm smwl46mfx, member m4).34# A *proved* case of the `KummerResidue` congruence, and the exact boundary56`Thesis.KummerResidue p` asks for `B_M/M ≡ B_N/N (mod p)` whenever `M ≡ N (mod p-1)`7— that is, at **divisor level `m = 0`** of `(p-1)p^m ∣ (M - N)`. This file proves the8congruence in the project's own terms (namespace `Thesis`, `bernValue`, `ResidueModEq`)9for every **divisor level `m ≥ 1`**, together with the technical coprimality10hypotheses that the level-`1` Riemann-sum estimate requires:1112`k, k' ≥ 4` even, `(p-1) ∤ k`, `p ∤ k`, `p ∤ k'`, `p ∤ (k+1)`, `p ∤ (k'+1)`,13`(p-1)p^m ∣ (k - k')`, `m ≥ 1` ⟹ `ResidueModEq p (bernValue k) (bernValue k')`.1415The proof is `KummerMaximal.kummer_divided_congruence`, transferred along16`ℚ_[p] → ℂ_[p]`. **This is not `KummerResidue`**: the case `m = 0` is not reachable from17the Riemann-sum estimates. At `m = 0` the level-`1` difference of normalized sums only18lies in `p^{1-1} = p^0`, and indeed the *undivided* statement at `m = 0` is false19(`KummerStatement.lean` proves `‖(1-5)B_2 - (1-5^5)B_6‖ = 1` at `p = 5`), while the20divided one is true only because of the `p`-adic `L`-value integrality isolated in21`KummerEulerSplit.lean` (`KummerEulerInput`).22-/23import Thesis.KummerMaximal24import Thesis.Kummer2526open scoped BigOperators Topology2728namespace Thesis2930variable {p : ℕ} [hp : Fact p.Prime]3132/-- **A proved case of the `KummerResidue` congruence** (divisor level `m ≥ 1`). -/33theorem residueModEq_bernValue_of_dvd {k k' m : ℕ} (hk : 4 ≤ k) (hk' : 4 ≤ k')34 (hke : Even k) (hk'e : Even k') (hkd : ¬ p ∣ (k + 1)) (hk'd : ¬ p ∣ (k' + 1))35 (hkp : ¬ p ∣ k) (hk'p : ¬ p ∣ k') (hkres : ¬ (p - 1) ∣ k) (hk'res : ¬ (p - 1) ∣ k')36 (hk'k : k' ≤ k) (hdvd : ((p - 1) * p ^ m) ∣ (k - k')) (hm : 1 ≤ m) :37 ResidueModEq p (bernValue k) (bernValue k') := by38 have hp1 : (1 : ℝ) < p := by exact_mod_cast hp.out.one_lt39 have hp0 : (0 : ℝ) < p := by linarith40 rw [ResidueModEq]41 set q : ℚ := bernoulli k / k - bernoulli k' / k' with hq42 have hcast : bernValue (p := p) k - bernValue (p := p) k' = ((q : ℚ_[p]) : ℂ_[p]) := by43 simp only [bernValue, hq]44 push_cast45 ring46 rw [hcast, PadicComplex.norm_extends']47 have h2 : ‖(q : ℚ_[p])‖ ≤ (p : ℝ)⁻¹ := by48 rw [hq]49 have heq2 : ((((bernoulli k / k - bernoulli k' / k' : ℚ))) : ℚ_[p]) =50 ((bernoulli k : ℚ) : ℚ_[p]) / (k : ℚ_[p]) -51 ((bernoulli k' : ℚ) : ℚ_[p]) / (k' : ℚ_[p]) := by52 push_cast53 ring54 rw [heq2]55 exact KummerMaximal.kummer_divided_congruence hk hk' hke hk'e hkd hk'd hkp hk'p56 hkres hk'res hk'k hdvd hm57 refine lt_of_le_of_lt h2 ?_58 rw [inv_lt_one_iff₀]59 exact Or.inr (by exact_mod_cast hp1)6061end Thesis6263/-! ### Non-vacuity of the proved case6465The hypotheses of `residueModEq_bernValue_of_dvd` are met, e.g., at `p = 5`, `k = 6`,66`k' = 26`, `m = 1`: `(5-1)·5 ∣ 26 - 6`, and none of `5`, `4` divides `6`, `26`, `7`, `27`67in the excluded ways. -/6869example : ((5 - 1) * 5 ^ (1 : ℕ)) ∣ (26 - 6) := by norm_num70example : ¬ (5 : ℕ) ∣ (6 + 1) := by norm_num71example : ¬ (5 : ℕ) ∣ (26 + 1) := by norm_num72example : ¬ (5 : ℕ) ∣ 6 := by norm_num73example : ¬ (5 : ℕ) ∣ 26 := by norm_num74example : ¬ (5 - 1 : ℕ) ∣ 6 := by norm_num75example : ¬ (5 - 1 : ℕ) ∣ 26 := by norm_num