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.Segre.ProjectiveIsomorphism |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Grassmann.ProjectivePresentation |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Projective.SpaceBaseChange |
| 4 | |
| 5 | /-! # Segre Over -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.SegreOver |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The constructed Segre closed immersion is a projective presentation over the coefficient base. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | open _root_.CategoryTheory.MonoidalCategory |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable (R : CommRingCat.{u}) (n m : ℕ) |
| 19 | |
| 20 | def segreProductOverIso : |
| 21 | Segre.ProductComparison.segreEquationOver R n m ≅ Projective.ProjectivePresentations.affineProjectiveSpace R n ⊗ Projective.ProjectivePresentations.affineProjectiveSpace R m := |
| 22 | Over.isoMk (Segre.ProjectiveIsomorphism.segreProductSchemeIso R n m) (by |
| 23 | exact (Category.assoc (Segre.ProductComparison.segreToProduct R n m) |
| 24 | (pullback.fst (Projective.ProjectivePresentations.affineProjectiveSpace R n).hom (Projective.ProjectivePresentations.affineProjectiveSpace R m).hom) |
| 25 | (Projective.ProjectivePresentations.affineProjectiveSpace R n).hom).symm.trans |
| 26 | ((congrArg (fun f => f ≫ (Projective.ProjectivePresentations.affineProjectiveSpace R n).hom) (Segre.ProductComparison.segreToProduct_fst R n m)).trans |
| 27 | (Segre.ProductComparison.segreRowProjection_over R n m))) |
| 28 | |
| 29 | def affineSegrePolynomialOverMap : Projective.ProjectivePresentations.affineProjectiveSpace R n ⊗ Projective.ProjectivePresentations.affineProjectiveSpace R m ⟶ |
| 30 | Over.mk (HilbertScheme.Presentations.Projective.Flatness.GradedHilbert.projectiveStructureMap |
| 31 | (HilbertScheme.Presentations.Polynomial.Dehomogenization.PolynomialProjective.polynomialGrading (Segre.ChartProjections.SegreProjectiveIndex.{u} n m) R)) := |
| 32 | (segreProductOverIso R n m).inv ≫ Over.homMk (Segre.ProjectiveScheme.segreProjectiveInclusion R) |
| 33 | (HilbertScheme.Presentations.Polynomial.Projective.PolynomialProjective.projectiveQuotientInclusion_over (Segre.HomogeneousRelations.segreHomogeneousIdeal R)) |
| 34 | |
| 35 | instance affineSegrePolynomialOverMap_isClosedImmersion : |
| 36 | IsClosedImmersion (affineSegrePolynomialOverMap R n m).left := |
| 37 | Segre.ProjectiveIsomorphism.affineSegreEmbedding_isClosedImmersion R n m |
| 38 | |
| 39 | def segreProjectiveDimension : ℕ := Fintype.card (Segre.ChartProjections.SegreProjectiveIndex.{u} n m) - 1 |
| 40 | |
| 41 | def affineSegreStandardEmbedding : Projective.ProjectivePresentations.affineProjectiveSpace R n ⊗ Projective.ProjectivePresentations.affineProjectiveSpace R m ⟶ |
| 42 | Projective.ProjectivePresentations.affineProjectiveSpace R (segreProjectiveDimension.{u} n m) := |
| 43 | affineSegrePolynomialOverMap R n m ≫ |
| 44 | (Projective.SpaceReindex.affineProjectiveSpaceReindexIso R (Grassmann.ProjectivePresentation.finiteProjectiveCoordinateEquiv (Segre.ChartProjections.SegreProjectiveIndex.{u} n m))).hom |
| 45 | |
| 46 | instance affineSegreStandardEmbedding_isClosedImmersion : |
| 47 | IsClosedImmersion (affineSegreStandardEmbedding R n m).left := by |
| 48 | exact @IsClosedImmersion.comp _ _ _ _ _ (affineSegrePolynomialOverMap_isClosedImmersion R n m) |
| 49 | (Grassmann.ProjectivePresentation.overIso_closedImmersion |
| 50 | (Projective.SpaceReindex.affineProjectiveSpaceReindexIso R (Grassmann.ProjectivePresentation.finiteProjectiveCoordinateEquiv (Segre.ChartProjections.SegreProjectiveIndex.{u} n m)))) |
| 51 | |
| 52 | def affineProjectiveProductPresentation : |
| 53 | Projective.ProjectivePresentations.ProjectivePresentation (Projective.ProjectivePresentations.affineProjectiveSpace R n ⊗ Projective.ProjectivePresentations.affineProjectiveSpace R m) where |
| 54 | dimension := segreProjectiveDimension.{u} n m |
| 55 | embedding := affineSegreStandardEmbedding R n m ≫ |
| 56 | (Projective.SpaceBaseChange.projectiveSpaceOverSpecIso R (segreProjectiveDimension.{u} n m)).inv |
| 57 | closedImmersion := by |
| 58 | exact @IsClosedImmersion.comp _ _ _ _ _ (affineSegreStandardEmbedding_isClosedImmersion R n m) |
| 59 | (Grassmann.ProjectivePresentation.overIso_closedImmersion (Projective.SpaceBaseChange.projectiveSpaceOverSpecIso R (segreProjectiveDimension.{u} n m)).symm) |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.SegreOver |