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.AlgebraicTopology.SingularHomology.Basic |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Abelian |
| 3 | import Mathlib.Algebra.Category.ModuleCat.Colimits |
| 4 | import Mathlib.Algebra.Category.ModuleCat.Products |
| 5 | import Mathlib.Algebra.Homology.HomologicalComplexAbelian |
| 6 | import Mathlib.Topology.Category.TopCat.EpiMono |
| 7 | |
| 8 | /-! # Local Homology -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | section |
| 15 | |
| 16 | /-! |
| 17 | # Relative singular chains and local homology |
| 18 | |
| 19 | These are genuine integral singular chains. For a subspace `A ⊆ X`, relative |
| 20 | chains are the cokernel of the singular chain map of the continuous inclusion. |
| 21 | In particular, local homology at `x` means `Hₙ(X, X \ {x}; ℤ)`. |
| 22 | |
| 23 | The short exact sequence below supplies the chain-level starting point for the |
| 24 | long exact sequence of a pair. It does not assert excision, a local orientation |
| 25 | theorem, a fundamental class, or Poincaré duality. |
| 26 | -/ |
| 27 | |
| 28 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicTopology |
| 29 | |
| 30 | /-- The ordinary integral singular chain functor already constructed by mathlib. -/ |
| 31 | abbrev integralSingularChainFunctor : TopCat.{0} ⥤ ChainComplex (ModuleCat.{0} ℤ) ℕ := |
| 32 | (singularChainComplexFunctor (ModuleCat.{0} ℤ)).obj (ModuleCat.of ℤ ℤ) |
| 33 | |
| 34 | /-- Ordinary integral singular chains, with the alternating face differential. -/ |
| 35 | abbrev integralSingularChains (X : TopCat.{0}) : ChainComplex (ModuleCat.{0} ℤ) ℕ := |
| 36 | integralSingularChainFunctor.obj X |
| 37 | |
| 38 | /-- Inclusion of a subspace with its induced topology. -/ |
| 39 | def subspaceInclusion (X : TopCat.{0}) (A : Set X) : TopCat.of A ⟶ X := |
| 40 | TopCat.ofHom ⟨Subtype.val, continuous_subtype_val⟩ |
| 41 | |
| 42 | instance subspaceInclusion_mono (X : TopCat.{0}) (A : Set X) : |
| 43 | Mono (subspaceInclusion X A) := |
| 44 | (TopCat.mono_iff_injective _).mpr Subtype.val_injective |
| 45 | |
| 46 | /-- The actual chain map induced by the inclusion `A ⊆ X`. -/ |
| 47 | abbrev subspaceChainInclusion (X : TopCat.{0}) (A : Set X) : |
| 48 | integralSingularChains (TopCat.of A) ⟶ integralSingularChains X := |
| 49 | integralSingularChainFunctor.map (subspaceInclusion X A) |
| 50 | |
| 51 | instance subspaceChainInclusion_mono (X : TopCat.{0}) (A : Set X) : |
| 52 | Mono (subspaceChainInclusion X A) := by |
| 53 | dsimp [subspaceChainInclusion] |
| 54 | infer_instance |
| 55 | |
| 56 | /-- Relative integral singular chains, the quotient of `Cₙ(X)` by `Cₙ(A)`. -/ |
| 57 | abbrev relativeSingularChains (X : TopCat.{0}) (A : Set X) : |
| 58 | ChainComplex (ModuleCat.{0} ℤ) ℕ := |
| 59 | cokernel (subspaceChainInclusion X A) |
| 60 | |
| 61 | /-- Projection from absolute to relative singular chains. -/ |
| 62 | abbrev relativeChainProjection (X : TopCat.{0}) (A : Set X) : |
| 63 | integralSingularChains X ⟶ relativeSingularChains X A := |
| 64 | cokernel.π (subspaceChainInclusion X A) |
| 65 | |
| 66 | @[reassoc (attr := simp)] |
| 67 | theorem subspaceChainInclusion_projection (X : TopCat.{0}) (A : Set X) : |
| 68 | subspaceChainInclusion X A ≫ relativeChainProjection X A = 0 := |
| 69 | cokernel.condition _ |
| 70 | |
| 71 | /-- The genuine singular-chain short complex for a pair of spaces. -/ |
| 72 | def relativeChainSequence (X : TopCat.{0}) (A : Set X) : |
| 73 | ShortComplex (ChainComplex (ModuleCat.{0} ℤ) ℕ) := |
| 74 | ShortComplex.mk (subspaceChainInclusion X A) (relativeChainProjection X A) |
| 75 | (subspaceChainInclusion_projection X A) |
| 76 | |
| 77 | /-- The chain sequence `0 → C(A) → C(X) → C(X,A) → 0` is short exact. -/ |
| 78 | theorem relativeChainSequence_shortExact (X : TopCat.{0}) (A : Set X) : |
| 79 | (relativeChainSequence X A).ShortExact := by |
| 80 | change (ShortComplex.mk (subspaceChainInclusion X A) |
| 81 | (cokernel.π (subspaceChainInclusion X A)) _).ShortExact |
| 82 | exact { exact := ShortComplex.cokernelSequence_exact (subspaceChainInclusion X A) } |
| 83 | |
| 84 | /-- The relative-chain sequence is also short exact in every individual degree. -/ |
| 85 | theorem relativeChainSequence_degreewiseShortExact (X : TopCat.{0}) (A : Set X) (n : ℕ) : |
| 86 | ((relativeChainSequence X A).map |
| 87 | (HomologicalComplex.eval (ModuleCat.{0} ℤ) (ComplexShape.down ℕ) n)).ShortExact := |
| 88 | (HomologicalComplex.shortExact_iff_degreewise_shortExact _).mp |
| 89 | (relativeChainSequence_shortExact X A) n |
| 90 | |
| 91 | /-- Integral relative singular homology. -/ |
| 92 | abbrev relativeSingularHomology (X : TopCat.{0}) (A : Set X) (n : ℕ) : |
| 93 | ModuleCat.{0} ℤ := |
| 94 | (relativeSingularChains X A).homology n |
| 95 | |
| 96 | /-- Local integral singular homology at a point, with the punctured subspace. -/ |
| 97 | abbrev localSingularHomology (X : TopCat.{0}) (x : X) (n : ℕ) : ModuleCat.{0} ℤ := |
| 98 | relativeSingularHomology X ({x}ᶜ : Set X) n |
| 99 | |
| 100 | /-- A continuous map restricting to the indicated subspaces. -/ |
| 101 | def subspaceMap {X Y : TopCat.{0}} (f : X ⟶ Y) {A : Set X} {B : Set Y} |
| 102 | (h : Set.MapsTo f A B) : TopCat.of A ⟶ TopCat.of B := |
| 103 | TopCat.ofHom ⟨fun a ↦ ⟨f a, h a.property⟩, |
| 104 | (f.hom.continuous.comp continuous_subtype_val).subtype_mk _⟩ |
| 105 | |
| 106 | @[reassoc] |
| 107 | theorem subspaceMap_inclusion {X Y : TopCat.{0}} (f : X ⟶ Y) |
| 108 | {A : Set X} {B : Set Y} (h : Set.MapsTo f A B) : |
| 109 | subspaceMap f h ≫ subspaceInclusion Y B = subspaceInclusion X A ≫ f := by |
| 110 | rfl |
| 111 | |
| 112 | /-- Functoriality of actual relative singular chains for a map of pairs. -/ |
| 113 | def relativeSingularChainsMap {X Y : TopCat.{0}} (f : X ⟶ Y) |
| 114 | {A : Set X} {B : Set Y} (h : Set.MapsTo f A B) : |
| 115 | relativeSingularChains X A ⟶ relativeSingularChains Y B := |
| 116 | cokernel.map (subspaceChainInclusion X A) (subspaceChainInclusion Y B) |
| 117 | (integralSingularChainFunctor.map (subspaceMap f h)) |
| 118 | (integralSingularChainFunctor.map f) (by |
| 119 | rw [← Functor.map_comp, ← Functor.map_comp, subspaceMap_inclusion]) |
| 120 | |
| 121 | @[reassoc (attr := simp)] |
| 122 | theorem relativeChainProjection_naturality {X Y : TopCat.{0}} (f : X ⟶ Y) |
| 123 | {A : Set X} {B : Set Y} (h : Set.MapsTo f A B) : |
| 124 | relativeChainProjection X A ≫ relativeSingularChainsMap f h = |
| 125 | integralSingularChainFunctor.map f ≫ relativeChainProjection Y B := by |
| 126 | exact cokernel.π_desc _ _ _ |
| 127 | |
| 128 | /-- The induced homomorphism of integral relative singular homology groups. -/ |
| 129 | abbrev relativeSingularHomologyMap {X Y : TopCat.{0}} (f : X ⟶ Y) |
| 130 | {A : Set X} {B : Set Y} (h : Set.MapsTo f A B) (n : ℕ) : |
| 131 | relativeSingularHomology X A n ⟶ relativeSingularHomology Y B n := |
| 132 | HomologicalComplex.homologyMap (relativeSingularChainsMap f h) n |
| 133 | |
| 134 | /-- Homeomorphisms of pairs induce isomorphisms of the relative chain complexes. -/ |
| 135 | def relativeSingularChainsIso {X Y : TopCat.{0}} (e : X ≃ₜ Y) |
| 136 | {A : Set X} {B : Set Y} (h : ∀ x, x ∈ A ↔ e x ∈ B) : |
| 137 | relativeSingularChains X A ≅ relativeSingularChains Y B := by |
| 138 | let f := (TopCat.isoOfHomeo e).hom |
| 139 | have hm : Set.MapsTo f A B := fun x hx ↦ (h x).mp hx |
| 140 | have hs : subspaceMap f hm = (TopCat.isoOfHomeo (e.subtype h)).hom := by |
| 141 | ext a |
| 142 | rfl |
| 143 | letI : IsIso (subspaceMap f hm) := by |
| 144 | rw [hs] |
| 145 | infer_instance |
| 146 | letI : IsIso (relativeSingularChainsMap f hm) := by |
| 147 | dsimp [relativeSingularChainsMap] |
| 148 | infer_instance |
| 149 | exact asIso (relativeSingularChainsMap f hm) |
| 150 | |
| 151 | /-- Homeomorphism invariance of integral relative singular homology. -/ |
| 152 | def relativeSingularHomologyIso {X Y : TopCat.{0}} (e : X ≃ₜ Y) |
| 153 | {A : Set X} {B : Set Y} (h : ∀ x, x ∈ A ↔ e x ∈ B) (n : ℕ) : |
| 154 | relativeSingularHomology X A n ≅ relativeSingularHomology Y B n := |
| 155 | (HomologicalComplex.homologyFunctor (ModuleCat.{0} ℤ) (ComplexShape.down ℕ) n).mapIso |
| 156 | (relativeSingularChainsIso e h) |
| 157 | |
| 158 | /-- Local homology is transported by an actual homeomorphism. -/ |
| 159 | def localSingularHomologyIso {X Y : TopCat.{0}} (e : X ≃ₜ Y) (x : X) (n : ℕ) : |
| 160 | localSingularHomology X x n ≅ localSingularHomology Y (e x) n := |
| 161 | relativeSingularHomologyIso e (by |
| 162 | intro y |
| 163 | simp only [Set.mem_compl_iff, Set.mem_singleton_iff, e.injective.eq_iff]) n |
| 164 | |
| 165 | end |
| 166 | |
| 167 | /-! |
| 168 | # Functoriality of the actual relative singular-chain quotient |
| 169 | |
| 170 | The maps here are the existing cokernel maps induced by continuous maps of |
| 171 | pairs. Their identity and composition laws follow from the actual relative |
| 172 | chain projections, which are epimorphisms. |
| 173 | -/ |
| 174 | |
| 175 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 176 | |
| 177 | set_option backward.defeqAttrib.useBackward true |
| 178 | set_option backward.isDefEq.respectTransparency false |
| 179 | |
| 180 | /-- The identity map of a pair induces the identity on relative chains. -/ |
| 181 | @[simp] |
| 182 | theorem relativeSingularChainsMap_id (X : TopCat.{0}) (A : Set X) : |
| 183 | relativeSingularChainsMap (𝟙 X) (A := A) (B := A) (fun _ hx => hx) = |
| 184 | 𝟙 (relativeSingularChains X A) := by |
| 185 | apply (cancel_epi (relativeChainProjection X A)).mp |
| 186 | rw [relativeChainProjection_naturality, CategoryTheory.Functor.map_id, Category.id_comp, |
| 187 | Category.comp_id] |
| 188 | |
| 189 | /-- Composition of maps of pairs gives composition of the actual relative |
| 190 | singular-chain maps. -/ |
| 191 | @[reassoc] |
| 192 | theorem relativeSingularChainsMap_comp {X Y Z : TopCat.{0}} |
| 193 | (f : X ⟶ Y) (g : Y ⟶ Z) {A : Set X} {B : Set Y} {C : Set Z} |
| 194 | (hf : Set.MapsTo f A B) (hg : Set.MapsTo g B C) : |
| 195 | relativeSingularChainsMap f hf ≫ relativeSingularChainsMap g hg = |
| 196 | relativeSingularChainsMap (f ≫ g) (fun _ hx => hg (hf hx)) := by |
| 197 | apply (cancel_epi (relativeChainProjection X A)).mp |
| 198 | rw [← Category.assoc, relativeChainProjection_naturality, Category.assoc, |
| 199 | relativeChainProjection_naturality, ← Category.assoc, ← CategoryTheory.Functor.map_comp, |
| 200 | relativeChainProjection_naturality] |
| 201 | |
| 202 | /-- The identity map of a pair acts identically on its actual relative homology. -/ |
| 203 | @[simp] |
| 204 | theorem relativeSingularHomologyMap_id (X : TopCat.{0}) (A : Set X) (n : ℕ) : |
| 205 | relativeSingularHomologyMap (𝟙 X) (A := A) (B := A) (fun _ hx => hx) n = |
| 206 | 𝟙 (relativeSingularHomology X A n) := by |
| 207 | change HomologicalComplex.homologyMap _ n = _ |
| 208 | rw [relativeSingularChainsMap_id, HomologicalComplex.homologyMap_id] |
| 209 | |
| 210 | /-- Relative homology maps compose as the underlying continuous maps of pairs. -/ |
| 211 | @[reassoc] |
| 212 | theorem relativeSingularHomologyMap_comp {X Y Z : TopCat.{0}} |
| 213 | (f : X ⟶ Y) (g : Y ⟶ Z) {A : Set X} {B : Set Y} {C : Set Z} |
| 214 | (hf : Set.MapsTo f A B) (hg : Set.MapsTo g B C) (n : ℕ) : |
| 215 | relativeSingularHomologyMap f hf n ≫ relativeSingularHomologyMap g hg n = |
| 216 | relativeSingularHomologyMap (f ≫ g) (fun _ hx => hg (hf hx)) n := by |
| 217 | change HomologicalComplex.homologyMap _ n ≫ HomologicalComplex.homologyMap _ n = _ |
| 218 | rw [← HomologicalComplex.homologyMap_comp, relativeSingularChainsMap_comp] |
| 219 | |
| 220 | /-- The existing homeomorphism comparison is induced by its forward map of pairs. -/ |
| 221 | @[simp] |
| 222 | theorem relativeSingularChainsIso_hom {X Y : TopCat.{0}} (e : X ≃ₜ Y) |
| 223 | {A : Set X} {B : Set Y} (h : ∀ x, x ∈ A ↔ e x ∈ B) : |
| 224 | (relativeSingularChainsIso e h).hom = |
| 225 | relativeSingularChainsMap (TopCat.isoOfHomeo e).hom (fun x hx => (h x).mp hx) := rfl |
| 226 | |
| 227 | /-- The homeomorphism comparison on relative homology is the usual induced map. -/ |
| 228 | @[simp] |
| 229 | theorem relativeSingularHomologyIso_hom {X Y : TopCat.{0}} (e : X ≃ₜ Y) |
| 230 | {A : Set X} {B : Set Y} (h : ∀ x, x ∈ A ↔ e x ∈ B) (n : ℕ) : |
| 231 | (relativeSingularHomologyIso e h n).hom = |
| 232 | relativeSingularHomologyMap (TopCat.isoOfHomeo e).hom (fun x hx => (h x).mp hx) n := rfl |
| 233 | |
| 234 | end |
| 235 | |
| 236 | end OAI.AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles |