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.Coordinate.DegreeValuation |
| 2 | import Mathlib.RingTheory.Localization.FractionRing |
| 3 | |
| 4 | /-! # Function Field Valuation -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Coordinate.FunctionFieldValuation |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Coordinate-degree valuations extend to the polynomial function |
| 11 | field and evaluate coordinate ratios by the difference of their exponents. -/ |
| 12 | |
| 13 | open _root_.MvPolynomial |
| 14 | open scoped nonZeroDivisors |
| 15 | |
| 16 | universe u v |
| 17 | variable {K : Type u} [Field K] {σ : Type v} |
| 18 | |
| 19 | theorem coordinateDegreeValuation_ne_zero_iff (i : σ) (f : MvPolynomial σ K) : |
| 20 | DegreeValuation.coordinateDegreeValuation i f ≠ 0 ↔ f ≠ 0 := by |
| 21 | classical |
| 22 | by_cases h : f = 0 |
| 23 | · subst f |
| 24 | simp |
| 25 | · change DegreeValuation.coordinateDegreeValue i f ≠ 0 ↔ _ |
| 26 | rw [DegreeValuation.coordinateDegreeValue_of_ne_zero i h] |
| 27 | exact iff_of_true (WithZero.coe_ne_zero) h |
| 28 | |
| 29 | def coordinateFunctionFieldValuation (i : σ) : |
| 30 | Valuation (FractionRing (MvPolynomial σ K)) (WithZero (Multiplicative ℤ)) := |
| 31 | (DegreeValuation.coordinateDegreeValuation i).extendToLocalization (S := (MvPolynomial σ K)⁰) |
| 32 | (by |
| 33 | intro f hf |
| 34 | change DegreeValuation.coordinateDegreeValuation i f ≠ 0 |
| 35 | exact (coordinateDegreeValuation_ne_zero_iff i f).mpr (nonZeroDivisors.ne_zero hf)) |
| 36 | (FractionRing (MvPolynomial σ K)) |
| 37 | |
| 38 | theorem coordinateFunctionFieldValuation_polynomial (i : σ) (f : MvPolynomial σ K) : |
| 39 | coordinateFunctionFieldValuation i (algebraMap (MvPolynomial σ K) (FractionRing (MvPolynomial σ K)) f) = |
| 40 | DegreeValuation.coordinateDegreeValuation i f := |
| 41 | Valuation.extendToLocalization_apply_map_apply _ _ _ f |
| 42 | |
| 43 | theorem coordinateFunctionFieldValuation_constant (i : σ) (c : K) (hc : c ≠ 0) : |
| 44 | coordinateFunctionFieldValuation i |
| 45 | (algebraMap (MvPolynomial σ K) (FractionRing (MvPolynomial σ K)) (C c)) = 1 := by |
| 46 | rw [coordinateFunctionFieldValuation_polynomial] |
| 47 | change DegreeValuation.coordinateDegreeValue i (C c) = 1 |
| 48 | rw [DegreeValuation.coordinateDegreeValue_of_ne_zero i (C_ne_zero.mpr hc), degreeOf_C] |
| 49 | rfl |
| 50 | |
| 51 | theorem coordinateFunctionFieldValuation_variable (i j : σ) [DecidableEq σ] : |
| 52 | coordinateFunctionFieldValuation (K := K) i |
| 53 | (algebraMap (MvPolynomial σ K) (FractionRing (MvPolynomial σ K)) (X j)) = |
| 54 | (↑(Multiplicative.ofAdd (if i = j then (1 : ℤ) else 0) : Multiplicative ℤ) : WithZero (Multiplicative ℤ)) := by |
| 55 | rw [coordinateFunctionFieldValuation_polynomial] |
| 56 | change DegreeValuation.coordinateDegreeValue i (X j) = _ |
| 57 | rw [DegreeValuation.coordinateDegreeValue_of_ne_zero i (X_ne_zero j), degreeOf_X] |
| 58 | split_ifs <;> rfl |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Coordinate.FunctionFieldValuation |