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 Mathlib.Algebra.MvPolynomial.NoZeroDivisors |
| 2 | import Mathlib.RingTheory.Valuation.ExtendToLocalization |
| 3 | import Mathlib.Algebra.Order.GroupWithZero.WithZero |
| 4 | |
| 5 | /-! # Degree Valuation -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Coordinate.DegreeValuation |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Degree in one polynomial coordinate defines a valuation. Its |
| 12 | extension to the function field detects exponents of coordinate ratios. -/ |
| 13 | |
| 14 | open _root_.MvPolynomial |
| 15 | |
| 16 | universe u v |
| 17 | variable {K : Type u} [Field K] {σ : Type v} |
| 18 | |
| 19 | def coordinateDegreeValue (i : σ) (f : MvPolynomial σ K) : WithZero (Multiplicative ℤ) := by |
| 20 | classical |
| 21 | exact if f = 0 then 0 else ↑(Multiplicative.ofAdd (f.degreeOf i : ℤ) : Multiplicative ℤ) |
| 22 | |
| 23 | theorem coordinateDegreeValue_of_ne_zero (i : σ) {f : MvPolynomial σ K} (hf : f ≠ 0) : |
| 24 | coordinateDegreeValue i f = (↑(Multiplicative.ofAdd (f.degreeOf i : ℤ) : Multiplicative ℤ) : |
| 25 | WithZero (Multiplicative ℤ)) := by |
| 26 | classical |
| 27 | exact ite_eq_right hf |
| 28 | |
| 29 | def coordinateDegreeValuation (i : σ) : Valuation (MvPolynomial σ K) (WithZero (Multiplicative ℤ)) where |
| 30 | toFun := coordinateDegreeValue i |
| 31 | map_zero' := by simp [coordinateDegreeValue] |
| 32 | map_one' := by simp [coordinateDegreeValue] |
| 33 | map_mul' f g := by |
| 34 | by_cases hf : f = 0 |
| 35 | · subst f |
| 36 | simp [coordinateDegreeValue] |
| 37 | by_cases hg : g = 0 |
| 38 | · subst g |
| 39 | simp [coordinateDegreeValue] |
| 40 | rw [coordinateDegreeValue_of_ne_zero i (mul_ne_zero hf hg), |
| 41 | coordinateDegreeValue_of_ne_zero i hf, coordinateDegreeValue_of_ne_zero i hg, |
| 42 | degreeOf_mul_eq hf hg, Nat.cast_add] |
| 43 | rfl |
| 44 | map_add_le_max' f g := by |
| 45 | by_cases hf : f = 0 |
| 46 | · subst f |
| 47 | rw [zero_add] |
| 48 | exact le_max_right _ _ |
| 49 | by_cases hg : g = 0 |
| 50 | · subst g |
| 51 | rw [add_zero] |
| 52 | exact le_max_left _ _ |
| 53 | by_cases hfg : f + g = 0 |
| 54 | · rw [hfg] |
| 55 | simp [coordinateDegreeValue] |
| 56 | rw [coordinateDegreeValue_of_ne_zero i hfg, coordinateDegreeValue_of_ne_zero i hf, |
| 57 | coordinateDegreeValue_of_ne_zero i hg] |
| 58 | apply WithZero.coe_le_coe.mpr |
| 59 | change ((f + g).degreeOf i : ℤ) ≤ max (f.degreeOf i : ℤ) (g.degreeOf i : ℤ) |
| 60 | exact_mod_cast degreeOf_add_le i f g |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Coordinate.DegreeValuation |