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.PELModuli.IntegralModel.BaseSectionLocalization |
| 2 | |
| 3 | /-! # Quasicoherent Pushforward -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.QuasicoherentPushforward |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Quasi-compact separated direct images preserve quasicoherence. |
| 10 | The proof identifies actual section restrictions with localizations. -/ |
| 11 | |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | set_option backward.isDefEq.respectTransparency.types false |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite _root_.TopologicalSpace |
| 15 | open _root_.AlgebraicGeometry.Scheme.Modules |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | theorem isLocalized_of_linearEquiv_square |
| 20 | {R : Type*} [CommRing R] (S : Submonoid R) |
| 21 | {M N M' N' : Type*} [AddCommGroup M] [AddCommGroup N] |
| 22 | [AddCommGroup M'] [AddCommGroup N'] |
| 23 | [Module R M] [Module R N] [Module R M'] [Module R N'] |
| 24 | (a : M →ₗ[R] N) (b : M' →ₗ[R] N') |
| 25 | (eM : M ≃ₗ[R] M') (eN : N ≃ₗ[R] N') |
| 26 | (h : eN.toLinearMap.comp a = b.comp eM.toLinearMap) |
| 27 | [IsLocalizedModule S a] : IsLocalizedModule S b := by |
| 28 | have : IsLocalizedModule S (a.comp eM.symm.toLinearMap) := |
| 29 | IsLocalizedModule.of_linearEquiv_right S a eM.symm |
| 30 | have ht := IsLocalizedModule.of_linearEquiv S (a.comp eM.symm.toLinearMap) eN |
| 31 | have he : eN.toLinearMap.comp (a.comp eM.symm.toLinearMap) = b := by |
| 32 | ext x |
| 33 | have hx := LinearMap.congr_fun h (eM.symm x) |
| 34 | simpa only [LinearMap.comp_apply, LinearEquiv.coe_coe, eM.apply_symm_apply] using hx |
| 35 | rw [he] at ht |
| 36 | exact ht |
| 37 | |
| 38 | theorem quasicoherent_pushforward_affineTarget |
| 39 | {X Y : Scheme.{u}} [X.IsSeparated] [CompactSpace X] [IsAffine Y] |
| 40 | (f : X ⟶ Y) (M : X.Modules) [M.IsQuasicoherent] : |
| 41 | ((pushforward f).obj M).IsQuasicoherent := by |
| 42 | apply SheafCohomology.Projective.Quasicoherent.Scheme.Modules.isQuasicoherent_of_isLocalized_basicOpen |
| 43 | intro r |
| 44 | let U := Y.basicOpen r |
| 45 | let V := X.basicOpen (f.appTop r) |
| 46 | let W := (pushforward f).obj M |
| 47 | let a := (SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseModulePresheaf f M).map V.leTop.op |
| 48 | let b := (SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseModulePresheaf (𝟙 Y) W).map U.leTop.op |
| 49 | let eT := SheafCohomology.Projective.OrderedBaseCechPushforward.Scheme.Modules.baseModulePresheafPushforwardAppIso f (𝟙 Y) M ⊤ |
| 50 | let eV := (SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseModulePresheaf f M).mapIso (eqToIso (f.preimage_basicOpen_top r)).op ≪≫ |
| 51 | SheafCohomology.Projective.OrderedBaseCechPushforward.Scheme.Modules.baseModulePresheafPushforwardAppIso f (𝟙 Y) M U |
| 52 | have hsquare : a ≫ eV.hom = eT.hom ≫ b := by |
| 53 | apply ModuleCat.hom_ext |
| 54 | ext x |
| 55 | let x' : Γ(M, ⊤) := x |
| 56 | change M.presheaf.map (eqToIso (f.preimage_basicOpen_top r)).op.hom |
| 57 | (M.presheaf.map V.leTop.op x') = |
| 58 | M.presheaf.map ((Opens.map f.base).map U.leTop).op x' |
| 59 | rw [← M.presheaf.map_comp_apply] |
| 60 | rfl |
| 61 | have : IsLocalizedModule.Away r a.hom := BaseSectionLocalization.baseGlobalBasicOpen_isLocalized f M r |
| 62 | exact isLocalized_of_linearEquiv_square (Submonoid.powers r) a.hom b.hom |
| 63 | eT.toLinearEquiv eV.toLinearEquiv (congrArg ModuleCat.Hom.hom hsquare) |
| 64 | |
| 65 | theorem quasicoherent_pushforward_of_quasiCompact_separated |
| 66 | {X Y : Scheme.{u}} (f : X ⟶ Y) [QuasiCompact f] [IsSeparated f] |
| 67 | (M : X.Modules) [M.IsQuasicoherent] : |
| 68 | ((pushforward f).obj M).IsQuasicoherent := by |
| 69 | have hlocal (U : Y.affineOpens) : |
| 70 | (((pushforward f).obj M).over (U : Y.Opens)).IsQuasicoherent := by |
| 71 | let V := f ⁻¹ᵁ U.1 |
| 72 | let fU := f ∣_ U.1 |
| 73 | let MU := M.restrict V.ι |
| 74 | have : IsAffine U.1.toScheme := U.2 |
| 75 | have : V.toScheme.IsSeparated := ⟨by |
| 76 | rw [← terminal.comp_from fU] |
| 77 | infer_instance⟩ |
| 78 | have : CompactSpace V.toScheme := QuasiCompact.compactSpace_of_compactSpace fU |
| 79 | have hPush : ((pushforward fU).obj MU).IsQuasicoherent := |
| 80 | quasicoherent_pushforward_affineTarget fU MU |
| 81 | have hRestrict : |
| 82 | (((pushforward f).obj M).restrict U.1.ι).IsQuasicoherent := |
| 83 | (SheafCohomology.Projective.Quasicoherent.Scheme.Modules.isQuasicoherent U.1).prop_of_iso |
| 84 | (SheafCohomology.Projective.ModuleRestrictPushforward.Scheme.Modules.restrictPushforwardIsoOfIsPullbackApp f fU V.ι U.1.ι |
| 85 | (isPullback_morphismRestrict f U.1) M).symm hPush |
| 86 | let := hRestrict |
| 87 | exact SheafCohomology.Projective.Quasicoherent.Scheme.Modules.isQuasicoherent_over_of_restrict_of_isAffineOpen ((pushforward f).obj M) U.1 |
| 88 | have hcover : (_root_.Opens.grothendieckTopology Y).CoversTop |
| 89 | (fun U : Y.affineOpens => (U : Y.Opens)) := by |
| 90 | rw [Opens.coversTop_iff, IsOpenCover, iSup_affineOpens_eq_top Y] |
| 91 | exact @SheafOfModules.IsQuasicoherent.of_coversTop |
| 92 | _ _ _ _ _ _ _ _ ((pushforward f).obj M) _ |
| 93 | (fun U : Y.affineOpens => (U : Y.Opens)) hcover hlocal |
| 94 | |
| 95 | end |
| 96 | |
| 97 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.QuasicoherentPushforward |