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.QuasiIso |
| 2 | import Mathlib.Algebra.Homology.HomologicalComplexAbelian |
| 3 | |
| 4 | /-! # Cochain Edge -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.CochainEdge.CochainEdgeComparison |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A cochain comparison preserving the original global edge |
| 11 | preserves the corresponding inverse-edge homology comparison. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory |
| 14 | |
| 15 | universe u v |
| 16 | variable {A : Type u} [Category.{v} A] [Abelian A] |
| 17 | {K L M : CochainComplex A ℕ} (f : K ⟶ L) (e : L ≅ M) (g : K ⟶ M) |
| 18 | (h : f ≫ e.hom = g) [QuasiIso g] (i : ℕ) {B : A} (k : K.homology i ≅ B) |
| 19 | |
| 20 | include h in |
| 21 | theorem homology : HomologicalComplex.homologyMap f i ≫ |
| 22 | ((HomologicalComplex.homologyFunctor A (.up ℕ) i).mapIso e ≪≫ |
| 23 | (asIso (HomologicalComplex.homologyMap g i)).symm ≪≫ k).hom = k.hom := by |
| 24 | have hc : HomologicalComplex.homologyMap f i ≫ HomologicalComplex.homologyMap e.hom i = |
| 25 | HomologicalComplex.homologyMap g i := |
| 26 | (HomologicalComplex.homologyMap_comp _ _ i).symm.trans |
| 27 | (congrArg (fun q => HomologicalComplex.homologyMap q i) h) |
| 28 | exact (Category.assoc _ _ _).symm.trans |
| 29 | ((congrArg (fun q => q ≫ (asIso (HomologicalComplex.homologyMap g i)).inv ≫ k.hom) hc).trans |
| 30 | ((asIso (HomologicalComplex.homologyMap g i)).hom_inv_id_assoc _)) |
| 31 | |
| 32 | end |
| 33 | |
| 34 | end OAI.NumberTheory.PadicHodge.GeometricComparison.CochainEdge.CochainEdgeComparison |