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.Divisors.LineBundles.Scheme.SchemeIdealModule |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Kernels |
| 3 | |
| 4 | /-! # Ideal Module -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Scheme.IdealModule.BundleCycles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Sections of the actual scheme ideal module are identified with |
| 13 | the kernels of the genuine maps on regular functions. -/ |
| 14 | |
| 15 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 16 | |
| 17 | def schemeModuleEvaluation (X : Scheme.{0}) (U : X.Opens) : X.Modules ⥤ ModuleCat Γ(X, U) := |
| 18 | SheafOfModules.evaluation X.ringCatSheaf (.op U) |
| 19 | |
| 20 | instance schemeModuleEvaluation_preservesFiniteLimits (X : Scheme.{0}) (U : X.Opens) : |
| 21 | PreservesFiniteLimits (schemeModuleEvaluation X U) := |
| 22 | inferInstanceAs (PreservesFiniteLimits (SheafOfModules.evaluation X.ringCatSheaf (.op U))) |
| 23 | |
| 24 | variable {X Z : Scheme.{0}} (f : Z ⟶ X) (U : X.Opens) |
| 25 | |
| 26 | theorem schemeIdealModuleSectionKernel_eq : |
| 27 | ((schemeModuleEvaluation X U).map (SchemeIdealModule.BundleCycles.schemeStructurePushforwardMap f)).hom.ker = |
| 28 | RingHom.ker (f.app U).hom := by |
| 29 | ext r |
| 30 | exact (congrArg (fun a => a = 0) (SchemeIdealModule.BundleCycles.schemeStructurePushforwardMap_apply f U r)).to_iff |
| 31 | |
| 32 | def schemeIdealModuleSectionsIso : |
| 33 | (schemeModuleEvaluation X U).obj (SchemeIdealModule.BundleCycles.schemeIdealModule f) ≅ |
| 34 | ModuleCat.of Γ(X, U) (RingHom.ker (f.app U).hom) := |
| 35 | PreservesKernel.iso (schemeModuleEvaluation X U) (SchemeIdealModule.BundleCycles.schemeStructurePushforwardMap f) ≪≫ |
| 36 | ModuleCat.kernelIsoKer ((schemeModuleEvaluation X U).map (SchemeIdealModule.BundleCycles.schemeStructurePushforwardMap f)) ≪≫ |
| 37 | eqToIso (congrArg (fun p : Submodule Γ(X, U) Γ(X, U) => ModuleCat.of Γ(X, U) p) |
| 38 | (schemeIdealModuleSectionKernel_eq f U)) |
| 39 | |
| 40 | end |
| 41 | |
| 42 | section |
| 43 | |
| 44 | /-! The sections-to-kernel isomorphism identifies the actual sheaf |
| 45 | inclusion with the ordinary inclusion of the function-ring ideal. -/ |
| 46 | |
| 47 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 48 | |
| 49 | theorem submoduleEqIso_subtype {R V : Type*} [Ring R] [AddCommGroup V] [Module R V] |
| 50 | {P Q : Submodule R V} (h : P = Q) : |
| 51 | (eqToIso (congrArg (fun p : Submodule R V => ModuleCat.of R p) h)).hom ≫ ModuleCat.ofHom Q.subtype = |
| 52 | ModuleCat.ofHom P.subtype := by |
| 53 | subst Q |
| 54 | rfl |
| 55 | |
| 56 | variable {X Z : Scheme.{0}} (f : Z ⟶ X) (U : X.Opens) |
| 57 | |
| 58 | theorem schemeIdealModuleSectionsIso_inclusion : |
| 59 | (schemeIdealModuleSectionsIso f U).hom ≫ ModuleCat.ofHom (RingHom.ker (f.app U).hom).subtype = |
| 60 | (schemeModuleEvaluation X U).map (SchemeIdealModule.BundleCycles.schemeIdealModuleInclusion f) := by |
| 61 | let F := schemeModuleEvaluation X U |
| 62 | let φ := SchemeIdealModule.BundleCycles.schemeStructurePushforwardMap f |
| 63 | let e₁ := PreservesKernel.iso F φ |
| 64 | let e₂ := ModuleCat.kernelIsoKer (F.map φ) |
| 65 | have h₁ := submoduleEqIso_subtype (schemeIdealModuleSectionKernel_eq f U) |
| 66 | have h₂ := ModuleCat.kernelIsoKer_hom_ker_subtype (F.map φ) |
| 67 | have h₃ : e₁.hom ≫ kernel.ι (F.map φ) = F.map (kernel.ι φ) := by |
| 68 | rw [PreservesKernel.iso_hom] |
| 69 | exact kernelComparison_comp_ι _ _ |
| 70 | exact (Category.assoc _ _ _).trans |
| 71 | ((congrArg (fun k => e₁.hom ≫ k) |
| 72 | ((Category.assoc _ _ _).trans ((congrArg (fun k => e₂.hom ≫ k) h₁).trans h₂))).trans h₃) |
| 73 | |
| 74 | theorem schemeIdealModuleSectionsIso_apply (s : Γ(SchemeIdealModule.BundleCycles.schemeIdealModule f, U)) : |
| 75 | ((schemeIdealModuleSectionsIso f U).hom s).val = (SchemeIdealModule.BundleCycles.schemeIdealModuleInclusion f).app U s := by |
| 76 | have h := ConcreteCategory.congr_hom (schemeIdealModuleSectionsIso_inclusion f U) |
| 77 | (s : (schemeModuleEvaluation X U).obj (SchemeIdealModule.BundleCycles.schemeIdealModule f)) |
| 78 | exact h |
| 79 | |
| 80 | theorem schemeIdealModuleSectionsIso_inv_apply (s : RingHom.ker (f.app U).hom) : |
| 81 | (SchemeIdealModule.BundleCycles.schemeIdealModuleInclusion f).app U ((schemeIdealModuleSectionsIso f U).inv s) = s.val := by |
| 82 | have h := schemeIdealModuleSectionsIso_apply f U ((schemeIdealModuleSectionsIso f U).inv s) |
| 83 | have he := ConcreteCategory.congr_hom (schemeIdealModuleSectionsIso f U).inv_hom_id s |
| 84 | exact h.symm.trans (congrArg Subtype.val he) |
| 85 | |
| 86 | end |
| 87 | |
| 88 | /-! The actual ideal inclusion is linear and injective on sections, |
| 89 | and it commutes with restriction of regular functions. -/ |
| 90 | |
| 91 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 92 | |
| 93 | variable {X Z : Scheme.{0}} (f : Z ⟶ X) |
| 94 | |
| 95 | def schemeIdealModuleSectionLinear (U : X.Opens) : Γ(SchemeIdealModule.BundleCycles.schemeIdealModule f, U) →ₗ[Γ(X, U)] Γ(X, U) := |
| 96 | (RingHom.ker (f.app U).hom).subtype.comp (schemeIdealModuleSectionsIso f U).hom.hom |
| 97 | |
| 98 | theorem schemeIdealModuleSectionLinear_apply (U : X.Opens) (s : Γ(SchemeIdealModule.BundleCycles.schemeIdealModule f, U)) : |
| 99 | schemeIdealModuleSectionLinear f U s = (SchemeIdealModule.BundleCycles.schemeIdealModuleInclusion f).app U s := |
| 100 | schemeIdealModuleSectionsIso_apply f U s |
| 101 | |
| 102 | theorem schemeIdealModuleSectionLinear_injective (U : X.Opens) : |
| 103 | Function.Injective (schemeIdealModuleSectionLinear f U) := |
| 104 | Subtype.val_injective.comp (schemeIdealModuleSectionsIso f U).toLinearEquiv.injective |
| 105 | |
| 106 | theorem schemeIdealModuleSectionLinear_mem (U : X.Opens) (s : Γ(SchemeIdealModule.BundleCycles.schemeIdealModule f, U)) : |
| 107 | schemeIdealModuleSectionLinear f U s ∈ RingHom.ker (f.app U).hom := |
| 108 | ((schemeIdealModuleSectionsIso f U).hom s).property |
| 109 | |
| 110 | theorem schemeIdealModuleInclusion_restrict {U V : X.Opens} (h : V ≤ U) (s : Γ(SchemeIdealModule.BundleCycles.schemeIdealModule f, U)) : |
| 111 | (SchemeIdealModule.BundleCycles.schemeIdealModuleInclusion f).app V ((SchemeIdealModule.BundleCycles.schemeIdealModule f).presheaf.map (homOfLE h).op s) = |
| 112 | X.presheaf.map (homOfLE h).op ((SchemeIdealModule.BundleCycles.schemeIdealModuleInclusion f).app U s) := |
| 113 | ConcreteCategory.congr_hom ((SchemeIdealModule.BundleCycles.schemeIdealModuleInclusion f).mapPresheaf.naturality (homOfLE h).op) s |
| 114 | |
| 115 | end |
| 116 | |
| 117 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Scheme.IdealModule.BundleCycles |