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 | /- |
| 2 | Copyright 2026 The Formal Conjectures Authors. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | This file has been modified. |
| 5 | -/ |
| 6 | import OAI.Algebra.Homology.Notation |
| 7 | import OAI.AlgebraicTopology.Singular.SheafCochainTop |
| 8 | import OAI.Algebra.Homology.MappingConeQuasiIso |
| 9 | import OAI.AlgebraicTopology.Singular.RelativeCochainG |
| 10 | import OAI.AlgebraicTopology.Singular.RelativeCochainIntMap |
| 11 | import OAI.AlgebraicGeometry.Cohomology.SupportSingularGlobal |
| 12 | import OAI.Algebra.Homology.MapExtendNaturality |
| 13 | |
| 14 | /-! # Sheaf Cochain Open Cone -/ |
| 15 | |
| 16 | namespace OAI.AlgebraicTopology.Singular.SheafCochainOpenCone |
| 17 | |
| 18 | noncomputable section |
| 19 | |
| 20 | /-! # Local singular-cochain restriction cones |
| 21 | |
| 22 | The comparison is the cone map of the sheafification units and |
| 23 | restriction maps. Cone degree `n - 1` computes relative degree `n`. |
| 24 | -/ |
| 25 | |
| 26 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace |
| 27 | |
| 28 | variable (R : Type) [CommRing R] (X : TopCat.{0}) |
| 29 | |
| 30 | local instance singularCochainOpenConeDerivedCategory : HasDerivedCategory AddCommGrpCat := |
| 31 | HasDerivedCategory.standard AddCommGrpCat |
| 32 | |
| 33 | /-- Let `R` be a commutative ring and `W ⊆ V` open subsets of a topological space `X`. This is the |
| 34 | mapping cone of singular-cochain restriction `C^*(V; R) → C^*(W; R)`. Both cochain complexes are |
| 35 | extended by zero to negative integer degrees before taking the cone; the cone itself can have a |
| 36 | term in degree `-1`. -/ |
| 37 | def openRawSingularRestrictionCone {V W : Opens X} (i : W ⟶ V) : |
| 38 | CochainComplex AddCommGrpCat ℤ := |
| 39 | CochainComplex.mappingCone |
| 40 | (HomologicalComplex.extendMap (SheafCochainOpenSections.openRawSingularRestriction R X i) |
| 41 | ComplexShape.embeddingUpNat) |
| 42 | |
| 43 | /-- Let `R` be a commutative ring and `W ⊆ V` open subsets of a topological space `X`. Let `S^•` be |
| 44 | the sheafification on `X` of singular cochains. This is `Cone(Γ(V, S^•) → Γ(W, S^•))`, formed |
| 45 | after extending both section complexes by zero to negative integer degrees. -/ |
| 46 | def openSingularSheafRestrictionCone {V W : Opens X} (i : W ⟶ V) : |
| 47 | CochainComplex AddCommGrpCat ℤ := |
| 48 | CochainComplex.mappingCone |
| 49 | (HomologicalComplex.extendMap (SheafCochainOpenSections.openSingularSheafRestriction R X i) |
| 50 | ComplexShape.embeddingUpNat) |
| 51 | |
| 52 | /-- The local sheafification restriction square, after extension by zero. -/ |
| 53 | lemma openSingularSheafRestrictionInt_naturality {V W : Opens X} (i : W ⟶ V) : |
| 54 | HomologicalComplex.extendMap (SheafCochainOpenSections.openRawSingularRestriction R X i) |
| 55 | ComplexShape.embeddingUpNat ≫ |
| 56 | HomologicalComplex.extendMap (SheafCochainOpenSections.openRawToSingularCochainSheafComplex R X W) |
| 57 | ComplexShape.embeddingUpNat = |
| 58 | HomologicalComplex.extendMap (SheafCochainOpenSections.openRawToSingularCochainSheafComplex R X V) |
| 59 | ComplexShape.embeddingUpNat ≫ |
| 60 | HomologicalComplex.extendMap (SheafCochainOpenSections.openSingularSheafRestriction R X i) |
| 61 | ComplexShape.embeddingUpNat := by |
| 62 | rw [← HomologicalComplex.extendMap_comp, ← HomologicalComplex.extendMap_comp, |
| 63 | SheafCochainTop.openSingularSheafRestriction_naturality] |
| 64 | |
| 65 | /-- Let `R` be a commutative ring and `W ⊆ V` open subsets of a topological space `X`. The maps |
| 66 | taking singular cochains to their sheafified sections on `V` and `W` commute with restriction. |
| 67 | This is the induced map from `Cone(C^*(V; R) → C^*(W; R))` to the cone of restriction of those |
| 68 | sheaf sections, in integer degrees. -/ |
| 69 | def openRawToSingularSheafRestrictionCone {V W : Opens X} (i : W ⟶ V) : |
| 70 | openRawSingularRestrictionCone R X i ⟶ openSingularSheafRestrictionCone R X i := |
| 71 | CochainComplex.mappingCone.map _ _ |
| 72 | (HomologicalComplex.extendMap (SheafCochainOpenSections.openRawToSingularCochainSheafComplex R X V) |
| 73 | ComplexShape.embeddingUpNat) |
| 74 | (HomologicalComplex.extendMap (SheafCochainOpenSections.openRawToSingularCochainSheafComplex R X W) |
| 75 | ComplexShape.embeddingUpNat) |
| 76 | (openSingularSheafRestrictionInt_naturality R X i) |
| 77 | |
| 78 | /-- Both local open spaces being paracompact Hausdorff suffices for the |
| 79 | cone comparison to be a quasi-isomorphism. -/ |
| 80 | theorem openRawToSingularSheafRestrictionCone_quasiIso {V W : Opens X} (i : W ⟶ V) |
| 81 | [ParacompactSpace V] [T2Space V] [ParacompactSpace W] [T2Space W] : |
| 82 | QuasiIso (openRawToSingularSheafRestrictionCone ℚ X i) := by |
| 83 | let := SheafCochainTop.openRawToSingularCochainSheafComplex_quasiIso X V |
| 84 | let := SheafCochainTop.openRawToSingularCochainSheafComplex_quasiIso X W |
| 85 | exact Algebra.Homology.MappingConeQuasiIso.CochainComplex.mappingCone.map_quasiIso_of_vertical_quasiIso _ _ _ _ _ |
| 86 | |
| 87 | /-- Let `W ⊆ V` be open subsets of a topological space `X`. This is the topological pair `(V, W)`, |
| 88 | consisting of the two subspaces and their inclusion. -/ |
| 89 | def openInclusionPair {V W : Opens X} (i : W ⟶ V) : TopPair := |
| 90 | TopPair.of ((Opens.toTopCat X).map i) |
| 91 | (Topology.IsEmbedding.of_comp ((Opens.toTopCat X).map i).hom.continuous |
| 92 | V.inclusion'.hom.continuous W.isOpenEmbedding.isEmbedding) |
| 93 | |
| 94 | set_option backward.isDefEq.respectTransparency false in |
| 95 | /-- Let `R` be a commutative ring and `V` an open subset of a topological space `X`. This identifies |
| 96 | evaluation at `V` of the singular cochain presheaf complex with `Hom_R(C_*(V; R), R)`, viewed as |
| 97 | a complex of abelian groups. -/ |
| 98 | def openRawSingularCochainComplexIsoDual (V : Opens X) : |
| 99 | SheafCochainOpenSections.openRawSingularCochainComplex R X V ≅ |
| 100 | ((forget₂ (ModuleCat R) AddCommGrpCat).mapHomologicalComplex (.up ℕ)).obj |
| 101 | (Algebra.Homology.LinearDual.HomologicalComplex.linearDualCochainComplex (Cohomology.SingularChainComplex R (TopCat.of V))) := |
| 102 | HomologicalComplex.Hom.isoOfComponents |
| 103 | (fun n => (AddEquiv.refl (SheafCochain.OpenCochains R X (.op V) n)).toAddCommGrpIso) (by |
| 104 | intro n m h |
| 105 | obtain rfl := h |
| 106 | dsimp only [SheafCochainOpenSections.openRawSingularCochainComplex] |
| 107 | rw [Functor.mapHomologicalComplex_obj_d, |
| 108 | Functor.mapHomologicalComplex_obj_d, |
| 109 | SheafCochain.singularCochainPresheafComplex_d, |
| 110 | Algebra.Homology.LinearDual.HomologicalComplex.linearDualCochainComplex_d] |
| 111 | ext φ |
| 112 | rfl) |
| 113 | |
| 114 | /-- The preceding identification preserves the dual of the |
| 115 | singular-chain inclusion of nested opens. -/ |
| 116 | lemma openRawSingularRestriction_transport {V W : Opens X} (i : W ⟶ V) : |
| 117 | SheafCochainOpenSections.openRawSingularRestriction R X i ≫ (openRawSingularCochainComplexIsoDual R X W).hom = |
| 118 | (openRawSingularCochainComplexIsoDual R X V).hom ≫ |
| 119 | ((forget₂ (ModuleCat R) AddCommGrpCat).mapHomologicalComplex (.up ℕ)).map |
| 120 | (Algebra.Homology.LinearDual.HomologicalComplex.linearDualMap |
| 121 | ((Cohomology.chainPairFunctor R).obj (openInclusionPair X i)).hom) := rfl |
| 122 | |
| 123 | /-- Let `R` be a commutative ring and `V` an open subset of a topological space `X`. This identifies |
| 124 | the integer-indexed extension of the singular cochains on `V` with the linear dual of its |
| 125 | singular chain complex extended to integer degrees, after forgetting the module structure. -/ |
| 126 | def openRawSingularCochainComplexIntIsoDual (V : Opens X) : |
| 127 | (SheafCochainOpenSections.openRawSingularCochainComplex R X V).extend ComplexShape.embeddingUpNat ≅ |
| 128 | ((forget₂ (ModuleCat R) AddCommGrpCat).mapHomologicalComplex ℤᵘᵖ).obj |
| 129 | ((Algebra.Homology.LinearDual.HomologicalComplex.linearDualCochainComplex (Cohomology.SingularChainComplex R (TopCat.of V))).extend |
| 130 | ComplexShape.embeddingUpNat) := |
| 131 | (ComplexShape.embeddingUpNat.extendFunctor AddCommGrpCat).mapIso |
| 132 | (openRawSingularCochainComplexIsoDual R X V) ≪≫ |
| 133 | (Algebra.Homology.MapExtend.HomologicalComplex.mapExtendCanonicalIso (forget₂ (ModuleCat R) AddCommGrpCat) |
| 134 | (Algebra.Homology.LinearDual.HomologicalComplex.linearDualCochainComplex (Cohomology.SingularChainComplex R (TopCat.of V))) |
| 135 | ComplexShape.embeddingUpNat).symm |
| 136 | |
| 137 | set_option backward.defeqAttrib.useBackward true in |
| 138 | set_option backward.isDefEq.respectTransparency false in |
| 139 | set_option backward.isDefEq.respectTransparency.types false in |
| 140 | /-- The integer comparison preserves the original pair's restriction map. -/ |
| 141 | lemma openRawSingularRestrictionInt_transport {V W : Opens X} (i : W ⟶ V) : |
| 142 | HomologicalComplex.extendMap (SheafCochainOpenSections.openRawSingularRestriction R X i) |
| 143 | ComplexShape.embeddingUpNat ≫ |
| 144 | (openRawSingularCochainComplexIntIsoDual R X W).hom = |
| 145 | (openRawSingularCochainComplexIntIsoDual R X V).hom ≫ |
| 146 | ((forget₂ (ModuleCat R) AddCommGrpCat).mapHomologicalComplex ℤᵘᵖ).map |
| 147 | (RelativeCochainCone.relativeCochainRestrictionInt R (openInclusionPair X i)) := by |
| 148 | dsimp only [openRawSingularCochainComplexIntIsoDual, Iso.trans_hom, |
| 149 | Functor.mapIso_hom, Iso.symm_hom] |
| 150 | change (ComplexShape.embeddingUpNat.extendFunctor AddCommGrpCat).map |
| 151 | (SheafCochainOpenSections.openRawSingularRestriction R X i) ≫ _ = _ |
| 152 | rw [← Category.assoc, ← Functor.map_comp, openRawSingularRestriction_transport, |
| 153 | Functor.map_comp, Category.assoc, Category.assoc] |
| 154 | exact congrArg |
| 155 | (fun f => HomologicalComplex.extendMap |
| 156 | (openRawSingularCochainComplexIsoDual R X V).hom ComplexShape.embeddingUpNat ≫ f) |
| 157 | (Algebra.Homology.MapExtendNaturality.HomologicalComplex.mapExtendCanonicalIso_inv_naturality |
| 158 | (forget₂ (ModuleCat R) AddCommGrpCat) |
| 159 | (Algebra.Homology.LinearDual.HomologicalComplex.linearDualMap |
| 160 | ((Cohomology.chainPairFunctor R).obj (openInclusionPair X i)).hom) |
| 161 | ComplexShape.embeddingUpNat) |
| 162 | |
| 163 | set_option backward.isDefEq.respectTransparency.types false in |
| 164 | set_option backward.isDefEq.respectTransparency false in |
| 165 | /-- Let `R` be a commutative ring and `W ⊆ V` open subsets of a topological space `X`. This |
| 166 | identifies the cone formed from the presheaf restriction on singular cochains with the cone of |
| 167 | the dual chain map of the pair `(V, W)`, after forgetting the `R`-module structure. Both cones |
| 168 | use integer degrees. -/ |
| 169 | def openRawSingularRestrictionConeIsoRelative {V W : Opens X} (i : W ⟶ V) : |
| 170 | openRawSingularRestrictionCone R X i ≅ |
| 171 | CochainComplex.mappingCone |
| 172 | (((forget₂ (ModuleCat R) AddCommGrpCat).mapHomologicalComplex ℤᵘᵖ).map |
| 173 | (RelativeCochainCone.relativeCochainRestrictionInt R (openInclusionPair X i))) := |
| 174 | HomologicalComplex.homotopyCofiber.mapArrowIso _ _ |
| 175 | (fun j => ⟨j - 1, ComplexShape.up_mk _ _ (by lia)⟩) |
| 176 | (Arrow.isoMk (openRawSingularCochainComplexIntIsoDual R X V) |
| 177 | (openRawSingularCochainComplexIntIsoDual R X W) |
| 178 | (openRawSingularRestrictionInt_transport R X i).symm) |
| 179 | |
| 180 | /-- Let `R` be a commutative ring and `W ⊆ V` open subsets of a topological space `X`. This additive |
| 181 | equivalence is `H^{n-1}(Cone(C^*(V; R) → C^*(W; R))) ≃ H^n(V, W; R)`, where the right side is |
| 182 | relative singular cohomology and the cone uses integer degrees. -/ |
| 183 | def openRawSingularRestrictionConeCohomologyEquivRelative {V W : Opens X} |
| 184 | (i : W ⟶ V) (n : ℕ) : |
| 185 | (openRawSingularRestrictionCone R X i).homology ((n : ℤ) - 1) ≃+ |
| 186 | Cohomology.RelativeCohomology R (openInclusionPair X i) n := |
| 187 | (HomologicalComplex.homologyMapIso |
| 188 | (openRawSingularRestrictionConeIsoRelative R X i) ((n : ℤ) - 1)).addCommGroupIsoToAddEquiv |
| 189 | |>.trans <| |
| 190 | (HomologicalComplex.homologyMapIso |
| 191 | (CochainComplex.mappingCone.mapHomologicalComplexIso |
| 192 | (RelativeCochainCone.relativeCochainRestrictionInt R (openInclusionPair X i)) |
| 193 | (forget₂ (ModuleCat R) AddCommGrpCat)).symm ((n : ℤ) - 1)).addCommGroupIsoToAddEquiv |
| 194 | |>.trans <| |
| 195 | (ShortComplex.mapHomologyIso |
| 196 | ((CochainComplex.mappingCone |
| 197 | (RelativeCochainCone.relativeCochainRestrictionInt R (openInclusionPair X i))).sc ((n : ℤ) - 1)) |
| 198 | (forget₂ (ModuleCat R) AddCommGrpCat)).addCommGroupIsoToAddEquiv |
| 199 | |>.trans (RelativeCochainConeNaturality.relativeCochainConeCohomologyEquivCanonical R (openInclusionPair X i) n).toAddEquiv |
| 200 | |
| 201 | /-- Let `W ⊆ V` be open subsets of a topological space `X`, with both subspaces paracompact and |
| 202 | Hausdorff. Let `S^•` be the sheafified rational singular cochain complex on `X`. This additive |
| 203 | equivalence identifies `H^{n-1}(Cone(Γ(V, S^•) → Γ(W, S^•)))` with relative singular cohomology |
| 204 | `H^n(V, W; ℚ)`. -/ |
| 205 | def openSingularSheafRestrictionConeCohomologyEquivRelative {V W : Opens X} |
| 206 | (i : W ⟶ V) [ParacompactSpace V] [T2Space V] |
| 207 | [ParacompactSpace W] [T2Space W] (n : ℕ) : |
| 208 | (openSingularSheafRestrictionCone ℚ X i).homology ((n : ℤ) - 1) ≃+ |
| 209 | Cohomology.RelativeCohomology ℚ (openInclusionPair X i) n := |
| 210 | letI := openRawToSingularSheafRestrictionCone_quasiIso X i |
| 211 | (asIso (HomologicalComplex.homologyMap |
| 212 | (openRawToSingularSheafRestrictionCone ℚ X i) ((n : ℤ) - 1))).symm.addCommGroupIsoToAddEquiv |
| 213 | |>.trans (openRawSingularRestrictionConeCohomologyEquivRelative ℚ X i n) |
| 214 | |
| 215 | end |
| 216 | |
| 217 | end OAI.AlgebraicTopology.Singular.SheafCochainOpenCone |