Documentation

CslibFrontier.Foundations.AlgebraicGeometry.Semialgebraic

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 #

Main results #

Closure under coordinate projections (the Tarski–Seidenberg theorem) is not proved here.

References #

inductive Cslib.IsSemialgebraic {σ : Type u_1} {R : Type u_3} [CommRing R] [LinearOrder R] :
Set (σ → R) → Prop

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.

theorem Cslib.IsSemialgebraic.inter {σ : Type u_1} {R : Type u_3} [CommRing R] [LinearOrder R] {s t : Set (σ → R)} (hs : IsSemialgebraic s) (ht : IsSemialgebraic t) :
IsSemialgebraic (s ∩ t)
theorem Cslib.IsSemialgebraic.diff {σ : Type u_1} {R : Type u_3} [CommRing R] [LinearOrder R] {s t : Set (σ → R)} (hs : IsSemialgebraic s) (ht : IsSemialgebraic t) :
theorem Cslib.IsSemialgebraic.biUnion {σ : Type u_1} {R : Type u_3} [CommRing R] [LinearOrder R] {ι : Type u_4} {I : Finset ι} {s : ι → Set (σ → R)} (h : ∀ i ∈ I, IsSemialgebraic (s i)) :
IsSemialgebraic (⋃ i ∈ I, s i)
theorem Cslib.IsSemialgebraic.biInter {σ : Type u_1} {R : Type u_3} [CommRing R] [LinearOrder R] {ι : Type u_4} {I : Finset ι} {s : ι → Set (σ → R)} (h : ∀ i ∈ I, IsSemialgebraic (s i)) :
IsSemialgebraic (⋂ i ∈ I, s i)
theorem Cslib.IsSemialgebraic.iUnion {σ : Type u_1} {R : Type u_3} [CommRing R] [LinearOrder R] {ι : Type u_4} [Finite ι] {s : ι → Set (σ → R)} (h : ∀ (i : ι), IsSemialgebraic (s i)) :
IsSemialgebraic (⋃ (i : ι), s i)
theorem Cslib.IsSemialgebraic.iInter {σ : Type u_1} {R : Type u_3} [CommRing R] [LinearOrder R] {ι : Type u_4} [Finite ι] {s : ι → Set (σ → R)} (h : ∀ (i : ι), IsSemialgebraic (s i)) :
IsSemialgebraic (⋂ (i : ι), s i)

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.

theorem Cslib.IsSemialgebraic.preimage_eval {σ : Type u_1} {τ : Type u_2} {R : Type u_3} [CommRing R] [LinearOrder R] {s : Set (τ → R)} (hs : IsSemialgebraic s) (φ : τ → MvPolynomial σ R) :
IsSemialgebraic ((fun (x : σ → R) (j : τ) => (MvPolynomial.eval x) (φ j)) ⁻¹' s)

The preimage of a semialgebraic set under a polynomial map x ↦ (φ j (x))ⱼ is semialgebraic.

theorem Cslib.IsSemialgebraic.preimage_comp {σ : Type u_1} {τ : Type u_2} {R : Type u_3} [CommRing R] [LinearOrder R] {s : Set (τ → R)} (hs : IsSemialgebraic s) (e : τ → σ) :
IsSemialgebraic ((fun (x : σ → R) => x ∘ e) ⁻¹' s)

Semialgebraicity is invariant under renaming the coordinates.