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 | Derived from AINTLIB: |
| 3 | projects/ModularCurves/ModularCurves/ForMathlib/SchemeModuleRestrictLimits.lean |
| 4 | The upstream AINTLIB repository is licensed under Apache 2.0. |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import Mathlib.Algebra.Category.ModuleCat.Sheaf.Limits |
| 8 | import Mathlib.AlgebraicGeometry.Modules.Sheaf |
| 9 | |
| 10 | /-! # Restriction Limits -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.RestrictionLimits |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | /-! |
| 17 | # Limits and restriction of scheme modules |
| 18 | |
| 19 | Restriction of modules along an open immersion preserves limits. This is the common categorical |
| 20 | input for affine-local constructions on quasicoherent modules and for descent of invertible |
| 21 | sheaves. |
| 22 | -/ |
| 23 | |
| 24 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.AlgebraicGeometry.Scheme.Modules |
| 25 | |
| 26 | universe u |
| 27 | |
| 28 | private theorem presheafPushforward_preservesLimits |
| 29 | {C D : Type u} [Category.{u} C] [Category.{u} D] |
| 30 | {F : C ⥤ D} {R : Dᵒᵖ ⥤ RingCat.{u}} {S : Cᵒᵖ ⥤ RingCat.{u}} |
| 31 | (φ : S ⟶ F.op ⋙ R) : |
| 32 | PreservesLimits (PresheafOfModules.pushforward.{u} φ) := by |
| 33 | constructor |
| 34 | intro J _ |
| 35 | constructor |
| 36 | intro K |
| 37 | constructor |
| 38 | intro c hc |
| 39 | refine ⟨PresheafOfModules.evaluationJointlyReflectsLimits _ _ (fun X => ?_)⟩ |
| 40 | let E := PresheafOfModules.evaluation R (F.op.obj X) ⋙ |
| 41 | ModuleCat.restrictScalars (φ.app X).hom |
| 42 | exact isLimitOfPreserves E hc |
| 43 | |
| 44 | private theorem sheafPushforward_preservesLimits |
| 45 | {C D : Type u} [Category.{u} C] [Category.{u} D] |
| 46 | {J : GrothendieckTopology C} {K : GrothendieckTopology D} |
| 47 | {F : C ⥤ D} [Functor.IsContinuous F J K] |
| 48 | {S : Sheaf J RingCat.{u}} {R : Sheaf K RingCat.{u}} |
| 49 | (φ : S ⟶ (F.sheafPushforwardContinuous RingCat.{u} J K).obj R) : |
| 50 | PreservesLimits (SheafOfModules.pushforward.{u} φ) := by |
| 51 | let : PreservesLimits |
| 52 | (SheafOfModules.pushforward.{u} φ ⋙ SheafOfModules.forget S) := by |
| 53 | change PreservesLimits (SheafOfModules.forget R ⋙ |
| 54 | PresheafOfModules.pushforward φ.hom) |
| 55 | let : PreservesLimits (PresheafOfModules.pushforward φ.hom) := |
| 56 | presheafPushforward_preservesLimits φ.hom |
| 57 | exact comp_preservesLimits _ _ |
| 58 | exact preservesLimits_of_reflects_of_preserves |
| 59 | (SheafOfModules.pushforward φ) (SheafOfModules.forget S) |
| 60 | |
| 61 | /-- Restriction of scheme modules along an open immersion preserves all limits. -/ |
| 62 | theorem moduleRestrictFunctor_preservesLimits |
| 63 | {X Y : Scheme.{u}} (f : X ⟶ Y) [IsOpenImmersion f] : |
| 64 | PreservesLimits (restrictFunctor f) := by |
| 65 | dsimp only [restrictFunctor] |
| 66 | apply sheafPushforward_preservesLimits |
| 67 | |
| 68 | end |
| 69 | |
| 70 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.RestrictionLimits |