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.Graded.Quotient |
| 2 | import Mathlib.AlgebraicGeometry.ProjectiveSpectrum.Functor |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.ClosedImmersion |
| 4 | |
| 5 | /-! # Quotient -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Projective.Quotient.GradedHilbert |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | The projective spectrum of a homogeneous quotient is a closed subscheme |
| 13 | of projective space. On every projective basic open, its inclusion comes |
| 14 | from a surjective map of homogeneous localizations. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.HomogeneousLocalization |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable {R : Type u} [CommRing R] {n : ℕ} |
| 22 | |
| 23 | def projectiveQuotient (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) : Scheme := |
| 24 | Proj (Graded.Quotient.GradedHilbert.quotientGrading I) |
| 25 | |
| 26 | def projectiveQuotientInclusion (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) : |
| 27 | projectiveQuotient I ⟶ Proj (Hilbert.Polynomial.GradedHilbert.grading R n) := |
| 28 | Proj.map (Graded.Quotient.GradedHilbert.gradedQuotientMap I) (Graded.Quotient.GradedHilbert.irrelevant_quotient_le_map I) |
| 29 | |
| 30 | theorem quotient_away_map_surjective (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) |
| 31 | {d : ℕ} (s : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (hs : s ∈ Hilbert.Polynomial.GradedHilbert.grading R n d) : |
| 32 | Function.Surjective (HomogeneousLocalization.Away.map (Graded.Quotient.GradedHilbert.gradedQuotientMap I) s) := by |
| 33 | intro z |
| 34 | obtain ⟨m, q, hq, rfl⟩ := HomogeneousLocalization.Away.mk_surjective (Graded.Quotient.GradedHilbert.quotientGrading I) |
| 35 | ((Graded.Quotient.GradedHilbert.gradedQuotientMap I).map_mem hs) z |
| 36 | obtain ⟨f, hf, rfl⟩ := hq |
| 37 | refine ⟨HomogeneousLocalization.Away.mk (Hilbert.Polynomial.GradedHilbert.grading R n) hs m f hf, ?_⟩ |
| 38 | rw [HomogeneousLocalization.Away.map_mk] |
| 39 | rfl |
| 40 | |
| 41 | theorem projectiveQuotientInclusion_restrict_closed (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) |
| 42 | {d : ℕ} (hd : 0 < d) (s : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (hs : s ∈ Hilbert.Polynomial.GradedHilbert.grading R n d) : |
| 43 | IsClosedImmersion (projectiveQuotientInclusion I ∣_ Proj.basicOpen (Hilbert.Polynomial.GradedHilbert.grading R n) s) := by |
| 44 | let f := Graded.Quotient.GradedHilbert.gradedQuotientMap I |
| 45 | let src := Proj.basicOpenIsoSpec (Graded.Quotient.GradedHilbert.quotientGrading I) (f s) (f.map_mem hs) hd |
| 46 | let tgt := Proj.basicOpenIsoSpec (Hilbert.Polynomial.GradedHilbert.grading R n) s hs hd |
| 47 | let a := Spec.map (CommRingCat.ofHom (HomogeneousLocalization.Away.map f s)) |
| 48 | have ha : IsClosedImmersion a := IsClosedImmersion.spec_of_surjective _ |
| 49 | (quotient_away_map_surjective I s hs) |
| 50 | have hdiag : src.inv ≫ (projectiveQuotientInclusion I ∣_ Proj.basicOpen (Hilbert.Polynomial.GradedHilbert.grading R n) s) = |
| 51 | a ≫ tgt.inv := by |
| 52 | apply (cancel_mono (Proj.basicOpen (Hilbert.Polynomial.GradedHilbert.grading R n) s).ι).mp |
| 53 | erw [Category.assoc, morphismRestrict_ι] |
| 54 | exact Proj.awayι_comp_map f (Graded.Quotient.GradedHilbert.irrelevant_quotient_le_map I) hd s hs |
| 55 | apply (MorphismProperty.cancel_left_of_respectsIso (P := @IsClosedImmersion) |
| 56 | src.inv (projectiveQuotientInclusion I ∣_ Proj.basicOpen (Hilbert.Polynomial.GradedHilbert.grading R n) s)).mp |
| 57 | rw [hdiag] |
| 58 | exact IsClosedImmersion.comp a tgt.inv |
| 59 | |
| 60 | instance projectiveQuotientInclusion_isClosedImmersion (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) : |
| 61 | IsClosedImmersion (projectiveQuotientInclusion I) := by |
| 62 | let A := Hilbert.Polynomial.GradedHilbert.grading R n |
| 63 | let Index := Σ d : PNat, A d |
| 64 | let U (s : Index) := Proj.basicOpen A s.2.val |
| 65 | have hcover : iSup U = ⊤ := by |
| 66 | apply Proj.iSup_basicOpen_eq_top |
| 67 | apply (HomogeneousIdeal.toIdeal_irrelevant_le A).mpr |
| 68 | intro d hd f hf |
| 69 | exact Ideal.subset_span ⟨(⟨⟨d, hd⟩, ⟨f, hf⟩⟩ : Index), rfl⟩ |
| 70 | apply (IsZariskiLocalAtTarget.iff_of_iSup_eq_top (P := @IsClosedImmersion) U hcover).mpr |
| 71 | intro s |
| 72 | exact projectiveQuotientInclusion_restrict_closed I s.1.property s.2.val s.2.property |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Projective.Quotient.GradedHilbert |