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.FormalGeometry.Completion.Projective.Numerics |
| 2 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.Projective.SectionFiniteness |
| 3 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.PolynomialPositivity |
| 4 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.TwistedSectionsDetectZero |
| 5 | |
| 6 | /-! # Hilbert Positivity -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.HilbertPositivity |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The canonical Hilbert polynomial of a nonzero coherent projective module |
| 13 | is nonzero and has positive leading coefficient over every field. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits MonoidalCategory |
| 18 | |
| 19 | namespace Construction |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | attribute [local instance] MvPolynomial.gradedAlgebra SheafCohomology.Projective.Monoidal.Scheme.Modules.monoidalCategory |
| 24 | |
| 25 | variable {K : Type u} [Field K] {r : ℕ} |
| 26 | (M : (Proj (MvPolynomial.homogeneousSubmodule (Fin (r + 1)) K)).Modules) |
| 27 | [M.IsQuasicoherent] [M.IsFiniteType] (j : Fin (r + 1)) |
| 28 | |
| 29 | theorem projectiveHilbertPolynomial_eq_zero_of_isZero (h : IsZero M) : |
| 30 | Projective.Numerics.Construction.projectiveHilbertPolynomial M j = 0 := by |
| 31 | apply EventualPolynomial.Construction.eventualPolynomialValue_eq _ _ 0 |
| 32 | intro n _ |
| 33 | let F := (SheafCohomology.Projective.PositiveTwistEquivalence.MvPolynomial.coordinateHyperplanePoleSheafPowerTensorEquivalence (R := K) j n).functor |
| 34 | let G := SheafCohomology.Projective.AdditiveCoproductSections.baseGlobalSectionsFunctor |
| 35 | (SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := K) (σ := Fin (r + 1))) |
| 36 | have : Subsingleton (G.obj (F.obj M)) := |
| 37 | ModuleCat.subsingleton_of_isZero ((F ⋙ G).map_isZero h) |
| 38 | let : Field Γ(Spec (CommRingCat.of K), ⊤) := Projective.Numerics.Construction.fieldSpec_sections_isField.toField |
| 39 | have hz := Module.finrank_eq_zero_of_subsingleton Γ(Spec (CommRingCat.of K), ⊤) |
| 40 | (G.obj (F.obj M)) |
| 41 | rw [Polynomial.eval_zero] |
| 42 | change (Module.finrank Γ(Spec (CommRingCat.of K), ⊤) (G.obj (F.obj M)) : ℚ) = 0 |
| 43 | exact_mod_cast hz |
| 44 | |
| 45 | theorem projectiveHilbertPolynomial_isZero_of_eq_zero |
| 46 | (h : Projective.Numerics.Construction.projectiveHilbertPolynomial M j = 0) : IsZero M := by |
| 47 | obtain ⟨b, hb⟩ := Projective.Numerics.Construction.projectiveHilbertPolynomial_spec M j |
| 48 | apply SheafCohomology.Projective.TwistedSectionsDetectZero.MvPolynomial.finiteType_isZero_of_eventually_twistedSections_subsingleton M j b |
| 49 | intro n hn |
| 50 | let N := M ⊗ SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := K) j n |
| 51 | have : N.IsQuasicoherent := |
| 52 | SheafCohomology.Projective.PositiveTwistEquivalence.MvPolynomial.moduleTensorCoordinateHyperplanePoleSheafPower_isQuasicoherent M j n |
| 53 | have : N.IsFiniteType := |
| 54 | SheafCohomology.Projective.PositiveTwistEquivalence.MvPolynomial.moduleTensorCoordinateHyperplanePoleSheafPower_isFiniteType M j n |
| 55 | let S := (SheafCohomology.Projective.AdditiveCoproductSections.baseGlobalSectionsFunctor |
| 56 | (SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := K) (σ := Fin (r + 1)))).obj N |
| 57 | have : Module.Finite Γ(Spec (CommRingCat.of K), ⊤) S := Projective.SectionFiniteness.Construction.projectiveGlobalSections_finite N |
| 58 | let : Field Γ(Spec (CommRingCat.of K), ⊤) := Projective.Numerics.Construction.fieldSpec_sections_isField.toField |
| 59 | have hdim : Module.finrank Γ(Spec (CommRingCat.of K), ⊤) S = 0 := by |
| 60 | have hv := hb n hn |
| 61 | rw [h, Polynomial.eval_zero] at hv |
| 62 | change (Module.finrank Γ(Spec (CommRingCat.of K), ⊤) S : ℚ) = 0 at hv |
| 63 | exact_mod_cast hv |
| 64 | exact (Module.finrank_eq_zero_iff_of_free Γ(Spec (CommRingCat.of K), ⊤) S).mp hdim |
| 65 | |
| 66 | theorem projectiveHilbertPolynomial_eq_zero_iff : |
| 67 | Projective.Numerics.Construction.projectiveHilbertPolynomial M j = 0 ↔ IsZero M := |
| 68 | ⟨projectiveHilbertPolynomial_isZero_of_eq_zero M j, |
| 69 | projectiveHilbertPolynomial_eq_zero_of_isZero M j⟩ |
| 70 | |
| 71 | theorem projectiveHilbertPolynomial_ne_zero (h : ¬ IsZero M) : |
| 72 | Projective.Numerics.Construction.projectiveHilbertPolynomial M j ≠ 0 := |
| 73 | fun hz => h (projectiveHilbertPolynomial_isZero_of_eq_zero M j hz) |
| 74 | |
| 75 | theorem projectiveHilbertPolynomial_leadingCoeff_pos (h : ¬ IsZero M) : |
| 76 | 0 < (Projective.Numerics.Construction.projectiveHilbertPolynomial M j).leadingCoeff := by |
| 77 | obtain ⟨b, hb⟩ := Projective.Numerics.Construction.projectiveHilbertPolynomial_spec M j |
| 78 | apply PolynomialPositivity.Construction.polynomial_leadingCoeff_pos_of_eventual_nat_nonneg _ |
| 79 | (projectiveHilbertPolynomial_ne_zero M j h) b |
| 80 | intro n hn |
| 81 | rw [← hb n hn] |
| 82 | exact Nat.cast_nonneg _ |
| 83 | |
| 84 | theorem projectiveHilbertFunction_eventually_pos (h : ¬ IsZero M) : |
| 85 | ∃ b : ℕ, ∀ n : ℕ, b ≤ n → 0 < Projective.Numerics.Construction.projectiveHilbertFunction M j n := by |
| 86 | obtain ⟨b, hb⟩ := Projective.Numerics.Construction.projectiveHilbertPolynomial_spec M j |
| 87 | obtain ⟨c, hc⟩ := PolynomialPositivity.Construction.polynomial_eventually_nat_pos_of_leadingCoeff_pos _ |
| 88 | (projectiveHilbertPolynomial_leadingCoeff_pos M j h) |
| 89 | refine ⟨max b c, fun n hn => ?_⟩ |
| 90 | rw [hb n ((le_max_left _ _).trans hn)] |
| 91 | exact hc n ((le_max_right _ _).trans hn) |
| 92 | |
| 93 | end Construction |
| 94 | |
| 95 | end |
| 96 | |
| 97 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.HilbertPositivity |