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.OrthogonalOperatorMatrices |
| 2 | import Mathlib.LinearAlgebra.Matrix.Permutation |
| 3 | |
| 4 | /-! # Signed Permutation Matrices -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.SignedPermutationMatrices.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Signed permutation matrices are orthogonal normalizers of the |
| 11 | diagonal matrices. -/ |
| 12 | |
| 13 | open scoped Classical |
| 14 | |
| 15 | def nonzeroDiagonalMatrixUnit {n : ℕ} (d : Fin n → ℝ) (hd : ∀ i, d i ≠ 0) : |
| 16 | (Matrix (Fin n) (Fin n) ℝ)ˣ where |
| 17 | val := Matrix.diagonal d |
| 18 | inv := Matrix.diagonal (fun i => (d i)⁻¹) |
| 19 | val_inv := by |
| 20 | rw [Matrix.diagonal_mul_diagonal] |
| 21 | simp [hd] |
| 22 | inv_val := by |
| 23 | rw [Matrix.diagonal_mul_diagonal] |
| 24 | simp [hd] |
| 25 | |
| 26 | theorem signed_permutation_orthogonal {n : ℕ} (σ : Equiv.Perm (Fin n)) |
| 27 | (s : Fin n → ℝ) (hs : ∀ i, s i * s i = 1) : |
| 28 | Matrix.diagonal s * σ.permMatrix ℝ ∈ Matrix.orthogonalGroup (Fin n) ℝ := by |
| 29 | apply (Matrix.mem_orthogonalGroup_iff (Fin n) ℝ).mpr |
| 30 | have hp : σ.permMatrix ℝ * (σ.permMatrix ℝ).transpose = 1 := by |
| 31 | rw [Matrix.transpose_permMatrix, ← Matrix.permMatrix_mul, inv_mul_cancel, Matrix.permMatrix_one] |
| 32 | rw [Matrix.transpose_mul, Matrix.diagonal_transpose] |
| 33 | calc |
| 34 | Matrix.diagonal s * σ.permMatrix ℝ * ((σ.permMatrix ℝ).transpose * Matrix.diagonal s) = |
| 35 | Matrix.diagonal s * (σ.permMatrix ℝ * (σ.permMatrix ℝ).transpose) * Matrix.diagonal s := by |
| 36 | simp only [mul_assoc] |
| 37 | _ = 1 := by rw [hp, mul_one, Matrix.diagonal_mul_diagonal]; simp [hs] |
| 38 | |
| 39 | theorem permutation_support_diagonal_intertwining {n : ℕ} |
| 40 | (M : Matrix (Fin n) (Fin n) ℝ) (σ : Equiv.Perm (Fin n)) |
| 41 | (hM : ∀ i j, j ≠ σ i → M i j = 0) (d : Fin n → ℝ) : |
| 42 | M * Matrix.diagonal d = Matrix.diagonal (fun i => d (σ i)) * M := by |
| 43 | ext i j |
| 44 | rw [Matrix.mul_diagonal, Matrix.diagonal_mul] |
| 45 | by_cases h : j = σ i |
| 46 | · rw [h, mul_comm] |
| 47 | · rw [hM i j h, zero_mul, mul_zero] |
| 48 | |
| 49 | theorem signed_permutation_support {n : ℕ} (σ : Equiv.Perm (Fin n)) (s : Fin n → ℝ) |
| 50 | (i j : Fin n) (hij : j ≠ σ i) : |
| 51 | (Matrix.diagonal s * σ.permMatrix ℝ) i j = 0 := by |
| 52 | simp [Matrix.diagonal_mul, Ne.symm hij] |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.NumberTheory.ArithmeticGroups.Lattices.SignedPermutationMatrices.Construction |