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 | import Mathlib.LinearAlgebra.Span.Basic |
| 3 | |
| 4 | /-! # Bounded Cyclic Words -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.BoundedCyclicWords.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A cyclic span generated by linear operators is generated by words |
| 11 | whose length is at most the dimension of the ambient vector space. -/ |
| 12 | |
| 13 | open scoped Classical |
| 14 | open _root_.Module Set |
| 15 | |
| 16 | variable {k V ι : Type*} [Field k] [AddCommGroup V] [Module k V] |
| 17 | |
| 18 | def operatorWord (A : ι → Module.End k V) : List ι → Module.End k V |
| 19 | | [] => 1 |
| 20 | | i :: w => A i * operatorWord A w |
| 21 | |
| 22 | def cyclicWordSpan (A : ι → Module.End k V) (x : V) (r : ℕ) : Submodule k V := |
| 23 | Submodule.span k ((fun w : List ι => Construction.operatorWord A w x) '' {w | w.length ≤ r}) |
| 24 | |
| 25 | theorem operatorWord_mem_cyclicWordSpan (A : ι → Module.End k V) (x : V) |
| 26 | (w : List ι) (r : ℕ) (hw : w.length ≤ r) : Construction.operatorWord A w x ∈ cyclicWordSpan A x r := |
| 27 | Submodule.subset_span ⟨w, hw, rfl⟩ |
| 28 | |
| 29 | theorem self_mem_cyclicWordSpan (A : ι → Module.End k V) (x : V) (r : ℕ) : |
| 30 | x ∈ cyclicWordSpan A x r := |
| 31 | operatorWord_mem_cyclicWordSpan A x [] r (Nat.zero_le r) |
| 32 | |
| 33 | theorem cyclicWordSpan_mono (A : ι → Module.End k V) (x : V) : Monotone (cyclicWordSpan A x) := by |
| 34 | intro r s hrs |
| 35 | apply Submodule.span_mono |
| 36 | rintro y ⟨w, hw, rfl⟩ |
| 37 | exact ⟨w, hw.trans hrs, rfl⟩ |
| 38 | |
| 39 | theorem operator_mem_cyclicWordSpan_succ (A : ι → Module.End k V) (x : V) |
| 40 | (r : ℕ) (i : ι) (y : V) (hy : y ∈ cyclicWordSpan A x r) : |
| 41 | A i y ∈ cyclicWordSpan A x (r + 1) := by |
| 42 | induction hy using Submodule.span_induction with |
| 43 | | mem y hy => |
| 44 | obtain ⟨w, hw, rfl⟩ := hy |
| 45 | exact operatorWord_mem_cyclicWordSpan A x (i :: w) (r + 1) (by simpa using Nat.succ_le_succ hw) |
| 46 | | zero => simpa only [map_zero] using (cyclicWordSpan A x (r + 1)).zero_mem |
| 47 | | add y z _ _ hy hz => |
| 48 | simpa only [map_add] using (cyclicWordSpan A x (r + 1)).add_mem hy hz |
| 49 | | smul c y _ hy => |
| 50 | simpa only [map_smul] using (cyclicWordSpan A x (r + 1)).smul_mem c hy |
| 51 | |
| 52 | theorem operatorWord_mem_of_cyclicWordSpan_stable |
| 53 | (A : ι → Module.End k V) (x : V) (r : ℕ) |
| 54 | (hr : cyclicWordSpan A x r = cyclicWordSpan A x (r + 1)) (w : List ι) : |
| 55 | Construction.operatorWord A w x ∈ cyclicWordSpan A x r := by |
| 56 | induction w with |
| 57 | | nil => exact self_mem_cyclicWordSpan A x r |
| 58 | | cons i w hw => |
| 59 | rw [hr] |
| 60 | exact operator_mem_cyclicWordSpan_succ A x r i (Construction.operatorWord A w x) hw |
| 61 | |
| 62 | theorem exists_cyclicWordSpan_stable [FiniteDimensional k V] |
| 63 | (A : ι → Module.End k V) (x : V) : |
| 64 | ∃ r ≤ finrank k V, cyclicWordSpan A x r = cyclicWordSpan A x (r + 1) := by |
| 65 | by_contra h |
| 66 | have hs (r : ℕ) (hr : r ≤ finrank k V) : |
| 67 | finrank k (cyclicWordSpan A x r) < finrank k (cyclicWordSpan A x (r + 1)) := by |
| 68 | apply Submodule.finrank_lt_finrank_of_lt |
| 69 | apply lt_of_le_of_ne (cyclicWordSpan_mono A x (Nat.le_succ r)) |
| 70 | intro he |
| 71 | exact h ⟨r, hr, he⟩ |
| 72 | have hl (r : ℕ) (hr : r ≤ finrank k V + 1) : r ≤ finrank k (cyclicWordSpan A x r) := by |
| 73 | induction r with |
| 74 | | zero => exact Nat.zero_le _ |
| 75 | | succ r ih => |
| 76 | exact (Nat.succ_le_succ (ih (by omega))).trans (hs r (by omega)) |
| 77 | have hbad := (hl (finrank k V + 1) le_rfl).trans (Submodule.finrank_le (cyclicWordSpan A x (finrank k V + 1))) |
| 78 | omega |
| 79 | |
| 80 | theorem operatorWord_mem_cyclicWordSpan_finrank [FiniteDimensional k V] |
| 81 | (A : ι → Module.End k V) (x : V) (w : List ι) : |
| 82 | Construction.operatorWord A w x ∈ cyclicWordSpan A x (finrank k V) := by |
| 83 | obtain ⟨r, hr, hs⟩ := exists_cyclicWordSpan_stable A x |
| 84 | exact cyclicWordSpan_mono A x hr (operatorWord_mem_of_cyclicWordSpan_stable A x r hs w) |
| 85 | |
| 86 | theorem cyclicWordSpan_finrank_eq_span_words [FiniteDimensional k V] |
| 87 | (A : ι → Module.End k V) (x : V) : |
| 88 | cyclicWordSpan A x (finrank k V) = |
| 89 | Submodule.span k (Set.range (fun w : List ι => Construction.operatorWord A w x)) := by |
| 90 | apply le_antisymm |
| 91 | · apply Submodule.span_mono |
| 92 | rintro _ ⟨w, _, rfl⟩ |
| 93 | exact Set.mem_range_self w |
| 94 | · apply Submodule.span_le.mpr |
| 95 | rintro _ ⟨w, rfl⟩ |
| 96 | exact operatorWord_mem_cyclicWordSpan_finrank A x w |
| 97 | |
| 98 | theorem cyclicWordSpan_finrank_invariant [FiniteDimensional k V] |
| 99 | (A : ι → Module.End k V) (x : V) (i : ι) (y : V) |
| 100 | (hy : y ∈ cyclicWordSpan A x (finrank k V)) : |
| 101 | A i y ∈ cyclicWordSpan A x (finrank k V) := by |
| 102 | rw [cyclicWordSpan_finrank_eq_span_words] at hy |
| 103 | induction hy using Submodule.span_induction with |
| 104 | | mem y hy => |
| 105 | obtain ⟨w, rfl⟩ := hy |
| 106 | exact operatorWord_mem_cyclicWordSpan_finrank A x (i :: w) |
| 107 | | zero => simpa only [map_zero] using (cyclicWordSpan A x (finrank k V)).zero_mem |
| 108 | | add y z _ _ hy hz => |
| 109 | simpa only [map_add] using (cyclicWordSpan A x (finrank k V)).add_mem hy hz |
| 110 | | smul c y _ hy => |
| 111 | simpa only [map_smul] using (cyclicWordSpan A x (finrank k V)).smul_mem c hy |
| 112 | |
| 113 | end |
| 114 | |
| 115 | end OAI.NumberTheory.ArithmeticGroups.Lattices.BoundedCyclicWords.Construction |