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