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 OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Additive.ComplexExtension |
| 3 | import Mathlib.Algebra.Homology.Embedding.Restriction |
| 4 | |
| 5 | /-! # Supported Complex Restriction -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SupportedComplexRestriction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Restricting a complex to any embedded shape containing all its nonzero terms and extending by zero recovers the original complex. Exactness consequently agrees at every retained vertex, including both endpoints of a finite interval. -/ |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 13 | universe u v w |
| 14 | variable {V : Type u} [Category.{v} V] [Abelian V] |
| 15 | {ι ι' : Type w} {c : ComplexShape ι} {c' : ComplexShape ι'} |
| 16 | (e : c.Embedding c') [e.IsRelIff] (K : HomologicalComplex V c') [K.IsStrictlySupported e] |
| 17 | |
| 18 | def supportedRestrictionExtendXIso (j : ι') : |
| 19 | ((K.restriction e).extend e).X j ≅ K.X j := by |
| 20 | classical |
| 21 | exact if h : ∃ i, e.f i = j then |
| 22 | (K.restriction e).extendXIso e h.choose_spec ≪≫ K.restrictionXIso e h.choose_spec |
| 23 | else |
| 24 | IsZero.iso ((K.restriction e).isZero_extend_X e j (by simpa using h)) |
| 25 | (K.isZero_X_of_isStrictlySupported e j (by simpa using h)) |
| 26 | |
| 27 | theorem supportedRestrictionExtendXIso_in {i : ι} {j : ι'} (h : e.f i = j) : |
| 28 | supportedRestrictionExtendXIso e K j = |
| 29 | (K.restriction e).extendXIso e h ≪≫ K.restrictionXIso e h := by |
| 30 | classical |
| 31 | have hex : ∃ k, e.f k = j := ⟨i, h⟩ |
| 32 | simp only [supportedRestrictionExtendXIso, dite_eq_left hex] |
| 33 | have he : hex.choose = i := e.injective_f (hex.choose_spec.trans h.symm) |
| 34 | subst i |
| 35 | rfl |
| 36 | |
| 37 | def supportedRestrictionExtendIso : (K.restriction e).extend e ≅ K := by |
| 38 | classical |
| 39 | refine HomologicalComplex.Hom.isoOfComponents (supportedRestrictionExtendXIso e K) ?_ |
| 40 | intro i' j' _ |
| 41 | by_cases hi : ∃ i, e.f i = i' |
| 42 | · obtain ⟨i, hi⟩ := hi |
| 43 | by_cases hj : ∃ j, e.f j = j' |
| 44 | · obtain ⟨j, hj⟩ := hj |
| 45 | rw [supportedRestrictionExtendXIso_in e K hi, supportedRestrictionExtendXIso_in e K hj, |
| 46 | (K.restriction e).extend_d_eq e hi hj, K.restriction_d_eq e hi hj] |
| 47 | simp [Category.assoc] |
| 48 | · exact (K.isZero_X_of_isStrictlySupported e j' (by simpa using hj)).eq_of_tgt _ _ |
| 49 | · exact ((K.restriction e).isZero_extend_X e i' (by simpa using hi)).eq_of_src _ _ |
| 50 | |
| 51 | theorem strictlySupported_restriction_exactAt_iff (j : ι) : |
| 52 | (K.restriction e).ExactAt j ↔ K.ExactAt (e.f j) := |
| 53 | ((K.restriction e).extend_exactAt_iff e rfl).symm.trans |
| 54 | (exactAt_iff_of_quasiIsoAt (supportedRestrictionExtendIso e K).hom (e.f j)) |
| 55 | |
| 56 | theorem strictlySupported_restriction_acyclic (hK : K.Acyclic) : (K.restriction e).Acyclic := |
| 57 | fun j => (strictlySupported_restriction_exactAt_iff e K j).mpr (hK (e.f j)) |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SupportedComplexRestriction |