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.ProjectiveCoordinate.ConnectedOpen |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ClosedFamily.HomogeneousCoordinates |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Over.IsoMorphismProperty |
| 4 | |
| 5 | /-! # Connected Open -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The connected-fiber open for every pointed smooth family with an actual projective presentation over a Noetherian affine base. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | theorem AffineProjective.ConnectedOpen.pointedSmoothAffineEmbedded_connected_open |
| 18 | {R : Type u} [CommRing R] [IsNoetherianRing R] {n : ℕ} |
| 19 | {X : Over (Spec (.of R))} [Smooth X.hom] |
| 20 | (j : X ⟶ Projective.ProjectivePresentations.affineProjectiveSpace R n) [IsClosedImmersion j.left] |
| 21 | (x : Spec (.of R) ⟶ X.left) (hx : x ≫ X.hom = 𝟙 _) : |
| 22 | ∃ U : (Spec (.of R)).Opens, ∀ (T : Scheme.{u}) (c : T ⟶ Spec (.of R)), |
| 23 | GeometricallyConnected (pullback.snd X.hom c) ↔ Set.range c ⊆ (U : Set (Spec (.of R))) := by |
| 24 | let F := Closed.Families.FlatClosedFamily.ofEmbedding j |
| 25 | let e : Projective.EmbeddingBaseChange.homogeneousProjectiveFamily F.homogeneousIdeal ≅ X := |
| 26 | F.homogeneousFamilyIso ≪≫ (Closed.Families.FlatClosedFamily.ofEmbeddingIso j).symm |
| 27 | have : IsProper X.hom := by |
| 28 | rw [← j.w] |
| 29 | infer_instance |
| 30 | have : IsProper (HilbertScheme.Presentations.Projective.Flatness.GradedHilbert.projectiveStructureMap (HilbertScheme.Presentations.Graded.Quotient.GradedHilbert.quotientGrading F.homogeneousIdeal)) := |
| 31 | (HilbertConstruction.Over.IsoMorphismProperty.overIso_morphismProperty_iff (@IsProper : MorphismProperty Scheme.{u}) e).mpr inferInstance |
| 32 | have : Smooth (HilbertScheme.Presentations.Projective.Flatness.GradedHilbert.projectiveStructureMap (HilbertScheme.Presentations.Graded.Quotient.GradedHilbert.quotientGrading F.homogeneousIdeal)) := |
| 33 | (HilbertConstruction.Over.IsoMorphismProperty.overIso_morphismProperty_iff (@Smooth : MorphismProperty Scheme.{u}) e).mpr inferInstance |
| 34 | have hs : (x ≫ e.inv.left) ≫ HilbertScheme.Presentations.Projective.Flatness.GradedHilbert.projectiveStructureMap (HilbertScheme.Presentations.Graded.Quotient.GradedHilbert.quotientGrading F.homogeneousIdeal) = 𝟙 _ := |
| 35 | (Category.assoc _ _ _).trans ((congrArg (fun f => x ≫ f) e.inv.w).trans hx) |
| 36 | obtain ⟨U, hU⟩ := ProjectiveCoordinate.ConnectedOpen.pointedProperSmoothProjectiveCoordinate_connected_open |
| 37 | F.homogeneousIdeal (x ≫ e.inv.left) hs |
| 38 | refine ⟨U, fun T c => ?_⟩ |
| 39 | exact (HilbertConstruction.Over.IsoMorphismProperty.overIso_morphismProperty_iff (@GeometricallyConnected : MorphismProperty Scheme.{u}) |
| 40 | ((Over.pullback c).mapIso e)).symm.trans (hU T c) |
| 41 | |
| 42 | theorem AffineProjective.ConnectedOpen.overIso_composition_closed {S : Scheme.{u}} {X Y Z : Over S} |
| 43 | (j : X ⟶ Y) [IsClosedImmersion j.left] (e : Y ≅ Z) : |
| 44 | IsClosedImmersion (j ≫ e.hom).left := by |
| 45 | have : IsIso e.hom.left := (Over.forget S).map_isIso e.hom |
| 46 | exact inferInstanceAs (IsClosedImmersion (j.left ≫ e.hom.left)) |
| 47 | |
| 48 | def Projective.ProjectivePresentations.ProjectivePresentation.affineEmbedding |
| 49 | {R : Type u} [CommRing R] {X : Over (Spec (.of R))} (P : Projective.ProjectivePresentations.ProjectivePresentation X) : |
| 50 | X ⟶ Projective.ProjectivePresentations.affineProjectiveSpace R P.dimension := |
| 51 | P.embedding ≫ (Projective.SpaceBaseChange.projectiveSpaceOverSpecIso (.of R) P.dimension).hom |
| 52 | |
| 53 | instance Projective.ProjectivePresentations.ProjectivePresentation.affineEmbedding_closed |
| 54 | {R : Type u} [CommRing R] {X : Over (Spec (.of R))} (P : Projective.ProjectivePresentations.ProjectivePresentation X) : |
| 55 | IsClosedImmersion P.affineEmbedding.left := |
| 56 | AffineProjective.ConnectedOpen.overIso_composition_closed P.embedding (Projective.SpaceBaseChange.projectiveSpaceOverSpecIso (.of R) P.dimension) |
| 57 | |
| 58 | theorem AffineProjective.ConnectedOpen.pointedSmoothAffineProjective_connected_open |
| 59 | {R : Type u} [CommRing R] [IsNoetherianRing R] |
| 60 | {X : Over (Spec (.of R))} [Smooth X.hom] (P : Projective.ProjectivePresentations.ProjectivePresentation X) |
| 61 | (x : Spec (.of R) ⟶ X.left) (hx : x ≫ X.hom = 𝟙 _) : |
| 62 | ∃ U : (Spec (.of R)).Opens, ∀ (T : Scheme.{u}) (c : T ⟶ Spec (.of R)), |
| 63 | GeometricallyConnected (pullback.snd X.hom c) ↔ Set.range c ⊆ (U : Set (Spec (.of R))) := by |
| 64 | exact AffineProjective.ConnectedOpen.pointedSmoothAffineEmbedded_connected_open P.affineEmbedding x hx |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |