Documentation

TauCeti.Geometry.RealAlgebraic.Semialgebraic.Topology

Balls, closures and interiors of real semialgebraic sets #

This file shows that the basic metric and topological constructions on the real coordinate space σ → ℝ, for a finite index type σ, preserve semialgebraicity.

The ball statements only use the polynomial description of the two norms. The closure statement uses the Tarski–Seidenberg theorem in the form of projection closure (TauCeti.HasSemialgebraicProjections ℝ): a point x lies in closure s exactly when for every ε > 0 there is y ∈ s with dist x y < ε, and the two quantifiers are eliminated by two projections and a complement. Interiors and frontiers then follow from closures by complements and differences.

Main results #

References #

Balls #

theorem TauCeti.isSemialgebraic_setOf_dist_eval_lt {σ : Type u_1} {τ : Type u_2} [Fintype σ] (p q : σ → MvPolynomial τ ℝ) (r : MvPolynomial τ ℝ) :
IsSemialgebraic {z : τ → ℝ | (dist (fun (i : σ) => (MvPolynomial.eval z) (p i)) fun (i : σ) => (MvPolynomial.eval z) (q i)) < (MvPolynomial.eval z) r}

The locus where the sup distance between two polynomial maps is less than the value of a polynomial is semialgebraic.

theorem TauCeti.isSemialgebraic_setOf_dist_eval_le {σ : Type u_1} {τ : Type u_2} [Fintype σ] (p q : σ → MvPolynomial τ ℝ) (r : MvPolynomial τ ℝ) :
IsSemialgebraic {z : τ → ℝ | (dist (fun (i : σ) => (MvPolynomial.eval z) (p i)) fun (i : σ) => (MvPolynomial.eval z) (q i)) ≤ (MvPolynomial.eval z) r}

The locus where the sup distance between two polynomial maps is at most the value of a polynomial is semialgebraic.

theorem TauCeti.isSemialgebraic_ball {σ : Type u_1} [Fintype σ] (x : σ → ℝ) (r : ℝ) :

An open ball for the sup norm on σ → ℝ is semialgebraic.

theorem TauCeti.isSemialgebraic_closedBall {σ : Type u_1} [Fintype σ] (x : σ → ℝ) (r : ℝ) :

A closed ball for the sup norm on σ → ℝ is semialgebraic.

An open ball of the Euclidean space EuclideanSpace ℝ σ, read in the coordinates σ → ℝ, is semialgebraic.

A closed ball of the Euclidean space EuclideanSpace ℝ σ, read in the coordinates σ → ℝ, is semialgebraic.

Closures, interiors and frontiers #

The closure of a semialgebraic subset of σ → ℝ is semialgebraic.

The interior of a semialgebraic subset of σ → ℝ is semialgebraic.

The frontier of a semialgebraic subset of σ → ℝ is semialgebraic.

Interiors in families #

theorem TauCeti.IsSemialgebraic.setOf_mem_interior_fiber {σ : Type u_1} {τ : Type u_2} [Finite τ] {s : Set (σ ⊕ τ → ℝ)} (hs : IsSemialgebraic s) :

Taking the interior separately in each fiber of a semialgebraic family preserves semialgebraicity. The parameters need not have finitely many coordinates.

theorem TauCeti.IsSemialgebraic.setOf_fiber_interior_nonempty {σ : Type u_1} {τ : Type u_2} [Finite τ] {s : Set (σ ⊕ τ → ℝ)} (hs : IsSemialgebraic s) :

The parameters whose fiber has nonempty interior form a semialgebraic set.

Nowhere dense semialgebraic sets #

A semialgebraic set is nowhere dense exactly when its interior is empty.