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 | /- |
| 2 | Derived from AINTLIB: |
| 3 | projects/ModularCurves/ModularCurves/ForMathlib/SchemeModuleQuasicoherent.lean |
| 4 | The upstream AINTLIB repository is licensed under Apache 2.0. |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.GeneratingSectionFiniteness |
| 8 | |
| 9 | /-! # Over Generator Finiteness -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.OverGeneratorFiniteness |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.AlgebraicGeometry.Scheme.Modules Opposite |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable {X : Scheme.{u}} |
| 20 | |
| 21 | theorem module_finite_restrict_of_over_generators |
| 22 | (M : X.Modules) [M.IsQuasicoherent] |
| 23 | (U : X.Opens) (hU : IsAffineOpen U) |
| 24 | (G : (M.over U).GeneratingSections) [G.IsFiniteType] : |
| 25 | Module.Finite Γ(U.toScheme, ⊤) Γ(M.restrict U.ι, ⊤) := by |
| 26 | let : IsAffine U.toScheme := hU |
| 27 | let F := (Scheme.Modules.overEquiv U).functor |
| 28 | let : PreservesColimitsOfSize.{u, u, u, u, u + 1, u + 1} F := |
| 29 | (Scheme.Modules.overEquiv U).toAdjunction.leftAdjoint_preservesColimits |
| 30 | have hF : PreservesColimitsOfSize.{u, u, u, u, u + 1, u + 1} F := |
| 31 | inferInstance |
| 32 | let G' := @SheafOfModules.GeneratingSections.map |
| 33 | _ _ _ _ _ _ _ _ _ _ _ _ _ G F hF (Iso.refl _) |
| 34 | let G'' := SheafOfModules.GeneratingSections.equivOfIso |
| 35 | ((Scheme.Modules.overFunctorEquiv U).app M) G' |
| 36 | have : G''.IsFiniteType := ⟨by |
| 37 | change Finite G.I |
| 38 | infer_instance⟩ |
| 39 | exact GeneratingSectionFiniteness.affine_globalSections_finite_of_generatingSections |
| 40 | (M.restrict U.ι) G'' |
| 41 | |
| 42 | theorem module_finite_app_of_over_generators |
| 43 | (M : X.Modules) [M.IsQuasicoherent] |
| 44 | (U : X.Opens) (hU : IsAffineOpen U) |
| 45 | (G : (M.over U).GeneratingSections) [G.IsFiniteType] : |
| 46 | Module.Finite Γ(X, U) Γ(M, U) := by |
| 47 | have hfinite : Module.Finite Γ(U.toScheme, ⊤) Γ(M.restrict U.ι, ⊤) := |
| 48 | module_finite_restrict_of_over_generators M U hU G |
| 49 | let eR' := U.ι.appIso (⊤ : U.toScheme.Opens) |
| 50 | let eR : Γ(X, U.ι ''ᵁ (⊤ : U.toScheme.Opens)) ≃+* Γ(U.toScheme, ⊤) := |
| 51 | eR'.commRingCatIsoToRingEquiv |
| 52 | let eM' := M.restrictAppIso U.ι ⊤ |
| 53 | let σ : Γ(U.toScheme, ⊤) →+* |
| 54 | Γ(X, U.ι ''ᵁ (⊤ : U.toScheme.Opens)) := eR'.inv.hom |
| 55 | let eM : Γ(M.restrict U.ι, ⊤) →ₛₗ[σ] |
| 56 | Γ(M, U.ι ''ᵁ (⊤ : U.toScheme.Opens)) := |
| 57 | { toFun := eM'.hom |
| 58 | map_add' := eM'.hom.hom.map_add |
| 59 | map_smul' := by |
| 60 | intro r x |
| 61 | change eM'.hom (r • x) = eR'.inv.hom r • eM'.hom x |
| 62 | exact Scheme.Modules.smul_restrictAppIso_hom_apply U.ι M ⊤ r x } |
| 63 | have hσ : Function.Surjective σ := by |
| 64 | change Function.Surjective |
| 65 | (eR.symm : Γ(U.toScheme, ⊤) →+* |
| 66 | Γ(X, U.ι ''ᵁ (⊤ : U.toScheme.Opens))) |
| 67 | exact eR.symm.surjective |
| 68 | let : RingHomSurjective σ := ⟨hσ⟩ |
| 69 | have heM : Function.Bijective eM := by |
| 70 | change Function.Bijective eM'.hom |
| 71 | exact ConcreteCategory.bijective_of_isIso eM'.hom |
| 72 | have htarget : Module.Finite |
| 73 | Γ(X, U.ι ''ᵁ (⊤ : U.toScheme.Opens)) |
| 74 | Γ(M, U.ι ''ᵁ (⊤ : U.toScheme.Opens)) := |
| 75 | (eM.finite_iff_of_bijective heM).mp hfinite |
| 76 | rw [U.ι_image_top] at htarget |
| 77 | exact htarget |
| 78 | |
| 79 | theorem module_finite_app_of_over_generators_of_le |
| 80 | (M : X.Modules) [M.IsQuasicoherent] |
| 81 | {U V : X.Opens} (hVU : V ≤ U) (hV : IsAffineOpen V) |
| 82 | (G : (M.over U).GeneratingSections) [G.IsFiniteType] : |
| 83 | Module.Finite Γ(X, V) Γ(M, V) := by |
| 84 | let i : V ⟶ U := homOfLE hVU |
| 85 | let F := SheafOfModules.overMap X.ringCatSheaf i |
| 86 | let : PreservesColimitsOfSize.{u, u, u, u, u + 1, u + 1} F := |
| 87 | (SheafOfModules.overMapPushforwardAdj X.ringCatSheaf i).leftAdjoint_preservesColimits |
| 88 | have hF : PreservesColimitsOfSize.{u, u, u, u, u + 1, u + 1} F := |
| 89 | inferInstance |
| 90 | let G' := @SheafOfModules.GeneratingSections.map |
| 91 | _ _ _ _ _ _ _ _ _ _ _ _ _ G F hF |
| 92 | (SheafOfModules.overMapUnitIso i).symm |
| 93 | let G'' := SheafOfModules.GeneratingSections.equivOfIso |
| 94 | ((SheafOfModules.overFunctorMap X.ringCatSheaf i).app M) G' |
| 95 | have : G''.IsFiniteType := ⟨by |
| 96 | change Finite G.I |
| 97 | infer_instance⟩ |
| 98 | exact module_finite_app_of_over_generators M V hV G'' |
| 99 | |
| 100 | end |
| 101 | |
| 102 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.OverGeneratorFiniteness |