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.Lemmas.AlgebraicTopology.Support.CohomologyFlasqueModel |
| 20 | import HodgeConjecture.Definitions.AlgebraicGeometry.Cohomology.AmbientInjectiveResolution |
| 21 | import HodgeConjecture.Definitions.AlgebraicGeometry.Cohomology.SupportedSingularModel |
| 22 | import HodgeConjecture.Definitions.AlgebraicGeometry.Cycle.Transport.CohomologySheaf |
| 23 | |
| 24 | import HodgeConjecture.Mathlib.Algebra.Homology.Notation |
| 25 | |
| 26 | namespace OAI.AlgebraicGeometry.Cohomology.WithSupport |
| 27 | |
| 28 | open scoped OAI.AlgebraicGeometry.Hodge.Filtration.ComplexPoint |
| 29 | |
| 30 | open _root_.AlgebraicGeometry |
| 31 | |
| 32 | /-! |
| 33 | # Cohomology of the analytic space with support in a closed set |
| 34 | |
| 35 | `H^n_Z(X(ℂ); K)` is the sheaf cohomology of `X(ℂ)` with support in the closed set `Z` and |
| 36 | coefficients in the constant sheaf `K`. Forgetting the support lands in `H^n(X(ℂ); K)`. With |
| 37 | rational coefficients the group is computed by the sections supported in `Z` of the chosen |
| 38 | injective resolution of `ℚ`, or of the sheafified singular cochains. |
| 39 | -/ |
| 40 | |
| 41 | noncomputable section |
| 42 | |
| 43 | open _root_.CategoryTheory Limits _root_.TopologicalSpace |
| 44 | |
| 45 | section |
| 46 | namespace ComplexPoint |
| 47 | |
| 48 | open _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point |
| 49 | |
| 50 | variable (K : Type) [Field K] (X : Over (Spec ↧ℂ)) |
| 51 | |
| 52 | set_option quotPrecheck false in |
| 53 | /-- `H_[Z]^n(X; K)` is the sheaf cohomology of the analytic space `X(ℂ)` with support in the closed |
| 54 | set `Z ⊆ X(ℂ)` and coefficients in the constant sheaf `K`, in degree `n`. -/ |
| 55 | scoped notation:max "H_[" Z "]^" n:max "(" X "; " K ")" => |
| 56 | _root_.OAI.AlgebraicTopology.Support.Cohomology.TopCat.Sheaf.supportH |
| 57 | (TopCat.of (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X)) Z |
| 58 | ((_root_.OAI.AlgebraicTopology.Sheaf.Constant.TopCat.constantFunctor |
| 59 | (TopCat.of (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X))).obj |
| 60 | (AddCommGrpCat.of K)) n |
| 61 | |
| 62 | variable (Z : Closeds (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X)) |
| 63 | |
| 64 | /-- `H^n_Z(X(ℂ); K) → H^n(X(ℂ); K)`, forgetting the support. -/ |
| 65 | def _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.forgetSupport (n : ℕ) : H_[Z]^n(X; K) →+ H^n(X; K) := |
| 66 | (_root_.OAI.CategoryTheory.Sites.SheafCohomologyPair.Sheaf.H'.addEquivTerminal isTerminalTop _ n).toAddMonoidHom.comp |
| 67 | (_root_.OAI.CategoryTheory.Sites.SheafCohomologyPair.Sheaf.relH.forget _ (homOfLE (le_top : Z.compl ≤ ⊤)) n) |
| 68 | |
| 69 | /-- Forgetting the support `X(ℂ)` itself is injective. -/ |
| 70 | lemma _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.forgetSupport_injective_of_eq_top (hZ : Z = ⊤) (n : ℕ) : |
| 71 | Function.Injective (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.forgetSupport K X Z n) := |
| 72 | (_root_.OAI.CategoryTheory.Sites.SheafCohomologyPair.Sheaf.H'.addEquivTerminal isTerminalTop _ n).injective.comp |
| 73 | (_root_.OAI.AlgebraicTopology.Support.Cohomology.TopCat.Sheaf.relH.forget_injective_of_eq_bot (TopCat.of (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X)) _ _ |
| 74 | (by rw [hZ]; ext; simp) n) |
| 75 | |
| 76 | set_option linter.auxLemma false in |
| 77 | attribute [local implicit_reducible] TopCat.Sheaf TopCat.instCategorySheaf._aux_1 |
| 78 | TopCat.instCategorySheaf._aux_3 TopCat.instCategorySheaf._aux_5 in |
| 79 | /-- `H^n_Z(X(ℂ); ℚ) ≃ H^n(Γ_Z(X(ℂ), I))` for the chosen injective resolution `ℚ → I`. -/ |
| 80 | def _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.rationalSupportAddEquivSupportedInjectiveHomology (n : ℕ) : |
| 81 | H_[Z]^n(X; ℚ) ≃+ |
| 82 | (((_root_.OAI.AlgebraicTopology.Support.DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation ↧(_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X) ⊤).mapHomologicalComplex ℤᵘᵖ).obj |
| 83 | (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.complexSupportInjectiveComplex X Z)).homology n := |
| 84 | @_root_.OAI.AlgebraicTopology.Support.CohomologyInjectiveModel.TopCat.Sheaf.relHAddEquivSupportedSectionsHomology (TopCat.of (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X)) Z.compl ⊤ |
| 85 | Z.compl (top_inf_eq _) (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.analyticHasExt X) _ (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.ambientRationalInjectiveComplex X) |
| 86 | (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.ambientRationalInjectiveComplex_isKInjective X) |
| 87 | (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.ambientRationalInjectiveSingleAugmentation X) |
| 88 | (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.ambientRationalInjectiveSingleAugmentation_quasiIso X) n |
| 89 | |
| 90 | section Singular |
| 91 | |
| 92 | open _root_.OAI.AlgebraicTopology.Singular |
| 93 | |
| 94 | variable [IsIntegral X.left] [Smooth X.hom] |
| 95 | |
| 96 | /-- The augmentation `ℚ[0] → C^•` of the sheafified rational singular cochains on `X(ℂ)`, indexed |
| 97 | by integers. -/ |
| 98 | def _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.rationalSingularAugmentation : |
| 99 | (CochainComplex.singleFunctor (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.AnalyticAdditiveSheaf X) 0).obj 𝓒(↧(_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X); ℚ) ⟶ |
| 100 | _root_.OAI.AlgebraicTopology.Support.SingularFlasqueModel.Singular.rationalSingularCochainComplex (TopCat.of (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X)) := |
| 101 | (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.constantFieldSheafComplexIntIsoSingle ℚ X).inv ≫ |
| 102 | HomologicalComplex.extendMap |
| 103 | (_root_.OAI.AlgebraicTopology.Singular.SheafCochain.constantsToSingularCochainSheafComplex ℚ (TopCat.of (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X))) |
| 104 | ComplexShape.embeddingUpNat |
| 105 | |
| 106 | instance _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.rationalSingularAugmentation_mono : Mono (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.rationalSingularAugmentation X) := by |
| 107 | dsimp only [_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.rationalSingularAugmentation] |
| 108 | exact @mono_comp _ _ _ _ _ _ inferInstance _ |
| 109 | (_root_.OAI.AlgebraicTopology.Singular.SheafCochainResolution.constantsToSingularCochainComplexInt_mono ℚ (TopCat.of (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X))) |
| 110 | |
| 111 | instance _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.rationalSingularAugmentation_quasiIso : QuasiIso (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.rationalSingularAugmentation X) := by |
| 112 | dsimp only [_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.rationalSingularAugmentation] |
| 113 | have : QuasiIso (HomologicalComplex.extendMap |
| 114 | (_root_.OAI.AlgebraicTopology.Singular.SheafCochain.constantsToSingularCochainSheafComplex ℚ (TopCat.of (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X))) |
| 115 | ComplexShape.embeddingUpNat) := |
| 116 | (HomologicalComplex.quasiIso_extendMap_iff _ _).mpr |
| 117 | (_root_.OAI.AlgebraicTopology.Singular.SheafCochainResolution.constantsToSingularCochainSheafComplex_quasiIso_of_contractibleOpenBasis ℚ |
| 118 | (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.exists_contractibleOpen_le X)) |
| 119 | exact quasiIso_comp _ _ (hφ := quasiIso_of_isIso _) (hφ' := this) |
| 120 | |
| 121 | variable [_root_.OAI.AlgebraicGeometry.Foundations.ProjectiveSpaceIs.IsProjective X.hom] |
| 122 | |
| 123 | set_option linter.auxLemma false in |
| 124 | attribute [local implicit_reducible] TopCat.Sheaf TopCat.instCategorySheaf._aux_1 |
| 125 | TopCat.instCategorySheaf._aux_3 TopCat.instCategorySheaf._aux_5 in |
| 126 | /-- `H^n_Z(X(ℂ); ℚ) ≃ H^n(Γ_Z(X(ℂ), C^•))` for the sheafified rational singular cochains `C^•`. -/ |
| 127 | def _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.rationalSupportAddEquivSupportedSingularHomology (n : ℕ) : |
| 128 | H_[Z]^n(X; ℚ) ≃+ |
| 129 | (((_root_.OAI.AlgebraicTopology.Support.DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation ↧(_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X) ⊤).mapHomologicalComplex ℤᵘᵖ).obj |
| 130 | (_root_.OAI.AlgebraicTopology.Support.SingularFlasqueModel.Singular.supportedRationalSingularCochainComplex (TopCat.of (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X)) Z.compl)).homology n := |
| 131 | letI : ∀ V : Opens (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X), ParacompactSpace V := _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.openParacompactSpace X |
| 132 | @_root_.OAI.AlgebraicTopology.Support.CohomologyFlasqueModel.TopCat.Sheaf.relHAddEquivSupportedSectionsHomologyOfFlasque (TopCat.of (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X)) |
| 133 | 𝓒(↧(_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X); ℚ) (_root_.OAI.AlgebraicTopology.Support.SingularFlasqueModel.Singular.rationalSingularCochainComplex (TopCat.of (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X))) |
| 134 | (_root_.OAI.AlgebraicTopology.Support.SingularFlasqueModel.Singular.rationalSingularCochainComplex_isStrictlyGE _) (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.rationalSingularAugmentation X) |
| 135 | (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.rationalSingularAugmentation_mono X) (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.rationalSingularAugmentation_quasiIso X) |
| 136 | Z.compl ⊤ Z.compl (top_inf_eq _) |
| 137 | (fun n => _root_.OAI.AlgebraicTopology.Support.SingularFlasqueModel.Singular.rationalSingularCochainComplex_isFlasque (TopCat.of (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X)) n) |
| 138 | (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.analyticHasExt X) n |
| 139 | |
| 140 | end Singular |
| 141 | |
| 142 | end ComplexPoint |
| 143 | end |
| 144 | |
| 145 | end |
| 146 | |
| 147 | end OAI.AlgebraicGeometry.Cohomology.WithSupport |