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.RingTheory.MvPolynomial.Basic |
| 2 | import Mathlib.Algebra.MvPolynomial.Monad |
| 3 | |
| 4 | /-! # Polynomial Substitution Degree -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.PolynomialSubstitutionDegree.Construction |
| 7 | |
| 8 | /-! Substituting polynomials of bounded degree changes total degree by at most a fixed factor. -/ |
| 9 | |
| 10 | open _root_.MvPolynomial |
| 11 | |
| 12 | theorem totalDegree_aeval_monomial_le |
| 13 | {K σ τ : Type*} [CommSemiring K] (q : σ → MvPolynomial τ K) |
| 14 | (c : ℕ) (hq : ∀ i, (q i).totalDegree ≤ c) (s : σ →₀ ℕ) (a : K) : |
| 15 | (MvPolynomial.aeval q (MvPolynomial.monomial s a)).totalDegree ≤ |
| 16 | (s.sum fun _ e => e) * c := by |
| 17 | classical |
| 18 | rw [MvPolynomial.aeval_monomial] |
| 19 | apply (MvPolynomial.totalDegree_mul _ _).trans |
| 20 | change (MvPolynomial.C a : MvPolynomial τ K).totalDegree + |
| 21 | (s.prod fun i k => q i ^ k).totalDegree ≤ _ |
| 22 | rw [MvPolynomial.totalDegree_C, zero_add] |
| 23 | apply (MvPolynomial.totalDegree_finsetProd s.support (fun i => q i ^ s i)).trans |
| 24 | calc |
| 25 | ∑ i ∈ s.support, (q i ^ s i).totalDegree ≤ ∑ i ∈ s.support, s i * c := |
| 26 | Finset.sum_le_sum (fun i _ => (MvPolynomial.totalDegree_pow (q i) (s i)).trans |
| 27 | (Nat.mul_le_mul_left (s i) (hq i))) |
| 28 | _ = (s.sum fun _ e => e) * c := by rw [Finsupp.sum, Finset.sum_mul] |
| 29 | |
| 30 | theorem totalDegree_aeval_le |
| 31 | {K σ τ : Type*} [CommSemiring K] (q : σ → MvPolynomial τ K) |
| 32 | (c : ℕ) (hq : ∀ i, (q i).totalDegree ≤ c) (p : MvPolynomial σ K) : |
| 33 | (MvPolynomial.aeval q p).totalDegree ≤ p.totalDegree * c := by |
| 34 | classical |
| 35 | conv_lhs => rw [p.as_sum, map_sum] |
| 36 | apply MvPolynomial.totalDegree_finsetSum_le |
| 37 | intro s hs |
| 38 | exact (totalDegree_aeval_monomial_le q c hq s (p.coeff s)).trans |
| 39 | (Nat.mul_le_mul_right c (MvPolynomial.le_totalDegree hs)) |
| 40 | |
| 41 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.PolynomialSubstitutionDegree.Construction |