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.Ring.Commute |
| 2 | import Mathlib.Algebra.Module.Basic |
| 3 | import Mathlib.Tactic.Abel |
| 4 | import Lean.Elab.Tactic.Omega |
| 5 | |
| 6 | /-! # Total Product Signs -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.TotalProductSigns |
| 9 | |
| 10 | /-! The Koszul sign identity for totalizing a product of cochain |
| 11 | complexes. It is valid in every additive abelian group. -/ |
| 12 | |
| 13 | variable {V : Type*} [AddCommGroup V] |
| 14 | |
| 15 | theorem product_rule (p a q n : ℕ) (hn : p + a = n) (A B C D : V) : |
| 16 | (-1 : ℤ) ^ (a * q) • |
| 17 | ((A + (-1 : ℤ) ^ p • B) + (-1 : ℤ) ^ (p + q) • (C + (-1 : ℤ) ^ a • D)) = |
| 18 | ((-1 : ℤ) ^ (a * q) • A + (-1 : ℤ) ^ p • ((-1 : ℤ) ^ ((a + 1) * q) • C)) + |
| 19 | (-1 : ℤ) ^ n • |
| 20 | ((-1 : ℤ) ^ (a * (q + 1)) • B + (-1 : ℤ) ^ q • ((-1 : ℤ) ^ (a * q) • D)) := by |
| 21 | have hc : p + (a + 1) * q = a * q + (p + q) := by |
| 22 | simp only [Nat.add_mul, Nat.one_mul] |
| 23 | omega |
| 24 | have hd : n + (q + a * q) = a * q + (p + q + a) := by omega |
| 25 | have hb : (-1 : ℤ) ^ (n + a * (q + 1)) = (-1 : ℤ) ^ (a * q + p) := by |
| 26 | rw [neg_one_pow_eq_pow_mod_two (n + a * (q + 1)), neg_one_pow_eq_pow_mod_two (a * q + p)] |
| 27 | congr 1 |
| 28 | simp only [Nat.mul_add, Nat.mul_one] |
| 29 | omega |
| 30 | simp only [smul_add, smul_smul, ← pow_add, hc, hd, hb] |
| 31 | abel |
| 32 | |
| 33 | end OAI.NumberTheory.PadicHodge.IntegralComparison.TotalProductSigns |