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 Mathlib.AlgebraicGeometry.Morphisms.Separated |
| 2 | import OAI.AlgebraicGeometry.PELModuli.IntegralModel.BasicOpenModuleRestriction |
| 3 | import OAI.AlgebraicGeometry.PELModuli.IntegralModel.SheafSectionsLocalization |
| 4 | import Mathlib.AlgebraicGeometry.Morphisms.Affine |
| 5 | import Mathlib.AlgebraicGeometry.Morphisms.QuasiCompact |
| 6 | |
| 7 | /-! # Global Basic Open Localization -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.GlobalBasicOpenLocalization |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Global sections of a quasicoherent module on a quasi-compact |
| 14 | separated scheme localize on every basic open. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 19 | open _root_.AlgebraicGeometry.Scheme.Modules |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | theorem globalBasicOpen_isLocalized_of_finite_affine_cover |
| 24 | {X : Scheme.{u}} [X.IsSeparated] (M : X.Modules) [M.IsQuasicoherent] |
| 25 | {ι : Type u} [Finite ι] (U : ι → X.Opens) |
| 26 | (hU : iSup U = ⊤) (hUa : ∀ i, IsAffineOpen (U i)) (r : Γ(X, ⊤)) : |
| 27 | IsLocalizedModule.Away r |
| 28 | ((SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseModulePresheaf (𝟙 X) M).map (X.basicOpen r).leTop.op).hom := by |
| 29 | let a := ((BasicOpenModuleRestriction.basicOpenRestrictionMap M r).hom.app (op ⊤)).hom |
| 30 | have ha : IsLocalizedModule.Away r a := |
| 31 | SheafSectionsLocalization.sheafSections_isLocalized_of_finite_cover U (BasicOpenModuleRestriction.basicOpenRestrictionMap M r) |
| 32 | (Submonoid.powers r) hU |
| 33 | (fun i => BasicOpenModuleRestriction.basicOpenRestrictionMap_affine_isLocalized M r ⟨U i, hUa i⟩) |
| 34 | (fun i j => BasicOpenModuleRestriction.basicOpenRestrictionMap_affine_isLocalized M r |
| 35 | ⟨U i ⊓ U j, (hUa i).inf (hUa j)⟩) |
| 36 | let := ha |
| 37 | let e := (BasicOpenModuleRestriction.basicOpenRestrictionTopIso M r).toLinearEquiv |
| 38 | have he : e.toLinearMap.comp a = |
| 39 | ((SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseModulePresheaf (𝟙 X) M).map (X.basicOpen r).leTop.op).hom := |
| 40 | congrArg ModuleCat.Hom.hom (BasicOpenModuleRestriction.basicOpenRestrictionMap_top_iso M r) |
| 41 | have ht := IsLocalizedModule.of_linearEquiv (Submonoid.powers r) a e |
| 42 | rw [he] at ht |
| 43 | exact ht |
| 44 | |
| 45 | theorem globalBasicOpen_isLocalized |
| 46 | {X : Scheme.{u}} [X.IsSeparated] [CompactSpace X] |
| 47 | (M : X.Modules) [M.IsQuasicoherent] (r : Γ(X, ⊤)) : |
| 48 | IsLocalizedModule.Away r |
| 49 | ((SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseModulePresheaf (𝟙 X) M).map (X.basicOpen r).leTop.op).hom := by |
| 50 | let C := X.affineCover.finiteSubcover |
| 51 | have (i : C.I₀) : IsAffine (C.X i) := by |
| 52 | dsimp [C] |
| 53 | infer_instance |
| 54 | exact globalBasicOpen_isLocalized_of_finite_affine_cover M |
| 55 | (fun i : C.I₀ => (C.f i).opensRange) C.iSup_opensRange |
| 56 | (fun i => isAffineOpen_opensRange (C.f i)) r |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.GlobalBasicOpenLocalization |