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.Dimension.Free |
| 2 | import Mathlib.LinearAlgebra.Basis.VectorSpace |
| 3 | import Mathlib.LinearAlgebra.Prod |
| 4 | |
| 5 | /-! # One Dimensional Kernel Augmentation -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.OneDimensionalKernelAugmentation |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A linear map over a field whose kernel has dimension at most one becomes injective after adjoining one scalar coordinate. -/ |
| 12 | |
| 13 | universe u v w |
| 14 | |
| 15 | theorem oneDimensionalKernel_exists_injective_augmentation |
| 16 | {K : Type u} [Field K] {V : Type v} {W : Type w} |
| 17 | [AddCommGroup V] [Module K V] [Module.Finite K V] |
| 18 | [AddCommGroup W] [Module K W] (f : V →ₗ[K] W) |
| 19 | (h : Module.finrank K f.ker ≤ 1) : |
| 20 | ∃ l : V →ₗ[K] K, Function.Injective (f.prod l) := by |
| 21 | have hd : Module.finrank K f.ker ≤ Module.finrank K K := by simpa using h |
| 22 | obtain ⟨g, hg⟩ := (finrank_le_iff_exists_linearMap).mp hd |
| 23 | obtain ⟨l, hl⟩ := g.exists_extend |
| 24 | refine ⟨l, LinearMap.ker_eq_bot.mp ?_⟩ |
| 25 | apply eq_bot_iff.mpr |
| 26 | intro x hx |
| 27 | have hx0 : (f.prod l) x = 0 := hx |
| 28 | have hf : f x = 0 := congrArg Prod.fst hx0 |
| 29 | have hlf : l x = 0 := congrArg Prod.snd hx0 |
| 30 | let z : f.ker := ⟨x, hf⟩ |
| 31 | have hz : g z = 0 := (LinearMap.congr_fun hl z).symm.trans hlf |
| 32 | have he : z = 0 := hg (hz.trans g.map_zero.symm) |
| 33 | exact congrArg Subtype.val he |
| 34 | |
| 35 | end |
| 36 | |
| 37 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.OneDimensionalKernelAugmentation |