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.FiniteDimensional.Lemmas |
| 2 | |
| 3 | /-! # Linear Normal Exactness -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.LinearNormalExactness.Constructions |
| 6 | |
| 7 | /-! Rank-nullity identifies the tangent space with the kernel of the normal differential. -/ |
| 8 | |
| 9 | variable {k W A V : Type*} [Field k] |
| 10 | [AddCommGroup W] [Module k W] [AddCommGroup A] [Module k A] |
| 11 | [AddCommGroup V] [Module k V] [FiniteDimensional k A] |
| 12 | |
| 13 | theorem ker_eq_range (i : W →ₗ[k] A) (n : A →ₗ[k] V) |
| 14 | (hi : Function.Injective i) (hn : Function.Surjective n) |
| 15 | (hz : n.comp i = 0) |
| 16 | (hd : Module.finrank k W + Module.finrank k V = Module.finrank k A) : |
| 17 | LinearMap.ker n = LinearMap.range i := by |
| 18 | apply Eq.symm |
| 19 | apply Submodule.eq_of_le_of_finrank_eq |
| 20 | · rintro v ⟨w, rfl⟩ |
| 21 | exact LinearMap.congr_fun hz w |
| 22 | · have hr := n.finrank_range_add_finrank_ker |
| 23 | rw [LinearMap.range_eq_top.mpr hn, finrank_top] at hr |
| 24 | rw [LinearMap.finrank_range_of_inj hi] |
| 25 | omega |
| 26 | |
| 27 | end OAI.AlgebraicGeometry.CycleClass.Thom.LinearNormalExactness.Constructions |