Module

MacaulayMonomials.lean

Nyll.AlgebraicCurves.Foundations.Polynomial.MacaulayMonomials
27 declarations indexed from sourceView source ↗

Monomial exponent sets and dimensions of homogeneous quotients

The degree and support bounds use one family of finite exponent sets. Coefficient maps identify homogeneous quotient pieces with coordinate spaces.

Imports13
  • Nyll.AlgebraicCurves.Hilbert.Functor.Basic
  • Mathlib.Algebra.MvPolynomial.Basic
  • Mathlib.Algebra.Group.Embedding
  • Mathlib.Data.Finsupp.Weight
  • Mathlib.Data.Finsupp.Order
  • Mathlib.Data.Finset.Card
  • Mathlib.Data.Nat.Choose.Basic
  • Mathlib.RingTheory.MvPolynomial.Homogeneous
  • Mathlib.LinearAlgebra.Dimension.Constructions
  • Mathlib.LinearAlgebra.Isomorphisms
  • Mathlib.LinearAlgebra.Quotient.Basic
  • Mathlib.Tactic.SplitIfs
  • Lean.Elab.Tactic.Omega
Imported by4

Declarations

MvPolynomial.Macaulay.Mon

The finite set of exponent vectors of the specified total degree.

Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
universe u
namespace MvPolynomial.Macaulay
open AlgebraicGeometry.HilbertFunctor
variable (n : ℕ)
def Mon (e : ℕ) : Finset (Fin (n + 1) →₀ ℕ)
MvPolynomial.Macaulay.mem_Mon
Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
universe u
namespace MvPolynomial.Macaulay
open AlgebraicGeometry.HilbertFunctor
variable (n : ℕ)
theorem mem_Mon (e : ℕ) (m : Fin (n + 1) →₀ ℕ) : m ∈ Mon n e ↔ m.degree = e
MvPolynomial.Macaulay.MonW

The exponent vectors of the specified degree supported on the first given number of variables.

Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
universe u
namespace MvPolynomial.Macaulay
open AlgebraicGeometry.HilbertFunctor
variable (n : ℕ)
def MonW (w e : ℕ) : Finset (Fin (n + 1) →₀ ℕ)
MvPolynomial.Macaulay.mem_MonW
Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
universe u
namespace MvPolynomial.Macaulay
open AlgebraicGeometry.HilbertFunctor
variable (n : ℕ)
theorem mem_MonW (w e : ℕ) (m : Fin (n + 1) →₀ ℕ) :
    m ∈ MonW n w e ↔ m.degree = e ∧ ∀ i : Fin (n + 1), w ≤ (i : ℕ) → m i = 0
MvPolynomial.Macaulay.MonW_mono
Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
universe u
namespace MvPolynomial.Macaulay
open AlgebraicGeometry.HilbertFunctor
variable (n : ℕ)
theorem MonW_mono {w w' : ℕ} (h : w ≤ w') (e : ℕ) : MonW n w e ⊆ MonW n w' e
MvPolynomial.Macaulay.MonW_of_le
Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
universe u
namespace MvPolynomial.Macaulay
open AlgebraicGeometry.HilbertFunctor
variable (n : ℕ)
theorem MonW_of_le {w : ℕ} (h : n + 1 ≤ w) (e : ℕ) : MonW n w e = Mon n e
MvPolynomial.Macaulay.var

The exponent vector of the specified variable.

Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
universe u
namespace MvPolynomial.Macaulay
open AlgebraicGeometry.HilbertFunctor
variable (n : ℕ)
def var (j : ℕ) (h : j < n + 1) : Fin (n + 1) →₀ ℕ
MvPolynomial.Macaulay.var_apply
Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
universe u
namespace MvPolynomial.Macaulay
open AlgebraicGeometry.HilbertFunctor
variable (n : ℕ)
theorem var_apply (j : ℕ) (h : j < n + 1) (i : Fin (n + 1)) :
    var n j h i = if (i : ℕ) = j then 1 else 0 := by
  simp only [var, Finsupp.single_apply, Fin.ext_iff]
  split_ifs <;> first | rfl | omega
MvPolynomial.Macaulay.degree_var
Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
universe u
namespace MvPolynomial.Macaulay
open AlgebraicGeometry.HilbertFunctor
variable (n : ℕ)
theorem degree_var (j : ℕ) (h : j < n + 1) : (var n j h).degree = 1
MvPolynomial.Macaulay.shift

The exponent set shifted by the specified variable, or empty when its index is out of range.

Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
universe u
namespace MvPolynomial.Macaulay
open AlgebraicGeometry.HilbertFunctor
variable (n : ℕ)
def shift (j : ℕ) (B : Finset (Fin (n + 1) →₀ ℕ)) : Finset (Fin (n + 1) →₀ ℕ)
MvPolynomial.Macaulay.shift_of_le
Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
universe u
namespace MvPolynomial.Macaulay
open AlgebraicGeometry.HilbertFunctor
variable (n : ℕ)
theorem shift_of_le {j : ℕ} (h : n + 1 ≤ j) (B : Finset (Fin (n + 1) →₀ ℕ)) : shift n j B = ∅
MvPolynomial.Macaulay.mem_shift
Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
universe u
namespace MvPolynomial.Macaulay
open AlgebraicGeometry.HilbertFunctor
variable (n : ℕ)
theorem mem_shift {j : ℕ} (h : j < n + 1) (B : Finset (Fin (n + 1) →₀ ℕ)) (u : Fin (n + 1) →₀ ℕ) :
    u ∈ shift n j B ↔ ∃ b ∈ B, b + var n j h = u
MvPolynomial.Macaulay.card_shift
Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
universe u
namespace MvPolynomial.Macaulay
open AlgebraicGeometry.HilbertFunctor
variable (n : ℕ)
theorem card_shift {j : ℕ} (h : j < n + 1) (B : Finset (Fin (n + 1) →₀ ℕ)) :
    (shift n j B).card = B.card
MvPolynomial.Macaulay.shift_empty
Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
universe u
namespace MvPolynomial.Macaulay
open AlgebraicGeometry.HilbertFunctor
variable (n : ℕ)
theorem shift_empty (j : ℕ) : shift n j (∅ : Finset (Fin (n + 1) →₀ ℕ)) = ∅
MvPolynomial.Macaulay.shift_mono
Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
universe u
namespace MvPolynomial.Macaulay
open AlgebraicGeometry.HilbertFunctor
variable (n : ℕ)
theorem shift_mono (j : ℕ) {B B' : Finset (Fin (n + 1) →₀ ℕ)} (hB : B ⊆ B') :
    shift n j B ⊆ shift n j B'
MvPolynomial.Macaulay.sub_var_add_var
Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
universe u
namespace MvPolynomial.Macaulay
open AlgebraicGeometry.HilbertFunctor
variable (n : ℕ)
theorem sub_var_add_var {j : ℕ} (h : j < n + 1) (u : Fin (n + 1) →₀ ℕ) (hu : 1 ≤ u ⟨j, h⟩) :
    u - var n j h + var n j h = u
MvPolynomial.Macaulay.add_var_sub_var
Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
universe u
namespace MvPolynomial.Macaulay
open AlgebraicGeometry.HilbertFunctor
variable (n : ℕ)
theorem add_var_sub_var {j : ℕ} (h : j < n + 1) (b : Fin (n + 1) →₀ ℕ) :
    b + var n j h - var n j h = b
MvPolynomial.Macaulay.mem_shift_iff
Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
universe u
namespace MvPolynomial.Macaulay
open AlgebraicGeometry.HilbertFunctor
variable (n : ℕ)
theorem mem_shift_iff {j : ℕ} (h : j < n + 1) (B : Finset (Fin (n + 1) →₀ ℕ))
    (u : Fin (n + 1) →₀ ℕ) :
    u ∈ shift n j B ↔ 1 ≤ u ⟨j, h⟩ ∧ u - var n j h ∈ B
MvPolynomial.Macaulay.degree_sub_var
Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
universe u
namespace MvPolynomial.Macaulay
open AlgebraicGeometry.HilbertFunctor
variable (n : ℕ)
theorem degree_sub_var {j : ℕ} (h : j < n + 1) (u : Fin (n + 1) →₀ ℕ) (hu : 1 ≤ u ⟨j, h⟩) :
    (u - var n j h).degree + 1 = u.degree
MvPolynomial.Macaulay.MonW_succ
Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
universe u
namespace MvPolynomial.Macaulay
open AlgebraicGeometry.HilbertFunctor
variable (n : ℕ)
theorem MonW_succ {j : ℕ} (h : j < n + 1) (e : ℕ) :
    MonW n (j + 1) (e + 1) = MonW n j (e + 1) ∪ shift n j (MonW n (j + 1) e)
MvPolynomial.Macaulay.disjoint_MonW_shift
Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
universe u
namespace MvPolynomial.Macaulay
open AlgebraicGeometry.HilbertFunctor
variable (n : ℕ)
theorem disjoint_MonW_shift (j e : ℕ) (B : Finset (Fin (n + 1) →₀ ℕ)) :
    Disjoint (MonW n j e) (shift n j B)
MvPolynomial.Macaulay.MonW_zero_succ
Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
universe u
namespace MvPolynomial.Macaulay
open AlgebraicGeometry.HilbertFunctor
variable (n : ℕ)
theorem MonW_zero_succ (e : ℕ) : MonW n 0 (e + 1) = ∅
MvPolynomial.Macaulay.MonW_zero_right
Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
universe u
namespace MvPolynomial.Macaulay
open AlgebraicGeometry.HilbertFunctor
variable (n : ℕ)
theorem MonW_zero_right (w : ℕ) : MonW n w 0 = {0}
MvPolynomial.Macaulay.card_MonW
Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
universe u
namespace MvPolynomial.Macaulay
open AlgebraicGeometry.HilbertFunctor
variable (n : ℕ)
theorem card_MonW : ∀ (w e : ℕ), w ≤ n + 1 → (MonW n w e).card = (w + e - 1).choose e
  | w, 0, _ => by rw [MonW_zero_right, Finset.card_singleton, Nat.choose_zero_right]
  | 0, e + 1, _ => by
      rw [MonW_zero_succ, Finset.card_empty, Nat.choose_eq_zero_of_lt (by omega)]
  | w + 1, e + 1, hw => by
      rw [MonW_succ n (by omega), Finset.card_union_of_disjoint (disjoint_MonW_shift n _ _ _),
        card_shift n (by omega), card_MonW w (e + 1) (by omega), card_MonW (w + 1) e hw,
        show w + 1 + (e + 1) - 1 = (w + e) + 1 by omega, Nat.choose_succ_succ',
        show w + (e + 1) - 1 = w + e by omega, show w + 1 + e - 1 = w + e by omega, add_comm]
MvPolynomial.Macaulay.card_Mon
Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
universe u
namespace MvPolynomial.Macaulay
open AlgebraicGeometry.HilbertFunctor
variable (n : ℕ)
theorem card_Mon (e : ℕ) : (Mon n e).card = (n + e).choose n
MvPolynomial.Macaulay.degree_eq_of_mem_support
Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
universe u
namespace MvPolynomial.Macaulay
open AlgebraicGeometry.HilbertFunctor
variable (n : ℕ)
theorem degree_eq_of_mem_support (K : Type u) [Field K] {e : ℕ} {p : MvPolynomial (Fin (n + 1)) K}
    (hp : p.IsHomogeneous e) {m : Fin (n + 1) →₀ ℕ} (hm : m ∈ p.support) : m.degree = e
MvPolynomial.Macaulay.finrank_piece_eq_card
Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
universe u
namespace MvPolynomial.Macaulay
open AlgebraicGeometry.HilbertFunctor
variable (n : ℕ)
theorem finrank_piece_eq_card (K : Type u) [Field K] (J : Ideal (MvPolynomial (Fin (n + 1)) K)) (e :
  ℕ)
    (D : Finset (Fin (n + 1) →₀ ℕ)) (hD : ∀ m ∈ D, m.degree = e)
    (hJ : ∀ p : MvPolynomial (Fin (n + 1)) K, p.IsHomogeneous e →
      (p ∈ J ↔ ∀ m ∈ D, p.coeff m = 0)) :
    Module.finrank K (piece J e) = D.card