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.ArithmeticGeometry.OrdinaryLocus.Openness.AffineGlobalExact |
| 2 | import Mathlib.Topology.Sheaves.Skyscraper |
| 3 | import Mathlib.Algebra.Category.ModuleCat.EnoughInjectives |
| 4 | |
| 5 | /-! # Module Sheaf Injectives -/ |
| 6 | |
| 7 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.ModuleSheafInjectives.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Enough injectives for sheaves of modules on a topological space. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable (R : Type u) [CommRing R] (X : TopCat.{u}) |
| 18 | |
| 19 | abbrev ModuleSheaves := |
| 20 | CategoryTheory.Sheaf (_root_.Opens.grothendieckTopology X) (ModuleCat.{u} R) |
| 21 | |
| 22 | abbrev moduleSheafStalk (x : X) : ModuleSheaves R X ⥤ ModuleCat.{u} R := |
| 23 | sheafToPresheaf _ _ ⋙ TopCat.Presheaf.stalkFunctor (ModuleCat.{u} R) x |
| 24 | |
| 25 | def moduleSheafSkyscraper (x : X) : ModuleCat.{u} R ⥤ ModuleSheaves R X := by |
| 26 | classical |
| 27 | exact skyscraperSheafFunctor x |
| 28 | |
| 29 | def moduleSheafStalkAdjunction (x : X) : |
| 30 | moduleSheafStalk R X x ⊣ moduleSheafSkyscraper R X x := by |
| 31 | classical |
| 32 | exact stalkSkyscraperSheafAdjunction x |
| 33 | |
| 34 | instance moduleSheafStalk_preservesMonos (x : X) : |
| 35 | (moduleSheafStalk R X x).PreservesMonomorphisms := |
| 36 | TopCat.Presheaf.stalkFunctor_preserves_mono x |
| 37 | |
| 38 | theorem injective_moduleSheafSkyscraper (x : X) (I : ModuleCat.{u} R) [Injective I] : |
| 39 | Injective ((moduleSheafSkyscraper R X x).obj I) := |
| 40 | Injective.injective_of_adjoint (moduleSheafStalkAdjunction R X x) I |
| 41 | |
| 42 | variable (F : ModuleSheaves R X) |
| 43 | |
| 44 | abbrev moduleSheafInjectiveFamily (x : X) : ModuleSheaves R X := |
| 45 | (moduleSheafSkyscraper R X x).obj (Injective.under ((moduleSheafStalk R X x).obj F)) |
| 46 | |
| 47 | instance moduleSheafInjectiveFamily_injective (x : X) : |
| 48 | Injective (moduleSheafInjectiveFamily R X F x) := |
| 49 | injective_moduleSheafSkyscraper R X x _ |
| 50 | |
| 51 | def moduleSheafToInjectiveFactor (x : X) : F ⟶ moduleSheafInjectiveFamily R X F x := |
| 52 | (moduleSheafStalkAdjunction R X x).homEquiv _ _ |
| 53 | (Injective.ι ((moduleSheafStalk R X x).obj F)) |
| 54 | |
| 55 | theorem moduleSheafToInjectiveFactor_counit (x : X) : |
| 56 | (moduleSheafStalk R X x).map (moduleSheafToInjectiveFactor R X F x) ≫ |
| 57 | (moduleSheafStalkAdjunction R X x).counit.app |
| 58 | (Injective.under ((moduleSheafStalk R X x).obj F)) = |
| 59 | Injective.ι ((moduleSheafStalk R X x).obj F) := by |
| 60 | exact ((moduleSheafStalkAdjunction R X x).homEquiv_counit F |
| 61 | (Injective.under ((moduleSheafStalk R X x).obj F)) |
| 62 | (moduleSheafToInjectiveFactor R X F x)).symm.trans |
| 63 | ((moduleSheafStalkAdjunction R X x).homEquiv _ _ |>.symm_apply_apply _) |
| 64 | |
| 65 | def moduleSheafToInjective : F ⟶ ∏ᶜ moduleSheafInjectiveFamily R X F := |
| 66 | Pi.lift (moduleSheafToInjectiveFactor R X F) |
| 67 | |
| 68 | theorem mono_moduleSheafToInjective_stalk (x : X) : |
| 69 | Mono ((moduleSheafStalk R X x).map (moduleSheafToInjective R X F)) := by |
| 70 | have h : (moduleSheafStalk R X x).map (moduleSheafToInjective R X F) ≫ |
| 71 | ((moduleSheafStalk R X x).map (Pi.π (moduleSheafInjectiveFamily R X F) x) ≫ |
| 72 | (moduleSheafStalkAdjunction R X x).counit.app |
| 73 | (Injective.under ((moduleSheafStalk R X x).obj F))) = |
| 74 | Injective.ι ((moduleSheafStalk R X x).obj F) := by |
| 75 | rw [← Category.assoc, ← Functor.map_comp] |
| 76 | change (moduleSheafStalk R X x).map |
| 77 | (Pi.lift (moduleSheafToInjectiveFactor R X F) ≫ Pi.π _ x) ≫ _ = _ |
| 78 | rw [Pi.lift_comp_π] |
| 79 | exact moduleSheafToInjectiveFactor_counit R X F x |
| 80 | exact mono_of_mono_fac h |
| 81 | |
| 82 | instance moduleSheafToInjective_mono : Mono (moduleSheafToInjective R X F) := by |
| 83 | have hx (x : X) : Mono ((TopCat.Presheaf.stalkFunctor (ModuleCat.{u} R) x).map |
| 84 | (moduleSheafToInjective R X F).hom) := mono_moduleSheafToInjective_stalk R X F x |
| 85 | exact TopCat.Presheaf.mono_of_stalk_mono (moduleSheafToInjective R X F) |
| 86 | |
| 87 | def moduleSheafInjectivePresentation : InjectivePresentation F where |
| 88 | J := ∏ᶜ moduleSheafInjectiveFamily R X F |
| 89 | f := moduleSheafToInjective R X F |
| 90 | |
| 91 | theorem moduleSheaves_enoughInjectives : EnoughInjectives (ModuleSheaves R X) where |
| 92 | presentation F := ⟨moduleSheafInjectivePresentation R X F⟩ |
| 93 | |
| 94 | end |
| 95 | |
| 96 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.ModuleSheafInjectives.Construction |