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.SmallSphereHomology |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Geometric.SmallCircleHomology |
| 3 | import OAI.AlgebraicGeometry.CycleClass.Geometric.SmallSingularQuasiIso |
| 4 | import Mathlib.Analysis.Normed.Module.Connected |
| 5 | |
| 6 | /-! # Sphere Homology Induction -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.SphereHomologyInduction.Cycles |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # Integral singular homology of Euclidean unit spheres |
| 14 | |
| 15 | The sphere models are actual metric unit spheres, and their homology is |
| 16 | the homology of mathlib's integral singular chain complex. The low-degree |
| 17 | calculations use the actual two-point model, path connectedness, and the |
| 18 | small-chain Mayer–Vietoris sequence. The proved open-cover comparison |
| 19 | then transfers those calculations and the higher-degree shift to ordinary |
| 20 | singular homology. The dimension induction yields the integer top group |
| 21 | and vanishing of all other positive-degree groups. |
| 22 | -/ |
| 23 | |
| 24 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 25 | |
| 26 | /-- The standard `d`-sphere, as the metric unit sphere in real Euclidean |
| 27 | space of dimension `d+1`, with its subspace topology. -/ |
| 28 | abbrev standardSphere (d : ℕ) : TopCat.{0} := |
| 29 | TopCat.of (NormalSphere.Cycles.NormalUnitSphere (EuclideanSpace ℝ (Fin (d + 1)))) |
| 30 | |
| 31 | /-- The actual integral singular homology of the specified unit sphere. -/ |
| 32 | abbrev standardSphereHomology (d n : ℕ) : ModuleCat.{0} ℤ := |
| 33 | RelativeHomologyExact.Cycles.integralSingularHomology (standardSphere d) n |
| 34 | |
| 35 | /-- The unit sphere in a Euclidean line is the explicit two-point model. -/ |
| 36 | def standardZeroSphereHomeomorph : standardSphere 0 ≃ₜ ZeroSphere.Cycles.zeroSphere := |
| 37 | SmallCircleHomology.Cycles.euclideanLineSphereHomeomorph.trans ZeroSphere.Cycles.zeroSphereRealHomeomorph.symm |
| 38 | |
| 39 | /-- The actual homology comparison with the explicit two-point sphere. -/ |
| 40 | def standardZeroSphereHomologyIso (n : ℕ) : |
| 41 | standardSphereHomology 0 n ≅ RelativeHomologyExact.Cycles.integralSingularHomology ZeroSphere.Cycles.zeroSphere n := |
| 42 | ContractibleModel.Cycles.singularHomologyIsoOfHomotopyEquiv (ModuleCat.of ℤ ℤ) |
| 43 | (X := standardSphere 0) (Y := ZeroSphere.Cycles.zeroSphere) |
| 44 | standardZeroSphereHomeomorph.toHomotopyEquiv n |
| 45 | |
| 46 | /-- The exceptional degree-zero answer for the zero-dimensional sphere. -/ |
| 47 | def standardZeroSphereH0Iso : |
| 48 | standardSphereHomology 0 0 ≅ ModuleCat.of ℤ (Fin 2 → ℤ) := |
| 49 | standardZeroSphereHomologyIso 0 ≪≫ ZeroSphere.Cycles.zeroSphereH0Iso |
| 50 | |
| 51 | /-- Every positive-degree homology group of the zero-sphere is zero. -/ |
| 52 | theorem standardZeroSphere_higherHomology_isZero (n : ℕ) (hn : n ≠ 0) : |
| 53 | IsZero (standardSphereHomology 0 n) := |
| 54 | (ZeroSphere.Cycles.zeroSphere_higherHomology_isZero n hn).of_iso (standardZeroSphereHomologyIso n) |
| 55 | |
| 56 | /-- Every positive-dimensional standard sphere is path connected. -/ |
| 57 | instance standardSphere_pathConnectedSpace (d : ℕ) : |
| 58 | PathConnectedSpace (standardSphere (d + 1)) := by |
| 59 | apply isPathConnected_iff_pathConnectedSpace.mp |
| 60 | apply isPathConnected_sphere |
| 61 | · apply Module.one_lt_rank_of_one_lt_finrank |
| 62 | simp only [finrank_euclideanSpace_fin] |
| 63 | omega |
| 64 | · norm_num |
| 65 | |
| 66 | /-- For a positive-dimensional sphere, augmentation gives its actual |
| 67 | degree-zero integral homology isomorphism. -/ |
| 68 | def standardSphereH0Iso (d : ℕ) : |
| 69 | standardSphereHomology (d + 1) 0 ≅ ModuleCat.of ℤ ℤ := |
| 70 | ContractibleModel.Cycles.integralSingularH0Iso (standardSphere (d + 1)) |
| 71 | |
| 72 | /-- Above the circle dimension, the two opposite-pole charts have a path |
| 73 | connected overlap: stereographic coordinates identify it with a punctured |
| 74 | real vector space of dimension at least two. -/ |
| 75 | theorem standardSphereOverlap_pathConnectedSpace (d : ℕ) : |
| 76 | PathConnectedSpace ↥(SphereCover.Cycles.spherePoleOpen (SphereCover.Cycles.standardSphereNorthPole (d + 2)) ∩ |
| 77 | SphereCover.Cycles.spherePoleOpen (-SphereCover.Cycles.standardSphereNorthPole (d + 2))) := by |
| 78 | let v := SphereCover.Cycles.standardSphereNorthPole (d + 2) |
| 79 | have hdim := SphereCover.Cycles.sphereEquatorSpace_finrank v |
| 80 | simp only [finrank_euclideanSpace_fin] at hdim |
| 81 | have hdim' : 1 < Module.finrank ℝ (SphereCover.Cycles.SphereEquatorSpace v) := by omega |
| 82 | let : PathConnectedSpace (NormalSphere.Cycles.PuncturedNormal (SphereCover.Cycles.SphereEquatorSpace v)) := |
| 83 | isPathConnected_iff_pathConnectedSpace.mp |
| 84 | (isPathConnected_compl_singleton_of_one_lt_rank |
| 85 | (Module.one_lt_rank_of_one_lt_finrank hdim') 0) |
| 86 | exact (SphereCover.Cycles.spherePoleIntersectionChart v).symm.surjective.pathConnectedSpace |
| 87 | (SphereCover.Cycles.spherePoleIntersectionChart v).symm.continuous |
| 88 | |
| 89 | /-- Two contractible pieces with path connected intersection have zero |
| 90 | first homology in their actual small-chain complex. -/ |
| 91 | theorem smallMayerVietoris_H1_isZero_of_pathConnected_intersection |
| 92 | (X : TopCat.{0}) (U V : Set X) [ContractibleSpace U] [ContractibleSpace V] |
| 93 | [PathConnectedSpace ↥(U ∩ V)] : |
| 94 | IsZero (SmallMayerVietoris.Cycles.binarySmallSingularHomology X U V 1) := by |
| 95 | have haug : RelativeHomologyExact.Cycles.integralSingularHomologyMap |
| 96 | (SmallMayerVietoris.Cycles.subsetInclusion X (Set.inter_subset_left : U ∩ V ⊆ U)) 0 ≫ |
| 97 | (ContractibleModel.Cycles.integralSingularH0Iso (TopCat.of U)).hom = |
| 98 | (ContractibleModel.Cycles.integralSingularH0Iso (TopCat.of ↥(U ∩ V))).hom := |
| 99 | HomologyZeroNaturality.Cycles.integralSingularH0_augmentation_naturality _ |
| 100 | have hinc : Mono (RelativeHomologyExact.Cycles.integralSingularHomologyMap |
| 101 | (SmallMayerVietoris.Cycles.subsetInclusion X (Set.inter_subset_left : U ∩ V ⊆ U)) 0) := |
| 102 | mono_of_mono_fac haug |
| 103 | have hfirst : Mono (HomologicalComplex.homologyMap (SmallMayerVietoris.Cycles.smallMayerVietorisSequence X U V).f 0) := |
| 104 | @mono_of_mono_fac _ _ _ _ _ _ _ _ hinc |
| 105 | (SmallMayerVietoris.Cycles.smallMayerVietoris_homology_f_fst X U V 0) |
| 106 | have hboundary : Mono (SmallMayerVietoris.Cycles.smallMayerVietorisBoundary X U V 0) := |
| 107 | (SmallMayerVietoris.Cycles.smallMayerVietorisSequence_shortExact X U V).mono_δ 1 0 rfl |
| 108 | (SmallSphereHomology.Cycles.smallMayerVietorisMiddleHomology_isZero X U V 1 |
| 109 | (ContractibleModel.Cycles.isZero_integralSingularHomology_of_contractible _ 1 (by decide)) |
| 110 | (ContractibleModel.Cycles.isZero_integralSingularHomology_of_contractible _ 1 (by decide))) |
| 111 | apply @IsZero.of_mono_eq_zero _ _ _ _ _ |
| 112 | (SmallMayerVietoris.Cycles.smallMayerVietorisBoundary X U V 0) hboundary |
| 113 | let := hfirst |
| 114 | apply (cancel_mono (HomologicalComplex.homologyMap (SmallMayerVietoris.Cycles.smallMayerVietorisSequence X U V).f 0)).mp |
| 115 | exact ((SmallMayerVietoris.Cycles.smallMayerVietorisSequence_shortExact X U V).δ_comp 1 0 rfl).trans |
| 116 | (zero_comp).symm |
| 117 | |
| 118 | /-- The higher-dimensional sphere's actual two-chart small complex has |
| 119 | zero first homology; all connectedness hypotheses are discharged. -/ |
| 120 | theorem standardSphereSmallH1_isZero (d : ℕ) : |
| 121 | IsZero (SmallSphereHomology.Cycles.spherePoleSmallHomology (SphereCover.Cycles.standardSphereNorthPole (d + 2)) 1) := by |
| 122 | let := SphereCover.Cycles.spherePoleOpen_contractible (SphereCover.Cycles.standardSphereNorthPole (d + 2)) |
| 123 | let := SphereCover.Cycles.spherePoleOpen_contractible (-SphereCover.Cycles.standardSphereNorthPole (d + 2)) |
| 124 | let := standardSphereOverlap_pathConnectedSpace d |
| 125 | exact smallMayerVietoris_H1_isZero_of_pathConnected_intersection |
| 126 | (standardSphere (d + 2)) _ _ |
| 127 | |
| 128 | variable {E : Type} [NormedAddCommGroup E] [InnerProductSpace ℝ E] |
| 129 | |
| 130 | /-- The actual open-cover comparison for the complements of opposite |
| 131 | sphere poles. Its forward map is induced by inclusion of small chains. -/ |
| 132 | def spherePoleHomologyComparison (v : NormalSphere.Cycles.NormalUnitSphere E) (n : ℕ) : |
| 133 | SmallSphereHomology.Cycles.spherePoleSmallHomology v n ≅ |
| 134 | RelativeHomologyExact.Cycles.integralSingularHomology (TopCat.of (NormalSphere.Cycles.NormalUnitSphere E)) n := |
| 135 | SmallSingularQuasiIso.Cycles.binarySmallIntegralHomologyIso (TopCat.of (NormalSphere.Cycles.NormalUnitSphere E)) |
| 136 | (SphereCover.Cycles.spherePoleOpen v) (SphereCover.Cycles.spherePoleOpen (-v)) |
| 137 | (SphereCover.Cycles.isOpen_spherePoleOpen v) (SphereCover.Cycles.isOpen_spherePoleOpen (-v)) |
| 138 | (SphereCover.Cycles.spherePoleOpen_union v) n |
| 139 | |
| 140 | @[simp] |
| 141 | theorem spherePoleHomologyComparison_hom (v : NormalSphere.Cycles.NormalUnitSphere E) (n : ℕ) : |
| 142 | (spherePoleHomologyComparison v n).hom = |
| 143 | HomologicalComplex.homologyMap |
| 144 | (BinarySmallInclusion.Cycles.binarySmallIntegralChainInclusion (TopCat.of (NormalSphere.Cycles.NormalUnitSphere E)) |
| 145 | (SphereCover.Cycles.spherePoleOpen v) (SphereCover.Cycles.spherePoleOpen (-v))) n := rfl |
| 146 | |
| 147 | /-- The higher-degree shift for ordinary integral singular homology of |
| 148 | standard spheres. The small-chain comparison has been proved, rather |
| 149 | than assumed as a hypothesis. -/ |
| 150 | def standardSphereHomologyShift (d n : ℕ) : |
| 151 | standardSphereHomology (d + 1) (n + 2) ≅ standardSphereHomology d (n + 1) := |
| 152 | (spherePoleHomologyComparison (SphereCover.Cycles.standardSphereNorthPole (d + 1)) (n + 2)).symm ≪≫ |
| 153 | SmallSphereHomology.Cycles.standardSphereSmallHomologyShift (d + 1) n |
| 154 | |
| 155 | /-- The shift uses the inverse of the actual small-chain inclusion |
| 156 | followed by the established small-chain connecting isomorphism. -/ |
| 157 | theorem standardSphereHomologyShift_hom (d n : ℕ) : |
| 158 | (standardSphereHomologyShift d n).hom = |
| 159 | (spherePoleHomologyComparison (SphereCover.Cycles.standardSphereNorthPole (d + 1)) (n + 2)).inv ≫ |
| 160 | (SmallSphereHomology.Cycles.standardSphereSmallHomologyShift (d + 1) n).hom := rfl |
| 161 | |
| 162 | /-- First homology of the actual unit circle is the integer module. -/ |
| 163 | def standardCircleH1Iso : standardSphereHomology 1 1 ≅ ModuleCat.of ℤ ℤ := |
| 164 | (spherePoleHomologyComparison (SphereCover.Cycles.standardSphereNorthPole 1) 1).symm ≪≫ SmallCircleHomology.Cycles.smallCircleH1Iso |
| 165 | |
| 166 | /-- Ordinary first homology vanishes for every sphere of dimension at |
| 167 | least two. -/ |
| 168 | theorem standardSphereH1_isZero (d : ℕ) : |
| 169 | IsZero (standardSphereHomology (d + 2) 1) := |
| 170 | (standardSphereSmallH1_isZero d).of_iso |
| 171 | (spherePoleHomologyComparison (SphereCover.Cycles.standardSphereNorthPole (d + 2)) 1).symm |
| 172 | |
| 173 | /-- Actual integral top homology of a positive-dimensional standard |
| 174 | sphere, computed by induction from the circle. -/ |
| 175 | def standardSphereTopHomologyIso (d : ℕ) : |
| 176 | standardSphereHomology (d + 1) (d + 1) ≅ ModuleCat.of ℤ ℤ := by |
| 177 | induction d with |
| 178 | | zero => exact standardCircleH1Iso |
| 179 | | succ d ih => exact standardSphereHomologyShift (d + 1) d ≪≫ ih |
| 180 | |
| 181 | @[simp] |
| 182 | theorem standardSphereTopHomologyIso_zero : |
| 183 | standardSphereTopHomologyIso 0 = standardCircleH1Iso := rfl |
| 184 | |
| 185 | @[simp] |
| 186 | theorem standardSphereTopHomologyIso_succ (d : ℕ) : |
| 187 | standardSphereTopHomologyIso (d + 1) = |
| 188 | standardSphereHomologyShift (d + 1) d ≪≫ standardSphereTopHomologyIso d := rfl |
| 189 | |
| 190 | /-- The same top-degree isomorphism with a positive dimension supplied |
| 191 | directly rather than as a successor. -/ |
| 192 | def standardSphereTopHomologyIsoOfNeZero (d : ℕ) (hd : d ≠ 0) : |
| 193 | standardSphereHomology d d ≅ ModuleCat.of ℤ ℤ := by |
| 194 | cases d with |
| 195 | | zero => exact (hd rfl).elim |
| 196 | | succ d => exact standardSphereTopHomologyIso d |
| 197 | |
| 198 | /-- Every positive-degree group away from the top dimension vanishes in |
| 199 | the actual singular homology of a standard sphere. -/ |
| 200 | theorem standardSphereHomology_isZero (d n : ℕ) (hn : n ≠ 0) (hnd : n ≠ d) : |
| 201 | IsZero (standardSphereHomology d n) := by |
| 202 | induction d generalizing n with |
| 203 | | zero => exact standardZeroSphere_higherHomology_isZero n hn |
| 204 | | succ d ih => |
| 205 | cases n with |
| 206 | | zero => exact (hn rfl).elim |
| 207 | | succ n => |
| 208 | cases n with |
| 209 | | zero => |
| 210 | cases d with |
| 211 | | zero => exact (hnd rfl).elim |
| 212 | | succ d => exact standardSphereH1_isZero d |
| 213 | | succ n => |
| 214 | exact (ih (n + 1) (Nat.succ_ne_zero n) (by omega)).of_iso |
| 215 | (standardSphereHomologyShift d n) |
| 216 | |
| 217 | /-- The linear form of the top-degree homology calculation. -/ |
| 218 | def standardSphereTopHomologyEquiv (d : ℕ) : |
| 219 | standardSphereHomology (d + 1) (d + 1) ≃ₗ[ℤ] ℤ := |
| 220 | (standardSphereTopHomologyIso d).toLinearEquiv |
| 221 | |
| 222 | /-- The top group has rank one over the integers. -/ |
| 223 | theorem standardSphereTopHomology_finrank (d : ℕ) : |
| 224 | Module.finrank ℤ (standardSphereHomology (d + 1) (d + 1)) = 1 := by |
| 225 | simpa using (standardSphereTopHomologyEquiv d).finrank_eq |
| 226 | |
| 227 | /-- A generator fixed by the circle normalization and the specified |
| 228 | inductive connecting isomorphisms. No claim of compatibility with a |
| 229 | separately defined geometric orientation is made here. -/ |
| 230 | def standardSphereGenerator (d : ℕ) : standardSphereHomology (d + 1) (d + 1) := |
| 231 | (standardSphereTopHomologyEquiv d).symm 1 |
| 232 | |
| 233 | @[simp] |
| 234 | theorem standardSphereGenerator_normalization (d : ℕ) : |
| 235 | standardSphereTopHomologyEquiv d (standardSphereGenerator d) = 1 := |
| 236 | (standardSphereTopHomologyEquiv d).apply_symm_apply 1 |
| 237 | |
| 238 | theorem standardSphereGenerator_ne_zero (d : ℕ) : standardSphereGenerator d ≠ 0 := by |
| 239 | intro h |
| 240 | have hn := standardSphereGenerator_normalization d |
| 241 | rw [h, map_zero] at hn |
| 242 | exact zero_ne_one hn |
| 243 | |
| 244 | /-- Every top-degree class is a unique integer multiple of the chosen |
| 245 | generator. -/ |
| 246 | theorem standardSphereGenerator_generates (d : ℕ) |
| 247 | (x : standardSphereHomology (d + 1) (d + 1)) : |
| 248 | ∃! n : ℤ, n • standardSphereGenerator d = x := by |
| 249 | have hnorm (n : ℤ) : |
| 250 | standardSphereTopHomologyEquiv d (n • standardSphereGenerator d) = n := by |
| 251 | calc |
| 252 | standardSphereTopHomologyEquiv d (n • standardSphereGenerator d) = |
| 253 | n • standardSphereTopHomologyEquiv d (standardSphereGenerator d) := |
| 254 | map_zsmul (standardSphereTopHomologyEquiv d).toLinearMap _ _ |
| 255 | _ = n := by rw [standardSphereGenerator_normalization]; simp |
| 256 | refine ⟨standardSphereTopHomologyEquiv d x, ?_, ?_⟩ |
| 257 | · apply (standardSphereTopHomologyEquiv d).injective |
| 258 | exact hnorm _ |
| 259 | · intro n hn |
| 260 | rw [← hnorm n, hn] |
| 261 | |
| 262 | end |
| 263 | |
| 264 | end OAI.AlgebraicGeometry.CycleClass.Geometric.SphereHomologyInduction.Cycles |