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.Polynomial.Basic |
| 2 | |
| 3 | /-! # Filtration -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.Coefficient.Filtration.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Coefficient order along a center in a polynomial coefficient ring. -/ |
| 10 | |
| 11 | open _root_.Polynomial |
| 12 | |
| 13 | variable {R : Type*} [CommSemiring R] |
| 14 | |
| 15 | /-- Multiplication adds the control exponents in the coefficient inequalities. -/ |
| 16 | theorem coeff_mul_mem_idealPower (I : Ideal R) (m n : ℕ) (p q : R[X]) |
| 17 | (hp : ∀ j, p.coeff j ∈ I ^ (m - j)) (hq : ∀ j, q.coeff j ∈ I ^ (n - j)) |
| 18 | (k : ℕ) : (p * q).coeff k ∈ I ^ (m + n - k) := by |
| 19 | classical |
| 20 | rw [coeff_mul] |
| 21 | apply sum_mem |
| 22 | rintro ⟨i, j⟩ hij |
| 23 | have hij' := Finset.mem_antidiagonal.mp hij |
| 24 | apply Ideal.pow_le_pow_right (show m + n - k ≤ (m - i) + (n - j) by omega) |
| 25 | rw [pow_add] |
| 26 | exact Ideal.mul_mem_mul (hp i) (hq j) |
| 27 | |
| 28 | /-- The coefficient inequalities define an actual polynomial ideal. -/ |
| 29 | def coefficientFiltration (I : Ideal R) (b : ℕ) : Ideal R[X] where |
| 30 | carrier := {p | ∀ j, p.coeff j ∈ I ^ (b - j)} |
| 31 | zero_mem' := by simp |
| 32 | add_mem' := by |
| 33 | intro p q hp hq j |
| 34 | simpa only [coeff_add] using Ideal.add_mem _ (hp j) (hq j) |
| 35 | smul_mem' := by |
| 36 | intro p q hq j |
| 37 | change (p * q).coeff j ∈ I ^ (b - j) |
| 38 | have hp : ∀ k, p.coeff k ∈ I ^ (0 - k) := by simp |
| 39 | simpa only [zero_add] using coeff_mul_mem_idealPower I 0 b p q hp hq j |
| 40 | |
| 41 | theorem coefficientFiltration_zero (I : Ideal R) : coefficientFiltration I 0 = ⊤ := by |
| 42 | ext p |
| 43 | simp [coefficientFiltration] |
| 44 | |
| 45 | theorem coefficientFiltration_mul (I : Ideal R) (m n : ℕ) : |
| 46 | coefficientFiltration I m * coefficientFiltration I n ≤ coefficientFiltration I (m + n) := by |
| 47 | apply Ideal.mul_le.mpr |
| 48 | intro p hp q hq k |
| 49 | exact coeff_mul_mem_idealPower I m n p q hp hq k |
| 50 | |
| 51 | /-- The center obtained by adjoining the distinguished variable to `I`. -/ |
| 52 | def polynomialCenterIdeal (I : Ideal R) : Ideal R[X] := |
| 53 | I.map C ⊔ Ideal.span {X} |
| 54 | |
| 55 | theorem polynomialCenterIdeal_le_coefficientFiltration (I : Ideal R) : |
| 56 | polynomialCenterIdeal I ≤ coefficientFiltration I 1 := by |
| 57 | apply sup_le |
| 58 | · rw [Ideal.map_le_iff_le_comap] |
| 59 | intro r hr j |
| 60 | by_cases hj : j = 0 |
| 61 | · subst j |
| 62 | simpa using hr |
| 63 | · simp [coeff_C, hj] |
| 64 | · rw [Ideal.span_singleton_le_iff_mem] |
| 65 | intro j |
| 66 | by_cases hj : j = 1 |
| 67 | · subst j |
| 68 | simp |
| 69 | · simp [coeff_X, Ne.symm hj] |
| 70 | |
| 71 | theorem polynomialCenterIdeal_pow_le_coefficientFiltration (I : Ideal R) (b : ℕ) : |
| 72 | polynomialCenterIdeal I ^ b ≤ coefficientFiltration I b := by |
| 73 | induction b with |
| 74 | | zero => rw [pow_zero, coefficientFiltration_zero, Ideal.one_eq_top] |
| 75 | | succ b ih => |
| 76 | rw [pow_succ] |
| 77 | exact (mul_le_mul' ih (polynomialCenterIdeal_le_coefficientFiltration I)).trans |
| 78 | (coefficientFiltration_mul I b 1) |
| 79 | |
| 80 | /-- Each coefficient term satisfying its expected order belongs to the |
| 81 | corresponding power of the center. -/ |
| 82 | theorem coefficient_term_mem_centerPower (I : Ideal R) (b j : ℕ) (r : R) |
| 83 | (hr : r ∈ I ^ (b - j)) : C r * X ^ j ∈ polynomialCenterIdeal I ^ b := by |
| 84 | have hc : C r ∈ polynomialCenterIdeal I ^ (b - j) := by |
| 85 | apply pow_le_pow_left' (show I.map C ≤ polynomialCenterIdeal I from le_sup_left) |
| 86 | rw [← Ideal.map_pow] |
| 87 | exact Ideal.mem_map_of_mem C hr |
| 88 | have hx : X ^ j ∈ polynomialCenterIdeal I ^ j := |
| 89 | Ideal.pow_mem_pow |
| 90 | ((show Ideal.span {X} ≤ polynomialCenterIdeal I from le_sup_right) |
| 91 | (Ideal.subset_span (Set.mem_singleton X))) j |
| 92 | apply Ideal.pow_le_pow_right (show b ≤ (b - j) + j by omega) |
| 93 | rw [pow_add] |
| 94 | exact Ideal.mul_mem_mul hc hx |
| 95 | |
| 96 | /-- Polynomial order along the center `(I,z)` is completely determined by |
| 97 | the orders of the coefficients along `I`. -/ |
| 98 | theorem polynomialCenterIdeal_pow_eq_coefficientFiltration (I : Ideal R) (b : ℕ) : |
| 99 | polynomialCenterIdeal I ^ b = coefficientFiltration I b := by |
| 100 | apply le_antisymm (polynomialCenterIdeal_pow_le_coefficientFiltration I b) |
| 101 | intro p hp |
| 102 | rw [← p.sum_monomial_eq] |
| 103 | apply sum_mem |
| 104 | intro j _ |
| 105 | change monomial j (p.coeff j) ∈ polynomialCenterIdeal I ^ b |
| 106 | rw [← C_mul_X_pow_eq_monomial] |
| 107 | exact coefficient_term_mem_centerPower I b j (p.coeff j) (hp j) |
| 108 | |
| 109 | theorem polynomial_mem_centerPower_iff (I : Ideal R) (b : ℕ) (p : R[X]) : |
| 110 | p ∈ polynomialCenterIdeal I ^ b ↔ ∀ j, p.coeff j ∈ I ^ (b - j) := by |
| 111 | rw [polynomialCenterIdeal_pow_eq_coefficientFiltration] |
| 112 | rfl |
| 113 | |
| 114 | end |
| 115 | |
| 116 | end OAI.AlgebraicGeometry.Resolution.Blowups.Coefficient.Filtration.Construction |