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.Affine.IntrinsicPolynomialFamily |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Projective.IdealEquivalence |
| 3 | |
| 4 | /-! # Intrinsic Homogeneous Coordinates -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Affine.IntrinsicHomogeneousCoordinates.GradedHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Every native projective family on an affine test has canonical saturated |
| 11 | homogeneous coordinates, with the same actual closed subscheme and family properties. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | variable {R : Type u} [CommRing R] {n : ℕ} |
| 17 | |
| 18 | theorem homogeneousIdealOfSheaf_projection_property |
| 19 | (I : (Proj (Hilbert.Polynomial.GradedHilbert.grading R n)).IdealSheafData) (Q : MorphismProperty Scheme.{u}) [Q.RespectsIso] |
| 20 | (hQ : Q (I.subschemeι ≫ Projective.Flatness.GradedHilbert.projectiveStructureMap (Hilbert.Polynomial.GradedHilbert.grading R n))) : |
| 21 | Q (Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading (ChartHomogeneousIdeal.GradedHilbert.homogeneousIdealOfSheaf I))) := by |
| 22 | let J := ChartHomogeneousIdeal.GradedHilbert.homogeneousIdealOfSheaf I |
| 23 | let j : Projective.Quotient.GradedHilbert.projectiveQuotient J ⟶ Proj (Hilbert.Polynomial.GradedHilbert.grading R n) := Projective.Quotient.GradedHilbert.projectiveQuotientInclusion J |
| 24 | let p : Proj (Hilbert.Polynomial.GradedHilbert.grading R n) ⟶ Spec (CommRingCat.of R) := Projective.Flatness.GradedHilbert.projectiveStructureMap (Hilbert.Polynomial.GradedHilbert.grading R n) |
| 25 | let pJ : Projective.Quotient.GradedHilbert.projectiveQuotient J ⟶ Spec (CommRingCat.of R) := Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading J) |
| 26 | have he : j.toImage ≫ (j.ker.subschemeι ≫ p) = pJ := by |
| 27 | change j.toImage ≫ (j.imageι ≫ p) = pJ |
| 28 | exact (Category.assoc _ _ _).symm.trans |
| 29 | ((congrArg (fun f => f ≫ p) j.toImage_imageι).trans (Projective.QuotientStructure.GradedHilbert.projectiveQuotientInclusion_structure J)) |
| 30 | change Q pJ |
| 31 | rw [← he, Q.cancel_left_of_respectsIso] |
| 32 | change Q ((Projective.Quotient.GradedHilbert.projectiveQuotientInclusion (ChartHomogeneousIdeal.GradedHilbert.homogeneousIdealOfSheaf I)).ker.subschemeι ≫ p) |
| 33 | rw [Projective.IdealEquivalence.GradedHilbert.projectiveQuotient_homogeneousIdealOfSheaf] |
| 34 | exact hQ |
| 35 | |
| 36 | variable {S : Scheme.{u}} (n : ℕ) (a : Spec (CommRingCat.of R) ⟶ S) |
| 37 | variable (F : Hilbert.Functor.Family (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) (Over.mk a)) |
| 38 | |
| 39 | def affineNativeHomogeneousIdeal : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n) := |
| 40 | ChartHomogeneousIdeal.GradedHilbert.homogeneousIdealOfSheaf (IntrinsicPolynomialFamily.GradedHilbert.affineNativeToPolynomial n a F).ideal |
| 41 | |
| 42 | theorem affineNativeHomogeneousIdeal_saturated : Hilbert.Polynomial.GradedHilbert.IsSaturated (affineNativeHomogeneousIdeal n a F).toIdeal := |
| 43 | ChartHomogeneousIdeal.GradedHilbert.homogeneousIdealOfSheaf_saturated _ |
| 44 | |
| 45 | theorem affineNativeHomogeneousIdeal_kernel : |
| 46 | (Projective.Quotient.GradedHilbert.projectiveQuotientInclusion (affineNativeHomogeneousIdeal n a F)).ker = |
| 47 | F.val.comap (ProjectiveAmbient.GradedHilbert.affineProjectiveAmbientIso n a).hom := |
| 48 | Projective.IdealEquivalence.GradedHilbert.projectiveQuotient_homogeneousIdealOfSheaf _ |
| 49 | |
| 50 | theorem affineNativeHomogeneousIdeal_flat : |
| 51 | Flat (Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading (affineNativeHomogeneousIdeal n a F))) := by |
| 52 | have : MorphismProperty.RespectsIso @Flat.{u} := |
| 53 | MorphismProperty.respectsIso_of_isStableUnderComposition |
| 54 | (fun _ _ f (_ : IsIso f) => inferInstanceAs (Flat f)) |
| 55 | exact homogeneousIdealOfSheaf_projection_property _ (@Flat) (IntrinsicPolynomialFamily.GradedHilbert.affineNativeToPolynomial n a F).flat |
| 56 | |
| 57 | theorem affineNativeHomogeneousIdeal_locallyOfFinitePresentation : |
| 58 | LocallyOfFinitePresentation (Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading (affineNativeHomogeneousIdeal n a F))) := by |
| 59 | have : MorphismProperty.RespectsIso @LocallyOfFinitePresentation.{u} := |
| 60 | MorphismProperty.respectsIso_of_isStableUnderComposition |
| 61 | (fun _ _ f (_ : IsIso f) => inferInstanceAs (LocallyOfFinitePresentation f)) |
| 62 | exact homogeneousIdealOfSheaf_projection_property _ (@LocallyOfFinitePresentation) |
| 63 | (IntrinsicPolynomialFamily.GradedHilbert.affineNativeToPolynomial n a F).locallyFinitePresentation |
| 64 | |
| 65 | theorem affineNativeHomogeneousIdeal_global_kernel : |
| 66 | (Projective.Quotient.GradedHilbert.projectiveQuotientInclusion (affineNativeHomogeneousIdeal n a F) ≫ (ProjectiveAmbient.GradedHilbert.affineProjectiveAmbientIso n a).hom).ker = F.val := by |
| 67 | rw [Global.PolynomialInclusion.closedImmersion_comp_iso_ker, affineNativeHomogeneousIdeal_kernel, |
| 68 | ← Scheme.IdealSheafData.comap_comp, Iso.inv_hom_id, Scheme.IdealSheafData.comap_id] |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Affine.IntrinsicHomogeneousCoordinates.GradedHilbert |