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.HomologyWithSupports |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Geometric.LocalHomologyPresheaf |
| 3 | import Mathlib.Topology.Homeomorph.Lemmas |
| 4 | |
| 5 | /-! # Compact Support Assembly -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.CompactSupportAssembly.Cycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Actual Mayer--Vietoris assembly for compact supports |
| 13 | |
| 14 | The restriction maps below are induced by identity maps of complementary |
| 15 | pairs. The binary gluing and detection results follow from the proved |
| 16 | relative Mayer--Vietoris sequence. They are generic statements about actual |
| 17 | relative homology; no orientation or fundamental class is supplied as an axiom. |
| 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 | set_option backward.isDefEq.respectTransparency.types false |
| 25 | |
| 26 | variable (X : TopCat.{0}) |
| 27 | |
| 28 | /-- The actual restriction from a larger support set to a smaller one. -/ |
| 29 | def homologyWithSupportRestriction {K L : Set X} (hKL : K ⊆ L) (n : ℕ) : |
| 30 | HomologyWithSupports.Cycles.singularHomologyWithSupport X L n ⟶ HomologyWithSupports.Cycles.singularHomologyWithSupport X K n := |
| 31 | HomologicalComplex.homologyMap (LocalHomologyPresheaf.Cycles.relativeComplementChainRestriction X hKL) n |
| 32 | |
| 33 | @[simp] |
| 34 | theorem homologyWithSupportRestriction_refl (K : Set X) (n : ℕ) : |
| 35 | homologyWithSupportRestriction X (Set.Subset.refl K) n = 𝟙 _ := by |
| 36 | unfold homologyWithSupportRestriction |
| 37 | rw [LocalHomologyPresheaf.Cycles.relativeComplementChainRestriction_refl, HomologicalComplex.homologyMap_id] |
| 38 | |
| 39 | @[reassoc] |
| 40 | theorem homologyWithSupportRestriction_trans {K L P : Set X} |
| 41 | (hKL : K ⊆ L) (hLP : L ⊆ P) (n : ℕ) : |
| 42 | homologyWithSupportRestriction X hLP n ≫ homologyWithSupportRestriction X hKL n = |
| 43 | homologyWithSupportRestriction X (hKL.trans hLP) n := by |
| 44 | unfold homologyWithSupportRestriction |
| 45 | rw [← HomologicalComplex.homologyMap_comp, LocalHomologyPresheaf.Cycles.relativeComplementChainRestriction_trans] |
| 46 | |
| 47 | /-- Restricting the support does not change the subsequent local class. -/ |
| 48 | @[reassoc] |
| 49 | theorem homologyWithSupportRestriction_toPoint {K L : Set X} (hKL : K ⊆ L) |
| 50 | (x : X) (hx : x ∈ K) (n : ℕ) : |
| 51 | homologyWithSupportRestriction X hKL n ≫ LocalHomologyPresheaf.Cycles.localHomologyToPoint X K x hx n = |
| 52 | LocalHomologyPresheaf.Cycles.localHomologyToPoint X L x (hKL hx) n := by |
| 53 | unfold homologyWithSupportRestriction LocalHomologyPresheaf.Cycles.localHomologyToPoint |
| 54 | rw [← HomologicalComplex.homologyMap_comp, LocalHomologyPresheaf.Cycles.relativeComplementChainRestriction_toPoint] |
| 55 | |
| 56 | /-- Empty support gives zero actual relative homology in every degree. -/ |
| 57 | theorem homologyWithSupport_empty_isZero (n : ℕ) : |
| 58 | IsZero (HomologyWithSupports.Cycles.singularHomologyWithSupport X ∅ n) := by |
| 59 | let : IsIso (LocalHomology.Cycles.subspaceInclusion X Set.univ) := by |
| 60 | change IsIso ((TopCat.isoOfHomeo (X := TopCat.of (Set.univ : Set X)) (Y := X) |
| 61 | (Homeomorph.Set.univ X)).hom) |
| 62 | infer_instance |
| 63 | let : IsIso (LocalHomology.Cycles.subspaceChainInclusion X Set.univ) := by |
| 64 | dsimp only [LocalHomology.Cycles.subspaceChainInclusion] |
| 65 | infer_instance |
| 66 | have hz := isZero_cokernel_of_epi (LocalHomology.Cycles.subspaceChainInclusion X Set.univ) |
| 67 | have hh := (HomologicalComplex.homologyFunctor (ModuleCat.{0} ℤ) |
| 68 | (ComplexShape.down ℕ) n).map_isZero hz |
| 69 | change IsZero (LocalHomology.Cycles.relativeSingularHomology X Set.univ n) at hh |
| 70 | simpa only [HomologyWithSupports.Cycles.singularHomologyWithSupport, Set.compl_empty] using! hh |
| 71 | |
| 72 | private theorem moduleBiprod_ext (M N : ModuleCat.{0} ℤ) |
| 73 | (a b : (M ⊞ N : ModuleCat.{0} ℤ)) |
| 74 | (hf : (biprod.fst : M ⊞ N ⟶ M) a = (biprod.fst : M ⊞ N ⟶ M) b) |
| 75 | (hs : (biprod.snd : M ⊞ N ⟶ N) a = (biprod.snd : M ⊞ N ⟶ N) b) : a = b := by |
| 76 | have ha := ConcreteCategory.congr_hom (biprod.total (X := M) (Y := N)) a |
| 77 | have hb := ConcreteCategory.congr_hom (biprod.total (X := M) (Y := N)) b |
| 78 | change (biprod.inl : M ⟶ M ⊞ N) ((biprod.fst : M ⊞ N ⟶ M) a) + |
| 79 | (biprod.inr : N ⟶ M ⊞ N) ((biprod.snd : M ⊞ N ⟶ N) a) = a at ha |
| 80 | change (biprod.inl : M ⟶ M ⊞ N) ((biprod.fst : M ⊞ N ⟶ M) b) + |
| 81 | (biprod.inr : N ⟶ M ⊞ N) ((biprod.snd : M ⊞ N ⟶ N) b) = b at hb |
| 82 | rw [hf, hs] at ha |
| 83 | exact ha.symm.trans hb |
| 84 | |
| 85 | private theorem relativeMayerVietorisFirst_injective (A B : Set X) |
| 86 | (hA : IsOpen A) (hB : IsOpen B) (n : ℕ) |
| 87 | (hUnion : IsZero (LocalHomology.Cycles.relativeSingularHomology X (A ∪ B) (n + 1))) : |
| 88 | Function.Injective (HomologyWithSupports.Cycles.relativeMayerVietorisFirst X A B n).hom := by |
| 89 | apply (injective_iff_map_eq_zero (HomologyWithSupports.Cycles.relativeMayerVietorisFirst X A B n).hom).2 |
| 90 | intro z hz |
| 91 | have hmem : z ∈ LinearMap.ker (HomologyWithSupports.Cycles.relativeMayerVietorisFirst X A B n).hom := hz |
| 92 | rw [← HomologyWithSupports.Cycles.relativeMayerVietoris_range_boundary X A B hA hB n] at hmem |
| 93 | obtain ⟨b, rfl⟩ := hmem |
| 94 | have hb : b = 0 := (ModuleCat.isZero_iff_subsingleton.mp hUnion).elim _ _ |
| 95 | rw [hb, map_zero] |
| 96 | |
| 97 | private theorem relativeMayerVietoris_ext (A B : Set X) |
| 98 | (hA : IsOpen A) (hB : IsOpen B) (n : ℕ) |
| 99 | (hUnion : IsZero (LocalHomology.Cycles.relativeSingularHomology X (A ∪ B) (n + 1))) : |
| 100 | ∀ a b : LocalHomology.Cycles.relativeSingularHomology X (A ∩ B) n, |
| 101 | (HomologicalComplex.homologyMap |
| 102 | (HomologyWithSupports.Cycles.relativeSubsetChainMap X (Set.inter_subset_left : A ∩ B ⊆ A)) n) a = |
| 103 | (HomologicalComplex.homologyMap |
| 104 | (HomologyWithSupports.Cycles.relativeSubsetChainMap X (Set.inter_subset_left : A ∩ B ⊆ A)) n) b → |
| 105 | (HomologicalComplex.homologyMap |
| 106 | (HomologyWithSupports.Cycles.relativeSubsetChainMap X (Set.inter_subset_right : A ∩ B ⊆ B)) n) a = |
| 107 | (HomologicalComplex.homologyMap |
| 108 | (HomologyWithSupports.Cycles.relativeSubsetChainMap X (Set.inter_subset_right : A ∩ B ⊆ B)) n) b → a = b := by |
| 109 | intro a b ha hb |
| 110 | apply relativeMayerVietorisFirst_injective X A B hA hB n hUnion |
| 111 | apply moduleBiprod_ext |
| 112 | · exact (ConcreteCategory.congr_hom (HomologyWithSupports.Cycles.relativeMayerVietorisFirst_fst X A B n) a).trans |
| 113 | (ha.trans (ConcreteCategory.congr_hom |
| 114 | (HomologyWithSupports.Cycles.relativeMayerVietorisFirst_fst X A B n) b).symm) |
| 115 | · exact (ConcreteCategory.congr_hom (HomologyWithSupports.Cycles.relativeMayerVietorisFirst_snd X A B n) a).trans |
| 116 | ((congrArg Neg.neg hb).trans (ConcreteCategory.congr_hom |
| 117 | (HomologyWithSupports.Cycles.relativeMayerVietorisFirst_snd X A B n) b).symm) |
| 118 | |
| 119 | private theorem relativeMayerVietoris_ext_of_eq (A B U : Set X) |
| 120 | (hA : IsOpen A) (hB : IsOpen B) (n : ℕ) |
| 121 | (hUnion : IsZero (LocalHomology.Cycles.relativeSingularHomology X (A ∪ B) (n + 1))) |
| 122 | (hU : U = A ∩ B) (hUA : U ⊆ A) (hUB : U ⊆ B) : |
| 123 | ∀ a b : LocalHomology.Cycles.relativeSingularHomology X U n, |
| 124 | (HomologicalComplex.homologyMap (HomologyWithSupports.Cycles.relativeSubsetChainMap X hUA) n) a = |
| 125 | (HomologicalComplex.homologyMap (HomologyWithSupports.Cycles.relativeSubsetChainMap X hUA) n) b → |
| 126 | (HomologicalComplex.homologyMap (HomologyWithSupports.Cycles.relativeSubsetChainMap X hUB) n) a = |
| 127 | (HomologicalComplex.homologyMap (HomologyWithSupports.Cycles.relativeSubsetChainMap X hUB) n) b → a = b := by |
| 128 | subst U |
| 129 | exact relativeMayerVietoris_ext X A B hA hB n hUnion |
| 130 | |
| 131 | /-- The two restrictions detect a class on a union when the next homology |
| 132 | group of the intersection vanishes. -/ |
| 133 | theorem supportUnion_ext (K L : Set X) (hK : IsClosed K) (hL : IsClosed L) (n : ℕ) |
| 134 | (hInt : IsZero (HomologyWithSupports.Cycles.singularHomologyWithSupport X (K ∩ L) (n + 1))) : |
| 135 | ∀ a b : HomologyWithSupports.Cycles.singularHomologyWithSupport X (K ∪ L) n, |
| 136 | homologyWithSupportRestriction X (Set.subset_union_left : K ⊆ K ∪ L) n a = |
| 137 | homologyWithSupportRestriction X (Set.subset_union_left : K ⊆ K ∪ L) n b → |
| 138 | homologyWithSupportRestriction X (Set.subset_union_right : L ⊆ K ∪ L) n a = |
| 139 | homologyWithSupportRestriction X (Set.subset_union_right : L ⊆ K ∪ L) n b → a = b := by |
| 140 | have hI : IsZero (LocalHomology.Cycles.relativeSingularHomology X (Kᶜ ∪ Lᶜ) (n + 1)) := by |
| 141 | simpa only [HomologyWithSupports.Cycles.singularHomologyWithSupport, Set.compl_inter] using hInt |
| 142 | let hUK : (K ∪ L)ᶜ ⊆ Kᶜ := fun _ hx h => hx (Or.inl h) |
| 143 | let hUL : (K ∪ L)ᶜ ⊆ Lᶜ := fun _ hx h => hx (Or.inr h) |
| 144 | have h := relativeMayerVietoris_ext_of_eq X Kᶜ Lᶜ (K ∪ L)ᶜ |
| 145 | hK.isOpen_compl hL.isOpen_compl n hI (Set.compl_union K L) hUK hUL |
| 146 | simpa only [HomologyWithSupports.Cycles.singularHomologyWithSupport, homologyWithSupportRestriction, |
| 147 | LocalHomologyPresheaf.Cycles.relativeComplementChainRestriction, HomologyWithSupports.Cycles.relativeSubsetChainMap] using h |
| 148 | |
| 149 | /-- Mayer--Vietoris propagates vanishing from two supports and the next |
| 150 | homology group of their intersection to their union. -/ |
| 151 | theorem supportUnion_isZero (K L : Set X) (hK : IsClosed K) (hL : IsClosed L) (n : ℕ) |
| 152 | (hKn : IsZero (HomologyWithSupports.Cycles.singularHomologyWithSupport X K n)) |
| 153 | (hLn : IsZero (HomologyWithSupports.Cycles.singularHomologyWithSupport X L n)) |
| 154 | (hInt : IsZero (HomologyWithSupports.Cycles.singularHomologyWithSupport X (K ∩ L) (n + 1))) : |
| 155 | IsZero (HomologyWithSupports.Cycles.singularHomologyWithSupport X (K ∪ L) n) := by |
| 156 | apply ModuleCat.isZero_iff_subsingleton.mpr |
| 157 | let : Subsingleton (HomologyWithSupports.Cycles.singularHomologyWithSupport X K n) := |
| 158 | ModuleCat.isZero_iff_subsingleton.mp hKn |
| 159 | let : Subsingleton (HomologyWithSupports.Cycles.singularHomologyWithSupport X L n) := |
| 160 | ModuleCat.isZero_iff_subsingleton.mp hLn |
| 161 | exact ⟨fun a b => supportUnion_ext X K L hK hL n hInt a b |
| 162 | (Subsingleton.elim _ _) (Subsingleton.elim _ _)⟩ |
| 163 | |
| 164 | private theorem relativeMayerVietoris_glue_of_eq (A B U V : Set X) |
| 165 | (hA : IsOpen A) (hB : IsOpen B) (n : ℕ) |
| 166 | (hU : U = A ∩ B) (hV : V = A ∪ B) |
| 167 | (hUA : U ⊆ A) (hUB : U ⊆ B) (hAV : A ⊆ V) (hBV : B ⊆ V) : |
| 168 | ∀ (a : LocalHomology.Cycles.relativeSingularHomology X A n) (b : LocalHomology.Cycles.relativeSingularHomology X B n), |
| 169 | (HomologicalComplex.homologyMap (HomologyWithSupports.Cycles.relativeSubsetChainMap X hAV) n) a = |
| 170 | (HomologicalComplex.homologyMap (HomologyWithSupports.Cycles.relativeSubsetChainMap X hBV) n) b → |
| 171 | ∃ c : LocalHomology.Cycles.relativeSingularHomology X U n, |
| 172 | (HomologicalComplex.homologyMap (HomologyWithSupports.Cycles.relativeSubsetChainMap X hUA) n) c = a ∧ |
| 173 | (HomologicalComplex.homologyMap (HomologyWithSupports.Cycles.relativeSubsetChainMap X hUB) n) c = b := by |
| 174 | subst U |
| 175 | subst V |
| 176 | exact HomologyWithSupports.Cycles.relativeMayerVietoris_glue X A B hA hB n |
| 177 | |
| 178 | /-- Compatible classes on closed supports glue to an actual relative |
| 179 | homology class supported on their union. -/ |
| 180 | theorem supportUnion_glue (K L : Set X) (hK : IsClosed K) (hL : IsClosed L) (n : ℕ) : |
| 181 | ∀ (a : HomologyWithSupports.Cycles.singularHomologyWithSupport X K n) (b : HomologyWithSupports.Cycles.singularHomologyWithSupport X L n), |
| 182 | homologyWithSupportRestriction X (Set.inter_subset_left : K ∩ L ⊆ K) n a = |
| 183 | homologyWithSupportRestriction X (Set.inter_subset_right : K ∩ L ⊆ L) n b → |
| 184 | ∃ c : HomologyWithSupports.Cycles.singularHomologyWithSupport X (K ∪ L) n, |
| 185 | homologyWithSupportRestriction X (Set.subset_union_left : K ⊆ K ∪ L) n c = a ∧ |
| 186 | homologyWithSupportRestriction X (Set.subset_union_right : L ⊆ K ∪ L) n c = b := by |
| 187 | let hUA : (K ∪ L)ᶜ ⊆ Kᶜ := fun _ hx h => hx (Or.inl h) |
| 188 | let hUB : (K ∪ L)ᶜ ⊆ Lᶜ := fun _ hx h => hx (Or.inr h) |
| 189 | let hAV : Kᶜ ⊆ (K ∩ L)ᶜ := fun _ hx h => hx h.1 |
| 190 | let hBV : Lᶜ ⊆ (K ∩ L)ᶜ := fun _ hx h => hx h.2 |
| 191 | have h := relativeMayerVietoris_glue_of_eq X Kᶜ Lᶜ (K ∪ L)ᶜ (K ∩ L)ᶜ |
| 192 | hK.isOpen_compl hL.isOpen_compl n (Set.compl_union K L) (Set.compl_inter K L) |
| 193 | hUA hUB hAV hBV |
| 194 | simpa only [HomologyWithSupports.Cycles.singularHomologyWithSupport, homologyWithSupportRestriction, |
| 195 | LocalHomologyPresheaf.Cycles.relativeComplementChainRestriction, HomologyWithSupports.Cycles.relativeSubsetChainMap] using h |
| 196 | |
| 197 | end |
| 198 | |
| 199 | end OAI.AlgebraicGeometry.CycleClass.Geometric.CompactSupportAssembly.Cycles |