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.Pi |
| 2 | |
| 3 | /-! # Product Local Span -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.Quaternion.Arithmetic.ProductLocalSpan |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A common-field submodule contains a product of local spans once |
| 10 | it contains all locally scaled generators supported in one factor. -/ |
| 11 | |
| 12 | open scoped Classical |
| 13 | |
| 14 | theorem product_mem_of_local_spans |
| 15 | {κ ι : Type*} [Field κ] [Fintype ι] {K A : ι → Type*} |
| 16 | [∀ i, Field (K i)] [∀ i, AddCommGroup (A i)] [∀ i, Module (K i) (A i)] |
| 17 | [∀ i, Module κ (A i)] |
| 18 | (W : Submodule κ (∀ i, A i)) (s : ∀ i, Set (A i)) |
| 19 | (hs : ∀ i, ∀ a ∈ s i, ∀ c : K i, LinearMap.single κ A i (c • a) ∈ W) |
| 20 | (x : ∀ i, A i) (hx : ∀ i, x i ∈ Submodule.span (K i) (s i)) : x ∈ W := by |
| 21 | have hspan (i : ι) : ∀ a ∈ Submodule.span (K i) (s i), |
| 22 | ∀ c : K i, LinearMap.single κ A i (c • a) ∈ W := by |
| 23 | intro a ha |
| 24 | induction ha using Submodule.span_induction with |
| 25 | | mem a ha => exact hs i a ha |
| 26 | | zero => intro c; simpa only [smul_zero, map_zero] using W.zero_mem |
| 27 | | add a b _ _ ha hb => |
| 28 | intro c |
| 29 | rw [smul_add, map_add] |
| 30 | exact W.add_mem (ha c) (hb c) |
| 31 | | smul c a _ ha => |
| 32 | intro d |
| 33 | simpa only [smul_smul] using ha (d * c) |
| 34 | have hsum : (∑ i, LinearMap.single κ A i (x i)) ∈ W := by |
| 35 | apply W.sum_mem |
| 36 | intro i _ |
| 37 | simpa only [one_smul] using hspan i (x i) (hx i) 1 |
| 38 | have he : (∑ i, LinearMap.single κ A i (x i)) = x := by |
| 39 | change (∑ i, Pi.single i (x i)) = x |
| 40 | exact Finset.univ_sum_single x |
| 41 | exact he ▸ hsum |
| 42 | |
| 43 | end |
| 44 | |
| 45 | end OAI.NumberTheory.Quaternion.Arithmetic.ProductLocalSpan |