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.ClosedFamily.Transport |
| 2 | import Mathlib.CategoryTheory.Monoidal.Cartesian.Over |
| 3 | |
| 4 | /-! # Morphism Graph Families -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.MorphismGraphFamilies |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Morphisms to separated families give faithful ideal-defined graph families. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 13 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable {S : Scheme.{u}} {A B : Over S} |
| 18 | |
| 19 | def familyGraph (p : A ⟶ B) : A ⟶ A ⊗ B := lift (𝟙 A) p |
| 20 | |
| 21 | theorem familyGraph_fst (p : A ⟶ B) : |
| 22 | (familyGraph p).left ≫ pullback.fst A.hom B.hom = 𝟙 A.left := |
| 23 | congrArg Over.Hom.left (lift_fst (𝟙 A) p) |
| 24 | |
| 25 | theorem familyGraph_snd (p : A ⟶ B) : |
| 26 | (familyGraph p).left ≫ pullback.snd A.hom B.hom = p.left := |
| 27 | congrArg Over.Hom.left (lift_snd (𝟙 A) p) |
| 28 | |
| 29 | instance familyGraph_closedImmersion (p : A ⟶ B) [IsSeparated B.hom] : |
| 30 | IsClosedImmersion (familyGraph p).left := by |
| 31 | have : IsClosedImmersion ((familyGraph p).left ≫ pullback.fst A.hom B.hom) := by |
| 32 | rw [familyGraph_fst] |
| 33 | infer_instance |
| 34 | exact IsClosedImmersion.of_comp (familyGraph p).left (pullback.fst A.hom B.hom) |
| 35 | |
| 36 | def morphismGraphFamily (p : A ⟶ B) [IsSeparated B.hom] [Flat A.hom] |
| 37 | [LocallyOfFinitePresentation A.hom] : Closed.Families.FlatClosedFamily (A ⊗ B) := |
| 38 | Closed.Families.FlatClosedFamily.ofEmbedding (familyGraph p) |
| 39 | |
| 40 | def morphismGraphFamilyIso (p : A ⟶ B) [IsSeparated B.hom] [Flat A.hom] |
| 41 | [LocallyOfFinitePresentation A.hom] : A ≅ (morphismGraphFamily p).scheme := |
| 42 | Closed.Families.FlatClosedFamily.ofEmbeddingIso (familyGraph p) |
| 43 | |
| 44 | theorem familyGraph_eq_of_ker_eq [IsSeparated B.hom] {p q : A ⟶ B} |
| 45 | (h : (familyGraph p).left.ker = (familyGraph q).left.ker) : p = q := by |
| 46 | let a := IsClosedImmersion.lift (familyGraph q).left (familyGraph p).left h.symm.le |
| 47 | have ha : a ≫ (familyGraph q).left = (familyGraph p).left := IsClosedImmersion.lift_fac _ _ _ |
| 48 | have he : a = 𝟙 A.left := by |
| 49 | have hf := congrArg (fun k => k ≫ pullback.fst A.hom B.hom) ha |
| 50 | rw [Category.assoc, familyGraph_fst, familyGraph_fst, Category.comp_id] at hf |
| 51 | exact hf |
| 52 | have hs := congrArg (fun k => k ≫ pullback.snd A.hom B.hom) ha |
| 53 | rw [Category.assoc, familyGraph_snd, familyGraph_snd, he, Category.id_comp] at hs |
| 54 | exact Over.OverMorphism.ext hs.symm |
| 55 | |
| 56 | theorem morphismGraphFamily_injective [IsSeparated B.hom] [Flat A.hom] |
| 57 | [LocallyOfFinitePresentation A.hom] : |
| 58 | Function.Injective (fun p : A ⟶ B => morphismGraphFamily p) := by |
| 59 | intro p q h |
| 60 | have hi := congrArg (fun F : Closed.Families.FlatClosedFamily (A ⊗ B) => F.ideal) h |
| 61 | exact familyGraph_eq_of_ker_eq hi |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.MorphismGraphFamilies |