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.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.ZariskiExactness |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Quasicoherent.Image |
| 3 | import Mathlib.Algebra.Category.ModuleCat.Products |
| 4 | import Mathlib.Algebra.Category.ModuleCat.Sheaf.Limits |
| 5 | import Mathlib.CategoryTheory.Limits.FullSubcategory |
| 6 | |
| 7 | /-! # Cohomology Cover Module -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.CohomologyCoverModule.ZariskiCohomology |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | universe u |
| 14 | open _root_.CategoryTheory Limits Opposite _root_.TopologicalSpace _root_.AlgebraicGeometry |
| 15 | |
| 16 | /-- A finite product of quasicoherent modules on an affine spectrum is |
| 17 | quasicoherent. -/ |
| 18 | theorem moduleSpec_isQuasicoherent_pi {R : CommRingCat.{u}} |
| 19 | {I : Type u} [Finite I] (F : I → (Spec R).Modules) |
| 20 | [∀ i, (F i).IsQuasicoherent] : |
| 21 | (∏ᶜ F).IsQuasicoherent := by |
| 22 | let P := SheafOfModules.isQuasicoherent (Spec R).ringCatSheaf |
| 23 | let : P.IsClosedUnderLimitsOfShape (Discrete I) := by |
| 24 | change (SheafOfModules.isQuasicoherent |
| 25 | (Spec R).ringCatSheaf).IsClosedUnderLimitsOfShape (Discrete I) |
| 26 | rw [← AlgebraicGeometry.essImage_tilde] |
| 27 | have : HasLimitsOfShape (Discrete I) (ModuleCat R) := inferInstance |
| 28 | have : PreservesLimitsOfShape (Discrete I) (tilde.functor R) := |
| 29 | inferInstance |
| 30 | exact |
| 31 | instIsClosedUnderLimitsOfShapeEssImageOfHasLimitsOfShapeOfPreservesLimitsOfShapeOfFullOfFaithful |
| 32 | (tilde.functor R) |
| 33 | exact P.prop_limit (Discrete.functor F) (fun i ↦ |
| 34 | inferInstanceAs ((F i.as).IsQuasicoherent)) |
| 35 | |
| 36 | /-- The finite-cover module formed from restriction-pushforwards. -/ |
| 37 | noncomputable def affineCoverModule {R : CommRingCat.{u}} {I : Type u} |
| 38 | (M : (Spec R).Modules) (U : I → (Spec R).Opens) : |
| 39 | (Spec R).Modules := |
| 40 | ∏ᶜ fun i ↦ |
| 41 | (Scheme.Modules.restrictFunctor (U i).ι ⋙ |
| 42 | Scheme.Modules.pushforward (U i).ι).obj M |
| 43 | |
| 44 | /-- The adjunction units map a module into its finite-cover module. -/ |
| 45 | noncomputable def toAffineCoverModule {R : CommRingCat.{u}} {I : Type u} |
| 46 | (M : (Spec R).Modules) (U : I → (Spec R).Opens) : |
| 47 | M ⟶ affineCoverModule M U := |
| 48 | Pi.lift fun i ↦ (Scheme.Modules.restrictAdjunction (U i).ι).unit.app M |
| 49 | |
| 50 | @[simp] |
| 51 | theorem toAffineCoverModule_comp_pi {R : CommRingCat.{u}} {I : Type u} |
| 52 | (M : (Spec R).Modules) (U : I → (Spec R).Opens) (i : I) : |
| 53 | toAffineCoverModule M U ≫ |
| 54 | Pi.π (fun i ↦ |
| 55 | (Scheme.Modules.restrictFunctor (U i).ι ⋙ |
| 56 | Scheme.Modules.pushforward (U i).ι).obj M) i = |
| 57 | (Scheme.Modules.restrictAdjunction (U i).ι).unit.app M := by |
| 58 | simp [toAffineCoverModule, affineCoverModule] |
| 59 | |
| 60 | /-- A finite affine restriction-pushforward cover module on an affine |
| 61 | spectrum is quasicoherent. -/ |
| 62 | theorem affineCoverModule_isQuasicoherent {R : CommRingCat.{u}} |
| 63 | {I : Type u} [Finite I] (M : (Spec R).Modules) |
| 64 | [M.IsQuasicoherent] (U : I → (Spec R).Opens) |
| 65 | [∀ i, IsAffine (U i)] : |
| 66 | (affineCoverModule M U).IsQuasicoherent := by |
| 67 | let (i : I) : |
| 68 | ((Scheme.Modules.restrictFunctor (U i).ι).obj M).IsQuasicoherent := |
| 69 | inferInstance |
| 70 | let (i : I) : |
| 71 | ((Scheme.Modules.restrictFunctor (U i).ι ⋙ |
| 72 | Scheme.Modules.pushforward (U i).ι).obj M).IsQuasicoherent := by |
| 73 | change ((Scheme.Modules.pushforward (U i).ι).obj |
| 74 | ((Scheme.Modules.restrictFunctor (U i).ι).obj M)).IsQuasicoherent |
| 75 | exact Quasicoherent.Image.quasiCompact_separated_directImage_affine (U i).ι _ |
| 76 | exact moduleSpec_isQuasicoherent_pi _ |
| 77 | |
| 78 | /-- The ambient cokernel of the finite-cover map is quasicoherent. This is |
| 79 | the finite-cover downstream consumer of affine cokernel closure. -/ |
| 80 | theorem affineCoverCokernel_isQuasicoherent {R : CommRingCat.{u}} |
| 81 | {I : Type u} [Finite I] (M : (Spec R).Modules) |
| 82 | [M.IsQuasicoherent] (U : I → (Spec R).Opens) |
| 83 | [∀ i, IsAffine (U i)] : |
| 84 | (cokernel (toAffineCoverModule M U)).IsQuasicoherent := by |
| 85 | let : (affineCoverModule M U).IsQuasicoherent := |
| 86 | affineCoverModule_isQuasicoherent M U |
| 87 | exact ZariskiExactness.ZariskiCohomology.moduleSpec_isQuasicoherent_cokernel (toAffineCoverModule M U) |
| 88 | |
| 89 | end |
| 90 | |
| 91 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.CohomologyCoverModule.ZariskiCohomology |