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.UpperPivotElimination |
| 2 | import OAI.NumberTheory.ArithmeticGroups.Lattices.IsolatedPivotMatrices |
| 3 | import Mathlib.Logic.Equiv.Fin.Basic |
| 4 | |
| 5 | /-! # Upper Monomial Elimination -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.UpperMonomialElimination.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Upper unitriangular operations reduce every invertible real |
| 12 | matrix to a matrix supported on a permutation. -/ |
| 13 | |
| 14 | open scoped Classical |
| 15 | |
| 16 | def isolatedPivotPermutation {n : ℕ} (r c : Fin (n + 1)) (σ : Equiv.Perm (Fin n)) : |
| 17 | Equiv.Perm (Fin (n + 1)) := |
| 18 | (finSuccEquiv' r).trans ((Equiv.optionCongr σ).trans (finSuccEquiv' c).symm) |
| 19 | |
| 20 | @[simp] theorem isolatedPivotPermutation_pivot {n : ℕ} |
| 21 | (r c : Fin (n + 1)) (σ : Equiv.Perm (Fin n)) : isolatedPivotPermutation r c σ r = c := by |
| 22 | simp [isolatedPivotPermutation] |
| 23 | |
| 24 | @[simp] theorem isolatedPivotPermutation_minor {n : ℕ} |
| 25 | (r c : Fin (n + 1)) (σ : Equiv.Perm (Fin n)) (i : Fin n) : |
| 26 | isolatedPivotPermutation r c σ (r.succAbove i) = c.succAbove (σ i) := by |
| 27 | simp [isolatedPivotPermutation] |
| 28 | |
| 29 | theorem isolatedPivotMatrix_permutation_support {n : ℕ} |
| 30 | (r c : Fin (n + 1)) (M : Matrix (Fin n) (Fin n) ℝ) (a : ℝ) |
| 31 | (σ : Equiv.Perm (Fin n)) (hM : ∀ i j, j ≠ σ i → M i j = 0) |
| 32 | (i j : Fin (n + 1)) (hij : j ≠ isolatedPivotPermutation r c σ i) : |
| 33 | IsolatedPivotMatrices.Construction.isolatedPivotMatrix r c M a i j = 0 := by |
| 34 | cases i using Fin.succAboveCases r with |
| 35 | | x => |
| 36 | cases j using Fin.succAboveCases c with |
| 37 | | x => exact (hij (isolatedPivotPermutation_pivot r c σ).symm).elim |
| 38 | | p j => simp |
| 39 | | p i => |
| 40 | cases j using Fin.succAboveCases c with |
| 41 | | x => simp |
| 42 | | p j => |
| 43 | rw [IsolatedPivotMatrices.Construction.isolatedPivotMatrix_minor] |
| 44 | apply hM i j |
| 45 | intro he |
| 46 | apply hij |
| 47 | simp [he] |
| 48 | |
| 49 | theorem exists_upper_monomial_elimination (n : ℕ) |
| 50 | (M : (Matrix (Fin n) (Fin n) ℝ)ˣ) : |
| 51 | ∃ U V : Matrix (Fin n) (Fin n) ℝ, ∃ σ : Equiv.Perm (Fin n), |
| 52 | UpperUnitriangularMatrices.Construction.IsUpperUnitriangular U ∧ UpperUnitriangularMatrices.Construction.IsUpperUnitriangular V ∧ |
| 53 | ∀ i j, j ≠ σ i → (U * M.val * V) i j = 0 := by |
| 54 | induction n with |
| 55 | | zero => |
| 56 | exact ⟨1, 1, Equiv.refl _, ⟨Matrix.blockTriangular_one, fun i => Fin.elim0 i⟩, |
| 57 | ⟨Matrix.blockTriangular_one, fun i => Fin.elim0 i⟩, fun i => Fin.elim0 i⟩ |
| 58 | | succ n ih => |
| 59 | obtain ⟨p, U, V, hU, hV, _, hrow, hcol⟩ := UpperPivotElimination.Construction.exists_upper_pivot_elimination M |
| 60 | let R := U * M.val * V |
| 61 | let A := R.submatrix (Fin.last n).succAbove p.succAbove |
| 62 | let a := R (Fin.last n) p |
| 63 | have hR : R = IsolatedPivotMatrices.Construction.isolatedPivotMatrix (Fin.last n) p A a := |
| 64 | IsolatedPivotMatrices.Construction.eq_isolatedPivotMatrix (Fin.last n) p R hrow hcol |
| 65 | have hRu : IsUnit R := (hU.isUnit.mul M.isUnit).mul hV.isUnit |
| 66 | have hA : IsUnit A := IsolatedPivotMatrices.Construction.isolatedPivotMatrix_minor_isUnit _ _ A a (hR ▸ hRu) |
| 67 | obtain ⟨U₀, V₀, σ, hU₀, hV₀, hs⟩ := ih hA.unit |
| 68 | have hs' : ∀ i j, j ≠ σ i → (U₀ * A * V₀) i j = 0 := by |
| 69 | simpa only [hA.unit_spec] using hs |
| 70 | let U₁ := IsolatedPivotMatrices.Construction.isolatedPivotMatrix (Fin.last n) (Fin.last n) U₀ 1 |
| 71 | let V₁ := IsolatedPivotMatrices.Construction.isolatedPivotMatrix p p V₀ 1 |
| 72 | have he : (U₁ * U) * M.val * (V * V₁) = |
| 73 | IsolatedPivotMatrices.Construction.isolatedPivotMatrix (Fin.last n) p (U₀ * A * V₀) a := by |
| 74 | calc |
| 75 | (U₁ * U) * M.val * (V * V₁) = U₁ * R * V₁ := by simp only [R, mul_assoc] |
| 76 | _ = IsolatedPivotMatrices.Construction.isolatedPivotMatrix (Fin.last n) p (U₀ * A * V₀) a := by |
| 77 | rw [hR] |
| 78 | change IsolatedPivotMatrices.Construction.isolatedPivotMatrix _ _ _ _ * IsolatedPivotMatrices.Construction.isolatedPivotMatrix _ _ _ _ * |
| 79 | IsolatedPivotMatrices.Construction.isolatedPivotMatrix _ _ _ _ = _ |
| 80 | rw [IsolatedPivotMatrices.Construction.isolatedPivotMatrix_mul, IsolatedPivotMatrices.Construction.isolatedPivotMatrix_mul, one_mul, mul_one] |
| 81 | refine ⟨U₁ * U, V * V₁, isolatedPivotPermutation (Fin.last n) p σ, |
| 82 | (IsolatedPivotMatrices.Construction.isolatedPivotMatrix_unitriangular _ _ hU₀).mul hU, |
| 83 | hV.mul (IsolatedPivotMatrices.Construction.isolatedPivotMatrix_unitriangular _ _ hV₀), ?_⟩ |
| 84 | intro i j hij |
| 85 | rw [he] |
| 86 | exact isolatedPivotMatrix_permutation_support _ _ _ _ σ hs' i j hij |
| 87 | |
| 88 | end |
| 89 | |
| 90 | end OAI.NumberTheory.ArithmeticGroups.Lattices.UpperMonomialElimination.Construction |