The areas / V03. Sets, finite structures and big operators
Mathlib.Data.Finsupp.MonomialOrder.DegLex
39 declarations. Mathlib docs · Source
Homogeneous lexicographic monomial ordering
MonomialOrder.degLex: a variant of the lexicographic ordering that first compares degrees. For this,σneeds to be embedded with an ordering relation which satisfiesWellFoundedGT σ. (This last property is automatic whenσis finite).
The type synonym is DegLex (σ →₀ ℕ) and the two lemmas MonomialOrder.degLex_le_iff
and MonomialOrder.degLex_lt_iff rewrite the ordering as comparisons in the type Lex (σ →₀ ℕ).
References
- [Cox, Little and O'Shea, Ideals, varieties, and algorithms][coxlittleoshea1997]
- [Becker and Weispfenning, Gröbner bases][Becker-Weispfenning1993]
def DegLex E1 #
Type u_1 → Type u_1
A type synonym to equip a type with its lexicographic order sorted by degrees.
def toDegLex E1 #
{α : Type u_1} → α ≃ DegLex α
toDegLex is the identity function to the DegLex of a type.
theorem toDegLex_injective E1 #
∀ {α : Type u_1}, Function.Injective ⇑toDegLex
theorem toDegLex_inj E1 #
∀ {α : Type u_1} {a b : α}, toDegLex a = toDegLex b ↔ a = b
def ofDegLex E1 #
{α : Type u_1} → DegLex α ≃ α
ofDegLex is the identity function from the DegLex of a type.
theorem ofDegLex_injective E1 #
∀ {α : Type u_1}, Function.Injective ⇑ofDegLex
theorem ofDegLex_inj E1 #
∀ {α : Type u_1} {a b : DegLex α}, ofDegLex a = ofDegLex b ↔ a = b
theorem ofDegLex_symm_eq E0 #
∀ {α : Type u_1}, ofDegLex.symm = toDegLex
theorem toDegLex_symm_eq E0 #
∀ {α : Type u_1}, toDegLex.symm = ofDegLex
theorem ofDegLex_toDegLex E0 #
∀ {α : Type u_1} (a : α), ofDegLex (toDegLex a) = a
theorem toDegLex_ofDegLex E0 #
∀ {α : Type u_1} (a : DegLex α), toDegLex (ofDegLex a) = a
def DegLex.rec E1 #
{α : Type u_1} → {β : DegLex α → Sort u_2} → ((a : α) → β (toDegLex a)) → (a : DegLex α) → β a
A recursor for DegLex. Use as induction x.
theorem DegLex.forall_iff E0 #
∀ {α : Type u_1} {p : DegLex α → Prop}, (∀ (a : DegLex α), p a) ↔ ∀ (a : α), p (toDegLex a)
theorem DegLex.exists_iff E0 #
∀ {α : Type u_1} {p : DegLex α → Prop}, (∃ a, p a) ↔ ∃ a, p (toDegLex a)
instance instAddCommMonoidDegLex E0 #
{α : Type u_1} → [AddCommMonoid α] → AddCommMonoid (DegLex α)
theorem toDegLex_add E1 #
∀ {α : Type u_1} [inst : AddCommMonoid α] (a b : α), toDegLex (a + b) = toDegLex a + toDegLex b
theorem ofDegLex_add E1 #
∀ {α : Type u_1} [inst : AddCommMonoid α] (a b : DegLex α), ofDegLex (a + b) = ofDegLex a + ofDegLex b
def Finsupp.DegLex E1 #
{α : Type u_1} → (α → α → Prop) → (ℕ → ℕ → Prop) → (α →₀ ℕ) → (α →₀ ℕ) → Prop
Finsupp.DegLex r s is the homogeneous lexicographic order on α →₀ M,
where α is ordered by r and M is ordered by s.
The type synonym DegLex (α →₀ M) has an order given by Finsupp.DegLex (· < ·) (· < ·).
theorem Finsupp.degLex_def E0 #
∀ {α : Type u_1} {r : α → α → Prop} {s : ℕ → ℕ → Prop} {a b : α →₀ ℕ},
Finsupp.DegLex r s a b ↔ Prod.Lex s (Finsupp.Lex r s) (Finsupp.degree a, a) (Finsupp.degree b, b)
theorem Finsupp.DegLex.wellFounded E1 #
∀ {α : Type u_1} {r : α → α → Prop} [Std.Trichotomous r],
WellFounded (Function.swap r) →
∀ {s : ℕ → ℕ → Prop}, WellFounded s → (∀ ⦃n : ℕ⦄, ¬s n 0) → WellFounded (Finsupp.DegLex r s)
instance Finsupp.DegLex.instLTDegLexNat E0 #
{α : Type u_1} → [LT α] → LT (DegLex (α →₀ ℕ))
theorem Finsupp.DegLex.lt_def E0 #
∀ {α : Type u_1} [inst : LT α] {a b : DegLex (α →₀ ℕ)},
a < b ↔
toLex (Finsupp.degree (ofDegLex a), toLex (ofDegLex a)) < toLex (Finsupp.degree (ofDegLex b), toLex (ofDegLex b))
theorem Finsupp.DegLex.lt_iff E0 #
∀ {α : Type u_1} [inst : LT α] {a b : DegLex (α →₀ ℕ)},
a < b ↔
Finsupp.degree (ofDegLex a) < Finsupp.degree (ofDegLex b) ∨
Finsupp.degree (ofDegLex a) = Finsupp.degree (ofDegLex b) ∧ toLex (ofDegLex a) < toLex (ofDegLex b)
instance Finsupp.DegLex.isStrictOrder E0 #
∀ {α : Type u_1} [inst : LinearOrder α], IsStrictOrder (DegLex (α →₀ ℕ)) fun x1 x2 ↦ x1 < x2
instance Finsupp.DegLex.instLinearOrderDegLexNat E0 #
{α : Type u_1} → [LinearOrder α] → LinearOrder (DegLex (α →₀ ℕ))
The linear order on Finsupps obtained by the homogeneous lexicographic ordering.
theorem Finsupp.DegLex.le_iff E0 #
∀ {α : Type u_1} [inst : LinearOrder α] {x y : DegLex (α →₀ ℕ)},
x ≤ y ↔
Finsupp.degree (ofDegLex x) < Finsupp.degree (ofDegLex y) ∨
Finsupp.degree (ofDegLex x) = Finsupp.degree (ofDegLex y) ∧ toLex (ofDegLex x) ≤ toLex (ofDegLex y)
instance Finsupp.DegLex.instIsOrderedCancelAddMonoidDegLexNat E0 #
∀ {α : Type u_1} [inst : LinearOrder α], IsOrderedCancelAddMonoid (DegLex (α →₀ ℕ))
theorem Finsupp.DegLex.single_strictAnti E1 #
∀ {α : Type u_1} [inst : LinearOrder α], StrictAnti fun a ↦ toDegLex fun₀ | a => 1
theorem Finsupp.DegLex.single_antitone E1 #
∀ {α : Type u_1} [inst : LinearOrder α], Antitone fun a ↦ toDegLex fun₀ | a => 1
theorem Finsupp.DegLex.single_lt_iff E0 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, ((toDegLex fun₀ | b => 1) < toDegLex fun₀ | a => 1) ↔ a < b
theorem Finsupp.DegLex.single_le_iff E0 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, ((toDegLex fun₀ | b => 1) ≤ toDegLex fun₀ | a => 1) ↔ a ≤ b
theorem Finsupp.DegLex.monotone_degree E1 #
∀ {α : Type u_1} [inst : LinearOrder α], Monotone fun x ↦ Finsupp.degree (ofDegLex x)
instance Finsupp.DegLex.orderBot E0 #
{α : Type u_1} → [inst : LinearOrder α] → OrderBot (DegLex (α →₀ ℕ))
instance Finsupp.DegLex.wellFoundedLT E0 #
∀ {α : Type u_1} [inst : LinearOrder α] [WellFoundedGT α], WellFoundedLT (DegLex (α →₀ ℕ))
def MonomialOrder.degLex E1 #
{σ : Type u_2} → [inst : LinearOrder σ] → [WellFoundedGT σ] → MonomialOrder σ
The deg-lexicographic order on σ →₀ ℕ, as a MonomialOrder
theorem MonomialOrder.degLex_le_iff E0 #
∀ {σ : Type u_2} [inst : LinearOrder σ] [inst_1 : WellFoundedGT σ] {a b : σ →₀ ℕ},
MonomialOrder.degLex.toSyn a ≤ MonomialOrder.degLex.toSyn b ↔ toDegLex a ≤ toDegLex b
theorem MonomialOrder.degLex_lt_iff E0 #
∀ {σ : Type u_2} [inst : LinearOrder σ] [inst_1 : WellFoundedGT σ] {a b : σ →₀ ℕ},
MonomialOrder.degLex.toSyn a < MonomialOrder.degLex.toSyn b ↔ toDegLex a < toDegLex b
theorem MonomialOrder.degLex_single_le_iff E0 #
∀ {σ : Type u_2} [inst : LinearOrder σ] [inst_1 : WellFoundedGT σ] {a b : σ},
((MonomialOrder.degLex.toSyn fun₀ | a => 1) ≤ MonomialOrder.degLex.toSyn fun₀ | b => 1) ↔ b ≤ a
theorem MonomialOrder.degLex_single_lt_iff E0 #
∀ {σ : Type u_2} [inst : LinearOrder σ] [inst_1 : WellFoundedGT σ] {a b : σ},
((MonomialOrder.degLex.toSyn fun₀ | a => 1) < MonomialOrder.degLex.toSyn fun₀ | b => 1) ↔ b < a