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.Local.FlatMatrixPivotCover |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.MatrixPivot.Transitions |
| 3 | |
| 4 | /-! # Fixed Rank Cokernel -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Local.FixedRankCokernel.Grassmannian |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A finite matrix over a local ring has flat cokernel of the prescribed rank |
| 11 | exactly when it lies in one of the coordinate pivot charts of that size. -/ |
| 12 | |
| 13 | universe u v w z |
| 14 | variable {R : Type u} [CommRing R] [IsLocalRing R] |
| 15 | variable {ι : Type v} {μ : Type w} {ν : Type z} |
| 16 | variable [Fintype ι] [Fintype μ] [Fintype ν] |
| 17 | variable [DecidableEq ι] [DecidableEq μ] [DecidableEq ν] |
| 18 | |
| 19 | theorem local_cokernel_flat_fixed_rank_iff (A : Matrix ν μ R) : |
| 20 | (Module.Flat R ((ν → R) ⧸ (Matrix.toLin' A).range) ∧ |
| 21 | Module.finrank R ((ν → R) ⧸ (Matrix.toLin' A).range) + Fintype.card ι = Fintype.card ν) ↔ |
| 22 | ∃ (a : ι ↪ μ) (b : ι ↪ ν), IsUnit (A.submatrix b a).det ∧ MatrixPivot.PivotCokernel.Grassmannian.fullPivotResidual A a b = 0 := by |
| 23 | classical |
| 24 | constructor |
| 25 | · rintro ⟨hflat, hr⟩ |
| 26 | let := hflat |
| 27 | obtain ⟨q, a, b, ha, hb, hu, hz, hq⟩ := |
| 28 | FlatMatrixPivotCover.Grassmannian.local_flat_matrix_pivot_cover_rank A (Module.finrank R ((ν → R) ⧸ (Matrix.toLin' A).range)) rfl |
| 29 | have hqi : q = Fintype.card ι := by omega |
| 30 | let e : ι ≃ Fin q := Fintype.equivOfCardEq (by rw [Fintype.card_fin, hqi]) |
| 31 | let a' : ι ↪ μ := ⟨a ∘ e, ha.comp e.injective⟩ |
| 32 | let b' : ι ↪ ν := ⟨b ∘ e, hb.comp e.injective⟩ |
| 33 | have hu' : IsUnit (A.submatrix b' a').det := by |
| 34 | change IsUnit ((A.submatrix b a).submatrix e e).det |
| 35 | rwa [Matrix.det_submatrix_equiv_self] |
| 36 | refine ⟨a', b', hu', ?_⟩ |
| 37 | let E := MatrixPivot.PivotCokernel.Grassmannian.normalizedPivotColumns A a b |
| 38 | let F := A.submatrix b id |
| 39 | have hA : A = E * F := MatrixPivot.PivotCokernel.Grassmannian.fullPivotResidual_factorization A a b hu hz |
| 40 | apply MatrixPivot.Transitions.Grassmannian.fullPivotResidual_zero_of_width_factorization A (E.submatrix id e) (F.submatrix e id) _ a' b' hu' |
| 41 | rw [Matrix.submatrix_mul_equiv, Matrix.submatrix_id_id] |
| 42 | exact hA |
| 43 | · rintro ⟨a, b, hu, hz⟩ |
| 44 | let e := MatrixPivot.PivotCokernel.Grassmannian.fullMatrixPivotCokernelEquiv A a b hu hz |
| 45 | have hflat : Module.Flat R ((ν → R) ⧸ (Matrix.toLin' A).range) := Module.Flat.of_linearEquiv e |
| 46 | have hc : Fintype.card {j : ν // j ∈ Set.range b} = Fintype.card ι := |
| 47 | (Fintype.card_congr (Equiv.ofInjective b b.injective)).symm |
| 48 | have hle : Fintype.card ι ≤ Fintype.card ν := Fintype.card_le_of_injective b b.injective |
| 49 | have hr := e.finrank_eq |
| 50 | rw [Module.finrank_fintype_fun_eq_card, Fintype.card_subtype_compl, hc] at hr |
| 51 | exact ⟨hflat, by omega⟩ |
| 52 | |
| 53 | end |
| 54 | |
| 55 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Local.FixedRankCokernel.Grassmannian |