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.Quasicoherent.Cokernels |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Quasicoherent.Coproducts |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Quasicoherent.Kernels |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.QuasicoherenceLocality |
| 5 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.RestrictionGeneratingSections |
| 6 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.TypeFromAffineSections |
| 7 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.QuasicoherentFiniteTypeSections |
| 8 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.FiniteGeneratingSections |
| 9 | import OAI.NumberTheory.PadicHodge.GeometricComparison.IntegralAffine.FirstThreeCoherence |
| 10 | import OAI.NumberTheory.PadicHodge.GeometricComparison.Integral.FormsOpenRestriction |
| 11 | import OAI.NumberTheory.PadicHodge.GeometricComparison.Smooth.IntegralSections |
| 12 | import OAI.NumberTheory.PadicHodge.GeometricComparison.RelativeSectionCoefficients |
| 13 | import OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.SectionBase |
| 14 | import OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.ModuleGenerators |
| 15 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Module.FiniteTypeIso |
| 16 | |
| 17 | /-! # Three Form Coherence -/ |
| 18 | |
| 19 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.IntegralFirst.ThreeFormCoherence.IntegralFirstThreeFormCoherence |
| 20 | |
| 21 | noncomputable section |
| 22 | |
| 23 | /-! The native integral first three form modules on a smooth scheme are coherent. -/ |
| 24 | |
| 25 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 26 | |
| 27 | variable (R : Type) [CommRing R] (X : Over (Spec (CommRingCat.of R))) [Smooth X.hom] |
| 28 | |
| 29 | abbrev chartRing (U : X.left.affineOpens) : CommAlgCat R := |
| 30 | (AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebras R X).obj (op U.val) |
| 31 | |
| 32 | abbrev chartModel (U : X.left.affineOpens) : Over (Spec (CommRingCat.of R)) := |
| 33 | RelativeSectionCoefficients.AffineCoordinates.relativeSpecModel R (chartRing R X U) |
| 34 | |
| 35 | local instance chart_open (U : X.left.affineOpens) : |
| 36 | IsOpenImmersion (X := (chartModel R X U).left) (Y := X.left) U.property.fromSpec := |
| 37 | U.property.isOpenImmersion_fromSpec |
| 38 | |
| 39 | local instance affine_open (U : X.left.affineOpens) : IsOpenImmersion U.property.fromSpec := |
| 40 | U.property.isOpenImmersion_fromSpec |
| 41 | |
| 42 | omit [Smooth X.hom] in |
| 43 | theorem chart_over (U : X.left.affineOpens) : U.property.fromSpec ≫ X.hom = (chartModel R X U).hom := by |
| 44 | rw [RelativeSectionCoefficients.RelativeSpecMaps.structure_eq] |
| 45 | exact IntegralComparison.AffineOpen.SectionBase.overBase R X U.val U.property |
| 46 | |
| 47 | def chartIso (U : X.left.affineOpens) (n : ℕ) : |
| 48 | Integral.FormsModules.IntegralFormsModules.sheaf R (chartModel R X U) n ≅ |
| 49 | (Integral.FormsModules.IntegralFormsModules.sheaf R X n).restrict U.property.fromSpec := |
| 50 | Integral.FormsOpenRestriction.IntegralFormsOpenRestriction.iso (chartModel R X U) X U.property.fromSpec (chart_over R X U) n |
| 51 | |
| 52 | omit [Smooth X.hom] in |
| 53 | theorem chart_quasicoherent (U : X.left.affineOpens) (n : ℕ) (hn : n ≤ 2) : |
| 54 | ((Integral.FormsModules.IntegralFormsModules.sheaf R X n).restrict U.property.fromSpec).IsQuasicoherent := |
| 55 | (SheafOfModules.isQuasicoherent _).prop_of_iso (chartIso R X U n) |
| 56 | (IntegralAffine.FirstThreeCoherence.IntegralAffineFirstThreeCoherence.quasicoherent R (chartRing R X U) n hn) |
| 57 | |
| 58 | theorem chart_finiteType (U : X.left.affineOpens) (n : ℕ) (hn : n ≤ 2) : |
| 59 | ((Integral.FormsModules.IntegralFormsModules.sheaf R X n).restrict U.property.fromSpec).IsFiniteType := by |
| 60 | let : Algebra.Smooth R (chartRing R X U) := GeometricComparison.Smooth.IntegralSections.SmoothIntegralSections.algebra_smooth R X U.val U.property |
| 61 | have hfinite : (Integral.FormsModules.IntegralFormsModules.sheaf R (chartModel R X U) n).IsFiniteType := |
| 62 | IntegralAffine.FirstThreeCoherence.IntegralAffineFirstThreeCoherence.finiteType R (chartRing R X U) n hn |
| 63 | exact @IntegralComparison.Module.FiniteTypeIso.finiteType (chartModel R X U).left _ _ (chartIso R X U n) hfinite |
| 64 | |
| 65 | omit [Smooth X.hom] in |
| 66 | theorem cover : (Opens.grothendieckTopology X.left).CoversTop (fun U : X.left.affineOpens => U.val) := by |
| 67 | rw [Opens.coversTop_iff, TopologicalSpace.IsOpenCover, iSup_affineOpens_eq_top X.left] |
| 68 | |
| 69 | omit [Smooth X.hom] in |
| 70 | theorem open_quasicoherent (U : X.left.affineOpens) (n : ℕ) (hn : n ≤ 2) : |
| 71 | ((Integral.FormsModules.IntegralFormsModules.sheaf R X n).over U.val).IsQuasicoherent := by |
| 72 | let : IsAffine U.val.toScheme := U.property |
| 73 | let := chart_quasicoherent R X U n hn |
| 74 | let := IntegralComparison.AffineOpen.ModuleGenerators.quasicoherent (Integral.FormsModules.IntegralFormsModules.sheaf R X n) U.val U.property |
| 75 | exact AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.QuasicoherenceLocality.module_over_quasicoherent_of_affine_restriction (Integral.FormsModules.IntegralFormsModules.sheaf R X n) U.val |
| 76 | |
| 77 | omit [Smooth X.hom] in |
| 78 | theorem quasicoherent (n : ℕ) (hn : n ≤ 2) : (Integral.FormsModules.IntegralFormsModules.sheaf R X n).IsQuasicoherent := |
| 79 | @SheafOfModules.IsQuasicoherent.of_coversTop _ _ _ _ _ _ _ _ (Integral.FormsModules.IntegralFormsModules.sheaf R X n) _ |
| 80 | (fun U : X.left.affineOpens => U.val) (cover R X) (fun U => open_quasicoherent R X U n hn) |
| 81 | |
| 82 | theorem open_generators (U : X.left.affineOpens) (n : ℕ) (hn : n ≤ 2) : |
| 83 | ∃ G : ((Integral.FormsModules.IntegralFormsModules.sheaf R X n).restrict U.val.ι).GeneratingSections, G.IsFiniteType := by |
| 84 | let := chart_quasicoherent R X U n hn |
| 85 | let := chart_finiteType R X U n hn |
| 86 | let M := (Integral.FormsModules.IntegralFormsModules.sheaf R X n).restrict U.property.fromSpec |
| 87 | let : Module.Finite Γ((Spec Γ(X.left, U.val)), ⊤) Γ(M, ⊤) := |
| 88 | AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.QuasicoherentFiniteTypeSections.affine_quasicoherent_finiteType_sections_finite M |
| 89 | obtain ⟨G, hG⟩ := AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.FiniteGeneratingSections.affine_exists_finite_generatingSections |
| 90 | ((Integral.FormsModules.IntegralFormsModules.sheaf R X n).restrict U.property.fromSpec) |
| 91 | let : G.IsFiniteType := hG |
| 92 | exact ⟨IntegralComparison.AffineOpen.ModuleGenerators.generatingSections (Integral.FormsModules.IntegralFormsModules.sheaf R X n) U.val U.property G, |
| 93 | IntegralComparison.AffineOpen.ModuleGenerators.generatingSections_finite (Integral.FormsModules.IntegralFormsModules.sheaf R X n) U.val U.property G⟩ |
| 94 | |
| 95 | theorem finiteType (n : ℕ) (hn : n ≤ 2) : (Integral.FormsModules.IntegralFormsModules.sheaf R X n).IsFiniteType := by |
| 96 | choose G hG using fun U => open_generators R X U n hn |
| 97 | let q : (Integral.FormsModules.IntegralFormsModules.sheaf R X n).LocalGeneratorsData := |
| 98 | { I := X.left.affineOpens |
| 99 | X := fun U => U.val |
| 100 | coversTop := cover R X |
| 101 | generators := fun U => AlgebraicGeometry.AbelianModuli.HilbertConstruction.RestrictionGeneratingSections.generatingSectionsOverOfRestrict |
| 102 | (Integral.FormsModules.IntegralFormsModules.sheaf R X n) U.val (G U) } |
| 103 | have hq : q.IsFiniteType := by |
| 104 | constructor |
| 105 | intro U |
| 106 | let : (G U).IsFiniteType := hG U |
| 107 | exact AlgebraicGeometry.AbelianModuli.HilbertConstruction.RestrictionGeneratingSections.generatingSectionsOverOfRestrict_isFiniteType |
| 108 | (Integral.FormsModules.IntegralFormsModules.sheaf R X n) U.val (G U) |
| 109 | exact ⟨⟨q, hq⟩⟩ |
| 110 | |
| 111 | end |
| 112 | |
| 113 | end OAI.NumberTheory.PadicHodge.GeometricComparison.IntegralFirst.ThreeFormCoherence.IntegralFirstThreeFormCoherence |