Hyperplane separation theorem

On the existence of hyperplanes separating disjoint convex sets
  • Convex geometry
  • Topological vector spaces
  • Collision detection
Conjectured byHermann MinkowskiOpen problemNoGeneralizationsHahn–Banach separation theorem

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]

Statements and proof

Hyperplane separation theorem[4] — Let A {\displaystyle A} and B {\displaystyle B} be two disjoint nonempty convex subsets of R n {\displaystyle \mathbb {R} ^{n}} . Then there exist a nonzero vector v {\displaystyle v} and a real number c {\displaystyle c} such that

x , v c  and  y , v c {\displaystyle \langle x,v\rangle \geq c\,{\text{ and }}\langle y,v\rangle \leq c}

for all x {\displaystyle x} in A {\displaystyle A} and y {\displaystyle y} in B {\displaystyle B} ; i.e., the hyperplane , v = c {\displaystyle \langle \cdot ,v\rangle =c} , v {\displaystyle v} the normal vector, separates A {\displaystyle A} and B {\displaystyle B} .

If both sets are closed, and at least one of them is compact, then the separation can be strict, that is, x , v > c 1  and  y , v < c 2 {\displaystyle \langle x,v\rangle >c_{1}\,{\text{ and }}\langle y,v\rangle <c_{2}} for some c 1 > c 2 {\displaystyle c_{1}>c_{2}}

In all cases, assume A , B {\displaystyle A,B} to be disjoint, nonempty, and convex subsets of R n {\displaystyle \mathbb {R} ^{n}} . The summary of the results are as follows:

summary table
A {\displaystyle A} B {\displaystyle B} x , v {\displaystyle \langle x,v\rangle } y , v {\displaystyle \langle y,v\rangle }
c {\displaystyle \geq c} c {\displaystyle \leq c}
closed compact closed > c 1 {\displaystyle >c_{1}} < c 2 {\displaystyle <c_{2}} with c 2 < c 1 {\displaystyle c_{2}<c_{1}}
closed closed compact > c 1 {\displaystyle >c_{1}} < c 2 {\displaystyle <c_{2}} with c 2 < c 1 {\displaystyle c_{2}<c_{1}}
open > c {\displaystyle >c} c {\displaystyle \leq c}
open open > c {\displaystyle >c} < c {\displaystyle <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.[5]

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:

Lemma — Let A {\displaystyle A} and B {\displaystyle B} be two disjoint closed subsets of R n {\displaystyle \mathbb {R} ^{n}} , and assume A {\displaystyle A} is compact. Then there exist points a 0 A {\displaystyle a_{0}\in A} and b 0 B {\displaystyle b_{0}\in B} minimizing the distance a b {\displaystyle \|a-b\|} over a A {\displaystyle a\in A} and b B {\displaystyle b\in B} .

Proof of lemma

Let a A {\displaystyle a\in A} and b B {\displaystyle b\in B} be any pair of points, and let r 1 = b a {\displaystyle r_{1}=\|b-a\|} . Since A {\displaystyle A} is compact, it is contained in some ball centered on a {\displaystyle a} ; let the radius of this ball be r 2 {\displaystyle r_{2}} . Let S = B B r 1 + r 2 ( a ) ¯ {\displaystyle S=B\cap {\overline {B_{r_{1}+r_{2}}(a)}}} be the intersection of B {\displaystyle B} with a closed ball of radius r 1 + r 2 {\displaystyle r_{1}+r_{2}} around a {\displaystyle a} . Then S {\displaystyle S} is compact and nonempty because it contains b {\displaystyle b} . Since the distance function is continuous, there exist points a 0 {\displaystyle a_{0}} and b 0 {\displaystyle b_{0}} whose distance a 0 b 0 {\displaystyle \|a_{0}-b_{0}\|} is the minimum over all pairs of points in A × S {\displaystyle A\times S} . It remains to show that a 0 {\displaystyle a_{0}} and b 0 {\displaystyle b_{0}} in fact have the minimum distance over all pairs of points in A × B {\displaystyle A\times B} . Suppose for contradiction that there exist points a {\displaystyle a'} and b {\displaystyle b'} such that a b < a 0 b 0 {\displaystyle \|a'-b'\|<\|a_{0}-b_{0}\|} . Then in particular, a b < r 1 {\displaystyle \|a'-b'\|<r_{1}} , and by the triangle inequality, a b a b + a a < r 1 + r 2 {\displaystyle \|a-b'\|\leq \|a'-b'\|+\|a-a'\|<r_{1}+r_{2}} . Therefore b {\displaystyle b'} is contained in S {\displaystyle S} , which contradicts the fact that a 0 {\displaystyle a_{0}} and b 0 {\displaystyle b_{0}} had minimum distance over A × S {\displaystyle A\times S} . {\displaystyle \square }


Proof illustration.
Proof of theorem

We first prove the second case. (See the diagram.)

WLOG, A {\displaystyle A} is compact. By the lemma, there exist points a 0 A {\displaystyle a_{0}\in A} and b 0 B {\displaystyle b_{0}\in B} of minimum distance to each other. Since A {\displaystyle A} and B {\displaystyle B} are disjoint, we have a 0 b 0 {\displaystyle a_{0}\neq b_{0}} . Now, construct two hyperplanes L A , L B {\displaystyle L_{A},L_{B}} perpendicular to line segment [ a 0 , b 0 ] {\displaystyle [a_{0},b_{0}]} , with L A {\displaystyle L_{A}} across a 0 {\displaystyle a_{0}} and L B {\displaystyle L_{B}} across b 0 {\displaystyle b_{0}} . We claim that neither A {\displaystyle A} nor B {\displaystyle B} enters the space between L A , L B {\displaystyle L_{A},L_{B}} , and thus the perpendicular hyperplanes to ( a 0 , b 0 ) {\displaystyle (a_{0},b_{0})} satisfy the requirement of the theorem.

Algebraically, the hyperplanes L A , L B {\displaystyle L_{A},L_{B}} are defined by the vector v := b 0 a 0 {\displaystyle v:=b_{0}-a_{0}} , and two constants c A := v , a 0 < c B := v , b 0 {\displaystyle c_{A}:=\langle v,a_{0}\rangle <c_{B}:=\langle v,b_{0}\rangle } , such that L A = { x : v , x = c A } , L B = { x : v , x = c B } {\displaystyle L_{A}=\{x:\langle v,x\rangle =c_{A}\},L_{B}=\{x:\langle v,x\rangle =c_{B}\}} . Our claim is that a A , v , a c A {\displaystyle \forall a\in A,\langle v,a\rangle \leq c_{A}} and b B , v , b c B {\displaystyle \forall b\in B,\langle v,b\rangle \geq c_{B}} .

Suppose there is some a A {\displaystyle a\in A} such that v , a > c A {\displaystyle \langle v,a\rangle >c_{A}} , then let a {\displaystyle a'} be the foot of perpendicular from b 0 {\displaystyle b_{0}} to the line segment [ a 0 , a ] {\displaystyle [a_{0},a]} . Since A {\displaystyle A} is convex, a {\displaystyle a'} is inside A {\displaystyle A} , and by planar geometry, a {\displaystyle a'} is closer to b 0 {\displaystyle b_{0}} than a 0 {\displaystyle a_{0}} , contradiction. Similar argument applies to B {\displaystyle B} .

Now for the first case.

Approach both A , B {\displaystyle A,B} from the inside by A 1 A 2 A {\displaystyle A_{1}\subseteq A_{2}\subseteq \cdots \subseteq A} and B 1 B 2 B {\displaystyle B_{1}\subseteq B_{2}\subseteq \cdots \subseteq B} , such that each A k , B k {\displaystyle A_{k},B_{k}} is closed and compact, and the unions are the relative interiors r e l i n t ( A ) , r e l i n t ( B ) {\displaystyle \mathrm {relint} (A),\mathrm {relint} (B)} . (See relative interior page for details.)

Now by the second case, for each pair A k , B k {\displaystyle A_{k},B_{k}} there exists some unit vector v k {\displaystyle v_{k}} and real number c k {\displaystyle c_{k}} , such that v k , A k < c k < v k , B k {\displaystyle \langle v_{k},A_{k}\rangle <c_{k}<\langle v_{k},B_{k}\rangle } .

Since the unit sphere is compact, we can take a convergent subsequence, so that v k v {\displaystyle v_{k}\to v} . Let c A := sup a A v , a , c B := inf b B v , b {\displaystyle c_{A}:=\sup _{a\in A}\langle v,a\rangle ,c_{B}:=\inf _{b\in B}\langle v,b\rangle } . We claim that c A c B {\displaystyle c_{A}\leq c_{B}} , thus separating A , B {\displaystyle A,B} .

Assume not, then there exists some a A , b B {\displaystyle a\in A,b\in B} such that v , a > v , b {\displaystyle \langle v,a\rangle >\langle v,b\rangle } , then since v k v {\displaystyle v_{k}\to v} , for large enough k {\displaystyle k} , we have v k , a > v k , b {\displaystyle \langle v_{k},a\rangle >\langle v_{k},b\rangle } , contradiction.


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

Separation theorem I — Let A {\displaystyle A} and B {\displaystyle B} be two disjoint nonempty convex sets. If A {\displaystyle A} is open, then there exist a nonzero vector v {\displaystyle v} and real number c {\displaystyle c} such that

x , v > c  and  y , v c {\displaystyle \langle x,v\rangle >c\,{\text{ and }}\langle y,v\rangle \leq c}

for all x {\displaystyle x} in A {\displaystyle A} and y {\displaystyle y} in B {\displaystyle B} . If both sets are open, then there exist a nonzero vector v {\displaystyle v} and real number c {\displaystyle c} such that

x , v > c  and  y , v < c {\displaystyle \langle x,v\rangle >c\,{\text{ and }}\langle y,v\rangle <c}

for all x {\displaystyle x} in A {\displaystyle A} and y {\displaystyle y} in B {\displaystyle B} .

Case with possible intersections

If the sets A , B {\displaystyle 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:

Separation theorem II — Let A {\displaystyle A} and B {\displaystyle B} be two nonempty convex subsets of R n {\displaystyle \mathbb {R} ^{n}} with disjoint relative interiors. Then there exist a nonzero vector v {\displaystyle v} and a real number c {\displaystyle c} such that

x , v c  and  y , v c {\displaystyle \langle x,v\rangle \geq c\,{\text{ and }}\langle y,v\rangle \leq c}

in particular, we have the supporting hyperplane theorem.

Supporting hyperplane theorem — if A {\displaystyle A} is a convex set in R n , {\displaystyle \mathbb {R} ^{n},} and a 0 {\displaystyle a_{0}} is a point on the boundary of A {\displaystyle A} , then there exists a supporting hyperplane of A {\displaystyle A} containing a 0 {\displaystyle a_{0}} .

Proof

If the affine span of A {\displaystyle A} is not all of R n {\displaystyle \mathbb {R} ^{n}} , then extend the affine span to a supporting hyperplane. Else, r e l i n t ( A ) = i n t ( A ) {\displaystyle \mathrm {relint} (A)=\mathrm {int} (A)} is disjoint from r e l i n t ( { a 0 } ) = { a 0 } {\displaystyle \mathrm {relint} (\{a_{0}\})=\{a_{0}\}} , so apply the above theorem.

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 ) : x 0 } {\displaystyle A=\{(x,y):x\leq 0\}}
B = { ( x , y ) : x > 0 , y 1 / x } .   {\displaystyle B=\{(x,y):x>0,y\geq 1/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 R 2 {\displaystyle \mathbb {R} ^{2}} , the unit disk is disjoint from the open interval ( ( 1 , 0 ) , ( 1 , 1 ) ) {\displaystyle ((1,0),(1,1))} , but the only line separating them contains the entirety of ( ( 1 , 0 ) , ( 1 , 1 ) ) {\displaystyle ((1,0),(1,1))} . This shows that if A {\displaystyle A} is closed and B {\displaystyle B} is relatively open, then there does not necessarily exist a separation that is strict for B {\displaystyle B} . However, if A {\displaystyle A} is closed polytope then such a separation exists.[6]

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.[6]

Use in collision detection

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

Separating axis theorem — Two closed convex objects are disjoint if there exists a line ("separating axis") onto which the two objects' projections are disjoint.

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.[7]

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

See also

Notes

  1. ^ Hastie, Trevor; Tibshirani, Robert; Friedman, Jerome (2008). The Elements of Statistical Learning : Data Mining, Inference, and Prediction (PDF) (Second ed.). New York: Springer. pp. 129–135.
  2. ^ Witten, Ian H.; Frank, Eibe; Hall, Mark A.; Pal, Christopher J. (2016). Data Mining: Practical Machine Learning Tools and Techniques (Fourth ed.). Morgan Kaufmann. pp. 253–254. ISBN 9780128043578.
  3. ^ Deisenroth, Marc Peter; Faisal, A. Aldo; Ong, Cheng Soon (2020). Mathematics for Machine Learning. Cambridge University Press. pp. 337–338. ISBN 978-1-108-45514-5.
  4. ^ Boyd & Vandenberghe 2004, Exercise 2.22.
  5. ^ Haïm Brezis, Analyse fonctionnelle : théorie et applications, 1983, remarque 4, p. 7.
  6. ^ a b Stoer, Josef; Witzgall, Christoph (1970). Convexity and Optimization in Finite Dimensions I. Springer Berlin, Heidelberg. (2.12.9). doi:10.1007/978-3-642-46216-0. ISBN 978-3-642-46216-0.
  7. ^ "Advanced vector math".

References

  • Boyd, Stephen P.; Vandenberghe, Lieven (2004). Convex Optimization (PDF). Cambridge University Press. ISBN 978-0-521-83378-3.
  • Golshtein, E. G.; Tretyakov, N.V. (1996). Modified Lagrangians and monotone maps in optimization. New York: Wiley. p. 6. ISBN 0-471-54821-9.
  • Shimizu, Kiyotaka; Ishizuka, Yo; Bard, Jonathan F. (1997). Nondifferentiable and two-level mathematical programming. Boston: Kluwer Academic Publishers. p. 19. ISBN 0-7923-9821-1.
  • Soltan, V. (2021). Support and separation properties of convex sets in finite dimension. Extracta Math. Vol. 36, no. 2, 241-278.

External links

  • Collision detection and response
  • v
  • t
  • e
Spaces
Properties
TheoremsOperatorsAlgebrasOpen problemsApplicationsAdvanced topics
  • Category
  • v
  • t
  • e
Basic concepts
Main results
Maps
Types of sets
Set operations
Types of TVSs
  • Category