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.AbelianModuli.HilbertConstruction.BasisEvaluationMatrices |
| 2 | import Mathlib.Algebra.Module.Projective |
| 3 | |
| 4 | /-! # Split Evaluation Cokernel -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SplitEvaluationCokernel |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Evaluation with an actual left inverse has projective cokernel. |
| 11 | Precomposing it with a surjection does not change that cokernel. This |
| 12 | supplies the flatness required by scheme-theoretic matrix rank loci. -/ |
| 13 | universe u v w z |
| 14 | variable {R : Type u} [CommRing R] |
| 15 | variable {M : Type v} [AddCommGroup M] [Module R M] |
| 16 | variable {N : Type w} [AddCommGroup N] [Module R N] [Module.Projective R N] |
| 17 | |
| 18 | theorem projective_cokernel_of_leftInverse (f : M →ₗ[R] N) (g : N →ₗ[R] M) |
| 19 | (hgf : g.comp f = LinearMap.id) : Module.Projective R (N ⧸ f.range) := by |
| 20 | let P : N →ₗ[R] N := LinearMap.id - f.comp g |
| 21 | have hP : f.range ≤ P.ker := by |
| 22 | rintro _ ⟨x, rfl⟩ |
| 23 | change f x - f (g (f x)) = 0 |
| 24 | rw [show g (f x) = x from LinearMap.congr_fun hgf x, sub_self] |
| 25 | let s : (N ⧸ f.range) →ₗ[R] N := f.range.liftQ P hP |
| 26 | have hs : f.range.mkQ.comp s = LinearMap.id := by |
| 27 | apply LinearMap.ext |
| 28 | intro z |
| 29 | obtain ⟨x, rfl⟩ := f.range.mkQ_surjective z |
| 30 | change f.range.mkQ (x - f (g x)) = f.range.mkQ x |
| 31 | rw [map_sub, show f.range.mkQ (f (g x)) = 0 from |
| 32 | (Submodule.Quotient.mk_eq_zero f.range).mpr ⟨g x, rfl⟩, sub_zero] |
| 33 | exact Module.Projective.of_split s f.range.mkQ hs |
| 34 | |
| 35 | theorem projective_cokernel_of_split_surjective_factorization |
| 36 | {V : Type z} [AddCommGroup V] [Module R V] |
| 37 | (f : M →ₗ[R] N) (g : N →ₗ[R] M) (hgf : g.comp f = LinearMap.id) |
| 38 | (q : V →ₗ[R] M) (hq : Function.Surjective q) : |
| 39 | Module.Projective R (N ⧸ (f.comp q).range) := by |
| 40 | have hr : (f.comp q).range = f.range := by |
| 41 | ext y |
| 42 | constructor |
| 43 | · rintro ⟨x, rfl⟩ |
| 44 | exact ⟨q x, rfl⟩ |
| 45 | · rintro ⟨x, rfl⟩ |
| 46 | obtain ⟨z, rfl⟩ := hq x |
| 47 | exact ⟨z, rfl⟩ |
| 48 | rw [hr] |
| 49 | exact projective_cokernel_of_leftInverse f g hgf |
| 50 | |
| 51 | theorem matrix_projective_cokernel_of_split_factorization |
| 52 | {ι : Type v} {κ : Type w} {ν : Type z} |
| 53 | [Fintype ι] [Fintype κ] [Fintype ν] |
| 54 | [DecidableEq ι] [DecidableEq κ] [DecidableEq ν] |
| 55 | (U : Matrix ι κ R) (B : Matrix κ ι R) (C : Matrix κ ν R) |
| 56 | (hBU : B * U = 1) (hC : Function.Surjective (Matrix.toLin' C)) : |
| 57 | Module.Projective R ((ι → R) ⧸ (Matrix.toLin' (U * C)).range) := by |
| 58 | rw [Matrix.toLin'_mul] |
| 59 | apply projective_cokernel_of_split_surjective_factorization (Matrix.toLin' U) (Matrix.toLin' B) _ _ hC |
| 60 | rw [← Matrix.toLin'_mul, hBU, Matrix.toLin'_one] |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SplitEvaluationCokernel |