Images and composition of semialgebraic functions #
Let R be a commutative ring with a compatible linear order, and suppose that semialgebraic sets
are closed under projection: for every semialgebraic s ⊆ R ^ (n + 1), the image
Fin.tail '' s ⊆ R ^ n forgetting coordinate 0 is semialgebraic
(TauCeti.HasSemialgebraicProjections R). For ℝ this is the Tarski–Seidenberg theorem, an
instance proved in TauCeti.Geometry.RealAlgebraic.CAD.Existence, so every result below holds
over ℝ unconditionally. This file develops the parts of the theory of semialgebraic sets and
functions that need projection.
Eliminating one coordinate at a time, the projection of a semialgebraic subset of σ ⊕ τ → R onto
the coordinates τ is semialgebraic whenever σ is finite. Since the graph of a function
f : (σ → R) → (τ → R) is encoded as a subset of σ ⊕ τ → R (TauCeti.IsSemialgebraicOn), this
gives the following consequences.
- The image of a semialgebraic set under a semialgebraic function with finitely many input coordinates is semialgebraic, and so is the inverse image of a semialgebraic set under a semialgebraic function with finitely many output coordinates.
- The domain of a function with finitely many output coordinates and semialgebraic graph is the
projection of that graph, so it is semialgebraic: the domain hypothesis in
TauCeti.IsSemialgebraicOnbecomes redundant. - Semialgebraic functions compose when the intermediate space has finitely many coordinates: the
graph of
g ∘ fis obtained from the graphs offandgby eliminating the intermediate coordinates. - Composing the pair of two semialgebraic functions with a polynomial map shows that pointwise sums, products, and differences of semialgebraic functions with finitely many output coordinates are semialgebraic, and that the loci where two of them agree, or are ordered, are semialgebraic.
Main results #
All results assume projection closure, [TauCeti.HasSemialgebraicProjections R].
TauCeti.IsSemialgebraic.image_comp_inr,TauCeti.IsSemialgebraic.image_comp_inl: projections of semialgebraic sets that forget finitely many coordinates are semialgebraic.TauCeti.IsSemialgebraic.setOf_exists_sumElim,TauCeti.IsSemialgebraic.setOf_forall_sumElim: quantification over finitely many coordinates.TauCeti.IsSemialgebraicOn.isSemialgebraic_image,TauCeti.IsSemialgebraicMap.isSemialgebraic_image: images under semialgebraic functions with finitely many input coordinates;TauCeti.IsSemialgebraic.image_eval: images under polynomial maps with finitely many input and output coordinates;TauCeti.IsSemialgebraic.image_comp: images under changes of coordinates, such as coordinate projections.TauCeti.IsSemialgebraicOn.isSemialgebraic_inter_preimage,TauCeti.IsSemialgebraicMap.isSemialgebraic_preimage: inverse images under semialgebraic functions with finitely many output coordinates.TauCeti.isSemialgebraicOn_iff_graph: a function with finitely many output coordinates is semialgebraic onsexactly when its graph oversis semialgebraic.TauCeti.IsSemialgebraicOn.comp,TauCeti.IsSemialgebraicMap.comp: composition, when the intermediate space has finitely many coordinates.TauCeti.IsSemialgebraicOn.eval_comp: applying a polynomial map to the values;TauCeti.isSemialgebraicOn_sumElim_iff: a pair is semialgebraic exactly when its components are, andTauCeti.isSemialgebraicOn_pi_iff: so is a function with finitely many output coordinates;TauCeti.IsSemialgebraicOn.add,TauCeti.IsSemialgebraicOn.mul,TauCeti.IsSemialgebraicOn.sub: pointwise arithmetic. Negation needs no projection and is proved inTauCeti.Geometry.RealAlgebraic.Semialgebraic.Function.TauCeti.IsSemialgebraicOn.isSemialgebraic_inter_setOf_eq,TauCeti.IsSemialgebraicOn.isSemialgebraic_inter_setOf_le: the loci where two semialgebraic functions agree, or where one is bounded above by the other, are semialgebraic.
References #
- S. Basu, R. Pollack, and M.-F. Roy, Algorithms in Real Algebraic Geometry, second edition, Chapter 2.
- J. Bochnak, M. Coste, and M.-F. Roy, Real Algebraic Geometry, Ergebnisse der Mathematik und ihrer Grenzgebiete 36, Springer (1998), Section 2.2.
Given projection closure, the projection of a semialgebraic subset of σ ⊕ τ → R that forgets
the finitely many coordinates σ is semialgebraic.
Given projection closure, the projection of a semialgebraic subset of σ ⊕ τ → R that forgets
the finitely many coordinates τ is semialgebraic.
Existential quantification over finitely many coordinates preserves semialgebraicity.
Universal quantification over finitely many coordinates preserves semialgebraicity.
Given projection closure, the image of the domain of a semialgebraic function with finitely many input coordinates is semialgebraic.
Given projection closure, the image of a semialgebraic set under a semialgebraic map with finitely many input coordinates is semialgebraic.
Given projection closure, the image of a semialgebraic set under a polynomial map with finitely many input coordinates and finitely many output coordinates is semialgebraic.
Given projection closure, the image of a semialgebraic set under a change of coordinates
x ↦ x ∘ f, such as a coordinate projection, is semialgebraic.
Given projection closure, the points of the domain of a semialgebraic function with finitely many output coordinates at which it takes values in a semialgebraic set form a semialgebraic set.
Given projection closure, the inverse image of a semialgebraic set under a semialgebraic map with finitely many output coordinates is semialgebraic.
Given projection closure, a function with finitely many output coordinates is semialgebraic on
s if and only if its graph over s is semialgebraic: the domain s is the projection of the
graph.
Given projection closure, the composition of semialgebraic functions is semialgebraic: if f
is semialgebraic on s and maps it into t, and g is semialgebraic on t, then g ∘ f is
semialgebraic on s. The intermediate space has finitely many coordinates.
Given projection closure, the composition of semialgebraic maps is semialgebraic when the intermediate space has finitely many coordinates.
Polynomial operations on semialgebraic functions #
Given projection closure, applying a polynomial map to the values of a semialgebraic function with finitely many output coordinates gives a semialgebraic function.
Given projection closure, a pair of functions with finitely many output coordinates is semialgebraic exactly when both of its components are.
Given projection closure, a function with finitely many output coordinates is semialgebraic on
s exactly when s is semialgebraic and each coordinate of the function is semialgebraic on
s.
Given projection closure, the pointwise sum of semialgebraic functions is semialgebraic.
Given projection closure, the pointwise product of semialgebraic functions is semialgebraic.
Given projection closure, the pointwise difference of semialgebraic functions is semialgebraic.
Given projection closure, the pointwise sum of semialgebraic maps is semialgebraic.
Given projection closure, the pointwise product of semialgebraic maps is semialgebraic.
Given projection closure, the pointwise difference of semialgebraic maps is semialgebraic.
Given projection closure, the points of the common domain at which two semialgebraic functions agree form a semialgebraic set.
Given projection closure, the points of the common domain at which one semialgebraic function is bounded above by another, coordinatewise, form a semialgebraic set.