Hyperplane separation theorem

From testwiki
Jump to navigation Jump to search

Template:Short description Template:Infobox mathematical statement

In geometry, the hyperplane separation theorem is a theorem about disjoint convex sets in n-dimensional Euclidean space. There are several rather similar versions. In one version of the theorem, if both these sets are closed and at least one of them is compact, then there is a hyperplane in between them and even two parallel hyperplanes in between them separated by a gap. In another version, if both disjoint convex sets are open, then there is a hyperplane in between them, but not necessarily any gap. An axis which is orthogonal to a separating hyperplane is a separating axis, because the orthogonal projections of the convex bodies onto the axis are disjoint.

The hyperplane separation theorem is due to Hermann Minkowski. The Hahn–Banach separation theorem generalizes the result to topological vector spaces.

A related result is the supporting hyperplane theorem.

In the context of support-vector machines, the optimally separating hyperplane or maximum-margin hyperplane is a hyperplane which separates two convex hulls of points and is equidistant from the two.[1][2][3]

Template:Clear

Statements and proof

Template:Math theorem

In all cases, assume A,B to be disjoint, nonempty, and convex subsets of n. The summary of the results are as follows:

summary table
A B x,v y,v
c c
closed compact closed >c1 <c2 with c2<c1
closed closed compact >c1 <c2 with c2<c1
open >c c
open open >c <c

The number of dimensions must be finite. In infinite-dimensional spaces there are examples of two closed, convex, disjoint sets which cannot be separated by a closed hyperplane (a hyperplane where a continuous linear functional equals some constant) even in the weak sense where the inequalities are not strict.[4]

Here, the compactness in the hypothesis cannot be relaxed; see an example in the section Counterexamples and uniqueness. This version of the separation theorem does generalize to infinite-dimension; the generalization is more commonly known as the Hahn–Banach separation theorem.

The proof is based on the following lemma:

Template:Math theorem

Template:Math proof


Proof illustration.

Template:Math proof


Since a separating hyperplane cannot intersect the interiors of open convex sets, we have a corollary:

Template:Math theorem

Case with possible intersections

If the sets A,B have possible intersections, but their relative interiors are disjoint, then the proof of the first case still applies with no change, thus yielding: Template:Math theorem in particular, we have the supporting hyperplane theorem. Template:Math theorem Template:Math proof

Converse of theorem

Note that the existence of a hyperplane that only "separates" two convex sets in the weak sense of both inequalities being non-strict obviously does not imply that the two sets are disjoint. Both sets could have points located on the hyperplane.

Counterexamples and uniqueness

The theorem does not apply if one of the bodies is not convex.

If one of A or B is not convex, then there are many possible counterexamples. For example, A and B could be concentric circles. A more subtle counterexample is one in which A and B are both closed but neither one is compact. For example, if A is a closed half plane and B is bounded by one arm of a hyperbola, then there is no strictly separating hyperplane:

A={(x,y):x0}
B={(x,y):x>0,y1/x}. 

(Although, by an instance of the second theorem, there is a hyperplane that separates their interiors.) Another type of counterexample has A compact and B open. For example, A can be a closed square and B can be an open square that touches A.

In the first version of the theorem, evidently the separating hyperplane is never unique. In the second version, it may or may not be unique. Technically a separating axis is never unique because it can be translated; in the second version of the theorem, a separating axis can be unique up to translation.

The horn angle provides a good counterexample to many hyperplane separations. For example, in 2, the unit disk is disjoint from the open interval ((1,0),(1,1)), but the only line separating them contains the entirety of ((1,0),(1,1)). This shows that if A is closed and B is relatively open, then there does not necessarily exist a separation that is strict for B. However, if A is closed polytope then such a separation exists.[5]

More variants

Farkas' lemma and related results can be understood as hyperplane separation theorems when the convex bodies are defined by finitely many linear inequalities.

More results may be found.[5]

Use in collision detection

In collision detection, the hyperplane separation theorem is usually used in the following form:

Template:Math theorem

Regardless of dimensionality, the separating axis is always a line. For example, in 3D, the space is separated by planes, but the separating axis is perpendicular to the separating plane.

The separating axis theorem can be applied for fast collision detection between polygon meshes. Each face's normal or other feature direction is used as a separating axis. Note that this yields possible separating axes, not separating lines/planes.

In 3D, using face normals alone will fail to separate some edge-on-edge non-colliding cases. Additional axes, consisting of the cross-products of pairs of edges, one taken from each object, are required.[6]

For increased efficiency, parallel axes may be calculated as a single axis.

See also

Notes

Template:Reflist

References

Template:Functional analysis Template:Topological vector spaces

fr:Séparation des convexes

  1. Template:Cite book
  2. Template:Cite book
  3. Template:Cite book
  4. Haïm Brezis, Functional Analysis, Sobolev Spaces and Partial Differential Equations, 2011, Remark 4, p. 7.
  5. 5.0 5.1 Template:Cite book
  6. Template:Cite web