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.Spec.FiniteGeneratingSections |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SpecGlobalSectionIdentities |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Quasicoherent.IsoImage |
| 4 | |
| 5 | /-! # Finite Generating Sections -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.FiniteGeneratingSections |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Finite global sections give finite global generators on any affine scheme. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.AlgebraicGeometry.Scheme.Modules |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | theorem affine_exists_finite_generatingSections {X : Scheme.{u}} [IsAffine X] |
| 18 | (M : X.Modules) [M.IsQuasicoherent] |
| 19 | [Module.Finite Γ(X, ⊤) Γ(M, ⊤)] : |
| 20 | ∃ G : M.GeneratingSections, G.IsFiniteType := by |
| 21 | let N := (pushforward X.toSpecΓ).obj M |
| 22 | have : N.IsQuasicoherent := Quasicoherent.IsoImage.modulePushforward_quasicoherent_of_isIso X.toSpecΓ M |
| 23 | have : Module.Finite Γ(X, ⊤) (moduleSpecΓFunctor.obj N) := |
| 24 | Module.Finite.equiv (SpecGlobalSectionIdentities.moduleSpecΓPushforwardToSpecIso M).symm |
| 25 | have : Module.Finite Γ(X, ⊤) Γ(N, ⊤) := by |
| 26 | change Module.Finite Γ(X, ⊤) (moduleSpecΓFunctor.obj N) |
| 27 | infer_instance |
| 28 | obtain ⟨G, hG⟩ := Spec.FiniteGeneratingSections.spec_exists_finite_generatingSections N |
| 29 | let F := restrictFunctor X.toSpecΓ |
| 30 | have hF : PreservesColimitsOfSize.{u, u, u, u, u + 1, u + 1} F := by |
| 31 | dsimp [F] |
| 32 | infer_instance |
| 33 | let G' := @SheafOfModules.GeneratingSections.map |
| 34 | _ _ _ _ _ _ _ _ _ _ _ _ _ G F hF (restrictUnitIso X.toSpecΓ).symm |
| 35 | let G'' := SheafOfModules.GeneratingSections.equivOfIso |
| 36 | ((restrictFunctorAdjCounitIso X.toSpecΓ).app M) G' |
| 37 | have : G''.IsFiniteType := ⟨by |
| 38 | change Finite G.I |
| 39 | exact hG.finite⟩ |
| 40 | exact ⟨G'', inferInstance⟩ |
| 41 | |
| 42 | end |
| 43 | |
| 44 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.FiniteGeneratingSections |