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.InitialIdeal |
| 2 | |
| 3 | /-! # Monomial Basis -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Hilbert.MonomialBasis.GradedHilbert |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | The graded quotient dimension is the number of standard monomials of |
| 11 | that degree. In particular, monomial ideals defined by the same exponent |
| 12 | generators have the same Hilbert function over any two fields. |
| 13 | -/ |
| 14 | |
| 15 | open _root_.MvPolynomial _root_.Module |
| 16 | |
| 17 | universe u v |
| 18 | |
| 19 | variable {R : Type u} [CommRing R] {n : ℕ} |
| 20 | |
| 21 | theorem mem_degreeSpace_iff_support (f : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (d : ℕ) : |
| 22 | f ∈ Hilbert.Polynomial.GradedHilbert.grading R n d ↔ ∀ a ∈ f.support, a.degree = d := by |
| 23 | rw [Hilbert.Polynomial.GradedHilbert.grading, homogeneousSubmodule_eq_finsupp_supported] |
| 24 | rfl |
| 25 | |
| 26 | variable {K : Type u} [Field K] |
| 27 | |
| 28 | def standardDegreeMonomials (m : MonomialOrder (Fin (n + 1))) |
| 29 | (I : Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) (d : ℕ) : Set (Fin (n + 1) →₀ ℕ) := |
| 30 | {a | a.degree = d ∧ monomial a (1 : K) ∉ InitialIdeal.GradedHilbert.initialIdeal m I} |
| 31 | |
| 32 | def standardDegreeSpaceEquivSupported (m : MonomialOrder (Fin (n + 1))) |
| 33 | (I : Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) (d : ℕ) : |
| 34 | InitialIdeal.GradedHilbert.standardDegreeSpace m I d ≃ₗ[K] restrictSupport K (standardDegreeMonomials m I d) where |
| 35 | toFun f := ⟨f.val.val, fun a ha => |
| 36 | ⟨(mem_degreeSpace_iff_support f.val.val d).mp f.val.property a ha, f.property ha⟩⟩ |
| 37 | invFun f := ⟨⟨f.val, (mem_degreeSpace_iff_support f.val d).mpr |
| 38 | (fun _ ha => (f.property ha).1)⟩, fun _ ha => (f.property ha).2⟩ |
| 39 | left_inv _ := rfl |
| 40 | right_inv _ := rfl |
| 41 | map_add' _ _ := rfl |
| 42 | map_smul' _ _ := rfl |
| 43 | |
| 44 | def standardDegreeBasis (m : MonomialOrder (Fin (n + 1))) |
| 45 | (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)) (d : ℕ) : |
| 46 | Basis (standardDegreeMonomials m I.toIdeal d) K (Hilbert.Polynomial.GradedHilbert.DegreeQuotient I.toIdeal d) := |
| 47 | (basisRestrictSupport K (standardDegreeMonomials m I.toIdeal d)).map |
| 48 | ((standardDegreeSpaceEquivSupported m I.toIdeal d).symm.trans |
| 49 | (InitialIdeal.GradedHilbert.degreeQuotientEquivStandard m I d).symm) |
| 50 | |
| 51 | theorem hilbertFunction_eq_card_standard (m : MonomialOrder (Fin (n + 1))) |
| 52 | (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)) (d : ℕ) : |
| 53 | Hilbert.Polynomial.GradedHilbert.hilbertFunction I.toIdeal d = Nat.card (standardDegreeMonomials m I.toIdeal d) := |
| 54 | Module.finrank_eq_nat_card_basis (standardDegreeBasis m I d) |
| 55 | |
| 56 | def monomialSpan (K : Type u) [Field K] (S : Set (Fin (n + 1) →₀ ℕ)) : |
| 57 | HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n) := |
| 58 | ⟨Ideal.span ((fun a => monomial a (1 : K)) '' S), |
| 59 | SaturatedMonomialIdeals.GradedHilbert.IsMonomial.isHomogeneous ⟨S, rfl⟩⟩ |
| 60 | |
| 61 | theorem hilbertFunction_monomialSpan (S : Set (Fin (n + 1) →₀ ℕ)) (d : ℕ) : |
| 62 | Hilbert.Polynomial.GradedHilbert.hilbertFunction (monomialSpan K S).toIdeal d = |
| 63 | Nat.card {a : Fin (n + 1) →₀ ℕ | a.degree = d ∧ ∀ b ∈ S, ¬ b ≤ a} := by |
| 64 | classical |
| 65 | let m : MonomialOrder (Fin (n + 1)) := MonomialOrder.lex |
| 66 | rw [hilbertFunction_eq_card_standard m] |
| 67 | have heq : standardDegreeMonomials m (monomialSpan K S).toIdeal d = |
| 68 | {a : Fin (n + 1) →₀ ℕ | a.degree = d ∧ ∀ b ∈ S, ¬ b ≤ a} := by |
| 69 | ext a |
| 70 | simp only [standardDegreeMonomials, Set.mem_ofPred_eq, |
| 71 | InitialIdeal.GradedHilbert.initialIdeal_eq_self_of_isMonomial m (show SaturatedMonomialIdeals.GradedHilbert.IsMonomial (monomialSpan K S).toIdeal |
| 72 | from ⟨S, rfl⟩)] |
| 73 | change (a.degree = d ∧ monomial a (1 : K) ∉ |
| 74 | Ideal.span ((fun b => monomial b (1 : K)) '' S)) ↔ _ |
| 75 | simp only [mem_ideal_span_monomial_image, support_monomial, one_ne_zero, |
| 76 | ↓reduceIte, Finset.mem_singleton, forall_eq, not_exists, not_and] |
| 77 | rw [heq] |
| 78 | |
| 79 | theorem hilbertFunction_monomialSpan_field_independent |
| 80 | (L : Type v) [Field L] (S : Set (Fin (n + 1) →₀ ℕ)) (d : ℕ) : |
| 81 | Hilbert.Polynomial.GradedHilbert.hilbertFunction (monomialSpan K S).toIdeal d = |
| 82 | Hilbert.Polynomial.GradedHilbert.hilbertFunction (monomialSpan L S).toIdeal d := by |
| 83 | rw [hilbertFunction_monomialSpan, hilbertFunction_monomialSpan] |
| 84 | |
| 85 | theorem hasHilbertPolynomial_monomialSpan_field_independent |
| 86 | (L : Type v) [Field L] (S : Set (Fin (n + 1) →₀ ℕ)) (P : Polynomial ℚ) : |
| 87 | Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial (monomialSpan K S).toIdeal P ↔ |
| 88 | Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial (monomialSpan L S).toIdeal P := by |
| 89 | simp only [Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial, hilbertFunction_monomialSpan] |
| 90 | |
| 91 | end |
| 92 | |
| 93 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Hilbert.MonomialBasis.GradedHilbert |