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.AlgebraicTopology.LocalHomology.NormalProjectionTop |
| 7 | import OAI.AlgebraicTopology.Sheaf.MapOfLocalStalks |
| 8 | |
| 9 | /-! # Relative Cohomology Sheaf -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicTopology.Support.RelativeCohomologySheaf.Singular |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | /-! |
| 16 | # The local relative-cohomology presheaf and its sheafification |
| 17 | |
| 18 | For a support `S ⊆ X`, the value on `V` is the rational relative cohomology of the pair |
| 19 | `(V, V \ S)` as an additive group, with restrictions the pullbacks along inclusions of |
| 20 | these pairs, and the sheaf is its sheafification. This module also proves local vanishing |
| 21 | away from a closed support. |
| 22 | -/ |
| 23 | |
| 24 | open _root_.CategoryTheory Limits _root_.TopologicalSpace Opposite _root_.HomologicalComplex |
| 25 | open _root_.TopCat.Presheaf |
| 26 | |
| 27 | variable {M : Type} [TopologicalSpace M] |
| 28 | |
| 29 | @[simp] theorem neighborhoodSupportInclusionPairMap_id (W S : Set M) : |
| 30 | LocalHomology.NormalProjectionCoclass.Singular.neighborhoodSupportInclusionPairMap (show W ⊆ W from le_refl W) S = |
| 31 | 𝟙 (LocalHomology.FundamentalClass.Singular.neighborhoodSupportComplementPair W S) := rfl |
| 32 | |
| 33 | @[simp] theorem neighborhoodSupportInclusionPairMap_comp {U V W : Set M} |
| 34 | (hUV : U ⊆ V) (hVW : V ⊆ W) (S : Set M) : |
| 35 | LocalHomology.NormalProjectionCoclass.Singular.neighborhoodSupportInclusionPairMap hUV S ≫ LocalHomology.NormalProjectionCoclass.Singular.neighborhoodSupportInclusionPairMap hVW S = |
| 36 | LocalHomology.NormalProjectionCoclass.Singular.neighborhoodSupportInclusionPairMap (hUV.trans hVW) S := rfl |
| 37 | |
| 38 | variable (X : TopCat.{0}) (S : Set X) (n : ℕ) |
| 39 | |
| 40 | /-- Let `X` be a topological space, `S ⊆ X` a subset, and `n` a natural number. This presheaf of |
| 41 | abelian groups assigns to each open `V` the rational relative singular cohomology `H^n(V, V \ S; |
| 42 | ℚ)`. A class is a rational singular cocycle vanishing on simplices in `V \ S`, modulo |
| 43 | coboundaries of such cochains. Restrictions are induced by inclusions of pairs. -/ |
| 44 | def supportRelativeCohomologyPresheaf : TopCat.Presheaf AddCommGrpCat X where |
| 45 | -- `V ↦ H^n(V, V \ S; ℚ)`. |
| 46 | obj V := AddCommGrpCat.of (Singular.Cohomology.RelativeCohomology ℚ |
| 47 | (LocalHomology.FundamentalClass.Singular.neighborhoodSupportComplementPair (V.unop : Set X) S) n) |
| 48 | map {U V} f := AddCommGrpCat.ofHom |
| 49 | (Singular.Cohomology.relativeCohomologyMap ℚ n (LocalHomology.NormalProjectionCoclass.Singular.neighborhoodSupportInclusionPairMap |
| 50 | (W := (V.unop : Set X)) (V := (U.unop : Set X)) (leOfHom f.unop) S)).toAddMonoidHom |
| 51 | map_id V := by |
| 52 | change AddCommGrpCat.ofHom |
| 53 | (Singular.Cohomology.relativeCohomologyMap ℚ n |
| 54 | (LocalHomology.NormalProjectionCoclass.Singular.neighborhoodSupportInclusionPairMap (show (V.unop : Set X) ⊆ V.unop from le_refl _) S)).toAddMonoidHom = _ |
| 55 | rw [neighborhoodSupportInclusionPairMap_id, Singular.CohomologyTo.relativeCohomologyMap_id] |
| 56 | rfl |
| 57 | map_comp {U V W} f g := by |
| 58 | apply AddCommGrpCat.hom_ext |
| 59 | apply AddMonoidHom.ext |
| 60 | intro a |
| 61 | change Singular.Cohomology.relativeCohomologyMap ℚ n |
| 62 | (LocalHomology.NormalProjectionCoclass.Singular.neighborhoodSupportInclusionPairMap (W := (W.unop : Set X)) (V := (U.unop : Set X)) |
| 63 | (leOfHom (f ≫ g).unop) S) a = |
| 64 | Singular.Cohomology.relativeCohomologyMap ℚ n (LocalHomology.NormalProjectionCoclass.Singular.neighborhoodSupportInclusionPairMap |
| 65 | (W := (W.unop : Set X)) (V := (V.unop : Set X)) (leOfHom g.unop) S) |
| 66 | (Singular.Cohomology.relativeCohomologyMap ℚ n (LocalHomology.NormalProjectionCoclass.Singular.neighborhoodSupportInclusionPairMap |
| 67 | (W := (V.unop : Set X)) (V := (U.unop : Set X)) (leOfHom f.unop) S) a) |
| 68 | rw [← LinearMap.comp_apply, ← Singular.CohomologyTo.relativeCohomologyMap_comp, neighborhoodSupportInclusionPairMap_comp] |
| 69 | |
| 70 | /-- Let `X` be a topological space, `S ⊆ X` a subset, and `n` a natural number. The sheaf `𝓗^n_S` is |
| 71 | the sheafification of `V ↦ H^n(V, V \ S; ℚ)`, rational relative singular cohomology on open |
| 72 | subsets. Its sections are locally represented by these relative classes, with representatives |
| 73 | identified when they agree on smaller neighborhoods. -/ |
| 74 | def supportRelativeCohomologySheaf : TopCat.Sheaf AddCommGrpCat X := |
| 75 | -- The sheaf associated with `V ↦ H^n(V, V \ S; ℚ)`; write it `𝓗^n_S`. |
| 76 | (presheafToSheaf (Opens.grothendieckTopology X) AddCommGrpCat).obj |
| 77 | (supportRelativeCohomologyPresheaf X S n) |
| 78 | |
| 79 | /-- `𝓗_[S]^n(X; ℚ)` is the `n`-th rational relative-cohomology sheaf on `X` with support in `S`, |
| 80 | the sheaf associated with `V ↦ H^n(V, V \ S; ℚ)`. -/ |
| 81 | scoped notation:max "𝓗_[" S "]^" n:max "(" X "; " "ℚ" ")" => |
| 82 | supportRelativeCohomologySheaf X S n |
| 83 | |
| 84 | /-- Let `X` be a topological space, `S ⊆ X`, and `n` a natural number. This is the sheafification |
| 85 | map from the presheaf `V ↦ H^n(V, V \ S; ℚ)` to its associated sheaf `𝓗^n_S`. It sends a |
| 86 | relative singular class on an open `V` to the section represented by its germs. -/ |
| 87 | def supportRelativeCohomologyToSheaf : |
| 88 | supportRelativeCohomologyPresheaf X S n ⟶ (𝓗_[S]^n(X; ℚ)).obj := |
| 89 | toSheafify (Opens.grothendieckTopology X) _ |
| 90 | |
| 91 | /-- Let `X` be a topological space, `S ⊆ X`, `V ⊆ X` open, and `x ∈ V`. For a natural number `n`, |
| 92 | this sends a relative singular class in `H^n(V, V \ S; ℚ)` to its germ at `x` in the stalk of |
| 93 | the sheafification of `W ↦ H^n(W, W \ S; ℚ)`. -/ |
| 94 | def supportRelativeCohomologyGerm (V : Opens X) (x : X) (hx : x ∈ V) |
| 95 | -- A class in `H^n(V, V \ S; ℚ)`. |
| 96 | (a : Singular.Cohomology.RelativeCohomology ℚ (LocalHomology.FundamentalClass.Singular.neighborhoodSupportComplementPair (V : Set X) S) n) : |
| 97 | (𝓗_[S]^n(X; ℚ)).presheaf.stalk x := |
| 98 | (𝓗_[S]^n(X; ℚ)).presheaf.germ V x hx |
| 99 | ((supportRelativeCohomologyToSheaf X S n).app (op V) a) |
| 100 | |
| 101 | end |
| 102 | |
| 103 | end OAI.AlgebraicTopology.Support.RelativeCohomologySheaf.Singular |