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 | import OAI.AlgebraicTopology.Cohomology.Singular.SheafQuasiIso |
| 2 | import Mathlib.Topology.Sheaves.Flasque |
| 3 | import Mathlib.Topology.Sheaves.Functors |
| 4 | import Mathlib.Topology.Sheaves.SheafCondition.UniqueGluing |
| 5 | import Mathlib.Algebra.Homology.ShortComplex.ModuleCat |
| 6 | import Mathlib.CategoryTheory.Sites.Limits |
| 7 | |
| 8 | /-! # Sheaf Closed Support -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.SheafClosedSupport |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! |
| 15 | # Sections of a module sheaf with closed support |
| 16 | |
| 17 | For an open subset `O`, the closed support is its complement. The sheaf of |
| 18 | sections supported there is the actual kernel of restriction to `O` and |
| 19 | pushforward to the ambient space. Its sections have exactly the expected |
| 20 | vanishing condition, and it is flasque whenever the original sheaf is flasque. |
| 21 | -/ |
| 22 | |
| 23 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite _root_.TopologicalSpace |
| 24 | |
| 25 | set_option backward.defeqAttrib.useBackward true |
| 26 | set_option backward.isDefEq.respectTransparency false |
| 27 | set_option backward.isDefEq.respectTransparency.types false |
| 28 | |
| 29 | namespace Cohomology |
| 30 | |
| 31 | variable {R : Type} [Ring R] {X : TopCat.{0}} |
| 32 | |
| 33 | /-- Intersection with the open complement of the prescribed closed support. -/ |
| 34 | def supportOpenIntersection (O : Opens X) : Opens X ⥤ Opens X where |
| 35 | obj U := U ⊓ O |
| 36 | map i := homOfLE (inf_le_inf_right O (leOfHom i)) |
| 37 | |
| 38 | /-- The actual restriction-pushforward presheaf has sections `F(U ∩ O)`. -/ |
| 39 | def openRestrictionPushforwardPresheafIso (O : Opens X) |
| 40 | (F : TopCat.Sheaf (ModuleCat.{0} R) X) : |
| 41 | ((TopCat.Sheaf.pushforward (ModuleCat.{0} R) O.inclusion').obj |
| 42 | ((O.sheafRestrict (C := ModuleCat.{0} R)).obj F)).obj ≅ |
| 43 | (supportOpenIntersection O).op ⋙ F.obj := |
| 44 | NatIso.ofComponents |
| 45 | (fun U => F.obj.mapIso (eqToIso (congrArg op (Opens.functor_map_eq_inf O U.unop)))) |
| 46 | (by |
| 47 | intro U V i |
| 48 | dsimp [supportOpenIntersection] |
| 49 | rw [← F.obj.map_comp, ← F.obj.map_comp] |
| 50 | congr 1) |
| 51 | |
| 52 | /-- The restriction-pushforward sheaf, written with literal intersection opens. -/ |
| 53 | def openRestrictionPushforwardSheaf (O : Opens X) |
| 54 | (F : TopCat.Sheaf (ModuleCat.{0} R) X) : TopCat.Sheaf (ModuleCat.{0} R) X := |
| 55 | ⟨(supportOpenIntersection O).op ⋙ F.obj, |
| 56 | TopCat.Presheaf.isSheaf_of_iso (openRestrictionPushforwardPresheafIso O F) |
| 57 | (((TopCat.Sheaf.pushforward (ModuleCat.{0} R) O.inclusion').obj |
| 58 | ((O.sheafRestrict (C := ModuleCat.{0} R)).obj F)).property)⟩ |
| 59 | |
| 60 | /-- The intersection description is canonically the usual `j_* (F|O)`. -/ |
| 61 | def openRestrictionPushforwardSheafIso (O : Opens X) |
| 62 | (F : TopCat.Sheaf (ModuleCat.{0} R) X) : |
| 63 | (TopCat.Sheaf.pushforward (ModuleCat.{0} R) O.inclusion').obj |
| 64 | ((O.sheafRestrict (C := ModuleCat.{0} R)).obj F) ≅ |
| 65 | openRestrictionPushforwardSheaf O F := |
| 66 | (fullyFaithfulSheafToPresheaf (Opens.grothendieckTopology X) |
| 67 | (ModuleCat.{0} R)).preimageIso (openRestrictionPushforwardPresheafIso O F) |
| 68 | |
| 69 | /-- Restriction followed by pushforward acts on actual sheaf morphisms. -/ |
| 70 | def openRestrictionPushforwardFunctor (O : Opens X) : |
| 71 | TopCat.Sheaf (ModuleCat.{0} R) X ⥤ TopCat.Sheaf (ModuleCat.{0} R) X where |
| 72 | obj F := openRestrictionPushforwardSheaf O F |
| 73 | map f := ⟨Functor.whiskerLeft (supportOpenIntersection O).op f.hom⟩ |
| 74 | |
| 75 | instance openRestrictionPushforwardFunctor_additive (O : Opens X) : |
| 76 | (openRestrictionPushforwardFunctor (R := R) O).Additive where |
| 77 | map_add := rfl |
| 78 | |
| 79 | /-- Restriction from `F(U)` to `F(U ∩ O)`. -/ |
| 80 | def sheafRestrictionToOpen (O : Opens X) |
| 81 | (F : TopCat.Sheaf (ModuleCat.{0} R) X) : |
| 82 | F ⟶ openRestrictionPushforwardSheaf O F := |
| 83 | ⟨{ app U := F.obj.map (homOfLE (inf_le_left : U.unop ⊓ O ≤ U.unop)).op |
| 84 | naturality U V i := by |
| 85 | dsimp [openRestrictionPushforwardSheaf, supportOpenIntersection] |
| 86 | rw [← F.obj.map_comp, ← F.obj.map_comp] |
| 87 | congr 1 }⟩ |
| 88 | |
| 89 | /-- The restriction maps form a natural transformation on sheaves. -/ |
| 90 | def sheafRestrictionToOpenNatTrans (O : Opens X) : |
| 91 | 𝟭 (TopCat.Sheaf (ModuleCat.{0} R) X) ⟶ openRestrictionPushforwardFunctor O where |
| 92 | app F := sheafRestrictionToOpen O F |
| 93 | naturality F G f := by |
| 94 | apply CategoryTheory.Sheaf.hom_ext |
| 95 | apply NatTrans.ext |
| 96 | funext U |
| 97 | exact (f.hom.naturality (homOfLE (inf_le_left : U.unop ⊓ O ≤ U.unop)).op).symm |
| 98 | |
| 99 | /-- The sheaf of sections supported in the closed set `X \ O`. -/ |
| 100 | def closedSupportSheaf (O : Opens X) |
| 101 | (F : TopCat.Sheaf (ModuleCat.{0} R) X) : TopCat.Sheaf (ModuleCat.{0} R) X := |
| 102 | kernel (sheafRestrictionToOpen O F) |
| 103 | |
| 104 | /-- Include the supported sheaf into the original sheaf. -/ |
| 105 | def closedSupportSheafInclusion (O : Opens X) |
| 106 | (F : TopCat.Sheaf (ModuleCat.{0} R) X) : closedSupportSheaf O F ⟶ F := |
| 107 | kernel.ι (sheafRestrictionToOpen O F) |
| 108 | |
| 109 | /-- Evaluation of a module sheaf on a specified open subset. -/ |
| 110 | def moduleSheafSections (U : Opens X) : |
| 111 | TopCat.Sheaf (ModuleCat.{0} R) X ⥤ ModuleCat.{0} R := |
| 112 | sheafToPresheaf (Opens.grothendieckTopology X) (ModuleCat.{0} R) ⋙ |
| 113 | (evaluation (Opens X)ᵒᵖ (ModuleCat.{0} R)).obj (op U) |
| 114 | |
| 115 | instance moduleSheafSections_additive (U : Opens X) : |
| 116 | (moduleSheafSections (R := R) U).Additive where |
| 117 | map_add := rfl |
| 118 | |
| 119 | instance moduleSheafSections_preservesFiniteLimits (U : Opens X) : |
| 120 | PreservesFiniteLimits (moduleSheafSections (R := R) U) := by |
| 121 | have : PreservesFiniteLimits |
| 122 | (sheafToPresheaf (Opens.grothendieckTopology X) (ModuleCat.{0} R)) := |
| 123 | CategoryTheory.Sheaf.instPreservesFiniteLimitsFunctorOppositeSheafToPresheafOfHasFiniteLimits |
| 124 | exact comp_preservesFiniteLimits _ _ |
| 125 | |
| 126 | /-- The inclusion's image is exactly the sections vanishing on `U ∩ O`. -/ |
| 127 | theorem closedSupportSheafInclusion_range (O U : Opens X) |
| 128 | (F : TopCat.Sheaf (ModuleCat.{0} R) X) : |
| 129 | LinearMap.range (((closedSupportSheafInclusion O F).hom.app (op U)).hom) = |
| 130 | LinearMap.ker ((F.obj.map (homOfLE (inf_le_left : U ⊓ O ≤ U)).op).hom) := by |
| 131 | have h := (ShortComplex.kernelSequence_exact (sheafRestrictionToOpen O F)).map_of_mono_of_preservesKernel |
| 132 | (moduleSheafSections U) inferInstance inferInstance |
| 133 | exact h.moduleCat_range_eq_ker |
| 134 | |
| 135 | /-- A supported section vanishes on the open complement by construction. -/ |
| 136 | theorem closedSupportSheafInclusion_vanishes (O U : Opens X) |
| 137 | (F : TopCat.Sheaf (ModuleCat.{0} R) X) |
| 138 | (s : (closedSupportSheaf O F).obj.obj (op U)) : |
| 139 | F.obj.map (homOfLE (inf_le_left : U ⊓ O ≤ U)).op |
| 140 | ((closedSupportSheafInclusion O F).hom.app (op U) s) = 0 := by |
| 141 | have h := ConcreteCategory.congr_hom |
| 142 | (congrArg (fun f => f.hom.app (op U)) (kernel.condition (sheafRestrictionToOpen O F))) s |
| 143 | exact h |
| 144 | |
| 145 | /-- Inclusion of supported sections is injective on every open set. -/ |
| 146 | theorem closedSupportSheafInclusion_injective (O U : Opens X) |
| 147 | (F : TopCat.Sheaf (ModuleCat.{0} R) X) : |
| 148 | Function.Injective ((closedSupportSheafInclusion O F).hom.app (op U)) := by |
| 149 | change Function.Injective |
| 150 | ((moduleSheafSections U).map (kernel.ι (sheafRestrictionToOpen O F))) |
| 151 | exact (ModuleCat.mono_iff_injective _).1 inferInstance |
| 152 | |
| 153 | end Cohomology |
| 154 | |
| 155 | end |
| 156 | |
| 157 | end OAI.AlgebraicGeometry.CycleClass.Geometric.SheafClosedSupport |