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 Mathlib.RingTheory.LocalRing.Module |
| 3 | import Mathlib.LinearAlgebra.FreeModule.Finite.Basic |
| 4 | |
| 5 | /-! # Matrix Minors -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Local.MatrixMinors.Grassmannian |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Surjective matrices over local rings have invertible coordinate minors. -/ |
| 12 | |
| 13 | universe u v w |
| 14 | |
| 15 | variable {R : Type u} [CommRing R] [IsLocalRing R] |
| 16 | variable {ι : Type v} {ν : Type w} [Fintype ι] [Fintype ν] |
| 17 | variable [DecidableEq ι] [DecidableEq ν] |
| 18 | |
| 19 | theorem local_surjective_matrix_unit_minor (A : Matrix ι ν R) |
| 20 | (hA : Function.Surjective (Matrix.toLin' A)) : |
| 21 | ∃ a : ι → ν, Function.Injective a ∧ IsUnit (A.submatrix id a).det := by |
| 22 | classical |
| 23 | let v : ν → (ι → R) := Matrix.toLin' A ∘ Pi.basisFun R ν |
| 24 | have hv : Submodule.span R (Set.range v) = ⊤ := by |
| 25 | rw [Set.range_comp, ← Submodule.map_span, (Pi.basisFun R ν).span_eq, Submodule.map_top] |
| 26 | exact LinearMap.range_eq_top.mpr hA |
| 27 | obtain ⟨κ, a, B, hB⟩ := Module.exists_basis_of_span_of_flat v hv |
| 28 | have ha : Function.Injective a := by |
| 29 | intro i j hij |
| 30 | apply B.injective |
| 31 | rw [hB i, hB j, hij] |
| 32 | have : Finite κ := Finite.of_injective a ha |
| 33 | let : Fintype κ := Fintype.ofFinite κ |
| 34 | let e : κ ≃ ι := Fintype.equivOfCardEq (by |
| 35 | rw [← Module.finrank_eq_card_basis B, Module.finrank_fintype_fun_eq_card]) |
| 36 | let C := B.reindex e |
| 37 | let a' := a ∘ e.symm |
| 38 | have hC (i : ι) : C i = fun j => A j (a' i) := by |
| 39 | rw [Module.Basis.reindex_apply, hB] |
| 40 | funext j |
| 41 | simp [v, a', Matrix.toLin'_apply, Matrix.col_apply] |
| 42 | have hM : Matrix.toLin' (A.submatrix id a') = C.equivFun.symm.toLinearMap := by |
| 43 | apply (Pi.basisFun R ι).ext |
| 44 | intro i |
| 45 | have hCi : C.equivFun.symm (Pi.single i 1) = C i := by |
| 46 | apply C.equivFun.injective |
| 47 | simp |
| 48 | funext j |
| 49 | simpa only [Pi.basisFun_apply, Matrix.toLin'_apply, Matrix.mulVec_single_one, Matrix.col_apply, |
| 50 | Matrix.submatrix_apply, id_eq, LinearEquiv.coe_coe, hCi] using congrFun (hC i).symm j |
| 51 | have hunit : IsUnit (C.equivFun.symm.toLinearMap : Module.End R (ι → R)) := by |
| 52 | refine ⟨⟨C.equivFun.symm.toLinearMap, C.equivFun.toLinearMap, ?_, ?_⟩, rfl⟩ |
| 53 | · apply LinearMap.ext |
| 54 | intro x |
| 55 | exact C.equivFun.symm_apply_apply x |
| 56 | · apply LinearMap.ext |
| 57 | intro x |
| 58 | exact C.equivFun.apply_symm_apply x |
| 59 | rw [← hM] at hunit |
| 60 | exact ⟨a', ha.comp e.symm.injective, |
| 61 | (Matrix.isUnit_iff_isUnit_det _).mp (Matrix.isUnit_toLin'_iff.mp hunit)⟩ |
| 62 | |
| 63 | theorem local_split_matrix_unit_row_minor (A : Matrix ν ι R) (L : Matrix ι ν R) |
| 64 | (hLA : L * A = 1) : |
| 65 | ∃ a : ι → ν, Function.Injective a ∧ IsUnit (A.submatrix a id).det := by |
| 66 | have htranspose : A.transpose * L.transpose = 1 := by |
| 67 | rw [← Matrix.transpose_mul, hLA, Matrix.transpose_one] |
| 68 | have hsurj : Function.Surjective (Matrix.toLin' A.transpose) := by |
| 69 | intro x |
| 70 | refine ⟨Matrix.toLin' L.transpose x, ?_⟩ |
| 71 | rw [← LinearMap.comp_apply, ← Matrix.toLin'_mul, htranspose, Matrix.toLin'_one, LinearMap.id_apply] |
| 72 | obtain ⟨a, ha, hdet⟩ := local_surjective_matrix_unit_minor A.transpose hsurj |
| 73 | refine ⟨a, ha, ?_⟩ |
| 74 | have ht : A.transpose.submatrix id a = (A.submatrix a id).transpose := rfl |
| 75 | rwa [ht, Matrix.det_transpose] at hdet |
| 76 | |
| 77 | end |
| 78 | |
| 79 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Local.MatrixMinors.Grassmannian |