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