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.MorphismGraphFamilies |
| 2 | |
| 3 | /-! # Family Recognition -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A closed family is the graph of a morphism exactly when its first projection is an isomorphism. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 12 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {S : Scheme.{u}} {A B : Over S} |
| 17 | |
| 18 | theorem Closed.Families.FlatClosedFamily.ofEmbeddingIso_inclusion {P Z : Over S} (i : Z ⟶ P) |
| 19 | [IsClosedImmersion i.left] [Flat Z.hom] [LocallyOfFinitePresentation Z.hom] : |
| 20 | (Closed.Families.FlatClosedFamily.ofEmbeddingIso i).hom ≫ (Closed.Families.FlatClosedFamily.ofEmbedding i).inclusion = i := by |
| 21 | apply Over.OverMorphism.ext |
| 22 | exact i.left.toImage_imageι |
| 23 | |
| 24 | def Closed.Families.FlatClosedFamily.graphMorphism (F : Closed.Families.FlatClosedFamily (A ⊗ B)) |
| 25 | [IsIso (F.inclusion ≫ fst A B)] : A ⟶ B := |
| 26 | inv (F.inclusion ≫ fst A B) ≫ F.inclusion ≫ snd A B |
| 27 | |
| 28 | theorem Closed.Families.FlatClosedFamily.graphMorphism_graph (F : Closed.Families.FlatClosedFamily (A ⊗ B)) |
| 29 | [IsIso (F.inclusion ≫ fst A B)] : |
| 30 | MorphismGraphFamilies.familyGraph F.graphMorphism = inv (F.inclusion ≫ fst A B) ≫ F.inclusion := by |
| 31 | apply CartesianMonoidalCategory.hom_ext |
| 32 | · simp only [MorphismGraphFamilies.familyGraph, lift_fst, Category.assoc, IsIso.inv_hom_id] |
| 33 | · simp only [MorphismGraphFamilies.familyGraph, lift_snd, Closed.Families.FlatClosedFamily.graphMorphism, Category.assoc] |
| 34 | |
| 35 | instance Graph.FamilyRecognition.morphismGraphFamily_firstProjection_isIso (p : A ⟶ B) |
| 36 | [IsSeparated B.hom] [Flat A.hom] [LocallyOfFinitePresentation A.hom] : |
| 37 | IsIso ((MorphismGraphFamilies.morphismGraphFamily p).inclusion ≫ fst A B) := by |
| 38 | have h : (MorphismGraphFamilies.morphismGraphFamilyIso p).hom ≫ (MorphismGraphFamilies.morphismGraphFamily p).inclusion ≫ fst A B = 𝟙 A := by |
| 39 | exact (Category.assoc _ _ _).symm.trans |
| 40 | ((congrArg (fun a => a ≫ fst A B) (Closed.Families.FlatClosedFamily.ofEmbeddingIso_inclusion (MorphismGraphFamilies.familyGraph p))).trans |
| 41 | (lift_fst (𝟙 A) p)) |
| 42 | have hi : IsIso ((MorphismGraphFamilies.morphismGraphFamilyIso p).hom ≫ |
| 43 | (MorphismGraphFamilies.morphismGraphFamily p).inclusion ≫ fst A B) := h.symm ▸ inferInstance |
| 44 | exact (isIso_comp_left_iff _ _).mp hi |
| 45 | |
| 46 | theorem Closed.Families.FlatClosedFamily.graphMorphism_family (F : Closed.Families.FlatClosedFamily (A ⊗ B)) |
| 47 | [IsIso (F.inclusion ≫ fst A B)] [IsSeparated B.hom] [Flat A.hom] |
| 48 | [LocallyOfFinitePresentation A.hom] : MorphismGraphFamilies.morphismGraphFamily F.graphMorphism = F := by |
| 49 | apply Closed.Families.FlatClosedFamily.ext |
| 50 | have h := congrArg Over.Hom.left F.graphMorphism_graph |
| 51 | have : IsIso (inv (F.inclusion ≫ fst A B)).left := |
| 52 | inferInstanceAs (IsIso ((Over.forget S).map (inv (F.inclusion ≫ fst A B)))) |
| 53 | change (MorphismGraphFamilies.familyGraph F.graphMorphism).left.ker = F.ideal |
| 54 | rw [h] |
| 55 | change ((inv (F.inclusion ≫ fst A B)).left ≫ F.inclusion.left).ker = F.ideal |
| 56 | exact (Scheme.Hom.ker_comp_of_isIso _ _).trans F.ideal.ker_subschemeι |
| 57 | |
| 58 | def Graph.FamilyRecognition.morphismGraphFamilyEquiv [IsSeparated B.hom] [Flat A.hom] |
| 59 | [LocallyOfFinitePresentation A.hom] : |
| 60 | (A ⟶ B) ≃ {F : Closed.Families.FlatClosedFamily (A ⊗ B) // IsIso (F.inclusion ≫ fst A B)} where |
| 61 | toFun p := ⟨MorphismGraphFamilies.morphismGraphFamily p, inferInstance⟩ |
| 62 | invFun F := by |
| 63 | letI := F.property |
| 64 | exact F.val.graphMorphism |
| 65 | left_inv p := by |
| 66 | apply MorphismGraphFamilies.morphismGraphFamily_injective |
| 67 | exact (MorphismGraphFamilies.morphismGraphFamily p).graphMorphism_family |
| 68 | right_inv F := by |
| 69 | let := F.property |
| 70 | apply Subtype.ext |
| 71 | exact F.val.graphMorphism_family |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |