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.SubdivisionAffineIteration |
| 18 | import OAI.AlgebraicTopology.Singular.ExcisionCoverSmallProjective |
| 19 | import Mathlib.Algebra.Category.Grp.Zero |
| 20 | import Mathlib.Algebra.Homology.HomologicalComplexLimits |
| 21 | import Mathlib.Algebra.Homology.ShortComplex.Ab |
| 22 | |
| 23 | /-! # Cover Small Quasi Iso -/ |
| 24 | |
| 25 | namespace OAI.AlgebraicTopology.Singular.CoverSmallQuasiIso |
| 26 | |
| 27 | noncomputable section |
| 28 | |
| 29 | /-! |
| 30 | |
| 31 | # The algebraic endgame of the small-chain argument |
| 32 | |
| 33 | This file separates the finite-chain algebra in the classical subdivision proof from the |
| 34 | geometric assertion that iterated affine subdivision eventually makes a chain subordinate to a |
| 35 | cover. The abstract theorem says that a monomorphic inclusion of chain complexes is a |
| 36 | quasi-isomorphism when compatible endomorphisms on the source and target are homotopic to the |
| 37 | identity and every target chain is eventually carried into the image of the inclusion. |
| 38 | -/ |
| 39 | |
| 40 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 41 | |
| 42 | section Abstract |
| 43 | |
| 44 | variable {K L : ChainComplex AddCommGrpCat ℕ} |
| 45 | |
| 46 | /-- Elementwise eventual factorization, together with compatible endomorphisms homotopic to the |
| 47 | identity, makes a monomorphic inclusion of nonnegative chain complexes a quasi-isomorphism. |
| 48 | |
| 49 | The exponent is allowed to depend on the individual chain. This is the form needed for singular |
| 50 | chains, whose elements have finite support but do not admit a uniform subdivision exponent. -/ |
| 51 | theorem chainComplex_quasiIso_of_eventually_factors |
| 52 | (I : K ⟶ L) [Mono I] |
| 53 | (smallIterate : ℕ → (K ⟶ K)) |
| 54 | (largeIterate : ℕ → (L ⟶ L)) |
| 55 | (hcompat : ∀ m, smallIterate m ≫ I = I ≫ largeIterate m) |
| 56 | (hsmall : ∀ m, Homotopy (smallIterate m) (𝟙 K)) |
| 57 | (hlarge : ∀ m, Homotopy (largeIterate m) (𝟙 L)) |
| 58 | (heventually : ∀ (n : ℕ) (x : L.X n), |
| 59 | ∃ (m : ℕ) (y : K.X n), I.f n y = (largeIterate m).f n x) : |
| 60 | QuasiIso I := by |
| 61 | rw [quasiIso_iff] |
| 62 | intro n |
| 63 | rw [quasiIsoAt_iff_isIso_homologyMap] |
| 64 | apply (ConcreteCategory.isIso_iff_bijective _).2 |
| 65 | constructor |
| 66 | · intro a b hab |
| 67 | suffices a - b = 0 by exact sub_eq_zero.mp this |
| 68 | let q : K.homology n := a - b |
| 69 | have hqmap : HomologicalComplex.homologyMap I n q = 0 := by |
| 70 | dsimp [q] |
| 71 | rw [map_sub, hab, sub_self] |
| 72 | obtain ⟨z, hz⟩ := |
| 73 | (AddCommGrpCat.epi_iff_surjective (K.homologyπ n)).1 inferInstance q |
| 74 | have hzmap : |
| 75 | L.homologyπ n (HomologicalComplex.cyclesMap I n z) = 0 := by |
| 76 | rw [← ConcreteCategory.comp_apply, |
| 77 | ← HomologicalComplex.homologyπ_naturality, |
| 78 | ConcreteCategory.comp_apply, hz] |
| 79 | exact hqmap |
| 80 | let T : ShortComplex AddCommGrpCat := |
| 81 | ShortComplex.mk (L.toCycles (n + 1) n) (L.homologyπ n) (by simp) |
| 82 | have hT : T.Exact := |
| 83 | T.exact_of_g_is_cokernel (L.homologyIsCokernel (n + 1) n (by simp)) |
| 84 | obtain ⟨w, hw⟩ := (T.ab_exact_iff.mp hT) |
| 85 | (HomologicalComplex.cyclesMap I n z) hzmap |
| 86 | obtain ⟨m, w', hw'⟩ := heventually (n + 1) w |
| 87 | have hzchain : |
| 88 | I.f n (K.iCycles n z) = L.d (n + 1) n w := by |
| 89 | rw [← ConcreteCategory.comp_apply, ← HomologicalComplex.cyclesMap_i, |
| 90 | ConcreteCategory.comp_apply, ← hw] |
| 91 | dsimp [T] |
| 92 | rw [← ConcreteCategory.comp_apply, HomologicalComplex.toCycles_i] |
| 93 | have hboundary : |
| 94 | (smallIterate m).f n (K.iCycles n z) = K.d (n + 1) n w' := by |
| 95 | apply (AddCommGrpCat.mono_iff_injective (I.f n)).1 |
| 96 | · change Mono ((HomologicalComplex.eval AddCommGrpCat |
| 97 | (ComplexShape.down ℕ) n).map I) |
| 98 | infer_instance |
| 99 | have hc := congrArg (fun F ↦ F.f n) (hcompat m) |
| 100 | have hc' := ConcreteCategory.congr_hom hc (K.iCycles n z) |
| 101 | simp only [HomologicalComplex.comp_f, |
| 102 | ConcreteCategory.comp_apply] at hc' |
| 103 | calc |
| 104 | I.f n ((smallIterate m).f n (K.iCycles n z)) = |
| 105 | (largeIterate m).f n (I.f n (K.iCycles n z)) := hc' |
| 106 | _ = (largeIterate m).f n (L.d (n + 1) n w) := by rw [hzchain] |
| 107 | _ = L.d (n + 1) n ((largeIterate m).f (n + 1) w) := by |
| 108 | rw [← ConcreteCategory.comp_apply, ← ConcreteCategory.comp_apply, |
| 109 | (largeIterate m).comm] |
| 110 | _ = L.d (n + 1) n (I.f (n + 1) w') := by rw [← hw'] |
| 111 | _ = I.f n (K.d (n + 1) n w') := by |
| 112 | rw [← ConcreteCategory.comp_apply, ← ConcreteCategory.comp_apply, I.comm] |
| 113 | have hiterzero : |
| 114 | HomologicalComplex.homologyMap (smallIterate m) n |
| 115 | (K.homologyπ n z) = 0 := by |
| 116 | rw [← ConcreteCategory.comp_apply, |
| 117 | HomologicalComplex.homologyπ_naturality, |
| 118 | ConcreteCategory.comp_apply] |
| 119 | let B : K.X (n + 1) ⟶ K.cycles n := K.toCycles (n + 1) n |
| 120 | have hB : B w' = |
| 121 | HomologicalComplex.cyclesMap (smallIterate m) n z := by |
| 122 | apply (AddCommGrpCat.mono_iff_injective (K.iCycles n)).1 inferInstance |
| 123 | calc |
| 124 | K.iCycles n (B w') = K.d (n + 1) n w' := by |
| 125 | rw [← ConcreteCategory.comp_apply] |
| 126 | exact ConcreteCategory.congr_hom |
| 127 | (HomologicalComplex.toCycles_i K (n + 1) n) w' |
| 128 | _ = (smallIterate m).f n (K.iCycles n z) := hboundary.symm |
| 129 | _ = K.iCycles n |
| 130 | (HomologicalComplex.cyclesMap (smallIterate m) n z) := |
| 131 | ConcreteCategory.congr_hom |
| 132 | (HomologicalComplex.cyclesMap_i (smallIterate m) n).symm z |
| 133 | rw [← hB, ← ConcreteCategory.comp_apply, |
| 134 | HomologicalComplex.toCycles_comp_homologyπ] |
| 135 | rfl |
| 136 | have hiter := congrArg (fun f ↦ f (K.homologyπ n z)) |
| 137 | ((hsmall m).homologyMap_eq n) |
| 138 | rw [HomologicalComplex.homologyMap_id] at hiter |
| 139 | change q = 0 |
| 140 | calc |
| 141 | q = K.homologyπ n z := hz.symm |
| 142 | _ = HomologicalComplex.homologyMap (smallIterate m) n |
| 143 | (K.homologyπ n z) := by simpa using hiter.symm |
| 144 | _ = 0 := hiterzero |
| 145 | · intro y |
| 146 | obtain ⟨z, rfl⟩ := |
| 147 | (AddCommGrpCat.epi_iff_surjective (L.homologyπ n)).1 inferInstance y |
| 148 | let x : L.X n := L.iCycles n z |
| 149 | obtain ⟨m, x', hx'⟩ := heventually n x |
| 150 | let j : ℕ := (ComplexShape.down ℕ).next n |
| 151 | have hxcycle : L.d n j x = 0 := by |
| 152 | dsimp [x] |
| 153 | rw [← ConcreteCategory.comp_apply, HomologicalComplex.iCycles_d] |
| 154 | rfl |
| 155 | have hx'cycle : K.d n j x' = 0 := by |
| 156 | apply (AddCommGrpCat.mono_iff_injective (I.f j)).1 |
| 157 | · change Mono ((HomologicalComplex.eval AddCommGrpCat |
| 158 | (ComplexShape.down ℕ) j).map I) |
| 159 | infer_instance |
| 160 | rw [map_zero, ← ConcreteCategory.comp_apply, ← I.comm, |
| 161 | ConcreteCategory.comp_apply, hx', ← ConcreteCategory.comp_apply, |
| 162 | (largeIterate m).comm, ConcreteCategory.comp_apply, hxcycle, map_zero] |
| 163 | have hx'mem : x' ∈ (K.sc n).g.hom.ker := by |
| 164 | change (K.sc n).g x' = 0 |
| 165 | change K.d n ((ComplexShape.down ℕ).next n) x' = 0 |
| 166 | simpa [j] using hx'cycle |
| 167 | let z' : K.cycles n := |
| 168 | (K.sc n).abCyclesIso.inv ⟨x', hx'mem⟩ |
| 169 | refine ⟨K.homologyπ n z', ?_⟩ |
| 170 | rw [← ConcreteCategory.comp_apply, |
| 171 | HomologicalComplex.homologyπ_naturality, |
| 172 | ConcreteCategory.comp_apply] |
| 173 | have hcycles : HomologicalComplex.cyclesMap I n z' = |
| 174 | HomologicalComplex.cyclesMap (largeIterate m) n z := by |
| 175 | apply (AddCommGrpCat.mono_iff_injective (L.iCycles n)).1 inferInstance |
| 176 | calc |
| 177 | L.iCycles n (HomologicalComplex.cyclesMap I n z') = |
| 178 | I.f n (K.iCycles n z') := by |
| 179 | rw [← ConcreteCategory.comp_apply, |
| 180 | HomologicalComplex.cyclesMap_i, |
| 181 | ConcreteCategory.comp_apply] |
| 182 | _ = I.f n x' := by |
| 183 | congr 1 |
| 184 | dsimp [z'] |
| 185 | exact (K.sc n).abCyclesIso_inv_apply_iCycles _ |
| 186 | _ = (largeIterate m).f n x := hx' |
| 187 | _ = (largeIterate m).f n (L.iCycles n z) := rfl |
| 188 | _ = L.iCycles n |
| 189 | (HomologicalComplex.cyclesMap (largeIterate m) n z) := |
| 190 | ConcreteCategory.congr_hom |
| 191 | (HomologicalComplex.cyclesMap_i (largeIterate m) n).symm z |
| 192 | rw [hcycles, ← ConcreteCategory.comp_apply, |
| 193 | ← HomologicalComplex.homologyπ_naturality, |
| 194 | ConcreteCategory.comp_apply] |
| 195 | have hiter := congrArg (fun f ↦ f (L.homologyπ n z)) |
| 196 | ((hlarge m).homologyMap_eq n) |
| 197 | simpa using hiter |
| 198 | |
| 199 | end Abstract |
| 200 | |
| 201 | variable {iota : Type} (X : TopCat) (U : iota → Set X) |
| 202 | |
| 203 | /-- Eventual smallness of every finite singular chain -- each is carried into the cover-small |
| 204 | subcomplex by some finite affine-subdivision iterate -- implies that the cover-small inclusion is |
| 205 | a quasi-isomorphism. -/ |
| 206 | theorem coverSmallChainQuasiIsomorphism_of_eventuallySmall |
| 207 | (h : ∀ (n : ℕ) (x : (ExcisionCoverSmall.IntegralSingularChainComplexObj X).X n), |
| 208 | ∃ (m : ℕ) (y : (ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex X U).X n), |
| 209 | (ExcisionCoverSmall.coverSmallIntegralSingularChainInclusion X U).f n y = |
| 210 | (SubdivisionAffineIteration.affineSingularSubdivisionIterate X m).f n x) : |
| 211 | QuasiIso (ExcisionCoverSmall.coverSmallIntegralSingularChainInclusion X U) := |
| 212 | chainComplex_quasiIso_of_eventually_factors |
| 213 | (ExcisionCoverSmall.coverSmallIntegralSingularChainInclusion X U) |
| 214 | (SubdivisionAffineIteration.coverSmallAffineSubdivisionIterate X U) |
| 215 | (SubdivisionAffineIteration.affineSingularSubdivisionIterate X) |
| 216 | (SubdivisionAffineIteration.coverSmallAffineSubdivisionIterate_comp_inclusion X U) |
| 217 | (SubdivisionAffineIteration.coverSmallAffineSubdivisionIterateHomotopy X U) |
| 218 | (SubdivisionAffineIteration.affineSingularSubdivisionIterateHomotopy X) h |
| 219 | |
| 220 | /-- The same geometric input supplies the stronger chain-homotopy equivalence, via projectivity |
| 221 | of integral singular chain groups. -/ |
| 222 | theorem coverSmallChainApproximation_of_eventuallySmall |
| 223 | (h : ∀ (n : ℕ) (x : (ExcisionCoverSmall.IntegralSingularChainComplexObj X).X n), |
| 224 | ∃ (m : ℕ) (y : (ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex X U).X n), |
| 225 | (ExcisionCoverSmall.coverSmallIntegralSingularChainInclusion X U).f n y = |
| 226 | (SubdivisionAffineIteration.affineSingularSubdivisionIterate X m).f n x) : |
| 227 | HomologicalComplex.homotopyEquivalences AddCommGrpCat (ComplexShape.down ℕ) |
| 228 | (ExcisionCoverSmall.coverSmallIntegralSingularChainInclusion X U) := |
| 229 | ExcisionCoverSmallProjective.coverSmallChainApproximation_of_quasiIso X U |
| 230 | (coverSmallChainQuasiIsomorphism_of_eventuallySmall X U h) |
| 231 | |
| 232 | end |
| 233 | |
| 234 | end OAI.AlgebraicTopology.Singular.CoverSmallQuasiIso |