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 OAI.AlgebraicTopology.DeRham.Comparison.DoubleComplexProjections |
| 2 | |
| 3 | /-! # Double Complex Differential -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicTopology.DeRham.Comparison.DoubleComplexDifferential.DoubleComplex |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # Components of the differential of a first-quadrant total complex |
| 11 | |
| 12 | These formulas use the inclusions and projections of mathlib's actual total |
| 13 | complex. A summand contributes only to its horizontal and vertical successors. |
| 14 | An arbitrary differential component is the sum of the incoming horizontal |
| 15 | component and the signed incoming vertical component. At the two boundary |
| 16 | axes only the existing incoming component remains. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Preadditive |
| 20 | |
| 21 | universe u v |
| 22 | |
| 23 | variable {R : Type u} [Ring R] |
| 24 | (K : HomologicalComplex₂ (ModuleCat.{v} R) (ComplexShape.up ℕ) (ComplexShape.up ℕ)) |
| 25 | |
| 26 | /-- The horizontal matrix entry of the total differential. -/ |
| 27 | @[reassoc] |
| 28 | theorem iota_d_πTotal_horizontal (p q n : ℕ) (h : p + q = n) : |
| 29 | K.ιTotal (ComplexShape.up ℕ) p q n h ≫ |
| 30 | (K.total (ComplexShape.up ℕ)).d n (n + 1) ≫ |
| 31 | DoubleComplexProjections.DoubleComplex.πTotal K (p + 1) q (n + 1) (by omega) = |
| 32 | (K.d p (p + 1)).f q := by |
| 33 | rw [← Category.assoc, DoubleComplexSigns.DoubleComplex.iota_d_of_eq] |
| 34 | simp only [add_comp, zsmul_comp, Category.assoc] |
| 35 | rw [DoubleComplexProjections.DoubleComplex.iota_πTotal_self, |
| 36 | DoubleComplexProjections.DoubleComplex.iota_πTotal_ne K p (q + 1) (p + 1) q (n + 1) _ _ (by |
| 37 | intro he |
| 38 | have := (Prod.mk.inj he).1 |
| 39 | omega)] |
| 40 | simp only [Category.comp_id, comp_zero, smul_zero, add_zero] |
| 41 | |
| 42 | /-- The vertical matrix entry carries the sign of the source horizontal degree. -/ |
| 43 | @[reassoc] |
| 44 | theorem iota_d_πTotal_vertical (p q n : ℕ) (h : p + q = n) : |
| 45 | K.ιTotal (ComplexShape.up ℕ) p q n h ≫ |
| 46 | (K.total (ComplexShape.up ℕ)).d n (n + 1) ≫ |
| 47 | DoubleComplexProjections.DoubleComplex.πTotal K p (q + 1) (n + 1) (by omega) = |
| 48 | ((-1 : ℤ) ^ p) • (K.X p).d q (q + 1) := by |
| 49 | rw [← Category.assoc, DoubleComplexSigns.DoubleComplex.iota_d_of_eq] |
| 50 | simp only [add_comp, zsmul_comp, Category.assoc] |
| 51 | rw [DoubleComplexProjections.DoubleComplex.iota_πTotal_ne K (p + 1) q p (q + 1) (n + 1) _ _ (by |
| 52 | intro he |
| 53 | have := (Prod.mk.inj he).1 |
| 54 | omega), DoubleComplexProjections.DoubleComplex.iota_πTotal_self] |
| 55 | simp only [Category.comp_id, comp_zero, zero_add] |
| 56 | |
| 57 | /-- Every other matrix entry of the total differential is zero. -/ |
| 58 | @[reassoc] |
| 59 | theorem iota_d_πTotal_ne (p q a b n : ℕ) (h : p + q = n) |
| 60 | (hab : a + b = n + 1) |
| 61 | (hh : (p + 1, q) ≠ (a, b)) (hv : (p, q + 1) ≠ (a, b)) : |
| 62 | K.ιTotal (ComplexShape.up ℕ) p q n h ≫ |
| 63 | (K.total (ComplexShape.up ℕ)).d n (n + 1) ≫ |
| 64 | DoubleComplexProjections.DoubleComplex.πTotal K a b (n + 1) hab = 0 := by |
| 65 | rw [← Category.assoc, DoubleComplexSigns.DoubleComplex.iota_d_of_eq] |
| 66 | simp only [add_comp, zsmul_comp, Category.assoc] |
| 67 | rw [DoubleComplexProjections.DoubleComplex.iota_πTotal_ne K (p + 1) q a b (n + 1) _ hab hh, |
| 68 | DoubleComplexProjections.DoubleComplex.iota_πTotal_ne K p (q + 1) a b (n + 1) _ hab hv] |
| 69 | simp only [comp_zero, smul_zero, add_zero] |
| 70 | |
| 71 | /-- An interior component is the sum of the two incoming differential components. -/ |
| 72 | @[reassoc] |
| 73 | theorem d_πTotal_succ_succ (p q n : ℕ) (h : (p + 1) + (q + 1) = n + 1) : |
| 74 | (K.total (ComplexShape.up ℕ)).d n (n + 1) ≫ |
| 75 | DoubleComplexProjections.DoubleComplex.πTotal K (p + 1) (q + 1) (n + 1) h = |
| 76 | DoubleComplexProjections.DoubleComplex.πTotal K p (q + 1) n (by omega) ≫ (K.d p (p + 1)).f (q + 1) + |
| 77 | ((-1 : ℤ) ^ (p + 1)) • |
| 78 | (DoubleComplexProjections.DoubleComplex.πTotal K (p + 1) q n (by omega) ≫ (K.X (p + 1)).d q (q + 1)) := by |
| 79 | apply HomologicalComplex₂.total.hom_ext |
| 80 | intro a b hab |
| 81 | change a + b = n at hab |
| 82 | by_cases ha : a = p |
| 83 | · subst a |
| 84 | have hb : b = q + 1 := by omega |
| 85 | subst b |
| 86 | rw [iota_d_πTotal_horizontal] |
| 87 | simp only [comp_add, comp_zsmul, ← Category.assoc, DoubleComplexProjections.DoubleComplex.iota_πTotal_self, |
| 88 | DoubleComplexProjections.DoubleComplex.iota_πTotal_ne K p (q + 1) (p + 1) q n hab _ (by |
| 89 | intro he |
| 90 | have := (Prod.mk.inj he).1 |
| 91 | omega), Category.id_comp, zero_comp, smul_zero, add_zero] |
| 92 | · by_cases ha' : a = p + 1 |
| 93 | · subst a |
| 94 | have hb : b = q := by omega |
| 95 | subst b |
| 96 | rw [iota_d_πTotal_vertical] |
| 97 | simp only [comp_add, comp_zsmul, ← Category.assoc, DoubleComplexProjections.DoubleComplex.iota_πTotal_self, |
| 98 | DoubleComplexProjections.DoubleComplex.iota_πTotal_ne K (p + 1) q p (q + 1) n hab _ (by |
| 99 | intro he |
| 100 | have := (Prod.mk.inj he).1 |
| 101 | omega), Category.id_comp, zero_comp, zero_add] |
| 102 | · rw [iota_d_πTotal_ne K a b (p + 1) (q + 1) n hab h (by |
| 103 | intro he |
| 104 | exact ha (by have := (Prod.mk.inj he).1; omega)) (by |
| 105 | intro he |
| 106 | exact ha' (Prod.mk.inj he).1)] |
| 107 | simp only [comp_add, comp_zsmul, ← Category.assoc, |
| 108 | DoubleComplexProjections.DoubleComplex.iota_πTotal_ne K a b p (q + 1) n hab _ (by |
| 109 | intro he |
| 110 | exact ha (Prod.mk.inj he).1), |
| 111 | DoubleComplexProjections.DoubleComplex.iota_πTotal_ne K a b (p + 1) q n hab _ (by |
| 112 | intro he |
| 113 | exact ha' (Prod.mk.inj he).1), zero_comp, smul_zero, add_zero] |
| 114 | |
| 115 | /-- Along the zero vertical degree, only the horizontal incoming component exists. -/ |
| 116 | @[reassoc] |
| 117 | theorem d_πTotal_succ_zero (p n : ℕ) (h : (p + 1) + 0 = n + 1) : |
| 118 | (K.total (ComplexShape.up ℕ)).d n (n + 1) ≫ |
| 119 | DoubleComplexProjections.DoubleComplex.πTotal K (p + 1) 0 (n + 1) h = |
| 120 | DoubleComplexProjections.DoubleComplex.πTotal K p 0 n (by omega) ≫ (K.d p (p + 1)).f 0 := by |
| 121 | apply HomologicalComplex₂.total.hom_ext |
| 122 | intro a b hab |
| 123 | change a + b = n at hab |
| 124 | by_cases ha : a = p |
| 125 | · subst a |
| 126 | have hb : b = 0 := by omega |
| 127 | subst b |
| 128 | rw [iota_d_πTotal_horizontal] |
| 129 | simp only [← Category.assoc, DoubleComplexProjections.DoubleComplex.iota_πTotal_self, Category.id_comp] |
| 130 | · rw [iota_d_πTotal_ne K a b (p + 1) 0 n hab h (by |
| 131 | intro he |
| 132 | exact ha (by have := (Prod.mk.inj he).1; omega)) (by |
| 133 | intro he |
| 134 | have := (Prod.mk.inj he).2 |
| 135 | omega)] |
| 136 | rw [← Category.assoc, DoubleComplexProjections.DoubleComplex.iota_πTotal_ne K a b p 0 n hab _ (by |
| 137 | intro he |
| 138 | exact ha (Prod.mk.inj he).1), zero_comp] |
| 139 | |
| 140 | /-- Along the zero horizontal degree, only the unsigned vertical component exists. -/ |
| 141 | @[reassoc] |
| 142 | theorem d_πTotal_zero_succ (q n : ℕ) (h : 0 + (q + 1) = n + 1) : |
| 143 | (K.total (ComplexShape.up ℕ)).d n (n + 1) ≫ |
| 144 | DoubleComplexProjections.DoubleComplex.πTotal K 0 (q + 1) (n + 1) h = |
| 145 | DoubleComplexProjections.DoubleComplex.πTotal K 0 q n (by omega) ≫ (K.X 0).d q (q + 1) := by |
| 146 | apply HomologicalComplex₂.total.hom_ext |
| 147 | intro a b hab |
| 148 | change a + b = n at hab |
| 149 | by_cases ha : a = 0 |
| 150 | · subst a |
| 151 | have hb : b = q := by omega |
| 152 | subst b |
| 153 | rw [iota_d_πTotal_vertical] |
| 154 | simp only [← Category.assoc, DoubleComplexProjections.DoubleComplex.iota_πTotal_self, Category.id_comp, pow_zero, one_smul] |
| 155 | · rw [iota_d_πTotal_ne K a b 0 (q + 1) n hab h (by |
| 156 | intro he |
| 157 | have := (Prod.mk.inj he).1 |
| 158 | omega) (by |
| 159 | intro he |
| 160 | exact ha (Prod.mk.inj he).1)] |
| 161 | rw [← Category.assoc, DoubleComplexProjections.DoubleComplex.iota_πTotal_ne K a b 0 q n hab _ (by |
| 162 | intro he |
| 163 | exact ha (Prod.mk.inj he).1), zero_comp] |
| 164 | |
| 165 | /-- Element form of the horizontal matrix entry. -/ |
| 166 | theorem project_d_iota_horizontal (p q n : ℕ) (h : p + q = n) |
| 167 | (x : (K.X p).X q) : |
| 168 | DoubleComplexProjections.DoubleComplex.πTotal K (p + 1) q (n + 1) (by omega) |
| 169 | ((K.total (ComplexShape.up ℕ)).d n (n + 1) |
| 170 | (K.ιTotal (ComplexShape.up ℕ) p q n h x)) = |
| 171 | (K.d p (p + 1)).f q x := |
| 172 | ConcreteCategory.congr_hom (iota_d_πTotal_horizontal K p q n h) x |
| 173 | |
| 174 | /-- Element form of the signed vertical matrix entry. -/ |
| 175 | theorem project_d_iota_vertical (p q n : ℕ) (h : p + q = n) |
| 176 | (x : (K.X p).X q) : |
| 177 | DoubleComplexProjections.DoubleComplex.πTotal K p (q + 1) (n + 1) (by omega) |
| 178 | ((K.total (ComplexShape.up ℕ)).d n (n + 1) |
| 179 | (K.ιTotal (ComplexShape.up ℕ) p q n h x)) = |
| 180 | ((-1 : ℤ) ^ p) • (K.X p).d q (q + 1) x := |
| 181 | ConcreteCategory.congr_hom (iota_d_πTotal_vertical K p q n h) x |
| 182 | |
| 183 | /-- A differential of an included element has no other components. -/ |
| 184 | theorem project_d_iota_ne (p q a b n : ℕ) (h : p + q = n) |
| 185 | (hab : a + b = n + 1) |
| 186 | (hh : (p + 1, q) ≠ (a, b)) (hv : (p, q + 1) ≠ (a, b)) |
| 187 | (x : (K.X p).X q) : |
| 188 | DoubleComplexProjections.DoubleComplex.πTotal K a b (n + 1) hab |
| 189 | ((K.total (ComplexShape.up ℕ)).d n (n + 1) |
| 190 | (K.ιTotal (ComplexShape.up ℕ) p q n h x)) = 0 := |
| 191 | ConcreteCategory.congr_hom (iota_d_πTotal_ne K p q a b n h hab hh hv) x |
| 192 | |
| 193 | /-- The interior component formula for any element of the actual total complex. -/ |
| 194 | theorem project_d_succ_succ (p q n : ℕ) (h : (p + 1) + (q + 1) = n + 1) |
| 195 | (x : (K.total (ComplexShape.up ℕ)).X n) : |
| 196 | DoubleComplexProjections.DoubleComplex.πTotal K (p + 1) (q + 1) (n + 1) h |
| 197 | ((K.total (ComplexShape.up ℕ)).d n (n + 1) x) = |
| 198 | (K.d p (p + 1)).f (q + 1) (DoubleComplexProjections.DoubleComplex.πTotal K p (q + 1) n (by omega) x) + |
| 199 | ((-1 : ℤ) ^ (p + 1)) • |
| 200 | (K.X (p + 1)).d q (q + 1) (DoubleComplexProjections.DoubleComplex.πTotal K (p + 1) q n (by omega) x) := |
| 201 | ConcreteCategory.congr_hom (d_πTotal_succ_succ K p q n h) x |
| 202 | |
| 203 | /-- The component formula on the zero vertical boundary. -/ |
| 204 | theorem project_d_succ_zero (p n : ℕ) (h : (p + 1) + 0 = n + 1) |
| 205 | (x : (K.total (ComplexShape.up ℕ)).X n) : |
| 206 | DoubleComplexProjections.DoubleComplex.πTotal K (p + 1) 0 (n + 1) h ((K.total (ComplexShape.up ℕ)).d n (n + 1) x) = |
| 207 | (K.d p (p + 1)).f 0 (DoubleComplexProjections.DoubleComplex.πTotal K p 0 n (by omega) x) := |
| 208 | ConcreteCategory.congr_hom (d_πTotal_succ_zero K p n h) x |
| 209 | |
| 210 | /-- The component formula on the zero horizontal boundary. -/ |
| 211 | theorem project_d_zero_succ (q n : ℕ) (h : 0 + (q + 1) = n + 1) |
| 212 | (x : (K.total (ComplexShape.up ℕ)).X n) : |
| 213 | DoubleComplexProjections.DoubleComplex.πTotal K 0 (q + 1) (n + 1) h ((K.total (ComplexShape.up ℕ)).d n (n + 1) x) = |
| 214 | (K.X 0).d q (q + 1) (DoubleComplexProjections.DoubleComplex.πTotal K 0 q n (by omega) x) := |
| 215 | ConcreteCategory.congr_hom (d_πTotal_zero_succ K q n h) x |
| 216 | |
| 217 | end |
| 218 | |
| 219 | end OAI.AlgebraicTopology.DeRham.Comparison.DoubleComplexDifferential.DoubleComplex |