Semialgebraic sets #
The standard definition takes σ finite and R = ℝ (or a real closed field): a subset of ℝⁿ is
semialgebraic if it belongs to the Boolean algebra of sets generated by the sign conditions
{x | f(x) = 0} and {x | 0 < f(x)} for polynomials f ([Cos02], §2.1.1, p. 25; see also
[BCR98], Chapter 2). The sets {x | 0 < f(x)} alone generate the same Boolean
algebra, since {x | f(x) = 0} is the complement of {x | 0 < f(x)} ∪ {x | 0 < -f(x)}
(IsSemialgebraic.setOf_eq_zero). The definition here is an inductive predicate with one
constructor per generator and closure operation.
It is stated more generally, for any coordinate type σ and any commutative ring R with a
linear order. No compatibility between the order and the ring operations is assumed by the
definition or by its Boolean closure lemmas. The sign-condition lemmas (setOf_nonneg,
setOf_eq_zero, setOf_le, …) assume IsStrictOrderedRing R, and the uses in game theory take
R = ℝ with finitely many coordinates, where the definition is the standard one.
Main definitions #
Cslib.IsSemialgebraic s:sis semialgebraic.
Main results #
- Closure:
IsSemialgebraic.union,.inter,.compl,.diff, finite unions and intersections (IsSemialgebraic.iUnion,IsSemialgebraic.iInterand theirFinsetforms). - Sign conditions: the sets
{x | f(x) = 0},{x | f(x) ≤ g(x)},{x | f(x) < g(x)}and{x | f(x) = g(x)}are semialgebraic. IsSemialgebraic.preimage_eval: the preimage of a semialgebraic set under a polynomial map is semialgebraic; in particular semialgebraicity is invariant under renaming the coordinates (IsSemialgebraic.preimage_comp).
Closure under coordinate projections (the Tarski–Seidenberg theorem) is not proved here.
References #
A subset of σ → R is semialgebraic if it lies in the Boolean algebra of sets generated by
the sign conditions {x | 0 < f(x)} for polynomials f. For finite σ and R = ℝ this is the
standard definition ([Cos02], §2.1.1, p. 25). For arbitrary σ and a linearly ordered
commutative ring R, with no compatibility assumed between the order and the ring, it is a
generalization.
- setOf_pos {σ : Type u_1} {R : Type u_3} [CommRing R] [LinearOrder R] (f : MvPolynomial σ R) : IsSemialgebraic {x : σ → R | 0 < (MvPolynomial.eval x) f}
The positivity set
{x | 0 < f(x)}of a polynomial is semialgebraic. - union {σ : Type u_1} {R : Type u_3} [CommRing R] [LinearOrder R] {s t : Set (σ → R)} : IsSemialgebraic s → IsSemialgebraic t → IsSemialgebraic (s ∪ t)
A union of two semialgebraic sets is semialgebraic.
- compl {σ : Type u_1} {R : Type u_3} [CommRing R] [LinearOrder R] {s : Set (σ → R)} : IsSemialgebraic s → IsSemialgebraic sᶜ
The complement of a semialgebraic set is semialgebraic.
The set where a polynomial is nonnegative is semialgebraic.
The zero set of a polynomial is semialgebraic.
The set where one polynomial is at most another is semialgebraic.
The set where one polynomial is less than another is semialgebraic.
The set where two polynomials agree is semialgebraic.
The preimage of a semialgebraic set under a polynomial map x ↦ (φ j (x))ⱼ is semialgebraic.
Semialgebraicity is invariant under renaming the coordinates.