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.Quotients.FiniteDescent.AffinePullback |
| 2 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.Quasicoherent |
| 3 | |
| 4 | /-! # Affine Section Is -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.AffineSectionIs |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual global-sections adjunction over the ring of functions of a scheme. -/ |
| 11 | |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | |
| 14 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace Construction.AffineSectionAdjunction |
| 19 | |
| 20 | def sections (X : Scheme.{u}) : X.Modules ⥤ ModuleCat.{u} Γ(X, ⊤) := |
| 21 | SheafOfModules.forget X.ringCatSheaf ⋙ PresheafOfModules.evaluation _ (op ⊤) |
| 22 | |
| 23 | def pushforwardIso {X Y : Scheme.{u}} (f : Y ⟶ X) : |
| 24 | Scheme.Modules.pushforward f ⋙ sections X ≅ |
| 25 | sections Y ⋙ ModuleCat.restrictScalars f.appTop.hom := |
| 26 | NatIso.ofComponents (fun M => ModuleCat.isoMk (Iso.refl _) (by |
| 27 | intro r |
| 28 | ext x |
| 29 | rfl)) (by |
| 30 | intro M N a |
| 31 | ext x |
| 32 | rfl) |
| 33 | |
| 34 | def affinizationSectionsIso (X : Scheme.{u}) : |
| 35 | Scheme.Modules.pushforward X.toSpecΓ ⋙ moduleSpecΓFunctor (R := Γ(X, ⊤)) ≅ sections X := |
| 36 | NatIso.ofComponents (fun M => ModuleCat.isoMk (Iso.refl _) (by |
| 37 | intro r |
| 38 | ext x |
| 39 | let x' : Γ(M, ⊤) := x |
| 40 | change r • x' = X.toSpecΓ.appTop ((Scheme.ΓSpecIso Γ(X, ⊤)).inv r) • x' |
| 41 | rw [Scheme.toSpecΓ_appTop, Iso.inv_hom_id_apply])) (by |
| 42 | intro M N a |
| 43 | ext x |
| 44 | rfl) |
| 45 | |
| 46 | def left (X : Scheme.{u}) : ModuleCat.{u} Γ(X, ⊤) ⥤ X.Modules := |
| 47 | tilde.functor Γ(X, ⊤) ⋙ Scheme.Modules.pullback X.toSpecΓ |
| 48 | |
| 49 | def adjunction (X : Scheme.{u}) : left X ⊣ sections X := |
| 50 | ((tilde.adjunction (R := Γ(X, ⊤))).comp |
| 51 | (Scheme.Modules.pullbackPushforwardAdjunction X.toSpecΓ)).ofNatIsoRight |
| 52 | (affinizationSectionsIso X) |
| 53 | |
| 54 | theorem pullback_equivalence {X Y : Scheme.{u}} (e : X ≅ Y) : |
| 55 | (Scheme.Modules.pullback e.hom).IsEquivalence := |
| 56 | Functor.IsEquivalence.mk' (Scheme.Modules.pullback e.inv) |
| 57 | ((Scheme.Modules.pullbackComp e.inv e.hom ≪≫ |
| 58 | Scheme.Modules.pullbackCongr e.inv_hom_id ≪≫ Scheme.Modules.pullbackId Y).symm) |
| 59 | (Scheme.Modules.pullbackComp e.hom e.inv ≪≫ |
| 60 | Scheme.Modules.pullbackCongr e.hom_inv_id ≪≫ Scheme.Modules.pullbackId X) |
| 61 | |
| 62 | instance left_full (X : Scheme.{u}) [IsAffine X] : (left X).Full := by |
| 63 | have : (Scheme.Modules.pullback X.toSpecΓ).IsEquivalence := pullback_equivalence (asIso X.toSpecΓ) |
| 64 | exact inferInstanceAs ((tilde.functor Γ(X, ⊤) ⋙ Scheme.Modules.pullback X.toSpecΓ).Full) |
| 65 | |
| 66 | instance left_faithful (X : Scheme.{u}) [IsAffine X] : (left X).Faithful := by |
| 67 | have : (Scheme.Modules.pullback X.toSpecΓ).IsEquivalence := pullback_equivalence (asIso X.toSpecΓ) |
| 68 | exact inferInstanceAs ((tilde.functor Γ(X, ⊤) ⋙ Scheme.Modules.pullback X.toSpecΓ).Faithful) |
| 69 | |
| 70 | theorem left_quasicoherent (X : Scheme.{u}) [IsAffine X] (A : ModuleCat.{u} Γ(X, ⊤)) : |
| 71 | ((left X).obj A).IsQuasicoherent := by |
| 72 | exact (SheafOfModules.isQuasicoherent X.ringCatSheaf).prop_of_iso |
| 73 | ((Scheme.Modules.restrictFunctorIsoPullback X.toSpecΓ).app (tilde A)) inferInstance |
| 74 | |
| 75 | theorem counit_isIso (X : Scheme.{u}) [IsAffine X] (M : X.Modules) [M.IsQuasicoherent] : |
| 76 | IsIso ((AffineSectionAdjunction.adjunction X).counit.app M) := by |
| 77 | have : ((left X).obj ((sections X).obj M)).IsQuasicoherent := left_quasicoherent X _ |
| 78 | let c : (left X).obj ((sections X).obj M) ⟶ M := (AffineSectionAdjunction.adjunction X).counit.app M |
| 79 | have hc : IsIso ((sections X).map c) := |
| 80 | inferInstanceAs (IsIso ((sections X).map ((AffineSectionAdjunction.adjunction X).counit.app M))) |
| 81 | exact SheafCohomology.Projective.Quasicoherent.Scheme.Modules.isIso_of_isQuasicoherent_of_isIso_app_top c hc |
| 82 | |
| 83 | def counitIso (X : Scheme.{u}) [IsAffine X] (M : X.Modules) [M.IsQuasicoherent] : |
| 84 | (left X).obj ((sections X).obj M) ≅ M := by |
| 85 | have := counit_isIso X M |
| 86 | exact asIso ((AffineSectionAdjunction.adjunction X).counit.app M) |
| 87 | |
| 88 | end Construction.AffineSectionAdjunction |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.AffineSectionIs |