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.Quotients |
| 2 | |
| 3 | /-! # Overlap Equations -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Normalized.OverlapEquations.Grassmannian |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | Equality of two normalized quotients is a closed matrix condition. The |
| 11 | equations force the relevant pivot to be invertible and recover precisely |
| 12 | the previously constructed transition on the overlap. |
| 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 quotientCompatibilityEquations (b : ι → ν) (Q K : Matrix ι ν R) : Matrix ι ν R := |
| 21 | Q - Matrices.Grassmannian.selectedColumns b Q * K |
| 22 | |
| 23 | theorem quotientCompatibility_iff_transition (a b : ι → ν) (Q K : Matrix ι ν R) |
| 24 | (hQ : Matrices.Grassmannian.IsNormalized a Q) : quotientCompatibilityEquations b Q K = 0 ↔ |
| 25 | IsUnit (Matrices.Grassmannian.selectedColumns b Q).det ∧ K = Matrices.Grassmannian.normalizeColumns b Q := by |
| 26 | change Q - Matrices.Grassmannian.selectedColumns b Q * K = 0 ↔ _ |
| 27 | rw [sub_eq_zero] |
| 28 | constructor |
| 29 | · intro h |
| 30 | have hunit : IsUnit (Matrices.Grassmannian.selectedColumns b Q).det := by |
| 31 | apply Matrix.isUnit_det_of_right_inverse |
| 32 | have hc := congrArg (Matrices.Grassmannian.selectedColumns a) h |
| 33 | rw [Matrices.Grassmannian.selectedColumns_mul, hQ] at hc |
| 34 | exact hc.symm |
| 35 | refine ⟨hunit, ?_⟩ |
| 36 | unfold Matrices.Grassmannian.normalizeColumns |
| 37 | exact ((congrArg (fun M => (Matrices.Grassmannian.selectedColumns b Q)⁻¹ * M) h).trans |
| 38 | (Matrix.nonsing_inv_mul_cancel_left _ _ hunit)).symm |
| 39 | · rintro ⟨hunit, rfl⟩ |
| 40 | exact (Matrix.mul_nonsing_inv_cancel_left (Matrices.Grassmannian.selectedColumns b Q) Q hunit).symm |
| 41 | |
| 42 | theorem quotientCompatibility_symm (a b : ι → ν) (Q K : Matrix ι ν R) |
| 43 | (hQ : Matrices.Grassmannian.IsNormalized a Q) (h : quotientCompatibilityEquations b Q K = 0) : |
| 44 | quotientCompatibilityEquations a K Q = 0 := by |
| 45 | obtain ⟨hb, rfl⟩ := (quotientCompatibility_iff_transition a b Q K hQ).mp h |
| 46 | apply (quotientCompatibility_iff_transition b a _ _ (Matrices.Grassmannian.normalizeColumns_normalized b Q hb)).mpr |
| 47 | refine ⟨?_, (Matrices.Grassmannian.normalizeColumns_inverse a b Q hQ hb).symm⟩ |
| 48 | apply (Matrices.Grassmannian.normalizeColumns_pivot_isUnit_iff a b Q hb).mpr |
| 49 | rw [hQ, Matrix.det_one] |
| 50 | exact isUnit_one |
| 51 | |
| 52 | omit [DecidableEq ι] in |
| 53 | theorem quotientCompatibility_map {S : Type*} [CommRing S] (φ : R →+* S) |
| 54 | (b : ι → ν) (Q K : Matrix ι ν R) : |
| 55 | quotientCompatibilityEquations b (Q.map φ) (K.map φ) = |
| 56 | (quotientCompatibilityEquations b Q K).map φ := by |
| 57 | unfold quotientCompatibilityEquations |
| 58 | rw [Matrices.Grassmannian.selectedColumns_map, ← Matrix.map_mul] |
| 59 | ext i j |
| 60 | exact (map_sub φ _ _).symm |
| 61 | |
| 62 | variable [Fintype ν] [DecidableEq ν] |
| 63 | |
| 64 | theorem quotientCompatibility_iff_kernel_eq (a b : ι → ν) (Q K : Matrix ι ν R) |
| 65 | (hQ : Matrices.Grassmannian.IsNormalized a Q) (hK : Matrices.Grassmannian.IsNormalized b K) : |
| 66 | quotientCompatibilityEquations b Q K = 0 ↔ (Matrix.toLin' Q).ker = (Matrix.toLin' K).ker := by |
| 67 | constructor |
| 68 | · intro h |
| 69 | have h' := quotientCompatibility_symm a b Q K hQ h |
| 70 | have hQK : Q = Matrices.Grassmannian.selectedColumns b Q * K := sub_eq_zero.mp h |
| 71 | have hKQ : K = Matrices.Grassmannian.selectedColumns a K * Q := sub_eq_zero.mp h' |
| 72 | apply le_antisymm |
| 73 | · intro x hx |
| 74 | change Matrix.toLin' K x = 0 |
| 75 | rw [hKQ, Matrix.toLin'_mul, LinearMap.comp_apply, hx, map_zero] |
| 76 | · intro x hx |
| 77 | change Matrix.toLin' Q x = 0 |
| 78 | rw [hQK, Matrix.toLin'_mul, LinearMap.comp_apply, hx, map_zero] |
| 79 | · intro hker |
| 80 | apply sub_eq_zero.mpr |
| 81 | apply Matrix.toLin'.injective |
| 82 | rw [Matrix.toLin'_mul, ← Quotients.Grassmannian.matrix_comp_selectedBasisMap] |
| 83 | apply LinearMap.ext |
| 84 | intro x |
| 85 | have hx : x - Quotients.Grassmannian.selectedBasisMap b (Matrix.toLin' K x) ∈ (Matrix.toLin' K).ker := by |
| 86 | change Matrix.toLin' K (x - Quotients.Grassmannian.selectedBasisMap b (Matrix.toLin' K x)) = 0 |
| 87 | rw [map_sub, Quotients.Grassmannian.normalizedMatrix_section b K hK, sub_self] |
| 88 | rw [← hker] at hx |
| 89 | change Matrix.toLin' Q (x - Quotients.Grassmannian.selectedBasisMap b (Matrix.toLin' K x)) = 0 at hx |
| 90 | rw [map_sub, sub_eq_zero] at hx |
| 91 | exact hx |
| 92 | |
| 93 | end |
| 94 | |
| 95 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Normalized.OverlapEquations.Grassmannian |