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 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | This file has been modified. |
| 5 | -/ |
| 6 | import OAI.Algebra.Homology.Notation |
| 7 | import OAI.AlgebraicTopology.Support.FlasqueComparison |
| 8 | import OAI.AlgebraicTopology.Sheaf.OpenInjectiveTo |
| 9 | import OAI.AlgebraicTopology.Sheaf.FlasqueExtendNat |
| 10 | import OAI.AlgebraicTopology.Singular.SheafCochainResolution |
| 11 | |
| 12 | /-! # Singular Flasque Model -/ |
| 13 | |
| 14 | namespace OAI.AlgebraicTopology.Support.SingularFlasqueModel.Singular |
| 15 | |
| 16 | noncomputable section |
| 17 | |
| 18 | /-! |
| 19 | # Singular-cochain models for supported injective resolutions |
| 20 | |
| 21 | On a space with a contractible open basis, the singular-cochain augmentation resolves the |
| 22 | constant rational sheaf, and we extend that augmentation to the fixed injective resolution |
| 23 | with a strict normalization. On a hereditarily paracompact Hausdorff space the singular model |
| 24 | is termwise flasque, so the supported comparison is a quasi-isomorphism on sheaves and on |
| 25 | every open set. The contractible basis is a hypothesis of these generic topological lemmas, |
| 26 | constructed for the smooth complex-point application below. |
| 27 | -/ |
| 28 | |
| 29 | open _root_.CategoryTheory Limits _root_.TopologicalSpace _root_.HomologicalComplex |
| 30 | |
| 31 | variable (X : TopCat.{0}) |
| 32 | |
| 33 | /-- Let `X` be a topological space. This complex of sheaves is obtained by sheafifying the |
| 34 | presheaves of rational singular cochains degree by degree. Its differential is induced by the |
| 35 | singular coboundary, and it is extended by zero to negative integer degrees. -/ |
| 36 | def rationalSingularCochainComplex : CochainComplex (TopCat.Sheaf AddCommGrpCat X) ℤ := |
| 37 | (Singular.SheafCochain.singularCochainSheafComplex ℚ X).extend ComplexShape.embeddingUpNat |
| 38 | |
| 39 | /-- Let `X` be a topological space. This is the integer-indexed complex in a chosen injective |
| 40 | resolution `ℚ_X → I^•` of the constant rational sheaf, with zero terms in negative degrees. -/ |
| 41 | def rationalConstantInjectiveComplex : CochainComplex (TopCat.Sheaf AddCommGrpCat X) ℤ := |
| 42 | -- An injective resolution `ℚ_X → I^•`. |
| 43 | (AlgebraicTopology.Sheaf.OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution X (AddCommGrpCat.of ℚ)).cocomplex.extend |
| 44 | ComplexShape.embeddingUpNat |
| 45 | |
| 46 | instance rationalSingularCochainComplex_isStrictlyGE : |
| 47 | (rationalSingularCochainComplex X).IsStrictlyGE 0 := by |
| 48 | dsimp [rationalSingularCochainComplex] |
| 49 | infer_instance |
| 50 | |
| 51 | instance rationalConstantInjectiveComplex_isStrictlyGE : |
| 52 | (rationalConstantInjectiveComplex X).IsStrictlyGE 0 := by |
| 53 | dsimp [rationalConstantInjectiveComplex] |
| 54 | infer_instance |
| 55 | |
| 56 | instance rationalConstantInjectiveComplex_injective (n : ℤ) : |
| 57 | Injective ((rationalConstantInjectiveComplex X).X n) := |
| 58 | Algebra.Homology.LiftToInjective.CochainComplex.injective_extend_nat _ |
| 59 | (AlgebraicTopology.Sheaf.OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution X (AddCommGrpCat.of ℚ)).injective n |
| 60 | |
| 61 | variable (hX : ∀ (x : X) (V : Opens X), x ∈ V → |
| 62 | ∃ (W : Opens X), x ∈ W ∧ ContractibleSpace W ∧ W ≤ V) |
| 63 | |
| 64 | /-- Let `X` be a topological space with a basis of contractible open sets. Write `C^•` for the |
| 65 | sheafified rational singular cochains and `ℚ_X → I^•` for a chosen injective resolution. This |
| 66 | chooses a map `C^• → I^•` whose composite with the constant-cochain inclusion `ℚ_X[0] → C^•` |
| 67 | equals the resolution augmentation. Complexes are indexed by natural numbers. -/ |
| 68 | def singularToConstantInjectiveResolution : |
| 69 | Singular.SheafCochain.singularCochainSheafComplex ℚ X ⟶ |
| 70 | (AlgebraicTopology.Sheaf.OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution X (AddCommGrpCat.of ℚ)).cocomplex := |
| 71 | letI : Mono (Singular.SheafCochain.constantsToSingularCochainSheafComplex ℚ X) := |
| 72 | Singular.SheafCochainResolution.constantsToSingularCochainSheafComplex_mono ℚ X |
| 73 | letI : QuasiIso (Singular.SheafCochain.constantsToSingularCochainSheafComplex ℚ X) := |
| 74 | Singular.SheafCochainResolution.constantsToSingularCochainSheafComplex_quasiIso_of_contractibleOpenBasis ℚ hX |
| 75 | Algebra.Homology.LiftToInjective.CochainComplex.liftToInjectiveNat (Singular.SheafCochain.constantsToSingularCochainSheafComplex ℚ X) |
| 76 | (AlgebraicTopology.Sheaf.OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution X (AddCommGrpCat.of ℚ)).ι |
| 77 | (AlgebraicTopology.Sheaf.OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution X (AddCommGrpCat.of ℚ)).injective |
| 78 | |
| 79 | /-- The comparison fixes the prescribed rational constant augmentation exactly. -/ |
| 80 | @[reassoc (attr := simp)] |
| 81 | lemma constants_comp_singularToConstantInjectiveResolution : |
| 82 | Singular.SheafCochain.constantsToSingularCochainSheafComplex ℚ X ≫ singularToConstantInjectiveResolution X hX = |
| 83 | (AlgebraicTopology.Sheaf.OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution X (AddCommGrpCat.of ℚ)).ι := by |
| 84 | let : Mono (Singular.SheafCochain.constantsToSingularCochainSheafComplex ℚ X) := |
| 85 | Singular.SheafCochainResolution.constantsToSingularCochainSheafComplex_mono ℚ X |
| 86 | let : QuasiIso (Singular.SheafCochain.constantsToSingularCochainSheafComplex ℚ X) := |
| 87 | Singular.SheafCochainResolution.constantsToSingularCochainSheafComplex_quasiIso_of_contractibleOpenBasis ℚ hX |
| 88 | exact AlgebraicTopology.Sheaf.OpenInjectiveTo.CochainComplex.comp_liftToInjectiveNat _ _ |
| 89 | (AlgebraicTopology.Sheaf.OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution X (AddCommGrpCat.of ℚ)).injective |
| 90 | |
| 91 | instance singularToConstantInjectiveResolution_quasiIso : |
| 92 | QuasiIso (singularToConstantInjectiveResolution X hX) := by |
| 93 | let a := Singular.SheafCochain.constantsToSingularCochainSheafComplex ℚ X |
| 94 | let : QuasiIso a := |
| 95 | Singular.SheafCochainResolution.constantsToSingularCochainSheafComplex_quasiIso_of_contractibleOpenBasis ℚ hX |
| 96 | have : QuasiIso (a ≫ singularToConstantInjectiveResolution X hX) := by |
| 97 | rw [constants_comp_singularToConstantInjectiveResolution] |
| 98 | exact (AlgebraicTopology.Sheaf.OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution X (AddCommGrpCat.of ℚ)).quasiIso |
| 99 | exact quasiIso_of_comp_left a _ |
| 100 | |
| 101 | /-- Let `X` be a topological space with a basis of contractible open sets. This map from sheafified |
| 102 | rational singular cochains to a chosen injective resolution of `ℚ_X` extends the identity on |
| 103 | constant coefficients. Both complexes are indexed by integers and zero in negative degrees. -/ |
| 104 | def singularToConstantInjectiveComplex : |
| 105 | rationalSingularCochainComplex X ⟶ rationalConstantInjectiveComplex X := |
| 106 | HomologicalComplex.extendMap (singularToConstantInjectiveResolution X hX) |
| 107 | ComplexShape.embeddingUpNat |
| 108 | |
| 109 | instance singularToConstantInjectiveComplex_quasiIso : |
| 110 | QuasiIso (singularToConstantInjectiveComplex X hX) := |
| 111 | (HomologicalComplex.quasiIso_extendMap_iff _ _).mpr inferInstance |
| 112 | |
| 113 | /-- Let `X` be a topological space and `U ⊆ X` open. In each nonnegative degree, take the kernel of |
| 114 | restriction of the sheafified rational singular cochains to `U`. These are the sheaf sections |
| 115 | supported in the closed set `X \ U`. Singular coboundaries give the differentials, and |
| 116 | negative-degree terms are zero. -/ |
| 117 | def supportedRationalSingularCochainComplex (U : Opens X) : |
| 118 | CochainComplex (TopCat.Sheaf AddCommGrpCat X) ℤ := |
| 119 | -- `Γ_{X \ U}` applied to the sheaf complex of rational singular cochains. |
| 120 | ((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X U).mapHomologicalComplex ℤᵘᵖ).obj |
| 121 | -- The sheaf complex `C^•_sing(-; ℚ)`. |
| 122 | (rationalSingularCochainComplex X) |
| 123 | |
| 124 | /-- Let `X` have a basis of contractible open sets and let `U ⊆ X` be open. This map `Γ_{X \ U}(C^•) |
| 125 | → Γ_{X \ U}(I^•)` restricts the augmentation-preserving comparison from sheafified rational |
| 126 | singular cochains `C^•` to an injective resolution `I^•` of `ℚ_X` to the subsheaves of sections |
| 127 | vanishing on `U`. -/ |
| 128 | def supportedSingularToInjectiveComplex (U : Opens X) : |
| 129 | supportedRationalSingularCochainComplex X U ⟶ |
| 130 | ((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X U).mapHomologicalComplex ℤᵘᵖ).obj |
| 131 | (rationalConstantInjectiveComplex X) := |
| 132 | ((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X U).mapHomologicalComplex ℤᵘᵖ).map |
| 133 | (singularToConstantInjectiveComplex X hX) |
| 134 | |
| 135 | variable [T2Space X] [∀ V : Opens X, ParacompactSpace V] |
| 136 | |
| 137 | instance rationalSingularCochainComplex_isFlasque (n : ℤ) : |
| 138 | ((rationalSingularCochainComplex X).X n).IsFlasque := by |
| 139 | apply AlgebraicTopology.Sheaf.FlasqueExtendNat.TopCat.extendNat_term_isFlasque |
| 140 | intro m |
| 141 | change (Singular.SheafCochain.singularCochainSheaf ℚ X m).IsFlasque |
| 142 | infer_instance |
| 143 | |
| 144 | /-- Supported singular cochains compute the supported injective model, at the level of sheaf |
| 145 | complexes. -/ |
| 146 | instance supportedSingularToInjectiveComplex_quasiIso (U : Opens X) : |
| 147 | QuasiIso (supportedSingularToInjectiveComplex X hX U) := |
| 148 | FlasqueComparison.TopCat.Sheaf.sheafSectionsSupportedOutside_map_quasiIso_of_flasque X U |
| 149 | (singularToConstantInjectiveComplex X hX) 0 0 (fun _ => inferInstance) (fun _ => inferInstance) |
| 150 | |
| 151 | end |
| 152 | |
| 153 | end OAI.AlgebraicTopology.Support.SingularFlasqueModel.Singular |