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 OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Projective.ProjectivePresentations |
| 2 | import Mathlib.AlgebraicGeometry.IdealSheaf.Functorial |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Flat |
| 4 | import Mathlib.AlgebraicGeometry.Morphisms.FinitePresentation |
| 5 | |
| 6 | /-! # Families -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Closed.Families |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | Flat finitely presented closed families in a fixed ambient scheme, recorded |
| 14 | by their actual ideal sheaves. These are parameter objects for the later |
| 15 | embedded-family construction; no representing scheme is assumed. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable {S T : Scheme.{u}} |
| 23 | |
| 24 | /-- A closed subscheme of an ambient `S`-scheme, flat and locally finitely presented over `S`. -/ |
| 25 | structure FlatClosedFamily (P : Over S) where |
| 26 | ideal : P.left.IdealSheafData |
| 27 | flat : Flat (ideal.subschemeι ≫ P.hom) |
| 28 | locallyFinitePresentation : LocallyOfFinitePresentation (ideal.subschemeι ≫ P.hom) |
| 29 | |
| 30 | attribute [instance] FlatClosedFamily.flat FlatClosedFamily.locallyFinitePresentation |
| 31 | |
| 32 | namespace FlatClosedFamily |
| 33 | |
| 34 | variable {P : Over S} |
| 35 | |
| 36 | /-- The family scheme cut out by the ideal. -/ |
| 37 | def scheme (F : FlatClosedFamily P) : Over S := Over.mk (F.ideal.subschemeι ≫ P.hom) |
| 38 | |
| 39 | /-- Its closed inclusion in the ambient scheme. -/ |
| 40 | def inclusion (F : FlatClosedFamily P) : F.scheme ⟶ P := Over.homMk F.ideal.subschemeι rfl |
| 41 | |
| 42 | instance inclusion_closedImmersion (F : FlatClosedFamily P) : IsClosedImmersion F.inclusion.left := |
| 43 | inferInstanceAs (IsClosedImmersion F.ideal.subschemeι) |
| 44 | |
| 45 | theorem proper (F : FlatClosedFamily P) [IsProper P.hom] : IsProper F.scheme.hom := |
| 46 | inferInstanceAs (IsProper (F.ideal.subschemeι ≫ P.hom)) |
| 47 | |
| 48 | /-- An embedded flat finitely presented scheme determines its ideal-sheaf family. -/ |
| 49 | def ofEmbedding {Z : Over S} (i : Z ⟶ P) [IsClosedImmersion i.left] |
| 50 | [Flat Z.hom] [LocallyOfFinitePresentation Z.hom] : FlatClosedFamily P := by |
| 51 | let e := asIso i.left.toImage |
| 52 | have he : e.hom ≫ (i.left.ker.subschemeι ≫ P.hom) = Z.hom := |
| 53 | (Category.assoc _ _ _).symm.trans |
| 54 | ((congrArg (fun a => a ≫ P.hom) i.left.toImage_imageι).trans i.w) |
| 55 | have hq : i.left.ker.subschemeι ≫ P.hom = e.inv ≫ Z.hom := by |
| 56 | rw [← he] |
| 57 | simp only [Iso.inv_hom_id_assoc] |
| 58 | exact ⟨i.left.ker, hq.symm ▸ (inferInstance : Flat (e.inv ≫ Z.hom)), |
| 59 | hq.symm ▸ (inferInstance : LocallyOfFinitePresentation (e.inv ≫ Z.hom))⟩ |
| 60 | |
| 61 | /-- The ideal-sheaf family recovers the original embedded scheme over the base. -/ |
| 62 | def ofEmbeddingIso {Z : Over S} (i : Z ⟶ P) [IsClosedImmersion i.left] |
| 63 | [Flat Z.hom] [LocallyOfFinitePresentation Z.hom] : |
| 64 | Z ≅ (ofEmbedding i).scheme := by |
| 65 | let e : Z.left ≅ i.left.ker.subscheme := asIso i.left.toImage |
| 66 | exact Over.isoMk e |
| 67 | ((Category.assoc _ _ _).symm.trans |
| 68 | ((congrArg (fun a => a ≫ P.hom) i.left.toImage_imageι).trans i.w)) |
| 69 | |
| 70 | end FlatClosedFamily |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Closed.Families |