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 | /-! # Column Cokernel -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Normalized.ColumnCokernel.Grassmannian |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A column matrix with identity on selected rows has an explicit free cokernel on the complementary coordinates. -/ |
| 10 | |
| 11 | universe u v w |
| 12 | |
| 13 | variable {R : Type u} [CommRing R] {ι : Type v} {ν : Type w} |
| 14 | variable [Fintype ι] [DecidableEq ι] |
| 15 | |
| 16 | def rowRestriction (b : ι → ν) : (ν → R) →ₗ[R] (ι → R) where |
| 17 | toFun x := x ∘ b |
| 18 | map_add' _ _ := rfl |
| 19 | map_smul' _ _ := rfl |
| 20 | |
| 21 | def normalizedColumnProjection (b : ι → ν) (E : Matrix ν ι R) : |
| 22 | (ν → R) →ₗ[R] ({j : ν // j ∉ Set.range b} → R) := |
| 23 | (LinearMap.pi (fun j => LinearMap.proj j.val)).comp |
| 24 | (LinearMap.id - (Matrix.toLin' E).comp (rowRestriction b)) |
| 25 | |
| 26 | theorem rowRestriction_matrix (b : ι → ν) (E : Matrix ν ι R) (y : ι → R) : |
| 27 | rowRestriction b (Matrix.toLin' E y) = Matrix.toLin' (E.submatrix b id) y := by |
| 28 | funext i |
| 29 | change Matrix.toLin' E y (b i) = Matrix.toLin' (E.submatrix b id) y i |
| 30 | rw [Matrix.toLin'_apply, Matrix.toLin'_apply] |
| 31 | rfl |
| 32 | |
| 33 | theorem normalizedColumn_rows_section (b : ι → ν) (E : Matrix ν ι R) |
| 34 | (hE : E.submatrix b id = 1) (y : ι → R) : rowRestriction b (Matrix.toLin' E y) = y := by |
| 35 | rw [rowRestriction_matrix, hE, Matrix.toLin'_one, LinearMap.id_apply] |
| 36 | |
| 37 | def complementaryCoordinatesExtend (b : ι → ν) (y : {j : ν // j ∉ Set.range b} → R) : ν → R := by |
| 38 | classical |
| 39 | exact fun j => if h : j ∈ Set.range b then 0 else y ⟨j, h⟩ |
| 40 | |
| 41 | omit [DecidableEq ι] in |
| 42 | theorem complementaryCoordinatesExtend_rows (b : ι → ν) |
| 43 | (y : {j : ν // j ∉ Set.range b} → R) : rowRestriction b (complementaryCoordinatesExtend b y) = 0 := by |
| 44 | classical |
| 45 | funext i |
| 46 | change complementaryCoordinatesExtend b y (b i) = 0 |
| 47 | simp [complementaryCoordinatesExtend] |
| 48 | |
| 49 | theorem normalizedColumnProjection_surjective (b : ι → ν) (E : Matrix ν ι R) : |
| 50 | Function.Surjective (normalizedColumnProjection b E) := by |
| 51 | classical |
| 52 | intro y |
| 53 | refine ⟨complementaryCoordinatesExtend b y, ?_⟩ |
| 54 | funext j |
| 55 | change complementaryCoordinatesExtend b y j.val - |
| 56 | Matrix.toLin' E (rowRestriction b (complementaryCoordinatesExtend b y)) j.val = y j |
| 57 | rw [complementaryCoordinatesExtend_rows, map_zero, Pi.zero_apply, sub_zero] |
| 58 | simp only [complementaryCoordinatesExtend, dite_eq_right j.property] |
| 59 | |
| 60 | theorem normalizedColumnProjection_kernel (b : ι → ν) (E : Matrix ν ι R) |
| 61 | (hE : E.submatrix b id = 1) : |
| 62 | (normalizedColumnProjection b E).ker = (Matrix.toLin' E).range := by |
| 63 | classical |
| 64 | ext x |
| 65 | constructor |
| 66 | · intro hx |
| 67 | refine ⟨rowRestriction b x, ?_⟩ |
| 68 | funext j |
| 69 | by_cases hj : j ∈ Set.range b |
| 70 | · obtain ⟨i, rfl⟩ := hj |
| 71 | exact congrFun (normalizedColumn_rows_section b E hE (rowRestriction b x)) i |
| 72 | · have hjx := congrFun hx (⟨j, hj⟩ : {j : ν // j ∉ Set.range b}) |
| 73 | change x j - Matrix.toLin' E (rowRestriction b x) j = 0 at hjx |
| 74 | exact (sub_eq_zero.mp hjx).symm |
| 75 | · rintro ⟨y, rfl⟩ |
| 76 | change normalizedColumnProjection b E (Matrix.toLin' E y) = 0 |
| 77 | funext j |
| 78 | change Matrix.toLin' E y j.val - Matrix.toLin' E (rowRestriction b (Matrix.toLin' E y)) j.val = 0 |
| 79 | rw [normalizedColumn_rows_section b E hE, sub_self] |
| 80 | |
| 81 | def normalizedColumnCokernelEquiv (b : ι → ν) (E : Matrix ν ι R) |
| 82 | (hE : E.submatrix b id = 1) : |
| 83 | ((ν → R) ⧸ (Matrix.toLin' E).range) ≃ₗ[R] ({j : ν // j ∉ Set.range b} → R) := |
| 84 | (Submodule.quotEquivOfEq _ _ (normalizedColumnProjection_kernel b E hE).symm).trans |
| 85 | ((normalizedColumnProjection b E).quotKerEquivOfSurjective (normalizedColumnProjection_surjective b E)) |
| 86 | |
| 87 | end |
| 88 | |
| 89 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Normalized.ColumnCokernel.Grassmannian |