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.PicardNumericalDegree |
| 2 | |
| 3 | /-! # Numerical Degree Properties -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.NumericalDegreeProperties |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The actual numerical degree is nonnegative on generated line bundles |
| 10 | and becomes integral after one fixed factorial normalization. -/ |
| 11 | |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | |
| 14 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.Polynomial |
| 15 | |
| 16 | namespace Construction |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 21 | |
| 22 | variable {K : Type u} [Field K] {r : ℕ} {X : Scheme.{u}} |
| 23 | (f : X ⟶ Proj (MvPolynomial.homogeneousSubmodule (Fin (r + 1)) K)) [IsClosedImmersion f] |
| 24 | |
| 25 | theorem closedProjectiveHilbertPolynomial_eventually_integer |
| 26 | (M : X.Modules) [M.IsQuasicoherent] [M.IsFiniteType] (j : Fin (r + 1)) : |
| 27 | ∃ b : ℕ, ∀ n : ℕ, b ≤ n → ∃ z : ℤ, (ClosedHilbertNumerics.Construction.closedProjectiveHilbertPolynomial f M j).eval (n : ℚ) = z := by |
| 28 | obtain ⟨b, hb⟩ := Projective.Numerics.Construction.projectiveHilbertPolynomial_spec (ClosedHilbertNumerics.Construction.coherentClosedDirectImage f M) j |
| 29 | refine ⟨b, fun n hn => ?_⟩ |
| 30 | change (∃ z : ℤ, (Projective.Numerics.Construction.projectiveHilbertPolynomial (ClosedHilbertNumerics.Construction.coherentClosedDirectImage f M) j).eval (n : ℚ) = z) |
| 31 | rw [← hb n hn] |
| 32 | unfold Projective.Numerics.Construction.projectiveHilbertFunction |
| 33 | exact ⟨_, (Int.cast_natCast _).symm⟩ |
| 34 | |
| 35 | theorem lineBundleHilbertPolynomial_eventually_integer (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X) (j : Fin (r + 1)) : |
| 36 | ∃ b : ℕ, ∀ n : ℕ, b ≤ n → ∃ z : ℤ, (EffectiveHilbertDifference.Construction.lineBundleHilbertPolynomial f L j).eval (n : ℚ) = z := by |
| 37 | have : L.sheaf.IsQuasicoherent := Quotients.FiniteDescent.LineBundleFree.Construction.LineBundleCoherence.quasicoherent L |
| 38 | have : L.sheaf.IsFinitePresentation := Quotients.FiniteDescent.LineBundleFree.Construction.LineBundleCoherence.finitePresentation L |
| 39 | exact closedProjectiveHilbertPolynomial_eventually_integer f L.sheaf j |
| 40 | |
| 41 | theorem lineBundleHilbertDifference_eventually_integer (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X) (j : Fin (r + 1)) : |
| 42 | ∃ b : ℕ, ∀ n : ℕ, b ≤ n → ∃ z : ℤ, (EffectiveHilbertDifference.Construction.lineBundleHilbertDifference f L j).eval (n : ℚ) = z := by |
| 43 | obtain ⟨b, hb⟩ := lineBundleHilbertPolynomial_eventually_integer f L j |
| 44 | obtain ⟨c, hc⟩ := lineBundleHilbertPolynomial_eventually_integer f (AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.trivial X) j |
| 45 | refine ⟨max b c, fun n hn => ?_⟩ |
| 46 | obtain ⟨a, ha⟩ := hb n ((le_max_left _ _).trans hn) |
| 47 | obtain ⟨d, hd⟩ := hc n ((le_max_right _ _).trans hn) |
| 48 | exact ⟨a - d, by rw [EffectiveHilbertDifference.Construction.lineBundleHilbertDifference, eval_sub, ha, hd, Int.cast_sub]⟩ |
| 49 | |
| 50 | variable [IsIntegral X] |
| 51 | |
| 52 | theorem lineBundleHilbertCoefficient_nonneg_of_generated |
| 53 | (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X) (hL : Frame.SectionDetection.Construction.HasFrameSections L.sheaf) (j : Fin (r + 1)) (d : ℕ) |
| 54 | (hd : (EffectiveHilbertDifference.Construction.lineBundleHilbertDifference f L j).natDegree ≤ d) : |
| 55 | 0 ≤ LineBundleHilbertCoefficients.Construction.lineBundleHilbertCoefficient f L j d := by |
| 56 | by_cases ht : Nonempty (L.sheaf ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X) |
| 57 | · obtain ⟨e⟩ := ht |
| 58 | change 0 ≤ (EffectiveHilbertDifference.Construction.lineBundleHilbertDifference f L j).coeff d |
| 59 | rw [EffectiveHilbertDifference.Construction.lineBundleHilbertDifference_eq_zero_of_trivial f L j e, coeff_zero] |
| 60 | · change 0 ≤ (EffectiveHilbertDifference.Construction.lineBundleHilbertDifference f L j).coeff d |
| 61 | rcases lt_or_eq_of_le hd with hd | hd |
| 62 | · rw [coeff_eq_zero_of_natDegree_lt hd] |
| 63 | · rw [← hd, coeff_natDegree] |
| 64 | exact (EffectiveHilbertDifference.Construction.lineBundleHilbertDifference_leadingCoeff_pos f L j hL ht).le |
| 65 | |
| 66 | theorem lineBundleNumericalDegree_nonneg_of_generated |
| 67 | (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X) (hL : Frame.SectionDetection.Construction.HasFrameSections L.sheaf) (j : Fin (r + 1)) : |
| 68 | 0 ≤ PicardNumericalDegree.Construction.lineBundleNumericalDegree f L j := |
| 69 | lineBundleHilbertCoefficient_nonneg_of_generated f L hL j _ |
| 70 | (PicardNumericalDegree.Construction.lineBundleHilbertDifference_natDegree_le f L j) |
| 71 | |
| 72 | theorem lineBundleNumericalDegree_factorial_integral (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X) (j : Fin (r + 1)) : |
| 73 | ∃ z : ℤ, |
| 74 | (((EffectiveHilbertDifference.Construction.lineBundleHilbertPolynomial f (AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.trivial X) j).natDegree - 1).factorial : ℚ) * |
| 75 | PicardNumericalDegree.Construction.lineBundleNumericalDegree f L j = z := by |
| 76 | obtain ⟨b, hb⟩ := lineBundleHilbertDifference_eventually_integer f L j |
| 77 | exact PolynomialDifference.Construction.polynomial_factorial_coeff_integral_of_eventual_integer_values _ _ |
| 78 | (PicardNumericalDegree.Construction.lineBundleHilbertDifference_natDegree_le f L j) b hb |
| 79 | |
| 80 | end Construction |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.NumericalDegreeProperties |