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 Mathlib.Algebra.Homology.ShortComplex.Abelian |
| 2 | import Mathlib.Algebra.Homology.ShortComplex.Exact |
| 3 | |
| 4 | /-! # Cokernel Kernel Homology -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.CokernelKernelHomology |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A concrete computation of short-complex homology from a cokernel of |
| 11 | the first map and a kernel of the resulting map. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 14 | |
| 15 | universe u v |
| 16 | |
| 17 | variable {C : Type u} [Category.{v} C] [Abelian C] |
| 18 | (S : ShortComplex C) {Q H : C} (p : S.X₂ ⟶ Q) (a : Q ⟶ S.X₃) (ι : H ⟶ Q) |
| 19 | (wp : S.f ≫ p = 0) (hp : (ShortComplex.mk S.f p wp).Exact) [Epi p] |
| 20 | (wι : ι ≫ a = 0) (hι : (ShortComplex.mk ι a wι).Exact) [Mono ι] |
| 21 | (fac : p ≫ a = S.g) |
| 22 | |
| 23 | include fac in |
| 24 | theorem desc_eq : hp.gIsCokernel.desc (CokernelCofork.ofπ S.g S.zero) = a := by |
| 25 | apply (cancel_epi p).mp |
| 26 | exact (hp.g_desc S.g S.zero).trans fac.symm |
| 27 | |
| 28 | def data : S.RightHomologyData where |
| 29 | Q := Q |
| 30 | H := H |
| 31 | p := p |
| 32 | ι := ι |
| 33 | wp := wp |
| 34 | hp := hp.gIsCokernel |
| 35 | wι := by rw [desc_eq S p a wp hp fac]; exact wι |
| 36 | hι := by |
| 37 | have ha := desc_eq S p a wp hp fac |
| 38 | subst a |
| 39 | exact hι.fIsKernel |
| 40 | |
| 41 | def iso : S.homology ≅ H := |
| 42 | (data S p a ι wp hp wι hι fac).homologyIso |
| 43 | |
| 44 | end |
| 45 | |
| 46 | end OAI.NumberTheory.PadicHodge.IntegralComparison.CokernelKernelHomology |