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.Quaternion.QuadraticUnitary |
| 2 | |
| 3 | /-! # Active Rotation -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.ActiveRotation.Approximation |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A rational rotation of the two positive coordinates preserves every |
| 10 | diagonal Hermitian form diag(1,1,b) and carries the first binary roots |
| 11 | to the second binary roots. -/ |
| 12 | |
| 13 | open scoped Classical _root_.Matrix |
| 14 | open _root_.Matrix.SpecialLinearGroup |
| 15 | |
| 16 | open OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.Quaternion.QuadraticUnitary |
| 17 | |
| 18 | variable (R : Type*) [CommRing R] |
| 19 | |
| 20 | def positiveRotation : Geometry.ComplexBall.ArithmeticQuotientEquationsData.SL R := |
| 21 | ⟨!![0, -1, 0; 1, 0, 0; 0, 0, 1], by simp [Matrix.det_fin_three]⟩ |
| 22 | |
| 23 | def positiveRotationInverse : Geometry.ComplexBall.ArithmeticQuotientEquationsData.SL R := |
| 24 | ⟨!![0, 1, 0; -1, 0, 0; 0, 0, 1], by simp [Matrix.det_fin_three]⟩ |
| 25 | |
| 26 | theorem positiveRotation_inv : (positiveRotation R)⁻¹ = positiveRotationInverse R := by |
| 27 | apply inv_eq_of_mul_eq_one_right |
| 28 | apply Subtype.ext |
| 29 | change (positiveRotation R).val * (positiveRotationInverse R).val = (1 : Matrix (Fin 3) (Fin 3) R) |
| 30 | apply Matrix.ext |
| 31 | intro i j |
| 32 | fin_cases i <;> fin_cases j <;> |
| 33 | simp [positiveRotation, positiveRotationInverse, Matrix.mul_apply, Fin.sum_univ_three] |
| 34 | |
| 35 | def positiveRotationUnitary (c : R →+* R) (b : R) : Geometry.ComplexBall.ArithmeticQuotientEquationsData.SU c b := |
| 36 | ⟨positiveRotation R, by |
| 37 | rw [Geometry.ComplexBall.ArithmeticQuotientEquationsData.unitary_iff_columns] |
| 38 | intro i j |
| 39 | fin_cases i <;> fin_cases j <;> |
| 40 | simp [positiveRotation, Geometry.ComplexBall.ArithmeticQuotientEquationsData.diagonalCoefficient, Fin.sum_univ_three]⟩ |
| 41 | |
| 42 | theorem positiveRotation_map {S : Type*} [CommRing S] (f : R →+* S) : |
| 43 | Matrix.SpecialLinearGroup.map f (positiveRotation R) = positiveRotation S := by |
| 44 | apply Subtype.ext |
| 45 | change (positiveRotation R).val.map f = (positiveRotation S).val |
| 46 | apply Matrix.ext |
| 47 | intro i j |
| 48 | fin_cases i <;> fin_cases j <;> simp [positiveRotation] |
| 49 | |
| 50 | theorem positiveRotation_forward (a : R) : |
| 51 | positiveRotation R * transvection (show (0 : Fin 3) ≠ 2 by decide) a * (positiveRotation R)⁻¹ = |
| 52 | transvection (show (1 : Fin 3) ≠ 2 by decide) a := by |
| 53 | rw [positiveRotation_inv] |
| 54 | apply Subtype.ext |
| 55 | change (positiveRotation R).val * (transvection (show (0 : Fin 3) ≠ 2 by decide) a).val * |
| 56 | (positiveRotationInverse R).val = (transvection (show (1 : Fin 3) ≠ 2 by decide) a).val |
| 57 | apply Matrix.ext |
| 58 | intro i j |
| 59 | fin_cases i <;> fin_cases j <;> |
| 60 | simp [positiveRotation, positiveRotationInverse, transvection_coe, |
| 61 | Matrix.mul_apply, Matrix.vecMul, dotProduct, Fin.sum_univ_three, Matrix.one_apply] |
| 62 | |
| 63 | theorem positiveRotation_backward (a : R) : |
| 64 | positiveRotation R * transvection (show (2 : Fin 3) ≠ 0 by decide) a * (positiveRotation R)⁻¹ = |
| 65 | transvection (show (2 : Fin 3) ≠ 1 by decide) a := by |
| 66 | rw [positiveRotation_inv] |
| 67 | apply Subtype.ext |
| 68 | change (positiveRotation R).val * (transvection (show (2 : Fin 3) ≠ 0 by decide) a).val * |
| 69 | (positiveRotationInverse R).val = (transvection (show (2 : Fin 3) ≠ 1 by decide) a).val |
| 70 | apply Matrix.ext |
| 71 | intro i j |
| 72 | fin_cases i <;> fin_cases j <;> |
| 73 | simp [positiveRotation, positiveRotationInverse, transvection_coe, |
| 74 | Matrix.mul_apply, Matrix.vecMul, dotProduct, Fin.sum_univ_three, Matrix.one_apply] |
| 75 | |
| 76 | theorem activeBinaryBlock_forward (a : R) : |
| 77 | Quaternion.QuadraticUnitary.activeBinaryBlock (transvection (show (0 : Fin 2) ≠ 1 by decide) a) = |
| 78 | transvection (show (0 : Fin 3) ≠ 2 by decide) a := by |
| 79 | apply Subtype.ext |
| 80 | change Quaternion.QuadraticUnitary.activeBinaryMatrix (transvection (show (0 : Fin 2) ≠ 1 by decide) a).val = |
| 81 | (transvection (show (0 : Fin 3) ≠ 2 by decide) a).val |
| 82 | apply Matrix.ext |
| 83 | intro i j |
| 84 | fin_cases i <;> fin_cases j <;> simp [Quaternion.QuadraticUnitary.activeBinaryMatrix, transvection_coe] |
| 85 | |
| 86 | theorem activeBinaryBlock_backward (a : R) : |
| 87 | Quaternion.QuadraticUnitary.activeBinaryBlock (transvection (show (1 : Fin 2) ≠ 0 by decide) a) = |
| 88 | transvection (show (2 : Fin 3) ≠ 0 by decide) a := by |
| 89 | apply Subtype.ext |
| 90 | change Quaternion.QuadraticUnitary.activeBinaryMatrix (transvection (show (1 : Fin 2) ≠ 0 by decide) a).val = |
| 91 | (transvection (show (2 : Fin 3) ≠ 0 by decide) a).val |
| 92 | apply Matrix.ext |
| 93 | intro i j |
| 94 | fin_cases i <;> fin_cases j <;> simp [Quaternion.QuadraticUnitary.activeBinaryMatrix, transvection_coe] |
| 95 | |
| 96 | end |
| 97 | |
| 98 | end OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.ActiveRotation.Approximation |