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.Closed.AmbientDirectedGluing |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Projective.DiagramBaseChange |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Projective.ClosedDiagramGluing |
| 4 | |
| 5 | /-! # Ambient Projective Gluing -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Closed |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The ambient target of a recovered closed diagram inherits an actual projective presentation. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u v |
| 16 | |
| 17 | variable {C R : Type u} [CommRing C] [CommRing R] [Algebra C R] |
| 18 | variable {J : Type v} [Category J] [Quiver.IsThin J] [Small.{u} J] |
| 19 | variable (G : J ⥤ Over (Spec (.of C))) [∀ i, IsAffine (G.obj i).left] |
| 20 | variable [∀ {i j} (h : i ⟶ j), IsOpenImmersion (G.map h).left] |
| 21 | variable [((G ⋙ Over.forget (Spec (.of C))) ⋙ Scheme.forget).IsLocallyDirected] |
| 22 | variable {B : Jᵒᵖ ⥤ CommAlgCat.{u} C} |
| 23 | variable (M : AlgebraDiagramModel.ClosedAlgebraDiagramModel (R := R) (Affine.CoordinateFunctor.affineCoordinateFunctor C G) B) |
| 24 | variable [∀ {i j} (h : i ⟶ j), IsOpenImmersion (M.targetDiagram.map h).left] |
| 25 | variable [((M.targetDiagram ⋙ Over.forget (Spec (.of M.closingCoefficients))) ⋙ Scheme.forget).IsLocallyDirected] |
| 26 | |
| 27 | local instance AlgebraDiagramModel.ClosedAlgebraDiagramModel.closedAmbientProjective_open_1 {i j : J} (h : i ⟶ j) : IsOpenImmersion ((G ⋙ Over.forget (Spec (.of C))).map h) := |
| 28 | inferInstanceAs (IsOpenImmersion (G.map h).left) |
| 29 | |
| 30 | local instance AlgebraDiagramModel.ClosedAlgebraDiagramModel.closedAmbientProjective_open_2 {i j : J} (h : i ⟶ j) : |
| 31 | IsOpenImmersion ((M.targetDiagram ⋙ Over.forget (Spec (.of M.closingCoefficients))).map h) := |
| 32 | inferInstanceAs (IsOpenImmersion (M.targetDiagram.map h).left) |
| 33 | |
| 34 | def AlgebraDiagramModel.ClosedAlgebraDiagramModel.targetGluedProjective (P : Projective.ProjectivePresentations.ProjectivePresentation (Over.mk (Smooth.DiagramGluing.smoothDiagramGluedMap G))) : |
| 35 | Projective.ProjectivePresentations.ProjectivePresentation (Over.mk (Smooth.DiagramGluing.smoothDiagramGluedMap M.targetDiagram)) := by |
| 36 | let c := Spec.map (CommRingCat.ofHom (algebraMap C M.coefficients)) |
| 37 | let d := Spec.map (CommRingCat.ofHom (algebraMap M.coefficients M.closingCoefficients)) |
| 38 | have {i j : J} (h : i ⟶ j) : IsOpenImmersion ((G ⋙ Over.pullback c).map h).left := |
| 39 | Affine.FunctorBaseChange.affineFunctorBaseChange_open G c h |
| 40 | have : (((G ⋙ Over.pullback c) ⋙ Over.forget (Spec (.of M.coefficients))) ⋙ Scheme.forget).IsLocallyDirected := |
| 41 | DiagramPullbackProjection.diagramPullback_locallyDirected G c |
| 42 | have {i j : J} (h : i ⟶ j) : IsOpenImmersion (((G ⋙ Over.pullback c) ⋙ Over.pullback d).map h).left := |
| 43 | Affine.FunctorBaseChange.affineFunctorBaseChange_open (G ⋙ Over.pullback c) d h |
| 44 | have : ((((G ⋙ Over.pullback c) ⋙ Over.pullback d) ⋙ Over.forget (Spec (.of M.closingCoefficients))) ⋙ |
| 45 | Scheme.forget).IsLocallyDirected := DiagramPullbackProjection.diagramPullback_locallyDirected (G ⋙ Over.pullback c) d |
| 46 | exact Projective.ClosedDiagramGluing.projectiveDiagramOfIso (M.targetBaseChangeIso G) |
| 47 | (Projective.DiagramBaseChange.projectiveDiagramBaseChange (G ⋙ Over.pullback c) d (Projective.DiagramBaseChange.projectiveDiagramBaseChange G c P)) |
| 48 | |
| 49 | end |
| 50 | |
| 51 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Closed |