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.FlatProjectiveRankBounds |
| 2 | import OAI.ArithmeticGeometry.OrdinaryLocus.Openness.CompositePushforwardProjectiveSections |
| 3 | |
| 4 | /-! # Flat Projective Hilbert Bounds -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.FlatProjectiveHilbertBounds.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual projective Hilbert polynomials satisfy the shifted inequalities of a finite flat map's rank. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry MonoidalCategory _root_.MvPolynomial |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | local instance finiteFlatProjectiveHilbertBoundsMonoidal (X : Scheme.{u}) : |
| 17 | MonoidalCategory X.Modules := AlgebraicGeometry.SheafCohomology.Projective.Monoidal.Scheme.Modules.monoidalCategory X |
| 18 | |
| 19 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] |
| 20 | {σ : Type} [Fintype σ] [LinearOrder σ] |
| 21 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 22 | |
| 23 | theorem finiteFlatProjective_Hilbert_shift_bounds |
| 24 | (hfield : IsField Γ(Spec (.of R), ⊤)) {X Z : Scheme.{u}} [IsIntegral X] [IsIntegral Z] |
| 25 | (f : X ⟶ Z) [IsFinite f] [Flat f] |
| 26 | (a : Z ⟶ Proj (homogeneousSubmodule σ R)) [IsClosedImmersion a] (j : σ) |
| 27 | [Nonempty (a ⁻¹ᵁ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen j)] [Nonempty ((f ≫ a) ⁻¹ᵁ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen j)] |
| 28 | (P Q : Polynomial ℚ) (b : ℕ) |
| 29 | (hP : ∀ n, b ≤ n → |
| 30 | (Module.finrank Γ(Spec (.of R), ⊤) ((AlgebraicGeometry.SheafCohomology.Projective.AdditiveCoproductSections.baseGlobalSectionsFunctor (a ≫ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ)).obj |
| 31 | ((Scheme.Modules.pullback a).obj (AlgebraicGeometry.SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower j n))) : ℚ) = P.eval (n : ℚ)) |
| 32 | (hQ : ∀ n, b ≤ n → |
| 33 | (Module.finrank Γ(Spec (.of R), ⊤) ((AlgebraicGeometry.SheafCohomology.Projective.AdditiveCoproductSections.baseGlobalSectionsFunctor (a ≫ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ)).obj |
| 34 | ((Scheme.Modules.pushforward f).obj (AlgebraicGeometry.SheafCohomology.Projective.Invertible.Scheme.Modules.unitObj X) ⊗ |
| 35 | (Scheme.Modules.pullback a).obj (AlgebraicGeometry.SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower j n))) : ℚ) = Q.eval (n : ℚ)) : |
| 36 | let D := f.finrank (((AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen_isAffineOpen (R := R) j).preimage a).fromSpec |
| 37 | (⊥ : PrimeSpectrum Γ(Z, a ⁻¹ᵁ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen j))) |
| 38 | ∃ c s : ℕ, |
| 39 | (∀ n, c ≤ n → (D : ℚ) * P.eval (n : ℚ) ≤ Q.eval ((n : ℚ) + s)) ∧ |
| 40 | (∀ n, c ≤ n → Q.eval (n : ℚ) ≤ (D : ℚ) * P.eval ((n : ℚ) + s)) := by |
| 41 | let := hfield.toField |
| 42 | let := BaseOpenSections.Construction.baseOpenSectionsAlgebra (a ≫ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ) (a ⁻¹ᵁ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen j) |
| 43 | let D := f.finrank (((AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen_isAffineOpen (R := R) j).preimage a).fromSpec |
| 44 | (⊥ : PrimeSpectrum Γ(Z, a ⁻¹ᵁ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen j))) |
| 45 | let N := (Scheme.Modules.pushforward (f ≫ a)).obj (AlgebraicGeometry.SheafCohomology.Projective.Invertible.Scheme.Modules.unitObj X) |
| 46 | obtain ⟨b₀, s, hlo, hhi⟩ := FlatProjectiveRankBounds.Construction.finiteFlatProjective_sections_filtered_rank_bounds hfield f a j |
| 47 | obtain ⟨b₁, hb₁⟩ := ProjectiveFilteredSections.Construction.closedProjective_sections_filtered_finrank hfield a j |
| 48 | let c := max b (max b₀ b₁) |
| 49 | have hcP (n : ℕ) (hn : c ≤ n) := (le_max_left b (max b₀ b₁)).trans hn |
| 50 | have hc₀ (n : ℕ) (hn : c ≤ n) := (le_max_left b₀ b₁).trans ((le_max_right b (max b₀ b₁)).trans hn) |
| 51 | have hc₁ (n : ℕ) (hn : c ≤ n) := (le_max_right b₀ b₁).trans ((le_max_right b (max b₀ b₁)).trans hn) |
| 52 | have hp (n : ℕ) (hn : c ≤ n) : |
| 53 | (Module.finrank Γ(Spec (.of R), ⊤) |
| 54 | (PolynomialFilteredAlgebra.Construction.polynomialFilteredPiece (K := Γ(Spec (.of R), ⊤)) (ProjectiveFilteredSections.Construction.closedProjectiveChartCoordinates a j) n) : ℚ) = |
| 55 | P.eval (n : ℚ) := |
| 56 | (congrArg (fun k : ℕ => (k : ℚ)) (hb₁ n (hc₁ n hn))).symm.trans (hP n (hcP n hn)) |
| 57 | have hq (n : ℕ) (hn : c ≤ n) : |
| 58 | (Module.finrank Γ(Spec (.of R), ⊤) ((AlgebraicGeometry.SheafCohomology.Projective.AdditiveCoproductSections.baseGlobalSectionsFunctor AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ).obj |
| 59 | (N ⊗ AlgebraicGeometry.SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower j n)) : ℚ) = Q.eval (n : ℚ) := |
| 60 | (congrArg (fun k : ℕ => (k : ℚ)) |
| 61 | (CompositePushforwardProjectiveSections.Construction.compositePushforwardProjectiveSectionsEquiv f a j n).finrank_eq).symm.trans (hQ n (hcP n hn)) |
| 62 | refine ⟨c, s, ?_, ?_⟩ |
| 63 | · intro n hn |
| 64 | have h : (D : ℚ) * (Module.finrank Γ(Spec (.of R), ⊤) |
| 65 | (PolynomialFilteredAlgebra.Construction.polynomialFilteredPiece (K := Γ(Spec (.of R), ⊤)) (ProjectiveFilteredSections.Construction.closedProjectiveChartCoordinates a j) n) : ℚ) ≤ |
| 66 | (Module.finrank Γ(Spec (.of R), ⊤) ((AlgebraicGeometry.SheafCohomology.Projective.AdditiveCoproductSections.baseGlobalSectionsFunctor AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ).obj |
| 67 | (N ⊗ AlgebraicGeometry.SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower j (n + s))) : ℚ) := by |
| 68 | exact_mod_cast hlo n (hc₀ n hn) |
| 69 | rw [hp n hn, hq (n + s) (hn.trans (Nat.le_add_right n s))] at h |
| 70 | simpa only [Nat.cast_add] using h |
| 71 | · intro n hn |
| 72 | have h : (Module.finrank Γ(Spec (.of R), ⊤) ((AlgebraicGeometry.SheafCohomology.Projective.AdditiveCoproductSections.baseGlobalSectionsFunctor AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ).obj |
| 73 | (N ⊗ AlgebraicGeometry.SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower j n)) : ℚ) ≤ |
| 74 | (D : ℚ) * (Module.finrank Γ(Spec (.of R), ⊤) |
| 75 | (PolynomialFilteredAlgebra.Construction.polynomialFilteredPiece (K := Γ(Spec (.of R), ⊤)) |
| 76 | (ProjectiveFilteredSections.Construction.closedProjectiveChartCoordinates a j) (n + s)) : ℚ) := by |
| 77 | exact_mod_cast hhi n (hc₀ n hn) |
| 78 | rw [hq n hn, hp (n + s) (hn.trans (Nat.le_add_right n s))] at h |
| 79 | simpa only [Nat.cast_add] using h |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.FlatProjectiveHilbertBounds.Construction |