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.Normalized.Matrices |
| 2 | |
| 3 | /-! # Determinants -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Plucker.Determinants.Grassmannian |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | Determinant identities for the Plücker coordinates of quotient matrices. |
| 11 | Replacing one selected column recovers affine chart coordinates, and the |
| 12 | full determinant identity holds over every commutative coefficient ring. |
| 13 | -/ |
| 14 | |
| 15 | universe u v w |
| 16 | |
| 17 | variable {R : Type u} [CommRing R] |
| 18 | variable {ι : Type v} {ν : Type w} [Fintype ι] [DecidableEq ι] |
| 19 | |
| 20 | def maximalMinor (Q : Matrix ι ν R) (a : ι → ν) : R := (Normalized.Matrices.Grassmannian.selectedColumns a Q).det |
| 21 | |
| 22 | def replacementMinors (a : ι → ν) (Q : Matrix ι ν R) : Matrix ι ν R := |
| 23 | fun i v => maximalMinor Q (Function.update a i v) |
| 24 | |
| 25 | omit [CommRing R] [Fintype ι] in |
| 26 | theorem selectedColumns_update (a : ι → ν) (Q : Matrix ι ν R) (i : ι) (v : ν) : |
| 27 | Normalized.Matrices.Grassmannian.selectedColumns (Function.update a i v) Q = |
| 28 | (Normalized.Matrices.Grassmannian.selectedColumns a Q).updateCol i (fun j => Q j v) := by |
| 29 | ext j k |
| 30 | by_cases h : k = i |
| 31 | · subst k |
| 32 | simp [Normalized.Matrices.Grassmannian.selectedColumns, Matrix.updateCol] |
| 33 | · simp [Normalized.Matrices.Grassmannian.selectedColumns, Matrix.updateCol, h] |
| 34 | |
| 35 | theorem replacementMinors_eq_adjugate (a : ι → ν) (Q : Matrix ι ν R) : |
| 36 | replacementMinors a Q = (Normalized.Matrices.Grassmannian.selectedColumns a Q).adjugate * Q := by |
| 37 | ext i v |
| 38 | change (Normalized.Matrices.Grassmannian.selectedColumns (Function.update a i v) Q).det = _ |
| 39 | rw [selectedColumns_update, ← Matrix.cramer_apply, Matrix.cramer_eq_adjugate_mulVec] |
| 40 | rfl |
| 41 | |
| 42 | theorem replacementMinors_of_normalized (a : ι → ν) (Q : Matrix ι ν R) |
| 43 | (h : Normalized.Matrices.Grassmannian.IsNormalized a Q) : replacementMinors a Q = Q := by |
| 44 | rw [replacementMinors_eq_adjugate, h, Matrix.adjugate_one, Matrix.one_mul] |
| 45 | |
| 46 | /-- The determinant relation expressing all minors in the affine coordinates |
| 47 | of a selected chart; this includes the zero-rank case. -/ |
| 48 | theorem replacementMinors_determinant (a b : ι → ν) (Q : Matrix ι ν R) : |
| 49 | maximalMinor (replacementMinors a Q) b = |
| 50 | maximalMinor Q a ^ (Fintype.card ι - 1) * maximalMinor Q b := by |
| 51 | unfold maximalMinor |
| 52 | rw [replacementMinors_eq_adjugate, Normalized.Matrices.Grassmannian.selectedColumns_mul, Matrix.det_mul, Matrix.det_adjugate] |
| 53 | |
| 54 | theorem maximalMinor_normalized (a : ι → ν) (Q : Matrix ι ν R) (h : Normalized.Matrices.Grassmannian.IsNormalized a Q) : |
| 55 | maximalMinor Q a = 1 := by |
| 56 | rw [maximalMinor, h, Matrix.det_one] |
| 57 | |
| 58 | theorem maximalMinor_map {S : Type*} [CommRing S] (φ : R →+* S) |
| 59 | (a : ι → ν) (Q : Matrix ι ν R) : maximalMinor (Q.map φ) a = φ (maximalMinor Q a) := |
| 60 | (φ.map_det (Normalized.Matrices.Grassmannian.selectedColumns a Q)).symm |
| 61 | |
| 62 | theorem maximalMinor_normalize (a b : ι → ν) (Q : Matrix ι ν R) |
| 63 | (h : IsUnit (maximalMinor Q a)) : |
| 64 | maximalMinor Q a * maximalMinor (Normalized.Matrices.Grassmannian.normalizeColumns a Q) b = maximalMinor Q b := by |
| 65 | change (Normalized.Matrices.Grassmannian.selectedColumns a Q).det * (Normalized.Matrices.Grassmannian.selectedColumns b (Normalized.Matrices.Grassmannian.normalizeColumns a Q)).det = _ |
| 66 | rw [Normalized.Matrices.Grassmannian.selectedColumns_normalize, Matrix.det_mul, ← mul_assoc] |
| 67 | have hi : (Normalized.Matrices.Grassmannian.selectedColumns a Q).det * (Normalized.Matrices.Grassmannian.selectedColumns a Q)⁻¹.det = 1 := by |
| 68 | rw [← Matrix.det_mul, Matrix.mul_nonsing_inv _ h, Matrix.det_one] |
| 69 | rw [hi, one_mul] |
| 70 | rfl |
| 71 | |
| 72 | theorem maximalMinors_injective_on_normalized (a : ι → ν) (Q K : Matrix ι ν R) |
| 73 | (hQ : Normalized.Matrices.Grassmannian.IsNormalized a Q) (hK : Normalized.Matrices.Grassmannian.IsNormalized a K) |
| 74 | (h : ∀ b, maximalMinor Q b = maximalMinor K b) : Q = K := by |
| 75 | rw [← replacementMinors_of_normalized a Q hQ, ← replacementMinors_of_normalized a K hK] |
| 76 | ext i v |
| 77 | exact h (Function.update a i v) |
| 78 | |
| 79 | end |
| 80 | |
| 81 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Plucker.Determinants.Grassmannian |