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.LineBundleHilbertCoefficients |
| 2 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.PicardPowersAdd |
| 3 | |
| 4 | /-! # Line Bundle Power Hilbert -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.LineBundlePowerHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Positive tensor powers preserve the degree of a generated line bundle's |
| 11 | Hilbert difference and multiply its leading coefficient by the exponent. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.Polynomial |
| 16 | |
| 17 | namespace Construction |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 22 | |
| 23 | variable {K : Type u} [Field K] [Infinite K] {r : ℕ} {X : Scheme.{u}} [IsIntegral X] |
| 24 | (f : X ⟶ Proj (MvPolynomial.homogeneousSubmodule (Fin (r + 1)) K)) [IsClosedImmersion f] |
| 25 | |
| 26 | theorem lineBundleHilbertCoefficient_tensorPower (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X) |
| 27 | (hL : Frame.SectionDetection.Construction.HasFrameSections L.sheaf) (j : Fin (r + 1)) (d : ℕ) |
| 28 | (hd : (EffectiveHilbertDifference.Construction.lineBundleHilbertDifference f L j).natDegree ≤ d) (n : ℕ) : |
| 29 | LineBundleHilbertCoefficients.Construction.lineBundleHilbertCoefficient f (L.tensorPower n) j d = |
| 30 | (n : ℚ) * LineBundleHilbertCoefficients.Construction.lineBundleHilbertCoefficient f L j d := by |
| 31 | induction n with |
| 32 | | zero => |
| 33 | obtain ⟨e⟩ := Quotient.exact (Quotients.FiniteDescent.PicardPowersAdd.Construction.PicardPowers.class_zero L) |
| 34 | have hz := EffectiveHilbertDifference.Construction.lineBundleHilbertDifference_eq_zero_of_trivial f (L.tensorPower 0) j e |
| 35 | unfold LineBundleHilbertCoefficients.Construction.lineBundleHilbertCoefficient |
| 36 | rw [hz, coeff_zero, Nat.cast_zero, zero_mul] |
| 37 | | succ n ih => |
| 38 | have hc : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf (L.tensorPower (n + 1)) = |
| 39 | AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf (L.tensor (L.tensorPower n)) := by |
| 40 | change AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf (L.tensorPower (n + 1)) = |
| 41 | AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf L * AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf (L.tensorPower n) |
| 42 | rw [Quotients.FiniteDescent.PicardPowersAdd.Construction.PicardPowers.class_pow, Quotients.FiniteDescent.PicardPowersAdd.Construction.PicardPowers.class_pow, pow_succ'] |
| 43 | obtain ⟨e⟩ := Quotient.exact hc |
| 44 | rw [LineBundleHilbertCoefficients.Construction.lineBundleHilbertCoefficient_iso f _ _ e j d, |
| 45 | LineBundleHilbertCoefficients.Construction.lineBundleHilbertCoefficient_tensor_generated_left f L (L.tensorPower n) hL j d hd, ih] |
| 46 | push_cast |
| 47 | ring |
| 48 | |
| 49 | theorem lineBundleHilbertDifference_tensorPower_natDegree_le (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X) |
| 50 | (hL : Frame.SectionDetection.Construction.HasFrameSections L.sheaf) (j : Fin (r + 1)) (n : ℕ) : |
| 51 | (EffectiveHilbertDifference.Construction.lineBundleHilbertDifference f (L.tensorPower n) j).natDegree ≤ |
| 52 | (EffectiveHilbertDifference.Construction.lineBundleHilbertDifference f L j).natDegree := by |
| 53 | apply natDegree_le_iff_coeff_eq_zero.mpr |
| 54 | intro i hi |
| 55 | change LineBundleHilbertCoefficients.Construction.lineBundleHilbertCoefficient f (L.tensorPower n) j i = 0 |
| 56 | rw [lineBundleHilbertCoefficient_tensorPower f L hL j i hi.le] |
| 57 | unfold LineBundleHilbertCoefficients.Construction.lineBundleHilbertCoefficient |
| 58 | rw [coeff_eq_zero_of_natDegree_lt hi, mul_zero] |
| 59 | |
| 60 | theorem lineBundleHilbertDifference_tensorPower_leading (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X) |
| 61 | (hL : Frame.SectionDetection.Construction.HasFrameSections L.sheaf) (j : Fin (r + 1)) (n : ℕ) (hn : 0 < n) : |
| 62 | (EffectiveHilbertDifference.Construction.lineBundleHilbertDifference f (L.tensorPower n) j).natDegree = |
| 63 | (EffectiveHilbertDifference.Construction.lineBundleHilbertDifference f L j).natDegree ∧ |
| 64 | (EffectiveHilbertDifference.Construction.lineBundleHilbertDifference f (L.tensorPower n) j).leadingCoeff = |
| 65 | (n : ℚ) * (EffectiveHilbertDifference.Construction.lineBundleHilbertDifference f L j).leadingCoeff := by |
| 66 | let P := EffectiveHilbertDifference.Construction.lineBundleHilbertDifference f L j |
| 67 | let Q := EffectiveHilbertDifference.Construction.lineBundleHilbertDifference f (L.tensorPower n) j |
| 68 | have hd : Q.natDegree ≤ P.natDegree := lineBundleHilbertDifference_tensorPower_natDegree_le f L hL j n |
| 69 | have hc : Q.coeff P.natDegree = (n : ℚ) * P.leadingCoeff := by |
| 70 | simpa only [LineBundleHilbertCoefficients.Construction.lineBundleHilbertCoefficient, P, Q, coeff_natDegree] using |
| 71 | lineBundleHilbertCoefficient_tensorPower f L hL j P.natDegree le_rfl n |
| 72 | by_cases hP : P = 0 |
| 73 | · have hQ : Q = 0 := by |
| 74 | apply Polynomial.ext |
| 75 | intro i |
| 76 | change LineBundleHilbertCoefficients.Construction.lineBundleHilbertCoefficient f (L.tensorPower n) j i = (0 : Polynomial ℚ).coeff i |
| 77 | rw [lineBundleHilbertCoefficient_tensorPower f L hL j i (by change P.natDegree ≤ i; simp [hP])] |
| 78 | change (n : ℚ) * P.coeff i = _ |
| 79 | simp [hP] |
| 80 | change Q.natDegree = P.natDegree ∧ Q.leadingCoeff = (n : ℚ) * P.leadingCoeff |
| 81 | simp [hP, hQ] |
| 82 | · have hnq : (n : ℚ) ≠ 0 := by exact_mod_cast hn.ne' |
| 83 | have hcne : Q.coeff P.natDegree ≠ 0 := by |
| 84 | rw [hc] |
| 85 | exact mul_ne_zero hnq (leadingCoeff_ne_zero.mpr hP) |
| 86 | have he : Q.natDegree = P.natDegree := le_antisymm hd (le_natDegree_of_ne_zero hcne) |
| 87 | refine ⟨he, ?_⟩ |
| 88 | change Q.leadingCoeff = (n : ℚ) * P.leadingCoeff |
| 89 | rw [← coeff_natDegree, he, hc] |
| 90 | |
| 91 | end Construction |
| 92 | |
| 93 | end |
| 94 | |
| 95 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.LineBundlePowerHilbert |