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.Data.Fintype.EquivFin |
| 2 | import Lean.Elab.Tactic.Omega |
| 3 | |
| 4 | /-! # Total Diagonal -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Comparison.Betti.Finite.TotalDiagonal |
| 7 | |
| 8 | /-! Every diagonal of a first-quadrant bicomplex has finitely many indices. -/ |
| 9 | |
| 10 | theorem finiteTotalDiagonal (n : ℕ) : Finite {p : ℕ × ℕ // p.1 + p.2 = n} := |
| 11 | Finite.of_injective |
| 12 | (fun p => (⟨p.val.1, by omega⟩ : Fin (n + 1))) (by |
| 13 | intro a b h |
| 14 | apply Subtype.ext |
| 15 | apply Prod.ext |
| 16 | · exact congrArg Fin.val h |
| 17 | · have hf : a.val.1 = b.val.1 := congrArg Fin.val h |
| 18 | have := a.property |
| 19 | have := b.property |
| 20 | omega) |
| 21 | |
| 22 | end OAI.AlgebraicGeometry.Comparison.Betti.Finite.TotalDiagonal |