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