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.BigOperators.Group.Finset.Basic |
| 2 | import Mathlib.Tactic.Ring |
| 3 | |
| 4 | /-! # Alternating Cone Sums -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AlternatingConeSums |
| 7 | |
| 8 | section |
| 9 | |
| 10 | /-! The finite alternating dimension sum retains exactly the final outgoing boundary term. -/ |
| 11 | |
| 12 | theorem alternating_dimension_telescope (x h b : ℕ → ℤ) |
| 13 | (hzero : x 0 = h 0 + b 0) |
| 14 | (hsucc : ∀ q, x (q + 1) = h (q + 1) + b q + b (q + 1)) (N : ℕ) : |
| 15 | (∑ q ∈ Finset.range (N + 1), (-1 : ℤ) ^ q * x q) = |
| 16 | (∑ q ∈ Finset.range (N + 1), (-1 : ℤ) ^ q * h q) + (-1 : ℤ) ^ N * b N := by |
| 17 | induction N with |
| 18 | | zero => simpa using hzero |
| 19 | | succ N ih => |
| 20 | rw [Finset.sum_range_succ (n := N + 1), Finset.sum_range_succ (n := N + 1), |
| 21 | ih, hsucc N, pow_succ] |
| 22 | ring |
| 23 | |
| 24 | end |
| 25 | |
| 26 | /-! Alternating sums of cone terms, with the final zero terms accounted for. -/ |
| 27 | |
| 28 | theorem alternating_cone_sum (a b c : ℕ → ℤ) |
| 29 | (hzero : c 0 = b 0) (hstep : ∀ n, c (n + 1) = a n + b (n + 1)) |
| 30 | (r : ℕ) (ha : a (r + 1) = 0) (hb : b (r + 1) = 0) : |
| 31 | (∑ n ∈ Finset.range (r + 2), (-1 : ℤ) ^ n * c n) = |
| 32 | (∑ n ∈ Finset.range (r + 1), (-1 : ℤ) ^ n * b n) - |
| 33 | (∑ n ∈ Finset.range (r + 1), (-1 : ℤ) ^ n * a n) := by |
| 34 | have hz : c 0 = (b 0 - a 0) + a 0 := by rw [hzero]; ring |
| 35 | have hs (n : ℕ) : c (n + 1) = (b (n + 1) - a (n + 1)) + a n + a (n + 1) := by |
| 36 | rw [hstep n] |
| 37 | ring |
| 38 | have h := alternating_dimension_telescope c (fun n => b n - a n) a hz hs (r + 1) |
| 39 | calc |
| 40 | _ = ∑ n ∈ Finset.range (r + 2), (-1 : ℤ) ^ n * (b n - a n) := by |
| 41 | simpa only [ha, mul_zero, add_zero] using h |
| 42 | _ = ∑ n ∈ Finset.range (r + 1), (-1 : ℤ) ^ n * (b n - a n) := by |
| 43 | rw [Finset.sum_range_succ (n := r + 1), ha, hb] |
| 44 | simp only [sub_self, mul_zero, add_zero] |
| 45 | _ = _ := by |
| 46 | simp_rw [mul_sub] |
| 47 | rw [Finset.sum_sub_distrib] |
| 48 | |
| 49 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AlternatingConeSums |