Introduction
Let be an ordered field; the default is that is the field of rational numbers and other fields are not yet supported everywhere in the implementation.
A set is called a (convex) polyhedron if it can be written as the intersection of finitely many closed affine halfspaces in . That is, there exists a matrix and a vector such that Writing as above is called an -representation of .
When a polyhedron is bounded, it is called a polytope and the fundamental theorem of polytopes states that it may be written as the convex hull of finitely many points. That is Writing in this way is called a -representation. Polytopes are necessarily compact, i.e., they form convex bodies.
Each polytope has a unique -representation which is minimal with respect to inclusion (or cardinality). Conversely, a polyhedron which is full-dimensional, has a unique minimal -representation. If the polyhedron is not full-dimensional, then there is no canonical choice of an -representation.