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.SmallSingularQuasiIso |
| 2 | |
| 3 | /-! # Binary Small Union -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.BinarySmallUnion.Cycles |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # Binary small chains and the singular chains of the union |
| 11 | |
| 12 | The small singular simplices for two subsets of an ambient space can be |
| 13 | viewed in their union without changing the simplicial set. If the subsets |
| 14 | are open, the previously proved open-cover comparison on that union shows |
| 15 | that the canonical map from these small chains to all chains of the union |
| 16 | is a quasi-isomorphism. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory |
| 20 | |
| 21 | /-- Containment of a singular simplex in a subspace is preserved when |
| 22 | the ambient space itself is restricted to another subspace. -/ |
| 23 | theorem subspaceSingularSubcomplex_preimage (X : TopCat.{0}) (C A : Set X) : |
| 24 | SmallMayerVietoris.Cycles.subspaceSingularSubcomplex (TopCat.of C) (Subtype.val ⁻¹' A) = |
| 25 | (SmallMayerVietoris.Cycles.subspaceSingularSubcomplex X A).preimage |
| 26 | (TopCat.toSSet.map (LocalHomology.Cycles.subspaceInclusion X C)) := by |
| 27 | ext n σ |
| 28 | change σ ∈ (SmallMayerVietoris.Cycles.subspaceSingularSubcomplex (TopCat.of C) (Subtype.val ⁻¹' A)).obj n ↔ |
| 29 | (TopCat.toSSet.map (LocalHomology.Cycles.subspaceInclusion X C)).app n σ ∈ |
| 30 | (SmallMayerVietoris.Cycles.subspaceSingularSubcomplex X A).obj n |
| 31 | rw [SmallMayerVietoris.Cycles.mem_subspaceSingularSubcomplex, SmallMayerVietoris.Cycles.mem_subspaceSingularSubcomplex] |
| 32 | constructor |
| 33 | · intro h x hx |
| 34 | obtain ⟨t, rfl⟩ := hx |
| 35 | exact h ⟨t, rfl⟩ |
| 36 | · intro h x hx |
| 37 | obtain ⟨t, rfl⟩ := hx |
| 38 | exact h ⟨t, rfl⟩ |
| 39 | |
| 40 | /-- Inclusion of subsets gives inclusion of their contained-simplex |
| 41 | subcomplexes. -/ |
| 42 | theorem subspaceSingularSubcomplex_mono (X : TopCat.{0}) {A B : Set X} |
| 43 | (h : A ⊆ B) : SmallMayerVietoris.Cycles.subspaceSingularSubcomplex X A ≤ SmallMayerVietoris.Cycles.subspaceSingularSubcomplex X B := by |
| 44 | intro n σ hσ |
| 45 | rw [SmallMayerVietoris.Cycles.mem_subspaceSingularSubcomplex] at hσ ⊢ |
| 46 | exact hσ.trans h |
| 47 | |
| 48 | /-- The binary small-simplex condition commutes with restriction of the |
| 49 | ambient space to a subspace. -/ |
| 50 | theorem binarySmallSingularSubcomplex_preimage (X : TopCat.{0}) (C A B : Set X) : |
| 51 | SmallMayerVietoris.Cycles.binarySmallSingularSubcomplex (TopCat.of C) |
| 52 | (Subtype.val ⁻¹' A) (Subtype.val ⁻¹' B) = |
| 53 | (SmallMayerVietoris.Cycles.binarySmallSingularSubcomplex X A B).preimage |
| 54 | (TopCat.toSSet.map (LocalHomology.Cycles.subspaceInclusion X C)) := by |
| 55 | dsimp only [SmallMayerVietoris.Cycles.binarySmallSingularSubcomplex] |
| 56 | rw [SSet.Subcomplex.preimage_max, subspaceSingularSubcomplex_preimage, |
| 57 | subspaceSingularSubcomplex_preimage] |
| 58 | |
| 59 | /-- Every binary small simplex is contained in the union. -/ |
| 60 | theorem binarySmallSingularSubcomplex_le_union (X : TopCat.{0}) (A B : Set X) : |
| 61 | SmallMayerVietoris.Cycles.binarySmallSingularSubcomplex X A B ≤ SmallMayerVietoris.Cycles.subspaceSingularSubcomplex X (A ∪ B) := |
| 62 | sup_le (subspaceSingularSubcomplex_mono X Set.subset_union_left) |
| 63 | (subspaceSingularSubcomplex_mono X Set.subset_union_right) |
| 64 | |
| 65 | /-- Restricting an injective simplicial map to the preimage of a |
| 66 | subcomplex in its range yields an isomorphism onto that subcomplex. -/ |
| 67 | theorem subcomplexFromPreimage_isIso {S T : SSet.{0}} (f : S ⟶ T) [Mono f] |
| 68 | (P : T.Subcomplex) (hP : P ≤ SSet.Subcomplex.range f) : |
| 69 | IsIso (P.fromPreimage f) := by |
| 70 | rw [NatTrans.isIso_iff_isIso_app] |
| 71 | intro n |
| 72 | rw [isIso_iff_bijective] |
| 73 | constructor |
| 74 | · intro x y h |
| 75 | apply Subtype.ext |
| 76 | apply (mono_iff_injective (f.app n)).mp inferInstance |
| 77 | exact congrArg Subtype.val h |
| 78 | · intro y |
| 79 | obtain ⟨x, hx⟩ := hP n y.property |
| 80 | refine ⟨⟨x, ?_⟩, ?_⟩ |
| 81 | · change f.app n x ∈ P.obj n |
| 82 | rw [hx] |
| 83 | exact y.property |
| 84 | · exact Subtype.ext hx |
| 85 | |
| 86 | variable (X : TopCat.{0}) (A B : Set X) |
| 87 | |
| 88 | /-- The first subset regarded as a subset of the actual union space. -/ |
| 89 | abbrev binaryUnionFirst : Set (TopCat.of (A ∪ B : Set X)) := Subtype.val ⁻¹' A |
| 90 | |
| 91 | /-- The second subset regarded as a subset of the actual union space. -/ |
| 92 | abbrev binaryUnionSecond : Set (TopCat.of (A ∪ B : Set X)) := Subtype.val ⁻¹' B |
| 93 | |
| 94 | /-- The two restricted subsets cover the union space. -/ |
| 95 | theorem binaryUnion_cover : binaryUnionFirst X A B ∪ binaryUnionSecond X A B = Set.univ := by |
| 96 | ext x |
| 97 | change (x.val ∈ A ∨ x.val ∈ B) ↔ True |
| 98 | exact iff_true_intro x.property |
| 99 | |
| 100 | theorem binaryUnionFirst_isOpen (hA : IsOpen A) : IsOpen (binaryUnionFirst X A B) := |
| 101 | hA.preimage continuous_subtype_val |
| 102 | |
| 103 | theorem binaryUnionSecond_isOpen (hB : IsOpen B) : IsOpen (binaryUnionSecond X A B) := |
| 104 | hB.preimage continuous_subtype_val |
| 105 | |
| 106 | /-- Forgetting the union subspace changes no binary small simplex. |
| 107 | The isomorphism maps each simplex by the actual subspace inclusion. -/ |
| 108 | def binarySmallUnionSSetIso : |
| 109 | (SmallMayerVietoris.Cycles.binarySmallSingularSubcomplex (TopCat.of (A ∪ B : Set X)) |
| 110 | (binaryUnionFirst X A B) (binaryUnionSecond X A B) : SSet) ≅ |
| 111 | (SmallMayerVietoris.Cycles.binarySmallSingularSubcomplex X A B : SSet) := |
| 112 | SSet.Subcomplex.eqToIso (binarySmallSingularSubcomplex_preimage X (A ∪ B) A B) ≪≫ |
| 113 | @asIso _ _ _ _ |
| 114 | ((SmallMayerVietoris.Cycles.binarySmallSingularSubcomplex X A B).fromPreimage |
| 115 | (TopCat.toSSet.map (LocalHomology.Cycles.subspaceInclusion X (A ∪ B)))) |
| 116 | (subcomplexFromPreimage_isIso _ _ (binarySmallSingularSubcomplex_le_union X A B)) |
| 117 | |
| 118 | /-- The small-simplex isomorphism has the expected ambient inclusion. -/ |
| 119 | @[reassoc] |
| 120 | theorem binarySmallUnionSSetIso_hom_inclusion : |
| 121 | (binarySmallUnionSSetIso X A B).hom ≫ (SmallMayerVietoris.Cycles.binarySmallSingularSubcomplex X A B).ι = |
| 122 | (SmallMayerVietoris.Cycles.binarySmallSingularSubcomplex (TopCat.of (A ∪ B : Set X)) |
| 123 | (binaryUnionFirst X A B) (binaryUnionSecond X A B)).ι ≫ |
| 124 | TopCat.toSSet.map (LocalHomology.Cycles.subspaceInclusion X (A ∪ B)) := by |
| 125 | change ((SSet.Subcomplex.eqToIso |
| 126 | (binarySmallSingularSubcomplex_preimage X (A ∪ B) A B)).hom ≫ |
| 127 | (SmallMayerVietoris.Cycles.binarySmallSingularSubcomplex X A B).fromPreimage |
| 128 | (TopCat.toSSet.map (LocalHomology.Cycles.subspaceInclusion X (A ∪ B)))) ≫ |
| 129 | (SmallMayerVietoris.Cycles.binarySmallSingularSubcomplex X A B).ι = _ |
| 130 | rw [Category.assoc, SSet.Subcomplex.fromPreimage_ι, ← Category.assoc] |
| 131 | rfl |
| 132 | |
| 133 | /-- The canonical corestriction of a binary small simplex to the union. -/ |
| 134 | def binarySmallToUnionSSetMap : |
| 135 | (SmallMayerVietoris.Cycles.binarySmallSingularSubcomplex X A B : SSet) ⟶ |
| 136 | TopCat.toSSet.obj (TopCat.of (A ∪ B : Set X)) := |
| 137 | (binarySmallUnionSSetIso X A B).inv ≫ |
| 138 | (SmallMayerVietoris.Cycles.binarySmallSingularSubcomplex (TopCat.of (A ∪ B : Set X)) |
| 139 | (binaryUnionFirst X A B) (binaryUnionSecond X A B)).ι |
| 140 | |
| 141 | /-- Corestriction followed by subspace inclusion is the original simplex. -/ |
| 142 | @[reassoc] |
| 143 | theorem binarySmallToUnionSSetMap_inclusion : |
| 144 | binarySmallToUnionSSetMap X A B ≫ TopCat.toSSet.map (LocalHomology.Cycles.subspaceInclusion X (A ∪ B)) = |
| 145 | (SmallMayerVietoris.Cycles.binarySmallSingularSubcomplex X A B).ι := by |
| 146 | dsimp only [binarySmallToUnionSSetMap] |
| 147 | rw [Category.assoc, ← binarySmallUnionSSetIso_hom_inclusion] |
| 148 | simp |
| 149 | |
| 150 | /-- The actual integral chain map corestricting binary small simplices |
| 151 | to their union. -/ |
| 152 | def binarySmallToUnionChainMap : |
| 153 | SmallMayerVietoris.Cycles.binarySmallSingularChains X A B ⟶ LocalHomology.Cycles.integralSingularChains (TopCat.of (A ∪ B : Set X)) := |
| 154 | SmallMayerVietoris.Cycles.integralSimplicialChainFunctor.map (binarySmallToUnionSSetMap X A B) |
| 155 | |
| 156 | /-- The triangle used to compare cokernels with relative chains. -/ |
| 157 | @[reassoc] |
| 158 | theorem binarySmallToUnionChainMap_inclusion : |
| 159 | binarySmallToUnionChainMap X A B ≫ LocalHomology.Cycles.subspaceChainInclusion X (A ∪ B) = |
| 160 | BinarySmallInclusion.Cycles.binarySmallIntegralChainInclusion X A B := by |
| 161 | rw [BinarySmallInclusion.Cycles.binarySmallIntegralChainInclusion_eq_canonical] |
| 162 | change SmallMayerVietoris.Cycles.integralSimplicialChainFunctor.map (binarySmallToUnionSSetMap X A B) ≫ |
| 163 | SmallMayerVietoris.Cycles.integralSimplicialChainFunctor.map |
| 164 | (TopCat.toSSet.map (LocalHomology.Cycles.subspaceInclusion X (A ∪ B))) = _ |
| 165 | rw [← Functor.map_comp, binarySmallToUnionSSetMap_inclusion] |
| 166 | |
| 167 | /-- Binary small chains compute the actual homology of the union for |
| 168 | open subsets, even when their union is smaller than the ambient space. -/ |
| 169 | theorem binarySmallToUnionChainMap_quasiIso (hA : IsOpen A) (hB : IsOpen B) : |
| 170 | _root_.QuasiIso (binarySmallToUnionChainMap X A B) := by |
| 171 | have hsmall := SmallSingularQuasiIso.Cycles.binarySmallIntegralChainInclusion_quasiIso (TopCat.of (A ∪ B : Set X)) |
| 172 | (binaryUnionFirst X A B) (binaryUnionSecond X A B) |
| 173 | (binaryUnionFirst_isOpen X A B hA) (binaryUnionSecond_isOpen X A B hB) |
| 174 | (binaryUnion_cover X A B) |
| 175 | dsimp only [binarySmallToUnionChainMap, binarySmallToUnionSSetMap] |
| 176 | rw [Functor.map_comp, ← BinarySmallInclusion.Cycles.binarySmallIntegralChainInclusion_eq_canonical] |
| 177 | exact quasiIso_comp _ _ (hφ' := hsmall) |
| 178 | |
| 179 | /-- The isomorphism on ordinary homology is induced by the displayed |
| 180 | canonical chain map. -/ |
| 181 | def binarySmallUnionHomologyIso (hA : IsOpen A) (hB : IsOpen B) (n : ℕ) : |
| 182 | SmallMayerVietoris.Cycles.binarySmallSingularHomology X A B n ≅ |
| 183 | RelativeHomologyExact.Cycles.integralSingularHomology (TopCat.of (A ∪ B : Set X)) n := by |
| 184 | letI := binarySmallToUnionChainMap_quasiIso X A B hA hB |
| 185 | exact isoOfQuasiIsoAt (binarySmallToUnionChainMap X A B) n |
| 186 | |
| 187 | @[simp] |
| 188 | theorem binarySmallUnionHomologyIso_hom (hA : IsOpen A) (hB : IsOpen B) (n : ℕ) : |
| 189 | (binarySmallUnionHomologyIso X A B hA hB n).hom = |
| 190 | HomologicalComplex.homologyMap (binarySmallToUnionChainMap X A B) n := rfl |
| 191 | |
| 192 | end |
| 193 | |
| 194 | end OAI.AlgebraicGeometry.CycleClass.Geometric.BinarySmallUnion.Cycles |