Piecewise-quadratic functions on compact polyhedra #
This file develops real-valued quadratic functions on subsets of real vector spaces and piecewise-quadratic (PQ) functions on compact polyhedra in the style of [RS82].
Main definitions #
Cslib.Polyhedra.IsQuadraticOn:f : E → ℝagrees onSwith a finite sum of products of pairs of real-valued affine maps.Cslib.Polyhedra.IsPQOn:f : E → ℝis piecewise-quadratic on a compact polyhedronPifPis the space of a finite polytopal complex on every cell of whichfis quadratic.
Main results #
Cslib.Polyhedra.isQuadraticOn_iff_quadraticMap_add_affineMap: on finite-dimensional spaces,IsQuadraticOnagrees withQuadraticMap + AffineMap.Cslib.Polyhedra.isQuadraticOn_iff_mvPolynomial_basis: with respect to a finite basis,IsQuadraticOnis equivalent to agreement with anMvPolynomialoftotalDegree ≤ 2.- Closure of
IsPQOnunder restriction, finite closed covers, piecewise union, real linear combinations, products of PL functions (IsPQOn.mul_of_isPLOn), and precomposition with PL maps (IsPQOn.comp_isPLOn). Cslib.Polyhedra.IsPQOn.exists_cell_list_mvPolynomial,Cslib.Polyhedra.IsPQOn.exists_cell_list_mvPolynomial_pi, andCslib.Polyhedra.IsPQOn.exists_triangulation_mvPolynomial_basis: finite cell lists and triangulations on whose cells a PQ function equals anMvPolynomialoftotalDegree ≤ 2.
References #
- [RS82] (background reference cited by issue #4325; specific chapter and theorem locators have not been verified against the original book).
- Issue #4325 notes (
STOC 1056 Lemma 3.1label; unverified against the primary manuscript).
A function f : E → ℝ is quadratic on S (meaning a polynomial of total degree at most
2) if it agrees on S with a finite sum of products of pairs of real-valued affine maps.
On a finite-dimensional real normed space, IsQuadraticOn f S holds if and only if f agrees
on S with the sum of a QuadraticMap and an AffineMap.
On a finite-dimensional real normed space equipped with a finite basis e, f is quadratic on
S if and only if it agrees on S with a multivariate polynomial of totalDegree ≤ 2 in the
e-coordinates.
Variant of isQuadraticOn_iff_mvPolynomial_basis using Module.finBasis ℝ E.
On Fin d → ℝ, IsQuadraticOn f S is equivalent to agreeing on S with an
MvPolynomial (Fin d) ℝ of totalDegree ≤ 2.
A function f : E → ℝ is piecewise-quadratic on P (IsPQOn P f) if P is a compact
polyhedron admitted as the space of a finite polytopal complex on every cell of which f agrees
with a polynomial of degree at most 2.
The pointwise product of two real-valued PL functions on P is PQ on P (cited in issue #4325
notes as STOC 1056 Lemma 3.1, unverified against the primary manuscript).
Any finite sum of pairwise products of real-valued PL functions on P is PQ on P.
Precomposing a PQ map with a PL map preserves piecewise-quadraticity.
Every PQ function admits a finite triangulation on each simplex of which it agrees with an
MvPolynomial of totalDegree ≤ 2 in the coordinates of a given basis e.
Every PQ function on P can be presented as a finite list of convex polytope cells covering
P together with a multivariate polynomial of totalDegree ≤ 2 (in coordinates of basis e)
matching f on each cell.
Specialization of IsPQOn.exists_cell_list_mvPolynomial_basis to Module.finBasis ℝ E.
On Fin d → ℝ, every PQ function on P admits a finite list of convex polytope cells
covering P on each of which f agrees with an MvPolynomial (Fin d) ℝ of totalDegree ≤ 2.
Coordinate-free finite cell list for a PQ function: a finite list of polytopes covering P
together with pairs (Q, L) of a QuadraticMap and an AffineMap agreeing with f on each
cell.