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 Paul Lezeau and 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.Singular.SubdivisionBarycentricOuterFaces |
| 18 | |
| 19 | /-! # Subdivision Barycentric Homotopy -/ |
| 20 | |
| 21 | namespace OAI.AlgebraicTopology.Singular.SubdivisionBarycentricHomotopy |
| 22 | |
| 23 | noncomputable section |
| 24 | |
| 25 | /-! |
| 26 | |
| 27 | # The prism identity for barycentric subdivision |
| 28 | |
| 29 | The composite of barycentric subdivision with the last-vertex map is expected to be chain |
| 30 | homotopic to the identity. Since simplicial chains are freely generated by simplices, the |
| 31 | remaining content is one coherent prism chain on each standard simplex. This file isolates that |
| 32 | exact acyclic-model identity and constructs its natural degreewise operators on every simplicial |
| 33 | set. |
| 34 | -/ |
| 35 | |
| 36 | open _root_.CategoryTheory _root_.CategoryTheory.Limits PartialOrder Simplicial |
| 37 | |
| 38 | /-- The universal top-dimensional simplex of `Δ[n]`. -/ |
| 39 | noncomputable def standardSimplexTopSimplex (n : ℕ) : |
| 40 | (Δ[n] : SSet.{0}).obj (Opposite.op (SimplexCategory.mk n)) := |
| 41 | SSet.stdSimplex.objEquiv.symm (𝟙 (SimplexCategory.mk n)) |
| 42 | |
| 43 | /-- On the universal simplex, subdivision followed by last vertex minus the identity. -/ |
| 44 | noncomputable def standardBarycentricLastVertexDiscrepancy (n : ℕ) : |
| 45 | AddCommGrpCat.of ℤ ⟶ |
| 46 | ((Δ[n] : SSet.{0}).chainComplex (AddCommGrpCat.of ℤ)).X n := |
| 47 | SubdivisionBarycentricAllDegrees.barycentricSubdivisionSimplexChain (Δ[n] : SSet.{0}) n |
| 48 | (standardSimplexTopSimplex n) ≫ |
| 49 | (SubdivisionBasic.subdivisionLastVertexChainMap (Δ[n] : SSet.{0})).f n - |
| 50 | (Δ[n] : SSet.{0}).ιChainComplex (standardSimplexTopSimplex n) |
| 51 | |
| 52 | @[simp] |
| 53 | theorem yonedaEquiv_symm_apply_standardSimplexTopSimplex |
| 54 | {X : SSet.{0}} (n : ℕ) |
| 55 | (x : X.obj (Opposite.op (SimplexCategory.mk n))) : |
| 56 | (SSet.yonedaEquiv.symm x).app _ (standardSimplexTopSimplex n) = x := by |
| 57 | change X.map (𝟙 (Opposite.op (SimplexCategory.mk n))) x = x |
| 58 | simp |
| 59 | |
| 60 | /-- The discrepancy on an arbitrary simplex is the transport of the universal discrepancy. -/ |
| 61 | theorem standardBarycentricLastVertexDiscrepancy_transport |
| 62 | (X : SSet.{0}) (n : ℕ) |
| 63 | (x : X.obj (Opposite.op (SimplexCategory.mk n))) : |
| 64 | standardBarycentricLastVertexDiscrepancy n ≫ |
| 65 | (SSet.chainComplexMap (SSet.yonedaEquiv.symm x) |
| 66 | (AddCommGrpCat.of ℤ)).f n = |
| 67 | SubdivisionBarycentricAllDegrees.barycentricSubdivisionSimplexChain X n x ≫ |
| 68 | (SubdivisionBasic.subdivisionLastVertexChainMap X).f n - |
| 69 | X.ιChainComplex x := by |
| 70 | rw [standardBarycentricLastVertexDiscrepancy, Preadditive.sub_comp, Category.assoc] |
| 71 | have hlast := congrArg (fun k ↦ k.f n) |
| 72 | (SubdivisionBasic.subdivisionLastVertexChainMap_naturality (SSet.yonedaEquiv.symm x)) |
| 73 | change (SSet.chainComplexMap (SSet.sd.map (SSet.yonedaEquiv.symm x)) |
| 74 | (AddCommGrpCat.of ℤ)).f n ≫ (SubdivisionBasic.subdivisionLastVertexChainMap X).f n = |
| 75 | (SubdivisionBasic.subdivisionLastVertexChainMap (Δ[n] : SSet.{0})).f n ≫ |
| 76 | (SSet.chainComplexMap (SSet.yonedaEquiv.symm x) |
| 77 | (AddCommGrpCat.of ℤ)).f n at hlast |
| 78 | rw [← hlast, ← Category.assoc, ← SubdivisionBarycentricAllDegrees.barycentricSubdivisionSimplexChain_naturality, |
| 79 | SSet.ι_chainComplexMap_f] |
| 80 | change SubdivisionBarycentricAllDegrees.barycentricSubdivisionSimplexChain X n |
| 81 | ((SSet.yonedaEquiv.symm x).app _ (standardSimplexTopSimplex n)) ≫ |
| 82 | (SubdivisionBasic.subdivisionLastVertexChainMap X).f n - |
| 83 | X.ιChainComplex |
| 84 | ((SSet.yonedaEquiv.symm x).app _ (standardSimplexTopSimplex n)) = _ |
| 85 | rw [yonedaEquiv_symm_apply_standardSimplexTopSimplex] |
| 86 | |
| 87 | /-- The face contribution made by lower-dimensional prism chains. -/ |
| 88 | noncomputable def standardPrismFaceChain |
| 89 | (prism : ∀ n : ℕ, AddCommGrpCat.of ℤ ⟶ |
| 90 | ((Δ[n] : SSet.{0}).chainComplex (AddCommGrpCat.of ℤ)).X (n + 1)) |
| 91 | (m : ℕ) : |
| 92 | AddCommGrpCat.of ℤ ⟶ |
| 93 | ((Δ[m] : SSet.{0}).chainComplex (AddCommGrpCat.of ℤ)).X m := |
| 94 | match m with |
| 95 | | 0 => 0 |
| 96 | | n + 1 => |
| 97 | ∑ i : Fin (n + 2), (-1 : ℤ) ^ i.val • |
| 98 | (prism n ≫ |
| 99 | (SSet.chainComplexMap |
| 100 | (SSet.stdSimplex.map (SimplexCategory.δ i)) |
| 101 | (AddCommGrpCat.of ℤ)).f (n + 1)) |
| 102 | |
| 103 | /-- The smallest remaining acyclic-model datum. Its equation is the universal-simplex |
| 104 | prism identity: discrepancy equals the prism boundary plus the transported prisms of all faces. -/ |
| 105 | structure BarycentricLastVertexPrismData where |
| 106 | /-- The universal degree-raising prism chain on each standard simplex. -/ |
| 107 | prism : ∀ n : ℕ, AddCommGrpCat.of ℤ ⟶ |
| 108 | ((Δ[n] : SSet.{0}).chainComplex (AddCommGrpCat.of ℤ)).X (n + 1) |
| 109 | /-- Its boundary is the subdivision-last-vertex discrepancy minus the transported face prisms. -/ |
| 110 | boundary : ∀ n : ℕ, |
| 111 | standardBarycentricLastVertexDiscrepancy n = |
| 112 | prism n ≫ |
| 113 | ((Δ[n] : SSet.{0}).chainComplex |
| 114 | (AddCommGrpCat.of ℤ)).d (n + 1) n + |
| 115 | standardPrismFaceChain prism n |
| 116 | |
| 117 | /-- Transport a universal prism chain along the simplex represented by `x`. -/ |
| 118 | noncomputable def barycentricLastVertexPrismSimplexChain |
| 119 | (P : BarycentricLastVertexPrismData) (X : SSet.{0}) (n : ℕ) |
| 120 | (x : X.obj (Opposite.op (SimplexCategory.mk n))) : |
| 121 | AddCommGrpCat.of ℤ ⟶ |
| 122 | (X.chainComplex (AddCommGrpCat.of ℤ)).X (n + 1) := |
| 123 | P.prism n ≫ |
| 124 | (SSet.chainComplexMap (SSet.yonedaEquiv.symm x) |
| 125 | (AddCommGrpCat.of ℤ)).f (n + 1) |
| 126 | |
| 127 | /-- The degree-raising prism operator on the free integral simplicial chains of `X`. -/ |
| 128 | noncomputable def barycentricLastVertexPrismComponent |
| 129 | (P : BarycentricLastVertexPrismData) (X : SSet.{0}) (n : ℕ) : |
| 130 | (X.chainComplex (AddCommGrpCat.of ℤ)).X n ⟶ |
| 131 | (X.chainComplex (AddCommGrpCat.of ℤ)).X (n + 1) := |
| 132 | Sigma.desc (barycentricLastVertexPrismSimplexChain P X n) |
| 133 | |
| 134 | @[reassoc (attr := simp)] |
| 135 | theorem iota_barycentricLastVertexPrismComponent |
| 136 | (P : BarycentricLastVertexPrismData) (X : SSet.{0}) (n : ℕ) |
| 137 | (x : X.obj (Opposite.op (SimplexCategory.mk n))) : |
| 138 | X.ιChainComplex x ≫ barycentricLastVertexPrismComponent P X n = |
| 139 | barycentricLastVertexPrismSimplexChain P X n x := by |
| 140 | apply Sigma.ι_comp_desc |
| 141 | |
| 142 | /-- Transporting the universal face-prism sum is the source differential followed by the |
| 143 | lower-dimensional prism component. -/ |
| 144 | theorem standardPrismFaceChain_transport_succ |
| 145 | (P : BarycentricLastVertexPrismData) (X : SSet.{0}) (n : ℕ) |
| 146 | (x : X.obj (Opposite.op (SimplexCategory.mk (n + 1)))) : |
| 147 | standardPrismFaceChain P.prism (n + 1) ≫ |
| 148 | (SSet.chainComplexMap (SSet.yonedaEquiv.symm x) |
| 149 | (AddCommGrpCat.of ℤ)).f (n + 1) = |
| 150 | X.ιChainComplex x ≫ |
| 151 | (X.chainComplex (AddCommGrpCat.of ℤ)).d (n + 1) n ≫ |
| 152 | barycentricLastVertexPrismComponent P X n := by |
| 153 | rw [standardPrismFaceChain, Preadditive.sum_comp] |
| 154 | simp only [Preadditive.zsmul_comp, Category.assoc] |
| 155 | rw [← Category.assoc, SSet.ιChainComplex_d, Preadditive.sum_comp] |
| 156 | simp only [Preadditive.zsmul_comp, iota_barycentricLastVertexPrismComponent, |
| 157 | barycentricLastVertexPrismSimplexChain] |
| 158 | apply Finset.sum_congr rfl |
| 159 | intro i hi |
| 160 | apply congrArg (fun k ↦ ((-1 : ℤ) ^ i.val) • k) |
| 161 | let F := (SSet.chainComplexFunctor AddCommGrpCat).obj (AddCommGrpCat.of ℤ) |
| 162 | have hδ := SSet.stdSimplex.δ_comp_yonedaEquiv_symm x i |
| 163 | have hmap := F.congr_map hδ |
| 164 | rw [Functor.map_comp] at hmap |
| 165 | have hn := congrArg (fun k ↦ k.f (n + 1)) hmap |
| 166 | change (SSet.chainComplexMap |
| 167 | (SSet.stdSimplex.map (SimplexCategory.δ i)) |
| 168 | (AddCommGrpCat.of ℤ)).f (n + 1) ≫ |
| 169 | (SSet.chainComplexMap (SSet.yonedaEquiv.symm x) |
| 170 | (AddCommGrpCat.of ℤ)).f (n + 1) = |
| 171 | (SSet.chainComplexMap |
| 172 | (SSet.yonedaEquiv.symm (X.δ i x)) |
| 173 | (AddCommGrpCat.of ℤ)).f (n + 1) at hn |
| 174 | calc |
| 175 | _ = P.prism n ≫ |
| 176 | ((SSet.chainComplexMap |
| 177 | (SSet.stdSimplex.map (SimplexCategory.δ i)) |
| 178 | (AddCommGrpCat.of ℤ)).f (n + 1) ≫ |
| 179 | (SSet.chainComplexMap (SSet.yonedaEquiv.symm x) |
| 180 | (AddCommGrpCat.of ℤ)).f (n + 1)) := Category.assoc _ _ _ |
| 181 | _ = _ := congrArg (fun k ↦ P.prism n ≫ k) hn |
| 182 | |
| 183 | /-- The universal prism equation transported to a positive-dimensional simplex. -/ |
| 184 | theorem barycentricLastVertexPrismSimplex_boundary_succ |
| 185 | (P : BarycentricLastVertexPrismData) (X : SSet.{0}) (n : ℕ) |
| 186 | (x : X.obj (Opposite.op (SimplexCategory.mk (n + 1)))) : |
| 187 | SubdivisionBarycentricAllDegrees.barycentricSubdivisionSimplexChain X (n + 1) x ≫ |
| 188 | (SubdivisionBasic.subdivisionLastVertexChainMap X).f (n + 1) - |
| 189 | X.ιChainComplex x = |
| 190 | barycentricLastVertexPrismSimplexChain P X (n + 1) x ≫ |
| 191 | (X.chainComplex (AddCommGrpCat.of ℤ)).d (n + 2) (n + 1) + |
| 192 | X.ιChainComplex x ≫ |
| 193 | (X.chainComplex (AddCommGrpCat.of ℤ)).d (n + 1) n ≫ |
| 194 | barycentricLastVertexPrismComponent P X n := by |
| 195 | rw [← standardBarycentricLastVertexDiscrepancy_transport, P.boundary, Preadditive.add_comp] |
| 196 | apply congrArg₂ (· + ·) |
| 197 | · unfold barycentricLastVertexPrismSimplexChain |
| 198 | rw [Category.assoc, Category.assoc] |
| 199 | congr 1 |
| 200 | exact ((SSet.chainComplexMap (SSet.yonedaEquiv.symm x) |
| 201 | (AddCommGrpCat.of ℤ)).comm (n + 2) (n + 1)).symm |
| 202 | · exact standardPrismFaceChain_transport_succ P X n x |
| 203 | |
| 204 | /-- The degree-zero universal prism equation has no lower-dimensional face term. -/ |
| 205 | theorem barycentricLastVertexPrismSimplex_boundary_zero |
| 206 | (P : BarycentricLastVertexPrismData) (X : SSet.{0}) |
| 207 | (x : X.obj (Opposite.op (SimplexCategory.mk 0))) : |
| 208 | SubdivisionBarycentricAllDegrees.barycentricSubdivisionSimplexChain X 0 x ≫ |
| 209 | (SubdivisionBasic.subdivisionLastVertexChainMap X).f 0 - |
| 210 | X.ιChainComplex x = |
| 211 | barycentricLastVertexPrismSimplexChain P X 0 x ≫ |
| 212 | (X.chainComplex (AddCommGrpCat.of ℤ)).d 1 0 := by |
| 213 | rw [← standardBarycentricLastVertexDiscrepancy_transport, P.boundary, standardPrismFaceChain, |
| 214 | add_zero] |
| 215 | unfold barycentricLastVertexPrismSimplexChain |
| 216 | rw [Category.assoc, Category.assoc] |
| 217 | congr 1 |
| 218 | exact ((SSet.chainComplexMap (SSet.yonedaEquiv.symm x) |
| 219 | (AddCommGrpCat.of ℤ)).comm 1 0).symm |
| 220 | |
| 221 | /-- The transported prism operators satisfy the chain-homotopy equation in positive degrees. -/ |
| 222 | theorem barycentricLastVertexPrismComponent_identity_succ |
| 223 | (P : BarycentricLastVertexPrismData) (X : SSet.{0}) (n : ℕ) : |
| 224 | (SubdivisionBarycentricOuterFaces.barycentricSubdivisionChainMapCanonical X ≫ |
| 225 | SubdivisionBasic.subdivisionLastVertexChainMap X).f (n + 1) = |
| 226 | (X.chainComplex (AddCommGrpCat.of ℤ)).d (n + 1) n ≫ |
| 227 | barycentricLastVertexPrismComponent P X n + |
| 228 | barycentricLastVertexPrismComponent P X (n + 1) ≫ |
| 229 | (X.chainComplex (AddCommGrpCat.of ℤ)).d (n + 2) (n + 1) + |
| 230 | 𝟙 ((X.chainComplex (AddCommGrpCat.of ℤ)).X (n + 1)) := by |
| 231 | apply X.chainComplex_hom_ext |
| 232 | intro x |
| 233 | change X.ιChainComplex x ≫ |
| 234 | (SubdivisionBarycentricAllDegrees.barycentricSubdivisionComponent X (n + 1) ≫ |
| 235 | (SubdivisionBasic.subdivisionLastVertexChainMap X).f (n + 1)) = _ |
| 236 | rw [← Category.assoc, SubdivisionBarycentricAllDegrees.iota_barycentricSubdivisionComponent] |
| 237 | simp only [Preadditive.comp_add, Category.comp_id] |
| 238 | simp only [← Category.assoc, iota_barycentricLastVertexPrismComponent] |
| 239 | rw [← sub_eq_iff_eq_add] |
| 240 | simpa only [Category.assoc, add_comm] using |
| 241 | barycentricLastVertexPrismSimplex_boundary_succ P X n x |
| 242 | |
| 243 | /-- The transported prism operator satisfies the chain-homotopy equation in degree zero. -/ |
| 244 | theorem barycentricLastVertexPrismComponent_identity_zero |
| 245 | (P : BarycentricLastVertexPrismData) (X : SSet.{0}) : |
| 246 | (SubdivisionBarycentricOuterFaces.barycentricSubdivisionChainMapCanonical X ≫ |
| 247 | SubdivisionBasic.subdivisionLastVertexChainMap X).f 0 = |
| 248 | barycentricLastVertexPrismComponent P X 0 ≫ |
| 249 | (X.chainComplex (AddCommGrpCat.of ℤ)).d 1 0 + |
| 250 | 𝟙 ((X.chainComplex (AddCommGrpCat.of ℤ)).X 0) := by |
| 251 | apply X.chainComplex_hom_ext |
| 252 | intro x |
| 253 | change X.ιChainComplex x ≫ |
| 254 | (SubdivisionBarycentricAllDegrees.barycentricSubdivisionComponent X 0 ≫ |
| 255 | (SubdivisionBasic.subdivisionLastVertexChainMap X).f 0) = _ |
| 256 | rw [← Category.assoc, SubdivisionBarycentricAllDegrees.iota_barycentricSubdivisionComponent] |
| 257 | simp only [Preadditive.comp_add, Category.comp_id] |
| 258 | simp only [← Category.assoc, iota_barycentricLastVertexPrismComponent] |
| 259 | rw [← sub_eq_iff_eq_add] |
| 260 | exact barycentricLastVertexPrismSimplex_boundary_zero P X x |
| 261 | |
| 262 | /-- The homotopy family, supported exactly from degree `i` to degree `i+1`. -/ |
| 263 | noncomputable def barycentricLastVertexPrismHom |
| 264 | (P : BarycentricLastVertexPrismData) (X : SSet.{0}) |
| 265 | (i j : ℕ) : |
| 266 | (X.chainComplex (AddCommGrpCat.of ℤ)).X i ⟶ |
| 267 | (X.chainComplex (AddCommGrpCat.of ℤ)).X j := |
| 268 | if h : j = i + 1 then by |
| 269 | subst j |
| 270 | exact barycentricLastVertexPrismComponent P X i |
| 271 | else 0 |
| 272 | |
| 273 | @[simp] |
| 274 | theorem barycentricLastVertexPrismHom_succ |
| 275 | (P : BarycentricLastVertexPrismData) (X : SSet.{0}) (i : ℕ) : |
| 276 | barycentricLastVertexPrismHom P X i (i + 1) = |
| 277 | barycentricLastVertexPrismComponent P X i := by |
| 278 | simp [barycentricLastVertexPrismHom] |
| 279 | |
| 280 | /-- A coherent family of universal simplex prisms produces the desired chain homotopy. -/ |
| 281 | noncomputable def barycentricSubdivisionLastVertexHomotopy |
| 282 | (P : BarycentricLastVertexPrismData) (X : SSet.{0}) : |
| 283 | Homotopy |
| 284 | (SubdivisionBarycentricOuterFaces.barycentricSubdivisionChainMapCanonical X ≫ |
| 285 | SubdivisionBasic.subdivisionLastVertexChainMap X) |
| 286 | (𝟙 (X.chainComplex (AddCommGrpCat.of ℤ))) where |
| 287 | hom := barycentricLastVertexPrismHom P X |
| 288 | zero i j hij := by |
| 289 | rw [barycentricLastVertexPrismHom] |
| 290 | split_ifs with h |
| 291 | · exfalso |
| 292 | apply hij |
| 293 | rw [ComplexShape.down_Rel] |
| 294 | exact h.symm |
| 295 | · rfl |
| 296 | comm i := by |
| 297 | cases i with |
| 298 | | zero => |
| 299 | rw [Homotopy.dNext_zero_chainComplex, |
| 300 | Homotopy.prevD_chainComplex] |
| 301 | simp only [barycentricLastVertexPrismHom_succ, zero_add, |
| 302 | HomologicalComplex.id_f] |
| 303 | exact barycentricLastVertexPrismComponent_identity_zero P X |
| 304 | | succ n => |
| 305 | rw [Homotopy.dNext_succ_chainComplex, |
| 306 | Homotopy.prevD_chainComplex] |
| 307 | simp only [barycentricLastVertexPrismHom_succ, |
| 308 | HomologicalComplex.id_f] |
| 309 | exact barycentricLastVertexPrismComponent_identity_succ P X n |
| 310 | |
| 311 | end |
| 312 | |
| 313 | end OAI.AlgebraicTopology.Singular.SubdivisionBarycentricHomotopy |