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.Projective.QuotientStructure |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Relative.Coordinates |
| 3 | |
| 4 | /-! # Projective Ideal Sheaves -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Flat.ProjectiveIdealSheaves.GradedHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Flat projective closed subschemes have eventually finite projective coordinate modules. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {R : Type u} [CommRing R] {n : ℕ} |
| 17 | |
| 18 | def projectiveIdealSheafIso (J : (Proj (Hilbert.Polynomial.GradedHilbert.grading R n)).IdealSheafData) : |
| 19 | Presentations.Projective.Quotient.GradedHilbert.projectiveQuotient (ChartHomogeneousIdeal.GradedHilbert.homogeneousIdealOfSheaf J) ≅ J.subscheme := by |
| 20 | let i := Presentations.Projective.Quotient.GradedHilbert.projectiveQuotientInclusion (ChartHomogeneousIdeal.GradedHilbert.homogeneousIdealOfSheaf J) |
| 21 | have h : J.subschemeι.ker = i.ker := by |
| 22 | rw [Scheme.IdealSheafData.ker_subschemeι] |
| 23 | exact (Presentations.Projective.IdealEquivalence.GradedHilbert.projectiveQuotient_homogeneousIdealOfSheaf J).symm |
| 24 | let : IsIso (IsClosedImmersion.lift J.subschemeι i h.le) := |
| 25 | IsClosedImmersion.isIso_lift J.subschemeι i h |
| 26 | exact asIso (IsClosedImmersion.lift J.subschemeι i h.le) |
| 27 | |
| 28 | theorem projectiveIdealSheafIso_hom_ι (J : (Proj (Hilbert.Polynomial.GradedHilbert.grading R n)).IdealSheafData) : |
| 29 | (projectiveIdealSheafIso J).hom ≫ J.subschemeι = |
| 30 | Presentations.Projective.Quotient.GradedHilbert.projectiveQuotientInclusion (ChartHomogeneousIdeal.GradedHilbert.homogeneousIdealOfSheaf J) := |
| 31 | IsClosedImmersion.lift_fac _ _ _ |
| 32 | |
| 33 | def projectiveIdealSheafStructure (J : (Proj (Hilbert.Polynomial.GradedHilbert.grading R n)).IdealSheafData) : |
| 34 | J.subscheme ⟶ Spec (CommRingCat.of R) := |
| 35 | J.subschemeι ≫ Presentations.Projective.Flatness.GradedHilbert.projectiveStructureMap (Hilbert.Polynomial.GradedHilbert.grading R n) |
| 36 | |
| 37 | theorem projectiveIdealSheafIso_hom_structure (J : (Proj (Hilbert.Polynomial.GradedHilbert.grading R n)).IdealSheafData) : |
| 38 | (projectiveIdealSheafIso J).hom ≫ projectiveIdealSheafStructure J = |
| 39 | Presentations.Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading (ChartHomogeneousIdeal.GradedHilbert.homogeneousIdealOfSheaf J)) := by |
| 40 | rw [projectiveIdealSheafStructure, ← Category.assoc, projectiveIdealSheafIso_hom_ι, |
| 41 | Presentations.Projective.QuotientStructure.GradedHilbert.projectiveQuotientInclusion_structure] |
| 42 | |
| 43 | theorem projectiveIdealSheaf_flat_iff [IsNoetherianRing R] |
| 44 | (J : (Proj (Hilbert.Polynomial.GradedHilbert.grading R n)).IdealSheafData) : |
| 45 | Flat (projectiveIdealSheafStructure J) ↔ |
| 46 | ∃ N : ℕ, ∀ d ≥ N, Module.Flat R (Hilbert.Polynomial.GradedHilbert.DegreeQuotient (ChartHomogeneousIdeal.GradedHilbert.homogeneousIdealOfSheaf J).toIdeal d) := by |
| 47 | constructor |
| 48 | · intro h |
| 49 | let : Flat (projectiveIdealSheafStructure J) := h |
| 50 | have hflat : Flat ((projectiveIdealSheafIso J).hom ≫ projectiveIdealSheafStructure J) := |
| 51 | Flat.comp _ _ |
| 52 | rw [projectiveIdealSheafIso_hom_structure] at hflat |
| 53 | exact (ProjectiveCoordinatePieces.GradedHilbert.projectiveQuotient_flat_iff_eventual_coordinatePieces_flat _).mp hflat |
| 54 | · intro h |
| 55 | let hflat : Flat (Presentations.Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading (ChartHomogeneousIdeal.GradedHilbert.homogeneousIdealOfSheaf J))) := |
| 56 | (ProjectiveCoordinatePieces.GradedHilbert.projectiveQuotient_flat_iff_eventual_coordinatePieces_flat _).mpr h |
| 57 | have he : projectiveIdealSheafStructure J = (projectiveIdealSheafIso J).inv ≫ |
| 58 | Presentations.Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading (ChartHomogeneousIdeal.GradedHilbert.homogeneousIdealOfSheaf J)) := by |
| 59 | rw [← projectiveIdealSheafIso_hom_structure, Iso.inv_hom_id_assoc] |
| 60 | rw [he] |
| 61 | exact Flat.comp (projectiveIdealSheafIso J).inv _ (hg := hflat) |
| 62 | |
| 63 | theorem projectiveIdealSheaf_eventual_projective [IsNoetherianRing R] |
| 64 | (J : (Proj (Hilbert.Polynomial.GradedHilbert.grading R n)).IdealSheafData) [Flat (projectiveIdealSheafStructure J)] : |
| 65 | ∃ N : ℕ, ∀ d ≥ N, |
| 66 | Module.Projective R (Hilbert.Polynomial.GradedHilbert.DegreeQuotient (ChartHomogeneousIdeal.GradedHilbert.homogeneousIdealOfSheaf J).toIdeal d) := by |
| 67 | obtain ⟨N, hN⟩ := (projectiveIdealSheaf_flat_iff J).mp inferInstance |
| 68 | refine ⟨N, fun d hd => ?_⟩ |
| 69 | let : Module.Flat R (Hilbert.Polynomial.GradedHilbert.DegreeQuotient (ChartHomogeneousIdeal.GradedHilbert.homogeneousIdealOfSheaf J).toIdeal d) := hN d hd |
| 70 | exact Relative.Coordinates.GradedHilbert.degreeQuotient_projective_of_flat (ChartHomogeneousIdeal.GradedHilbert.homogeneousIdealOfSheaf J) d |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Flat.ProjectiveIdealSheaves.GradedHilbert |