# Gale diagram

In the mathematical discipline of polyhedral combinatorics, the Gale transform turns the vertices of any convex polytope into a set of vectors or points in a space of a different dimension, the Gale diagram of the polytope. It can be used to describe high-dimensional polytopes with few vertices, by transforming them into sets with the same number of points, but in a space of a much lower dimension. The process can also be reversed, to construct polytopes with desired properties from their Gale diagrams. The Gale transform and Gale diagram are named after David Gale, who introduced these methods in a 1956 paper on neighborly polytopes.

## Definitions
### Transform

Given a $d$-dimensional polytope, with $n$ vertices, adjoin 1 to the Cartesian coordinates of each vertex, to obtain a $(d+1)$-dimensional column vector. The matrix $A$ of these $n$ column vectors has dimensions $(d+1)\times n$, defining a linear mapping from $n$-space to $(d+1)$-space, surjective with rank $d+1$. The kernel of $A$ describes linear dependencies among the $n$ original vertices with coefficients summing to zero; this kernel has dimension $n-d-1$. The Gale transform of $A$ is a matrix $B$ of dimension $n\times (n-d-1)$, whose column vectors are a chosen basis for the kernel of $A$. Then $B$ has $n$ row vectors of dimension $n-d-1$. These row vectors form the Gale diagram of the polytope. A different choice of basis for the kernel changes the result only by a linear transformation.
Note that the vectors in the Gale diagram are in natural bijection with the $n$ vertices of the original $d$-dimensional polytope, but the dimension of the Gale diagram is smaller whenever $n\leq 2d$.
A proper subset of the vertices of a polytope forms the vertex set of a face of the polytope, if and only if the complementary set of vectors of the Gale transform has a convex hull that contains the origin in its relative interior. Equivalently, the subset of vertices forms a face if and only if its affine span does not intersect the convex hull of the complementary vectors.

### Linear diagram

Because the Gale transform is defined only up to a linear transformation, its nonzero vectors can be normalized to all be $(n-d-1)$-dimensional unit vectors. The linear Gale diagram is a normalized version of the Gale transform, in which all the vectors are zero or unit vectors.

### Affine diagram

Given a Gale diagram of a polytope, that is, a set of $n$ unit vectors in an $(n-d-1)$-dimensional space, one can choose a $(n-d-2)$-dimensional subspace $S$ through the origin that avoids all of the vectors, and a parallel subspace $S'$ that does not pass through the origin. Then, a central projection from the origin to $S'$ will produce a set of $(n-d-2)$-dimensional points. This projection loses the information about which vectors lie above $S$ and which lie below it, but this information can be represented by assigning a sign (positive, negative, or zero) or equivalently a color (black, white, or gray) to each point. The resulting set of signed or colored points is the affine Gale diagram of the given polytope. This construction has the advantage, over the Gale transform, of using one less dimension to represent the structure of the given polytope.
Gale transforms and linear and affine Gale diagrams can also be described through the duality of oriented matroids. As with the linear diagram, a subset of vertices forms a face if and only if there is no affine function (a linear function with a possibly nonzero constant term) that assigns a non-negative value to each positive vector in the complementary set and a non-positive value to each negative vector in the complementary set.

## Examples

The Gale diagram is particularly effective in describing polyhedra whose numbers of vertices are only slightly larger than their dimensions.

### Simplices

A $d$-dimensional polytope with $n=d+1$ vertices, the minimum possible, is a simplex. In this case, the linear Gale diagram is 0-dimensional, consisting only of zero vectors. The affine diagram has $n$ gray points.

### One additional vertex

In a $d$-dimensional polytope with $n=d+2$ vertices, the linear Gale diagram is one-dimensional, with the vector representing each point being one of the three numbers $-1$, $0$, or $+1$. In the affine diagram, the points are zero-dimensional, so they can be represented only by their signs or colors without any location value. In order to represent a polytope, the diagram must have at least two points with each nonzero sign. Two diagrams represent the same combinatorial equivalence class of polytopes when they have the same numbers of points of each sign, or when they can be obtained from each other by negating all of the signs.
For $d=2$, the only possibility is two points of each nonzero sign, representing a convex quadrilateral. For $d=3$, there are two possible Gale diagrams: the diagram with two points of each nonzero sign and one zero point represents a square pyramid, while the diagram with two points of one nonzero sign and three points with the other sign represents the triangular bipyramid.
In general, the number of distinct Gale diagrams with $n=d+2$, and the number of combinatorial equivalence classes of $d$-dimensional polytopes with $n$ vertices, is $\lfloor d^{2}/4\rfloor$.

### Two additional vertices

In a $d$-dimensional polytope with $n=d+3$ vertices, the linear Gale diagram consists of points on the unit circle (unit vectors) and at its center. The affine Gale diagram consists of labeled points or clusters of points on a line. Unlike for the case of $n=d+2$ vertices, it is not completely trivial to determine when two Gale diagrams represent the same polytope.
Three-dimensional polyhedra with six vertices provide natural examples where the original polyhedron is of a low enough dimension to visualize, but where the Gale diagram still provides a dimension-reducing effect.
* A regular octahedron has linear Gale diagram comprising three pairs of equal points on the unit circle (representing pairs of opposite vertices of the octahedron), dividing the circle into arcs of angle less than $\pi$. Its affine Gale diagram consists of three pairs of equal signed points on the line, with the middle pair having the opposite sign to the outer two pairs.
* A triangular prism has linear Gale diagram comprising six points on the circle, in three diametrically opposed pairs, with each pair representing vertices of the prism that are adjacent on two square faces of the prism. The corresponding affine Gale diagram has three pairs of points on a line, like the regular octahedron, but with one point of each sign in each pair.

## Applications

Gale diagrams have been used to provide a complete combinatorial enumeration of the $d$-dimensional polytopes with $n=d+3$ vertices, and to construct polytopes with unusual properties. These include:
* The Perles polytope, an 8-dimensional polytope with 12 vertices that cannot be realized with rational Cartesian coordinates. Micha Perles constructed it from the Perles configuration (nine points and nine lines in the plane that cannot be realized with rational coordinates) by doubling three of the points, assigning signs to the resulting 12 points, and treating the resulting signed configuration as the Gale diagram of a polytope. Although irrational polytopes are known with dimension as low as four, none are known with fewer vertices.
* The Kleinschmidt polytope, a 4-dimensional polytope with 8 vertices, 10 tetrahedral facets, and one octahedral facet, constructed by Peter Kleinschmidt. Although the octahedral facet has the same combinatorial structure as a regular octahedron, it is not possible for it to be regular. Two copies of this polytope can be glued together on their octahedral facets to produce a 10-vertex polytope in which some pairs of realizations cannot be continuously deformed into each other.
* The bipyramid over a square pyramid is a 4-dimensional polytope with 7 vertices having the dual property, that the shape of one of its vertex figures (the apex of its central pyramid) cannot be prescribed. Originally found by David W. Barnette, it was rediscovered by Bernd Sturmfels using Gale diagrams.
* The construction of small "unneighborly polytopes", that is, polytopes without a universal vertex, and "illuminated polytopes", in which every vertex is incident to a diagonal that passes through the interior of the polytope. The cross polytopes have these properties, but in 16 or more dimensions there exist illuminated polytopes with fewer vertices, and in 6 or more dimensions the illuminated polytopes with the fewest vertices need not be simplicial. The construction involves Gale diagrams.