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 |
| 2 | |
| 3 | /-! # Matrix Det Four -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.Quaternion.Arithmetic.MatrixDetFour |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! An explicit four-by-four determinant expansion, with each |
| 10 | three-by-three minor reindexed separately. -/ |
| 11 | |
| 12 | open scoped Classical _root_.Matrix |
| 13 | open _root_.Matrix |
| 14 | |
| 15 | variable {R : Type*} [CommRing R] |
| 16 | |
| 17 | theorem matrix_det_four_expand (M : Matrix (Fin 4) (Fin 4) R) : |
| 18 | M.det = |
| 19 | M 0 0 * (!![M 1 1, M 1 2, M 1 3; M 2 1, M 2 2, M 2 3; M 3 1, M 3 2, M 3 3]).det - |
| 20 | M 0 1 * (!![M 1 0, M 1 2, M 1 3; M 2 0, M 2 2, M 2 3; M 3 0, M 3 2, M 3 3]).det + |
| 21 | M 0 2 * (!![M 1 0, M 1 1, M 1 3; M 2 0, M 2 1, M 2 3; M 3 0, M 3 1, M 3 3]).det - |
| 22 | M 0 3 * (!![M 1 0, M 1 1, M 1 2; M 2 0, M 2 1, M 2 2; M 3 0, M 3 1, M 3 2]).det := by |
| 23 | have h0 : M.submatrix Fin.succ (0 : Fin 4).succAbove = |
| 24 | !![M 1 1, M 1 2, M 1 3; M 2 1, M 2 2, M 2 3; M 3 1, M 3 2, M 3 3] := by |
| 25 | ext i j |
| 26 | fin_cases i <;> fin_cases j <;> rfl |
| 27 | have h1 : M.submatrix Fin.succ (1 : Fin 4).succAbove = |
| 28 | !![M 1 0, M 1 2, M 1 3; M 2 0, M 2 2, M 2 3; M 3 0, M 3 2, M 3 3] := by |
| 29 | ext i j |
| 30 | fin_cases i <;> fin_cases j <;> rfl |
| 31 | have h2 : M.submatrix Fin.succ (2 : Fin 4).succAbove = |
| 32 | !![M 1 0, M 1 1, M 1 3; M 2 0, M 2 1, M 2 3; M 3 0, M 3 1, M 3 3] := by |
| 33 | ext i j |
| 34 | fin_cases i <;> fin_cases j <;> rfl |
| 35 | have h3 : M.submatrix Fin.succ (3 : Fin 4).succAbove = |
| 36 | !![M 1 0, M 1 1, M 1 2; M 2 0, M 2 1, M 2 2; M 3 0, M 3 1, M 3 2] := by |
| 37 | ext i j |
| 38 | fin_cases i <;> fin_cases j <;> rfl |
| 39 | rw [Matrix.det_succ_row_zero, Fin.sum_univ_four, h0, h1, h2, h3] |
| 40 | norm_num |
| 41 | ring |
| 42 | |
| 43 | end |
| 44 | |
| 45 | end OAI.NumberTheory.Quaternion.Arithmetic.MatrixDetFour |