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.HilbertScheme.Presentations.MatrixPivot.Cokernel |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Normalized.ColumnCokernel |
| 3 | |
| 4 | /-! # Pivot Cokernel -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.MatrixPivot.PivotCokernel.Grassmannian |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Pivot equations for an arbitrary rectangular presentation matrix and its actual cokernel. -/ |
| 11 | |
| 12 | universe u v w z |
| 13 | |
| 14 | variable {R : Type u} [CommRing R] {ι : Type v} {μ : Type w} {ν : Type z} |
| 15 | variable [Fintype ι] [Fintype μ] |
| 16 | variable [DecidableEq ι] [DecidableEq μ] |
| 17 | |
| 18 | def fullPivotResidual (A : Matrix ν μ R) (a : ι → μ) (b : ι → ν) : Matrix ν μ R := |
| 19 | Cokernel.Grassmannian.pivotResidual (A.submatrix b a) (A.submatrix b id) (A.submatrix id a) A |
| 20 | |
| 21 | def normalizedPivotColumns (A : Matrix ν μ R) (a : ι → μ) (b : ι → ν) : Matrix ν ι R := |
| 22 | A.submatrix id a * (A.submatrix b a)⁻¹ |
| 23 | |
| 24 | omit [Fintype μ] [DecidableEq μ] in |
| 25 | theorem normalizedPivotColumns_rows (A : Matrix ν μ R) (a : ι → μ) (b : ι → ν) |
| 26 | (h : IsUnit (A.submatrix b a).det) : |
| 27 | (normalizedPivotColumns A a b).submatrix b id = 1 := by |
| 28 | ext i j |
| 29 | exact congrArg (fun M : Matrix ι ι R => M i j) (Matrix.mul_nonsing_inv (A.submatrix b a) h) |
| 30 | |
| 31 | omit [Fintype μ] [DecidableEq μ] in |
| 32 | theorem fullPivotResidual_factorization (A : Matrix ν μ R) (a : ι → μ) (b : ι → ν) |
| 33 | (h : IsUnit (A.submatrix b a).det) (hres : fullPivotResidual A a b = 0) : |
| 34 | A = normalizedPivotColumns A a b * A.submatrix b id := |
| 35 | sub_eq_zero.mp ((Cokernel.Grassmannian.pivotResidual_zero_iff (A.submatrix b a) (A.submatrix b id) |
| 36 | (A.submatrix id a) A h).mp hres) |
| 37 | |
| 38 | omit [Fintype μ] [DecidableEq μ] in |
| 39 | theorem fullPivotResidual_zero_of_factorization (A : Matrix ν μ R) (a : ι → μ) (b : ι → ν) |
| 40 | (h : IsUnit (A.submatrix b a).det) (F : Matrix ι μ R) (hF : A = A.submatrix id a * F) : |
| 41 | fullPivotResidual A a b = 0 := by |
| 42 | have hrow : A.submatrix b id = A.submatrix b a * F := by |
| 43 | ext i j |
| 44 | exact congrArg (fun M : Matrix ν μ R => M (b i) j) hF |
| 45 | apply (Cokernel.Grassmannian.pivotResidual_zero_iff (A.submatrix b a) (A.submatrix b id) (A.submatrix id a) A h).mpr |
| 46 | rw [hrow, Matrix.mul_assoc, Matrix.nonsing_inv_mul_cancel_left _ _ h] |
| 47 | exact sub_eq_zero.mpr hF |
| 48 | |
| 49 | theorem normalizedPivotColumns_range_le (A : Matrix ν μ R) (a : ι → μ) (b : ι → ν) : |
| 50 | (Matrix.toLin' (normalizedPivotColumns A a b)).range ≤ (Matrix.toLin' A).range := by |
| 51 | have hC : Matrix.toLin' (A.submatrix id a) = (Matrix.toLin' A).comp (Normalized.Quotients.Grassmannian.selectedBasisMap a) := by |
| 52 | change Matrix.toLin' (A.submatrix id a) = |
| 53 | (Matrix.toLin' A).comp (Matrix.toLin' ((1 : Matrix μ μ R).submatrix id a)) |
| 54 | rw [← Matrix.toLin'_mul] |
| 55 | exact congrArg Matrix.toLin' (Matrix.mul_submatrix_one (Equiv.refl μ) a A).symm |
| 56 | rw [normalizedPivotColumns, Matrix.toLin'_mul, hC, LinearMap.comp_assoc] |
| 57 | exact LinearMap.range_comp_le_range _ _ |
| 58 | |
| 59 | theorem fullPivotResidual_range (A : Matrix ν μ R) (a : ι → μ) (b : ι → ν) |
| 60 | (h : IsUnit (A.submatrix b a).det) (hres : fullPivotResidual A a b = 0) : |
| 61 | (Matrix.toLin' A).range = (Matrix.toLin' (normalizedPivotColumns A a b)).range := by |
| 62 | apply le_antisymm _ (normalizedPivotColumns_range_le A a b) |
| 63 | have he := congrArg Matrix.toLin' (fullPivotResidual_factorization A a b h hres) |
| 64 | rw [Matrix.toLin'_mul] at he |
| 65 | rw [he] |
| 66 | exact LinearMap.range_comp_le_range _ _ |
| 67 | |
| 68 | def fullMatrixPivotCokernelEquiv (A : Matrix ν μ R) (a : ι → μ) (b : ι → ν) |
| 69 | (h : IsUnit (A.submatrix b a).det) (hres : fullPivotResidual A a b = 0) : |
| 70 | ((ν → R) ⧸ (Matrix.toLin' A).range) ≃ₗ[R] ({j : ν // j ∉ Set.range b} → R) := |
| 71 | (Submodule.quotEquivOfEq _ _ (fullPivotResidual_range A a b h hres)).trans |
| 72 | (Normalized.ColumnCokernel.Grassmannian.normalizedColumnCokernelEquiv b (normalizedPivotColumns A a b) (normalizedPivotColumns_rows A a b h)) |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.MatrixPivot.PivotCokernel.Grassmannian |