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.SchurCokernel |
| 2 | import Mathlib.LinearAlgebra.Matrix.NonsingularInverse |
| 3 | |
| 4 | /-! # Cokernel -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.MatrixPivot.Cokernel.Grassmannian |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Polynomial equations on a determinant-open chart identify the actual cokernel with a finite free module. -/ |
| 11 | |
| 12 | universe u v w z |
| 13 | |
| 14 | variable {R : Type u} [CommRing R] |
| 15 | variable {ι : Type v} {κ : Type w} {τ : Type z} |
| 16 | variable [Fintype ι] [Fintype κ] [Fintype τ] |
| 17 | variable [DecidableEq ι] [DecidableEq κ] [DecidableEq τ] |
| 18 | |
| 19 | def matrixPivotEquiv (A : Matrix ι ι R) (hA : IsUnit A.det) : (ι → R) ≃ₗ[R] (ι → R) where |
| 20 | __ := Matrix.toLin' A |
| 21 | invFun := Matrix.toLin' A⁻¹ |
| 22 | left_inv x := by |
| 23 | change Matrix.toLin' A⁻¹ (Matrix.toLin' A x) = x |
| 24 | rw [← LinearMap.comp_apply, ← Matrix.toLin'_mul, Matrix.nonsing_inv_mul A hA, |
| 25 | Matrix.toLin'_one, LinearMap.id_apply] |
| 26 | right_inv x := by |
| 27 | change Matrix.toLin' A (Matrix.toLin' A⁻¹ x) = x |
| 28 | rw [← LinearMap.comp_apply, ← Matrix.toLin'_mul, Matrix.mul_nonsing_inv A hA, |
| 29 | Matrix.toLin'_one, LinearMap.id_apply] |
| 30 | |
| 31 | def pivotResidual (A : Matrix ι ι R) (B : Matrix ι κ R) (C : Matrix τ ι R) (D : Matrix τ κ R) : |
| 32 | Matrix τ κ R := A.det • D - C * A.adjugate * B |
| 33 | |
| 34 | omit [Fintype κ] [Fintype τ] [DecidableEq κ] [DecidableEq τ] in |
| 35 | theorem pivotResidual_eq_det_smul_schur |
| 36 | (A : Matrix ι ι R) (B : Matrix ι κ R) (C : Matrix τ ι R) (D : Matrix τ κ R) |
| 37 | (hA : IsUnit A.det) : |
| 38 | pivotResidual A B C D = A.det • (D - C * A⁻¹ * B) := by |
| 39 | have hi : A.det • A⁻¹ = A.adjugate := by |
| 40 | rw [Matrix.nonsing_inv_apply A hA, smul_smul, hA.mul_val_inv, one_smul] |
| 41 | rw [smul_sub, ← Matrix.smul_mul, ← Matrix.mul_smul, hi] |
| 42 | rfl |
| 43 | |
| 44 | omit [Fintype κ] [Fintype τ] [DecidableEq κ] [DecidableEq τ] in |
| 45 | theorem pivotResidual_zero_iff (A : Matrix ι ι R) (B : Matrix ι κ R) |
| 46 | (C : Matrix τ ι R) (D : Matrix τ κ R) (hA : IsUnit A.det) : |
| 47 | pivotResidual A B C D = 0 ↔ D - C * A⁻¹ * B = 0 := by |
| 48 | rw [pivotResidual_eq_det_smul_schur A B C D hA] |
| 49 | simpa only [smul_zero] using (hA.smul_left_cancel (x := D - C * A⁻¹ * B) (y := 0)) |
| 50 | |
| 51 | omit [Fintype τ] [DecidableEq τ] in |
| 52 | theorem matrix_schurComplement_toLin |
| 53 | (A : Matrix ι ι R) (B : Matrix ι κ R) (C : Matrix τ ι R) (D : Matrix τ κ R) |
| 54 | (hA : IsUnit A.det) : |
| 55 | SchurCokernel.Grassmannian.schurComplement (matrixPivotEquiv A hA) (Matrix.toLin' B) (Matrix.toLin' C) (Matrix.toLin' D) = |
| 56 | Matrix.toLin' (D - C * A⁻¹ * B) := by |
| 57 | change Matrix.toLin' D - (Matrix.toLin' C).comp ((Matrix.toLin' A⁻¹).comp (Matrix.toLin' B)) = _ |
| 58 | rw [map_sub, Matrix.toLin'_mul, Matrix.toLin'_mul, LinearMap.comp_assoc] |
| 59 | |
| 60 | def matrixPivotCokernelEquiv |
| 61 | (A : Matrix ι ι R) (B : Matrix ι κ R) (C : Matrix τ ι R) (D : Matrix τ κ R) |
| 62 | (hA : IsUnit A.det) (h : pivotResidual A B C D = 0) : |
| 63 | (((ι → R) × (τ → R)) ⧸ |
| 64 | (Grassmannian.Incidence.blockLinearMap (Matrix.toLin' A) (Matrix.toLin' B) (Matrix.toLin' C) (Matrix.toLin' D)).range) ≃ₗ[R] |
| 65 | (τ → R) := |
| 66 | SchurCokernel.Grassmannian.schurZeroCokernelEquiv (matrixPivotEquiv A hA) (Matrix.toLin' B) (Matrix.toLin' C) (Matrix.toLin' D) (by |
| 67 | rw [matrix_schurComplement_toLin, (pivotResidual_zero_iff A B C D hA).mp h, map_zero]) |
| 68 | |
| 69 | omit [Fintype κ] [Fintype τ] [DecidableEq κ] [DecidableEq τ] in |
| 70 | theorem pivotResidual_map {S : Type*} [CommRing S] (φ : R →+* S) |
| 71 | (A : Matrix ι ι R) (B : Matrix ι κ R) (C : Matrix τ ι R) (D : Matrix τ κ R) : |
| 72 | (pivotResidual A B C D).map φ = pivotResidual (A.map φ) (B.map φ) (C.map φ) (D.map φ) := by |
| 73 | have ha : A.adjugate.map φ = (A.map φ).adjugate := φ.map_adjugate A |
| 74 | have hd : φ A.det = (A.map φ).det := φ.map_det A |
| 75 | have hs : (A.det • D).map φ = φ A.det • D.map φ := by |
| 76 | ext i j |
| 77 | exact φ.map_mul A.det (D i j) |
| 78 | simp only [pivotResidual, Matrix.map_sub _ φ.map_sub, Matrix.map_mul, hs, hd, ha] |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.MatrixPivot.Cokernel.Grassmannian |