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.Embedding.Extend |
| 2 | import Mathlib.Algebra.Homology.HomologicalComplexAbelian |
| 3 | |
| 4 | /-! # Extend Short -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.ExtendShort.ExtendShortExact |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Extension by zero preserves actual short exact sequences of complexes. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 13 | |
| 14 | universe u v |
| 15 | |
| 16 | variable {C : Type u} [Category.{v} C] [Abelian C] |
| 17 | {ι ι' : Type*} {c : ComplexShape ι} {c' : ComplexShape ι'} |
| 18 | (e : c.Embedding c') (S : ShortComplex (HomologicalComplex C c)) |
| 19 | |
| 20 | def degreeIso {i : ι} {j : ι'} (h : e.f i = j) : |
| 21 | ((S.map (e.extendFunctor C)).map (HomologicalComplex.eval C c' j)) ≅ |
| 22 | S.map (HomologicalComplex.eval C c i) := |
| 23 | ShortComplex.isoMk (S.X₁.extendXIso e h) (S.X₂.extendXIso e h) (S.X₃.extendXIso e h) |
| 24 | (by |
| 25 | change (S.X₁.extendXIso e h).hom ≫ S.f.f i = |
| 26 | (HomologicalComplex.extendMap S.f e).f j ≫ (S.X₂.extendXIso e h).hom |
| 27 | rw [HomologicalComplex.extendMap_f _ _ h] |
| 28 | simp only [Category.assoc, Iso.inv_hom_id, Category.comp_id]) |
| 29 | (by |
| 30 | change (S.X₂.extendXIso e h).hom ≫ S.g.f i = |
| 31 | (HomologicalComplex.extendMap S.g e).f j ≫ (S.X₃.extendXIso e h).hom |
| 32 | rw [HomologicalComplex.extendMap_f _ _ h] |
| 33 | simp only [Category.assoc, Iso.inv_hom_id, Category.comp_id]) |
| 34 | |
| 35 | theorem shortExact (hS : S.ShortExact) : (S.map (e.extendFunctor C)).ShortExact := by |
| 36 | apply HomologicalComplex.shortExact_of_degreewise_shortExact |
| 37 | intro j |
| 38 | by_cases hj : ∃ i, e.f i = j |
| 39 | · obtain ⟨i, hi⟩ := hj |
| 40 | exact (ShortComplex.shortExact_iff_of_iso (degreeIso e S hi)).mpr |
| 41 | ((HomologicalComplex.shortExact_iff_degreewise_shortExact S).mp hS i) |
| 42 | · have h (K : HomologicalComplex C c) : IsZero ((K.extend e).X j) := |
| 43 | K.isZero_extend_X e j (by simpa using hj) |
| 44 | exact (ShortComplex.Splitting.ofIsZeroOfIsIso _ (h S.X₁) |
| 45 | ((h S.X₂).isIso (h S.X₃) _)).shortExact |
| 46 | |
| 47 | end |
| 48 | |
| 49 | end OAI.NumberTheory.PadicHodge.GeometricComparison.ExtendShort.ExtendShortExact |