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