Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import OAI.NumberTheory.PadicHodge.IntegralComparison.CentralNullHomotopy |
| 2 | |
| 3 | /-! # Hom Acyclic -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Cochain.HomAcyclic |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Exact Hom rows give actual cochain nullhomotopies by induction. |
| 10 | Scalar annihilation of the source and invertibility on coefficients |
| 11 | provide these rows without an injectivity hypothesis. -/ |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Preadditive _root_.HomologicalComplex |
| 13 | set_option backward.defeqAttrib.useBackward true |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | universe u v w |
| 16 | variable {C : Type u} [Category.{v} C] [Preadditive C] |
| 17 | (K : CochainComplex C ℕ) (M : C) |
| 18 | |
| 19 | structure Rows : Prop where |
| 20 | zero : ∀ (f : K.X 0 ⟶ M), ∃ g : K.X 1 ⟶ M, K.d 0 1 ≫ g = f |
| 21 | succ : ∀ (n : ℕ) (f : K.X (n + 1) ⟶ M), K.d n (n + 1) ≫ f = 0 → |
| 22 | ∃ g : K.X (n + 2) ⟶ M, K.d (n + 1) (n + 2) ≫ g = f |
| 23 | |
| 24 | variable {K M} |
| 25 | |
| 26 | theorem rows_of_scalar (R : Type w) [CommRing R] [Linear R C] |
| 27 | (r : R) (h : Homotopy (r • 𝟙 K) 0) (b : M ⟶ M) (hb : r • b = 𝟙 M) : Rows K M := by |
| 28 | constructor |
| 29 | · intro f |
| 30 | refine ⟨h.hom 1 0 ≫ f ≫ b, ?_⟩ |
| 31 | have hc := h.comm 0 |
| 32 | simp only [Homotopy.dNext_cochainComplex, Homotopy.prevD_zero_cochainComplex, |
| 33 | HomologicalComplex.zero_f, add_zero] at hc |
| 34 | change r • 𝟙 (K.X 0) = K.d 0 1 ≫ h.hom 1 0 at hc |
| 35 | rw [← Category.assoc, ← Category.assoc, ← hc, Linear.smul_comp, Category.id_comp, |
| 36 | Linear.smul_comp, ← Linear.comp_smul, hb, Category.comp_id] |
| 37 | · intro n f hf |
| 38 | refine ⟨h.hom (n + 2) (n + 1) ≫ f ≫ b, ?_⟩ |
| 39 | have hc := h.comm (n + 1) |
| 40 | simp only [Homotopy.dNext_cochainComplex, Homotopy.prevD_succ_cochainComplex, |
| 41 | HomologicalComplex.zero_f, add_zero] at hc |
| 42 | have he := congrArg (fun z => z ≫ f ≫ b) hc |
| 43 | change (r • 𝟙 (K.X (n + 1))) ≫ f ≫ b = _ at he |
| 44 | simp only [add_comp, Category.assoc, |
| 45 | Linear.smul_comp, Category.id_comp] at he |
| 46 | have hfb : K.d n (n + 1) ≫ f ≫ b = 0 := by rw [← Category.assoc, hf, zero_comp] |
| 47 | rw [hfb, comp_zero, add_zero] at he |
| 48 | rw [← Linear.comp_smul, hb, Category.comp_id] at he |
| 49 | exact he.symm |
| 50 | |
| 51 | def null (L : CochainComplex C ℕ) (hL : ∀ n, Rows K (L.X n)) (f : K ⟶ L) : Homotopy f 0 := by |
| 52 | let h₀ := ((hL 0).zero (f.f 0)).choose |
| 53 | have hh₀ := ((hL 0).zero (f.f 0)).choose_spec |
| 54 | have hz : K.d 0 1 ≫ (f.f 1 - h₀ ≫ L.d 0 1) = 0 := by |
| 55 | rw [comp_sub, ← Category.assoc, hh₀, ← f.comm, sub_self] |
| 56 | let h₁ := ((hL 1).succ 0 (f.f 1 - h₀ ≫ L.d 0 1) hz).choose |
| 57 | have hh₁ := ((hL 1).succ 0 (f.f 1 - h₀ ≫ L.d 0 1) hz).choose_spec |
| 58 | apply Homotopy.mkCoinductive f h₀ hh₀.symm h₁ |
| 59 | (by rw [hh₁]; abel) |
| 60 | intro n p |
| 61 | rcases p with ⟨a, b, hp⟩ |
| 62 | have hz : K.d (n + 1) (n + 2) ≫ (f.f (n + 2) - b ≫ L.d (n + 1) (n + 2)) = 0 := by |
| 63 | rw [comp_sub, ← f.comm, hp, add_comp, Category.assoc, L.d_comp_d, comp_zero, zero_add, |
| 64 | Category.assoc, sub_self] |
| 65 | let h₂ := ((hL (n + 2)).succ (n + 1) _ hz).choose |
| 66 | have hh₂ := ((hL (n + 2)).succ (n + 1) _ hz).choose_spec |
| 67 | exact ⟨h₂, by rw [hh₂]; abel⟩ |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Cochain.HomAcyclic |