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.Category.FGModuleCat.Abelian |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Projective |
| 3 | import Mathlib.CategoryTheory.Preadditive.Projective.Preserves |
| 4 | import Mathlib.RingTheory.Noetherian.Basic |
| 5 | |
| 6 | /-! # Projectives -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.Projectives |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Finitely generated modules have finite free presentations. This gives |
| 13 | enough projectives in their category, and its inclusion in all modules |
| 14 | preserves projective objects. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable (R : Type u) [CommRing R] |
| 21 | |
| 22 | abbrev inclusion : FGModuleCat.{u} R ⥤ ModuleCat.{u} R := forget₂ _ _ |
| 23 | |
| 24 | theorem projective_of_module (M : FGModuleCat.{u} R) [Module.Projective R M] : Projective M := |
| 25 | (inclusion R).projective_of_map_projective |
| 26 | (ModuleCat.projective_of_categoryTheory_projective M.obj) |
| 27 | |
| 28 | def finiteFreePresentation (M : FGModuleCat.{u} R) : ProjectivePresentation M := Classical.choice (by |
| 29 | obtain ⟨P, _, _, _, _, f, hf⟩ := Module.exists_finite_presentation R M |
| 30 | let f' : FGModuleCat.of R P ⟶ M := FGModuleCat.ofHom f |
| 31 | let : Epi ((inclusion R).map f') := (ModuleCat.epi_iff_surjective _).mpr hf |
| 32 | let : Epi f' := (inclusion R).epi_of_epi_map inferInstance |
| 33 | exact ⟨{ p := FGModuleCat.of R P, projective := projective_of_module R _, f := f' }⟩) |
| 34 | |
| 35 | instance : EnoughProjectives (FGModuleCat.{u} R) where |
| 36 | presentation M := ⟨finiteFreePresentation R M⟩ |
| 37 | |
| 38 | instance : (inclusion R).PreservesProjectiveObjects where |
| 39 | projective_obj {M} hM := by |
| 40 | let : Projective M := hM |
| 41 | obtain ⟨P, _, _, _, _, f, hf⟩ := Module.exists_finite_presentation R M |
| 42 | let f' : FGModuleCat.of R P ⟶ M := FGModuleCat.ofHom f |
| 43 | let : Epi ((inclusion R).map f') := (ModuleCat.epi_iff_surjective _).mpr hf |
| 44 | let : Epi f' := (inclusion R).epi_of_epi_map inferInstance |
| 45 | let s := Projective.factorThru (𝟙 M) f' |
| 46 | have hs : f.comp s.hom.hom = LinearMap.id := |
| 47 | congrArg (fun g : M ⟶ M => g.hom.hom) (Projective.factorThru_comp (𝟙 M) f') |
| 48 | let : Module.Projective R M := Module.Projective.of_split s.hom.hom f hs |
| 49 | exact ModuleCat.projective_of_categoryTheory_projective M.obj |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.Projectives |