Contents
Harder.lean
Statement index · Original Lean file
1
import Thesis.Applications23/-!4# Section 4.3: the K-theoretic applications of Theorem 4.156Shubhrajit Bhattacharya, *On Some Congruences of Zeta and L-values at Negative Odd7Integers* (UBC MSc thesis, April 2024), §4.3.89Contents:1011* congruence algebra for `ℂ_[p]`: closure of `PadicModEq`/`ResidueModEq` under sums,12 products, powers and finite products, Fermat in `ℂ_[p]` (`2^(p-1) ≡ 1 (mod p)`) and13 consequences — no analysis, no external input;14* **Corollary 4.14** (Harder's homological Euler characteristic of `Sp_{2n}`):15 `euler_congruence_strengthened` with the exact index condition `p - 1 ∤ 2i` used by the16 printed proof, `euler_congruence_of_two_mul_lt` unconditionally for `p > 2n+1`, and17 `euler_congruence_source_statement` for the printed hypothesis together with the single18 missing input `ExceptionalIndexCongruence` at the index `2i = p - 1`;19 `harder_index_obstruction` records that the printed hypothesis does not imply the index20 condition, which is the gap in the printed proof;21* **Corollary 4.12** (`p`-torsion in `K_{4m-2}`): `cor_4_12_arithmetic` is the input22 Theorem 4.1 provides, `cor_4_12` the K-theoretic deduction with the external theorems23 (Wiles/Lichtenbaum, Lemma 4.11) as explicit fields of `HigherKGroupData`.2425The only remaining `sorryAx` in the statements proved here enters through26`Thesis.main_congruence` (Theorem 4.1), which this file uses but does not prove.27-/2829namespace Thesis3031noncomputable section3233open scoped BigOperators3435variable {p : ℕ} [Fact p.Prime]3637/-- The additional index condition needed by the proof given in the thesis: no index38`1 ≤ i ≤ n` has `p - 1 ∣ 2 i`. (Declared here so that this module does not depend on39where the project keeps it; `Thesis/Applications.lean` must not declare it as well.) -/40def HarderIndexCondition (p n : ℕ) : Prop :=41 ∀ i ∈ Finset.Icc 1 n, ¬(p - 1 ∣ 2 * i)4243/-! ### Norms, integrality and congruence algebra -/4445lemma harder_norm_prime_lt_one (p : ℕ) [Fact p.Prime] : ‖(p : ℂ_[p])‖ < 1 := by46 rw [show (p : ℂ_[p]) = ((p : ℚ_[p]) : ℂ_[p]) by norm_cast,47 PadicComplex.norm_extends', Padic.norm_p]48 exact inv_lt_one_of_one_lt₀ (by exact_mod_cast (Fact.out : Nat.Prime p).one_lt)4950lemma harder_norm_prime_pow_le_one (k : ℕ) : ‖(p : ℂ_[p]) ^ k‖ ≤ 1 := by51 rw [norm_pow]52 calc ‖(p : ℂ_[p])‖ ^ k ≤ 1 ^ k :=53 pow_le_pow_left₀ (norm_nonneg _) (harder_norm_prime_lt_one p).le k54 _ = 1 := one_pow k5556lemma harder_norm_sub_le_one_of_padicModEq {k : ℕ} {x y : ℂ_[p]} (h : PadicModEq p k x y) :57 ‖x - y‖ ≤ 1 := by58 have hp0 : (p : ℂ_[p]) ≠ 0 := by exact_mod_cast (Fact.out : Nat.Prime p).ne_zero59 rw [PadicModEq, PadicIntegral] at h60 have heq : x - y = (p : ℂ_[p]) ^ k * ((x - y) / (p : ℂ_[p]) ^ k) := by61 field_simp62 rw [heq, norm_mul]63 exact mul_le_one₀ (harder_norm_prime_pow_le_one k) (norm_nonneg _) h6465lemma harder_padicIntegral_of_padicModEq {k : ℕ} {x y : ℂ_[p]}66 (h : PadicModEq p k x y) (hy : PadicIntegral p y) : PadicIntegral p x := by67 have hxy : ‖x - y‖ ≤ 1 := harder_norm_sub_le_one_of_padicModEq h68 have hx : x = (x - y) + y := by ring69 rw [PadicIntegral, hx]70 exact (PadicComplex.isNonarchimedean p _ _).trans (max_le hxy hy)7172lemma harder_padicIntegral_pow {x : ℂ_[p]} (hx : PadicIntegral p x) (k : ℕ) :73 PadicIntegral p (x ^ k) := by74 induction k with75 | zero => simpa using padicIntegral_one p76 | succ k ih => rw [pow_succ]; exact padicIntegral_mul ih hx7778lemma harder_padicIntegral_inv {x : ℂ_[p]} (hx : ‖x‖ = 1) : PadicIntegral p x⁻¹ := by79 rw [PadicIntegral, norm_inv, hx, inv_one]8081lemma harder_padicModEq_add {k : ℕ} {x x' y y' : ℂ_[p]}82 (h : PadicModEq p k x x') (h' : PadicModEq p k y y') :83 PadicModEq p k (x + y) (x' + y') := by84 simp only [PadicModEq] at *85 have heq : (x + y - (x' + y')) / (p : ℂ_[p]) ^ k86 = (x - x') / (p : ℂ_[p]) ^ k + (y - y') / (p : ℂ_[p]) ^ k := by ring87 rw [heq]88 exact padicIntegral_add h h'8990lemma harder_padicModEq_sub {k : ℕ} {x x' y y' : ℂ_[p]}91 (h : PadicModEq p k x x') (h' : PadicModEq p k y y') :92 PadicModEq p k (x - y) (x' - y') := by93 simp only [PadicModEq] at *94 have heq : (x - y - (x' - y')) / (p : ℂ_[p]) ^ k95 = (x - x') / (p : ℂ_[p]) ^ k - (y - y') / (p : ℂ_[p]) ^ k := by ring96 rw [heq]97 exact padicIntegral_sub h h'9899lemma harder_padicModEq_mul_left {k : ℕ} {x y : ℂ_[p]} (z : ℂ_[p])100 (hz : PadicIntegral p z) (h : PadicModEq p k x y) :101 PadicModEq p k (z * x) (z * y) := by102 simp only [PadicModEq] at *103 have heq : (z * x - z * y) / (p : ℂ_[p]) ^ k = z * ((x - y) / (p : ℂ_[p]) ^ k) := by104 ring105 rw [heq]106 exact padicIntegral_mul hz h107108lemma harder_padicModEq_mul {k : ℕ} {x x' y y' : ℂ_[p]} (hx : PadicIntegral p x)109 (hy' : PadicIntegral p y') (h : PadicModEq p k x x') (h' : PadicModEq p k y y') :110 PadicModEq p k (x * y) (x' * y') := by111 simp only [PadicModEq] at *112 have heq : (x * y - x' * y') / (p : ℂ_[p]) ^ k113 = x * ((y - y') / (p : ℂ_[p]) ^ k) + ((x - x') / (p : ℂ_[p]) ^ k) * y' := by114 ring115 rw [heq]116 exact padicIntegral_add (padicIntegral_mul hx h') (padicIntegral_mul h hy')117118lemma harder_padicModEq_pow {k : ℕ} {x y : ℂ_[p]} (hy : PadicIntegral p y)119 (h : PadicModEq p k x y) (N : ℕ) : PadicModEq p k (x ^ N) (y ^ N) := by120 induction N with121 | zero => simpa using padicModEq_refl p k 1122 | succ N ih =>123 have hx' : PadicIntegral p (x ^ N) :=124 harder_padicIntegral_pow (harder_padicIntegral_of_padicModEq h hy) N125 have hy' : PadicIntegral p (y ^ N) := harder_padicIntegral_pow hy N126 rw [pow_succ, pow_succ]127 exact harder_padicModEq_mul hx' hy ih h128129lemma harder_padicModEq_prod {ι : Type*} (s : Finset ι) {k : ℕ} (f g : ι → ℂ_[p])130 (hf : ∀ i ∈ s, PadicIntegral p (f i)) (hg : ∀ i ∈ s, PadicIntegral p (g i))131 (h : ∀ i ∈ s, PadicModEq p k (f i) (g i)) :132 PadicModEq p k (∏ i ∈ s, f i) (∏ i ∈ s, g i) := by133 classical134 induction s using Finset.induction_on with135 | empty => simpa using padicModEq_refl p k 1136 | @insert a s ha ih =>137 rw [Finset.prod_insert ha, Finset.prod_insert ha]138 exact harder_padicModEq_mul (hf a (Finset.mem_insert_self a s))139 (finset_prod_integral s g fun i hi => hg i (Finset.mem_insert_of_mem hi))140 (h a (Finset.mem_insert_self a s))141 (ih (fun i hi => hf i (Finset.mem_insert_of_mem hi))142 (fun i hi => hg i (Finset.mem_insert_of_mem hi))143 (fun i hi => h i (Finset.mem_insert_of_mem hi)))144145lemma harder_residueModEq_mul {x x' y y' : ℂ_[p]} (hx : PadicIntegral p x)146 (hy' : PadicIntegral p y') (h : ResidueModEq p x x') (h' : ResidueModEq p y y') :147 ResidueModEq p (x * y) (x' * y') := by148 simp only [ResidueModEq, PadicIntegral] at *149 have h1 : ‖x * (y - y')‖ ≤ ‖y - y'‖ := by150 rw [norm_mul]151 calc ‖x‖ * ‖y - y'‖ ≤ 1 * ‖y - y'‖ := by152 exact mul_le_mul_of_nonneg_right hx (norm_nonneg _)153 _ = ‖y - y'‖ := one_mul _154 have h2 : ‖(x - x') * y'‖ ≤ ‖x - x'‖ := by155 rw [norm_mul]156 calc ‖x - x'‖ * ‖y'‖ ≤ ‖x - x'‖ * 1 := by157 exact mul_le_mul_of_nonneg_left hy' (norm_nonneg _)158 _ = ‖x - x'‖ := mul_one _159 have heq : x * y - x' * y' = x * (y - y') + (x - x') * y' := by ring160 rw [heq]161 exact (PadicComplex.isNonarchimedean p _ _).trans_lt (max_lt (lt_of_le_of_lt h1 h') (lt_of_le_of_lt h2 h))162163lemma harder_residueModEq_prod {ι : Type*} (s : Finset ι) (f g : ι → ℂ_[p])164 (hf : ∀ i ∈ s, PadicIntegral p (f i)) (hg : ∀ i ∈ s, PadicIntegral p (g i))165 (h : ∀ i ∈ s, ResidueModEq p (f i) (g i)) :166 ResidueModEq p (∏ i ∈ s, f i) (∏ i ∈ s, g i) := by167 classical168 induction s using Finset.induction_on with169 | empty => simpa using residueModEq_refl p 1170 | @insert a s ha ih =>171 rw [Finset.prod_insert ha, Finset.prod_insert ha]172 exact harder_residueModEq_mul (hf a (Finset.mem_insert_self a s))173 (finset_prod_integral s g fun i hi => hg i (Finset.mem_insert_of_mem hi))174 (h a (Finset.mem_insert_self a s))175 (ih (fun i hi => hf i (Finset.mem_insert_of_mem hi))176 (fun i hi => hg i (Finset.mem_insert_of_mem hi))177 (fun i hi => h i (Finset.mem_insert_of_mem hi)))178179lemma harder_residueModEq_mul_unit {u x y : ℂ_[p]} (hu : ‖u‖ = 1) :180 ResidueModEq p (u * x) (u * y) ↔ ResidueModEq p x y := by181 simp only [ResidueModEq]182 rw [show u * x - u * y = u * (x - y) by ring, norm_mul, hu, one_mul]183184/-! ### Fermat in `ℂ_[p]`, and powers of two -/185186lemma harder_padicIntegral_intCast (z : ℤ) : PadicIntegral p (z : ℂ_[p]) := by187 cases z with188 | ofNat n => simpa using padicIntegral_natCast p n189 | negSucc n =>190 rw [Int.cast_negSucc]191 exact padicIntegral_neg (padicIntegral_add (padicIntegral_natCast p n) (padicIntegral_one p))192193lemma harder_padicModEq_one_intCast_zero_of_dvd {z : ℤ} (h : (p : ℤ) ∣ z) :194 PadicModEq p 1 (z : ℂ_[p]) 0 := by195 obtain ⟨k, rfl⟩ := h196 have hp0 : (p : ℂ_[p]) ≠ 0 := by exact_mod_cast (Fact.out : Nat.Prime p).ne_zero197 simp only [PadicModEq, sub_zero]198 have heq : ((((p : ℤ)) * k : ℤ) : ℂ_[p]) / (p : ℂ_[p]) ^ 1 = (k : ℂ_[p]) := by199 push_cast200 rw [pow_one]201 exact mul_div_cancel_left₀ _ hp0202 rw [heq]203 exact harder_padicIntegral_intCast (p := p) k204205lemma harder_padicModEq_one_natCast_of_dvd_sub_one {m : ℕ} (hm : 1 ≤ m) (h : p ∣ m - 1) :206 PadicModEq p 1 (m : ℂ_[p]) 1 := by207 obtain ⟨t, ht⟩ := h208 have hz : (p : ℤ) ∣ (m : ℤ) - 1 := by209 refine ⟨(t : ℤ), ?_⟩210 have : ((m - 1 : ℕ) : ℤ) = (p * t : ℕ) := by rw [ht]211 push_cast [Nat.cast_sub hm] at this ⊢212 linarith213 have := harder_padicModEq_one_intCast_zero_of_dvd (p := p) hz214 rw [PadicModEq] at this ⊢215 have heq : ((m : ℂ_[p]) - 1) = (((m : ℤ) - 1 : ℤ) : ℂ_[p]) := by push_cast; ring216 have heq2 : ((m : ℂ_[p]) - 1) / (p : ℂ_[p]) ^ 1 = (((m : ℤ) - 1 : ℤ) : ℂ_[p]) / (p : ℂ_[p]) ^ 1 := by217 rw [heq]218 rw [heq2]219 simpa using this220221lemma harder_dvd_two_pow_pred_sub_one (hp : 2 < p) : p ∣ 2 ^ (p - 1) - 1 := by222 have hpne : (2 : ZMod p) ≠ 0 := by223 intro h224 have hd : (p : ℤ) ∣ 2 := (ZMod.intCast_zmod_eq_zero_iff_dvd 2 p).mp (by simpa using h)225 have hd' : p ∣ 2 := by exact_mod_cast hd226 have hle := Nat.le_of_dvd (by norm_num) hd'227 omega228 have h := ZMod.pow_card_sub_one_eq_one hpne229 have hcast : ((2 ^ (p - 1) : ℕ) : ZMod p) = ((1 : ℕ) : ZMod p) := by230 push_cast231 exact h232 have hmod : 2 ^ (p - 1) ≡ 1 [MOD p] := (ZMod.natCast_eq_natCast_iff _ _ _).mp hcast233 exact (Nat.modEq_iff_dvd' Nat.one_le_two_pow).mp hmod.symm234235lemma harder_norm_two_eq_one (hp : 2 < p) : ‖(2 : ℂ_[p])‖ = 1 := by236 have hco : ((2 : ℚ_[p]) : ℂ_[p]) = (2 : ℂ_[p]) := by237 have h1 : ((2 : ℚ_[p]) : ℂ_[p]) = (((2 : ℕ) : PadicAlgCl p) : ℂ_[p]) := rfl238 rw [h1]239 exact PadicComplex.coe_natCast (p := p) 2240 have h := PadicComplex.norm_extends' (p := p) (2 : ℚ_[p])241 rw [hco] at h242 rw [h, show (2 : ℚ_[p]) = ((2 : ℕ) : ℚ_[p]) by norm_num,243 Padic.norm_natCast_eq_one_iff]244 refine (Fact.out : Nat.Prime p).coprime_iff_not_dvd.mpr ?_245 intro hd246 have hle := Nat.le_of_dvd (by norm_num) hd247 omega248249lemma harder_padicModEq_one_two_pow_pred (hp : 2 < p) :250 PadicModEq p 1 ((2 : ℂ_[p]) ^ (p - 1)) 1 := by251 have h2 := harder_padicModEq_one_natCast_of_dvd_sub_one (p := p) Nat.one_le_two_pow252 (harder_dvd_two_pow_pred_sub_one hp)253 simpa only [Nat.cast_pow, Nat.cast_ofNat] using h2254255lemma harder_padicModEq_one_zpow_neg {u : ℂ_[p]} (hu : ‖u‖ = 1)256 (h : PadicModEq p 1 u 1) (N : ℕ) : PadicModEq p 1 (u ^ (-(N : ℤ))) 1 := by257 have hN : PadicModEq p 1 (u ^ N) 1 := by258 have h' := harder_padicModEq_pow (p := p) (y := (1 : ℂ_[p])) (padicIntegral_one p) h N259 simpa using h'260 have hnorm : ‖u ^ N‖ = 1 := by rw [norm_pow, hu, one_pow]261 have hz : u ^ (-(N : ℤ)) = (u ^ N)⁻¹ := by rw [zpow_neg, zpow_natCast]262 rw [hz]263 simp only [PadicModEq] at hN ⊢264 have heq : ((u ^ N)⁻¹ - 1) / (p : ℂ_[p]) ^ 1265 = -(((u ^ N - 1) / (p : ℂ_[p]) ^ 1) * (u ^ N)⁻¹) := by266 have huN : u ^ N ≠ 0 := by267 intro h0268 rw [h0, norm_zero] at hnorm269 exact zero_ne_one hnorm270 field_simp271 ring272 rw [heq]273 exact padicIntegral_neg (padicIntegral_mul hN (harder_padicIntegral_inv hnorm))274275lemma harder_norm_two_zpow (hp : 2 < p) (e : ℤ) : ‖(2 : ℂ_[p]) ^ e‖ = 1 := by276 rw [norm_zpow, harder_norm_two_eq_one hp, one_zpow]277278lemma harder_padicModEq_trans {k : ℕ} {x y z : ℂ_[p]}279 (h1 : PadicModEq p k x y) (h2 : PadicModEq p k y z) : PadicModEq p k x z := by280 simp only [PadicModEq] at *281 have heq : (x - z) / (p : ℂ_[p]) ^ k282 = (x - y) / (p : ℂ_[p]) ^ k + (y - z) / (p : ℂ_[p]) ^ k := by ring283 rw [heq]284 exact padicIntegral_add h1 h2285286lemma harder_padicModEq_one_two_zpow_pred (hp : 2 < p) :287 PadicModEq p 1 ((2 : ℂ_[p]) ^ ((p : ℤ) - 1)) 1 := by288 have hcast : ((p : ℤ) - 1) = ((p - 1 : ℕ) : ℤ) := by289 rw [Nat.cast_sub (show 1 ≤ p by omega)]290 norm_num291 rw [hcast, zpow_natCast]292 exact harder_padicModEq_one_two_pow_pred hp293294lemma harder_padicIntegral_two_zpow_pred (hp : 2 < p) :295 PadicIntegral p ((2 : ℂ_[p]) ^ ((p : ℤ) - 1)) :=296 le_of_eq (harder_norm_two_zpow hp ((p : ℤ) - 1))297298lemma harder_padicModEq_one_two_zpow_mul_pred (hp : 2 < p) (N : ℕ) :299 PadicModEq p 1 ((2 : ℂ_[p]) ^ (((p : ℤ) - 1) * (N : ℤ))) 1 := by300 have hu : PadicModEq p 1 ((2 : ℂ_[p]) ^ ((p : ℤ) - 1)) 1 := harder_padicModEq_one_two_zpow_pred hp301 have hpow : PadicModEq p 1 (((2 : ℂ_[p]) ^ ((p : ℤ) - 1)) ^ N) (1 ^ N) :=302 harder_padicModEq_pow (p := p) (k := 1) (x := (2 : ℂ_[p]) ^ ((p : ℤ) - 1)) (y := 1)303 (padicIntegral_one p) hu N304 have heq : ((2 : ℂ_[p]) ^ ((p : ℤ) - 1)) ^ N305 = (2 : ℂ_[p]) ^ (((p : ℤ) - 1) * (N : ℤ)) := by306 rw [← zpow_natCast, ← zpow_mul]307 rwa [heq, one_pow] at hpow308309/-! ### The index condition of Corollary 4.14 -/310311lemma HarderIndexCondition.two_mul_lt (hp : 3 ≤ p) (h : HarderIndexCondition p n) :312 2 * n < p - 1 := by313 by_contra hcon314 have hcon' : p - 1 ≤ 2 * n := not_lt.mp hcon315 have hodd : Odd p := (Fact.out : Nat.Prime p).odd_of_ne_two (by omega)316 obtain ⟨k, hk⟩ := hodd317 have hp1 : p - 1 = 2 * k := by omega318 have hik : k ≤ n := by omega319 have hk1 : 1 ≤ k := by omega320 refine h k (Finset.mem_Icc.mpr ⟨hk1, hik⟩) ?_321 rw [hp1]322323lemma HarderIndexCondition.lt_p (hp : 3 ≤ p) (h : HarderIndexCondition p n) : n < p := by324 have := h.two_mul_lt hp325 omega326327omit [Fact p.Prime] in328lemma HarderIndexCondition.admissible (_hp : 3 ≤ p) (h : HarderIndexCondition p n)329 {i : ℕ} (hi : i ∈ Finset.Icc 1 n) : AdmissibleIndex p (2 * i) := by330 obtain ⟨h1, h2⟩ := Finset.mem_Icc.mp hi331 exact ⟨by omega, ⟨i, by ring⟩, h i hi⟩332333omit [Fact p.Prime] in334/-- If `p > 2n+1` then every index `1 ≤ i ≤ n` is admissible: `HarderIndexCondition`335holds. This is the range in which the printed proof of Corollary 4.14 is complete, and336it contains the printed hypothesis `p > max 3 (n+1)` for `n ≥ 1`. -/337lemma harderIndexCondition_of_two_mul_lt (hp : 2 * n + 1 < p) : HarderIndexCondition p n := by338 intro i hi339 obtain ⟨hi1, hin⟩ := Finset.mem_Icc.mp hi340 intro hd341 have hle : p - 1 ≤ 2 * i := Nat.le_of_dvd (by omega) hd342 omega343344/-- The printed hypothesis of Corollary 4.14 does *not* imply its index condition:345at `p = 5, n = 2` we have `max 3 (n+1) = 3 < 5` but `p - 1 = 4 = 2 * 2` divides `2 * i`346for the admissible-looking index `i = 2`. This is the exact gap in the printed proof,347not a counterexample to the statement. -/348lemma harder_index_obstruction : ¬ HarderIndexCondition 5 2 := by349 intro h350 have hmem : 2 ∈ Finset.Icc 1 2 := Finset.mem_Icc.mpr ⟨by norm_num, by norm_num⟩351 have := h 2 hmem352 norm_num at this353354/-! ### Corollary 4.14: Harder's Euler characteristic of `Sp_{2n}` -/355356/-- The exponent `n (deg F_α - n)` of Harder's formula (4.27), which is exactly the357exponent appearing in `SymplecticEulerData.euler_eq`. -/358def harderExponent (p n α : ℕ) : ℤ := -((n : ℤ) * ((p : ℤ) ^ α - (n : ℤ)))359360lemma harder_padicModEq_one_two_zpow_mul_pred_neg (hp : 2 < p) (N : ℕ) :361 PadicModEq p 1 ((2 : ℂ_[p]) ^ (-(((p : ℤ) - 1) * (N : ℤ)))) 1 := by362 have h := harder_padicModEq_one_zpow_neg (p := p) (u := (2 : ℂ_[p]) ^ ((p : ℤ) - 1))363 (harder_norm_two_zpow hp _) (harder_padicModEq_one_two_zpow_pred hp) N364 have heq : ((2 : ℂ_[p]) ^ ((p : ℤ) - 1)) ^ (-(N : ℤ))365 = (2 : ℂ_[p]) ^ (-(((p : ℤ) - 1) * (N : ℤ))) := by366 rw [← zpow_mul]367 ring_nf368 rwa [heq] at h369370lemma harderExponent_integral (hp : 2 < p) (α : ℕ) :371 PadicIntegral p ((2 : ℂ_[p]) ^ harderExponent p n α) :=372 le_of_eq (harder_norm_two_zpow hp (harderExponent p n α))373374/-- The normalisation constant `2^{n(deg F_α - n)}` of (4.27) changes by `1` modulo `p`375between consecutive levels. -/376lemma residue_epsilon (hp : 2 < p) (α : ℕ) :377 PadicModEq p 1 ((2 : ℂ_[p]) ^ harderExponent p n α)378 ((2 : ℂ_[p]) ^ harderExponent p n (α + 1)) := by379 have hexp : harderExponent p n (α + 1)380 = harderExponent p n α + (-(((p : ℤ) - 1) * ((n * p ^ α : ℕ) : ℤ))) := by381 have hpow : (p : ℤ) ^ (α + 1) = (p : ℤ) ^ α * (p : ℤ) := pow_succ _ _382 simp only [harderExponent, hpow]383 push_cast384 ring385 rw [hexp, zpow_add₀ (by norm_num : (2 : ℂ_[p]) ≠ 0)]386 have h := harder_padicModEq_mul_left (p := p) ((2 : ℂ_[p]) ^ harderExponent p n α)387 (harderExponent_integral (p := p) (n := n) hp α)388 (harder_padicModEq_one_two_zpow_mul_pred_neg (p := p) hp (n * p ^ α))389 simpa [mul_comm, mul_left_comm, mul_assoc] using padicModEq_symm h390391/-- The core of Corollary 4.14: if the values at two consecutive levels are given by392Harder's formula (4.27) and each single Dedekind value is congruent modulo `p`, then the393Euler characteristics are congruent modulo `p`. -/394theorem euler_congruence_of_factors (hp : 2 < p) (e : ℕ → ℂ_[p]) (α : ℕ)395 (hfac : ∀ i ∈ Finset.Icc 1 n,396 PadicModEq p 1 (cyclotomicTowerValue p α (2 * i))397 (cyclotomicTowerValue p (α + 1) (2 * i)))398 (hint : ∀ i ∈ Finset.Icc 1 n, PadicIntegral p (cyclotomicTowerValue p α (2 * i)))399 (hint' : ∀ i ∈ Finset.Icc 1 n,400 PadicIntegral p (cyclotomicTowerValue p (α + 1) (2 * i)))401 (hα : e α = (2 : ℂ_[p]) ^ harderExponent p n α *402 ∏ i ∈ Finset.Icc 1 n, cyclotomicTowerValue p α (2 * i))403 (hα' : e (α + 1) = (2 : ℂ_[p]) ^ harderExponent p n (α + 1) *404 ∏ i ∈ Finset.Icc 1 n, cyclotomicTowerValue p (α + 1) (2 * i)) :405 PadicModEq p 1 (e α) (e (α + 1)) := by406 have hprod : PadicModEq p 1407 (∏ i ∈ Finset.Icc 1 n, cyclotomicTowerValue p α (2 * i))408 (∏ i ∈ Finset.Icc 1 n, cyclotomicTowerValue p (α + 1) (2 * i)) :=409 harder_padicModEq_prod (s := Finset.Icc 1 n) (k := 1)410 (f := fun i => cyclotomicTowerValue p α (2 * i))411 (g := fun i => cyclotomicTowerValue p (α + 1) (2 * i)) hint hint' hfac412 have heps := residue_epsilon (p := p) (n := n) hp α413 have hprodint : PadicIntegral p414 (∏ i ∈ Finset.Icc 1 n, cyclotomicTowerValue p (α + 1) (2 * i)) :=415 finset_prod_integral _ _ hint'416 rw [hα, hα']417 exact harder_padicModEq_mul (p := p) (k := 1)418 (x := (2 : ℂ_[p]) ^ harderExponent p n α)419 (x' := (2 : ℂ_[p]) ^ harderExponent p n (α + 1))420 (y := ∏ i ∈ Finset.Icc 1 n, cyclotomicTowerValue p α (2 * i))421 (y' := ∏ i ∈ Finset.Icc 1 n, cyclotomicTowerValue p (α + 1) (2 * i))422 (harderExponent_integral (p := p) (n := n) hp α) hprodint heps hprod423424/-- **Corollary 4.14** with the index condition that its printed proof actually uses.425This is `Thesis.euler_congruence_strengthened` of `Thesis/Applications.lean`, proved. -/426theorem euler_congruence_strengthened (D : SymplecticEulerData p n) (hp : 3 ≤ p)427 (hindex : HarderIndexCondition p n) (α : ℕ) :428 PadicModEq p 1 (D.euler α) (D.euler (α + 1)) := by429 have hp2 : 2 < p := by omega430 refine euler_congruence_of_factors (p := p) (n := n) hp2 D.euler α ?_ ?_ ?_431 (D.euler_eq α) (D.euler_eq (α + 1))432 · intro i hi433 exact padicModEq_of_le (by omega) (main_congruence hp α (2 * i)434 (hindex.admissible hp hi)).2435 · intro i hi436 exact (main_congruence hp α (2 * i) (hindex.admissible hp hi)).1437 · intro i hi438 exact (main_congruence hp (α + 1) (2 * i) (hindex.admissible hp hi)).1439440/-- The precise obligation that Theorem 4.1 does *not* supply: at the exceptional index441`2 i = p - 1`, where `p - 1 ∣ 2 i`, both integrality and the congruence modulo `p` of the442tower values have to be supplied separately. Under the printed hypothesis443`p > max 3 (n+1)` this is the only index outside the scope of Theorem 4.1. -/444def ExceptionalIndexCongruence (p n : ℕ) [Fact p.Prime] : Prop :=445 ∀ (i α : ℕ), i ∈ Finset.Icc 1 n → p - 1 = 2 * i →446 PadicIntegral p (cyclotomicTowerValue p α (2 * i)) ∧447 PadicIntegral p (cyclotomicTowerValue p (α + 1) (2 * i)) ∧448 PadicModEq p 1 (cyclotomicTowerValue p α (2 * i))449 (cyclotomicTowerValue p (α + 1) (2 * i))450451/-- The printed statement of Corollary 4.14 in the range `p > 2n+1` (where the index452condition holds automatically and no extra hypothesis is needed). For `1 ≤ n` the bound453`2n+1 < p` implies the printed hypothesis `p > max 3 (n+1)`. -/454theorem euler_congruence_of_two_mul_lt (D : SymplecticEulerData p n) (hp : 3 ≤ p)455 (h : 2 * n + 1 < p) (α : ℕ) : PadicModEq p 1 (D.euler α) (D.euler (α + 1)) :=456 euler_congruence_strengthened D hp (harderIndexCondition_of_two_mul_lt h) α457458/-- **Corollary 4.14 as printed**, in the form that its printed proof establishes: under459`p > max 3 (n+1)` every index `1 ≤ i ≤ n` either satisfies `p - 1 ∤ 2 i` (then Theorem4604.1 applies) or satisfies `2 i = p - 1` (the exceptional index, supplied as an explicit461hypothesis; the printed proof uses it without justification). -/462theorem euler_congruence_source_statement_proof (D : SymplecticEulerData p n)463 (hp : max 3 (n + 1) < p) (hexc : ExceptionalIndexCongruence p n) (α : ℕ) :464 PadicModEq p 1 (D.euler α) (D.euler (α + 1)) := by465 have hp3 : 3 ≤ p := le_of_lt (lt_of_le_of_lt (le_max_left 3 (n + 1)) hp)466 have hpq : n + 1 < p := lt_of_le_of_lt (le_max_right 3 (n + 1)) hp467 have hp2 : 2 < p := by omega468 have key : ∀ i ∈ Finset.Icc 1 n,469 PadicIntegral p (cyclotomicTowerValue p α (2 * i)) ∧470 PadicIntegral p (cyclotomicTowerValue p (α + 1) (2 * i)) ∧471 PadicModEq p 1 (cyclotomicTowerValue p α (2 * i))472 (cyclotomicTowerValue p (α + 1) (2 * i)) := by473 intro i hi474 obtain ⟨hi1, hin⟩ := Finset.mem_Icc.mp hi475 by_cases hdiv : p - 1 ∣ 2 * i476 · -- the exceptional index: necessarily `2 i = p - 1`477 obtain ⟨c, hc⟩ := hdiv478 have hpos : 0 < 2 * i := by omega479 have hp1pos : 0 < p - 1 := by omega480 have hlt : 2 * i < (p - 1) * 2 := by omega481 rw [hc] at hlt hpos482 have hc2 : c < 2 := Nat.lt_of_mul_lt_mul_left hlt483 have hc0 : c ≠ 0 := by484 intro h0485 rw [h0, mul_zero] at hpos486 exact Nat.lt_irrefl 0 hpos487 have hc1 : c = 1 := by omega488 have h2i : p - 1 = 2 * i := by rw [hc, hc1, mul_one]489 exact hexc i α hi h2i490 · exact ⟨(main_congruence hp3 α (2 * i) ⟨by omega, ⟨i, by ring⟩, hdiv⟩).1,491 (main_congruence hp3 (α + 1) (2 * i) ⟨by omega, ⟨i, by ring⟩, hdiv⟩).1,492 padicModEq_of_le (by omega)493 (main_congruence hp3 α (2 * i) ⟨by omega, ⟨i, by ring⟩, hdiv⟩).2⟩494 exact euler_congruence_of_factors hp2 D.euler α495 (fun i hi => (key i hi).2.2) (fun i hi => (key i hi).1) (fun i hi => (key i hi).2.1)496 (D.euler_eq α) (D.euler_eq (α + 1))497498/-! ### Corollary 4.12: `p`-torsion in `K_{4m-2}` -/499500lemma harder_norm_natCast_lt_one_of_dvd {k : ℕ} (h : p ∣ k) : ‖(k : ℂ_[p])‖ < 1 := by501 obtain ⟨t, rfl⟩ := h502 have hk : ((p * t : ℕ) : ℂ_[p]) = (p : ℂ_[p]) * (t : ℂ_[p]) := by push_cast; ring503 rw [hk, norm_mul]504 calc ‖(p : ℂ_[p])‖ * ‖(t : ℂ_[p])‖ ≤ ‖(p : ℂ_[p])‖ * 1 :=505 mul_le_mul_of_nonneg_left (padicIntegral_natCast p t) (norm_nonneg _)506 _ = ‖(p : ℂ_[p])‖ := mul_one _507 _ < 1 := harder_norm_prime_lt_one p508509/-- The arithmetic input of Corollary 4.12: if `p ∤ B_{2m}/2m` then no level of the510cyclotomic tower has `ζ_{F_α}(1-2m) ≡ 0 (mod p)`. This is Theorem 4.1 together with511`ζ(1-2m) = -B_{2m}/2m`. -/512theorem cor_4_12_arithmetic (hp : 3 ≤ p) (m : ℕ) (hm : 1 ≤ m)513 (hdiv : ¬ (p - 1 ∣ 2 * m))514 (hB : ¬ ResidueModEq p ((bernoulli (2 * m) : ℂ_[p]) / (2 * m)) 0) (α : ℕ) :515 ¬ ResidueModEq p (cyclotomicTowerValue p α (2 * m)) 0 := by516 have hn : AdmissibleIndex p (2 * m) := ⟨by omega, ⟨m, by ring⟩, hdiv⟩517 have hn1 : 2 * m ≠ 1 := by omega518 have h0 : ¬ ResidueModEq p (cyclotomicTowerValue p 0 (2 * m)) 0 := by519 rw [cyclotomicTowerValue_zero_of_ne_one (p := p) hn1]520 simpa only [ResidueModEq, sub_zero, neg_div, norm_neg, Nat.cast_mul,521 Nat.cast_ofNat] using hB522 exact (tower_not_residue_zero_iff hp α (2 * m) hn).mpr h0523524/-- `(p-1)/2 ∣ m` is the same condition as `p - 1 ∣ 2m` for odd `p`; this is the form in525which Corollary 4.12 states its hypothesis on `m`. -/526lemma half_dvd_iff {p : ℕ} [Fact p.Prime] (hp : 2 < p) (m : ℕ) :527 (p - 1) / 2 ∣ m ↔ p - 1 ∣ 2 * m := by528 have hodd : Odd p := (Fact.out : Nat.Prime p).odd_of_ne_two (by omega)529 obtain ⟨k, hk⟩ := hodd530 have hp1 : p - 1 = 2 * k := by omega531 have hkdiv : (p - 1) / 2 = k := by532 rw [hp1]533 exact Nat.mul_div_cancel_left k two_pos534 rw [hkdiv]535 constructor536 · rintro ⟨c, rfl⟩537 exact ⟨c, by rw [hp1]; ring⟩538 · rintro ⟨c, hc⟩539 refine ⟨c, ?_⟩540 rw [hp1] at hc541 have h2 : 2 * m = 2 * (k * c) := by rw [hc]; ring542 exact Nat.mul_left_cancel (by norm_num) h2543544/-- The K-theoretic inputs of Corollary 4.12, isolated as an explicit structure:545`orderEven α = #K_{4m-2}(𝒪_{F_α})`, `orderOdd α = #K_{4m-1}(𝒪_{F_α})`, together with546547* Wiles' theorem (Lichtenbaum's conjecture, (4.20) with (4.22)) in the only form used by548 the proof: `|ζ_{F_α}(1-2m)|` and `#K_{4m-2}/#K_{4m-1}` agree up to a power of `2`,549 which the `p`-adic norm does not see (`harder_norm_two_eq_one`);550* Lemma 4.11, `w_{2m}^{(p)}(F_α) = 1` because `p - 1 ∤ 2m`, which makes `#K_{4m-1}` a551 `p`-adic unit.552553`F_α` is totally real (`−1` lies in the `(p-1)`-part of `(ℤ/p^(α+1))^×`), which is the554hypothesis under which Wiles proved (4.20). -/555structure HigherKGroupData (p m : ℕ) [Fact p.Prime] where556 orderEven : ℕ → ℕ557 orderOdd : ℕ → ℕ558 zeta : ℕ → ℂ_[p]559 zeta_eq : ∀ α, zeta α = cyclotomicTowerValue p α (2 * m)560 lichtenbaum : ∀ α, ‖zeta α‖ = ‖(orderEven α : ℂ_[p])‖ / ‖(orderOdd α : ℂ_[p])‖561 oddUnit : ∀ α, ¬ ResidueModEq p (orderOdd α : ℂ_[p]) 0562563/-- **Corollary 4.12.** Let `p ≥ 5` and let `m ≥ 1` not be divisible by `(p-1)/2`. If564`p ∤ B_{2m}/2m`, then `K_{4m-2}(𝒪_{F_α})[p^∞] = 0` for every `α ≥ 1`, i.e.565`p ∤ #K_{4m-2}(𝒪_{F_α})`. -/566theorem cor_4_12 (hp : 5 ≤ p) (m : ℕ) (hm : 1 ≤ m)567 (hdiv : ¬ ((p - 1) / 2 ∣ m))568 (hB : ¬ ResidueModEq p ((bernoulli (2 * m) : ℂ_[p]) / (2 * m)) 0)569 (K : HigherKGroupData p m) {α : ℕ} (_hα : 1 ≤ α) :570 ¬ p ∣ K.orderEven α := by571 have hp3 : 3 ≤ p := by omega572 have hp2 : 2 < p := by omega573 have hdiv' : ¬ (p - 1 ∣ 2 * m) := fun h => hdiv ((half_dvd_iff hp2 m).mpr h)574 have harith : ¬ ResidueModEq p (cyclotomicTowerValue p α (2 * m)) 0 :=575 cor_4_12_arithmetic hp3 m hm hdiv' hB α576 intro hpdvd577 have hlt : ‖(K.orderEven α : ℂ_[p])‖ < 1 := harder_norm_natCast_lt_one_of_dvd hpdvd578 have hunit : ‖(K.orderOdd α : ℂ_[p])‖ = 1 := by579 refine le_antisymm (padicIntegral_natCast p _) ?_580 simpa using not_lt.mp (K.oddUnit α)581 have hzeta : ‖K.zeta α‖ < 1 := by582 rw [K.lichtenbaum α, hunit, div_one]583 exact hlt584 apply harith585 rw [← K.zeta_eq α, ResidueModEq, sub_zero]586 exact hzeta587588/-! ### Concrete instances (verification of the statement layer) -/589590/-- The printed hypothesis `p > max 3 (n+1)` is satisfied in the obstruction case. -/591lemma harder_source_hypothesis_obstruction : max 3 (2 + 1) < 5 := by norm_num592593/-- In the obstruction case the excluded index really is divisible by `p - 1`,594while the preceding index is not. -/595lemma harder_index_obstruction_facts : 5 - 1 ∣ 2 * 2 ∧ ¬ (5 - 1 ∣ 2 * 1) := by596 constructor <;> norm_num597598/-- The Fermat instance underlying the congruence of the normalisation constants at599`p = 5`: `2 ^ (5 - 1) ≡ 1 (mod 5)`, hence `2 ^ 40 ≡ 1 (mod 5)`. -/600lemma fermat_instance_five : 5 ∣ 2 ^ 4 - 1 ∧ 5 ∣ 2 ^ 40 - 1 := by601 constructor <;> norm_num602603/-- The norm of a natural number in `ℂ_[p]` is its norm in `ℚ_[p]`. -/604lemma harder_norm_natCast_eq (k : ℕ) : ‖(k : ℂ_[p])‖ = ‖(k : ℚ_[p])‖ := by605 have hco : ((k : ℚ_[p]) : ℂ_[p]) = (k : ℂ_[p]) := by606 have h1 : ((k : ℚ_[p]) : ℂ_[p]) = (((k : ℕ) : PadicAlgCl p) : ℂ_[p]) := by607 rw [show ((k : ℚ_[p])) = ((k : ℕ) : ℚ_[p]) by norm_num]608 rfl609 rw [h1]610 exact PadicComplex.coe_natCast (p := p) k611 rw [← hco, PadicComplex.norm_extends']612613/-- `B_2/2 = 1/12` is a `p`-adic unit for every `p ≥ 5`: the Bernoulli hypothesis of614Corollary 4.12 is satisfiable. -/615lemma not_residueModEq_bernoulli_two (hp : 5 ≤ p) :616 ¬ ResidueModEq p ((bernoulli 2 : ℂ_[p]) / (2 * 1)) 0 := by617 have hp2 : 2 < p := by omega618 rw [ResidueModEq, sub_zero, not_lt]619 have hB : (bernoulli 2 : ℂ_[p]) / (2 * 1) = (((12 : ℕ)) : ℂ_[p])⁻¹ := by620 have h6 : ((bernoulli 2 : ℚ) : ℂ_[p]) = (((6 : ℕ)) : ℂ_[p])⁻¹ := by621 rw [bernoulli_two]622 push_cast623 ring624 have h2' : (bernoulli 2 : ℂ_[p]) = ((bernoulli 2 : ℚ) : ℂ_[p]) := rfl625 rw [h2', h6]626 have h6n : (((6 : ℕ)) : ℂ_[p]) ≠ 0 := by norm_num627 field_simp628 norm_num629 rw [hB, norm_inv, harder_norm_natCast_eq (p := p) 12]630 have h12 : ‖((12 : ℕ) : ℚ_[p])‖ = 1 := by631 rw [Padic.norm_natCast_eq_one_iff]632 have hne : Nat.Prime p := Fact.out633 have h2 : p.Coprime 2 := hne.coprime_iff_not_dvd.mpr (fun h => by634 have := Nat.le_of_dvd (by norm_num) h635 omega)636 have h3 : p.Coprime 3 := hne.coprime_iff_not_dvd.mpr (fun h => by637 have := Nat.le_of_dvd (by norm_num) h638 omega)639 have h := (h2.mul_right h2).mul_right h3640 simpa using h641 rw [h12, inv_one]642643/-- The hypotheses of Corollary 4.12 hold at `m = 1` and every `p ≥ 5`, so the corollary644is not vacuous there: it gives `5 ∤ #K_2(𝒪_{F_α})` for `p = 5` and every `α ≥ 1`. -/645theorem cor_4_12_hypotheses_satisfiable (hp : 5 ≤ p) :646 ¬ ((p - 1) / 2 ∣ 1) ∧ ¬ ResidueModEq p ((bernoulli 2 : ℂ_[p]) / (2 * 1)) 0 := by647 constructor648 · intro hd649 have h1 : (p - 1) / 2 ≤ 1 := Nat.le_of_dvd (by norm_num) hd650 omega651 · exact not_residueModEq_bernoulli_two hp652653end654end Thesis