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.DiagramSchemeModels |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SchemeTensorDiagramIso |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.TensorDiagramIso |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Over.DiagramOpenIso |
| 5 | |
| 6 | /-! # Diagram Ambient Iso -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Closed |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The target of a recovered closed diagram is the actual iterated base change of the ambient charts. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u v w |
| 17 | |
| 18 | variable {C R : Type u} [CommRing C] [CommRing R] [Algebra C R] |
| 19 | variable {J : Type v} [Category.{w} J] (G : J ⥤ Over (Spec (.of C))) |
| 20 | variable [∀ i, IsAffine (G.obj i).left] {B : Jᵒᵖ ⥤ CommAlgCat.{u} C} |
| 21 | variable (M : AlgebraDiagramModel.ClosedAlgebraDiagramModel (R := R) (Affine.CoordinateFunctor.affineCoordinateFunctor C G) B) |
| 22 | |
| 23 | def AlgebraDiagramModel.ClosedAlgebraDiagramModel.targetBaseChangeIso : M.targetDiagram ≅ |
| 24 | (G ⋙ Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap C M.coefficients)))) ⋙ |
| 25 | Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap M.coefficients M.closingCoefficients))) := |
| 26 | SchemeTensorDiagramIso.algebraSchemeTensorDiagramIso M.coefficients M.closingCoefficients |
| 27 | (Affine.CoordinateFunctor.affineCoordinateFunctor C G ⋙ AlgebraTensorFunctor.algebraTensorFunctor C M.coefficients) ≪≫ |
| 28 | Functor.isoWhiskerRight (Affine.TensorDiagramIso.affineTensorDiagramIso C M.coefficients G) |
| 29 | (Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap M.coefficients M.closingCoefficients)))) |
| 30 | |
| 31 | theorem AlgebraDiagramModel.ClosedAlgebraDiagramModel.targetDiagram_open [∀ {i j} (h : i ⟶ j), IsOpenImmersion (G.map h).left] |
| 32 | {i j : J} (h : i ⟶ j) : IsOpenImmersion (M.targetDiagram.map h).left := by |
| 33 | let c := Spec.map (CommRingCat.ofHom (algebraMap C M.coefficients)) |
| 34 | let d := Spec.map (CommRingCat.ofHom (algebraMap M.coefficients M.closingCoefficients)) |
| 35 | have {i j : J} (f : i ⟶ j) : IsOpenImmersion ((G ⋙ Over.pullback c).map f).left := |
| 36 | Affine.FunctorBaseChange.affineFunctorBaseChange_open G c f |
| 37 | have {i j : J} (f : i ⟶ j) : IsOpenImmersion (((G ⋙ Over.pullback c) ⋙ Over.pullback d).map f).left := |
| 38 | Affine.FunctorBaseChange.affineFunctorBaseChange_open (G ⋙ Over.pullback c) d f |
| 39 | exact HilbertConstruction.Over.DiagramOpenIso.overDiagram_open_of_iso (M.targetBaseChangeIso G) h |
| 40 | |
| 41 | end |
| 42 | |
| 43 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Closed |