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 |
| 2 | |
| 3 | /-! # Eigencomponents -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.Finite.Eigencomponents.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! An invariant subspace contains each component of a finite sum of |
| 10 | eigenvectors with distinct eigenvalues. This will recover integer |
| 11 | weight components of a matrix-group vanishing ideal. -/ |
| 12 | |
| 13 | open scoped Classical |
| 14 | |
| 15 | theorem finite_eigencomponents_mem |
| 16 | {k V ι : Type*} [Field k] [AddCommGroup V] [Module k V] |
| 17 | (f : V →ₗ[k] V) (W : Submodule k V) (hW : ∀ x ∈ W, f x ∈ W) |
| 18 | (eigenvalue : ι → k) (hdistinct : Function.Injective eigenvalue) (s : Finset ι) |
| 19 | (x : ι → V) (hx : ∀ i, f (x i) = eigenvalue i • x i) |
| 20 | (hs : ∑ i ∈ s, x i ∈ W) : ∀ i ∈ s, x i ∈ W := by |
| 21 | induction s using Finset.induction_on generalizing x with |
| 22 | | empty => simp |
| 23 | | @insert a s ha ih => |
| 24 | let y : ι → V := fun i => (eigenvalue i - eigenvalue a) • x i |
| 25 | have hy : ∀ i, f (y i) = eigenvalue i • y i := by |
| 26 | intro i |
| 27 | simp only [y, map_smul, hx, smul_smul] |
| 28 | rw [mul_comm] |
| 29 | have hys : ∑ i ∈ s, y i ∈ W := by |
| 30 | have hmem := W.sub_mem (hW _ hs) (W.smul_mem (eigenvalue a) hs) |
| 31 | have he : (∑ i ∈ s, y i) = f (∑ i ∈ insert a s, x i) - |
| 32 | eigenvalue a • (∑ i ∈ insert a s, x i) := by |
| 33 | simp only [y, sub_smul, Finset.sum_sub_distrib, ← Finset.smul_sum, |
| 34 | Finset.sum_insert ha, map_add, map_sum, hx, smul_add] |
| 35 | module |
| 36 | rw [he] |
| 37 | exact hmem |
| 38 | have hsmall (i : ι) (hi : i ∈ s) : x i ∈ W := by |
| 39 | have hi_ne : i ≠ a := fun h => ha (h ▸ hi) |
| 40 | have hc : eigenvalue i - eigenvalue a ≠ 0 := sub_ne_zero.mpr (fun h => hi_ne (hdistinct h)) |
| 41 | have hiy := ih y hy hys i hi |
| 42 | have hh := W.smul_mem (eigenvalue i - eigenvalue a)⁻¹ hiy |
| 43 | simpa only [y, inv_smul_smul₀ hc] using hh |
| 44 | intro i hi |
| 45 | rcases Finset.mem_insert.mp hi with rfl | hi |
| 46 | · have hh := W.sub_mem hs (W.sum_mem (fun j hj => hsmall j hj)) |
| 47 | simpa only [Finset.sum_insert ha, add_sub_cancel_right] using hh |
| 48 | · exact hsmall i hi |
| 49 | |
| 50 | end |
| 51 | |
| 52 | end OAI.NumberTheory.ArithmeticGroups.Lattices.Finite.Eigencomponents.Construction |