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 | |
| 16 | This file has been modified. |
| 17 | -/ |
| 18 | |
| 19 | import HodgeConjecture.Mathlib.Algebra.Homology.Notation |
| 20 | |
| 21 | import HodgeConjecture.Definitions.AlgebraicTopology.Sheaf.Constant |
| 22 | import HodgeConjecture.Lemmas.AlgebraicGeometry.Cohomology.SingularSheafComparison |
| 23 | import HodgeConjecture.Lemmas.AlgebraicTopology.Sheaf.FlasqueQuasiIso |
| 24 | import HodgeConjecture.Lemmas.AlgebraicTopology.Sheaf.InjectiveFlasque |
| 25 | import HodgeConjecture.Lemmas.AlgebraicTopology.Singular.Sheaf.SubdivisionCochain |
| 26 | import HodgeConjecture.Mathlib.Algebra.Homology.MapExtend |
| 27 | import Mathlib.Algebra.Homology.DerivedCategory.KInjective |
| 28 | import Mathlib.Algebra.Homology.Factorizations.CM5a |
| 29 | import HodgeConjecture.Mathlib.Algebra.Homology.HomComplexSingle |
| 30 | |
| 31 | import HodgeConjecture.Mathlib.CategoryTheory.ConcreteCategory.Notation |
| 32 | |
| 33 | namespace OAI.AlgebraicGeometry.Cohomology.GlobalSections |
| 34 | |
| 35 | open _root_.AlgebraicGeometry |
| 36 | open _root_.TopCat |
| 37 | open _root_.TopCat.Sheaf |
| 38 | |
| 39 | /-! |
| 40 | # Singular cohomology and global sections |
| 41 | |
| 42 | This file identifies rational singular cohomology with the cohomology of the global-section |
| 43 | complex of the sheafified singular-cochain resolution on a paracompact Hausdorff space. It also |
| 44 | computes the hypercohomology of that resolution on a hereditarily paracompact Hausdorff space. |
| 45 | |
| 46 | The derived comparison uses a bounded-below termwise-injective replacement. The mapping-cone |
| 47 | argument in `Sheaf.FlasqueQuasiIso` proves that its quasi-isomorphism remains a |
| 48 | quasi-isomorphism after taking global sections. |
| 49 | -/ |
| 50 | |
| 51 | noncomputable section |
| 52 | |
| 53 | open _root_.CategoryTheory Limits _root_.TopologicalSpace |
| 54 | |
| 55 | |
| 56 | namespace TopCat |
| 57 | open _root_.TopCat |
| 58 | namespace Sheaf |
| 59 | open _root_.TopCat |
| 60 | open _root_.TopCat.Sheaf |
| 61 | |
| 62 | section |
| 63 | |
| 64 | variable {Y : TopCat.{0}} |
| 65 | |
| 66 | /-- Let `Y` be a topological space and `F` a sheaf of abelian groups on `Y`. This additive |
| 67 | equivalence `Hom(ℤ_Y, F) ≃ Γ(Y, F)` evaluates a sheaf morphism at the constant global section |
| 68 | `1`. Its inverse sends a section `s` to the morphism taking each locally constant integer to the |
| 69 | corresponding multiple of `s`. -/ |
| 70 | def integerConstantHomAddEquivGlobalSections |
| 71 | (F : TopCat.Sheaf AddCommGrpCat Y) : |
| 72 | letI : AddCommGroup ((_root_.OAI.AlgebraicTopology.Sheaf.Constant.TopCat.constantFunctor Y).obj (AddCommGrpCat.of ℤ) ⟶ F) := |
| 73 | (inferInstance : Preadditive (TopCat.Sheaf AddCommGrpCat Y)).homGroup _ _ |
| 74 | ((_root_.OAI.AlgebraicTopology.Sheaf.Constant.TopCat.constantFunctor Y).obj (AddCommGrpCat.of ℤ) ⟶ F) ≃+ F.presheaf.obj (.op (⊤ : Opens Y)) := by |
| 75 | letI : AddCommGroup ((_root_.OAI.AlgebraicTopology.Sheaf.Constant.TopCat.constantFunctor Y).obj (AddCommGrpCat.of ℤ) ⟶ F) := |
| 76 | (inferInstance : Preadditive (TopCat.Sheaf AddCommGrpCat Y)).homGroup _ _ |
| 77 | exact ((constantSheafAdj (Opens.grothendieckTopology Y) AddCommGrpCat |
| 78 | isTerminalTop).homAddEquiv (AddCommGrpCat.of ℤ) F).trans <| |
| 79 | AddCommGrpCat.homAddEquiv.trans (zmultiplesAddHom (F.presheaf.obj (.op ⊤))).symm |
| 80 | |
| 81 | /-- The constant-integer/global-sections equivalence is natural in the sheaf. -/ |
| 82 | lemma integerConstantHomAddEquivGlobalSections_naturality |
| 83 | {F G : TopCat.Sheaf AddCommGrpCat Y} (f : F ⟶ G) |
| 84 | (g : (_root_.OAI.AlgebraicTopology.Sheaf.Constant.TopCat.constantFunctor Y).obj (AddCommGrpCat.of ℤ) ⟶ F) : |
| 85 | integerConstantHomAddEquivGlobalSections G (g ≫ f) = |
| 86 | f.hom.app (.op (⊤ : Opens Y)) |
| 87 | (integerConstantHomAddEquivGlobalSections F g) := rfl |
| 88 | |
| 89 | end |
| 90 | |
| 91 | /-- Let `Y` be a topological space. This integer-indexed complex of sheaves of abelian groups on `Y` |
| 92 | has the constant integer sheaf `ℤ_Y` in degree zero, zero sheaves in every other degree, and |
| 93 | zero differentials. -/ |
| 94 | def integerConstantSingleComplex (Y : TopCat.{0}) : |
| 95 | CochainComplex (TopCat.Sheaf AddCommGrpCat Y) ℤ := |
| 96 | (CochainComplex.singleFunctor (TopCat.Sheaf AddCommGrpCat Y) 0).obj |
| 97 | ((_root_.OAI.AlgebraicTopology.Sheaf.Constant.TopCat.constantFunctor Y).obj (AddCommGrpCat.of ℤ)) |
| 98 | |
| 99 | /-- Let `Y` be a topological space and `K` an integer-indexed complex of sheaves of abelian groups |
| 100 | on `Y`. The complex `Γ(Y, K)` has `Γ(Y, K^n)` in degree `n`; its differentials are the maps on |
| 101 | global sections induced by those of `K`. -/ |
| 102 | def globalSectionsComplexInt (Y : TopCat.{0}) |
| 103 | (K : CochainComplex (TopCat.Sheaf AddCommGrpCat Y) ℤ) : |
| 104 | -- `Γ(Y, K^•)`. |
| 105 | CochainComplex AddCommGrpCat ℤ := |
| 106 | _root_.OAI.AlgebraicTopology.Sheaf.FlasqueBoundedBelow.TopCat.IsFlasque.BoundedBelowComplex.globalSectionsComplex K |
| 107 | |
| 108 | set_option backward.isDefEq.respectTransparency.types false in |
| 109 | set_option backward.isDefEq.respectTransparency false in |
| 110 | /-- Let `Y` be a topological space. This natural isomorphism identifies the functors `F ↦ Hom(ℤ_Y, |
| 111 | F)` and `F ↦ Γ(Y, F)` on sheaves of abelian groups, by evaluating each morphism at the constant |
| 112 | section `1`. -/ |
| 113 | def integerConstantHomIsoGlobalSectionsFunctor (Y : TopCat.{0}) : |
| 114 | preadditiveCoyoneda.obj (.op ((_root_.OAI.AlgebraicTopology.Sheaf.Constant.TopCat.constantFunctor Y).obj (AddCommGrpCat.of ℤ))) ≅ |
| 115 | _root_.OAI.AlgebraicTopology.Sheaf.FlasqueBoundedBelow.TopCat.IsFlasque.BoundedBelowComplex.globalSectionsFunctor Y := |
| 116 | NatIso.ofComponents |
| 117 | (fun F ↦ (integerConstantHomAddEquivGlobalSections F).toAddCommGrpIso) |
| 118 | (fun {F G} f ↦ by |
| 119 | apply AddCommGrpCat.hom_ext |
| 120 | ext g |
| 121 | change f.hom.app (.op (⊤ : Opens Y)) |
| 122 | (integerConstantHomAddEquivGlobalSections F g) = |
| 123 | integerConstantHomAddEquivGlobalSections G (g ≫ f) |
| 124 | exact (integerConstantHomAddEquivGlobalSections_naturality f g).symm) |
| 125 | |
| 126 | set_option backward.isDefEq.respectTransparency.types false in |
| 127 | set_option backward.isDefEq.respectTransparency false in |
| 128 | /-- Let `Y` be a topological space and `K` an integer-indexed complex of sheaves of abelian groups. |
| 129 | Evaluation at `1` gives this isomorphism of complexes `Hom^•(ℤ_Y[0], K) ≅ Γ(Y, K)`. -/ |
| 130 | def homComplexSingleIntegerIsoGlobalSections |
| 131 | (Y : TopCat.{0}) (K : CochainComplex (TopCat.Sheaf AddCommGrpCat Y) ℤ) : |
| 132 | CochainComplex.HomComplex (integerConstantSingleComplex Y) K ≅ |
| 133 | globalSectionsComplexInt Y K := |
| 134 | let pre := (inferInstance : Preadditive (TopCat.Sheaf AddCommGrpCat Y)) |
| 135 | letI : Preadditive (TopCat.Sheaf AddCommGrpCat Y) := pre |
| 136 | letI : (_root_.OAI.AlgebraicTopology.Sheaf.FlasqueBoundedBelow.TopCat.IsFlasque.BoundedBelowComplex.globalSectionsFunctor Y).PreservesZeroMorphisms := |
| 137 | Functor.preservesZeroMorphisms_of_additive _ |
| 138 | _root_.OAI.Algebra.Homology.HomComplexSingle.CochainComplex.HomComplex.fromSingleZeroIsoPreadditiveCoyoneda |
| 139 | ((_root_.OAI.AlgebraicTopology.Sheaf.Constant.TopCat.constantFunctor Y).obj (AddCommGrpCat.of ℤ)) K ≪≫ |
| 140 | (NatIso.mapHomologicalComplex (integerConstantHomIsoGlobalSectionsFunctor Y) |
| 141 | ℤᵘᵖ).app K |
| 142 | |
| 143 | end Sheaf |
| 144 | end TopCat |
| 145 | |
| 146 | section |
| 147 | namespace ComplexPoint |
| 148 | |
| 149 | open _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point |
| 150 | |
| 151 | variable (X : Over (Spec ↧ℂ)) |
| 152 | |
| 153 | local instance _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.bettiGlobalSectionsHasDerivedCategory : |
| 154 | HasDerivedCategory (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.AnalyticAdditiveSheaf X) := |
| 155 | HasDerivedCategory.standard (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.AnalyticAdditiveSheaf X) |
| 156 | |
| 157 | /-- Let `X` be a scheme over `ℂ`. This identifies two complexes on its analytic space: the constant |
| 158 | integer sheaf in degree zero first indexed by natural numbers and then extended by zero, and the |
| 159 | same sheaf placed directly in degree zero of an integer-indexed complex. -/ |
| 160 | def _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.constantIntegerSheafComplexIntIsoSingle : |
| 161 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.constantIntegerSheafComplexInt X ≅ |
| 162 | _root_.OAI.AlgebraicGeometry.Cohomology.GlobalSections.TopCat.Sheaf.integerConstantSingleComplex |
| 163 | (TopCat.of (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X)) := |
| 164 | HomologicalComplex.extendSingleIso ComplexShape.embeddingUpNat |
| 165 | 𝓒(↧(_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X); ℤ) 0 0 rfl |
| 166 | |
| 167 | end ComplexPoint |
| 168 | end |
| 169 | |
| 170 | end |
| 171 | |
| 172 | end OAI.AlgebraicGeometry.Cohomology.GlobalSections |