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.Algebra.Homology.ConcreteCategory |
| 2 | import Mathlib.Algebra.Homology.ShortComplex.ModuleCat |
| 3 | |
| 4 | /-! # Coherent Lifting -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.CoherentLifting.Cycles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Coherent cycles in countable inverse towers of chain complexes |
| 12 | |
| 13 | Surjective transition maps in each degree allow boundary corrections to be |
| 14 | lifted. Recursively correcting representatives therefore realizes a coherent |
| 15 | family of native homology classes by a coherent family of native cycles. |
| 16 | The same construction in the next degree gives uniqueness when the next |
| 17 | homology groups vanish. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex |
| 21 | |
| 22 | universe u v |
| 23 | |
| 24 | variable {R : Type u} [Ring R] |
| 25 | variable {K L : ChainComplex (ModuleCat.{v} R) ℕ} |
| 26 | |
| 27 | /-- A zero native homology class has an actual incoming boundary preimage, |
| 28 | also in degree zero of a nonnegative chain complex. -/ |
| 29 | theorem exists_toCycles_eq_of_homologyπ_eq_zero |
| 30 | (K : ChainComplex (ModuleCat.{v} R) ℕ) (n : ℕ) |
| 31 | (z : K.cycles n) (hz : K.homologyπ n z = 0) : |
| 32 | ∃ b : K.X (n + 1), K.toCycles (n + 1) n b = z := by |
| 33 | let S : ShortComplex (ModuleCat.{v} R) := |
| 34 | ShortComplex.mk (K.toCycles (n + 1) n) (K.homologyπ n) |
| 35 | (K.toCycles_comp_homologyπ (n + 1) n) |
| 36 | have hS : S.Exact := S.exact_of_g_is_cokernel |
| 37 | (K.homologyIsCokernel (n + 1) n |
| 38 | ((ComplexShape.down ℕ).prev_eq' (show (ComplexShape.down ℕ).Rel (n + 1) n from rfl))) |
| 39 | exact (ShortComplex.moduleCat_exact_iff S).mp hS z hz |
| 40 | |
| 41 | /-- Boundary maps into native cycle objects commute with chain maps. -/ |
| 42 | theorem chainToCycles_naturality (f : K ⟶ L) (n : ℕ) : |
| 43 | K.toCycles (n + 1) n ≫ cyclesMap f n = f.f (n + 1) ≫ L.toCycles (n + 1) n := by |
| 44 | apply (cancel_mono (L.iCycles n)).mp |
| 45 | rw [Category.assoc, cyclesMap_i, ← Category.assoc, toCycles_i, |
| 46 | Category.assoc, toCycles_i] |
| 47 | exact (f.comm (n + 1) n).symm |
| 48 | |
| 49 | /-- Elementwise form of boundary naturality. -/ |
| 50 | theorem chainToCycles_naturality_apply (f : K ⟶ L) (n : ℕ) (b : K.X (n + 1)) : |
| 51 | cyclesMap f n (K.toCycles (n + 1) n b) = L.toCycles (n + 1) n (f.f (n + 1) b) := |
| 52 | ConcreteCategory.congr_hom (chainToCycles_naturality f n) b |
| 53 | |
| 54 | /-- Elementwise naturality of the native homology projection. -/ |
| 55 | theorem chainHomologyπ_naturality_apply (f : K ⟶ L) (n : ℕ) (z : K.cycles n) : |
| 56 | L.homologyπ n (cyclesMap f n z) = homologyMap f n (K.homologyπ n z) := |
| 57 | (ConcreteCategory.congr_hom (homologyπ_naturality f n) z).symm |
| 58 | |
| 59 | /-- Given a prescribed lower-level cycle and an upper-level homology class |
| 60 | mapping to it, lift a boundary correction to make the representatives agree. -/ |
| 61 | theorem exists_cycle_representative_lifting (f : K ⟶ L) (n : ℕ) |
| 62 | (hsurj : Function.Surjective (f.f (n + 1))) |
| 63 | (c : K.homology n) (z : L.cycles n) |
| 64 | (hc : homologyMap f n c = L.homologyπ n z) : |
| 65 | ∃ w : K.cycles n, K.homologyπ n w = c ∧ cyclesMap f n w = z := by |
| 66 | obtain ⟨w, hw⟩ := (ModuleCat.epi_iff_surjective (K.homologyπ n)).mp inferInstance c |
| 67 | have hz : L.homologyπ n (z - cyclesMap f n w) = 0 := by |
| 68 | rw [map_sub, chainHomologyπ_naturality_apply, hw, hc, sub_self] |
| 69 | obtain ⟨b, hb⟩ := exists_toCycles_eq_of_homologyπ_eq_zero L n _ hz |
| 70 | obtain ⟨a, ha⟩ := hsurj b |
| 71 | refine ⟨w + K.toCycles (n + 1) n a, ?_, ?_⟩ |
| 72 | · rw [map_add, hw] |
| 73 | have hzero := ConcreteCategory.congr_hom (K.toCycles_comp_homologyπ (n + 1) n) a |
| 74 | change K.homologyπ n (K.toCycles (n + 1) n a) = 0 at hzero |
| 75 | rw [hzero, add_zero] |
| 76 | · rw [map_add, chainToCycles_naturality_apply, ha, hb] |
| 77 | abel |
| 78 | |
| 79 | /-- Coherent native homology classes admit coherent native cycle |
| 80 | representatives. Only surjectivity in the incoming boundary degree is needed. -/ |
| 81 | theorem exists_coherent_cycle_representatives |
| 82 | (C : ℕ → ChainComplex (ModuleCat.{v} R) ℕ) (p : ∀ i, C (i + 1) ⟶ C i) |
| 83 | (n : ℕ) (hsurj : ∀ i, Function.Surjective ((p i).f (n + 1))) |
| 84 | (c : ∀ i, (C i).homology n) |
| 85 | (hc : ∀ i, homologyMap (p i) n (c (i + 1)) = c i) : |
| 86 | ∃ z : ∀ i, (C i).cycles n, |
| 87 | (∀ i, (C i).homologyπ n (z i) = c i) ∧ |
| 88 | ∀ i, cyclesMap (p i) n (z (i + 1)) = z i := by |
| 89 | classical |
| 90 | let V (i : ℕ) := {z : (C i).cycles n // (C i).homologyπ n z = c i} |
| 91 | have step : ∀ i, ∀ z : V i, ∃ w : V (i + 1), cyclesMap (p i) n w.val = z.val := by |
| 92 | intro i z |
| 93 | obtain ⟨w, hw, hmap⟩ := exists_cycle_representative_lifting (p i) n (hsurj i) |
| 94 | (c (i + 1)) z.val ((hc i).trans z.property.symm) |
| 95 | exact ⟨⟨w, hw⟩, hmap⟩ |
| 96 | choose next hnext using step |
| 97 | obtain ⟨z₀, hz₀⟩ := (ModuleCat.epi_iff_surjective ((C 0).homologyπ n)).mp inferInstance (c 0) |
| 98 | let z : ∀ i, V i := Nat.rec ⟨z₀, hz₀⟩ next |
| 99 | exact ⟨fun i => (z i).val, fun i => (z i).property, fun i => hnext i (z i)⟩ |
| 100 | |
| 101 | /-- Vanishing of the next homology group makes it possible to lift a |
| 102 | prescribed primitive, correcting its discrepancy by a higher boundary. -/ |
| 103 | theorem exists_boundary_primitive_lifting (f : K ⟶ L) (n : ℕ) |
| 104 | (hsurj : Function.Surjective (f.f (n + 2))) |
| 105 | (hvanish : IsZero (L.homology (n + 1))) |
| 106 | (z : K.cycles n) (hz : K.homologyπ n z = 0) |
| 107 | (b : L.X (n + 1)) (hb : L.toCycles (n + 1) n b = cyclesMap f n z) : |
| 108 | ∃ a : K.X (n + 1), K.toCycles (n + 1) n a = z ∧ f.f (n + 1) a = b := by |
| 109 | obtain ⟨a₀, ha₀⟩ := exists_toCycles_eq_of_homologyπ_eq_zero K n z hz |
| 110 | let δ := b - f.f (n + 1) a₀ |
| 111 | have hδ : L.toCycles (n + 1) n δ = 0 := by |
| 112 | dsimp only [δ] |
| 113 | rw [map_sub, hb, ← chainToCycles_naturality_apply, ha₀, sub_self] |
| 114 | have hδd : L.d (n + 1) n δ = 0 := by |
| 115 | have h := congrArg (L.iCycles n) hδ |
| 116 | rw [map_zero] at h |
| 117 | exact (ConcreteCategory.congr_hom (L.toCycles_i (n + 1) n) δ).symm.trans h |
| 118 | have hExact : L.ExactAt (n + 1) := (exactAt_iff_isZero_homology L (n + 1)).mpr hvanish |
| 119 | have hsc : (L.sc' (n + 2) (n + 1) n).Exact := |
| 120 | (L.exactAt_iff' (n + 2) (n + 1) n (by simp) (by simp)).mp hExact |
| 121 | obtain ⟨e, he⟩ : ∃ e : L.X (n + 2), L.d (n + 2) (n + 1) e = δ := |
| 122 | (ShortComplex.moduleCat_exact_iff _).mp hsc δ hδd |
| 123 | obtain ⟨e', he'⟩ := hsurj e |
| 124 | refine ⟨a₀ + K.d (n + 2) (n + 1) e', ?_, ?_⟩ |
| 125 | · rw [map_add, ha₀] |
| 126 | have hzero := ConcreteCategory.congr_hom (K.d_toCycles (n + 2) (n + 1) n) e' |
| 127 | change K.toCycles (n + 1) n (K.d (n + 2) (n + 1) e') = 0 at hzero |
| 128 | rw [hzero, add_zero] |
| 129 | · have hcomm := ConcreteCategory.congr_hom (f.comm (n + 2) (n + 1)) e' |
| 130 | change L.d (n + 2) (n + 1) (f.f (n + 2) e') = |
| 131 | f.f (n + 1) (K.d (n + 2) (n + 1) e') at hcomm |
| 132 | rw [map_add, ← hcomm, he'] |
| 133 | change f.f (n + 1) a₀ + L.d (n + 2) (n + 1) e = b |
| 134 | rw [he] |
| 135 | dsimp only [δ] |
| 136 | abel |
| 137 | |
| 138 | /-- A coherent family of homologically trivial cycles has coherent actual |
| 139 | primitives if the next homology groups vanish. -/ |
| 140 | theorem exists_coherent_boundary_primitives |
| 141 | (C : ℕ → ChainComplex (ModuleCat.{v} R) ℕ) (p : ∀ i, C (i + 1) ⟶ C i) |
| 142 | (n : ℕ) (hsurj : ∀ i, Function.Surjective ((p i).f (n + 2))) |
| 143 | (hvanish : ∀ i, IsZero ((C i).homology (n + 1))) |
| 144 | (z : ∀ i, (C i).cycles n) |
| 145 | (hz : ∀ i, (C i).homologyπ n (z i) = 0) |
| 146 | (hcoh : ∀ i, cyclesMap (p i) n (z (i + 1)) = z i) : |
| 147 | ∃ b : ∀ i, (C i).X (n + 1), |
| 148 | (∀ i, (C i).toCycles (n + 1) n (b i) = z i) ∧ |
| 149 | ∀ i, (p i).f (n + 1) (b (i + 1)) = b i := by |
| 150 | classical |
| 151 | let V (i : ℕ) := {b : (C i).X (n + 1) // (C i).toCycles (n + 1) n b = z i} |
| 152 | have step : ∀ i, ∀ b : V i, ∃ a : V (i + 1), (p i).f (n + 1) a.val = b.val := by |
| 153 | intro i b |
| 154 | obtain ⟨a, ha, hmap⟩ := exists_boundary_primitive_lifting (p i) n (hsurj i) |
| 155 | (hvanish i) (z (i + 1)) (hz (i + 1)) b.val |
| 156 | (b.property.trans (hcoh i).symm) |
| 157 | exact ⟨⟨a, ha⟩, hmap⟩ |
| 158 | choose next hnext using step |
| 159 | obtain ⟨b₀, hb₀⟩ := exists_toCycles_eq_of_homologyπ_eq_zero (C 0) n (z 0) (hz 0) |
| 160 | let b : ∀ i, V i := Nat.rec ⟨b₀, hb₀⟩ next |
| 161 | exact ⟨fun i => (b i).val, fun i => (b i).property, fun i => hnext i (b i)⟩ |
| 162 | |
| 163 | /-- Two coherent cycle families representing the same levelwise homology |
| 164 | classes differ by a coherent boundary when the next homology vanishes. -/ |
| 165 | theorem coherent_cycles_equal_mod_boundary |
| 166 | (C : ℕ → ChainComplex (ModuleCat.{v} R) ℕ) (p : ∀ i, C (i + 1) ⟶ C i) |
| 167 | (n : ℕ) (hsurj : ∀ i, Function.Surjective ((p i).f (n + 2))) |
| 168 | (hvanish : ∀ i, IsZero ((C i).homology (n + 1))) |
| 169 | (z w : ∀ i, (C i).cycles n) |
| 170 | (hz : ∀ i, cyclesMap (p i) n (z (i + 1)) = z i) |
| 171 | (hw : ∀ i, cyclesMap (p i) n (w (i + 1)) = w i) |
| 172 | (hclass : ∀ i, (C i).homologyπ n (z i) = (C i).homologyπ n (w i)) : |
| 173 | ∃ b : ∀ i, (C i).X (n + 1), |
| 174 | (∀ i, (C i).toCycles (n + 1) n (b i) = z i - w i) ∧ |
| 175 | ∀ i, (p i).f (n + 1) (b (i + 1)) = b i := by |
| 176 | apply exists_coherent_boundary_primitives C p n hsurj hvanish (fun i => z i - w i) |
| 177 | · intro i |
| 178 | rw [map_sub, hclass i, sub_self] |
| 179 | · intro i |
| 180 | rw [map_sub, hz i, hw i] |
| 181 | |
| 182 | /-- Joint injectivity of projections on chains implies joint injectivity on |
| 183 | their native cycle objects. -/ |
| 184 | theorem chain_cycles_projections_jointly_injective |
| 185 | (D : ChainComplex (ModuleCat.{v} R) ℕ) |
| 186 | (C : ℕ → ChainComplex (ModuleCat.{v} R) ℕ) (q : ∀ i, D ⟶ C i) (n : ℕ) |
| 187 | (hinj : Function.Injective (fun a : D.X n => fun i => (q i).f n a)) : |
| 188 | Function.Injective (fun z : D.cycles n => fun i => cyclesMap (q i) n z) := by |
| 189 | intro z w h |
| 190 | apply (ModuleCat.mono_iff_injective (D.iCycles n)).mp inferInstance |
| 191 | apply hinj |
| 192 | funext i |
| 193 | have hz := ConcreteCategory.congr_hom (cyclesMap_i (q i) n) z |
| 194 | have hw := ConcreteCategory.congr_hom (cyclesMap_i (q i) n) w |
| 195 | exact hz.symm.trans ((congrArg ((C i).iCycles n) (congrFun h i)).trans hw) |
| 196 | |
| 197 | /-- A chain complex identified degreewise with the coherent chains of the |
| 198 | tower realizes every coherent family of native homology classes. -/ |
| 199 | theorem exists_homology_class_of_coherent_classes |
| 200 | (D : ChainComplex (ModuleCat.{v} R) ℕ) |
| 201 | (C : ℕ → ChainComplex (ModuleCat.{v} R) ℕ) (p : ∀ i, C (i + 1) ⟶ C i) |
| 202 | (q : ∀ i, D ⟶ C i) (n : ℕ) |
| 203 | (hsurj : ∀ i, Function.Surjective ((p i).f (n + 1))) |
| 204 | (hinj : ∀ k, Function.Injective (fun a : D.X k => fun i => (q i).f k a)) |
| 205 | (hlift : ∀ (k : ℕ) (a : ∀ i, (C i).X k), |
| 206 | (∀ i, (p i).f k (a (i + 1)) = a i) → |
| 207 | ∃ b : D.X k, ∀ i, (q i).f k b = a i) |
| 208 | (c : ∀ i, (C i).homology n) |
| 209 | (hc : ∀ i, homologyMap (p i) n (c (i + 1)) = c i) : |
| 210 | ∃ a : D.homology n, ∀ i, homologyMap (q i) n a = c i := by |
| 211 | obtain ⟨z, hz, hcoh⟩ := exists_coherent_cycle_representatives C p n hsurj c hc |
| 212 | have hchains : ∀ i, (p i).f n ((C (i + 1)).iCycles n (z (i + 1))) = |
| 213 | (C i).iCycles n (z i) := by |
| 214 | intro i |
| 215 | have h := ConcreteCategory.congr_hom (cyclesMap_i (p i) n) (z (i + 1)) |
| 216 | exact h.symm.trans (congrArg ((C i).iCycles n) (hcoh i)) |
| 217 | obtain ⟨b, hb⟩ := hlift n (fun i => (C i).iCycles n (z i)) hchains |
| 218 | let k := (ComplexShape.down ℕ).next n |
| 219 | have hdb : D.d n k b = 0 := by |
| 220 | apply hinj k |
| 221 | funext i |
| 222 | change (q i).f k (D.d n k b) = (q i).f k 0 |
| 223 | rw [map_zero] |
| 224 | have h := ConcreteCategory.congr_hom ((q i).comm n k) b |
| 225 | change (C i).d n k ((q i).f n b) = (q i).f k (D.d n k b) at h |
| 226 | rw [← h, hb i] |
| 227 | exact ConcreteCategory.congr_hom ((C i).iCycles_d n k) (z i) |
| 228 | let w : D.cycles n := D.cyclesMk b k rfl hdb |
| 229 | have hw : D.iCycles n w = b := D.i_cyclesMk b k rfl hdb |
| 230 | have hmap : ∀ i, cyclesMap (q i) n w = z i := by |
| 231 | intro i |
| 232 | apply (ModuleCat.mono_iff_injective ((C i).iCycles n)).mp inferInstance |
| 233 | have h := ConcreteCategory.congr_hom (cyclesMap_i (q i) n) w |
| 234 | exact h.trans (by |
| 235 | change (q i).f n (D.iCycles n w) = (C i).iCycles n (z i) |
| 236 | rw [hw, hb i]) |
| 237 | refine ⟨D.homologyπ n w, fun i => ?_⟩ |
| 238 | rw [← chainHomologyπ_naturality_apply, hmap i, hz i] |
| 239 | |
| 240 | /-- If the next levelwise homology vanishes, projections determine a native |
| 241 | homology class of a complex of coherent chains uniquely. -/ |
| 242 | theorem homology_class_eq_of_coherent_projections |
| 243 | (D : ChainComplex (ModuleCat.{v} R) ℕ) |
| 244 | (C : ℕ → ChainComplex (ModuleCat.{v} R) ℕ) (p : ∀ i, C (i + 1) ⟶ C i) |
| 245 | (q : ∀ i, D ⟶ C i) (n : ℕ) |
| 246 | (hsurj : ∀ i, Function.Surjective ((p i).f (n + 2))) |
| 247 | (hvanish : ∀ i, IsZero ((C i).homology (n + 1))) |
| 248 | (hq : ∀ i, q (i + 1) ≫ p i = q i) |
| 249 | (hinj : ∀ k, Function.Injective (fun a : D.X k => fun i => (q i).f k a)) |
| 250 | (hlift : ∀ (k : ℕ) (a : ∀ i, (C i).X k), |
| 251 | (∀ i, (p i).f k (a (i + 1)) = a i) → |
| 252 | ∃ b : D.X k, ∀ i, (q i).f k b = a i) |
| 253 | (a b : D.homology n) |
| 254 | (hab : ∀ i, homologyMap (q i) n a = homologyMap (q i) n b) : a = b := by |
| 255 | obtain ⟨z, hz⟩ := (ModuleCat.epi_iff_surjective (D.homologyπ n)).mp inferInstance a |
| 256 | obtain ⟨w, hw⟩ := (ModuleCat.epi_iff_surjective (D.homologyπ n)).mp inferInstance b |
| 257 | have coh (z : D.cycles n) : |
| 258 | ∀ i, cyclesMap (p i) n (cyclesMap (q (i + 1)) n z) = cyclesMap (q i) n z := by |
| 259 | intro i |
| 260 | have h := congrArg (fun f : D ⟶ C i => cyclesMap f n) (hq i) |
| 261 | rw [cyclesMap_comp] at h |
| 262 | exact ConcreteCategory.congr_hom h z |
| 263 | have hclass : ∀ i, (C i).homologyπ n (cyclesMap (q i) n z) = |
| 264 | (C i).homologyπ n (cyclesMap (q i) n w) := by |
| 265 | intro i |
| 266 | rw [chainHomologyπ_naturality_apply, chainHomologyπ_naturality_apply, hz, hw] |
| 267 | exact hab i |
| 268 | obtain ⟨t, ht, hcoht⟩ := coherent_cycles_equal_mod_boundary C p n hsurj hvanish |
| 269 | (fun i => cyclesMap (q i) n z) (fun i => cyclesMap (q i) n w) (coh z) (coh w) hclass |
| 270 | obtain ⟨v, hv⟩ := hlift (n + 1) t hcoht |
| 271 | have hboundary : D.toCycles (n + 1) n v = z - w := by |
| 272 | apply chain_cycles_projections_jointly_injective D C q n (hinj n) |
| 273 | funext i |
| 274 | change cyclesMap (q i) n (D.toCycles (n + 1) n v) = cyclesMap (q i) n (z - w) |
| 275 | rw [chainToCycles_naturality_apply, hv i, ht i, map_sub] |
| 276 | have hzero := ConcreteCategory.congr_hom (D.toCycles_comp_homologyπ (n + 1) n) v |
| 277 | change D.homologyπ n (D.toCycles (n + 1) n v) = 0 at hzero |
| 278 | rw [hboundary, map_sub, hz, hw] at hzero |
| 279 | exact sub_eq_zero.mp hzero |
| 280 | |
| 281 | /-- A coherent homology family determines a unique native homology class in |
| 282 | an actual degreewise inverse-limit model when the next homology groups |
| 283 | vanish. The hypotheses `hinj` and `hlift` are the explicit chain-level limit |
| 284 | property, and must be proved for the chosen model. -/ |
| 285 | theorem existsUnique_homology_class_of_coherent_classes |
| 286 | (D : ChainComplex (ModuleCat.{v} R) ℕ) |
| 287 | (C : ℕ → ChainComplex (ModuleCat.{v} R) ℕ) (p : ∀ i, C (i + 1) ⟶ C i) |
| 288 | (q : ∀ i, D ⟶ C i) (n : ℕ) |
| 289 | (hsurj : ∀ i k, Function.Surjective ((p i).f k)) |
| 290 | (hvanish : ∀ i, IsZero ((C i).homology (n + 1))) |
| 291 | (hq : ∀ i, q (i + 1) ≫ p i = q i) |
| 292 | (hinj : ∀ k, Function.Injective (fun a : D.X k => fun i => (q i).f k a)) |
| 293 | (hlift : ∀ (k : ℕ) (a : ∀ i, (C i).X k), |
| 294 | (∀ i, (p i).f k (a (i + 1)) = a i) → |
| 295 | ∃ b : D.X k, ∀ i, (q i).f k b = a i) |
| 296 | (c : ∀ i, (C i).homology n) |
| 297 | (hc : ∀ i, homologyMap (p i) n (c (i + 1)) = c i) : |
| 298 | ∃! a : D.homology n, ∀ i, homologyMap (q i) n a = c i := by |
| 299 | obtain ⟨a, ha⟩ := exists_homology_class_of_coherent_classes D C p q n |
| 300 | (fun i => hsurj i (n + 1)) hinj hlift c hc |
| 301 | refine ⟨a, ha, fun b hb => ?_⟩ |
| 302 | exact homology_class_eq_of_coherent_projections D C p q n |
| 303 | (fun i => hsurj i (n + 2)) hvanish hq hinj hlift b a |
| 304 | (fun i => (hb i).trans (ha i).symm) |
| 305 | |
| 306 | end |
| 307 | |
| 308 | end OAI.AlgebraicGeometry.CycleClass.Geometric.CoherentLifting.Cycles |