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