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.Intrinsic.PolynomialCoordinates |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Relative.PolynomialBaseChange |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Intrinsic.PolynomialFamily |
| 4 | |
| 5 | /-! # Polynomial Naturality -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Intrinsic.PolynomialNaturality.GradedHilbert |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The actual polynomial closed subschemes, and the bounded native Hilbert |
| 12 | families they define, commute with arbitrary changes of test scheme. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u |
| 17 | variable {S : Scheme.{u}} (M : Over S) {n : ℕ} |
| 18 | |
| 19 | def nativePolynomialTestMap {T U : Over S} (a : U ⟶ T) (x : T ⟶ M) : |
| 20 | Over.mk (a ≫ x).left ⟶ Over.mk x.left := Over.homMk a.left rfl |
| 21 | |
| 22 | theorem nativePolynomialCoefficientProjection_naturality {T U : Over S} (a : U ⟶ T) (x : T ⟶ M) : |
| 23 | Hilbert.Functor.ambientMap (PolynomialAmbient.GradedHilbert.relativeProjectiveOver M.left n) (nativePolynomialTestMap M a x) ≫ |
| 24 | PolynomialCoordinates.GradedHilbert.nativePolynomialCoefficientProjection M x = PolynomialCoordinates.GradedHilbert.nativePolynomialCoefficientProjection M (a ≫ x) := by |
| 25 | let X := PolynomialAmbient.GradedHilbert.relativeProjectiveOver M.left n |
| 26 | let τ := nativePolynomialTestMap M a x |
| 27 | have h : (prod.map τ (𝟙 X)).left ≫ (prod.snd : Over.mk x.left ⨯ X ⟶ X).left = |
| 28 | (prod.snd : Over.mk (a ≫ x).left ⨯ X ⟶ X).left := by |
| 29 | rw [← Over.comp_left, prod.map_snd, Category.comp_id] |
| 30 | change (prod.map τ (𝟙 X)).left ≫ ((prod.snd : Over.mk x.left ⨯ X ⟶ X).left ≫ pullback.fst _ _) = _ |
| 31 | rw [← Category.assoc, h] |
| 32 | rfl |
| 33 | |
| 34 | variable (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading Γ(M.left, ⊤) n)) |
| 35 | |
| 36 | theorem nativePolynomialInclusion_baseChange {T U : Over S} (a : U ⟶ T) (x : T ⟶ M) : |
| 37 | PolynomialAmbient.GradedHilbert.nativePolynomialInclusion M I (a ≫ x) ≫ |
| 38 | Hilbert.Functor.ambientMap (PolynomialAmbient.GradedHilbert.relativeProjectiveOver M.left n) (nativePolynomialTestMap M a x) = |
| 39 | Relative.PolynomialBaseChange.GradedHilbert.relativePolynomialBaseMap M I a x ≫ PolynomialAmbient.GradedHilbert.nativePolynomialInclusion M I x := by |
| 40 | apply PolynomialCoordinates.GradedHilbert.nativePolynomialAmbient_hom_ext M x |
| 41 | · rw [Category.assoc, ← (Hilbert.Functor.ambient_isPullback (PolynomialAmbient.GradedHilbert.relativeProjectiveOver M.left n) |
| 42 | (nativePolynomialTestMap M a x)).w, ← Category.assoc, PolynomialAmbient.GradedHilbert.nativePolynomialInclusion_projection, |
| 43 | Category.assoc, PolynomialAmbient.GradedHilbert.nativePolynomialInclusion_projection] |
| 44 | exact (Relative.PolynomialBaseChange.GradedHilbert.relativePolynomialBaseMap_projection M I a x).symm |
| 45 | · rw [Category.assoc, nativePolynomialCoefficientProjection_naturality, |
| 46 | PolynomialCoordinates.GradedHilbert.nativePolynomialInclusion_coefficient, Category.assoc, PolynomialCoordinates.GradedHilbert.nativePolynomialInclusion_coefficient] |
| 47 | let j : Proj (Graded.Quotient.GradedHilbert.quotientGrading I) ⟶ Proj (Hilbert.Polynomial.GradedHilbert.grading Γ(M.left, ⊤) n) := Projective.Quotient.GradedHilbert.projectiveQuotientInclusion I |
| 48 | have h := congrArg (fun f => f ≫ j) (Relative.PolynomialBaseChange.GradedHilbert.relativePolynomialBaseMap_fst M I a x) |
| 49 | exact h.symm.trans (Category.assoc _ _ _) |
| 50 | |
| 51 | theorem nativePolynomialInclusion_baseChange_isPullback {T U : Over S} (a : U ⟶ T) (x : T ⟶ M) : |
| 52 | IsPullback (PolynomialAmbient.GradedHilbert.nativePolynomialInclusion M I (a ≫ x)) (Relative.PolynomialBaseChange.GradedHilbert.relativePolynomialBaseMap M I a x) |
| 53 | (Hilbert.Functor.ambientMap (PolynomialAmbient.GradedHilbert.relativeProjectiveOver M.left n) (nativePolynomialTestMap M a x)) |
| 54 | (PolynomialAmbient.GradedHilbert.nativePolynomialInclusion M I x) := by |
| 55 | apply IsPullback.of_right _ (nativePolynomialInclusion_baseChange M I a x) |
| 56 | (Hilbert.Functor.ambient_isPullback (PolynomialAmbient.GradedHilbert.relativeProjectiveOver M.left n) (nativePolynomialTestMap M a x)) |
| 57 | rw [PolynomialAmbient.GradedHilbert.nativePolynomialInclusion_projection, PolynomialAmbient.GradedHilbert.nativePolynomialInclusion_projection] |
| 58 | exact (Relative.PolynomialBaseChange.GradedHilbert.relativePolynomialBaseMap_isPullback M I a x).flip |
| 59 | |
| 60 | theorem nativePolynomialIdeal_baseChange {T U : Over S} (a : U ⟶ T) (x : T ⟶ M) : |
| 61 | (PolynomialAmbient.GradedHilbert.nativePolynomialInclusion M I (a ≫ x)).ker = |
| 62 | (PolynomialAmbient.GradedHilbert.nativePolynomialInclusion M I x).ker.comap |
| 63 | (Hilbert.Functor.ambientMap (PolynomialAmbient.GradedHilbert.relativeProjectiveOver M.left n) (nativePolynomialTestMap M a x)) := by |
| 64 | let H := nativePolynomialInclusion_baseChange_isPullback M I a x |
| 65 | rw [← H.isoPullback_hom_fst, Scheme.Hom.ker_comp_of_isIso, |
| 66 | Scheme.IdealSheafData.ker_fst_of_isClosedImmersion] |
| 67 | |
| 68 | theorem boundedNativePolynomialFamily_baseChange [IsLocallyNoetherian M.left] |
| 69 | {ι : Type u} [Fintype ι] [DecidableEq ι] |
| 70 | (g : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing Γ(M.left, ⊤) n) (N : ℕ) (hg : ∀ i, (g i).IsHomogeneous N) |
| 71 | (q : ℕ → ℕ) {T U : Over S} (a : U ⟶ T) (x : T ⟶ M) |
| 72 | (hx : x ∈ (Bounded.HomogeneousFlatLocus.GradedHilbert.boundedDegreeFlatRankSubfunctor M g N hg q).obj (.op T)) : |
| 73 | PolynomialFamily.GradedHilbert.boundedNativePolynomialFamily M g N hg q (a ≫ x) |
| 74 | ((Bounded.HomogeneousFlatLocus.GradedHilbert.boundedDegreeFlatRankSubfunctor M g N hg q).map a.op hx) = |
| 75 | Hilbert.Functor.pullbackFamily (PolynomialAmbient.GradedHilbert.relativeProjectiveOver M.left n) (nativePolynomialTestMap M a x) |
| 76 | (PolynomialFamily.GradedHilbert.boundedNativePolynomialFamily M g N hg q x hx) := by |
| 77 | apply Subtype.ext |
| 78 | exact nativePolynomialIdeal_baseChange M (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal g N hg) a x |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Intrinsic.PolynomialNaturality.GradedHilbert |