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.Homogeneous.Polynomials |
| 2 | |
| 3 | /-! # Weighted Polynomials -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.WeightedPolynomials.GradedHilbert |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Critical-pair homogeneity and degree control for arbitrary natural-number weights. -/ |
| 10 | |
| 11 | open _root_.MvPolynomial |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | variable {K : Type u} [Field K] {n : ℕ} |
| 16 | variable (w : Fin (n + 1) → ℕ) (m : MonomialOrder (Fin (n + 1))) |
| 17 | |
| 18 | theorem naturalWeight_mono {a c : Fin (n + 1) →₀ ℕ} (hac : a ≤ c) : |
| 19 | Finsupp.weight w a ≤ Finsupp.weight w c := by |
| 20 | obtain ⟨b, rfl⟩ := le_iff_exists_add.mp hac |
| 21 | rw [map_add] |
| 22 | exact Nat.le_add_right _ _ |
| 23 | |
| 24 | theorem weighted_leadingDegree {f : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n} {d : ℕ} |
| 25 | (hf : f.IsWeightedHomogeneous w d) (hf0 : f ≠ 0) : Finsupp.weight w (m.degree f) = d := |
| 26 | hf (m.coeff_degree_ne_zero_iff.mpr hf0) |
| 27 | |
| 28 | theorem sPolynomial_weighted_homogeneous {f g : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n} {d e : ℕ} |
| 29 | (hf : f.IsWeightedHomogeneous w d) (hg : g.IsWeightedHomogeneous w e) (hf0 : f ≠ 0) (hg0 : g ≠ 0) : |
| 30 | (m.sPolynomial f g).IsWeightedHomogeneous w (Finsupp.weight w (m.degree f ⊔ m.degree g)) := by |
| 31 | have hdf := weighted_leadingDegree w m hf hf0 |
| 32 | have hdg := weighted_leadingDegree w m hg hg0 |
| 33 | have hleft : Finsupp.weight w (m.degree f ⊔ m.degree g - m.degree f) + d = |
| 34 | Finsupp.weight w (m.degree f ⊔ m.degree g) := by |
| 35 | rw [← hdf, ← map_add, tsub_add_cancel_of_le le_sup_left] |
| 36 | have hright : Finsupp.weight w (m.degree f ⊔ m.degree g - m.degree g) + e = |
| 37 | Finsupp.weight w (m.degree f ⊔ m.degree g) := by |
| 38 | rw [← hdg, ← map_add, tsub_add_cancel_of_le le_sup_right] |
| 39 | rw [MonomialOrder.sPolynomial_def] |
| 40 | apply IsWeightedHomogeneous.sub |
| 41 | · have h := (isWeightedHomogeneous_monomial w (m.degree f ⊔ m.degree g - m.degree f) (m.leadingCoeff g) |
| 42 | (rfl : Finsupp.weight w (m.degree f ⊔ m.degree g - m.degree f) = _)).mul hf |
| 43 | simpa only [hleft] using h |
| 44 | · have h := (isWeightedHomogeneous_monomial w (m.degree f ⊔ m.degree g - m.degree g) (m.leadingCoeff f) |
| 45 | (rfl : Finsupp.weight w (m.degree f ⊔ m.degree g - m.degree g) = _)).mul hg |
| 46 | simpa only [hright] using h |
| 47 | |
| 48 | theorem sPolynomial_weighted_degree_bound {f g : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n} {d e : ℕ} |
| 49 | (hf : f.IsWeightedHomogeneous w d) (hg : g.IsWeightedHomogeneous w e) (hf0 : f ≠ 0) (hg0 : g ≠ 0) : |
| 50 | Finsupp.weight w (m.degree f ⊔ m.degree g) ≤ d + e := by |
| 51 | rw [← weighted_leadingDegree w m hf hf0, ← weighted_leadingDegree w m hg hg0, ← map_add] |
| 52 | exact naturalWeight_mono w (sup_le (le_add_right le_rfl) (le_add_left le_rfl)) |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.WeightedPolynomials.GradedHilbert |