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.ArithmeticGeometry.OrdinaryLocus.Openness.FlatProjectiveHilbertBounds |
| 2 | import OAI.ArithmeticGeometry.OrdinaryLocus.Openness.EmbeddedAmpleSectionDimension |
| 3 | import OAI.ArithmeticGeometry.OrdinaryLocus.Openness.PolynomialRankSandwich |
| 4 | |
| 5 | /-! # Finite Flat Projective Degree -/ |
| 6 | |
| 7 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.FiniteFlatProjectiveDegree.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A rescaled projective Hilbert polynomial determines the actual generic degree of a finite flat map. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry MonoidalCategory _root_.MvPolynomial |
| 14 | |
| 15 | local instance finiteFlatProjectiveDegreeMonoidal (X : Scheme.{0}) : |
| 16 | MonoidalCategory X.Modules := AlgebraicGeometry.SheafCohomology.Projective.Monoidal.Scheme.Modules.monoidalCategory X |
| 17 | |
| 18 | variable {R : Type} [CommRing R] [IsNoetherianRing R] |
| 19 | {σ : Type} [Fintype σ] [LinearOrder σ] |
| 20 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 21 | |
| 22 | theorem finiteFlat_projective_rank_of_rescaling |
| 23 | (hfield : IsField Γ(Spec (.of R), ⊤)) {X Z : Scheme} [IsIntegral X] [IsIntegral Z] |
| 24 | (f : X ⟶ Z) [IsFinite f] [Flat f] [Surjective f] |
| 25 | (a : Z ⟶ Proj (homogeneousSubmodule σ R)) [IsClosedImmersion a] (j : σ) |
| 26 | (P Q : Polynomial ℚ) (hPne : P ≠ 0) (b : ℕ) |
| 27 | (hP : ∀ n, b ≤ n → |
| 28 | (Module.finrank Γ(Spec (.of R), ⊤) ((AlgebraicGeometry.SheafCohomology.Projective.AdditiveCoproductSections.baseGlobalSectionsFunctor (a ≫ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ)).obj |
| 29 | ((Scheme.Modules.pullback a).obj (AlgebraicGeometry.SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower j n))) : ℚ) = P.eval (n : ℚ)) |
| 30 | (hQ : ∀ n, b ≤ n → |
| 31 | (Module.finrank Γ(Spec (.of R), ⊤) ((AlgebraicGeometry.SheafCohomology.Projective.AdditiveCoproductSections.baseGlobalSectionsFunctor (a ≫ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ)).obj |
| 32 | ((Scheme.Modules.pushforward f).obj (AlgebraicGeometry.SheafCohomology.Projective.Invertible.Scheme.Modules.unitObj X) ⊗ |
| 33 | (Scheme.Modules.pullback a).obj (AlgebraicGeometry.SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower j n))) : ℚ) = Q.eval (n : ℚ)) |
| 34 | (s : ℕ) (hs : 0 < s) (he : Q = P.comp (Polynomial.X * Polynomial.C (s : ℚ))) : |
| 35 | ∃ z : Z, f.finrank z = s ^ P.natDegree := by |
| 36 | let := hfield.toField |
| 37 | let z : Z := Classical.choice inferInstance |
| 38 | obtain ⟨i, hi⟩ := TopologicalSpace.Opens.mem_iSup.mp |
| 39 | (show a z ∈ ⨆ i : σ, AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i by |
| 40 | rw [AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.iSup_coordinateOpen_eq_top]; trivial) |
| 41 | have : Nonempty (a ⁻¹ᵁ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen i) := ⟨⟨z, hi⟩⟩ |
| 42 | obtain ⟨x, hx⟩ := f.surjective z |
| 43 | have : Nonempty ((f ≫ a) ⁻¹ᵁ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen i) := |
| 44 | ⟨⟨x, by change a (f x) ∈ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen i; rw [hx]; exact hi⟩⟩ |
| 45 | have hp (n : ℕ) (hn : b ≤ n) : |
| 46 | (Module.finrank Γ(Spec (.of R), ⊤) ((AlgebraicGeometry.SheafCohomology.Projective.AdditiveCoproductSections.baseGlobalSectionsFunctor (a ≫ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ)).obj |
| 47 | ((Scheme.Modules.pullback a).obj (AlgebraicGeometry.SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower i n))) : ℚ) = P.eval (n : ℚ) := by |
| 48 | let e := (Scheme.Modules.pullback a).mapIso (ProjectiveCoordinateBundleIso.Construction.projectiveTwistCoordinateIso (R := R) j i n) |
| 49 | have h := ((AlgebraicGeometry.SheafCohomology.Projective.AdditiveCoproductSections.baseGlobalSectionsFunctor (a ≫ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ)).mapIso e).toLinearEquiv.finrank_eq |
| 50 | exact (congrArg (fun k : ℕ => (k : ℚ)) h).symm.trans (hP n hn) |
| 51 | have hq (n : ℕ) (hn : b ≤ n) : |
| 52 | (Module.finrank Γ(Spec (.of R), ⊤) ((AlgebraicGeometry.SheafCohomology.Projective.AdditiveCoproductSections.baseGlobalSectionsFunctor (a ≫ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ)).obj |
| 53 | ((Scheme.Modules.pushforward f).obj (AlgebraicGeometry.SheafCohomology.Projective.Invertible.Scheme.Modules.unitObj X) ⊗ |
| 54 | (Scheme.Modules.pullback a).obj (AlgebraicGeometry.SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower i n))) : ℚ) = Q.eval (n : ℚ) := |
| 55 | (congrArg (fun k : ℕ => (k : ℚ)) (EmbeddedAmpleSectionDimension.Construction.projectiveTwistedSection_finrank_coordinate a |
| 56 | ((Scheme.Modules.pushforward f).obj (AlgebraicGeometry.SheafCohomology.Projective.Invertible.Scheme.Modules.unitObj X)) j i n)).symm.trans (hQ n hn) |
| 57 | obtain ⟨c, t, hlo, hhi⟩ := FlatProjectiveHilbertBounds.Construction.finiteFlatProjective_Hilbert_shift_bounds hfield f a i P Q b hp hq |
| 58 | let z₀ := ((AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen_isAffineOpen (R := R) i).preimage a).fromSpec |
| 59 | (⊥ : PrimeSpectrum Γ(Z, a ⁻¹ᵁ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen i)) |
| 60 | exact ⟨z₀, PolynomialRankSandwich.Construction.polynomial_rank_eq_power_of_rescaling_and_shift_bounds |
| 61 | P Q hPne (f.finrank z₀) s hs he c t hlo hhi⟩ |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.FiniteFlatProjectiveDegree.Construction |