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.AlgebraicGeometry.HodgeConjecture.CMExtraction.Contragredient |
| 2 | import OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.Borel |
| 3 | |
| 4 | /-! # Longest Weyl -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.LongestWeyl.Local |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! An actual integral determinant-one representative of the longest |
| 11 | Weyl element, including its signed reversal of matrix coordinates. -/ |
| 12 | |
| 13 | open scoped Classical _root_.Matrix |
| 14 | |
| 15 | variable (R : Type*) [CommRing R] |
| 16 | |
| 17 | def longestWeylMatrix : Matrix (Fin 3) (Fin 3) R := !![0, 0, 1; 0, -1, 0; 1, 0, 0] |
| 18 | |
| 19 | theorem longestWeylMatrix_det : (longestWeylMatrix R).det = 1 := by |
| 20 | simp [longestWeylMatrix, Matrix.det_fin_three] |
| 21 | |
| 22 | def longestWeyl : Matrix.SpecialLinearGroup (Fin 3) R := ⟨longestWeylMatrix R, longestWeylMatrix_det R⟩ |
| 23 | |
| 24 | theorem longestWeyl_sq : longestWeyl R * longestWeyl R = 1 := by |
| 25 | apply Subtype.ext |
| 26 | change longestWeylMatrix R * longestWeylMatrix R = 1 |
| 27 | ext i j |
| 28 | fin_cases i <;> fin_cases j <;> |
| 29 | simp [longestWeylMatrix, Matrix.mul_apply, Fin.sum_univ_three] |
| 30 | |
| 31 | theorem longestWeyl_inv : (longestWeyl R)⁻¹ = longestWeyl R := |
| 32 | (eq_inv_of_mul_eq_one_right (longestWeyl_sq R)).symm |
| 33 | |
| 34 | def reversalSign (i : Fin 3) : R := if i = 1 then -1 else 1 |
| 35 | |
| 36 | theorem longestWeyl_conjugation_entry (M : Matrix (Fin 3) (Fin 3) R) (i j : Fin 3) : |
| 37 | (longestWeylMatrix R * M * longestWeylMatrix R) i j = |
| 38 | reversalSign R i * reversalSign R j * M i.rev j.rev := by |
| 39 | fin_cases i <;> fin_cases j <;> |
| 40 | simp [longestWeylMatrix, reversalSign, Matrix.mul_apply, Matrix.vecMul, |
| 41 | dotProduct, Fin.sum_univ_three, Fin.ext_iff] |
| 42 | |
| 43 | theorem longestWeyl_map {S : Type*} [CommRing S] (f : R →+* S) : |
| 44 | Matrix.SpecialLinearGroup.map f (longestWeyl R) = longestWeyl S := by |
| 45 | apply Subtype.ext |
| 46 | change (longestWeylMatrix R).map f = longestWeylMatrix S |
| 47 | ext i j |
| 48 | fin_cases i <;> fin_cases j <;> simp [longestWeylMatrix] |
| 49 | |
| 50 | theorem longestWeyl_integral (q : ℕ) [Fact q.Prime] : |
| 51 | longestWeyl ℚ_[q] ∈ RepresentationTheory.Theta.Geometric.SphericalGU.Spherical.integralSL3 q := |
| 52 | ⟨longestWeyl ℤ_[q], longestWeyl_map ℤ_[q] PadicInt.Coe.ringHom⟩ |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.LongestWeyl.Local |