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 | |
| 3 | /-! # Homology Kernel Cokernel -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.HomologyKernelCokernel |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Compute the homology of a short complex from any actual cokernel |
| 10 | of its first differential and the induced map out of that cokernel. -/ |
| 11 | |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 15 | |
| 16 | universe u v |
| 17 | |
| 18 | variable {C : Type u} [Category.{v} C] [Abelian C] |
| 19 | |
| 20 | def homologyIsoKernel (S : ShortComplex C) (Q : C) (p : S.X₂ ⟶ Q) |
| 21 | (wp : S.f ≫ p = 0) (hp : IsColimit (CokernelCofork.ofπ p wp)) |
| 22 | (g : Q ⟶ S.X₃) (hg : p ≫ g = S.g) : S.homology ≅ kernel g := by |
| 23 | have hdesc : hp.desc (CokernelCofork.ofπ S.g S.zero) = g := by |
| 24 | apply Cofork.IsColimit.hom_ext hp |
| 25 | rw [Cofork.IsColimit.π_desc] |
| 26 | exact hg.symm |
| 27 | subst g |
| 28 | let h : S.RightHomologyData := |
| 29 | { Q := Q |
| 30 | H := kernel (hp.desc (CokernelCofork.ofπ S.g S.zero)) |
| 31 | p := p |
| 32 | ι := kernel.ι _ |
| 33 | wp := wp |
| 34 | hp := hp |
| 35 | wι := kernel.condition _ |
| 36 | hι := kernelIsKernel _ } |
| 37 | exact h.homologyIso |
| 38 | |
| 39 | end |
| 40 | |
| 41 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.HomologyKernelCokernel |