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.HilbertScheme.Presentations.Bounded.GeneratorFunction |
| 2 | |
| 3 | /-! # Polynomial Test -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.PolynomialTest.GradedHilbert |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! For bounded homogeneous generators, the Hilbert-polynomial condition is determined by finitely many actual quotient dimensions. -/ |
| 10 | |
| 11 | open _root_.MvPolynomial |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | theorem monomialHilbertPolynomial_natDegree_le {n : ℕ} (G : Finset (Fin (n + 1) →₀ ℕ)) : |
| 16 | (Hilbert.Existence.GradedHilbert.monomialHilbertPolynomial G).natDegree ≤ n := by |
| 17 | apply Polynomial.natDegree_sum_le_of_forall_le |
| 18 | intro t _ |
| 19 | exact (Polynomial.natDegree_smul_le _ _).trans (Polynomial.natDegree_preHilbertPoly ℚ n _).le |
| 20 | |
| 21 | variable {K : Type u} [Field K] {n : ℕ} |
| 22 | |
| 23 | theorem hilbertPolynomial_natDegree_le (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)) |
| 24 | (P : Polynomial ℚ) (hP : Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial I.toIdeal P) : P.natDegree ≤ n := by |
| 25 | let m : MonomialOrder (Fin (n + 1)) := MonomialOrder.lex |
| 26 | obtain ⟨G, hG⟩ := (InitialIdeal.GradedHilbert.initialIdeal_isMonomial m I.toIdeal).finite_generators |
| 27 | have hQ : Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial I.toIdeal (Hilbert.Existence.GradedHilbert.monomialHilbertPolynomial G) := by |
| 28 | apply (InitialIdeal.GradedHilbert.hasHilbertPolynomial_initialIdeal_iff m I _).mp |
| 29 | rw [hG] |
| 30 | exact Hilbert.Existence.GradedHilbert.monomialSpan_hasHilbertPolynomial G |
| 31 | rw [Hilbert.Polynomial.GradedHilbert.hilbertPolynomial_unique hP hQ] |
| 32 | exact monomialHilbertPolynomial_natDegree_le G |
| 33 | |
| 34 | theorem bounded_generators_hilbertPolynomial_finite_test |
| 35 | (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)) (B : Finset (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) |
| 36 | (hB : I.toIdeal = Ideal.span (B : Set (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n))) |
| 37 | (D : ℕ) (hb : ∀ b ∈ B, b ≠ 0 ∧ ∃ d ≤ D, b.IsHomogeneous d) (P : Polynomial ℚ) : |
| 38 | Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial I.toIdeal P ↔ |
| 39 | P.natDegree ≤ n ∧ ∀ i : Fin (n + 1), |
| 40 | (Hilbert.Polynomial.GradedHilbert.hilbertFunction I.toIdeal (Bounded.GeneratorFunction.GradedHilbert.generatorHilbertFunctionBound n D + i.val) : ℚ) = |
| 41 | P.eval ((Bounded.GeneratorFunction.GradedHilbert.generatorHilbertFunctionBound n D + i.val : ℕ) : ℚ) := by |
| 42 | constructor |
| 43 | · intro hP |
| 44 | refine ⟨hilbertPolynomial_natDegree_le I P hP, fun i => ?_⟩ |
| 45 | exact Bounded.GeneratorFunction.GradedHilbert.bounded_generators_hilbertFunction_eq I B hB D hb P hP _ (Nat.le_add_right _ _) |
| 46 | · rintro ⟨hdegP, hvals⟩ |
| 47 | obtain ⟨Q, hQ⟩ := Hilbert.Existence.GradedHilbert.exists_hilbertPolynomial I |
| 48 | have heq : Q = P := by |
| 49 | apply Polynomial.eq_of_natDegree_lt_card_of_eval_eq Q P |
| 50 | (f := fun i : Fin (n + 1) => ((Bounded.GeneratorFunction.GradedHilbert.generatorHilbertFunctionBound n D + i.val : ℕ) : ℚ)) |
| 51 | · intro i j hij |
| 52 | change ((Bounded.GeneratorFunction.GradedHilbert.generatorHilbertFunctionBound n D + i.val : ℕ) : ℚ) = |
| 53 | ((Bounded.GeneratorFunction.GradedHilbert.generatorHilbertFunctionBound n D + j.val : ℕ) : ℚ) at hij |
| 54 | have hnat : Bounded.GeneratorFunction.GradedHilbert.generatorHilbertFunctionBound n D + i.val = |
| 55 | Bounded.GeneratorFunction.GradedHilbert.generatorHilbertFunctionBound n D + j.val := by exact_mod_cast hij |
| 56 | exact Fin.ext (Nat.add_left_cancel hnat) |
| 57 | · intro i |
| 58 | rw [← Bounded.GeneratorFunction.GradedHilbert.bounded_generators_hilbertFunction_eq I B hB D hb Q hQ _ (Nat.le_add_right _ _)] |
| 59 | exact hvals i |
| 60 | · rw [Fintype.card_fin] |
| 61 | exact Nat.lt_succ_of_le (max_le (hilbertPolynomial_natDegree_le I Q hQ) hdegP) |
| 62 | exact heq ▸ hQ |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.PolynomialTest.GradedHilbert |