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.PivotCokernel |
| 2 | import Mathlib.RingTheory.Grassmannian |
| 3 | |
| 4 | /-! # Rank -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.MatrixPivot.Rank.Grassmannian |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The cokernel rank on a full matrix-pivot chart is the number of complementary rows. -/ |
| 11 | |
| 12 | universe u v w z |
| 13 | |
| 14 | variable {R : Type u} [CommRing R] {ι : Type v} {μ : Type w} {ν : Type z} |
| 15 | variable [Fintype ι] [Fintype μ] [Fintype ν] |
| 16 | variable [DecidableEq ι] [DecidableEq μ] [DecidableEq ν] |
| 17 | |
| 18 | theorem fullMatrixPivotCokernel_rankAtStalk |
| 19 | (A : Matrix ν μ R) (a : ι → μ) (b : ι → ν) (hb : Function.Injective b) |
| 20 | (h : IsUnit (A.submatrix b a).det) (hres : PivotCokernel.Grassmannian.fullPivotResidual A a b = 0) (p : PrimeSpectrum R) : |
| 21 | Module.rankAtStalk (R := R) ((ν → R) ⧸ (Matrix.toLin' A).range) p = |
| 22 | Fintype.card ν - Fintype.card ι := by |
| 23 | classical |
| 24 | have : Nontrivial R := Function.Surjective.nontrivial |
| 25 | (f := Ideal.Quotient.mk p.asIdeal) Ideal.Quotient.mk_surjective |
| 26 | rw [congrFun (Module.rankAtStalk_eq_of_equiv (PivotCokernel.Grassmannian.fullMatrixPivotCokernelEquiv A a b h hres)) p, |
| 27 | Module.rankAtStalk_eq_finrank_of_free, Module.finrank_fintype_fun_eq_card, |
| 28 | Fintype.card_subtype_compl] |
| 29 | have hc : Fintype.card {j : ν // j ∈ Set.range b} = Fintype.card ι := |
| 30 | (Fintype.card_congr (Equiv.ofInjective b hb)).symm |
| 31 | rw [hc] |
| 32 | rfl |
| 33 | |
| 34 | def fullMatrixPivotGrassmannian |
| 35 | (A : Matrix ν μ R) (a : ι → μ) (b : ι → ν) (hb : Function.Injective b) |
| 36 | (h : IsUnit (A.submatrix b a).det) (hres : PivotCokernel.Grassmannian.fullPivotResidual A a b = 0) : |
| 37 | Module.Grassmannian R (ν → R) (Fintype.card ν - Fintype.card ι) := by |
| 38 | classical |
| 39 | exact { |
| 40 | toSubmodule := (Matrix.toLin' A).range |
| 41 | finite_quotient := inferInstance |
| 42 | projective_quotient := Module.Projective.of_equiv (PivotCokernel.Grassmannian.fullMatrixPivotCokernelEquiv A a b h hres).symm |
| 43 | rankAtStalk_eq := fullMatrixPivotCokernel_rankAtStalk A a b hb h hres } |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.MatrixPivot.Rank.Grassmannian |