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.Geometry.Foundations.ConvexStdSimplexMetric |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Geometric.RelativeHomologyExact |
| 3 | import OAI.AlgebraicTopology.DeRham.Comparison.SmallSingularSet |
| 4 | import Mathlib.AlgebraicTopology.SimplicialSet.SubcomplexColimits |
| 5 | import Mathlib.CategoryTheory.Abelian.CommSq |
| 6 | import Mathlib.CategoryTheory.Limits.Preserves.FunctorCategory |
| 7 | import Mathlib.CategoryTheory.Limits.Preserves.SigmaConst |
| 8 | import Mathlib.CategoryTheory.Preadditive.AdditiveFunctor |
| 9 | |
| 10 | /-! # Small Mayer Vietoris -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.SmallMayerVietoris.Cycles |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | /-! |
| 17 | # Mayer–Vietoris for the actual binary-cover small singular chains |
| 18 | |
| 19 | The union here consists of simplices whose entire image is in one of the two |
| 20 | subsets. It is not the full singular set of the union. The short exact sequence |
| 21 | and its homology sequence do not assume the small-to-all quasi-isomorphism. |
| 22 | -/ |
| 23 | |
| 24 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 25 | open scoped Simplicial |
| 26 | |
| 27 | /-- The ordinary integral chain functor on simplicial sets. -/ |
| 28 | abbrev integralSimplicialChainFunctor : SSet.{0} ⥤ ChainComplex (ModuleCat.{0} ℤ) ℕ := |
| 29 | (SSet.chainComplexFunctor (ModuleCat.{0} ℤ)).obj (ModuleCat.of ℤ ℤ) |
| 30 | |
| 31 | /-- The ordinary simplicial chain functor preserves colimits degree by degree. -/ |
| 32 | instance integralSimplicialChainFunctor_preservesColimits : |
| 33 | PreservesColimits integralSimplicialChainFunctor where |
| 34 | preservesColimitsOfShape {J _} := by |
| 35 | apply HomologicalComplex.preservesColimitsOfShape_of_eval |
| 36 | intro n |
| 37 | change PreservesColimitsOfShape J |
| 38 | ((evaluation SimplexCategoryᵒᵖ (Type)).obj (.op ⦋n⦌) ⋙ |
| 39 | sigmaConst.obj (ModuleCat.of ℤ ℤ)) |
| 40 | infer_instance |
| 41 | |
| 42 | instance integralSimplicialChainFunctor_preservesMonomorphisms : |
| 43 | integralSimplicialChainFunctor.PreservesMonomorphisms where |
| 44 | preserves f _ := by |
| 45 | dsimp [integralSimplicialChainFunctor, SSet.chainComplexFunctor] |
| 46 | apply +allowSynthFailures Functor.map_mono |
| 47 | |
| 48 | /-- Inclusion of one actual subspace in another. -/ |
| 49 | def subsetInclusion (X : TopCat.{0}) {U V : Set X} (h : U ⊆ V) : |
| 50 | TopCat.of U ⟶ TopCat.of V := |
| 51 | TopCat.ofHom ⟨Set.inclusion h, continuous_inclusion h⟩ |
| 52 | |
| 53 | instance subsetInclusion_mono (X : TopCat.{0}) {U V : Set X} (h : U ⊆ V) : |
| 54 | Mono (subsetInclusion X h) := |
| 55 | (TopCat.mono_iff_injective _).mpr (Set.inclusion_injective h) |
| 56 | |
| 57 | /-- The image of the singular set of a genuine subspace in the ambient singular set. -/ |
| 58 | abbrev subspaceSingularSubcomplex (X : TopCat.{0}) (U : Set X) : |
| 59 | (TopCat.toSSet.obj X).Subcomplex := |
| 60 | SSet.Subcomplex.range (TopCat.toSSet.map (LocalHomology.Cycles.subspaceInclusion X U)) |
| 61 | |
| 62 | /-- Image membership is exactly containment of the whole singular simplex in the subspace. -/ |
| 63 | theorem mem_subspaceSingularSubcomplex (X : TopCat.{0}) (U : Set X) |
| 64 | (n : SimplexCategoryᵒᵖ) (σ : (TopCat.toSSet.obj X).obj n) : |
| 65 | σ ∈ (subspaceSingularSubcomplex X U).obj n ↔ |
| 66 | Set.range (X.toSSetObjEquiv n σ) ⊆ U := by |
| 67 | constructor |
| 68 | · rintro ⟨τ, rfl⟩ y ⟨z, rfl⟩ |
| 69 | exact (((TopCat.of U).toSSetObjEquiv n τ) z).property |
| 70 | · intro hσ |
| 71 | let τ : C(Convexity.StdSimplex ℝ (Fin (n.unop.len + 1)), U) := |
| 72 | ⟨fun z => ⟨X.toSSetObjEquiv n σ z, hσ ⟨z, rfl⟩⟩, |
| 73 | (X.toSSetObjEquiv n σ).continuous.subtype_mk _⟩ |
| 74 | refine ⟨((TopCat.of U).toSSetObjEquiv n).symm τ, ?_⟩ |
| 75 | apply (X.toSSetObjEquiv n).injective |
| 76 | ext z |
| 77 | rfl |
| 78 | |
| 79 | /-- The contained-simplex subcomplex is the actual singular set of the subspace. -/ |
| 80 | def subspaceSingularSetIso (X : TopCat.{0}) (U : Set X) : |
| 81 | TopCat.toSSet.obj (TopCat.of U) ≅ (subspaceSingularSubcomplex X U : SSet) := |
| 82 | asIso (SSet.Subcomplex.toRange (TopCat.toSSet.map (LocalHomology.Cycles.subspaceInclusion X U))) |
| 83 | |
| 84 | /-- Containment in an intersection is the intersection of the two simplex conditions. -/ |
| 85 | theorem subspaceSingularSubcomplex_inter (X : TopCat.{0}) (U V : Set X) : |
| 86 | subspaceSingularSubcomplex X (U ∩ V) = |
| 87 | subspaceSingularSubcomplex X U ⊓ subspaceSingularSubcomplex X V := by |
| 88 | ext n σ |
| 89 | change σ ∈ (subspaceSingularSubcomplex X (U ∩ V)).obj n ↔ |
| 90 | σ ∈ (subspaceSingularSubcomplex X U).obj n ∧ |
| 91 | σ ∈ (subspaceSingularSubcomplex X V).obj n |
| 92 | rw [mem_subspaceSingularSubcomplex, mem_subspaceSingularSubcomplex, |
| 93 | mem_subspaceSingularSubcomplex] |
| 94 | exact Set.subset_inter_iff |
| 95 | |
| 96 | /-- Simplices subordinate to the binary family, requiring one whole-image containment. -/ |
| 97 | abbrev binarySmallSingularSubcomplex (X : TopCat.{0}) (U V : Set X) : |
| 98 | (TopCat.toSSet.obj X).Subcomplex := |
| 99 | subspaceSingularSubcomplex X U ⊔ subspaceSingularSubcomplex X V |
| 100 | |
| 101 | /-- This is the same small-simplex construction used by the comparison infrastructure. -/ |
| 102 | theorem binarySmallSingularSubcomplex_eq (X : TopCat.{0}) (U V : Set X) : |
| 103 | binarySmallSingularSubcomplex X U V = |
| 104 | OAI.AlgebraicTopology.DeRham.Comparison.SmallSingularSet.smallSingularSubcomplex X (fun b : Bool => if b then V else U) := by |
| 105 | ext n σ |
| 106 | change (σ ∈ (subspaceSingularSubcomplex X U).obj n ∨ |
| 107 | σ ∈ (subspaceSingularSubcomplex X V).obj n) ↔ |
| 108 | ∃ b : Bool, Set.range (X.toSSetObjEquiv n σ) ⊆ if b then V else U |
| 109 | rw [mem_subspaceSingularSubcomplex, mem_subspaceSingularSubcomplex] |
| 110 | constructor |
| 111 | · rintro (h | h) |
| 112 | · exact ⟨false, h⟩ |
| 113 | · exact ⟨true, h⟩ |
| 114 | · rintro ⟨b, h⟩ |
| 115 | cases b |
| 116 | · exact Or.inl h |
| 117 | · exact Or.inr h |
| 118 | |
| 119 | /-- Singular simplices of the first subspace, viewed as small ambient simplices. -/ |
| 120 | def binarySmallSingularLeft (X : TopCat.{0}) (U V : Set X) : |
| 121 | TopCat.toSSet.obj (TopCat.of U) ⟶ (binarySmallSingularSubcomplex X U V : SSet) := |
| 122 | (subspaceSingularSetIso X U).hom ≫ SSet.Subcomplex.homOfLE le_sup_left |
| 123 | |
| 124 | /-- Singular simplices of the second subspace, viewed as small ambient simplices. -/ |
| 125 | def binarySmallSingularRight (X : TopCat.{0}) (U V : Set X) : |
| 126 | TopCat.toSSet.obj (TopCat.of V) ⟶ (binarySmallSingularSubcomplex X U V : SSet) := |
| 127 | (subspaceSingularSetIso X V).hom ≫ SSet.Subcomplex.homOfLE le_sup_right |
| 128 | |
| 129 | /-- The binary small singular set is the pushout of the two genuine subspace |
| 130 | singular sets over the genuine singular set of their intersection. -/ |
| 131 | theorem binarySmallSingular_isPushout (X : TopCat.{0}) (U V : Set X) : |
| 132 | IsPushout (TopCat.toSSet.map (subsetInclusion X (Set.inter_subset_left : U ∩ V ⊆ U))) |
| 133 | (TopCat.toSSet.map (subsetInclusion X (Set.inter_subset_right : U ∩ V ⊆ V))) |
| 134 | (binarySmallSingularLeft X U V) (binarySmallSingularRight X U V) := by |
| 135 | let sq : SSet.Subcomplex.BicartSq (subspaceSingularSubcomplex X (U ∩ V)) |
| 136 | (subspaceSingularSubcomplex X U) (subspaceSingularSubcomplex X V) |
| 137 | (binarySmallSingularSubcomplex X U V) := |
| 138 | ⟨rfl, (subspaceSingularSubcomplex_inter X U V).symm⟩ |
| 139 | exact sq.isPushout.of_iso' |
| 140 | (subspaceSingularSetIso X (U ∩ V)) (subspaceSingularSetIso X U) |
| 141 | (subspaceSingularSetIso X V) (Iso.refl _) |
| 142 | (by ext n σ; rfl) (by ext n σ; rfl) (by simp [binarySmallSingularLeft]) |
| 143 | (by simp [binarySmallSingularRight]) |
| 144 | |
| 145 | /-- Actual integral chains generated by simplices lying wholly in one of the two subsets. -/ |
| 146 | abbrev binarySmallSingularChains (X : TopCat.{0}) (U V : Set X) : |
| 147 | ChainComplex (ModuleCat.{0} ℤ) ℕ := |
| 148 | integralSimplicialChainFunctor.obj (binarySmallSingularSubcomplex X U V : SSet) |
| 149 | |
| 150 | /-- The homology of the actual binary-cover small chain complex. -/ |
| 151 | abbrev binarySmallSingularHomology (X : TopCat.{0}) (U V : Set X) (n : ℕ) : |
| 152 | ModuleCat.{0} ℤ := (binarySmallSingularChains X U V).homology n |
| 153 | |
| 154 | /-- The singular-set pushout remains a pushout after forming integral chains. -/ |
| 155 | theorem binarySmallChain_isPushout (X : TopCat.{0}) (U V : Set X) : |
| 156 | IsPushout |
| 157 | (LocalHomology.Cycles.integralSingularChainFunctor.map |
| 158 | (subsetInclusion X (Set.inter_subset_left : U ∩ V ⊆ U))) |
| 159 | (LocalHomology.Cycles.integralSingularChainFunctor.map |
| 160 | (subsetInclusion X (Set.inter_subset_right : U ∩ V ⊆ V))) |
| 161 | (integralSimplicialChainFunctor.map (binarySmallSingularLeft X U V)) |
| 162 | (integralSimplicialChainFunctor.map (binarySmallSingularRight X U V)) := |
| 163 | integralSimplicialChainFunctor.map_isPushout (binarySmallSingular_isPushout X U V) |
| 164 | |
| 165 | /-- The genuine small-chain sequence `C(U∩V) → C(U)⊕C(V) → C_small(U,V)`. |
| 166 | The first arrow uses the two inclusions with signs `(+,-)`; the second adds them. -/ |
| 167 | def smallMayerVietorisSequence (X : TopCat.{0}) (U V : Set X) : |
| 168 | ShortComplex (ChainComplex (ModuleCat.{0} ℤ) ℕ) := |
| 169 | (binarySmallChain_isPushout X U V).shortComplex |
| 170 | |
| 171 | @[simp] |
| 172 | theorem smallMayerVietorisSequence_f (X : TopCat.{0}) (U V : Set X) : |
| 173 | (smallMayerVietorisSequence X U V).f = |
| 174 | biprod.lift |
| 175 | (LocalHomology.Cycles.integralSingularChainFunctor.map |
| 176 | (subsetInclusion X (Set.inter_subset_left : U ∩ V ⊆ U))) |
| 177 | (-LocalHomology.Cycles.integralSingularChainFunctor.map |
| 178 | (subsetInclusion X (Set.inter_subset_right : U ∩ V ⊆ V))) := rfl |
| 179 | |
| 180 | @[simp] |
| 181 | theorem smallMayerVietorisSequence_g (X : TopCat.{0}) (U V : Set X) : |
| 182 | (smallMayerVietorisSequence X U V).g = |
| 183 | biprod.desc |
| 184 | (integralSimplicialChainFunctor.map (binarySmallSingularLeft X U V)) |
| 185 | (integralSimplicialChainFunctor.map (binarySmallSingularRight X U V)) := rfl |
| 186 | |
| 187 | /-- The small-chain sequence is short exact, with no excision or subdivision hypothesis. -/ |
| 188 | theorem smallMayerVietorisSequence_shortExact (X : TopCat.{0}) (U V : Set X) : |
| 189 | (smallMayerVietorisSequence X U V).ShortExact := by |
| 190 | have hm : Mono (LocalHomology.Cycles.integralSingularChainFunctor.map |
| 191 | (subsetInclusion X (Set.inter_subset_left : U ∩ V ⊆ U))) := by |
| 192 | change Mono (integralSimplicialChainFunctor.map |
| 193 | (TopCat.toSSet.map (subsetInclusion X (Set.inter_subset_left : U ∩ V ⊆ U)))) |
| 194 | infer_instance |
| 195 | have : Mono (smallMayerVietorisSequence X U V).f := by |
| 196 | rw [smallMayerVietorisSequence_f] |
| 197 | exact @mono_of_mono_fac _ _ _ _ _ _ _ _ hm (biprod.lift_fst _ _) |
| 198 | have : Epi (smallMayerVietorisSequence X U V).g := |
| 199 | (binarySmallChain_isPushout X U V).epi_shortComplex_g |
| 200 | exact { exact := (binarySmallChain_isPushout X U V).exact_shortComplex } |
| 201 | |
| 202 | /-- The short exact sequence is exact in every actual chain degree. -/ |
| 203 | theorem smallMayerVietorisSequence_degreewiseShortExact |
| 204 | (X : TopCat.{0}) (U V : Set X) (n : ℕ) : |
| 205 | ((smallMayerVietorisSequence X U V).map |
| 206 | (HomologicalComplex.eval (ModuleCat.{0} ℤ) (ComplexShape.down ℕ) n)).ShortExact := |
| 207 | (HomologicalComplex.shortExact_iff_degreewise_shortExact _).mp |
| 208 | (smallMayerVietorisSequence_shortExact X U V) n |
| 209 | |
| 210 | /-- The middle homology object has its canonical direct-sum interpretation. -/ |
| 211 | def smallMayerVietorisMiddleHomologyIso (X : TopCat.{0}) (U V : Set X) (n : ℕ) : |
| 212 | (smallMayerVietorisSequence X U V).X₂.homology n ≅ |
| 213 | RelativeHomologyExact.Cycles.integralSingularHomology (TopCat.of U) n ⊞ |
| 214 | RelativeHomologyExact.Cycles.integralSingularHomology (TopCat.of V) n := by |
| 215 | let F := HomologicalComplex.homologyFunctor (ModuleCat.{0} ℤ) (ComplexShape.down ℕ) n |
| 216 | letI : PreservesBinaryBiproduct |
| 217 | (LocalHomology.Cycles.integralSingularChains (TopCat.of U)) (LocalHomology.Cycles.integralSingularChains (TopCat.of V)) F := |
| 218 | preservesBinaryBiproduct_of_preservesBiproduct F _ _ |
| 219 | exact F.mapBiprod _ _ |
| 220 | |
| 221 | set_option backward.isDefEq.respectTransparency false in |
| 222 | /-- In the direct-sum description, the first component is the usual inclusion map. -/ |
| 223 | @[reassoc] |
| 224 | theorem smallMayerVietoris_homology_f_fst (X : TopCat.{0}) (U V : Set X) (n : ℕ) : |
| 225 | HomologicalComplex.homologyMap (smallMayerVietorisSequence X U V).f n ≫ |
| 226 | (smallMayerVietorisMiddleHomologyIso X U V n).hom ≫ biprod.fst = |
| 227 | RelativeHomologyExact.Cycles.integralSingularHomologyMap |
| 228 | (subsetInclusion X (Set.inter_subset_left : U ∩ V ⊆ U)) n := by |
| 229 | have h : (smallMayerVietorisMiddleHomologyIso X U V n).hom ≫ biprod.fst = |
| 230 | HomologicalComplex.homologyMap biprod.fst n := by |
| 231 | exact biprod.lift_fst _ _ |
| 232 | rw [h, ← HomologicalComplex.homologyMap_comp, smallMayerVietorisSequence_f, |
| 233 | biprod.lift_fst] |
| 234 | |
| 235 | set_option backward.isDefEq.respectTransparency false in |
| 236 | /-- In the direct-sum description, the second inclusion carries the opposite sign. -/ |
| 237 | @[reassoc] |
| 238 | theorem smallMayerVietoris_homology_f_snd (X : TopCat.{0}) (U V : Set X) (n : ℕ) : |
| 239 | HomologicalComplex.homologyMap (smallMayerVietorisSequence X U V).f n ≫ |
| 240 | (smallMayerVietorisMiddleHomologyIso X U V n).hom ≫ biprod.snd = |
| 241 | -RelativeHomologyExact.Cycles.integralSingularHomologyMap |
| 242 | (subsetInclusion X (Set.inter_subset_right : U ∩ V ⊆ V)) n := by |
| 243 | have h : (smallMayerVietorisMiddleHomologyIso X U V n).hom ≫ biprod.snd = |
| 244 | HomologicalComplex.homologyMap biprod.snd n := by |
| 245 | exact biprod.lift_snd _ _ |
| 246 | rw [h, ← HomologicalComplex.homologyMap_comp, smallMayerVietorisSequence_f, |
| 247 | biprod.lift_snd, HomologicalComplex.homologyMap_neg] |
| 248 | |
| 249 | /-- The genuine connecting map from small homology to intersection homology. -/ |
| 250 | def smallMayerVietorisBoundary (X : TopCat.{0}) (U V : Set X) (n : ℕ) : |
| 251 | binarySmallSingularHomology X U V (n + 1) ⟶ |
| 252 | RelativeHomologyExact.Cycles.integralSingularHomology (TopCat.of (U ∩ V : Set X)) n := |
| 253 | (smallMayerVietorisSequence_shortExact X U V).δ (n + 1) n rfl |
| 254 | |
| 255 | /-- Six consecutive terms of the small-chain Mayer–Vietoris homology sequence. -/ |
| 256 | def smallMayerVietorisHomologySequence (X : TopCat.{0}) (U V : Set X) (n : ℕ) : |
| 257 | ComposableArrows (ModuleCat.{0} ℤ) 5 := |
| 258 | HomologicalComplex.HomologySequence.composableArrows₅ |
| 259 | (smallMayerVietorisSequence_shortExact X U V) (n + 1) n rfl |
| 260 | |
| 261 | /-- Exactness of the six-term sequence; the middle objects are canonically the |
| 262 | sums of the two subspace homologies via `smallMayerVietorisMiddleHomologyIso`. -/ |
| 263 | theorem smallMayerVietorisHomologySequence_exact |
| 264 | (X : TopCat.{0}) (U V : Set X) (n : ℕ) : |
| 265 | (smallMayerVietorisHomologySequence X U V n).Exact := |
| 266 | HomologicalComplex.HomologySequence.composableArrows₅_exact |
| 267 | (smallMayerVietorisSequence_shortExact X U V) (n + 1) n rfl |
| 268 | |
| 269 | /-- Exactness at the homology of the two subspaces. -/ |
| 270 | theorem smallMayerVietoris_range_left (X : TopCat.{0}) (U V : Set X) (n : ℕ) : |
| 271 | LinearMap.range (HomologicalComplex.homologyMap (smallMayerVietorisSequence X U V).f n).hom = |
| 272 | LinearMap.ker (HomologicalComplex.homologyMap (smallMayerVietorisSequence X U V).g n).hom := |
| 273 | ((smallMayerVietorisSequence_shortExact X U V).homology_exact₂ n).moduleCat_range_eq_ker |
| 274 | |
| 275 | /-- A small homology class comes from the subspace sum exactly when its boundary vanishes. -/ |
| 276 | theorem smallMayerVietoris_range_middle (X : TopCat.{0}) (U V : Set X) (n : ℕ) : |
| 277 | LinearMap.range |
| 278 | (HomologicalComplex.homologyMap (smallMayerVietorisSequence X U V).g (n + 1)).hom = |
| 279 | LinearMap.ker (smallMayerVietorisBoundary X U V n).hom := |
| 280 | ((smallMayerVietorisSequence_shortExact X U V).homology_exact₃ |
| 281 | (n + 1) n rfl).moduleCat_range_eq_ker |
| 282 | |
| 283 | /-- An intersection class is a small-homology boundary exactly when it dies in both subspaces. -/ |
| 284 | theorem smallMayerVietoris_range_boundary (X : TopCat.{0}) (U V : Set X) (n : ℕ) : |
| 285 | LinearMap.range (smallMayerVietorisBoundary X U V n).hom = |
| 286 | LinearMap.ker |
| 287 | (HomologicalComplex.homologyMap (smallMayerVietorisSequence X U V).f n).hom := |
| 288 | ((smallMayerVietorisSequence_shortExact X U V).homology_exact₁ |
| 289 | (n + 1) n rfl).moduleCat_range_eq_ker |
| 290 | |
| 291 | end |
| 292 | |
| 293 | end OAI.AlgebraicGeometry.CycleClass.Geometric.SmallMayerVietoris.Cycles |