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 Mathlib.Algebra.Homology.DerivedCategory.RightDerivedFunctorPlus |
| 9 | import Mathlib.CategoryTheory.Abelian.GrothendieckCategory.EnoughInjectives |
| 10 | import Mathlib.Topology.Sheaves.Abelian |
| 11 | import Mathlib.Topology.Sheaves.Functors |
| 12 | import Mathlib.Topology.Sets.Closeds |
| 13 | |
| 14 | namespace OAI.AlgebraicTopology.Support.DerivedSections |
| 15 | |
| 16 | open _root_.TopCat |
| 17 | open _root_.TopCat.Sheaf |
| 18 | |
| 19 | /-! |
| 20 | # Concrete sheaf sections with support and their right derived functor |
| 21 | |
| 22 | For an open subset `U` of `X`, restriction gives a natural map `F → j_* (F|_U)`. |
| 23 | Its kernel is the sheaf of sections supported on the closed complement of `U`. |
| 24 | This file constructs that additive functor and its right derived functor on the |
| 25 | bounded-below derived category using Mathlib's injective-resolution machinery. |
| 26 | |
| 27 | Both the sheaf-valued local cohomology operation, conventionally `RΓ_Z`, and |
| 28 | the abelian-group-valued derived global sections `RΓ_Z` are constructed, with |
| 29 | different source and target categories displayed explicitly. |
| 30 | |
| 31 | The identification of Borel--Moore homology with supported cohomology, the comparison with the |
| 32 | project's restriction mapping-cone model, and coherent commutation with shifts are separate |
| 33 | theorems. |
| 34 | -/ |
| 35 | |
| 36 | noncomputable section |
| 37 | |
| 38 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 39 | |
| 40 | universe u |
| 41 | |
| 42 | namespace TopCat |
| 43 | open _root_.TopCat |
| 44 | namespace Sheaf |
| 45 | open _root_.TopCat |
| 46 | open _root_.TopCat.Sheaf |
| 47 | |
| 48 | variable (X : TopCat.{u}) |
| 49 | |
| 50 | /-- Let `X` be a topological space, `U ⊆ X` an open subset, and `j : U → X` the inclusion. This |
| 51 | functor sends a sheaf of abelian groups `F` to `j_*(F|_U)`. Its sections on an open `V ⊆ X` are |
| 52 | the sections `F(V ∩ U)`. -/ |
| 53 | def openRestrictionPushforward (U : Opens X) : |
| 54 | Sheaf AddCommGrpCat.{u} X ⥤ Sheaf AddCommGrpCat.{u} X := |
| 55 | U.isOpenEmbedding.sheafPullback AddCommGrpCat ⋙ |
| 56 | pushforward AddCommGrpCat U.inclusion' |
| 57 | |
| 58 | /-- Let `X` be a topological space and `U ⊆ X` open. This natural transformation sends a sheaf of |
| 59 | abelian groups `F` to the restriction morphism `F → j_*(F|_U)`, where `j : U → X` is inclusion. |
| 60 | On each open `V`, it is restriction `F(V) → F(V ∩ U)`. -/ |
| 61 | def toOpenRestrictionPushforward (U : Opens X) : |
| 62 | 𝟭 (Sheaf AddCommGrpCat.{u} X) ⟶ openRestrictionPushforward X U where |
| 63 | app F := ⟨{ |
| 64 | app V := F.obj.map (U.isOpenEmbedding.isOpenMap.adjunction.counit.app V.unop).op |
| 65 | naturality V W f := by |
| 66 | change F.obj.map f ≫ F.obj.map _ = F.obj.map _ ≫ F.obj.map _ |
| 67 | rw [← F.obj.map_comp, ← F.obj.map_comp] |
| 68 | congr 1 }⟩ |
| 69 | naturality F G f := by |
| 70 | apply CategoryTheory.Sheaf.hom_ext_iff.mpr |
| 71 | ext V : 2 |
| 72 | exact (f.hom.naturality _).symm |
| 73 | |
| 74 | /-- Let `X` be a topological space, `U` and `V` open subsets, and `F` a sheaf of abelian groups on |
| 75 | `X`. This is the identification `(j_*(F|_U))(V) ≅ F(V ∩ U)`, where `j : U → X` is the inclusion. -/ |
| 76 | def supportedOutsideIntersectionIso (U V : Opens X) (F : Sheaf AddCommGrpCat.{u} X) : |
| 77 | ((openRestrictionPushforward X U).obj F).presheaf.obj (op V) ≅ F.presheaf.obj (op (V ⊓ U)) := |
| 78 | F.obj.mapIso (eqToIso (congrArg op (Opens.functor_map_eq_inf U V))) |
| 79 | |
| 80 | /-- Let `X` be a topological space and `U ⊆ X` open. The functor `Γ_{X \ U}` sends a sheaf of |
| 81 | abelian groups `F` to the kernel of restriction `F → j_*(F|_U)`, where `j : U → X` is inclusion. |
| 82 | On an open `V`, its sections are those sections of `F(V)` that vanish on `V ∩ U`, or |
| 83 | equivalently have support in the closed set `X \ U`. -/ |
| 84 | def sheafSectionsSupportedOutside (U : Opens X) : |
| 85 | -- `F ↦ Γ_{X \ U}(F)`, the subsheaf of sections that vanish on `U`. |
| 86 | Sheaf AddCommGrpCat.{u} X ⥤ Sheaf AddCommGrpCat.{u} X where |
| 87 | obj F := kernel ((toOpenRestrictionPushforward X U).app F) |
| 88 | map f := kernel.map _ _ f ((openRestrictionPushforward X U).map f) |
| 89 | ((toOpenRestrictionPushforward X U).naturality f).symm |
| 90 | map_id F := by |
| 91 | apply (cancel_mono (kernel.ι _)).1 |
| 92 | simp |
| 93 | map_comp f g := by |
| 94 | apply (cancel_mono (kernel.ι _)).1 |
| 95 | simp |
| 96 | |
| 97 | set_option backward.isDefEq.respectTransparency false in |
| 98 | instance (U : Opens X) : (sheafSectionsSupportedOutside X U).Additive where |
| 99 | map_add {F G} f g := by |
| 100 | apply (cancel_mono (kernel.ι _)).1 |
| 101 | simp [sheafSectionsSupportedOutside, Preadditive.add_comp, Preadditive.comp_add] |
| 102 | |
| 103 | /-- Let `X` be a topological space, `U ⊆ X` open, and `F` a sheaf of abelian groups. This natural |
| 104 | morphism `Γ_{X \ U}(F) → F` includes sections that vanish on `U` into all sections of `F`. -/ |
| 105 | def sheafSectionsSupportedOutsideInclusion (U : Opens X) : |
| 106 | sheafSectionsSupportedOutside X U ⟶ 𝟭 (Sheaf AddCommGrpCat.{u} X) where |
| 107 | app F := kernel.ι ((toOpenRestrictionPushforward X U).app F) |
| 108 | naturality F G f := by simp [sheafSectionsSupportedOutside] |
| 109 | |
| 110 | /-- Restriction to the empty open subspace and pushforward gives the zero sheaf. -/ |
| 111 | lemma isZero_openRestrictionPushforward_bot (F : Sheaf AddCommGrpCat.{u} X) : |
| 112 | IsZero ((openRestrictionPushforward X ⊥).obj F) := |
| 113 | (pushforward AddCommGrpCat (⊥ : Opens X).inclusion').map_isZero |
| 114 | ((isZero_iff_stalkFunctor_obj_isZero _).2 fun x => False.elim x.property) |
| 115 | |
| 116 | instance (F : Sheaf AddCommGrpCat.{u} X) : |
| 117 | IsIso ((sheafSectionsSupportedOutsideInclusion X ⊥).app F) := by |
| 118 | change IsIso (kernel.ι ((toOpenRestrictionPushforward X ⊥).app F)) |
| 119 | rw [(isZero_openRestrictionPushforward_bot X F).eq_zero_of_tgt |
| 120 | ((toOpenRestrictionPushforward X ⊥).app F)] |
| 121 | infer_instance |
| 122 | |
| 123 | local instance supportSheafHasDerivedCategory : |
| 124 | HasDerivedCategory (Sheaf AddCommGrpCat.{u} X) := |
| 125 | HasDerivedCategory.standard (Sheaf AddCommGrpCat.{u} X) |
| 126 | |
| 127 | local instance supportGroupsHasDerivedCategory : HasDerivedCategory AddCommGrpCat.{u} := |
| 128 | HasDerivedCategory.standard AddCommGrpCat.{u} |
| 129 | |
| 130 | end Sheaf |
| 131 | end TopCat |
| 132 | |
| 133 | end |
| 134 | |
| 135 | end OAI.AlgebraicTopology.Support.DerivedSections |