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.DiagramGlobalRecovery |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Projective.ClosedDiagramGluing |
| 3 | |
| 4 | /-! # Projective Closed Gluing -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth.ProjectiveClosedGluing |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Smooth Cartesian closed charts with recovered isomorphisms give a smooth noetherian projective scheme and a recovered closed embedding. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u v |
| 15 | |
| 16 | variable {C R : Type u} [CommRing C] [CommRing R] [IsNoetherianRing C] |
| 17 | variable {J : Type v} [Category J] [Quiver.IsThin J] [Small.{u} J] [Finite J] |
| 18 | variable {F G : J ⥤ Over (Spec (.of C))} |
| 19 | variable [∀ {i j} (h : i ⟶ j), IsOpenImmersion (G.map h).left] |
| 20 | variable [((G ⋙ Over.forget (Spec (.of C))) ⋙ Scheme.forget).IsLocallyDirected] |
| 21 | variable [∀ {i j} (h : i ⟶ j), IsOpenImmersion (F.map h).left] |
| 22 | variable [((F ⋙ Over.forget (Spec (.of C))) ⋙ Scheme.forget).IsLocallyDirected] |
| 23 | variable [∀ i, IsAffine (F.obj i).left] [∀ i, Smooth (F.obj i).hom] |
| 24 | |
| 25 | local instance {i j : J} (h : i ⟶ j) : IsOpenImmersion ((F ⋙ Over.forget (Spec (.of C))).map h) := |
| 26 | inferInstanceAs (IsOpenImmersion (F.map h).left) |
| 27 | |
| 28 | local instance {i j : J} (h : i ⟶ j) : IsOpenImmersion ((G ⋙ Over.forget (Spec (.of C))).map h) := |
| 29 | inferInstanceAs (IsOpenImmersion (G.map h).left) |
| 30 | |
| 31 | theorem exists_smooth_projective_closed_gluing |
| 32 | (q : F ⟶ G) (hq : q.Equifibered) [∀ i, IsClosedImmersion (q.app i).left] |
| 33 | (c : Spec (.of R) ⟶ Spec (.of C)) [∀ i, IsIso ((Over.pullback c).map (q.app i))] |
| 34 | (P : Projective.ProjectivePresentations.ProjectivePresentation (Over.mk (DiagramGluing.smoothDiagramGluedMap G))) : |
| 35 | ∃ Y : Over (Spec (.of C)), Smooth Y.hom ∧ IsNoetherian Y.left ∧ |
| 36 | Nonempty (Projective.ProjectivePresentations.ProjectivePresentation Y) ∧ |
| 37 | ∃ j : Y ⟶ Over.mk (DiagramGluing.smoothDiagramGluedMap G), IsClosedImmersion j.left ∧ |
| 38 | IsIso ((Over.pullback c).map j) := by |
| 39 | refine ⟨Over.mk (DiagramGluing.smoothDiagramGluedMap F), ?_, DiagramGluing.smoothDiagramGlued_noetherian F, |
| 40 | ⟨Projective.ClosedDiagramGluing.projectiveClosedDiagramGluing q hq P⟩, Closed.DiagramGluedStructure.equifiberedOverGluedMorphism q hq, |
| 41 | Closed.DiagramGluedStructure.equifiberedOverGluedMorphism_closed q hq, |
| 42 | Closed.DiagramGlobalRecovery.equifiberedOverGluedMorphism_pullback_isIso q hq c⟩ |
| 43 | exact DiagramGluing.smoothDiagramGluedMap_smooth F |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth.ProjectiveClosedGluing |