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