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.Singular.SheafSubdivisionCochain |
| 18 | import Mathlib.Algebra.Category.ModuleCat.Projective |
| 19 | import Mathlib.Analysis.Normed.Group.Basic |
| 20 | import Mathlib.LinearAlgebra.Dual.Lemmas |
| 21 | import Mathlib.Topology.Algebra.InfiniteSum.Order |
| 22 | |
| 23 | /-! # Relative Cochain Cone -/ |
| 24 | |
| 25 | namespace OAI.AlgebraicTopology.Singular.RelativeCochainCone |
| 26 | |
| 27 | noncomputable section |
| 28 | |
| 29 | /-! |
| 30 | # Relative singular cohomology as a cochain mapping cone |
| 31 | |
| 32 | For a topological pair `A ⊆ X`, restriction of singular cochains is the algebraic dual of |
| 33 | the inclusion `C_*(A) ⟶ C_*(X)`. This file proves, without a finite-dimensionality |
| 34 | hypothesis, that the cohomology in degree `n - 1` of its mapping cone is `H^n(X, A)`, the |
| 35 | degree-`n` cohomology of the dual relative cochain complex. |
| 36 | |
| 37 | The proof dualizes the degreewise short exact sequence |
| 38 | `C_*(A) ⟶ C_*(X) ⟶ C_*(X, A)`, extends the resulting cochain complexes by zero to |
| 39 | integer degrees, and compares its rotated triangle with Mathlib's mapping-cone triangle. |
| 40 | -/ |
| 41 | |
| 42 | open _root_.CategoryTheory Limits |
| 43 | open _root_.CategoryTheory.Pretriangulated |
| 44 | |
| 45 | universe u |
| 46 | |
| 47 | variable (R : Type u) [CommRing R] |
| 48 | |
| 49 | set_option backward.isDefEq.respectTransparency false in |
| 50 | /-- Let `R` be a commutative ring and `(X, A)` a topological pair, with `A` embedded in `X`. This is |
| 51 | the sequence `C^*(X, A; R) → C^*(X; R) → C^*(A; R)` of nonnegative cochain complexes. The maps |
| 52 | include cochains vanishing on `A` and restrict cochains to `A`; their composite is zero. -/ |
| 53 | def relativeDualCochainShortComplexNat (X : TopPair.{u}) : |
| 54 | ShortComplex (CochainComplex (ModuleCat.{u} R) ℕ) := |
| 55 | ShortComplex.mk |
| 56 | (OAI.Algebra.Homology.LinearDual.HomologicalComplex.linearDualMap (Cohomology.relativeChainProjection R X)) |
| 57 | (OAI.Algebra.Homology.LinearDual.HomologicalComplex.linearDualMap ((Cohomology.chainPairFunctor R).obj X).hom) |
| 58 | (by |
| 59 | ext n φ |
| 60 | change Module.Dual R (((Cohomology.relativeChainFunctor R).obj X).X n) at φ |
| 61 | apply LinearMap.ext |
| 62 | intro x |
| 63 | change φ (((((Cohomology.chainPairFunctor R).obj X).hom ≫ |
| 64 | Cohomology.relativeChainProjection R X).f n).hom x) = 0 |
| 65 | rw [CohomologyTo.subspaceChainMap_relativeChainProjection] |
| 66 | exact map_zero φ) |
| 67 | |
| 68 | /-- Let `R` be a commutative ring and `(X, A)` a topological pair, with `A` embedded in `X`. This is |
| 69 | the sequence `C^*(X, A; R) → C^*(X; R) → C^*(A; R)`, with all complexes extended by zero to |
| 70 | negative integer degrees. Its maps are inclusion of cochains vanishing on `A` and restriction to |
| 71 | `A`. -/ |
| 72 | def relativeDualCochainShortComplexInt (X : TopPair.{u}) : |
| 73 | ShortComplex (CochainComplex (ModuleCat.{u} R) ℤ) := |
| 74 | (relativeDualCochainShortComplexNat R X).map |
| 75 | (ComplexShape.embeddingUpNat.extendFunctor (ModuleCat.{u} R)) |
| 76 | |
| 77 | /-- Let `R` be a commutative ring and `(X, A)` a topological pair, with `A` embedded in `X`. This |
| 78 | map `C^*(X; R) → C^*(A; R)` restricts singular cochains along the embedding of `A`. Both |
| 79 | complexes are indexed by integers and zero in negative degrees. -/ |
| 80 | def relativeCochainRestrictionInt (X : TopPair.{u}) : |
| 81 | ((OAI.Algebra.Homology.LinearDual.HomologicalComplex.linearDualCochainComplex (Cohomology.SingularChainComplex R X.fst)).extend |
| 82 | ComplexShape.embeddingUpNat) ⟶ |
| 83 | ((OAI.Algebra.Homology.LinearDual.HomologicalComplex.linearDualCochainComplex ((Cohomology.chainPairFunctor R).obj X).left).extend |
| 84 | ComplexShape.embeddingUpNat) := |
| 85 | HomologicalComplex.extendMap |
| 86 | (OAI.Algebra.Homology.LinearDual.HomologicalComplex.linearDualMap ((Cohomology.chainPairFunctor R).obj X).hom) |
| 87 | ComplexShape.embeddingUpNat |
| 88 | |
| 89 | end |
| 90 | |
| 91 | end OAI.AlgebraicTopology.Singular.RelativeCochainCone |