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.Coherent.BinaryBiproduct |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Noetherian.QuasicoherentKernels |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Quasicoherent.Cokernels |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Quasicoherent.Coproducts |
| 5 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Quasicoherent.Kernels |
| 6 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.QuasicoherenceLocality |
| 7 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.RestrictionGeneratingSections |
| 8 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.TypeFromAffineSections |
| 9 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.QuasicoherentFiniteTypeSections |
| 10 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.FiniteGeneratingSections |
| 11 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.ModuleExactSections |
| 12 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Module.FiniteTypeQuotient |
| 13 | import Mathlib.Algebra.Category.ModuleCat.Biproducts |
| 14 | import Mathlib.CategoryTheory.Limits.Preserves.Shapes.Biproducts |
| 15 | import Mathlib.CategoryTheory.Preadditive.AdditiveFunctor |
| 16 | import Mathlib.RingTheory.Finiteness.Prod |
| 17 | |
| 18 | /-! # Coherent Pullback -/ |
| 19 | |
| 20 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Coherent.CoherentPullback |
| 21 | |
| 22 | noncomputable section |
| 23 | |
| 24 | /-! Finite-type quasicoherent module sheaves on a locally Noetherian |
| 25 | scheme are closed under the categorical pullbacks used in resolutions. -/ |
| 26 | |
| 27 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 28 | |
| 29 | set_option backward.isDefEq.respectTransparency false |
| 30 | |
| 31 | universe u |
| 32 | |
| 33 | variable {X : Scheme.{u}} (M N : X.Modules) |
| 34 | [M.IsQuasicoherent] [N.IsQuasicoherent] |
| 35 | |
| 36 | local instance : HasFiniteBiproducts X.Modules := HasFiniteBiproducts.of_hasFiniteProducts |
| 37 | |
| 38 | theorem biprod_quasicoherent : (M ⊞ N).IsQuasicoherent := |
| 39 | AlgebraicGeometry.AbelianModuli.HilbertConstruction.Coherent.BinaryBiproduct.module_biprod_quasicoherent M N |
| 40 | |
| 41 | variable [M.IsFiniteType] [N.IsFiniteType] |
| 42 | |
| 43 | theorem biprod_finiteType : (M ⊞ N).IsFiniteType := by |
| 44 | let := biprod_quasicoherent M N |
| 45 | apply AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.TypeFromAffineSections.module_finiteType_of_affine_sections_finite (M ⊞ N) |
| 46 | intro U |
| 47 | let F := Affine.ModuleExactSections.sections U.val |
| 48 | let : F.Additive := Affine.ModuleExactSections.additive U.val |
| 49 | let : PreservesBinaryBiproduct M N F := preservesBinaryBiproduct_of_preservesBiproduct F M N |
| 50 | let : Module.Finite Γ(X, U.val) (F.obj M) := |
| 51 | AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.QuasicoherentFiniteTypeSections.affineOpen_quasicoherent_finiteType_sections_finite M U |
| 52 | let : Module.Finite Γ(X, U.val) (F.obj N) := |
| 53 | AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.QuasicoherentFiniteTypeSections.affineOpen_quasicoherent_finiteType_sections_finite N U |
| 54 | let e := Functor.mapBiprod F M N ≪≫ ModuleCat.biprodIsoProd (F.obj M) (F.obj N) |
| 55 | exact Module.Finite.equiv e.symm.toLinearEquiv |
| 56 | |
| 57 | variable {M N} {P : X.Modules} [P.IsQuasicoherent] (f : M ⟶ P) (g : N ⟶ P) |
| 58 | |
| 59 | def kernelIso : pullback f g ≅ kernel (biprod.desc f (-g)) := |
| 60 | (limit.isoLimitCone ⟨_, Abelian.PullbackToBiproductIsKernel.isLimitPullbackToBiproduct f g⟩).symm |
| 61 | |
| 62 | omit [SheafOfModules.IsFiniteType M] [SheafOfModules.IsFiniteType N] in |
| 63 | theorem quasicoherent : (pullback f g).IsQuasicoherent := by |
| 64 | let := biprod_quasicoherent M N |
| 65 | exact (SheafOfModules.isQuasicoherent X.ringCatSheaf).prop_of_iso (kernelIso f g).symm |
| 66 | (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Quasicoherent.Kernels.module_quasicoherent_kernel (biprod.desc f (-g))) |
| 67 | |
| 68 | variable [IsLocallyNoetherian X] |
| 69 | |
| 70 | theorem finiteType : (pullback f g).IsFiniteType := by |
| 71 | let := biprod_quasicoherent M N |
| 72 | let := biprod_finiteType M N |
| 73 | let := quasicoherent f g |
| 74 | let := AlgebraicGeometry.AbelianModuli.HilbertConstruction.Quasicoherent.Kernels.module_quasicoherent_kernel (biprod.desc f (-g)) |
| 75 | let := AlgebraicGeometry.AbelianModuli.HilbertConstruction.Noetherian.QuasicoherentKernels.noetherian_quasicoherent_kernel_finiteType (biprod.desc f (-g)) |
| 76 | exact IntegralComparison.Module.FiniteTypeQuotient.of_epi (kernelIso f g).inv |
| 77 | |
| 78 | end |
| 79 | |
| 80 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Coherent.CoherentPullback |