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.AlgebraicGeometry.CycleClass.Geometric.BinarySmallInclusion |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Geometric.SmallSingularQuasiIso |
| 3 | import Mathlib.CategoryTheory.Limits.Shapes.Pullback.IsPullback.Kernels |
| 4 | import Mathlib.Algebra.Homology.HomologySequenceLemmas |
| 5 | |
| 6 | /-! # Local Excision -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.LocalExcision |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # Local excision for actual integral singular homology |
| 14 | |
| 15 | The relative-cover comparison starts from the actual binary small-chain |
| 16 | pushout. Its quotient identifies relative chains in one cover member with |
| 17 | small chains modulo the other cover member. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 21 | |
| 22 | set_option backward.defeqAttrib.useBackward true |
| 23 | set_option backward.isDefEq.respectTransparency false |
| 24 | |
| 25 | namespace Cycles |
| 26 | |
| 27 | variable (X : TopCat.{0}) (U A : Set X) |
| 28 | |
| 29 | /-- The subspace of `U` lying in `A` is the actual intersection subspace of `X`. -/ |
| 30 | def relativeIntersectionHomeomorph : |
| 31 | ((LocalHomology.Cycles.subspaceInclusion X U) ⁻¹' A) ≃ₜ (U ∩ A : Set X) where |
| 32 | toFun u := ⟨u.1.1, u.1.2, u.2⟩ |
| 33 | invFun z := ⟨⟨z.1, z.2.1⟩, z.2.2⟩ |
| 34 | left_inv _ := rfl |
| 35 | right_inv _ := rfl |
| 36 | continuous_toFun := (continuous_subtype_val.comp continuous_subtype_val).subtype_mk _ |
| 37 | continuous_invFun := (continuous_subtype_val.subtype_mk _).subtype_mk _ |
| 38 | |
| 39 | /-- The map from the intersection, viewed inside `U`, to the second subspace. -/ |
| 40 | def relativeIntersectionToRight : |
| 41 | TopCat.of ((LocalHomology.Cycles.subspaceInclusion X U) ⁻¹' A) ⟶ TopCat.of A := |
| 42 | LocalHomology.Cycles.subspaceMap (LocalHomology.Cycles.subspaceInclusion X U) (fun _ h => h) |
| 43 | |
| 44 | /-- The binary small-chain pushout expressed using the genuine relative-pair |
| 45 | subspace in `U`. -/ |
| 46 | theorem relativeCover_isPushout : |
| 47 | IsPushout |
| 48 | (LocalHomology.Cycles.subspaceChainInclusion (TopCat.of U) ((LocalHomology.Cycles.subspaceInclusion X U) ⁻¹' A)) |
| 49 | (LocalHomology.Cycles.integralSingularChainFunctor.map (relativeIntersectionToRight X U A)) |
| 50 | (SmallMayerVietoris.Cycles.integralSimplicialChainFunctor.map (SmallMayerVietoris.Cycles.binarySmallSingularLeft X U A)) |
| 51 | (SmallMayerVietoris.Cycles.integralSimplicialChainFunctor.map (SmallMayerVietoris.Cycles.binarySmallSingularRight X U A)) := by |
| 52 | refine (SmallMayerVietoris.Cycles.binarySmallChain_isPushout X U A).of_iso' |
| 53 | (LocalHomology.Cycles.integralSingularChainFunctor.mapIso |
| 54 | (TopCat.isoOfHomeo (relativeIntersectionHomeomorph X U A))) |
| 55 | (Iso.refl _) (Iso.refl _) (Iso.refl _) ?_ ?_ ?_ ?_ |
| 56 | · change LocalHomology.Cycles.integralSingularChainFunctor.map _ ≫ LocalHomology.Cycles.integralSingularChainFunctor.map _ = |
| 57 | LocalHomology.Cycles.integralSingularChainFunctor.map _ ≫ 𝟙 _ |
| 58 | rw [Category.comp_id, ← Functor.map_comp] |
| 59 | rfl |
| 60 | · change LocalHomology.Cycles.integralSingularChainFunctor.map _ ≫ LocalHomology.Cycles.integralSingularChainFunctor.map _ = |
| 61 | LocalHomology.Cycles.integralSingularChainFunctor.map _ ≫ 𝟙 _ |
| 62 | rw [Category.comp_id, ← Functor.map_comp] |
| 63 | rfl |
| 64 | · exact (Category.id_comp _).trans (Category.comp_id _).symm |
| 65 | · exact (Category.id_comp _).trans (Category.comp_id _).symm |
| 66 | |
| 67 | /-- The actual binary-cover small chains modulo chains in the second member. -/ |
| 68 | abbrev binarySmallRelativeChains : ChainComplex (ModuleCat.{0} ℤ) ℕ := |
| 69 | cokernel (SmallMayerVietoris.Cycles.integralSimplicialChainFunctor.map (SmallMayerVietoris.Cycles.binarySmallSingularRight X U A)) |
| 70 | |
| 71 | /-- Projection from binary small chains to their quotient by chains in `A`. -/ |
| 72 | abbrev binarySmallRelativeProjection : |
| 73 | SmallMayerVietoris.Cycles.binarySmallSingularChains X U A ⟶ binarySmallRelativeChains X U A := |
| 74 | cokernel.π (SmallMayerVietoris.Cycles.integralSimplicialChainFunctor.map (SmallMayerVietoris.Cycles.binarySmallSingularRight X U A)) |
| 75 | |
| 76 | /-- The canonical relative-cover quotient map, induced by inclusion of `U`. -/ |
| 77 | def relativeCoverCokernelMap : |
| 78 | LocalHomology.Cycles.relativeSingularChains (TopCat.of U) ((LocalHomology.Cycles.subspaceInclusion X U) ⁻¹' A) ⟶ |
| 79 | binarySmallRelativeChains X U A := |
| 80 | cokernel.map |
| 81 | (LocalHomology.Cycles.subspaceChainInclusion (TopCat.of U) ((LocalHomology.Cycles.subspaceInclusion X U) ⁻¹' A)) |
| 82 | (SmallMayerVietoris.Cycles.integralSimplicialChainFunctor.map (SmallMayerVietoris.Cycles.binarySmallSingularRight X U A)) |
| 83 | (LocalHomology.Cycles.integralSingularChainFunctor.map (relativeIntersectionToRight X U A)) |
| 84 | (SmallMayerVietoris.Cycles.integralSimplicialChainFunctor.map (SmallMayerVietoris.Cycles.binarySmallSingularLeft X U A)) |
| 85 | (relativeCover_isPushout X U A).w |
| 86 | |
| 87 | /-- A pushout preserves the quotient by the opposite cover member. -/ |
| 88 | instance relativeCoverCokernelMap_isIso : IsIso (relativeCoverCokernelMap X U A) := |
| 89 | isIso_cokernel_map_of_isPushout (relativeCover_isPushout X U A) |
| 90 | |
| 91 | /-- Relative chains in `U` are exactly small chains modulo chains in `A`. -/ |
| 92 | def relativeCoverCokernelIso : |
| 93 | LocalHomology.Cycles.relativeSingularChains (TopCat.of U) ((LocalHomology.Cycles.subspaceInclusion X U) ⁻¹' A) ≅ |
| 94 | binarySmallRelativeChains X U A := |
| 95 | asIso (relativeCoverCokernelMap X U A) |
| 96 | |
| 97 | /-- The quotient identification is induced by the actual inclusion of `U`. -/ |
| 98 | @[reassoc (attr := simp)] |
| 99 | theorem relativeCoverCokernelMap_projection : |
| 100 | LocalHomology.Cycles.relativeChainProjection (TopCat.of U) ((LocalHomology.Cycles.subspaceInclusion X U) ⁻¹' A) ≫ |
| 101 | relativeCoverCokernelMap X U A = |
| 102 | SmallMayerVietoris.Cycles.integralSimplicialChainFunctor.map (SmallMayerVietoris.Cycles.binarySmallSingularLeft X U A) ≫ |
| 103 | binarySmallRelativeProjection X U A := |
| 104 | cokernel.π_desc _ _ _ |
| 105 | |
| 106 | /-- The actual map of relative chain complexes induced by inclusion of `U`. -/ |
| 107 | def relativeCoverInclusion : |
| 108 | LocalHomology.Cycles.relativeSingularChains (TopCat.of U) ((LocalHomology.Cycles.subspaceInclusion X U) ⁻¹' A) ⟶ |
| 109 | LocalHomology.Cycles.relativeSingularChains X A := |
| 110 | LocalHomology.Cycles.relativeSingularChainsMap (LocalHomology.Cycles.subspaceInclusion X U) (fun _ h => h) |
| 111 | |
| 112 | /-- Chains in the second member inject into the actual binary small chains. -/ |
| 113 | instance binarySmallSingularRight_chain_mono : |
| 114 | Mono (SmallMayerVietoris.Cycles.integralSimplicialChainFunctor.map (SmallMayerVietoris.Cycles.binarySmallSingularRight X U A)) := |
| 115 | mono_of_mono_fac (BinarySmallInclusion.Cycles.binarySmallIntegralChainInclusion_right X U A) |
| 116 | |
| 117 | /-- The quotient sequence for actual small chains relative to `A`. -/ |
| 118 | def binarySmallRelativeSequence : |
| 119 | ShortComplex (ChainComplex (ModuleCat.{0} ℤ) ℕ) := |
| 120 | ShortComplex.mk |
| 121 | (SmallMayerVietoris.Cycles.integralSimplicialChainFunctor.map (SmallMayerVietoris.Cycles.binarySmallSingularRight X U A)) |
| 122 | (binarySmallRelativeProjection X U A) (cokernel.condition _) |
| 123 | |
| 124 | /-- The quotient sequence of small relative chains is short exact. -/ |
| 125 | theorem binarySmallRelativeSequence_shortExact : |
| 126 | (binarySmallRelativeSequence X U A).ShortExact := by |
| 127 | change (ShortComplex.mk |
| 128 | (SmallMayerVietoris.Cycles.integralSimplicialChainFunctor.map (SmallMayerVietoris.Cycles.binarySmallSingularRight X U A)) |
| 129 | (cokernel.π _) _).ShortExact |
| 130 | exact { exact := ShortComplex.cokernelSequence_exact _ } |
| 131 | |
| 132 | /-- Canonical inclusion from small relative chains to all relative chains. -/ |
| 133 | def binarySmallRelativeInclusion : |
| 134 | binarySmallRelativeChains X U A ⟶ LocalHomology.Cycles.relativeSingularChains X A := |
| 135 | cokernel.map |
| 136 | (SmallMayerVietoris.Cycles.integralSimplicialChainFunctor.map (SmallMayerVietoris.Cycles.binarySmallSingularRight X U A)) |
| 137 | (LocalHomology.Cycles.subspaceChainInclusion X A) (𝟙 _) (BinarySmallInclusion.Cycles.binarySmallIntegralChainInclusion X U A) |
| 138 | (by |
| 139 | rw [Category.id_comp] |
| 140 | exact BinarySmallInclusion.Cycles.binarySmallIntegralChainInclusion_right X U A) |
| 141 | |
| 142 | /-- The small relative inclusion is induced by the actual absolute inclusion. -/ |
| 143 | @[reassoc (attr := simp)] |
| 144 | theorem binarySmallRelativeInclusion_projection : |
| 145 | binarySmallRelativeProjection X U A ≫ binarySmallRelativeInclusion X U A = |
| 146 | BinarySmallInclusion.Cycles.binarySmallIntegralChainInclusion X U A ≫ LocalHomology.Cycles.relativeChainProjection X A := |
| 147 | cokernel.π_desc _ _ _ |
| 148 | |
| 149 | /-- Comparison of the two actual short exact sequences, identical on `C(A)`. -/ |
| 150 | def binarySmallRelativeSequenceMap : |
| 151 | binarySmallRelativeSequence X U A ⟶ LocalHomology.Cycles.relativeChainSequence X A where |
| 152 | τ₁ := 𝟙 _ |
| 153 | τ₂ := BinarySmallInclusion.Cycles.binarySmallIntegralChainInclusion X U A |
| 154 | τ₃ := binarySmallRelativeInclusion X U A |
| 155 | comm₁₂ := by |
| 156 | change 𝟙 _ ≫ LocalHomology.Cycles.subspaceChainInclusion X A = |
| 157 | SmallMayerVietoris.Cycles.integralSimplicialChainFunctor.map (SmallMayerVietoris.Cycles.binarySmallSingularRight X U A) ≫ |
| 158 | BinarySmallInclusion.Cycles.binarySmallIntegralChainInclusion X U A |
| 159 | rw [Category.id_comp] |
| 160 | exact (BinarySmallInclusion.Cycles.binarySmallIntegralChainInclusion_right X U A).symm |
| 161 | comm₂₃ := (binarySmallRelativeInclusion_projection X U A).symm |
| 162 | |
| 163 | /-- The relative comparison inherits a proved absolute small-chain |
| 164 | quasi-isomorphism by the homology sequences of these short exact sequences. -/ |
| 165 | theorem binarySmallRelativeInclusion_quasiIso_of_small |
| 166 | (hsmall : _root_.QuasiIso (BinarySmallInclusion.Cycles.binarySmallIntegralChainInclusion X U A)) : |
| 167 | _root_.QuasiIso (binarySmallRelativeInclusion X U A) := by |
| 168 | exact HomologicalComplex.HomologySequence.quasiIso_τ₃ |
| 169 | (binarySmallRelativeSequenceMap X U A) |
| 170 | (binarySmallRelativeSequence_shortExact X U A) |
| 171 | (LocalHomology.Cycles.relativeChainSequence_shortExact X A) |
| 172 | (by change _root_.QuasiIso (𝟙 _); infer_instance) hsmall |
| 173 | |
| 174 | /-- The canonical relative inclusion factors through the proved quotient |
| 175 | identification and the canonical small relative inclusion. -/ |
| 176 | theorem relativeCoverInclusion_factor : |
| 177 | relativeCoverCokernelMap X U A ≫ binarySmallRelativeInclusion X U A = |
| 178 | relativeCoverInclusion X U A := by |
| 179 | apply (cancel_epi |
| 180 | (LocalHomology.Cycles.relativeChainProjection (TopCat.of U) ((LocalHomology.Cycles.subspaceInclusion X U) ⁻¹' A))).mp |
| 181 | rw [← Category.assoc, relativeCoverCokernelMap_projection, Category.assoc, |
| 182 | binarySmallRelativeInclusion_projection, ← Category.assoc, |
| 183 | BinarySmallInclusion.Cycles.binarySmallIntegralChainInclusion_left] |
| 184 | exact (LocalHomology.Cycles.relativeChainProjection_naturality (LocalHomology.Cycles.subspaceInclusion X U) (fun _ h => h)).symm |
| 185 | |
| 186 | /-- Relative excision follows from the actual absolute small-chain |
| 187 | quasi-isomorphism; the quotient identification is a chain isomorphism. -/ |
| 188 | theorem relativeCoverInclusion_quasiIso_of_small |
| 189 | (hsmall : _root_.QuasiIso (BinarySmallInclusion.Cycles.binarySmallIntegralChainInclusion X U A)) : |
| 190 | _root_.QuasiIso (relativeCoverInclusion X U A) := by |
| 191 | have := binarySmallRelativeInclusion_quasiIso_of_small X U A hsmall |
| 192 | rw [← relativeCoverInclusion_factor] |
| 193 | infer_instance |
| 194 | |
| 195 | /-- For an actual binary open cover, the canonical inclusion of small relative |
| 196 | chains is a quasi-isomorphism. -/ |
| 197 | theorem binarySmallRelativeInclusion_quasiIso |
| 198 | (hU : IsOpen U) (hA : IsOpen A) (hcover : U ∪ A = Set.univ) : |
| 199 | _root_.QuasiIso (binarySmallRelativeInclusion X U A) := |
| 200 | binarySmallRelativeInclusion_quasiIso_of_small X U A |
| 201 | (SmallSingularQuasiIso.Cycles.binarySmallIntegralChainInclusion_quasiIso X U A hU hA hcover) |
| 202 | |
| 203 | /-- Relative excision for a binary open cover, proved for the actual inclusion |
| 204 | of pairs `(U, U ∩ A) → (X, A)`. -/ |
| 205 | theorem relativeCoverInclusion_quasiIso |
| 206 | (hU : IsOpen U) (hA : IsOpen A) (hcover : U ∪ A = Set.univ) : |
| 207 | _root_.QuasiIso (relativeCoverInclusion X U A) := |
| 208 | relativeCoverInclusion_quasiIso_of_small X U A |
| 209 | (SmallSingularQuasiIso.Cycles.binarySmallIntegralChainInclusion_quasiIso X U A hU hA hcover) |
| 210 | |
| 211 | /-- The relative homology isomorphism of a binary open cover is induced by |
| 212 | the genuine inclusion of pairs. -/ |
| 213 | def relativeCoverHomologyIso |
| 214 | (hU : IsOpen U) (hA : IsOpen A) (hcover : U ∪ A = Set.univ) (n : ℕ) : |
| 215 | LocalHomology.Cycles.relativeSingularHomology (TopCat.of U) ((LocalHomology.Cycles.subspaceInclusion X U) ⁻¹' A) n ≅ |
| 216 | LocalHomology.Cycles.relativeSingularHomology X A n := by |
| 217 | have := relativeCoverInclusion_quasiIso X U A hU hA hcover |
| 218 | exact isoOfQuasiIsoAt (relativeCoverInclusion X U A) n |
| 219 | |
| 220 | @[simp] |
| 221 | theorem relativeCoverHomologyIso_hom |
| 222 | (hU : IsOpen U) (hA : IsOpen A) (hcover : U ∪ A = Set.univ) (n : ℕ) : |
| 223 | (relativeCoverHomologyIso X U A hU hA hcover n).hom = |
| 224 | HomologicalComplex.homologyMap (relativeCoverInclusion X U A) n := rfl |
| 225 | |
| 226 | variable (x : X) (hx : x ∈ U) |
| 227 | |
| 228 | /-- The actual map of punctured pairs induced by the inclusion of `U` into `X`. -/ |
| 229 | def localExcisionChainMap : |
| 230 | LocalHomology.Cycles.relativeSingularChains (TopCat.of U) ({(⟨x, hx⟩ : U)}ᶜ : Set U) ⟶ |
| 231 | LocalHomology.Cycles.relativeSingularChains X ({x}ᶜ : Set X) := |
| 232 | LocalHomology.Cycles.relativeSingularChainsMap (LocalHomology.Cycles.subspaceInclusion X U) (by |
| 233 | intro y hy |
| 234 | change y.1 ≠ x |
| 235 | change y ≠ (⟨x, hx⟩ : U) at hy |
| 236 | exact fun h => hy (Subtype.ext h)) |
| 237 | |
| 238 | /-- The punctured subspace of `U` is the preimage of the ambient punctured space; |
| 239 | the relative-chain isomorphism is induced by the identity homeomorphism. -/ |
| 240 | def localRelativePreimageIso : |
| 241 | LocalHomology.Cycles.relativeSingularChains (TopCat.of U) ({(⟨x, hx⟩ : U)}ᶜ : Set U) ≅ |
| 242 | LocalHomology.Cycles.relativeSingularChains (TopCat.of U) ((LocalHomology.Cycles.subspaceInclusion X U) ⁻¹' ({x}ᶜ : Set X)) := |
| 243 | LocalHomology.Cycles.relativeSingularChainsIso (Homeomorph.refl (TopCat.of U)) (by |
| 244 | intro y |
| 245 | change y ≠ (⟨x, hx⟩ : U) ↔ y.1 ≠ x |
| 246 | exact not_congr Subtype.ext_iff) |
| 247 | |
| 248 | /-- The punctured-subspace identification does not change absolute chains. -/ |
| 249 | @[reassoc (attr := simp)] |
| 250 | theorem localRelativePreimageIso_projection : |
| 251 | LocalHomology.Cycles.relativeChainProjection (TopCat.of U) ({(⟨x, hx⟩ : U)}ᶜ : Set U) ≫ |
| 252 | (localRelativePreimageIso X U x hx).hom = |
| 253 | LocalHomology.Cycles.relativeChainProjection (TopCat.of U) |
| 254 | ((LocalHomology.Cycles.subspaceInclusion X U) ⁻¹' ({x}ᶜ : Set X)) := by |
| 255 | have h : Set.MapsTo (𝟙 (TopCat.of U)) ({(⟨x, hx⟩ : U)}ᶜ : Set U) |
| 256 | ((LocalHomology.Cycles.subspaceInclusion X U) ⁻¹' ({x}ᶜ : Set X)) := by |
| 257 | intro y hy |
| 258 | change y.1 ≠ x |
| 259 | change y ≠ (⟨x, hx⟩ : U) at hy |
| 260 | exact fun h => hy (Subtype.ext h) |
| 261 | change _ ≫ LocalHomology.Cycles.relativeSingularChainsMap (𝟙 (TopCat.of U)) h = _ |
| 262 | rw [LocalHomology.Cycles.relativeChainProjection_naturality, CategoryTheory.Functor.map_id, Category.id_comp] |
| 263 | |
| 264 | /-- Local excision is the relative-cover inclusion after the identity |
| 265 | identification of the two punctured-subspace presentations. -/ |
| 266 | theorem localExcisionChainMap_factor : |
| 267 | (localRelativePreimageIso X U x hx).hom ≫ relativeCoverInclusion X U ({x}ᶜ : Set X) = |
| 268 | localExcisionChainMap X U x hx := by |
| 269 | apply (cancel_epi |
| 270 | (LocalHomology.Cycles.relativeChainProjection (TopCat.of U) ({(⟨x, hx⟩ : U)}ᶜ : Set U))).mp |
| 271 | rw [← Category.assoc, localRelativePreimageIso_projection] |
| 272 | exact (LocalHomology.Cycles.relativeChainProjection_naturality (LocalHomology.Cycles.subspaceInclusion X U) (fun _ h => h)).trans |
| 273 | (LocalHomology.Cycles.relativeChainProjection_naturality (LocalHomology.Cycles.subspaceInclusion X U) _).symm |
| 274 | |
| 275 | /-- Local excision: an open neighborhood of a point in a T1 space induces a |
| 276 | quasi-isomorphism on the actual punctured relative singular chain complexes. -/ |
| 277 | theorem localExcisionChainMap_quasiIso [T1Space X] (hU : IsOpen U) : |
| 278 | _root_.QuasiIso (localExcisionChainMap X U x hx) := by |
| 279 | have hcover : U ∪ ({x}ᶜ : Set X) = Set.univ := by |
| 280 | apply Set.eq_univ_of_forall |
| 281 | intro y |
| 282 | by_cases hy : y = x |
| 283 | · subst y |
| 284 | exact Or.inl hx |
| 285 | · exact Or.inr (by simpa only [Set.mem_compl_iff, Set.mem_singleton_iff] using hy) |
| 286 | have := relativeCoverInclusion_quasiIso X U ({x}ᶜ : Set X) |
| 287 | hU isOpen_compl_singleton hcover |
| 288 | rw [← localExcisionChainMap_factor X U x hx] |
| 289 | infer_instance |
| 290 | |
| 291 | /-- The canonical local homology isomorphism induced by an open-neighborhood |
| 292 | inclusion, with no excision or local-orientation assumption. -/ |
| 293 | def localExcisionHomologyIso [T1Space X] (hU : IsOpen U) (n : ℕ) : |
| 294 | LocalHomology.Cycles.localSingularHomology (TopCat.of U) (⟨x, hx⟩ : U) n ≅ |
| 295 | LocalHomology.Cycles.localSingularHomology X x n := by |
| 296 | have := localExcisionChainMap_quasiIso X U x hx hU |
| 297 | exact isoOfQuasiIsoAt (localExcisionChainMap X U x hx) n |
| 298 | |
| 299 | @[simp] |
| 300 | theorem localExcisionHomologyIso_hom [T1Space X] (hU : IsOpen U) (n : ℕ) : |
| 301 | (localExcisionHomologyIso X U x hx hU n).hom = |
| 302 | HomologicalComplex.homologyMap (localExcisionChainMap X U x hx) n := rfl |
| 303 | |
| 304 | end Cycles |
| 305 | |
| 306 | end |
| 307 | |
| 308 | end OAI.AlgebraicGeometry.CycleClass.Geometric.LocalExcision |