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.SheafTensor |
| 2 | import Mathlib.CategoryTheory.Sites.PreservesLocallyBijective |
| 3 | |
| 4 | /-! # Sheaf Restriction -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.SheafRestriction.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Restriction of module presheaves and compatibility with sheafification. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | open _root_.TopologicalSpace |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | def moduleSheafificationUnit {X : Scheme.{u}} (P : X.PresheafOfModules) : |
| 18 | P ⟶ (SheafTensor.Construction.sheafifyModule P).val := |
| 19 | (PresheafOfModules.sheafificationAdjunction (𝟙 X.ringCatSheaf.obj)).unit.app P |
| 20 | |
| 21 | theorem moduleSheafificationUnit_locallyInjective {X : Scheme.{u}} |
| 22 | (P : X.PresheafOfModules) : |
| 23 | PresheafOfModules.IsLocallyInjective (Opens.grothendieckTopology X) |
| 24 | (moduleSheafificationUnit P) := by |
| 25 | change Presheaf.IsLocallyInjective _ (CategoryTheory.toSheafify _ P.presheaf) |
| 26 | infer_instance |
| 27 | |
| 28 | theorem moduleSheafificationUnit_locallySurjective {X : Scheme.{u}} |
| 29 | (P : X.PresheafOfModules) : |
| 30 | PresheafOfModules.IsLocallySurjective (Opens.grothendieckTopology X) |
| 31 | (moduleSheafificationUnit P) := by |
| 32 | change Presheaf.IsLocallySurjective _ (CategoryTheory.toSheafify _ P.presheaf) |
| 33 | infer_instance |
| 34 | |
| 35 | /-- A locally bijective map to a sheaf exhibits that sheaf as the sheafification. -/ |
| 36 | def sheafificationIsoOfLocallyBijective {X : Scheme.{u}} |
| 37 | {P : X.PresheafOfModules} {M : X.Modules} (q : P ⟶ M.val) |
| 38 | [PresheafOfModules.IsLocallyInjective (Opens.grothendieckTopology X) q] |
| 39 | [PresheafOfModules.IsLocallySurjective (Opens.grothendieckTopology X) q] : |
| 40 | SheafTensor.Construction.sheafifyModule P ≅ M := by |
| 41 | let F := PresheafOfModules.sheafification (𝟙 X.ringCatSheaf.obj) |
| 42 | have hq := (Opens.grothendieckTopology X).W_of_isLocallyBijective |
| 43 | ((PresheafOfModules.toPresheaf _).map q) |
| 44 | have hq' := (Opens.grothendieckTopology X).W_iff _ |>.mp hq |
| 45 | have : IsIso ((SheafOfModules.toSheaf X.ringCatSheaf).map (F.map q)) := hq' |
| 46 | have : IsIso (F.map q) := isIso_of_reflects_iso (F.map q) |
| 47 | (SheafOfModules.toSheaf X.ringCatSheaf) |
| 48 | let e : F.obj P ≅ F.obj M.val := asIso (F.map q) |
| 49 | exact e ≪≫ SheafTensor.Construction.sheafifyModuleIso M |
| 50 | |
| 51 | /-- Restriction of a module presheaf along an open immersion. -/ |
| 52 | def restrictModulePresheaf {X Y : Scheme.{u}} (f : X ⟶ Y) [IsOpenImmersion f] : |
| 53 | Y.PresheafOfModules ⥤ X.PresheafOfModules := |
| 54 | let α : X.presheaf ⟶ f.opensFunctor.op ⋙ Y.presheaf := |
| 55 | { app U := (f.appIso U.unop).inv } |
| 56 | PresheafOfModules.pushforward (F := f.opensFunctor) |
| 57 | (Functor.whiskerRight α (forget₂ CommRingCat RingCat)) |
| 58 | |
| 59 | theorem restrictModulePresheaf_locallyInjective {X Y : Scheme.{u}} |
| 60 | (f : X ⟶ Y) [IsOpenImmersion f] {P Q : Y.PresheafOfModules} (q : P ⟶ Q) |
| 61 | [PresheafOfModules.IsLocallyInjective (Opens.grothendieckTopology Y) q] : |
| 62 | PresheafOfModules.IsLocallyInjective (Opens.grothendieckTopology X) |
| 63 | ((restrictModulePresheaf f).map q) := |
| 64 | Presheaf.isLocallyInjective_whisker (Opens.grothendieckTopology X) |
| 65 | (Opens.grothendieckTopology Y) f.opensFunctor |
| 66 | ((PresheafOfModules.toPresheaf _).map q) |
| 67 | |
| 68 | theorem restrictModulePresheaf_locallySurjective {X Y : Scheme.{u}} |
| 69 | (f : X ⟶ Y) [IsOpenImmersion f] {P Q : Y.PresheafOfModules} (q : P ⟶ Q) |
| 70 | [PresheafOfModules.IsLocallySurjective (Opens.grothendieckTopology Y) q] : |
| 71 | PresheafOfModules.IsLocallySurjective (Opens.grothendieckTopology X) |
| 72 | ((restrictModulePresheaf f).map q) := |
| 73 | Presheaf.isLocallySurjective_whisker (Opens.grothendieckTopology X) |
| 74 | (Opens.grothendieckTopology Y) f.opensFunctor |
| 75 | ((PresheafOfModules.toPresheaf _).map q) |
| 76 | |
| 77 | /-- Sheafifying and then restricting is canonically isomorphic to |
| 78 | restricting and then sheafifying. -/ |
| 79 | def restrictSheafificationIso {X Y : Scheme.{u}} (f : X ⟶ Y) [IsOpenImmersion f] |
| 80 | (P : Y.PresheafOfModules) : |
| 81 | SheafTensor.Construction.sheafifyModule ((restrictModulePresheaf f).obj P) ≅ (SheafTensor.Construction.sheafifyModule P).restrict f := by |
| 82 | letI := moduleSheafificationUnit_locallyInjective P |
| 83 | letI := moduleSheafificationUnit_locallySurjective P |
| 84 | let q := (restrictModulePresheaf f).map (moduleSheafificationUnit P) |
| 85 | have hqi := restrictModulePresheaf_locallyInjective f (moduleSheafificationUnit P) |
| 86 | have hqs := restrictModulePresheaf_locallySurjective f (moduleSheafificationUnit P) |
| 87 | exact @sheafificationIsoOfLocallyBijective X _ ((SheafTensor.Construction.sheafifyModule P).restrict f) q hqi hqs |
| 88 | |
| 89 | end |
| 90 | |
| 91 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.SheafRestriction.Construction |