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.NumberTheory.ArithmeticGroups.Lattices.RationalZariski |
| 2 | import OAI.NumberTheory.Quaternion.Arithmetic.FiniteConnectedAction |
| 3 | import Mathlib.Data.Matrix.Basis |
| 4 | |
| 5 | /-! # Adjoint Polynomials -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.Quaternion.Arithmetic.AdjointPolynomials |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Polynomial coordinates for the adjoint action and for linear |
| 12 | functionals of polynomial matrices. These give algebraic closedness of |
| 13 | the stabilizers used in the Lie-ideal argument. -/ |
| 14 | |
| 15 | open scoped Classical |
| 16 | open _root_.MvPolynomial |
| 17 | |
| 18 | variable {k : Type} [Field k] {n : ℕ} |
| 19 | |
| 20 | def adjointMatrixPolynomial (A : Matrix (Fin n) (Fin n) k) : |
| 21 | Matrix (Fin n) (Fin n) (ArithmeticGroups.Lattices.Algebraic.CoordinatePolynomial n k) := |
| 22 | let Xmat : Matrix (Fin n) (Fin n) (ArithmeticGroups.Lattices.Algebraic.CoordinatePolynomial n k) := fun i j => X (i, j) |
| 23 | Xmat * C.mapMatrix A * Xmat.adjugate |
| 24 | |
| 25 | theorem evaluate_adjointMatrixPolynomial (g : ArithmeticGroups.Lattices.Algebraic.SL n k) (A : Matrix (Fin n) (Fin n) k) : |
| 26 | (ArithmeticGroups.Lattices.Algebraic.evaluateMatrix (RingHom.id k) g).mapMatrix (adjointMatrixPolynomial A) = |
| 27 | (g : Matrix (Fin n) (Fin n) k) * A * ((g⁻¹ : ArithmeticGroups.Lattices.Algebraic.SL n k) : Matrix (Fin n) (Fin n) k) := by |
| 28 | let Xmat : Matrix (Fin n) (Fin n) (ArithmeticGroups.Lattices.Algebraic.CoordinatePolynomial n k) := fun i j => X (i, j) |
| 29 | let e := ArithmeticGroups.Lattices.Algebraic.evaluateMatrix (RingHom.id k) g |
| 30 | have hX : e.mapMatrix Xmat = (g : Matrix (Fin n) (Fin n) k) := by |
| 31 | ext i j |
| 32 | change e (X (i, j)) = g i j |
| 33 | simp [e, ArithmeticGroups.Lattices.Algebraic.evaluateMatrix] |
| 34 | have hC : e.mapMatrix (C.mapMatrix A) = A := by |
| 35 | ext i j |
| 36 | simp [e, ArithmeticGroups.Lattices.Algebraic.evaluateMatrix] |
| 37 | change e.mapMatrix (Xmat * C.mapMatrix A * Xmat.adjugate) = _ |
| 38 | rw [map_mul, map_mul, hX, hC, e.map_adjugate, hX] |
| 39 | rfl |
| 40 | |
| 41 | def linearMatrixPolynomial |
| 42 | (φ : Matrix (Fin n) (Fin n) k →ₗ[k] k) |
| 43 | (P : Matrix (Fin n) (Fin n) (ArithmeticGroups.Lattices.Algebraic.CoordinatePolynomial n k)) : ArithmeticGroups.Lattices.Algebraic.CoordinatePolynomial n k := |
| 44 | ∑ i, ∑ j, C (φ (Matrix.single i j 1)) * P i j |
| 45 | |
| 46 | theorem evaluate_linearMatrixPolynomial (g : ArithmeticGroups.Lattices.Algebraic.SL n k) |
| 47 | (φ : Matrix (Fin n) (Fin n) k →ₗ[k] k) |
| 48 | (P : Matrix (Fin n) (Fin n) (ArithmeticGroups.Lattices.Algebraic.CoordinatePolynomial n k)) : |
| 49 | ArithmeticGroups.Lattices.Algebraic.evaluateMatrix (RingHom.id k) g (linearMatrixPolynomial φ P) = |
| 50 | φ ((ArithmeticGroups.Lattices.Algebraic.evaluateMatrix (RingHom.id k) g).mapMatrix P) := by |
| 51 | let e := ArithmeticGroups.Lattices.Algebraic.evaluateMatrix (RingHom.id k) g |
| 52 | have hC (a : k) : e (C a) = a := by simp [e, ArithmeticGroups.Lattices.Algebraic.evaluateMatrix] |
| 53 | change e (∑ i, ∑ j, C (φ (Matrix.single i j 1)) * P i j) = φ (e.mapMatrix P) |
| 54 | rw [Matrix.matrix_eq_sum_single (e.mapMatrix P)] |
| 55 | simp only [map_sum, map_mul, hC] |
| 56 | apply Finset.sum_congr rfl |
| 57 | intro i _ |
| 58 | apply Finset.sum_congr rfl |
| 59 | intro j _ |
| 60 | have he : Matrix.single i j (e (P i j)) = e (P i j) • Matrix.single i j (1 : k) := by |
| 61 | rw [Matrix.smul_single, smul_eq_mul, mul_one] |
| 62 | change φ (Matrix.single i j 1) * e (P i j) = φ (Matrix.single i j (e (P i j))) |
| 63 | rw [he, map_smul, smul_eq_mul, mul_comm] |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.NumberTheory.Quaternion.Arithmetic.AdjointPolynomials |