Orderings on polynomials and triangular sets #
This file defines order structures on multivariate polynomials and triangular sets, which are essential for the Characteristic Set Method (Wu's Method).
Main definitions #
MvPolynomial.order: The order of a polynomialpis the pair(max_vars p, mainDegree p), ordered lexicographically. This defines a well-ordering on polynomials when the variable type is well-founded.TriangularSet.order: The order of a triangular set is a lexicographic sequence of orders of its polynomials. For two triangular setsSandT,S < Tif either:- There exists
k < S.lengthsuch thatS₀ ≈ T₀,S₁ ≈ T₁, ...,Sₖ₋₁ ≈ Tₖ₋₁andSₖ < Tₖ; S.length > T.lengthand∀ i < T.length, Sᵢ ≈ Tᵢ.
- There exists
Main results #
MvPolynomial.instWellFoundedLT: Whenσis well-founded, polynomials are well-founded under the order ordering.TriangularSet.instWellFoundedLT: Whenσis finite, triangular sets are well-founded under the order ordering. This guarantees termination of characteristic set algorithms.
The order of a polynomial p is the pair (max_vars p, degree p),
which is ordered lexicographically.
Instances For
Equations
- x✝¹.instDecidableLE x✝ = decidable_of_iff (x✝¹.order ≤ x✝.order) ⋯
Equations
- MvPolynomial.instSetoid = AntisymmRel.setoid (MvPolynomial σ R) fun (x1 x2 : MvPolynomial σ R) => x1 ≤ x2
Equations
The minimal element of a nonempty set of multivariate polynomials.
Equations
- MvPolynomial.Set.min PS h = ⋯.choose
Instances For
Order and Ordering #
The order of a Triangular Set is a lexicographic sequence of orders of its polynomials.
A more intuitive definition is order_lt_iff, S < T if one of the following two occurs:
- There exists some
k < S.lengthsuch thatS₀ ≈ T₀,S₁ ≈ T₁, ...,Sₖ₋₁ ≈ Tₖ₋₁andSₖ < Tₖ. S.length > T.lengthand∀ i < T.length, Sᵢ ≈ Tᵢ
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
- x✝¹.instDecidableLE x✝ = decidable_of_iff (x✝¹.order ≤ x✝.order) ⋯
Equations
- TriangularSet.instSetoid = AntisymmRel.setoid (TriangularSet σ R) fun (x1 x2 : TriangularSet σ R) => x1 ≤ x2
Equations
Well-Foundedness #
The set of Triangular Sets is well-founded under the lexicographic order ordering. This is a crucial result that guarantees the termination of the Characteristic Set Algorithm.
Equations
- TriangularSet.instWellFoundedRelation = { rel := fun (x1 x2 : TriangularSet σ R) => x1 < x2, wf := ⋯ }
The minimal element of a nonempty set of triangular sets.
Equations
- TriangularSet.Set.min S' h = ⋯.choose