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.SubdivisionAffinePrism |
| 18 | import OAI.AlgebraicTopology.Singular.SubdivisionAffineSmall |
| 19 | import Mathlib.Algebra.Category.Grp.Zero |
| 20 | import Mathlib.Algebra.Homology.HomologicalComplexLimits |
| 21 | |
| 22 | /-! # Subdivision Affine Small Prism -/ |
| 23 | |
| 24 | namespace OAI.AlgebraicTopology.Singular.SubdivisionAffineSmallPrism |
| 25 | |
| 26 | noncomputable section |
| 27 | |
| 28 | /-! |
| 29 | |
| 30 | # The affine subdivision prism on cover-small singular chains |
| 31 | |
| 32 | The universal affine prism only precomposes a singular simplex. It therefore preserves the |
| 33 | range of any cover member, just as affine subdivision itself does. This file restricts the |
| 34 | prism to the cover-small chain complex and proves that cover-small affine subdivision is chain |
| 35 | homotopic to the identity there. |
| 36 | -/ |
| 37 | |
| 38 | open _root_.AlgebraicTopology _root_.CategoryTheory _root_.CategoryTheory.Limits Set |
| 39 | |
| 40 | variable {iota : Type} (X : TopCat) (U : iota → Set X) |
| 41 | |
| 42 | /-- The affine prism on a selected lift of a cover-small generator, mapped back into the small |
| 43 | chain complex. -/ |
| 44 | noncomputable def coverSmallAffinePrismSimplexChain |
| 45 | (n : ℕ) |
| 46 | (x : (ExcisionCoverSmall.coverSmallSingularSubcomplex X U : SSet).obj |
| 47 | (Opposite.op (SimplexCategory.mk n))) : |
| 48 | AddCommGrpCat.of ℤ ⟶ |
| 49 | (ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex X U).X (n + 1) := |
| 50 | (TopCat.toSSet.obj |
| 51 | (TopCat.of (U (SubdivisionAffineSmall.coverSmallSimplexPreimageIndex X U x)))).ιChainComplex |
| 52 | (SubdivisionAffineSmall.coverSmallSimplexPreimage X U x) ≫ |
| 53 | SubdivisionAffinePrism.affineSingularSubdivisionPrismComponent |
| 54 | (TopCat.of (U (SubdivisionAffineSmall.coverSmallSimplexPreimageIndex X U x))) n ≫ |
| 55 | (ExcisionCoverSmall.coverMemberToSmallIntegralSingularChains X U |
| 56 | (SubdivisionAffineSmall.coverSmallSimplexPreimageIndex X U x)).f (n + 1) |
| 57 | |
| 58 | /-- The degree-raising affine prism operator on cover-small chains. -/ |
| 59 | noncomputable def coverSmallAffinePrismComponent (n : ℕ) : |
| 60 | (ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex X U).X n ⟶ |
| 61 | (ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex X U).X (n + 1) := |
| 62 | Sigma.desc (coverSmallAffinePrismSimplexChain X U n) |
| 63 | |
| 64 | @[reassoc (attr := simp)] |
| 65 | theorem iota_coverSmallAffinePrismComponent |
| 66 | (n : ℕ) |
| 67 | (x : (ExcisionCoverSmall.coverSmallSingularSubcomplex X U : SSet).obj |
| 68 | (Opposite.op (SimplexCategory.mk n))) : |
| 69 | (ExcisionCoverSmall.coverSmallSingularSubcomplex X U : SSet).ιChainComplex x ≫ |
| 70 | coverSmallAffinePrismComponent X U n = |
| 71 | coverSmallAffinePrismSimplexChain X U n x := by |
| 72 | apply Sigma.ι_comp_desc |
| 73 | |
| 74 | /-- The small prism on a generator agrees with the full prism after inclusion. -/ |
| 75 | theorem coverSmallAffinePrismSimplexChain_comp_inclusion |
| 76 | (n : ℕ) |
| 77 | (x : (ExcisionCoverSmall.coverSmallSingularSubcomplex X U : SSet).obj |
| 78 | (Opposite.op (SimplexCategory.mk n))) : |
| 79 | coverSmallAffinePrismSimplexChain X U n x ≫ |
| 80 | (ExcisionCoverSmall.coverSmallIntegralSingularChainInclusion X U).f (n + 1) = |
| 81 | (TopCat.toSSet.obj X).ιChainComplex x.1 ≫ |
| 82 | SubdivisionAffinePrism.affineSingularSubdivisionPrismComponent X n := by |
| 83 | let j := SubdivisionAffineSmall.coverSmallSimplexPreimageIndex X U x |
| 84 | let y := SubdivisionAffineSmall.coverSmallSimplexPreimage X U x |
| 85 | let I := SSet.chainComplexMap |
| 86 | (TopCat.toSSet.map (ExcisionCoverSmall.topologicalSubsetInclusion X (U j))) |
| 87 | (AddCommGrpCat.of ℤ) |
| 88 | have hcover := congrArg (fun F ↦ F.f (n + 1)) |
| 89 | (ExcisionCoverSmall.coverMemberToSmallIntegralSingularChains_comp_inclusion X U j) |
| 90 | change (SSet.chainComplexMap (ExcisionCoverSmall.coverMemberToSmallSingularSet X U j) |
| 91 | (AddCommGrpCat.of ℤ)).f (n + 1) ≫ |
| 92 | (SSet.chainComplexMap (ExcisionCoverSmall.coverSmallSingularSubcomplex X U).ι |
| 93 | (AddCommGrpCat.of ℤ)).f (n + 1) = I.f (n + 1) at hcover |
| 94 | change (((TopCat.toSSet.obj (TopCat.of (U j))).ιChainComplex y ≫ |
| 95 | SubdivisionAffinePrism.affineSingularSubdivisionPrismComponent (TopCat.of (U j)) n) ≫ |
| 96 | (SSet.chainComplexMap (ExcisionCoverSmall.coverMemberToSmallSingularSet X U j) |
| 97 | (AddCommGrpCat.of ℤ)).f (n + 1)) ≫ |
| 98 | (SSet.chainComplexMap (ExcisionCoverSmall.coverSmallSingularSubcomplex X U).ι |
| 99 | (AddCommGrpCat.of ℤ)).f (n + 1) = _ |
| 100 | rw [Category.assoc, hcover, Category.assoc, |
| 101 | ← SubdivisionAffinePrism.affineSingularSubdivisionPrismComponent_naturality, ← Category.assoc, |
| 102 | SSet.ι_chainComplexMap_f, show (TopCat.toSSet.map |
| 103 | (ExcisionCoverSmall.topologicalSubsetInclusion X (U j))).app _ y = x.1 from |
| 104 | SubdivisionAffineSmall.coverSmallSimplexPreimage_spec X U x] |
| 105 | |
| 106 | /-- The small prism agrees degreewise with the full prism after inclusion. -/ |
| 107 | theorem coverSmallAffinePrismComponent_comp_inclusion |
| 108 | (n : ℕ) : |
| 109 | coverSmallAffinePrismComponent X U n ≫ |
| 110 | (ExcisionCoverSmall.coverSmallIntegralSingularChainInclusion X U).f (n + 1) = |
| 111 | (ExcisionCoverSmall.coverSmallIntegralSingularChainInclusion X U).f n ≫ |
| 112 | SubdivisionAffinePrism.affineSingularSubdivisionPrismComponent X n := by |
| 113 | change coverSmallAffinePrismComponent X U n ≫ |
| 114 | (SSet.chainComplexMap (ExcisionCoverSmall.coverSmallSingularSubcomplex X U).ι |
| 115 | (AddCommGrpCat.of ℤ)).f (n + 1) = |
| 116 | (SSet.chainComplexMap (ExcisionCoverSmall.coverSmallSingularSubcomplex X U).ι |
| 117 | (AddCommGrpCat.of ℤ)).f n ≫ |
| 118 | SubdivisionAffinePrism.affineSingularSubdivisionPrismComponent X n |
| 119 | apply (ExcisionCoverSmall.coverSmallSingularSubcomplex X U : SSet).chainComplex_hom_ext |
| 120 | intro x |
| 121 | rw [← Category.assoc, iota_coverSmallAffinePrismComponent] |
| 122 | simp only [SSet.ι_chainComplexMap_f_assoc] |
| 123 | exact coverSmallAffinePrismSimplexChain_comp_inclusion X U n x |
| 124 | |
| 125 | /-- The cover-small prism gives the chain-homotopy equation in positive degrees. -/ |
| 126 | theorem coverSmallAffinePrismComponent_identity_succ |
| 127 | (n : ℕ) : |
| 128 | (SubdivisionAffineSmall.coverSmallAffineSubdivisionChainMap X U).f (n + 1) = |
| 129 | (ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex X U).d (n + 1) n ≫ |
| 130 | coverSmallAffinePrismComponent X U n + |
| 131 | coverSmallAffinePrismComponent X U (n + 1) ≫ |
| 132 | (ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex X U).d (n + 2) (n + 1) + |
| 133 | 𝟙 ((ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex X U).X (n + 1)) := by |
| 134 | let I := SSet.chainComplexMap (ExcisionCoverSmall.coverSmallSingularSubcomplex X U).ι |
| 135 | (AddCommGrpCat.of ℤ) |
| 136 | have : Mono I := by |
| 137 | dsimp [I] |
| 138 | exact ExcisionCoverSmall.coverSmallIntegralSingularChainInclusion_mono X U |
| 139 | have : Mono (I.f (n + 1)) := by |
| 140 | change Mono ((HomologicalComplex.eval AddCommGrpCat |
| 141 | (ComplexShape.down ℕ) (n + 1)).map I) |
| 142 | infer_instance |
| 143 | apply (cancel_mono (I.f (n + 1))).mp |
| 144 | rw [Preadditive.add_comp, Preadditive.add_comp] |
| 145 | simp only [Category.id_comp] |
| 146 | rw [SubdivisionAffineSmall.coverSmallAffineSubdivisionChainMap_f] |
| 147 | have hA := SubdivisionAffineSmall.coverSmallAffineSubdivisionComponent_comp_inclusion X U (n + 1) |
| 148 | change SubdivisionAffineSmall.coverSmallAffineSubdivisionComponent X U (n + 1) ≫ I.f (n + 1) = |
| 149 | I.f (n + 1) ≫ SubdivisionAffine.affineSingularSubdivisionComponent X (n + 1) at hA |
| 150 | have hP (k : ℕ) : |
| 151 | coverSmallAffinePrismComponent X U k ≫ I.f (k + 1) = |
| 152 | I.f k ≫ SubdivisionAffinePrism.affineSingularSubdivisionPrismComponent X k := |
| 153 | coverSmallAffinePrismComponent_comp_inclusion X U k |
| 154 | rw [hA] |
| 155 | change I.f (n + 1) ≫ |
| 156 | (SubdivisionAffine.affineSingularSubdivisionChainMap X).f (n + 1) = _ |
| 157 | rw [SubdivisionAffinePrism.affineSingularSubdivisionPrismComponent_identity_succ, |
| 158 | Preadditive.comp_add, Preadditive.comp_add] |
| 159 | simp only [Category.comp_id] |
| 160 | apply congrArg₂ (fun a b ↦ a + b) |
| 161 | · apply congrArg₂ (fun a b ↦ a + b) |
| 162 | · rw [← Category.assoc, I.comm, Category.assoc, ← hP, ← Category.assoc] |
| 163 | · rw [← Category.assoc, ← hP, Category.assoc, I.comm, ← Category.assoc] |
| 164 | · rfl |
| 165 | |
| 166 | /-- The cover-small prism gives the chain-homotopy equation in degree zero. -/ |
| 167 | theorem coverSmallAffinePrismComponent_identity_zero : |
| 168 | (SubdivisionAffineSmall.coverSmallAffineSubdivisionChainMap X U).f 0 = |
| 169 | coverSmallAffinePrismComponent X U 0 ≫ |
| 170 | (ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex X U).d 1 0 + |
| 171 | 𝟙 ((ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex X U).X 0) := by |
| 172 | let I := SSet.chainComplexMap (ExcisionCoverSmall.coverSmallSingularSubcomplex X U).ι |
| 173 | (AddCommGrpCat.of ℤ) |
| 174 | have : Mono I := by |
| 175 | dsimp [I] |
| 176 | exact ExcisionCoverSmall.coverSmallIntegralSingularChainInclusion_mono X U |
| 177 | have : Mono (I.f 0) := by |
| 178 | change Mono ((HomologicalComplex.eval AddCommGrpCat |
| 179 | (ComplexShape.down ℕ) 0).map I) |
| 180 | infer_instance |
| 181 | apply (cancel_mono (I.f 0)).mp |
| 182 | rw [Preadditive.add_comp] |
| 183 | simp only [Category.id_comp] |
| 184 | rw [SubdivisionAffineSmall.coverSmallAffineSubdivisionChainMap_f] |
| 185 | have hA := SubdivisionAffineSmall.coverSmallAffineSubdivisionComponent_comp_inclusion X U 0 |
| 186 | change SubdivisionAffineSmall.coverSmallAffineSubdivisionComponent X U 0 ≫ I.f 0 = |
| 187 | I.f 0 ≫ SubdivisionAffine.affineSingularSubdivisionComponent X 0 at hA |
| 188 | have hP : coverSmallAffinePrismComponent X U 0 ≫ I.f 1 = |
| 189 | I.f 0 ≫ SubdivisionAffinePrism.affineSingularSubdivisionPrismComponent X 0 := |
| 190 | coverSmallAffinePrismComponent_comp_inclusion X U 0 |
| 191 | rw [hA] |
| 192 | change I.f 0 ≫ (SubdivisionAffine.affineSingularSubdivisionChainMap X).f 0 = _ |
| 193 | rw [SubdivisionAffinePrism.affineSingularSubdivisionPrismComponent_identity_zero, |
| 194 | Preadditive.comp_add] |
| 195 | simp only [Category.comp_id] |
| 196 | apply congrArg₂ (fun a b ↦ a + b) |
| 197 | · rw [← Category.assoc, ← hP, Category.assoc, I.comm, ← Category.assoc] |
| 198 | · rfl |
| 199 | |
| 200 | /-- The degree-raising small-prism family. -/ |
| 201 | noncomputable def coverSmallAffinePrismHom (i j : ℕ) : |
| 202 | (ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex X U).X i ⟶ |
| 203 | (ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex X U).X j := |
| 204 | if h : j = i + 1 then by |
| 205 | subst j |
| 206 | exact coverSmallAffinePrismComponent X U i |
| 207 | else 0 |
| 208 | |
| 209 | @[simp] |
| 210 | theorem coverSmallAffinePrismHom_succ (i : ℕ) : |
| 211 | coverSmallAffinePrismHom X U i (i + 1) = |
| 212 | coverSmallAffinePrismComponent X U i := by |
| 213 | simp [coverSmallAffinePrismHom] |
| 214 | |
| 215 | /-- Cover-small affine subdivision is chain homotopic to the identity. -/ |
| 216 | noncomputable def coverSmallAffineSubdivisionHomotopy : |
| 217 | Homotopy (SubdivisionAffineSmall.coverSmallAffineSubdivisionChainMap X U) |
| 218 | (𝟙 (ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex X U)) where |
| 219 | hom := coverSmallAffinePrismHom X U |
| 220 | zero i j hij := by |
| 221 | rw [coverSmallAffinePrismHom] |
| 222 | split_ifs with h |
| 223 | · exfalso |
| 224 | apply hij |
| 225 | rw [ComplexShape.down_Rel] |
| 226 | exact h.symm |
| 227 | · rfl |
| 228 | comm i := by |
| 229 | cases i with |
| 230 | | zero => |
| 231 | rw [Homotopy.dNext_zero_chainComplex, |
| 232 | Homotopy.prevD_chainComplex] |
| 233 | simp only [coverSmallAffinePrismHom_succ, zero_add, |
| 234 | HomologicalComplex.id_f] |
| 235 | exact coverSmallAffinePrismComponent_identity_zero X U |
| 236 | | succ n => |
| 237 | rw [Homotopy.dNext_succ_chainComplex, |
| 238 | Homotopy.prevD_chainComplex] |
| 239 | simp only [coverSmallAffinePrismHom_succ, |
| 240 | HomologicalComplex.id_f] |
| 241 | exact coverSmallAffinePrismComponent_identity_succ X U n |
| 242 | |
| 243 | end |
| 244 | |
| 245 | end OAI.AlgebraicTopology.Singular.SubdivisionAffineSmallPrism |