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 | |
| 3 | /-! # Spanning Family Basis -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Comparison.Betti.SpanningFamilyBasis.LinearAlgebra |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A spanning family contains a basis with its original family labels retained. -/ |
| 10 | |
| 11 | variable {K V α : Type} [Field K] [AddCommGroup V] [Module K V] |
| 12 | |
| 13 | theorem exists_basis_subfamily_of_span (f : α → V) (hf : Submodule.span K (Set.range f) = ⊤) : |
| 14 | ∃ (s : Set V) (b : Module.Basis s K V) (a : s → α), ∀ i, b i = f (a i) := by |
| 15 | let h : ⊤ ≤ Submodule.span K (Set.range f) := hf.ge |
| 16 | let s := (linearIndepOn_empty K (id : V → V)).extend (Set.empty_subset (Set.range f)) |
| 17 | let b : Module.Basis s K V := Module.Basis.ofSpan h |
| 18 | have hb : Set.range b ⊆ Set.range f := Module.Basis.ofSpan_subset h |
| 19 | have hi (i : s) : ∃ a, f a = b i := hb ⟨i, rfl⟩ |
| 20 | choose a ha using hi |
| 21 | exact ⟨s, b, a, fun i => (ha i).symm⟩ |
| 22 | |
| 23 | end |
| 24 | |
| 25 | end OAI.AlgebraicGeometry.Comparison.Betti.SpanningFamilyBasis.LinearAlgebra |