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.AlgebraicGeometry.ComplexPoint.BasicNe |
| 18 | import OAI.AlgebraicTopology.Singular.SheafCochainAt |
| 19 | import Mathlib.Algebra.Homology.Embedding.CochainComplex |
| 20 | import Mathlib.Algebra.Homology.Embedding.Extend |
| 21 | import Mathlib.AlgebraicGeometry.Morphisms.Smooth |
| 22 | import OAI.CategoryTheory.ConcreteCategory.Notation |
| 23 | import OAI.AlgebraicGeometry.ComplexPoint.Manifold |
| 24 | import Mathlib.Algebra.Homology.Embedding.ExtendHomology |
| 25 | |
| 26 | /-! # Singular Comparison -/ |
| 27 | |
| 28 | namespace OAI.AlgebraicGeometry.Cohomology.SingularComparison.ComplexPoint |
| 29 | |
| 30 | noncomputable section |
| 31 | |
| 32 | open _root_.AlgebraicGeometry |
| 33 | |
| 34 | /-! |
| 35 | # Singular cochains on smooth complex-point spaces |
| 36 | |
| 37 | The algebraic coordinate charts on a smooth complex scheme give a basis of open contractible |
| 38 | neighborhoods. Singular chains on each such neighborhood are exact in positive degree. Duality |
| 39 | therefore supplies local primitives for singular cochains. Together with the explicit degree-zero |
| 40 | calculation, this proves that the constant-sheaf-to-singular-cochain map is a quasi-isomorphism. |
| 41 | -/ |
| 42 | |
| 43 | open _root_.CategoryTheory _root_.TopologicalSpace |
| 44 | |
| 45 | variable (X : Over (Spec ↧ℂ)) (d : ℕ) |
| 46 | |
| 47 | /-- The constant-to-singular-cochain comparison on a smooth complex-point space is a |
| 48 | quasi-isomorphism in positive degrees. -/ |
| 49 | lemma _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.constantsToSingularCochain_quasiIsoAt_succ |
| 50 | [IsIntegral X.left] [Smooth X.hom] |
| 51 | (R : Type) [CommRing R] (n : ℕ) : |
| 52 | QuasiIsoAt |
| 53 | (AlgebraicTopology.Singular.SheafCochain.constantsToSingularCochainSheafComplex R |
| 54 | (TopCat.of (ComplexPoint.Basic.ComplexSchemePoint X))) (n + 1) := by |
| 55 | apply AlgebraicTopology.Singular.SheafCochainAt.constantsToSingularCochainSheafComplex_quasiIsoAt_succ_of_contractibleOpenBasis |
| 56 | exact fun x U hxU ↦ ComplexPoint.Basic.ComplexSchemePoint.exists_contractibleOpen_le X x U hxU |
| 57 | |
| 58 | /-- The constant-to-singular-cochain comparison on a smooth complex-point space is a |
| 59 | quasi-isomorphism in degree zero. -/ |
| 60 | lemma _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.constantsToSingularCochain_quasiIsoAt_zero |
| 61 | [IsIntegral X.left] [Smooth X.hom] |
| 62 | (R : Type) [CommRing R] : |
| 63 | QuasiIsoAt |
| 64 | (AlgebraicTopology.Singular.SheafCochain.constantsToSingularCochainSheafComplex R |
| 65 | (TopCat.of (ComplexPoint.Basic.ComplexSchemePoint X))) 0 := by |
| 66 | let : LocallyPathConnectedSpace (ComplexPoint.Basic.ComplexSchemePoint X) := |
| 67 | ComplexPoint.Basic.ComplexSchemePoint.locallyPathConnectedSpace X |
| 68 | exact |
| 69 | AlgebraicTopology.Singular.SheafCochainAt.constantsToSingularCochainSheafComplex_quasiIsoAt_zero |
| 70 | R (TopCat.of (ComplexPoint.Basic.ComplexSchemePoint X)) |
| 71 | |
| 72 | /-- On the analytic space of a smooth complex scheme, the constant sheaf is resolved by the |
| 73 | sheafified singular-cochain complex. -/ |
| 74 | lemma _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.constantsToSingularCochain_quasiIso |
| 75 | [IsIntegral X.left] [Smooth X.hom] |
| 76 | (R : Type) [CommRing R] : |
| 77 | QuasiIso |
| 78 | (AlgebraicTopology.Singular.SheafCochain.constantsToSingularCochainSheafComplex R |
| 79 | (TopCat.of (ComplexPoint.Basic.ComplexSchemePoint X))) := by |
| 80 | refine ⟨fun n ↦ ?_⟩ |
| 81 | cases n with |
| 82 | | zero => exact ComplexPoint.Basic.ComplexSchemePoint.constantsToSingularCochain_quasiIsoAt_zero X R |
| 83 | | succ n => exact ComplexPoint.Basic.ComplexSchemePoint.constantsToSingularCochain_quasiIsoAt_succ X R n |
| 84 | |
| 85 | /-- The sheafified singular-cochain complex, extended by zero to integer degrees. -/ |
| 86 | def _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.singularCochainSheafComplexInt (R : Type) [CommRing R] : |
| 87 | CochainComplex |
| 88 | (TopCat.Sheaf AddCommGrpCat (TopCat.of (ComplexPoint.Basic.ComplexSchemePoint X))) ℤ := |
| 89 | (AlgebraicTopology.Singular.SheafCochain.singularCochainSheafComplex R |
| 90 | (TopCat.of (ComplexPoint.Basic.ComplexSchemePoint X))).extend ComplexShape.embeddingUpNat |
| 91 | |
| 92 | instance (R : Type) [CommRing R] : |
| 93 | CochainComplex.IsStrictlyGE (ComplexPoint.Basic.ComplexSchemePoint.singularCochainSheafComplexInt X R) 0 := by |
| 94 | unfold ComplexPoint.Basic.ComplexSchemePoint.singularCochainSheafComplexInt |
| 95 | infer_instance |
| 96 | |
| 97 | /-- The constant coefficient sheaf complex, extended by zero to integer degrees. -/ |
| 98 | def _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.constantCoefficientSheafComplexInt (R : Type) [CommRing R] : |
| 99 | CochainComplex |
| 100 | (TopCat.Sheaf AddCommGrpCat (TopCat.of (ComplexPoint.Basic.ComplexSchemePoint X))) ℤ := |
| 101 | ((CochainComplex.single₀ |
| 102 | (TopCat.Sheaf AddCommGrpCat (TopCat.of (ComplexPoint.Basic.ComplexSchemePoint X)))).obj |
| 103 | 𝓒(↧(ComplexPoint.Basic.ComplexSchemePoint X); R)).extend ComplexShape.embeddingUpNat |
| 104 | |
| 105 | /-- The constant-to-singular comparison, extended by zero to integer degrees. -/ |
| 106 | def _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.constantsToSingularCochainComplexInt (R : Type) [CommRing R] : |
| 107 | ComplexPoint.Basic.ComplexSchemePoint.constantCoefficientSheafComplexInt X R ⟶ |
| 108 | ComplexPoint.Basic.ComplexSchemePoint.singularCochainSheafComplexInt X R := |
| 109 | HomologicalComplex.extendMap |
| 110 | (AlgebraicTopology.Singular.SheafCochain.constantsToSingularCochainSheafComplex R |
| 111 | (TopCat.of (ComplexPoint.Basic.ComplexSchemePoint X))) ComplexShape.embeddingUpNat |
| 112 | |
| 113 | /-- The integer-indexed constant-to-singular comparison remains a quasi-isomorphism. -/ |
| 114 | lemma _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.constantsToSingularCochainComplexInt_quasiIso |
| 115 | [IsIntegral X.left] [Smooth X.hom] |
| 116 | (R : Type) [CommRing R] : |
| 117 | QuasiIso (ComplexPoint.Basic.ComplexSchemePoint.constantsToSingularCochainComplexInt X R) := by |
| 118 | exact (HomologicalComplex.quasiIso_extendMap_iff |
| 119 | (AlgebraicTopology.Singular.SheafCochain.constantsToSingularCochainSheafComplex R |
| 120 | (TopCat.of (ComplexPoint.Basic.ComplexSchemePoint X))) ComplexShape.embeddingUpNat).mpr |
| 121 | (ComplexPoint.Basic.ComplexSchemePoint.constantsToSingularCochain_quasiIso X R) |
| 122 | |
| 123 | end |
| 124 | |
| 125 | end OAI.AlgebraicGeometry.Cohomology.SingularComparison.ComplexPoint |