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.UpperMatrixPermutationFactors |
| 2 | import OAI.NumberTheory.ArithmeticGroups.Lattices.PermutedChamberApproximation |
| 3 | import OAI.NumberTheory.ArithmeticGroups.Lattices.SignedPermutationMatrices |
| 4 | |
| 5 | /-! # Permutation Factor Centralizer -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.PermutationFactorCentralizer.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The inverted factor centralizes a common chamber diagonal; the |
| 12 | preserved factor remains upper triangular after permutation. -/ |
| 13 | |
| 14 | open scoped Classical |
| 15 | |
| 16 | theorem inversion_supported_matrix_commutes_diagonal {n : ℕ} |
| 17 | (σ : Equiv.Perm (Fin n)) (M : Matrix (Fin n) (Fin n) ℝ) |
| 18 | (hM : ∀ i j, ¬(i < j ∧ σ j < σ i) → (M - 1) i j = 0) |
| 19 | (y : Fin n → ℝ) (hy : Monotone y) (hyσ : Monotone (y ∘ σ.symm)) : |
| 20 | Commute M (Matrix.diagonal y) := by |
| 21 | change M * Matrix.diagonal y = Matrix.diagonal y * M |
| 22 | ext i j |
| 23 | rw [Matrix.mul_diagonal, Matrix.diagonal_mul] |
| 24 | by_cases hij : i = j |
| 25 | · subst j |
| 26 | exact mul_comm _ _ |
| 27 | by_cases hp : i < j ∧ σ j < σ i |
| 28 | · have he : y i = y j := PermutedChamberApproximation.Construction.monotone_permuted_inversion_equal σ.symm y hy hyσ i j hp.1.le hp.2.le |
| 29 | rw [he, mul_comm] |
| 30 | · have hz := hM i j hp |
| 31 | simp only [Matrix.sub_apply, Matrix.one_apply_ne hij, sub_zero] at hz |
| 32 | rw [hz, zero_mul, mul_zero] |
| 33 | |
| 34 | theorem permutation_preserved_support_upper {n : ℕ} (σ : Equiv.Perm (Fin n)) |
| 35 | (M : Matrix (Fin n) (Fin n) ℝ) (hM : UpperUnitriangularMatrices.Construction.IsUpperUnitriangular M) |
| 36 | (hs : ∀ i j, ¬(i < j ∧ σ i < σ j) → (M - 1) i j = 0) : |
| 37 | UpperUnitriangularMatrices.Construction.IsUpperUnitriangular ((σ⁻¹).permMatrix ℝ * M * σ.permMatrix ℝ) := by |
| 38 | have he : (σ⁻¹).permMatrix ℝ * M * σ.permMatrix ℝ = M.submatrix σ.symm σ.symm := by |
| 39 | ext i j |
| 40 | simp [PEquiv.toMatrix_toPEquiv_mul, PEquiv.mul_toMatrix_toPEquiv] |
| 41 | rw [he] |
| 42 | constructor |
| 43 | · intro i j hij |
| 44 | change j < i at hij |
| 45 | have hp : ¬(σ.symm i < σ.symm j ∧ σ (σ.symm i) < σ (σ.symm j)) := by |
| 46 | simpa only [Equiv.apply_symm_apply] using |
| 47 | (show ¬(σ.symm i < σ.symm j ∧ i < j) from fun h => (not_lt_of_gt hij) h.2) |
| 48 | have hz := hs (σ.symm i) (σ.symm j) hp |
| 49 | have hne : σ.symm i ≠ σ.symm j := fun h => (ne_of_gt hij) (σ.symm.injective h) |
| 50 | simpa only [Matrix.sub_apply, Matrix.one_apply_ne hne, sub_zero, Matrix.submatrix_apply] using hz |
| 51 | · intro i |
| 52 | exact hM.2 (σ.symm i) |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.NumberTheory.ArithmeticGroups.Lattices.PermutationFactorCentralizer.Construction |