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 Mathlib.LinearAlgebra.Basis.VectorSpace |
| 2 | import Mathlib.Algebra.Module.Projective |
| 3 | import Mathlib.LinearAlgebra.Matrix.ToLin |
| 4 | |
| 5 | /-! # Inner Inverse -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Linear.InnerInverse |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Every linear map of vector spaces has an inner inverse. For a |
| 12 | rational matrix, this supplies a rational projection onto its kernel. -/ |
| 13 | open scoped Classical |
| 14 | universe u v w |
| 15 | variable {K : Type u} [Field K] |
| 16 | variable {V : Type v} [AddCommGroup V] [Module K V] |
| 17 | variable {W : Type w} [AddCommGroup W] [Module K W] |
| 18 | |
| 19 | theorem linearMap_exists_innerInverse (f : V →ₗ[K] W) : |
| 20 | ∃ g : W →ₗ[K] V, (f.comp g).comp f = f := by |
| 21 | obtain ⟨g, hg⟩ := f.rangeRestrict.exists_rightInverse_of_surjective f.range_rangeRestrict |
| 22 | obtain ⟨G, hG⟩ := g.exists_extend |
| 23 | refine ⟨G, ?_⟩ |
| 24 | ext x |
| 25 | let y : f.range := ⟨f x, LinearMap.mem_range_self f x⟩ |
| 26 | have hy : G (f x) = g y := congrArg (fun h : f.range →ₗ[K] V => h y) hG |
| 27 | change f (G (f x)) = f x |
| 28 | rw [hy] |
| 29 | exact congrArg Subtype.val (congrArg (fun h : f.range →ₗ[K] f.range => h y) hg) |
| 30 | |
| 31 | theorem matrix_exists_innerInverse {ι κ : Type v} [Fintype ι] [Fintype κ] |
| 32 | (A : Matrix ι κ K) : ∃ B : Matrix κ ι K, A * B * A = A := by |
| 33 | obtain ⟨g, hg⟩ := linearMap_exists_innerInverse (Matrix.toLin' A) |
| 34 | refine ⟨LinearMap.toMatrix' g, ?_⟩ |
| 35 | apply Matrix.toLin'.injective |
| 36 | rw [Matrix.toLin'_mul, Matrix.toLin'_mul, Matrix.toLin'_toMatrix'] |
| 37 | exact hg |
| 38 | |
| 39 | theorem matrix_innerInverse_kernel_projection {ι κ : Type v} [Fintype ι] [Fintype κ] |
| 40 | (A : Matrix ι κ K) (B : Matrix κ ι K) (h : A * B * A = A) : |
| 41 | A * (1 - B * A) = 0 := by |
| 42 | rw [Matrix.mul_sub, Matrix.mul_one, ← Matrix.mul_assoc, h, sub_self] |
| 43 | |
| 44 | end |
| 45 | |
| 46 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Linear.InnerInverse |