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.NumberTheory.PadicHodge.IntegralComparison.Affine.ResolutionDualPurity |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Closed.ImmersionQuotientSections |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.ImageType |
| 4 | |
| 5 | /-! # Closed Immersion Purity -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.ClosedImmersionPurity |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The genuine dual negative-twist resolution of a closed subscheme is |
| 12 | locally pure on affine coordinate subopens with regular defining equations. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.MvPolynomial Opposite |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] |
| 21 | {σ : Type} [Fintype σ] [LinearOrder σ] |
| 22 | |
| 23 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 24 | |
| 25 | variable {X : Scheme.{u}} (f : X ⟶ Proj (homogeneousSubmodule σ R)) [IsClosedImmersion f] |
| 26 | |
| 27 | abbrev directImage := Closed.ImmersionQuotientSections.directImage f |
| 28 | |
| 29 | instance directImage_quasicoherent : (directImage f).IsQuasicoherent := by |
| 30 | have : (AlgebraicGeometry.SheafCohomology.Projective.Invertible.Scheme.Modules.unitObj X).IsQuasicoherent := |
| 31 | AlgebraicGeometry.SheafCohomology.Projective.InvertibleFinitePresentation.invertible_quasicoherent AlgebraicGeometry.SheafCohomology.Projective.Invertible.Scheme.Modules.isInvertible_unit |
| 32 | exact AlgebraicGeometry.AbelianModuli.HilbertConstruction.Quasicoherent.Image.quasiCompact_separated_directImage_quasicoherent f (AlgebraicGeometry.SheafCohomology.Projective.Invertible.Scheme.Modules.unitObj X) |
| 33 | |
| 34 | instance directImage_finiteType : (directImage f).IsFiniteType := by |
| 35 | have : (AlgebraicGeometry.SheafCohomology.Projective.Invertible.Scheme.Modules.unitObj X).IsQuasicoherent := |
| 36 | AlgebraicGeometry.SheafCohomology.Projective.InvertibleFinitePresentation.invertible_quasicoherent AlgebraicGeometry.SheafCohomology.Projective.Invertible.Scheme.Modules.isInvertible_unit |
| 37 | have : (AlgebraicGeometry.SheafCohomology.Projective.Invertible.Scheme.Modules.unitObj X).IsFiniteType := by |
| 38 | have : (AlgebraicGeometry.SheafCohomology.Projective.Invertible.Scheme.Modules.unitObj X).IsFinitePresentation := |
| 39 | AlgebraicGeometry.SheafCohomology.Projective.InvertibleFinitePresentation.invertible_finitePresentation AlgebraicGeometry.SheafCohomology.Projective.Invertible.Scheme.Modules.isInvertible_unit |
| 40 | obtain ⟨q, hq⟩ := SheafOfModules.IsFinitePresentation.exists_quasicoherentData (AlgebraicGeometry.SheafCohomology.Projective.Invertible.Scheme.Modules.unitObj X) |
| 41 | refine { exists_localGeneratorsData := ⟨q.localGeneratorsData, ?_⟩ } |
| 42 | constructor |
| 43 | intro i |
| 44 | exact (hq.isFinite_presentation i).isFiniteType_generators |
| 45 | exact AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.ImageType.finite_directImage_finiteType f (AlgebraicGeometry.SheafCohomology.Projective.Invertible.Scheme.Modules.unitObj X) |
| 46 | |
| 47 | variable (j : σ) (B b : ℕ) |
| 48 | |
| 49 | abbrev source := NegativeResolution.complex (directImage f) j B |
| 50 | |
| 51 | instance source_quasicoherent (n : ℕ) : ((ClosedImmersionPurity.source f j B).X n).IsQuasicoherent := |
| 52 | inferInstanceAs ((NegativeResolution.presentation |
| 53 | (NegativeResolution.state (directImage f) j B n).module j B).source.IsQuasicoherent) |
| 54 | |
| 55 | def internalComplex := SchemeInternalHom.complex (.up ℕ) |
| 56 | (AlgebraicGeometry.SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePower (R := R) j b) (ClosedImmersionPurity.source f j B).op |
| 57 | |
| 58 | variable (U : (Proj (homogeneousSubmodule σ R)).Opens) (hU : IsAffineOpen U) |
| 59 | (i : σ) (hUi : U ≤ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i) |
| 60 | |
| 61 | def sectionComplex := |
| 62 | (((Affine.ModuleExactSections.sections U ⋙ forget₂ _ AddCommGrpCat).mapHomologicalComplex |
| 63 | (.up ℕ)).obj (internalComplex f j B b)) |
| 64 | |
| 65 | variable (rs : List Γ(Proj (homogeneousSubmodule σ R), U)) |
| 66 | (hreg : RingTheory.Sequence.IsWeaklyRegular Γ(Proj (homogeneousSubmodule σ R), U) rs) |
| 67 | (hrs : RingHom.ker (f.app U).hom = Ideal.ofList rs) |
| 68 | |
| 69 | def targetTrivialization : |
| 70 | (AffineOpen.InternalHom.sections U hU).obj (AlgebraicGeometry.SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePower (R := R) j b) ≅ |
| 71 | ModuleCat.of Γ(Proj (homogeneousSubmodule σ R), U) Γ(Proj (homogeneousSubmodule σ R), U) := |
| 72 | Affine.ProjectiveResolutionTerms.trivialSectionIso U hU _ |
| 73 | (AlgebraicGeometry.SheafCohomology.Projective.OpenFrames.Scheme.Modules.restrictOpenTrivialization hUi |
| 74 | (AlgebraicGeometry.SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePowerTrivialization (R := R) i j b)) |
| 75 | |
| 76 | def purityIso : |
| 77 | (sectionComplex f j B b U).homology rs.length ≅ |
| 78 | (forget₂ (ModuleCat Γ(Proj (homogeneousSubmodule σ R), U)) AddCommGrpCat).obj |
| 79 | (ProjectiveResolution.DualPurity.quotient Γ(Proj (homogeneousSubmodule σ R), U) rs) := by |
| 80 | let (n : ℕ) : Projective ((AffineOpen.InternalHom.sections U hU).obj ((ClosedImmersionPurity.source f j B).X n)) := |
| 81 | Affine.ProjectiveResolutionTerms.term_projective U hU i hUi (directImage f) j B n |
| 82 | exact Affine.ResolutionDualPurity.purityIso U hU |
| 83 | (AlgebraicGeometry.SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePower (R := R) j b) (ClosedImmersionPurity.source f j B) (directImage f) |
| 84 | (NegativeResolution.augmentation (directImage f) j B) rs hreg |
| 85 | (Closed.ImmersionQuotientSections.chartQuotientIso f U hU rs hrs) |
| 86 | (targetTrivialization j b U hU i hUi) |
| 87 | |
| 88 | include hU i hUi hreg hrs in |
| 89 | omit [LinearOrder σ] in |
| 90 | theorem exactAt (n : ℕ) (hn : n ≠ rs.length) : (sectionComplex f j B b U).ExactAt n := by |
| 91 | let (m : ℕ) : Projective ((AffineOpen.InternalHom.sections U hU).obj ((ClosedImmersionPurity.source f j B).X m)) := |
| 92 | Affine.ProjectiveResolutionTerms.term_projective U hU i hUi (directImage f) j B m |
| 93 | exact Affine.ResolutionDualPurity.exactAt U hU |
| 94 | (AlgebraicGeometry.SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePower (R := R) j b) (ClosedImmersionPurity.source f j B) (directImage f) |
| 95 | (NegativeResolution.augmentation (directImage f) j B) rs hreg |
| 96 | (Closed.ImmersionQuotientSections.chartQuotientIso f U hU rs hrs) |
| 97 | (targetTrivialization j b U hU i hUi) n hn |
| 98 | |
| 99 | end |
| 100 | |
| 101 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.ClosedImmersionPurity |