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.Support.RelativeCohomologyEq |
| 7 | import OAI.AlgebraicTopology.Support.NeighborhoodPairImage |
| 8 | import OAI.AlgebraicTopology.Sheaf.OpenSheafification |
| 9 | |
| 10 | /-! # Relative Cohomology Open Transport -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicTopology.Support.RelativeCohomologyOpenTransport.Singular |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | /-! |
| 17 | # Open-embedding transport of the relative-cohomology sheaf |
| 18 | |
| 19 | The embedding homeomorphisms identify neighborhood/support pairs with their images, and |
| 20 | these identifications commute with pair inclusions, giving a presheaf isomorphism. |
| 21 | Sheafification then transports the normalized section, with the sheafification-unit |
| 22 | square displayed. |
| 23 | -/ |
| 24 | |
| 25 | open _root_.CategoryTheory Limits _root_.TopologicalSpace _root_.Topology Opposite |
| 26 | open scoped OAI.AlgebraicTopology.Support.RelativeCohomologySheaf.Singular |
| 27 | |
| 28 | variable {X Y : TopCat.{0}} (f : Y ⟶ X) (hf : IsOpenEmbedding f) |
| 29 | (S : Set X) (B : Set Y) (hB : f ⁻¹' S = B) |
| 30 | |
| 31 | /-- The pair-image identification respects neighborhood inclusions. -/ |
| 32 | theorem neighborhoodSupportPairImageIso_naturality {U V : Opens Y} (hUV : U ≤ V) : |
| 33 | LocalHomology.NormalProjectionCoclass.Singular.neighborhoodSupportInclusionPairMap (W := (U : Set Y)) (V := (V : Set Y)) hUV B ≫ |
| 34 | (NeighborhoodPairImage.Singular.neighborhoodSupportPairImageIso f hf.isEmbedding (V : Set Y) B S |
| 35 | (fun y _ => by rw [← hB]; rfl)).hom = |
| 36 | (NeighborhoodPairImage.Singular.neighborhoodSupportPairImageIso f hf.isEmbedding (U : Set Y) B S |
| 37 | (fun y _ => by rw [← hB]; rfl)).hom ≫ |
| 38 | LocalHomology.NormalProjectionCoclass.Singular.neighborhoodSupportInclusionPairMap |
| 39 | (W := (hf.functor.obj U : Set X)) (V := (hf.functor.obj V : Set X)) |
| 40 | (Set.image_mono hUV) S := rfl |
| 41 | |
| 42 | set_option backward.isDefEq.respectTransparency false in |
| 43 | set_option backward.defeqAttrib.useBackward true in |
| 44 | /-- Let `f: Y → X` be an open embedding of topological spaces, let `S ⊆ X`, and put `B = f⁻¹(S)`. |
| 45 | For a natural number `n`, pullback identifies the presheaves on `Y` given by `V ↦ H^n(f(V), f(V) |
| 46 | \ S; ℚ)` and `V ↦ H^n(V, V \ B; ℚ)`. The groups are relative singular cohomology, with |
| 47 | restriction maps induced by inclusions. -/ |
| 48 | def supportRelativeCohomologyPresheafOpenIso (n : ℕ) : |
| 49 | hf.functor.op ⋙ RelativeCohomologySheaf.Singular.supportRelativeCohomologyPresheaf X S n ≅ |
| 50 | RelativeCohomologySheaf.Singular.supportRelativeCohomologyPresheaf Y B n := |
| 51 | NatIso.ofComponents (fun V => |
| 52 | (NeighborhoodPairImage.Singular.neighborhoodSupportPairImageCohomologyEquiv f hf.isEmbedding (V.unop : Set Y) B S |
| 53 | (fun y _ => by rw [← hB]; rfl) n).toAddEquiv.toAddCommGrpIso) (by |
| 54 | intro U V g |
| 55 | apply AddCommGrpCat.hom_ext |
| 56 | ext a |
| 57 | change Singular.Cohomology.relativeCohomologyMap ℚ n |
| 58 | (NeighborhoodPairImage.Singular.neighborhoodSupportPairImageIso f hf.isEmbedding (V.unop : Set Y) B S |
| 59 | (fun y _ => by rw [← hB]; rfl)).hom |
| 60 | (Singular.Cohomology.relativeCohomologyMap ℚ n |
| 61 | (LocalHomology.NormalProjectionCoclass.Singular.neighborhoodSupportInclusionPairMap (Set.image_mono (leOfHom g.unop)) S) a) = |
| 62 | Singular.Cohomology.relativeCohomologyMap ℚ n |
| 63 | (LocalHomology.NormalProjectionCoclass.Singular.neighborhoodSupportInclusionPairMap (W := (V.unop : Set Y)) |
| 64 | (V := (U.unop : Set Y)) (leOfHom g.unop) B) |
| 65 | (Singular.Cohomology.relativeCohomologyMap ℚ n |
| 66 | (NeighborhoodPairImage.Singular.neighborhoodSupportPairImageIso f hf.isEmbedding (U.unop : Set Y) B S |
| 67 | (fun y _ => by rw [← hB]; rfl)).hom a) |
| 68 | rw [← LinearMap.comp_apply, ← Singular.CohomologyTo.relativeCohomologyMap_comp, |
| 69 | ← neighborhoodSupportPairImageIso_naturality f hf S B hB (leOfHom g.unop), |
| 70 | Singular.CohomologyTo.relativeCohomologyMap_comp] |
| 71 | rfl) |
| 72 | |
| 73 | /-- Let `f: Y → X` be an open embedding of topological spaces and `P` a presheaf of abelian groups |
| 74 | on `X`. Sheafifying the presheaf `V ↦ P(f(V))` gives the same sheaf on `Y` as restricting the |
| 75 | sheafification of `P` along `f`. This is the isomorphism induced by the sheafification unit. -/ |
| 76 | def supportOpenEmbeddingSheafificationIso (P : TopCat.Presheaf AddCommGrpCat X) : |
| 77 | (presheafToSheaf (Opens.grothendieckTopology Y) AddCommGrpCat).obj (hf.functor.op ⋙ P) ≅ |
| 78 | (hf.sheafPullback AddCommGrpCat).obj |
| 79 | ((presheafToSheaf (Opens.grothendieckTopology X) AddCommGrpCat).obj P) := |
| 80 | letI : hf.functor.IsContinuous (Opens.grothendieckTopology Y) (Opens.grothendieckTopology X) := |
| 81 | hf.functor_isContinuous |
| 82 | letI : hf.functor.IsCocontinuous (Opens.grothendieckTopology Y) (Opens.grothendieckTopology X) := |
| 83 | (Sheaf.OpenSheafification.Topology.IsOpenEmbedding.functor_isCocontinuous hf) |
| 84 | (hf.functor.pushforwardContinuousSheafificationCompatibility AddCommGrpCat |
| 85 | (Opens.grothendieckTopology Y) (Opens.grothendieckTopology X)).app P |
| 86 | |
| 87 | /-- Let `f: Y → X` be an open embedding of topological spaces, let `S ⊆ X`, and put `B = f⁻¹(S)`. |
| 88 | Write `𝓗^n_S` for the sheafification of `V ↦ H^n(V, V \ S; ℚ)`, and define `𝓗^n_B` on `Y` in the |
| 89 | same way. Pullback of relative singular cohomology gives this sheaf isomorphism `𝓗^n_B ≅ |
| 90 | f⁻¹𝓗^n_S`. -/ |
| 91 | def supportRelativeCohomologySheafOpenIso (n : ℕ) : |
| 92 | -- `𝓗^n_B` on `Y` is the restriction of `𝓗^n_S` along the open embedding `f`. |
| 93 | 𝓗_[B]^n(Y; ℚ) ≅ |
| 94 | -- Restriction of sheaves along `f`. |
| 95 | (hf.sheafPullback AddCommGrpCat).obj 𝓗_[S]^n(X; ℚ) := |
| 96 | (presheafToSheaf (Opens.grothendieckTopology Y) AddCommGrpCat).mapIso |
| 97 | (supportRelativeCohomologyPresheafOpenIso f hf S B hB n).symm ≪≫ |
| 98 | supportOpenEmbeddingSheafificationIso f hf (RelativeCohomologySheaf.Singular.supportRelativeCohomologyPresheaf X S n) |
| 99 | |
| 100 | /-- Let `f: Y → X` be an open embedding of topological spaces, let `S ⊆ X`, and put `B = f⁻¹(S)`. |
| 101 | Write `𝓗^n_S` for the sheafification of `V ↦ H^n(V, V \ S; ℚ)`, and define `𝓗^n_B` on `Y` in the |
| 102 | same way. This sends a global section of `𝓗^n_B` to a section of `𝓗^n_S` on the open image |
| 103 | `f(Y)`, using the homeomorphism of pairs induced by `f`. -/ |
| 104 | def supportRelativeCohomologySectionOpenImage (n : ℕ) |
| 105 | -- A global section of `𝓗^n_B` on `Y`. |
| 106 | (s : (𝓗_[B]^n(Y; ℚ)).presheaf.obj (op ⊤)) : |
| 107 | -- A section of `𝓗^n_S` on the open `f(Y) ⊆ X`. |
| 108 | (𝓗_[S]^n(X; ℚ)).presheaf.obj |
| 109 | -- The open `f(Y)`. |
| 110 | (op (hf.functor.obj ⊤)) := |
| 111 | (supportRelativeCohomologySheafOpenIso f hf S B hB n).hom.hom.app (op ⊤) s |
| 112 | |
| 113 | /-- Let `f: Y → X` be an open embedding of topological spaces, let `S ⊆ X`, and put `B = f⁻¹(S)`. |
| 114 | Write `𝓗^n_S` for the sheafification of `V ↦ H^n(V, V \ S; ℚ)`, and define `𝓗^n_B` on `Y` in the |
| 115 | same way. For a specified open `U = f(Y)`, this sends a global section of `𝓗^n_B` to a section |
| 116 | of `𝓗^n_S` on `U`, using the homeomorphism induced by `f` and the given equality of opens. -/ |
| 117 | def supportRelativeCohomologySectionOnOpen (n : ℕ) (U : Opens X) |
| 118 | (hU : hf.functor.obj ⊤ = U) |
| 119 | (s : (𝓗_[B]^n(Y; ℚ)).presheaf.obj (op ⊤)) : |
| 120 | (𝓗_[S]^n(X; ℚ)).presheaf.obj (op U) := |
| 121 | (𝓗_[S]^n(X; ℚ)).presheaf.map (eqToHom hU.symm).op |
| 122 | (supportRelativeCohomologySectionOpenImage f hf S B hB n s) |
| 123 | |
| 124 | end |
| 125 | |
| 126 | end OAI.AlgebraicTopology.Support.RelativeCohomologyOpenTransport.Singular |