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 Mathlib.Algebra.Category.Grp.Abelian |
| 18 | import Mathlib.AlgebraicTopology.SingularHomology.Basic |
| 19 | |
| 20 | /-! # Excision Cover Small -/ |
| 21 | |
| 22 | namespace OAI.AlgebraicTopology.Singular.ExcisionCoverSmall |
| 23 | |
| 24 | noncomputable section |
| 25 | |
| 26 | open _root_.AlgebraicTopology |
| 27 | |
| 28 | /-! |
| 29 | |
| 30 | # Small singular chains for excision |
| 31 | |
| 32 | This file builds the first chain-level layer of the singular excision argument. Given a family |
| 33 | of subsets of a space, the small singular subcomplex consists of the singular simplices which |
| 34 | factor through one member of the family. Its chain complex maps canonically and monomorphically |
| 35 | to the full singular chain complex, and every cover-member chain map factors through it. |
| 36 | |
| 37 | The classical subdivision theorem says that, for an open cover, this inclusion is a chain-homotopy |
| 38 | equivalence. The definitions below state that next step using mathlib's `HomotopyEquiv` |
| 39 | API and prove its full homological consequence. Mathlib's current simplicial subdivision functor |
| 40 | does not yet provide a last-vertex map, a subdivision chain map, or its chain homotopy to the |
| 41 | identity, so that theorem cannot yet be constructed from library primitives. |
| 42 | -/ |
| 43 | |
| 44 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Set |
| 45 | |
| 46 | /-- Integral singular chains of a categorical topological space. -/ |
| 47 | abbrev IntegralSingularChainComplexObj (X : TopCat) : |
| 48 | ChainComplex AddCommGrpCat ℕ := |
| 49 | ((singularChainComplexFunctor AddCommGrpCat).obj (AddCommGrpCat.of ℤ)).obj X |
| 50 | |
| 51 | /-- The singular-chain map induced by a continuous map. -/ |
| 52 | noncomputable def integralSingularChainMapObj {X Y : TopCat} (i : X ⟶ Y) : |
| 53 | IntegralSingularChainComplexObj X ⟶ IntegralSingularChainComplexObj Y := |
| 54 | ((singularChainComplexFunctor AddCommGrpCat).obj (AddCommGrpCat.of ℤ)).map i |
| 55 | |
| 56 | variable {ι : Type} (X : TopCat) (U : ι → Set X) |
| 57 | |
| 58 | /-- The categorical inclusion of a topological subspace. -/ |
| 59 | noncomputable def topologicalSubsetInclusion (s : Set X) : |
| 60 | TopCat.of s ⟶ X := |
| 61 | TopCat.ofHom ⟨Subtype.val, continuous_subtype_val⟩ |
| 62 | |
| 63 | /-- Singular simplices which factor through one member of `U`. -/ |
| 64 | noncomputable def coverSmallSingularSubcomplex : |
| 65 | (TopCat.toSSet.obj X).Subcomplex := |
| 66 | ⨆ j, SSet.Subcomplex.range |
| 67 | (TopCat.toSSet.map (topologicalSubsetInclusion X (U j))) |
| 68 | |
| 69 | theorem mem_coverSmallSingularSubcomplex_iff |
| 70 | {n : SimplexCategoryᵒᵖ} (x : (TopCat.toSSet.obj X).obj n) : |
| 71 | x ∈ (coverSmallSingularSubcomplex X U).obj n ↔ |
| 72 | ∃ j, x ∈ (SSet.Subcomplex.range |
| 73 | (TopCat.toSSet.map (topologicalSubsetInclusion X (U j)))).obj n := by |
| 74 | simp [coverSmallSingularSubcomplex] |
| 75 | |
| 76 | /-- Membership means exactly that the singular simplex is the image of a simplex in one cover |
| 77 | member. -/ |
| 78 | theorem mem_coverSmallSingularSubcomplex_iff_exists_preimage |
| 79 | {n : SimplexCategoryᵒᵖ} (x : (TopCat.toSSet.obj X).obj n) : |
| 80 | x ∈ (coverSmallSingularSubcomplex X U).obj n ↔ |
| 81 | ∃ (j : ι) (y : (TopCat.toSSet.obj (TopCat.of (U j))).obj n), |
| 82 | (TopCat.toSSet.map (topologicalSubsetInclusion X (U j))).app n y = x := by |
| 83 | simp [mem_coverSmallSingularSubcomplex_iff, Subfunctor.range_obj] |
| 84 | |
| 85 | /-- Integral chains on the cover-small singular simplicial set. -/ |
| 86 | noncomputable abbrev CoverSmallIntegralSingularChainComplex : |
| 87 | ChainComplex AddCommGrpCat ℕ := |
| 88 | (coverSmallSingularSubcomplex X U : SSet).chainComplex (AddCommGrpCat.of ℤ) |
| 89 | |
| 90 | /-- Inclusion of cover-small integral singular chains into all integral singular chains. -/ |
| 91 | noncomputable def coverSmallIntegralSingularChainInclusion : |
| 92 | CoverSmallIntegralSingularChainComplex X U ⟶ IntegralSingularChainComplexObj X := |
| 93 | SSet.chainComplexMap (coverSmallSingularSubcomplex X U).ι (AddCommGrpCat.of ℤ) |
| 94 | |
| 95 | instance coverSmallIntegralSingularChainInclusion_mono : |
| 96 | Mono (coverSmallIntegralSingularChainInclusion X U) := by |
| 97 | dsimp [coverSmallIntegralSingularChainInclusion, SSet.chainComplexMap, |
| 98 | SSet.chainComplexFunctor] |
| 99 | apply +allowSynthFailures Functor.map_mono |
| 100 | |
| 101 | /-- The singular set of each cover member factors through the small singular subcomplex. -/ |
| 102 | noncomputable def coverMemberToSmallSingularSet (j : ι) : |
| 103 | TopCat.toSSet.obj (TopCat.of (U j)) ⟶ coverSmallSingularSubcomplex X U := |
| 104 | SSet.Subcomplex.lift |
| 105 | (TopCat.toSSet.map (topologicalSubsetInclusion X (U j))) |
| 106 | ((le_iSup (fun k ↦ SSet.Subcomplex.range |
| 107 | (TopCat.toSSet.map (topologicalSubsetInclusion X (U k)))) j)) |
| 108 | |
| 109 | @[reassoc (attr := simp)] |
| 110 | theorem coverMemberToSmallSingularSet_comp_inclusion (j : ι) : |
| 111 | coverMemberToSmallSingularSet X U j ≫ (coverSmallSingularSubcomplex X U).ι = |
| 112 | TopCat.toSSet.map (topologicalSubsetInclusion X (U j)) := |
| 113 | SSet.Subcomplex.lift_ι _ _ |
| 114 | |
| 115 | /-- The chain map from a cover member into the small singular chains. -/ |
| 116 | noncomputable def coverMemberToSmallIntegralSingularChains (j : ι) : |
| 117 | IntegralSingularChainComplexObj (TopCat.of (U j)) ⟶ |
| 118 | CoverSmallIntegralSingularChainComplex X U := |
| 119 | SSet.chainComplexMap (coverMemberToSmallSingularSet X U j) (AddCommGrpCat.of ℤ) |
| 120 | |
| 121 | /-- Chains from a cover member factor coherently through the small-chain inclusion. -/ |
| 122 | @[reassoc] |
| 123 | theorem coverMemberToSmallIntegralSingularChains_comp_inclusion (j : ι) : |
| 124 | coverMemberToSmallIntegralSingularChains X U j ≫ |
| 125 | coverSmallIntegralSingularChainInclusion X U = |
| 126 | integralSingularChainMapObj (topologicalSubsetInclusion X (U j)) := by |
| 127 | change |
| 128 | ((SSet.chainComplexFunctor AddCommGrpCat).obj (AddCommGrpCat.of ℤ)).map |
| 129 | (coverMemberToSmallSingularSet X U j) ≫ |
| 130 | ((SSet.chainComplexFunctor AddCommGrpCat).obj (AddCommGrpCat.of ℤ)).map |
| 131 | (coverSmallSingularSubcomplex X U).ι = |
| 132 | ((SSet.chainComplexFunctor AddCommGrpCat).obj (AddCommGrpCat.of ℤ)).map |
| 133 | (TopCat.toSSet.map (topologicalSubsetInclusion X (U j))) |
| 134 | rw [← Functor.map_comp, coverMemberToSmallSingularSet_comp_inclusion] |
| 135 | |
| 136 | end |
| 137 | |
| 138 | end OAI.AlgebraicTopology.Singular.ExcisionCoverSmall |