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.Smooth.ProjectiveAmbientModels |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth.AmbientClosedModels |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Closed.ModelAmbientFunctor |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SubalgebraRecoverySpec |
| 5 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth.ProjectiveClosedModel |
| 6 | |
| 7 | /-! # Ambient Projective Models -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! A smooth ambient functor model gives a smooth projective scheme in an actual finite coefficient base change of the original ambient gluing. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | |
| 17 | universe u v |
| 18 | |
| 19 | variable {R : Type u} [CommRing R] {C : Subalgebra ℤ R} |
| 20 | variable {J : Type v} [Category J] [Quiver.IsThin J] [Small.{u} J] [Finite J] |
| 21 | variable {G : J ⥤ Over (Spec (.of C))} [∀ i, IsAffine (G.obj i).left] |
| 22 | variable [∀ i, LocallyOfFiniteType (G.obj i).hom] |
| 23 | variable [∀ {i j} (h : i ⟶ j), IsOpenImmersion (G.map h).left] |
| 24 | variable [((G ⋙ Over.forget (Spec (.of C))) ⋙ Scheme.forget).IsLocallyDirected] |
| 25 | variable (M : AmbientFunctorModel.SmoothAmbientFunctorModel C G) |
| 26 | |
| 27 | local instance AmbientFunctorModel.SmoothAmbientFunctorModel.smoothAmbientProjective_original_open {i j : J} (h : i ⟶ j) : |
| 28 | IsOpenImmersion ((G ⋙ Over.forget (Spec (.of C))).map h) := |
| 29 | inferInstanceAs (IsOpenImmersion (G.map h).left) |
| 30 | |
| 31 | theorem AmbientFunctorModel.SmoothAmbientFunctorModel.exists_smooth_projective_model |
| 32 | (P : Projective.ProjectivePresentations.ProjectivePresentation (Over.mk (DiagramGluing.smoothDiagramGluedMap G))) : |
| 33 | ∃ N : Closed.AlgebraDiagramModel.ClosedAlgebraDiagramModel (R := R) |
| 34 | (Affine.CoordinateFunctor.affineCoordinateFunctor M.coefficients M.ambient) |
| 35 | (Affine.CoordinateFunctor.affineCoordinateFunctor M.coefficients M.source), |
| 36 | ∃ D : Subalgebra N.closingCoefficients R, D.FG ∧ |
| 37 | Nonempty (ProjectiveClosedModel.SmoothProjectiveClosedModel (T := Spec (.of R)) |
| 38 | (N.ambientBaseChange D |
| 39 | ((Over.pullback (Spec.map (CommRingCat.ofHom (Subalgebra.inclusion M.above).toRingHom))).obj |
| 40 | (Over.mk (DiagramGluing.smoothDiagramGluedMap G)))) (SubalgebraRecoverySpec.subalgebraRecoverySpec (C := N.closingCoefficients) (R := R) D)) := by |
| 41 | have : Algebra.FiniteType ℤ M.coefficients := M.finiteType |
| 42 | have : IsNoetherianRing M.coefficients := Algebra.FiniteType.isNoetherianRing ℤ M.coefficients |
| 43 | let c := Spec.map (CommRingCat.ofHom (Subalgebra.inclusion M.above).toRingHom) |
| 44 | have {i j : J} (h : i ⟶ j) : IsOpenImmersion (M.ambient.map h).left := |
| 45 | Affine.FunctorBaseChange.affineFunctorBaseChange_open G c h |
| 46 | have : ((M.ambient ⋙ Over.forget (Spec (.of M.coefficients))) ⋙ Scheme.forget).IsLocallyDirected := |
| 47 | DiagramPullbackProjection.diagramPullback_locallyDirected G c |
| 48 | have (i : Jᵒᵖ) : Algebra.Smooth M.coefficients ((Affine.CoordinateFunctor.affineCoordinateFunctor M.coefficients M.source).obj i) := |
| 49 | AffineSchemeModels.affineOverAlgebra_smooth M.coefficients (M.source.obj i.unop) |
| 50 | obtain ⟨N, _⟩ := M.exists_closed_model (⊥ : Subalgebra M.coefficients R) Subalgebra.fg_bot |
| 51 | obtain ⟨D, _, hD, Y, hs, hn, hp, j, hj, hr⟩ := N.exists_smooth_projective_ambient_model M.ambient |
| 52 | (Projective.DiagramBaseChange.projectiveDiagramBaseChange G c P) (⊥ : Subalgebra N.closingCoefficients R) Subalgebra.fg_bot |
| 53 | let e := N.ambientBaseChangeIso D (DiagramPullbackGluedIso.diagramPullbackGluedOverIso G c) |
| 54 | let r := SubalgebraRecoverySpec.subalgebraRecoverySpec (C := N.closingCoefficients) (R := R) D |
| 55 | let L : ProjectiveClosedModel.SmoothProjectiveClosedModel |
| 56 | (N.ambientBaseChange D (Over.mk (DiagramGluing.smoothDiagramGluedMap M.ambient))) r := { |
| 57 | scheme := Y |
| 58 | smooth := hs |
| 59 | noetherian := hn |
| 60 | projective := hp.some |
| 61 | embedding := j |
| 62 | closed := hj |
| 63 | recovered := hr } |
| 64 | exact ⟨N, D, hD, ⟨L.transport e⟩⟩ |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth |