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.HilbertScheme.Presentations.Flat.ModelCartesianRecovery |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Intrinsic.HomogeneousFamilyConstruction |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Projective.SaturationBaseChangeEquality |
| 4 | |
| 5 | /-! # Flat Equation Model -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Intrinsic.FlatEquationModel.GradedHilbert |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Retain the homogeneous ideal of the local flat coefficient model, |
| 12 | including its exact saturated coordinates on the original native family. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u |
| 17 | variable {S : Scheme.{u}} {A B : Type u} [CommRing A] [IsLocalRing A] |
| 18 | variable [CommRing B] [IsNoetherianRing B] [Algebra B A] {n : ℕ} |
| 19 | variable {a : Spec (.of A) ⟶ S} |
| 20 | variable {F : Hilbert.Functor.Family (PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) (Over.mk a)} |
| 21 | variable (E : AffineEquationModel.GradedHilbert.NativeAffineEquations a F) |
| 22 | |
| 23 | def nativeLocalFlatEquationModel : |
| 24 | Noetherian.ProjectiveFlatFactorization.GradedHilbert.NoetherianLocalFlatCoefficientModel (A := A) (AffineEquationModel.GradedHilbert.nativeEquationModelIdeal E B) := by |
| 25 | have : Flat (Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading |
| 26 | (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := A) (AffineEquationModel.GradedHilbert.nativeEquationModelIdeal E B)))) := |
| 27 | Presentations.Flat.ModelCartesianRecovery.GradedHilbert.nativeEquationExtendedIdeal_flat (B := B) a F E |
| 28 | exact Classical.choice (Noetherian.ProjectiveFlatFactorization.GradedHilbert.exists_noetherian_local_flat_coefficient_model (A := A) |
| 29 | (AffineEquationModel.GradedHilbert.nativeEquationModelIdeal E B)) |
| 30 | |
| 31 | omit [IsLocalRing A] [IsNoetherianRing B] in |
| 32 | theorem nativeEquationModel_saturated_coordinates : |
| 33 | Affine.IntrinsicHomogeneousCoordinates.GradedHilbert.affineNativeHomogeneousIdeal n a F = Projective.Saturation.GradedHilbert.projectiveSaturation (AffineEquationModel.GradedHilbert.nativeEquationExtendedIdeal E B) := by |
| 34 | change ChartHomogeneousIdeal.GradedHilbert.homogeneousIdealOfSheaf (F.val.comap (Affine.ProjectiveAmbient.GradedHilbert.affineProjectiveAmbientIso n a).hom) = _ |
| 35 | rw [← AffineEquationModel.GradedHilbert.nativeEquationModel_realization E B, Global.PolynomialInclusion.closedImmersion_comp_iso_ker, |
| 36 | ← Scheme.IdealSheafData.comap_comp, Iso.hom_inv_id, Scheme.IdealSheafData.comap_id] |
| 37 | rfl |
| 38 | |
| 39 | theorem nativeLocalFlatEquationModel_coordinates : |
| 40 | Affine.IntrinsicHomogeneousCoordinates.GradedHilbert.affineNativeHomogeneousIdeal n a F = Projective.Saturation.GradedHilbert.projectiveSaturation |
| 41 | (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := A) |
| 42 | (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := (nativeLocalFlatEquationModel (B := B) E).R) |
| 43 | (AffineEquationModel.GradedHilbert.nativeEquationModelIdeal E B))) := by |
| 44 | rw [Homogeneous.IdealTower.GradedHilbert.extendedHomogeneousIdeal_tower] |
| 45 | exact nativeEquationModel_saturated_coordinates (B := B) E |
| 46 | |
| 47 | end |
| 48 | |
| 49 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Intrinsic.FlatEquationModel.GradedHilbert |