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.Bounded.HomogeneousFlatLocus |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Affine.DegreeFlatness |
| 3 | |
| 4 | /-! # Affine Projective Flatness -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Bounded.AffineProjectiveFlatness.GradedHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! On every affine test scheme, the represented bounded degree conditions |
| 11 | make the actual specialized projective quotient flat over its coefficient ring. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.MvPolynomial |
| 14 | |
| 15 | universe u |
| 16 | variable {S : Scheme.{u}} (M : Over S) {n : ℕ} {ι : Type u} [Fintype ι] [DecidableEq ι] |
| 17 | variable (g : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing Γ(M.left, ⊤) n) (N : ℕ) (hg : ∀ i, (g i).IsHomogeneous N) |
| 18 | |
| 19 | theorem bounded_degree_locus_affine_quotients_flat (q : ℕ → ℕ) {T : Over S} [IsAffine T.left] |
| 20 | (x : T ⟶ M) (hx : x ∈ (HomogeneousFlatLocus.GradedHilbert.boundedDegreeFlatRankSubfunctor M g N hg q).obj (.op T)) (d : ℕ) : |
| 21 | Module.Flat Γ(T.left, ⊤) (Hilbert.Polynomial.GradedHilbert.DegreeQuotient |
| 22 | (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal (Finite.SyzygyLifting.GradedHilbert.mapRelationVector x.left.appTop.hom g) N |
| 23 | (fun i => (hg i).map _)).toIdeal (d + N)) := by |
| 24 | apply Affine.DegreeFlatness.GradedHilbert.affine_generated_quotient_flat T.left |
| 25 | intro t |
| 26 | have hfree := HomogeneousFlatLocus.GradedHilbert.bounded_degree_locus_all_stalk_quotients_free M g N hg q x hx t d |
| 27 | have hf : Module.Flat (T.left.presheaf.stalk t) (Homogeneous.DegreeLoci.GradedHilbert.degreeQuotientAtStalk M g N hg x t d) := by |
| 28 | let := hfree |
| 29 | infer_instance |
| 30 | have heq : Finite.SyzygyLifting.GradedHilbert.mapRelationVector (T.left.presheaf.Γgerm t).hom (Finite.SyzygyLifting.GradedHilbert.mapRelationVector x.left.appTop.hom g) = |
| 31 | (fun i => MvPolynomial.map ((T.left.presheaf.Γgerm t).hom.comp x.left.appTop.hom) (g i)) := by |
| 32 | funext i |
| 33 | exact MvPolynomial.map_map x.left.appTop.hom (T.left.presheaf.Γgerm t).hom (g i) |
| 34 | change Module.Flat (T.left.presheaf.stalk t) (Hilbert.Polynomial.GradedHilbert.DegreeQuotient |
| 35 | (Ideal.span (Set.range (Finite.SyzygyLifting.GradedHilbert.mapRelationVector (T.left.presheaf.Γgerm t).hom |
| 36 | (Finite.SyzygyLifting.GradedHilbert.mapRelationVector x.left.appTop.hom g)))) (d + N)) |
| 37 | rw [heq] |
| 38 | exact hf |
| 39 | |
| 40 | theorem bounded_degree_locus_affine_projective_flat (q : ℕ → ℕ) {T : Over S} [IsAffine T.left] |
| 41 | (x : T ⟶ M) (hx : x ∈ (HomogeneousFlatLocus.GradedHilbert.boundedDegreeFlatRankSubfunctor M g N hg q).obj (.op T)) : |
| 42 | Flat (Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading |
| 43 | (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal (Finite.SyzygyLifting.GradedHilbert.mapRelationVector x.left.appTop.hom g) N |
| 44 | (fun i => (hg i).map _)))) := |
| 45 | Finite.DegreeFlatness.GradedHilbert.projectiveQuotient_flat_of_finite_degree_test _ N _ |
| 46 | (fun d _ => bounded_degree_locus_affine_quotients_flat M g N hg q x hx d) |
| 47 | |
| 48 | end |
| 49 | |
| 50 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Bounded.AffineProjectiveFlatness.GradedHilbert |