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.Polynomial.Div |
| 2 | import Mathlib.Algebra.Polynomial.Eval.Coeff |
| 3 | import Mathlib.RingTheory.Ideal.Quotient.Operations |
| 4 | import Mathlib.RingTheory.Ideal.Span |
| 5 | |
| 6 | /-! # Split Polynomial Powers -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Comparison.Betti.SplitPolynomialPowers.AnalyticLocal |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | section |
| 13 | |
| 14 | /-! A split coefficient inclusion and a regular coordinate identify |
| 15 | divisibility by coordinate powers on polynomials exactly. -/ |
| 16 | |
| 17 | open _root_.Polynomial |
| 18 | |
| 19 | variable {A B : Type*} [CommRing A] [CommRing B] [IsDomain B] |
| 20 | |
| 21 | omit [IsDomain B] in |
| 22 | theorem retract_polynomial_eval (s : A →+* B) (r : B →+* A) (hrs : r.comp s = RingHom.id A) |
| 23 | (t : B) (hrt : r t = 0) (P : A[X]) : r (P.eval₂ s t) = P.coeff 0 := by |
| 24 | rw [hom_eval₂, hrs, hrt] |
| 25 | change P.eval 0 = P.coeff 0 |
| 26 | rw [coeff_zero_eq_eval_zero] |
| 27 | |
| 28 | theorem coordinate_pow_dvd_polynomial_eval (s : A →+* B) (r : B →+* A) |
| 29 | (hrs : r.comp s = RingHom.id A) (t : B) (hrt : r t = 0) (ht : t ≠ 0) |
| 30 | (n : ℕ) (P : A[X]) : t ^ n ∣ P.eval₂ s t ↔ X ^ n ∣ P := by |
| 31 | constructor |
| 32 | · induction n generalizing P with |
| 33 | | zero => simp |
| 34 | | succ n ih => |
| 35 | intro h |
| 36 | obtain ⟨b, hb⟩ := h |
| 37 | have hconstant : P.coeff 0 = 0 := by |
| 38 | rw [← retract_polynomial_eval s r hrs t hrt P, hb, map_mul, map_pow, hrt, |
| 39 | zero_pow (Nat.succ_ne_zero n), zero_mul] |
| 40 | obtain ⟨Q, hPQ⟩ := X_dvd_iff.mpr hconstant |
| 41 | have hQ : t ^ n ∣ Q.eval₂ s t := by |
| 42 | refine ⟨b, ?_⟩ |
| 43 | apply mul_left_cancel₀ ht |
| 44 | calc |
| 45 | t * Q.eval₂ s t = P.eval₂ s t := by rw [hPQ, eval₂_mul, eval₂_X] |
| 46 | _ = t * (t ^ n * b) := by rw [hb, pow_succ', mul_assoc] |
| 47 | obtain ⟨S, hS⟩ := ih Q hQ |
| 48 | exact ⟨S, by rw [hPQ, hS, pow_succ', mul_assoc]⟩ |
| 49 | · intro h |
| 50 | have he := map_dvd (eval₂RingHom s t) h |
| 51 | change (X ^ n).eval₂ s t ∣ P.eval₂ s t at he |
| 52 | simpa only [eval₂_pow, eval₂_X] using he |
| 53 | |
| 54 | end |
| 55 | |
| 56 | /-! Polynomial and ambient quotients by every power of a split regular |
| 57 | coordinate agree via actual evaluation. -/ |
| 58 | |
| 59 | open _root_.Polynomial |
| 60 | |
| 61 | variable {A B : Type*} [CommRing A] [CommRing B] |
| 62 | |
| 63 | def truncatedPolynomialMap (s : A →+* B) (t : B) (n : ℕ) : |
| 64 | A[X] ⧸ Ideal.span {(X : A[X]) ^ n} →+* B ⧸ Ideal.span {t ^ n} := |
| 65 | Ideal.quotientMap (Ideal.span {t ^ n}) (eval₂RingHom s t) (by |
| 66 | apply Ideal.span_le.mpr |
| 67 | rintro P (rfl : P = X ^ n) |
| 68 | change (X ^ n).eval₂ s t ∈ Ideal.span {t ^ n} |
| 69 | rw [eval₂_pow, eval₂_X] |
| 70 | exact Ideal.mem_span_singleton_self _) |
| 71 | |
| 72 | theorem truncatedPolynomialMap_mk (s : A →+* B) (t : B) (n : ℕ) (P : A[X]) : |
| 73 | truncatedPolynomialMap s t n (Ideal.Quotient.mk _ P) = |
| 74 | Ideal.Quotient.mk (Ideal.span {t ^ n}) (P.eval₂ s t) := rfl |
| 75 | |
| 76 | theorem split_polynomial_approximation (s : A →+* B) (r : B →+* A) (t : B) |
| 77 | (hdivision : ∀ y : B, ∃ b : B, y = s (r y) + t * b) (n : ℕ) (y : B) : |
| 78 | ∃ (P : A[X]) (b : B), y = P.eval₂ s t + t ^ n * b := by |
| 79 | induction n generalizing y with |
| 80 | | zero => exact ⟨0, y, by simp⟩ |
| 81 | | succ n ih => |
| 82 | obtain ⟨q, hq⟩ := hdivision y |
| 83 | obtain ⟨P, b, hP⟩ := ih q |
| 84 | refine ⟨C (r y) + X * P, b, ?_⟩ |
| 85 | rw [eval₂_add, eval₂_mul, eval₂_C, eval₂_X] |
| 86 | calc |
| 87 | y = s (r y) + t * q := hq |
| 88 | _ = s (r y) + t * P.eval₂ s t + t ^ (n + 1) * b := by |
| 89 | rw [hP, mul_add, pow_succ', mul_assoc, add_assoc] |
| 90 | |
| 91 | theorem truncatedPolynomialMap_surjective (s : A →+* B) (r : B →+* A) (t : B) |
| 92 | (hdivision : ∀ y : B, ∃ b : B, y = s (r y) + t * b) (n : ℕ) : |
| 93 | Function.Surjective (truncatedPolynomialMap s t n) := by |
| 94 | intro z |
| 95 | obtain ⟨y, rfl⟩ := Ideal.Quotient.mk_surjective z |
| 96 | obtain ⟨P, b, hy⟩ := split_polynomial_approximation s r t hdivision n y |
| 97 | refine ⟨Ideal.Quotient.mk _ P, ?_⟩ |
| 98 | rw [truncatedPolynomialMap_mk, hy, map_add, map_mul] |
| 99 | have hz : Ideal.Quotient.mk (Ideal.span {t ^ n}) (t ^ n) = 0 := |
| 100 | Ideal.Quotient.eq_zero_iff_mem.mpr (Ideal.mem_span_singleton_self _) |
| 101 | rw [hz, zero_mul, add_zero] |
| 102 | |
| 103 | theorem truncatedPolynomialMap_injective [IsDomain B] (s : A →+* B) (r : B →+* A) |
| 104 | (hrs : r.comp s = RingHom.id A) (t : B) (hrt : r t = 0) (ht : t ≠ 0) (n : ℕ) : |
| 105 | Function.Injective (truncatedPolynomialMap s t n) := by |
| 106 | apply Ideal.quotientMap_injective' |
| 107 | intro P hP |
| 108 | change P.eval₂ s t ∈ Ideal.span {t ^ n} at hP |
| 109 | rw [Ideal.mem_span_singleton] at hP ⊢ |
| 110 | exact (coordinate_pow_dvd_polynomial_eval s r hrs t hrt ht n P).mp hP |
| 111 | |
| 112 | def splitPolynomialQuotientEquiv [IsDomain B] (s : A →+* B) (r : B →+* A) |
| 113 | (hrs : r.comp s = RingHom.id A) (t : B) (hrt : r t = 0) (ht : t ≠ 0) |
| 114 | (hdivision : ∀ y : B, ∃ b : B, y = s (r y) + t * b) (n : ℕ) : |
| 115 | A[X] ⧸ Ideal.span {(X : A[X]) ^ n} ≃+* B ⧸ Ideal.span {t ^ n} := |
| 116 | RingEquiv.ofBijective (truncatedPolynomialMap s t n) |
| 117 | ⟨truncatedPolynomialMap_injective s r hrs t hrt ht n, |
| 118 | truncatedPolynomialMap_surjective s r t hdivision n⟩ |
| 119 | |
| 120 | end |
| 121 | |
| 122 | end OAI.AlgebraicGeometry.Comparison.Betti.SplitPolynomialPowers.AnalyticLocal |