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.Definitions.AlgebraicTopology.Sheaf.OpenInjectiveResolution |
| 20 | import HodgeConjecture.Definitions.AlgebraicGeometry.Hodge.Filtration |
| 21 | import Mathlib.Algebra.Homology.DerivedCategory.KInjective |
| 22 | |
| 23 | import HodgeConjecture.Mathlib.Algebra.Homology.Notation |
| 24 | |
| 25 | namespace OAI.AlgebraicGeometry.Cohomology.AmbientInjectiveResolution |
| 26 | |
| 27 | open _root_.AlgebraicGeometry |
| 28 | |
| 29 | /-! |
| 30 | # The chosen injective resolution of the constant rational sheaf |
| 31 | |
| 32 | `ℚ → I^•` is a chosen injective resolution of the constant rational sheaf on the analytic space |
| 33 | `X(ℂ)`, indexed by integers. It is K-injective. |
| 34 | -/ |
| 35 | |
| 36 | noncomputable section |
| 37 | |
| 38 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace |
| 39 | |
| 40 | section |
| 41 | namespace ComplexPoint |
| 42 | |
| 43 | variable (X : Over (Spec ↧ℂ)) |
| 44 | |
| 45 | /-- Let `X` be a scheme over `ℂ`. This is the complex `I^•` of sheaves of abelian groups in a chosen |
| 46 | injective resolution `ℚ → I^•` on the analytic space `X(ℂ)`. It is indexed by integers and is |
| 47 | zero in negative degrees. -/ |
| 48 | def _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.ambientRationalInjectiveComplex : |
| 49 | CochainComplex (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.AnalyticAdditiveSheaf X) ℤ := |
| 50 | -- An injective resolution `ℚ_{X(ℂ)} → I^•`. |
| 51 | (_root_.OAI.AlgebraicTopology.Sheaf.OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution |
| 52 | (TopCat.of (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X)) (AddCommGrpCat.of ℚ)).cocomplex.extend |
| 53 | ComplexShape.embeddingUpNat |
| 54 | |
| 55 | /-- Let `X` be a scheme over `ℂ`. This is the augmentation `ℚ[0] → I^•` of the chosen injective |
| 56 | resolution of the constant rational sheaf on the analytic space `X(ℂ)`, with both complexes |
| 57 | indexed by integers. -/ |
| 58 | def _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.ambientRationalInjectiveAugmentation : |
| 59 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.constantFieldSheafComplexInt ℚ X ⟶ |
| 60 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.ambientRationalInjectiveComplex X := |
| 61 | HomologicalComplex.extendMap |
| 62 | (_root_.OAI.AlgebraicTopology.Sheaf.OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution |
| 63 | (TopCat.of (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X)) (AddCommGrpCat.of ℚ)).ι |
| 64 | ComplexShape.embeddingUpNat |
| 65 | |
| 66 | instance _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.ambientRationalInjectiveAugmentation_quasiIso : |
| 67 | QuasiIso (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.ambientRationalInjectiveAugmentation X) := by |
| 68 | let I := _root_.OAI.AlgebraicTopology.Sheaf.OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution |
| 69 | (TopCat.of (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X)) (AddCommGrpCat.of ℚ) |
| 70 | let : QuasiIso I.ι := I.quasiIso |
| 71 | exact (HomologicalComplex.quasiIso_extendMap_iff I.ι _).mpr inferInstance |
| 72 | |
| 73 | instance _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.ambientRationalInjectiveComplex_injective (q : ℤ) : |
| 74 | Injective ((_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.ambientRationalInjectiveComplex X).X q) := |
| 75 | _root_.OAI.Algebra.Homology.LiftToInjective.CochainComplex.injective_extend_nat _ |
| 76 | (_root_.OAI.AlgebraicTopology.Sheaf.OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution |
| 77 | (TopCat.of (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X)) (AddCommGrpCat.of ℚ)).injective q |
| 78 | |
| 79 | instance _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.ambientRationalInjectiveComplex_isStrictlyGE : |
| 80 | (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.ambientRationalInjectiveComplex X).IsStrictlyGE 0 := by |
| 81 | dsimp only [_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.ambientRationalInjectiveComplex] |
| 82 | infer_instance |
| 83 | |
| 84 | local instance _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.rationalConeForgetSheafDerivedCategory : |
| 85 | HasDerivedCategory (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.AnalyticAdditiveSheaf X) := |
| 86 | HasDerivedCategory.standard (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.AnalyticAdditiveSheaf X) |
| 87 | |
| 88 | instance _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.ambientRationalInjectiveComplex_isKInjective : |
| 89 | (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.ambientRationalInjectiveComplex X).IsKInjective := |
| 90 | CochainComplex.isKInjective_of_injective _ 0 |
| 91 | |
| 92 | /-- The augmentation `ℚ[0] → I^•`, with the source the constant sheaf placed in degree zero. -/ |
| 93 | def _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.ambientRationalInjectiveSingleAugmentation : |
| 94 | (CochainComplex.singleFunctor (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.AnalyticAdditiveSheaf X) 0).obj 𝓒(↧(_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X); ℚ) ⟶ |
| 95 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.ambientRationalInjectiveComplex X := |
| 96 | (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.constantFieldSheafComplexIntIsoSingle ℚ X).inv ≫ _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.ambientRationalInjectiveAugmentation X |
| 97 | |
| 98 | instance _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.ambientRationalInjectiveSingleAugmentation_quasiIso : |
| 99 | QuasiIso (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.ambientRationalInjectiveSingleAugmentation X) := by |
| 100 | dsimp only [_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.ambientRationalInjectiveSingleAugmentation] |
| 101 | infer_instance |
| 102 | |
| 103 | |
| 104 | end ComplexPoint |
| 105 | end |
| 106 | |
| 107 | end |
| 108 | |
| 109 | end OAI.AlgebraicGeometry.Cohomology.AmbientInjectiveResolution |