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