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.Spec.KernelSections |
| 8 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Localized.ModuleSquares |
| 9 | import Mathlib.Algebra.Module.LocalizedModule.Submodule |
| 10 | |
| 11 | /-! # Quasicoherent Kernels -/ |
| 12 | |
| 13 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Spec.QuasicoherentKernels |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.AlgebraicGeometry.Scheme.Modules Opposite |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable {R : CommRingCat.{u}} |
| 22 | |
| 23 | theorem spec_quasicoherent_kernel |
| 24 | {M N : (Spec R).Modules} [M.IsQuasicoherent] [N.IsQuasicoherent] |
| 25 | (f : M ⟶ N) : (kernel f).IsQuasicoherent := by |
| 26 | rw [isQuasicoherent_iff_isIso_fromTildeΓ] |
| 27 | rw [isIso_fromTildeΓ_iff_isLocalizing] |
| 28 | intro r |
| 29 | let U : (Spec R).Opens := PrimeSpectrum.basicOpen r |
| 30 | let m := ((modulesSpecToSheaf.obj M).obj.map U.leTop.op).hom |
| 31 | let n := ((modulesSpecToSheaf.obj N).obj.map U.leTop.op).hom |
| 32 | have hm : IsLocalizedModule.Away r m := |
| 33 | ((isIso_fromTildeΓ_iff_isLocalizing M).mp inferInstance) r |
| 34 | have hn : IsLocalizedModule.Away r n := |
| 35 | ((isIso_fromTildeΓ_iff_isLocalizing N).mp inferInstance) r |
| 36 | let : IsLocalizedModule.Away r m := hm |
| 37 | let : IsLocalizedModule.Away r n := hn |
| 38 | let g := ((modulesSpecToSheaf.map f).hom.app (op ⊤)).hom |
| 39 | let gU := ((modulesSpecToSheaf.map f).hom.app (op U)).hom |
| 40 | have hmap : IsLocalizedModule.map (Submonoid.powers r) m n g = gU := by |
| 41 | apply IsLocalizedModule.linearMap_ext (Submonoid.powers r) m n |
| 42 | rw [IsLocalizedModule.map_comp] |
| 43 | ext x |
| 44 | change N.presheaf.map U.leTop.op (f.val.app (op ⊤) x) = |
| 45 | f.val.app (op U) (M.presheaf.map U.leTop.op x) |
| 46 | exact (ConcreteCategory.congr_hom (f.val.naturality U.leTop.op) x).symm |
| 47 | let k := LinearMap.toKerIsLocalized (Submonoid.powers r) m n g |
| 48 | let eTop := KernelSections.specKernelSectionEquiv f ⊤ |
| 49 | let eMap : gU.ker ≃ₗ[R] |
| 50 | (IsLocalizedModule.map (Submonoid.powers r) m n g).ker := |
| 51 | LinearEquiv.ofEq _ _ (congrArg LinearMap.ker hmap.symm) |
| 52 | let eU := KernelSections.specKernelSectionEquiv f U ≪≫ₗ eMap |
| 53 | let a : Γ(kernel f, ⊤) →ₗ[R] Γ(kernel f, U) := |
| 54 | ((modulesSpecToSheaf.obj (kernel f)).obj.map U.leTop.op).hom |
| 55 | have hsquare : eU.toLinearMap.comp a = k.comp eTop.toLinearMap := by |
| 56 | ext x |
| 57 | change (eMap (KernelSections.specKernelSectionEquiv f U (a x))).1 = |
| 58 | m (KernelSections.specKernelSectionEquiv f ⊤ x).1 |
| 59 | change (KernelSections.specKernelSectionEquiv f U (a x)).1 = |
| 60 | m (KernelSections.specKernelSectionEquiv f ⊤ x).1 |
| 61 | rw [KernelSections.specKernelSectionEquiv_coe, KernelSections.specKernelSectionEquiv_coe] |
| 62 | exact ConcreteCategory.congr_hom |
| 63 | ((kernel.ι f).val.naturality U.leTop.op) x |
| 64 | let : Module Γ(Spec R, U) |
| 65 | ((modulesSpecToSheaf.obj M).obj.obj (op U)) := |
| 66 | (inferInstance : Module Γ(Spec R, U) Γ(M, U)) |
| 67 | let : IsScalarTower R Γ(Spec R, U) |
| 68 | ((modulesSpecToSheaf.obj M).obj.obj (op U)) := |
| 69 | (inferInstance : IsScalarTower R Γ(Spec R, U) Γ(M, U)) |
| 70 | let : Module Γ(Spec R, U) |
| 71 | ((modulesSpecToSheaf.obj N).obj.obj (op U)) := |
| 72 | (inferInstance : Module Γ(Spec R, U) Γ(N, U)) |
| 73 | let : IsScalarTower R Γ(Spec R, U) |
| 74 | ((modulesSpecToSheaf.obj N).obj.obj (op U)) := |
| 75 | (inferInstance : IsScalarTower R Γ(Spec R, U) Γ(N, U)) |
| 76 | have hk : IsLocalizedModule.Away r k := |
| 77 | LinearMap.toKerLocalized_isLocalizedModule |
| 78 | (S := Γ(Spec R, U)) (Submonoid.powers r) m n g |
| 79 | exact (Localized.ModuleSquares.isLocalizedModule_iff_of_linearEquiv_square |
| 80 | (Submonoid.powers r) a k eTop eU hsquare).mpr hk |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Spec.QuasicoherentKernels |