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.HomFunctor |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.ChartHomogeneousIdeal |
| 3 | import Mathlib.CategoryTheory.Subfunctor.Basic |
| 4 | |
| 5 | /-! # Has -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Has.Core |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Native geometric predicates for the statement of Presentations. No parameter scheme, |
| 12 | representability, or base-change theorem is assumed in these definitions. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u v |
| 17 | |
| 18 | open OAI.AlgebraicGeometry.HilbertScheme.Presentations.ChartHomogeneousIdeal.GradedHilbert |
| 19 | |
| 20 | def projectiveSpaceMap (R : Type u) [CommRing R] (d : ℕ) : |
| 21 | Proj (Hilbert.Polynomial.GradedHilbert.grading R d) ⟶ Spec (CommRingCat.of R) := |
| 22 | Proj.toSpecZero (Hilbert.Polynomial.GradedHilbert.grading R d) ≫ |
| 23 | Spec.map (CommRingCat.ofHom (algebraMap R (Hilbert.Polynomial.GradedHilbert.grading R d 0))) |
| 24 | |
| 25 | def projectiveSpace (S : Scheme.{u}) (d : ℕ) : Scheme.{u} := |
| 26 | pullback (projectiveSpaceMap Γ(S, ⊤) d) S.toSpecΓ |
| 27 | |
| 28 | def projectiveSpaceProjection (S : Scheme.{u}) (d : ℕ) : projectiveSpace S d ⟶ S := |
| 29 | pullback.snd _ _ |
| 30 | |
| 31 | /-- A chosen projective embedding, with its ordinary scheme-theoretic meaning. -/ |
| 32 | structure ProjectivePresentation {S : Scheme.{u}} (X : Over S) where |
| 33 | dimension : ℕ |
| 34 | embedding : X.left ⟶ projectiveSpace S dimension |
| 35 | closed : IsClosedImmersion embedding |
| 36 | over_base : embedding ≫ projectiveSpaceProjection S dimension = X.hom |
| 37 | |
| 38 | /-- Geometric projectivity, expressed by existence of a finite projective embedding. -/ |
| 39 | def IsProjectiveOver {S : Scheme.{u}} (X : Over S) : Prop := |
| 40 | Nonempty (ProjectivePresentation X) |
| 41 | |
| 42 | /-- The polynomial of a closed family is tested on every field-valued base |
| 43 | point. The coordinate comparison is an actual cartesian square with polynomial |
| 44 | Proj; the homogeneous ideal is constructed from the actual closed immersion. |
| 45 | Allowing any such comparison does not choose a coordinate trivialization. -/ |
| 46 | def HasFiberHilbertPolynomial {S : Scheme.{u}} {X : Over S} |
| 47 | (B : ProjectivePresentation X) {T : Over S} (I : Hilbert.Functor.Family X T) |
| 48 | (P : Polynomial ℚ) : Prop := |
| 49 | ∀ (K : Type u) [Field K] (a : Spec (CommRingCat.of K) ⟶ T.left), |
| 50 | let t : Over S := Over.mk (a ≫ T.hom) |
| 51 | let b : t ⟶ T := Over.homMk a rfl |
| 52 | let J := Hilbert.Functor.pullbackFamily X b I |
| 53 | ∃ (q : Proj (Hilbert.Polynomial.GradedHilbert.grading K B.dimension) ⟶ projectiveSpace S B.dimension) |
| 54 | (e : J.val.subscheme ⟶ Proj (Hilbert.Polynomial.GradedHilbert.grading K B.dimension)), |
| 55 | IsPullback q (projectiveSpaceMap K B.dimension) |
| 56 | (projectiveSpaceProjection S B.dimension) (a ≫ T.hom) ∧ |
| 57 | IsClosedImmersion e ∧ |
| 58 | e ≫ q = J.val.subschemeι ≫ (prod.snd : t ⨯ X ⟶ X).left ≫ B.embedding ∧ |
| 59 | e ≫ projectiveSpaceMap K B.dimension = Hilbert.Functor.familyProjection X J.val ∧ |
| 60 | Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial (ChartHomogeneousIdeal.GradedHilbert.homogeneousIdealOfSheaf e.ker).toIdeal P |
| 61 | |
| 62 | /-- Finite tuples in a functor, with the actual componentwise pullback maps. -/ |
| 63 | def tupleFunctor {C : Type v} [Category.{u} C] (F : C ⥤ Type u) (n : ℕ) : C ⥤ Type u where |
| 64 | obj T := Fin n → F.obj T |
| 65 | map a := ↾fun f i => F.map a (f i) |
| 66 | map_id T := by ext f i; exact ConcreteCategory.congr_hom (F.map_id T) (f i) |
| 67 | map_comp a b := by ext f i; exact ConcreteCategory.congr_hom (F.map_comp a b) (f i) |
| 68 | |
| 69 | def tupleNatTrans {C : Type v} [Category.{u} C] {F G : C ⥤ Type u} |
| 70 | (f : F ⟶ G) (n : ℕ) : tupleFunctor F n ⟶ tupleFunctor G n where |
| 71 | app T := ↾fun x i => f.app T (x i) |
| 72 | naturality _ _ a := by |
| 73 | apply ConcreteCategory.hom_ext |
| 74 | intro x |
| 75 | funext i |
| 76 | exact ConcreteCategory.congr_hom (f.naturality a) (x i) |
| 77 | |
| 78 | variable {S : Scheme.{u}} (X Y : Over S) (n : ℕ) |
| 79 | |
| 80 | abbrev hilbertTuples := tupleFunctor (Hilbert.Functor.familyFunctor (X ⨯ Y)) n |
| 81 | |
| 82 | abbrev morphismTuples := tupleFunctor (HomFunctor.Hom.morphismFunctor X Y) n |
| 83 | |
| 84 | def HasHilbertPolynomials (B : ProjectivePresentation (X ⨯ Y)) |
| 85 | (P : Fin n → Polynomial ℚ) {T : Over S} |
| 86 | (I : (hilbertTuples X Y n).obj (.op T)) : Prop := |
| 87 | ∀ i, HasFiberHilbertPolynomial B (I i) (P i) |
| 88 | |
| 89 | def HasGraphPolynomials (B : ProjectivePresentation (X ⨯ Y)) |
| 90 | (P : Fin n → Polynomial ℚ) [Flat X.hom] [IsProper X.hom] |
| 91 | [LocallyOfFinitePresentation X.hom] [IsSeparated Y.hom] |
| 92 | {T : Over S} (f : (morphismTuples X Y n).obj (.op T)) : Prop := |
| 93 | ∀ i, HasFiberHilbertPolynomial B (HomFunctor.Hom.graphFamily X Y (f i)) (P i) |
| 94 | |
| 95 | def graphs [Flat X.hom] [IsProper X.hom] [LocallyOfFinitePresentation X.hom] |
| 96 | [IsSeparated Y.hom] : morphismTuples X Y n ⟶ hilbertTuples X Y n := |
| 97 | tupleNatTrans (HomFunctor.Hom.graphs X Y) n |
| 98 | |
| 99 | /-- A Hilbert tuple lies in the graph locus exactly when every first projection |
| 100 | is an isomorphism of schemes, including over nonreduced test schemes. -/ |
| 101 | def IsGraphTuple {T : Over S} (I : (hilbertTuples X Y n).obj (.op T)) : Prop := |
| 102 | ∀ i, IsIso ((I i).val.subschemeι ≫ (HomFunctor.Hom.graphProjection X Y T).left) |
| 103 | |
| 104 | end |
| 105 | |
| 106 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Has.Core |