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 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | https://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | This file has been modified. |
| 16 | -/ |
| 17 | import OAI.AlgebraicTopology.LocalHomology.ComplexClass |
| 18 | import Mathlib.AlgebraicTopology.SingularHomology.HomologyZero |
| 19 | import Mathlib.Geometry.Convex.ConvexSpace.Barycenter |
| 20 | |
| 21 | /-! # Fundamental Class Generator -/ |
| 22 | |
| 23 | namespace OAI.AlgebraicTopology.LocalHomology.FundamentalClassGenerator.Singular |
| 24 | |
| 25 | noncomputable section |
| 26 | |
| 27 | open _root_.AlgebraicTopology |
| 28 | |
| 29 | /-! |
| 30 | # Generator properties of the standard complex local class |
| 31 | |
| 32 | The ordered real and imaginary coordinate homeomorphism identifies the standard complex local |
| 33 | class with the explicit real local class. This file records that this identification preserves |
| 34 | nonvanishing, linear independence, and generation of local homology. |
| 35 | |
| 36 | These results isolate the remaining topological input for local purity: it suffices to prove that |
| 37 | the explicit real affine cycle generates the corresponding real relative homology group. |
| 38 | -/ |
| 39 | |
| 40 | open _root_.CategoryTheory Limits |
| 41 | open scoped Simplicial |
| 42 | |
| 43 | def standardComplexLocalClassMul (p : ℕ) : |
| 44 | Singular.Cohomology.RelativeHomology ℚ (FundamentalClass.Singular.puncturedPair ℂ p) (p * 2) := |
| 45 | (ComplexClass.Singular.standardComplexRealRelativeHomologyIso ℚ p).inv.hom (FundamentalClass.Singular.standardLocalClass ℚ (p * 2)) |
| 46 | |
| 47 | /-- Transport a relative homology class along an equality of degrees. -/ |
| 48 | def relativeHomologyDegreeCast {X : TopPair} {i j : ℕ} (h : i = j) |
| 49 | (z : Singular.Cohomology.RelativeHomology ℚ X i) : Singular.Cohomology.RelativeHomology ℚ X j := |
| 50 | h ▸ z |
| 51 | |
| 52 | lemma relativeHomologyDegreeCast_ne_zero_iff {X : TopPair} {i j : ℕ} (h : i = j) |
| 53 | (z : Singular.Cohomology.RelativeHomology ℚ X i) : |
| 54 | relativeHomologyDegreeCast h z ≠ 0 ↔ z ≠ 0 := by aesop |
| 55 | |
| 56 | lemma span_relativeHomologyDegreeCast_eq_top_iff {X : TopPair} {i j : ℕ} (h : i = j) |
| 57 | (z : Singular.Cohomology.RelativeHomology ℚ X i) : |
| 58 | Submodule.span ℚ {relativeHomologyDegreeCast h z} = ⊤ ↔ |
| 59 | Submodule.span ℚ {z} = ⊤ := by aesop |
| 60 | |
| 61 | lemma standardComplexRealRelativeHomologyIso_hom_standardComplexLocalClassMul (p : ℕ) : |
| 62 | (ComplexClass.Singular.standardComplexRealRelativeHomologyIso ℚ p).hom.hom |
| 63 | (standardComplexLocalClassMul p) = |
| 64 | FundamentalClass.Singular.standardLocalClass ℚ (p * 2) := by |
| 65 | exact (ComplexClass.Singular.standardComplexRealRelativeHomologyIso ℚ p).inv_hom_id_apply |
| 66 | (FundamentalClass.Singular.standardLocalClass ℚ (p * 2)) |
| 67 | |
| 68 | lemma standardComplexLocalClassMul_ne_zero_iff (p : ℕ) : |
| 69 | standardComplexLocalClassMul p ≠ 0 ↔ FundamentalClass.Singular.standardLocalClass ℚ (p * 2) ≠ 0 := by |
| 70 | exact (ComplexClass.Singular.standardComplexRealRelativeHomologyIso ℚ p).symm.toLinearEquiv.map_ne_zero_iff |
| 71 | |
| 72 | lemma standardComplexLocalClass_ne_zero_iff (p : ℕ) : |
| 73 | ComplexClass.Singular.standardComplexLocalClass ℚ p ≠ 0 ↔ FundamentalClass.Singular.standardLocalClass ℚ (p * 2) ≠ 0 := by |
| 74 | change relativeHomologyDegreeCast (Nat.mul_comm p 2) |
| 75 | (standardComplexLocalClassMul p) ≠ 0 ↔ _ |
| 76 | rw [relativeHomologyDegreeCast_ne_zero_iff, |
| 77 | standardComplexLocalClassMul_ne_zero_iff] |
| 78 | |
| 79 | lemma span_standardComplexLocalClassMul_eq_top_iff (p : ℕ) : |
| 80 | Submodule.span ℚ {standardComplexLocalClassMul p} = ⊤ ↔ |
| 81 | Submodule.span ℚ {FundamentalClass.Singular.standardLocalClass ℚ (p * 2)} = ⊤ := by |
| 82 | let e := (ComplexClass.Singular.standardComplexRealRelativeHomologyIso ℚ p).toLinearEquiv |
| 83 | have he : e (standardComplexLocalClassMul p) = FundamentalClass.Singular.standardLocalClass ℚ (p * 2) := |
| 84 | standardComplexRealRelativeHomologyIso_hom_standardComplexLocalClassMul p |
| 85 | have hmap : |
| 86 | (Submodule.span ℚ {standardComplexLocalClassMul p}).map e.toLinearMap = |
| 87 | Submodule.span ℚ {FundamentalClass.Singular.standardLocalClass ℚ (p * 2)} := by |
| 88 | rw [Submodule.map_span] |
| 89 | simp [he] |
| 90 | have etop : (⊤ : Submodule ℚ _).map e.toLinearMap = ⊤ := by |
| 91 | rw [Submodule.map_top] |
| 92 | exact LinearMap.range_eq_top.mpr e.surjective |
| 93 | constructor |
| 94 | · intro h |
| 95 | rw [← hmap, h, etop] |
| 96 | · intro h |
| 97 | apply Submodule.map_injective_of_injective e.injective |
| 98 | rw [hmap, h, etop] |
| 99 | |
| 100 | lemma span_standardComplexLocalClass_eq_top_iff (p : ℕ) : |
| 101 | Submodule.span ℚ {ComplexClass.Singular.standardComplexLocalClass ℚ p} = ⊤ ↔ |
| 102 | Submodule.span ℚ {FundamentalClass.Singular.standardLocalClass ℚ (p * 2)} = ⊤ := by |
| 103 | change Submodule.span ℚ |
| 104 | {relativeHomologyDegreeCast (Nat.mul_comm p 2) (standardComplexLocalClassMul p)} = ⊤ ↔ _ |
| 105 | rw [span_relativeHomologyDegreeCast_eq_top_iff, |
| 106 | span_standardComplexLocalClassMul_eq_top_iff] |
| 107 | |
| 108 | lemma isEmpty_puncturedPair_zero_simplices (n : ℕ) : |
| 109 | IsEmpty ((TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ 0).snd) _⦋n⦌) := by |
| 110 | constructor |
| 111 | intro σ |
| 112 | let f := ((FundamentalClass.Singular.puncturedPair ℝ 0).snd.toSSetObjEquiv _ ) σ |
| 113 | let y := f Convexity.StdSimplex.barycenter |
| 114 | apply y.2 |
| 115 | funext j |
| 116 | exact Fin.elim0 j |
| 117 | |
| 118 | lemma standardPairChainMap_zero : |
| 119 | ((Singular.Cohomology.chainPairFunctor ℚ).obj (FundamentalClass.Singular.puncturedPair ℝ 0)).hom = 0 := by |
| 120 | apply HomologicalComplex.hom_ext |
| 121 | intro n |
| 122 | apply SSet.chainComplex_hom_ext |
| 123 | intro σ |
| 124 | exact (isEmpty_puncturedPair_zero_simplices n).false σ |>.elim |
| 125 | |
| 126 | noncomputable instance standardLocalProjectionZeroIsIso : |
| 127 | IsIso (Singular.Cohomology.relativeChainProjection ℚ (FundamentalClass.Singular.puncturedPair ℝ 0)) := |
| 128 | cokernel.π_of_zero standardPairChainMap_zero |
| 129 | |
| 130 | /-- The relative-chain projection with its ambient source exposed through the pair functor. -/ |
| 131 | def standardRelativeChainProjectionZero : |
| 132 | ((Singular.Cohomology.chainPairFunctor ℚ).obj (FundamentalClass.Singular.puncturedPair ℝ 0)).right ⟶ |
| 133 | FundamentalClass.Singular.standardLocalRelativeChainComplex ℚ 0 := |
| 134 | Singular.Cohomology.relativeChainProjection ℚ (FundamentalClass.Singular.puncturedPair ℝ 0) |
| 135 | |
| 136 | noncomputable instance standardRelativeChainProjectionZeroIsIso : |
| 137 | IsIso standardRelativeChainProjectionZero := |
| 138 | cokernel.π_of_zero standardPairChainMap_zero |
| 139 | |
| 140 | def standardRelativeHomologyProjectionZeroIso : |
| 141 | ((Singular.Cohomology.chainPairFunctor ℚ).obj (FundamentalClass.Singular.puncturedPair ℝ 0)).right.homology 0 ≅ |
| 142 | Singular.Cohomology.RelativeHomology ℚ (FundamentalClass.Singular.puncturedPair ℝ 0) 0 := |
| 143 | HomologicalComplex.homologyMapIso |
| 144 | (asIso standardRelativeChainProjectionZero) 0 |
| 145 | |
| 146 | /-- The zero-dimensional standard relative local homology group is canonically one-dimensional. -/ |
| 147 | def standardLocalRelativeHomologyZeroIso : |
| 148 | Singular.Cohomology.RelativeHomology ℚ (FundamentalClass.Singular.puncturedPair ℝ 0) 0 ≅ ModuleCat.of ℚ ℚ := |
| 149 | letI (j : Fin 0) : TotallyDisconnectedSpace ℝ := Fin.elim0 j |
| 150 | letI : TotallyDisconnectedSpace (Fin 0 → ℝ) := inferInstance |
| 151 | standardRelativeHomologyProjectionZeroIso.symm ≪≫ |
| 152 | singularHomologyFunctorZeroOfTotallyDisconnectedSpace |
| 153 | (ModuleCat (R := ℚ)) (ModuleCat.of ℚ ℚ) |
| 154 | (TopCat.of (Fin 0 → ℝ)) ≪≫ |
| 155 | CategoryTheory.Limits.coproductUniqueIso |
| 156 | (fun _ : Fin 0 → ℝ ↦ ModuleCat.of ℚ ℚ) |
| 157 | |
| 158 | /-- The ambient zero-cycle represented by the unique singular point of `ℝ⁰`. -/ |
| 159 | def standardAmbientCycleZero : |
| 160 | ModuleCat.of ℚ ℚ ⟶ |
| 161 | ((Singular.Cohomology.chainPairFunctor ℚ).obj (FundamentalClass.Singular.puncturedPair ℝ 0)).right.cycles 0 := |
| 162 | ((Singular.Cohomology.chainPairFunctor ℚ).obj (FundamentalClass.Singular.puncturedPair ℝ 0)).right.liftCycles |
| 163 | (FundamentalClass.Singular.standardAmbientSimplexChain ℚ 0) 0 (by simp) (by |
| 164 | rw [((Singular.Cohomology.chainPairFunctor ℚ).obj (FundamentalClass.Singular.puncturedPair ℝ 0)).right.shape 0 0 (by simp)] |
| 165 | exact comp_zero) |
| 166 | |
| 167 | /-- The class of the unique singular point in the ambient homology of `ℝ⁰`. -/ |
| 168 | def standardAmbientClassZero : |
| 169 | ((Singular.Cohomology.chainPairFunctor ℚ).obj (FundamentalClass.Singular.puncturedPair ℝ 0)).right.homology 0 := |
| 170 | ((standardAmbientCycleZero ≫ |
| 171 | ((Singular.Cohomology.chainPairFunctor ℚ).obj (FundamentalClass.Singular.puncturedPair ℝ 0)).right.homologyπ 0).hom) 1 |
| 172 | |
| 173 | lemma standardAmbientCycleZero_projection : |
| 174 | standardAmbientCycleZero ≫ |
| 175 | HomologicalComplex.cyclesMap |
| 176 | standardRelativeChainProjectionZero 0 = |
| 177 | FundamentalClass.Singular.standardLocalCycle ℚ 0 := by |
| 178 | apply (cancel_mono ((FundamentalClass.Singular.standardLocalRelativeChainComplex ℚ 0).iCycles 0)).mp |
| 179 | rw [Category.assoc, HomologicalComplex.cyclesMap_i, FundamentalClassBoundary.Singular.standardLocalCycle_inclusion, |
| 180 | ← Category.assoc, standardAmbientCycleZero, HomologicalComplex.liftCycles_i] |
| 181 | rfl |
| 182 | |
| 183 | lemma standardAmbientClassZero_projection : |
| 184 | standardRelativeHomologyProjectionZeroIso.hom.hom |
| 185 | standardAmbientClassZero = |
| 186 | FundamentalClass.Singular.standardLocalClass ℚ 0 := by |
| 187 | have hmor : |
| 188 | standardAmbientCycleZero ≫ |
| 189 | ((Singular.Cohomology.chainPairFunctor ℚ).obj (FundamentalClass.Singular.puncturedPair ℝ 0)).right.homologyπ 0 ≫ |
| 190 | standardRelativeHomologyProjectionZeroIso.hom = |
| 191 | FundamentalClass.Singular.standardLocalCycle ℚ 0 ≫ (FundamentalClass.Singular.standardLocalRelativeChainComplex ℚ 0).homologyπ 0 := by |
| 192 | change standardAmbientCycleZero ≫ |
| 193 | ((Singular.Cohomology.chainPairFunctor ℚ).obj (FundamentalClass.Singular.puncturedPair ℝ 0)).right.homologyπ 0 ≫ |
| 194 | HomologicalComplex.homologyMap standardRelativeChainProjectionZero 0 = _ |
| 195 | rw [HomologicalComplex.homologyπ_naturality, ← Category.assoc, |
| 196 | standardAmbientCycleZero_projection] |
| 197 | exact ConcreteCategory.congr_hom hmor 1 |
| 198 | |
| 199 | /-- The ordinary `H₀` augmentation, with its source exposed through the pair functor. -/ |
| 200 | def standardAmbientHomologyZeroε : |
| 201 | ((Singular.Cohomology.chainPairFunctor ℚ).obj (FundamentalClass.Singular.puncturedPair ℝ 0)).right.homology 0 ⟶ |
| 202 | ModuleCat.of ℚ ℚ := |
| 203 | (FundamentalClass.Singular.puncturedPair ℝ 0).fst.singularHomology₀ε (ModuleCat.of ℚ ℚ) |
| 204 | |
| 205 | /-- The augmentation on zero-dimensional relative local homology. -/ |
| 206 | def standardLocalRelativeHomologyZeroε : |
| 207 | Singular.Cohomology.RelativeHomology ℚ (FundamentalClass.Singular.puncturedPair ℝ 0) 0 ⟶ ModuleCat.of ℚ ℚ := |
| 208 | standardRelativeHomologyProjectionZeroIso.inv ≫ |
| 209 | standardAmbientHomologyZeroε |
| 210 | |
| 211 | lemma standardAmbientClassZero_epsilon : |
| 212 | standardAmbientHomologyZeroε.hom |
| 213 | standardAmbientClassZero = 1 := by |
| 214 | have h := SSet.liftCycles_ιChainComplex_homologyπ_homology₀ε |
| 215 | (TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ 0).fst) (ModuleCat.of ℚ ℚ) |
| 216 | (FundamentalClass.Singular.standardSingularSimplex 0) |
| 217 | have hmor : standardAmbientCycleZero ≫ |
| 218 | ((Singular.Cohomology.chainPairFunctor ℚ).obj (FundamentalClass.Singular.puncturedPair ℝ 0)).right.homologyπ 0 ≫ |
| 219 | standardAmbientHomologyZeroε = 𝟙 (ModuleCat.of ℚ ℚ) := by |
| 220 | change |
| 221 | ((TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ 0).fst).chainComplex |
| 222 | (ModuleCat.of ℚ ℚ)).liftCycles |
| 223 | ((TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ 0).fst).ιChainComplex |
| 224 | (FundamentalClass.Singular.standardSingularSimplex 0)) 0 (by simp) (by simp) ≫ |
| 225 | ((TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ 0).fst).chainComplex |
| 226 | (ModuleCat.of ℚ ℚ)).homologyπ 0 ≫ |
| 227 | (TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ 0).fst).homology₀ε |
| 228 | (ModuleCat.of ℚ ℚ) = 𝟙 (ModuleCat.of ℚ ℚ) |
| 229 | exact h |
| 230 | exact ConcreteCategory.congr_hom hmor 1 |
| 231 | |
| 232 | lemma standardLocalClass_zero_epsilon : |
| 233 | standardLocalRelativeHomologyZeroε.hom (FundamentalClass.Singular.standardLocalClass ℚ 0) = 1 := by |
| 234 | rw [← standardAmbientClassZero_projection] |
| 235 | change standardAmbientHomologyZeroε.hom |
| 236 | (standardRelativeHomologyProjectionZeroIso.inv.hom |
| 237 | (standardRelativeHomologyProjectionZeroIso.hom.hom standardAmbientClassZero)) = 1 |
| 238 | rw [standardRelativeHomologyProjectionZeroIso.hom_inv_id_apply] |
| 239 | exact standardAmbientClassZero_epsilon |
| 240 | |
| 241 | lemma standardLocalClass_zero_ne_zero : FundamentalClass.Singular.standardLocalClass ℚ 0 ≠ 0 := by |
| 242 | intro h |
| 243 | have := standardLocalClass_zero_epsilon |
| 244 | rw [h, map_zero] at this |
| 245 | exact zero_ne_one this |
| 246 | |
| 247 | lemma span_standardLocalClass_zero_eq_top : |
| 248 | Submodule.span ℚ {FundamentalClass.Singular.standardLocalClass ℚ 0} = ⊤ := by |
| 249 | let e := standardLocalRelativeHomologyZeroIso.toLinearEquiv |
| 250 | have he : e (FundamentalClass.Singular.standardLocalClass ℚ 0) ≠ (0 : ℚ) := |
| 251 | e.map_ne_zero_iff.mpr standardLocalClass_zero_ne_zero |
| 252 | have hmap : |
| 253 | (Submodule.span ℚ {FundamentalClass.Singular.standardLocalClass ℚ 0}).map e.toLinearMap = |
| 254 | Submodule.span ℚ {e (FundamentalClass.Singular.standardLocalClass ℚ 0)} := by |
| 255 | rw [Submodule.map_span] |
| 256 | simp only [Set.image_singleton] |
| 257 | change Submodule.span ℚ {e (FundamentalClass.Singular.standardLocalClass ℚ 0)} = _ |
| 258 | rfl |
| 259 | have hone : Submodule.span ℚ {e (FundamentalClass.Singular.standardLocalClass ℚ 0)} = ⊤ := by |
| 260 | apply (Submodule.span_singleton_eq_top_iff ℚ (e (FundamentalClass.Singular.standardLocalClass ℚ 0))).mpr |
| 261 | intro q |
| 262 | exact ⟨q / e (FundamentalClass.Singular.standardLocalClass ℚ 0), by |
| 263 | simpa only [smul_eq_mul] using div_mul_cancel₀ q he⟩ |
| 264 | apply Submodule.map_injective_of_injective e.injective |
| 265 | rw [hmap, hone, Submodule.map_top] |
| 266 | exact (LinearMap.range_eq_top.mpr e.surjective).symm |
| 267 | |
| 268 | lemma span_standardComplexLocalClass_zero_eq_top : |
| 269 | Submodule.span ℚ {ComplexClass.Singular.standardComplexLocalClass ℚ 0} = ⊤ := by |
| 270 | have h := (span_standardComplexLocalClassMul_eq_top_iff 0).mpr |
| 271 | span_standardLocalClass_zero_eq_top |
| 272 | simpa [ComplexClass.Singular.standardComplexLocalClass, standardComplexLocalClassMul] using h |
| 273 | |
| 274 | end |
| 275 | |
| 276 | end OAI.AlgebraicTopology.LocalHomology.FundamentalClassGenerator.Singular |