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 OAI.RepresentationTheory.Weil.AdelicSplitting.PhaseFourier |
| 2 | |
| 3 | /-! # Quadratic Matrix Coordinates -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Weil.AdelicSplitting.QuadraticMatrixCoordinates.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Symmetric quadratic matrices and change of finite coordinate indices. -/ |
| 10 | |
| 11 | open scoped Classical _root_.Matrix |
| 12 | |
| 13 | variable {F : Type} [Field F] [CharZero F] {N : ℕ} |
| 14 | |
| 15 | def symmetricPart (M : Matrix (Fin N) (Fin N) F) : Local.FunctionsMetaplectic.Construction.SymmetricMatrix F N := |
| 16 | ⟨(2 : F)⁻¹ • (M + Mᵀ), by |
| 17 | ext i j |
| 18 | change (2 : F)⁻¹ * (M j i + M i j) = (2 : F)⁻¹ * (M i j + M j i) |
| 19 | rw [add_comm]⟩ |
| 20 | |
| 21 | omit [CharZero F] in |
| 22 | theorem quadratic_eq_toBilin (M : Matrix (Fin N) (Fin N) F) (x : Local.FunctionsMetaplectic.Construction.Position F N) : |
| 23 | Local.FunctionsMetaplectic.Construction.quadratic M x = M.toBilin' x x / 2 := by rw [Local.FunctionsMetaplectic.Construction.quadratic, Matrix.toBilin'_apply] |
| 24 | |
| 25 | omit [CharZero F] in |
| 26 | theorem toBilin_transpose_self {ι : Type} [Fintype ι] [DecidableEq ι] |
| 27 | (M : Matrix ι ι F) (x : ι → F) : Mᵀ.toBilin' x x = M.toBilin' x x := by |
| 28 | simp only [Matrix.toBilin'_apply, Matrix.transpose_apply] |
| 29 | rw [Finset.sum_comm] |
| 30 | apply Finset.sum_congr rfl |
| 31 | intro i _ |
| 32 | apply Finset.sum_congr rfl |
| 33 | intro j _ |
| 34 | ring |
| 35 | |
| 36 | theorem quadratic_symmetricPart (M : Matrix (Fin N) (Fin N) F) (x : Local.FunctionsMetaplectic.Construction.Position F N) : |
| 37 | Local.FunctionsMetaplectic.Construction.quadratic (symmetricPart M).val x = M.toBilin' x x / 2 := by |
| 38 | rw [quadratic_eq_toBilin] |
| 39 | change (((2 : F)⁻¹ • (M + Mᵀ)).toBilin') x x / 2 = _ |
| 40 | rw [map_smul, map_add] |
| 41 | simp only [LinearMap.smul_apply, LinearMap.add_apply, smul_eq_mul, toBilin_transpose_self] |
| 42 | field_simp |
| 43 | ring |
| 44 | |
| 45 | omit [CharZero F] in |
| 46 | theorem reindex_toBilin {ι κ : Type} [Fintype ι] [Fintype κ] [DecidableEq ι] [DecidableEq κ] |
| 47 | (e : ι ≃ κ) (M : Matrix ι ι F) (x y : κ → F) : |
| 48 | (Matrix.reindex e e M).toBilin' x y = M.toBilin' (fun i => x (e i)) (fun i => y (e i)) := by |
| 49 | simp only [Matrix.toBilin'_apply, Matrix.reindex_apply, Matrix.submatrix_apply] |
| 50 | rw [← e.sum_comp (fun i => ∑ j, x i * M (e.symm i) (e.symm j) * y j)] |
| 51 | apply Finset.sum_congr rfl |
| 52 | intro i _ |
| 53 | rw [← e.sum_comp (fun j => x (e i) * M (e.symm (e i)) (e.symm j) * y j)] |
| 54 | simp only [e.symm_apply_apply] |
| 55 | |
| 56 | omit [CharZero F] in |
| 57 | theorem toBilin_transpose_mul_left {ι : Type} [Fintype ι] [DecidableEq ι] |
| 58 | (M P : Matrix ι ι F) (x y : ι → F) : |
| 59 | (Pᵀ * M).toBilin' x y = M.toBilin' (P *ᵥ x) y := by |
| 60 | have hh := congrArg (fun B : LinearMap.BilinForm F (ι → F) => B x y) (Matrix.toBilin'_comp M P 1) |
| 61 | simpa only [Matrix.mul_one, LinearMap.BilinForm.comp_apply, Matrix.toLin'_apply, Matrix.one_mulVec] using hh.symm |
| 62 | |
| 63 | theorem symmetricPart_map {k : Type} [Field k] [CharZero k] (e : F →+* k) |
| 64 | (M : Matrix (Fin N) (Fin N) F) : |
| 65 | (symmetricPart M).val.map e = (symmetricPart (M.map e)).val := by |
| 66 | ext i j |
| 67 | change e ((2 : F)⁻¹ * (M i j + M j i)) = (2 : k)⁻¹ * (e (M i j) + e (M j i)) |
| 68 | simp only [map_mul, map_inv₀, map_ofNat, map_add] |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.RepresentationTheory.Weil.AdelicSplitting.QuadraticMatrixCoordinates.Construction |