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.SignedPermutationMatrices |
| 2 | |
| 3 | /-! # Permutation Matrix Units -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.PermutationMatrixUnits.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Permutation matrices as units, including their action on diagonals. -/ |
| 10 | |
| 11 | open scoped Classical |
| 12 | |
| 13 | def permutationMatrixUnit {n : ℕ} (σ : Equiv.Perm (Fin n)) : (Matrix (Fin n) (Fin n) ℝ)ˣ where |
| 14 | val := σ.permMatrix ℝ |
| 15 | inv := (σ⁻¹).permMatrix ℝ |
| 16 | val_inv := by rw [← Matrix.permMatrix_mul, inv_mul_cancel, Matrix.permMatrix_one] |
| 17 | inv_val := by rw [← Matrix.permMatrix_mul, mul_inv_cancel, Matrix.permMatrix_one] |
| 18 | |
| 19 | theorem permutationMatrixUnit_orthogonal {n : ℕ} (σ : Equiv.Perm (Fin n)) : |
| 20 | (permutationMatrixUnit σ).val ∈ Matrix.orthogonalGroup (Fin n) ℝ := by |
| 21 | simpa only [Matrix.diagonal_one, one_mul] using! SignedPermutationMatrices.Construction.signed_permutation_orthogonal σ |
| 22 | (fun _ => 1) (fun _ => one_mul 1) |
| 23 | |
| 24 | theorem permutationMatrixUnit_conjugate_diagonal {n : ℕ} (σ : Equiv.Perm (Fin n)) |
| 25 | (d : Fin n → ℝ) : |
| 26 | (permutationMatrixUnit σ)⁻¹.val * Matrix.diagonal d * (permutationMatrixUnit σ).val = |
| 27 | Matrix.diagonal (fun i => d (σ.symm i)) := by |
| 28 | change (σ⁻¹).permMatrix ℝ * Matrix.diagonal d * σ.permMatrix ℝ = _ |
| 29 | ext i j |
| 30 | simp only [PEquiv.toMatrix_toPEquiv_mul, PEquiv.mul_toMatrix_toPEquiv, Matrix.submatrix_apply] |
| 31 | by_cases hij : i = j |
| 32 | · subst j |
| 33 | simp |
| 34 | · have hne : σ.symm i ≠ σ.symm j := fun h => hij (σ.symm.injective h) |
| 35 | simp [Matrix.diagonal_apply_ne _ hne, Matrix.diagonal_apply_ne _ hij] |
| 36 | |
| 37 | end |
| 38 | |
| 39 | end OAI.NumberTheory.ArithmeticGroups.Lattices.PermutationMatrixUnits.Construction |