18.3  Separating Hyperplanes

Sections 01 and 02 looked at a convex set from the inside: which combinations of its points it contains, and how few points a combination needs. This section looks at it from the outside. A point that is not in a closed convex set can be cut off from it by a hyperplane, a set can be touched at its edge by a hyperplane that leaves the whole set on one side, and two disjoint convex sets can be pulled apart by one. All three facts come from a single construction, the point of the set nearest to a given point, and that construction is Chapter 11’s orthogonal projection with the subspace replaced by a convex set.

Throughout, V is a finite-dimensional real inner product space, with inner product ⟨⋅,⋅⟩ (Definition 11.1.1), induced norm ‖⋅‖ (Definition 11.1.3), and n=dim⁡V. A sequence converges, xk→x, when ‖xk−x‖→0; closed means closed in the sense of Definition 18.1.6, so that a closed set contains the limit of every convergent sequence of its points. A set is compact if every sequence in it has a subsequence converging to a point of the set; this is the word of Corollary 16.2.5, which says that every closed bounded subset of V is compact. The field is R because the whole section is about inequalities.

18.3.1. The nearest point of a closed convex set

Chapter 11 answered a question about subspaces: given v and a finite-dimensional subspace U, which vector of U is closest to v? Theorem 11.3.5 said there is exactly one, the orthogonal projection PUv, and that v−PUv is perpendicular to U. Now replace U by a set with less structure, such as a disc, a box or a half-plane, and ask the same question. Two small experiments in R2 show which hypotheses the answer needs.

  • The open disc {y:‖y‖<1} and the point x=(2,0). The points (1−1/k,0) of the disc come closer and closer to x, but the distance 1 is never reached, since the only candidate (1,0) is missing. There is no nearest point. The set is convex but not closed.
  • The circle {y:‖y‖=1} and the point x=0. Every point of the circle is at distance 1, so every point is a nearest point. The set is closed but not convex.

So we ask for both properties, and then everything works.

Theorem 18.3.1 (Nearest Point Theorem)

Let C be a non-empty, closed, convex subset of V, and let x∈V.

  • (a) There is exactly one point p∈C with ‖x−p‖≤‖x−y‖ for every y∈C.

  • (b) A point p∈C is this nearest point if and only if

    ⟨x−p,y−p⟩≤0for every y∈C.
    (18.3.1)

The nearest point is written PC(x), and the map PC:V→C is the projection onto C. The number d(x,C)=‖x−PC(x)‖ is the distance from x to C.

Idea. Three jobs, three tools. ① Existence: a nearest point is a minimum of the continuous function y↦‖x−y‖, and a minimum exists on a compact set; C itself may be unbounded, so cut it down to the part of C within a fixed distance of x. ② The inequality Eq. 18.3.1 is the first-order condition: slide from p a little way towards another point y of C, which convexity allows, and ask that the distance not decrease. ③ Read backwards, the inequality says that the angle at p between x−p and y−p is at least a right angle, and expanding ‖x−y‖2 then gives ‖x−y‖2≥‖x−p‖2+‖y−p‖2. That inequality proves both that p is nearest and that nothing else is.

Diagram. Labels: mathbf x, mathbf y, C, P_C(mathbf x), the angle at P_C(mathbf x) between mathbf x - P_C(mathbf x) and mathbf y - P_C(mathbf x) is obtuse;\\ the dashed line through P_C(mathbf x) is perpendicular to mathbf x - P_C(mathbf x)

Proof. Existence. Since C≠∅, pick y0∈C and put R=‖x−y0‖. Let K={y∈C:‖x−y‖≤R}. Then y0∈K, and K is bounded, since ‖y‖≤‖x‖+‖y−x‖≤‖x‖+R for y∈K by Corollary 11.1.6. It is closed: if yk∈K and yk→y, then y∈C because C is closed, and ‖x−y‖≤‖x−yk‖+‖yk−y‖≤R+‖yk−y‖ for every k; the right-hand side tends to R, and a non-strict inequality survives a limit, so ‖x−y‖≤R. By Corollary 16.2.5, the form in which Chapter 16 carried the compactness of closed bounded sets, fact (A3) of Chapter 16’s introduction, over to every finite-dimensional space, K is compact. The function f(y)=‖x−y‖ is continuous, since |f(y)−f(y′)|≤‖y−y′‖ by Lemma 16.1.1. By the extreme value theorem, fact (A4) of Chapter 16’s introduction, f attains a minimum on K at some p∈K. Every y∈C∖K has f(y)>R≥f(p). So ‖x−p‖≤‖x−y‖ for every y∈C.

(b), (⇒). Let p be a nearest point and let y∈C. For 0<t≤1, the point p+t(y−p)=(1−t)p+ty lies in C by Definition 18.1.1. Hence, expanding with Theorem 11.1.2 (c) over R, ‖x−p‖2≤‖(x−p)−t(y−p)‖2=‖x−p‖2−2t⟨x−p,y−p⟩+t2‖y−p‖2. Cancel ‖x−p‖2 and divide by 2t>0: ⟨x−p,y−p⟩≤t2‖y−p‖2. This holds for every t=1/k, and letting k→∞ gives Eq. 18.3.1.

(b), (⇐), and uniqueness. Let p∈C satisfy Eq. 18.3.1, and let y∈C. The same expansion with t=1 gives (∗)‖x−y‖2=‖x−p‖2−2⟨x−p,y−p⟩+‖y−p‖2≥‖x−p‖2+‖y−p‖2. So ‖x−y‖≥‖x−p‖, and p is a nearest point. Finally, the nearest point p found in the existence step satisfies Eq. 18.3.1 by (⇒), so (∗) applies to it; for y∈C with y≠p it gives ‖x−y‖2≥‖x−p‖2+‖y−p‖2>‖x−p‖2, and y is not a nearest point. This proves the theorem.

The inequality (∗) is Pythagoras with the equality relaxed to an inequality. That is exactly the relation with Chapter 11, and it deserves to be said precisely.

This theorem generalizes Theorem 11.3.5. Let C=U be a subspace of V. It is convex, and closed by Proposition 18.1.6 (c). For p∈U, the vector y−p runs over all of U as y does, and with each u∈U it also takes the value −u. So Eq. 18.3.1 says ⟨x−p,u⟩≤0 and −⟨x−p,u⟩≤0, that is, ⟨x−p,u⟩=0for every u∈U. For a subspace the variational inequality becomes an equality, the statement x−p∈U⊥. Then x=p+(x−p) is the splitting of Theorem 11.3.2 (a), so PC(x)=PUx by Definition 11.3.2, and (∗) becomes the equation of Theorem 11.1.3 used in the proof of Theorem 11.3.5. The projection onto a closed convex set is the orthogonal projection with “perpendicular” weakened to “at an obtuse angle”.

Example (Three projections)

Find PC(x) in each case, and check Eq. 18.3.1.

  • (a) C is the closed unit ball {y:‖y‖≤1} of V, and ‖x‖>1.
  • (b) C is the box [0,1]3={y∈R3:0≤yi≤1 for each i} with the dot product, and x=(3,−1,2).
  • (c) C is the half-space {y:⟨a,y⟩≤c}, where a≠0, and ⟨a,x⟩>c.

Solution.

  • (a) PC(x)=x/‖x‖. With p=x/‖x‖ we have ‖p‖=1 and x−p=(‖x‖−1)p, so for y∈C ⟨x−p,y−p⟩=(‖x‖−1)(⟨p,y⟩−1)≤0, because ‖x‖−1>0 and ⟨p,y⟩≤‖p‖‖y‖≤1 by Theorem 11.1.5. By Theorem 18.3.1 (b), p is the nearest point, and d(x,C)=‖x‖−1.

  • (b) Clamp each coordinate into [0,1]: p=(1,0,1). Then x−p=(2,−1,1) and, for y∈C, ⟨x−p,y−p⟩=2(y1−1)−y2+(y3−1)≤0, since y1≤1, y2≥0 and y3≤1. So PC(x)=(1,0,1) and d(x,C)=4+1+1=6. The vector a=x−p=(2,−1,1) also cuts x off: ⟨a,x⟩=9 and ‖a‖2=6, so c=⟨a,x⟩−12‖a‖2=6, and the plane 2y1−y2+y3=6 strictly separates C from x, since its left side is at most 2+0+1=3 on C and equals 9 at x. Theorem 18.3.2 below turns this recipe into a theorem.

  • (c) Put λ=(⟨a,x⟩−c)/‖a‖2, which is positive, and p=x−λa. Then ⟨a,p⟩=⟨a,x⟩−λ‖a‖2=c, so p∈C, and for y∈C ⟨x−p,y−p⟩=λ(⟨a,y⟩−c)≤0. So PC(x)=x−λa: drop the perpendicular to the boundary hyperplane, as Chapter 11 would have done. The distance is λ‖a‖=(⟨a,x⟩−c)/‖a‖.

Two degenerate cases fix the scale. If C={c} is a single point, then PC(x)=c for every x, and Eq. 18.3.1 holds because y−p=0. If C=V, then PC is the identity. In every case PC(x)=x exactly when x∈C.

Quick check. Where did the proof of Theorem 18.3.1 use that C is closed, and where that it is convex? Match each use with one of the two failing experiments before the theorem.

Solution. Closedness was used in the existence step, to make K closed and hence compact; the open disc fails there, since the minimizing candidates converge to a point outside it. Convexity was used in (⇒), to know that (1−t)p+ty∈C, and uniqueness rests on that step. The circle fails there: with x=0, p=e1 and y=−e1, ⟨x−p,y−p⟩=2>0.

Warning. The proof needs an inner product, and uniqueness can fail without one. In R2 with ‖⋅‖∞, let C be the x1-axis, which is closed and convex, and x=(0,1). Then ‖x−(t,0)‖∞=max(|t|,1)=1 for every t∈[−1,1], so there is a whole segment of nearest points. Existence survives, since its proof used only (N3) and compactness. Uniqueness does not, because it came from the expansion of ‖x−y‖2, which is available only for induced norms.

18.3.2. Hyperplanes and half-spaces

A hyperplane in the sense of Chapter 5 passes through 0: it is a subspace of codimension 1 (Definition 5.5.2). To separate sets we need translates of hyperplanes, and Chapter 5 §06 called a coset p+H of a hyperplane H (Definition 4.4.2) an affine hyperplane. In an inner product space these have a concrete form. By Theorem 5.5.3, H=kerφ for a non-zero φ∈V∗; by Theorem 11.5.1, φ=⟨⋅,a⟩ for a non-zero a∈V. Hence p+H={y∈V:⟨a,y⟩=c},c=⟨a,p⟩, and conversely every such set with a≠0 is an affine hyperplane, with a as a normal vector. It cuts V into the two closed half-spaces {⟨a,⋅⟩≤c} and {⟨a,⋅⟩≥c}. Both are convex, because ⟨a,⋅⟩ is linear, and closed by Proposition 18.1.6 (c).

Definition 18.3.1 (Separation by a Hyperplane)

Let A,B⊆V be non-empty. A non-zero vector a∈V and a number c∈R separate A and B if ⟨a,x⟩≤c≤⟨a,y⟩for all x∈A and all y∈B. They strictly separate A and B if in addition there is a real ε>0 with ⟨a,x⟩≤c−ε and ⟨a,y⟩≥c+ε for all x∈A, y∈B.

In words: A lies in one closed half-space of {⟨a,⋅⟩=c} and B in the other, and strict separation puts a slab of width 2ε/‖a‖ between them. Replacing (a,c) by (−a,−c) swaps the roles of A and B. With a=0 and c=0 any two sets would be “separated”.

18.3.3. Cutting off a point

The first consequence of Theorem 18.3.1 is the one the chapter uses most. If x is not in C, the vector from PC(x) to x is a normal vector for a hyperplane that cuts x off.

Theorem 18.3.2 (Separating a Point from a Closed Convex Set)

Let C⊆V be non-empty, closed and convex, and let x∉C. Put a=x−PC(x). Then a≠0 and ⟨a,y⟩≤⟨a,x⟩−‖a‖2for every y∈C. In particular a and c=⟨a,x⟩−12‖a‖2 strictly separate C and {x}.

Proof. Write p=PC(x). Since p∈C and x∉C, a=x−p≠0. For y∈C, Eq. 18.3.1 gives ⟨a,y−p⟩≤0, hence ⟨a,y⟩≤⟨a,p⟩=⟨a,x⟩−⟨a,x−p⟩=⟨a,x⟩−‖a‖2. With ε=12‖a‖2>0 this reads ⟨a,y⟩≤c−ε, while ⟨a,x⟩=c+ε. This proves the theorem.

In the picture after Theorem 18.3.1, the hyperplane of the theorem is the line parallel to the dashed one, halfway between PC(x) and x.

The theorem turns into a description of a closed convex set from the outside. Sections 01 and 02 built convex sets up from points; this builds them down from half-spaces.

Corollary 18.3.3 (A Closed Convex Set Is an Intersection of Half-Spaces)

Every non-empty closed convex subset C of V is the intersection of all the closed half-spaces {y:⟨a,y⟩≤c}, with a≠0, that contain C.

Proof. Each of these half-spaces contains C, so C lies in their intersection. Conversely, let x∉C. By Theorem 18.3.2, with a=x−PC(x)≠0, the half-space {y:⟨a,y⟩≤⟨a,x⟩−‖a‖2} contains C but not x. So x is not in the intersection. (If C=V, the family of half-spaces is empty and its intersection is V by convention.)

The corollary has a converse that is immediate: an intersection of closed half-spaces is closed and convex, because each half-space is and both properties pass to intersections. So the closed convex sets are exactly the intersections of closed half-spaces. §04 turns this into a formula, the support function, and §09 studies the case of finitely many half-spaces.

18.3.4. Supporting hyperplanes

A point on the edge of C cannot be cut off, because it belongs to C. The best one can hope for is a hyperplane through the point with all of C on one side, touching C without cutting it. To say “on the edge” we need two more words.

Definition 18.3.2 (Interior Point, Closure, Boundary Point)

Let S⊆V. A point x∈V is an interior point of S if there is a real r>0 such that every y with ‖y−x‖<r lies in S; the set of interior points is written int(S). The closure S― of S is the set of limits of all convergent sequences of points of S. A boundary point of S is a point of S― that is not an interior point of S.

Constant sequences show S⊆S―, and by Definition 18.1.6, S is closed exactly when S―=S. By Theorem 16.2.2 neither notion depends on the norm used: a ball of radius r for one norm contains a ball of positive radius for any other. For the closed unit disc of R2, the interior points are those with ‖x‖<1, and the boundary points form the unit circle. A segment in R2 has no interior points at all, so every one of its points is a boundary point; that is the case the next lemma isolates.

Lemma 18.3.4 (A Convex Set Is Solid or Flat)

Let V≠{0} and let C⊆V be non-empty and convex. Then either C has an interior point, or C lies in an affine hyperplane: there are a≠0 and c∈R with ⟨a,y⟩=c for every y∈C.

Idea. Fix c0∈C and look at the directions y−c0 available inside C. If they span a proper subspace, a normal vector to that subspace is the a we want. If they span V, then C contains n+1 points in general position, hence the solid simplex they span, and the center of a solid simplex is an interior point because its barycentric coordinates change only a little when the point moves a little.

Proof. Fix c0∈C and let W=span{y−c0:y∈C}.

Case 1: W≠V. Then dim⁡W<n, so dim⁡W⊥=n−dim⁡W≥1 by Theorem 11.3.2 (c), and there is a≠0 in W⊥. For y∈C, ⟨a,y−c0⟩=0, that is, ⟨a,y⟩=⟨a,c0⟩. Take c=⟨a,c0⟩.

Case 2: W=V. Choose a linearly independent list (y1−c0,…,ym−c0) with every yi∈C and m as large as possible; m≤n by Theorem 1.6.3. Every vector y−c0 with y∈C lies in the span of this list, since otherwise Lemma 1.5.3 would lengthen it. So the span contains every generator of W, hence equals V, and the list is a basis; thus m=n. Let φi(v) be the i-th coordinate of v in this basis, a linear functional by Theorem 1.5.2, and write φi=⟨⋅,wi⟩ by Theorem 11.5.1. Put μi(v)=φi(v−c0). Then for every v∈V, v=(1−∑i=1nμi(v))c0+∑i=1nμi(v)yi, and when μi(v)≥0 for every i and ∑iμi(v)≤1, this is a convex combination of points of C, hence a point of C: by Theorem 18.1.3 it lies in convC, and convC=C by Definition 18.1.4, since C is itself a convex set containing C.

Let z=c0+1n+1∑i(yi−c0), so that μi(z)=1n+1 for every i. Each wi≠0, because φi(yi−c0)=1; put L=maxi‖wi‖>0 and r=1/(n(n+1)L). If ‖v−z‖<r, then by Theorem 11.1.5 |μi(v)−μi(z)|=|⟨v−z,wi⟩|≤L‖v−z‖<1n(n+1), so μi(v)>1n+1−1n(n+1)≥0 and ∑iμi(v)<nn+1+1n+1=1. Hence v∈C, and z is an interior point of C.

The second ingredient says that from an interior point one can see the whole closure.

Lemma 18.3.5 (Closure and Interior of a Convex Set)

Let C⊆V be convex.

  • (a) C― is closed and convex.
  • (b) If z∈int(C), w∈C― and 0<t≤1, then (1−t)w+tz∈int(C).

Idea. Part (a) pushes limits through: a limit of limits is a limit, and a convex combination of limits is the limit of convex combinations. For (b), picture a small ball around z inside C, and the cone from w over it. The cone contains a smaller ball around (1−t)w+tz; since w is only a limit, replace it by a nearby point w′ of C, which shrinks the ball by half.

Proof.

  • (a) Let xk∈C― with xk→x. Each xk is a limit of points of C, so there is ck∈C with ‖ck−xk‖<1/k. Then ‖ck−x‖≤1/k+‖xk−x‖→0, so x∈C―. For convexity, let x=limck and y=limdk with ck,dk∈C, and 0≤s≤1. The points sck+(1−s)dk lie in C and converge to sx+(1−s)y, by Corollary 11.1.6, so that point lies in C―.

  • (b) Take ρ>0 with every point within distance ρ of z in C, and put p=(1−t)w+tz. If t=1 then p=z and there is nothing to prove, so let t<1. Choose w′∈C with (1−t)‖w−w′‖<tρ/2, possible because w is a limit of points of C. Let ‖q−p‖<tρ/2, and put z′=(q−(1−t)w′)/t, so that q=(1−t)w′+tz′. Since p=(1−t)w+tz, z′−z=(q−p)+(1−t)(w−w′)t,‖z′−z‖<tρ/2+tρ/2t=ρ. Hence z′∈C, and q∈C by Definition 18.1.1. So every point within tρ/2 of p lies in C, and p∈int(C).

Now the theorem. It asks only that x0 not be an interior point, which covers the boundary points of C and also the points outside C―.

Theorem 18.3.6 (Supporting Hyperplane Theorem)

Let V≠{0}, let C⊆V be convex, and let x0∈V be a point that is not an interior point of C. Then there is a non-zero a∈V with ⟨a,y⟩≤⟨a,x0⟩for every y∈C. If moreover x0∈C, the affine hyperplane {y:⟨a,y⟩=⟨a,x0⟩} passes through x0 and has C in one of its closed half-spaces; it is called a supporting hyperplane of C at x0.

Idea. Approach x0 from outside C― and cut off each approximating point with Theorem 18.3.2. The normal vectors, scaled to length 1, live on the compact unit sphere, so a subsequence converges, and in the limit the strict inequalities become the non-strict one we want. The only thing that could go wrong is that there are no points outside C― near x0. Lemma 18.3.4 and Lemma 18.3.5 rule that out: if C is flat, its own hyperplane serves; if C is solid, pushing x0 directly away from an interior point leaves C― at once.

Proof. If C=∅, any non-zero a works, and one exists because V≠{0}. So let C≠∅.

Case 1: C has no interior point. By Lemma 18.3.4 there are a≠0 and c with ⟨a,y⟩=c for all y∈C. If ⟨a,x0⟩≥c, then a works. Otherwise −a works, since ⟨−a,y⟩=−c<−⟨a,x0⟩.

Case 2: C has an interior point z. For k≥1 let xk=x0+1k(x0−z). We claim xk∉C―. Indeed, with t=1k+1, (1−t)xk+tz=kk+1x0+1k+1(x0−z)+1k+1z=x0, so if xk were in C―, then x0 would be an interior point of C by Lemma 18.3.5 (b), contrary to the hypothesis. By Lemma 18.3.5 (a), C― is non-empty, closed and convex, so Theorem 18.3.2, applied to C― and xk, gives bk≠0 with ⟨bk,y⟩≤⟨bk,xk⟩ for all y∈C―, in particular for all y∈C. Put ak=bk/‖bk‖, a unit vector satisfying the same inequality.

The unit sphere of V is compact by Corollary 16.2.5, which rests on fact (A3) of Chapter 16’s introduction. So a subsequence (akj) converges to some a with ‖a‖=1; in particular a≠0. Fix y∈C. Then ⟨akj,y−xkj⟩≤0 for every j, and xk→x0 because ‖xk−x0‖=‖x0−z‖/k. By Theorem 11.1.5, |⟨akj,y−xkj⟩−⟨a,y−x0⟩|≤|⟨akj−a,y−xkj⟩|+|⟨a,x0−xkj⟩|≤‖akj−a‖(‖y−x0‖+‖x0−z‖)+‖x0−xkj‖, which tends to 0. A non-strict inequality survives the limit, so ⟨a,y−x0⟩≤0. This proves the theorem.

A supporting hyperplane need not be unique. At the corner (1,1) of the square [−1,1]2, every a=(a1,a2) with a1,a2≥0, not both zero, works, since a1y1+a2y2≤a1+a2 on the square. At a point of the unit circle, the boundary of the disc, only the positive multiples of the point itself work. Corners admit many supporting hyperplanes and smooth points one; §08 builds its induction on dimension on these hyperplanes, and §04 uses them to prove that a norm is recovered from its dual.

18.3.5. Separating two convex sets

To separate two sets, separate one point from one set: the point 0 from the set of differences.

Theorem 18.3.7 (Separating Hyperplane Theorem)

Let C1,C2⊆V be non-empty, disjoint and convex.

  • (a) If C1 is compact and C2 is closed, then C1 and C2 are strictly separated: there are a≠0 and c with ⟨a,x⟩<c<⟨a,y⟩ for all x∈C1, y∈C2, and indeed with a margin ε>0 as in Definition 18.3.1.
  • (b) In general, C1 and C2 are separated: there are a≠0 and c with ⟨a,x⟩≤c≤⟨a,y⟩ for all x∈C1, y∈C2.

Idea. The difference set D={y−x:x∈C1,y∈C2} is convex and misses 0, and a normal a with D on its positive side separates C1 from C2. For (a), compactness of C1 makes D closed, and Theorem 18.3.2 cuts 0 off; for (b), 0 is not an interior point of D, and Theorem 18.3.6 applies.

Proof. Let D={y−x:x∈C1,y∈C2}. It is convex: for 0≤t≤1, t(y−x)+(1−t)(y′−x′)=(ty+(1−t)y′)−(tx+(1−t)x′), a difference of a point of C2 and a point of C1. And 0∉D, since C1∩C2=∅.

  • (a) We show D is closed. Let yk−xk→d with xk∈C1, yk∈C2. Since C1 is compact, a subsequence xkj converges to some x∈C1. Then ykj=(ykj−xkj)+xkj→d+x, since a subsequence of a convergent sequence has the same limit, part of the elementary algebra of limits that Chapter 16’s introduction imports; so d+x∈C2 because C2 is closed, and d=(d+x)−x∈D. Now Theorem 18.3.2, applied to D and the point 0∉D, gives b≠0 with ⟨b,d⟩≤−‖b‖2 for all d∈D. With a=−b this says ⟨a,x⟩+‖a‖2≤⟨a,y⟩for all x∈C1, y∈C2. Fix y∈C2. The numbers ⟨a,x⟩, x∈C1, are bounded above by ⟨a,y⟩−‖a‖2, so by the completeness of R, fact (A1) of Chapter 16’s introduction, they have a least upper bound s, and s+‖a‖2≤⟨a,y⟩ for every y∈C2. Take ε=12‖a‖2 and c=s+ε. Then ⟨a,x⟩≤s=c−ε and ⟨a,y⟩≥c+ε.

  • (b) If V={0}, two non-empty subsets both contain 0 and cannot be disjoint, so V≠{0}. The point 0 is not in D, so it is not an interior point of D. By Theorem 18.3.6 there is b≠0 with ⟨b,d⟩≤⟨b,0⟩=0 for all d∈D. With a=−b, this says ⟨a,x⟩≤⟨a,y⟩ for all x∈C1, y∈C2. As in (a), the least upper bound c of the numbers ⟨a,x⟩, x∈C1, exists by (A1) and satisfies ⟨a,x⟩≤c≤⟨a,y⟩. This proves the theorem.

18.3.6. Where strict separation fails

Part (a) asked one of the two sets to be compact. That hypothesis cannot be weakened to “closed”, and the standard witness is a hyperbola and its asymptote.

Example (A hyperbola and its asymptote)

In R2 with the dot product, let A={x:x1>0, x2>0, x1x2≥1},B={x:x2=0}. Show that A and B are non-empty, disjoint, closed and convex, that the x1-axis is the only hyperplane separating them, and that they are not strictly separated.

Diagram. Labels: x_2, B, A, A and B are closed, convex and disjoint,\\ but the gap between them shrinks to zero

Solution. Non-empty and disjoint. (1,1)∈A and 0∈B; every point of A has x2>0, and every point of B has x2=0.

B is closed and convex. It is a subspace, so it is convex, and closed by Proposition 18.1.6 (c).

A is convex. Let x,z∈A and 0≤t≤1, and let w=tx+(1−t)z. Its coordinates are positive. Expanding, w1w2=t2x1x2+(1−t)2z1z2+t(1−t)(x1z2+x2z1). By (x1z2−x2z1)2≥0, we get x1z2+x2z1≥2x1x2z1z2≥2, using x1x2≥1 and z1z2≥1. Hence w1w2≥t2+(1−t)2+2t(1−t)=1, and w∈A.

A is closed. If xk→x with xk∈A, then the coordinates converge, so x1,x2≥0, and xk,1xk,2→x1x2 by the algebra of limits, so x1x2≥1. A product that is at least 1 has no zero factor, so x1,x2>0, and x∈A.

The only separating hyperplane. Let a≠0 and c separate A and B, in either order. On B, ⟨a,(t,0)⟩=a1t for all real t, and these values lie on one side of c; that forces a1=0. So a2≠0, and after replacing (a,c) by (−a,−c) we may take a2>0. On B the value is 0. On A the values are a2x2, and since (1/s,s)∈A for every s>0, they fill the interval (0,∞). These are unbounded above, so A is on the side ≥c and B on the side ≤c: 0≤c≤a2s for every s>0, which forces c=0. The hyperplane {a2x2=0} is the x1-axis, and it separates, since a2x2>0 on A and =0 on B.

No strict separation. Strict separation would need the only separating hyperplane to miss both sets, and B is that hyperplane.

The points (t,1/t)∈A and (t,0)∈B are 1/t apart, and Exercise (C2: Strict separation and distance) shows that this vanishing distance is exactly what rules out strict separation.

Warning. Disjoint closed convex sets need not be strictly separated. The hyperbola region and its asymptote above are the example to remember: both closed, both convex, disjoint, and every hyperplane that separates them contains one of them. “Disjoint” gives only the weak separation of Theorem 18.3.7 (b). Strict separation needs more, such as compactness of one set in (a).

18.3.7. Extending linear functionals

Separation has an analytic twin. Instead of a set and a point, take a linear functional defined on a subspace and bounded there by a convex function; can it be extended to the whole space without breaking the bound? The bounds allowed are the following.

Definition 18.3.3 (Sublinear Functional)

Let V be a real vector space. A function p:V→R is sublinear if, for all x,y∈V and all real t≥0, p(x+y)≤p(x)+p(y)andp(tx)=tp(x).

Every norm is sublinear: (N3) is the first condition, and (N2) with t≥0 the second. Every linear functional is sublinear, with equality in the first condition. So is p(x)=max(x1,x2) on R2, which is neither a norm nor linear: p(−e1)=0. Taking t=0 gives p(0)=0. A non-example by minimal change is p(x)=‖x‖2: the first condition fails at x=y≠0 (it would give 4‖x‖2≤2‖x‖2), and so does the second, since p(tx)=t2p(x).

It turns out that sublinearity is exactly what makes one-step extensions possible.

Theorem 18.3.8 (Hahn–Banach Theorem, Finite-Dimensional)

Let V be a finite-dimensional real vector space, let p be a sublinear functional on V, let U be a subspace of V, and let f∈U∗ satisfy f(u)≤p(u) for every u∈U. Then there is F∈V∗ with F(u)=f(u) for every u∈UandF(v)≤p(v) for every v∈V.

Idea. Add one dimension at a time. On U+span(v), a linear extension is fixed by one number c=F(v). The requirement F≤p at the vectors u+tv with t>0 gives upper bounds on c, and at those with t<0 it gives lower bounds. Sublinearity of p, together with linearity of f, is exactly what makes every lower bound at most every upper bound, so some c fits. Then induct on dim⁡V−dim⁡U. No inner product is needed.

Proof. We induct on k=dim⁡V−dim⁡U. If k=0, then U=V and F=f works.

Let k≥1 and assume the theorem whenever the difference of dimensions is k−1. Pick v∈V∖U and let W=U+span(v). Each w∈W can be written as u+tv with u∈U and t∈R, and only in one way: if u+tv=u′+t′v with t≠t′, then v=(u′−u)/(t−t′)∈U, which is false; so t=t′ and u=u′. Appending v to a basis of U gives a basis of W by Lemma 1.5.3, so dim⁡V−dim⁡W=k−1. For c∈R, the formula g(u+tv)=f(u)+tc therefore defines a linear functional on W that extends f.

For u,u′∈U, linearity of f, the hypothesis, and sublinearity of p give f(u)+f(u′)=f(u+u′)≤p(u+u′)≤p(u−v)+p(u′+v), that is, f(u)−p(u−v)≤p(u′+v)−f(u′). So every number in L={f(u)−p(u−v):u∈U} is at most every number in R={p(u′+v)−f(u′):u′∈U}. By fact (A1) of Chapter 16’s introduction, the non-empty set L, bounded above by any element of R, has a least upper bound c, and c≤r for every r∈R. With this c, we check g(u+tv)≤p(u+tv) in three cases.

  • t=0: this is the hypothesis f(u)≤p(u).
  • t>0: c≤p(u/t+v)−f(u/t), the element of R at u′=u/t. Multiply by t and use p(t⋅)=tp(⋅): tc≤p(u+tv)−f(u).
  • t=−s<0: c≥f(u/s)−p(u/s−v), since this is an element of L. Multiply by s: sc≥f(u)−p(u−sv), that is, f(u)−sc≤p(u+tv).

So g≤p on W. By the induction hypothesis applied to W and g, there is F∈V∗ extending g, hence f, with F≤p on V. This proves the theorem.

Beyond finite dimension. The induction above stops after dim⁡V−dim⁡U steps. In an infinite-dimensional space there is no last step, and the one-step extension has to be combined with Zorn’s lemma (Theorem 1.8.1), exactly as Chapter 1 §08 combined “append one vector” with Zorn’s lemma to prove Theorem 1.8.3. The resulting theorem, the Hahn–Banach theorem of functional analysis, is outside the scope of this book, and nothing here depends on it.

The special case that matters most is a norm.

Corollary 18.3.9 (Norm-Preserving Extension)

Let V be a finite-dimensional real vector space with a norm ‖⋅‖, let U be a subspace, and let f∈U∗ satisfy |f(u)|≤‖u‖ for every u∈U. Then there is F∈V∗ extending f with |F(v)|≤‖v‖ for every v∈V.

Proof. A norm is sublinear, so Theorem 18.3.8 with p=‖⋅‖ gives F extending f with F(v)≤‖v‖ for all v. Applying this to −v gives −F(v)=F(−v)≤‖−v‖=‖v‖ by (N2). Hence |F(v)|≤‖v‖.

In particular, for any x≠0, taking U=span(x) and f(tx)=t‖x‖ produces a functional F with F(x)=‖x‖ and |F|≤‖⋅‖ everywhere: a linear functional that “sees” the full length of x without ever exceeding the norm. §04 meets this functional again, as the vector at which a dual norm is attained.

Example (Many extensions)

On R2 with ‖⋅‖∞, let U=span((1,1)) and f(s(1,1))=s. Find every F as in Corollary 18.3.9, and compare with the interval produced by the proof of Theorem 18.3.8 for v=e1.

Solution. First, |f(s(1,1))|=|s|=‖s(1,1)‖∞, so the hypothesis holds. An extension has F(e1)=c for some c, and then F(e2)=F((1,1))−c=1−c, so F(x)=cx1+(1−c)x2.

If 0≤c≤1, then |F(x)|≤c|x1|+(1−c)|x2|≤‖x‖∞. If c>1, then x=(1,−1) gives F(x)=2c−1>1=‖x‖∞. If c<0, then x=(−1,1) gives F(x)=1−2c>1. So the extensions are exactly F(x)=cx1+(1−c)x2 with c∈[0,1]: infinitely many.

In the proof, with p=‖⋅‖∞, u=s(1,1) and v=e1, the elements of L are s−max(|s−1|,|s|), which is 0 for s≥12 and 2s−1<0 for s<12; so supL=0. The elements of R are max(|s+1|,|s|)−s, which is 1 for s≥−12 and −2s>1 for s<−12; so infR=1. Every c between supL and infR works, and that is the interval [0,1] found directly. The proof picked its left end.

The corners of the square B∞ are why the extension is not unique: U meets the unit sphere at the corner (1,1), and every supporting line of the square at that corner gives an extension.

18.3.8. Exercises

A. Check your understanding

Exercise (A1)
  • (a) State the characterization Eq. 18.3.1 of the nearest point, and say what it becomes when C is a subspace.
  • (b) Which two facts of Chapter 16’s introduction does the existence of PC(x) use, and to which set are they applied?
  • (c) Determine whether the following statement is correct, and justify your answer: every non-empty closed subset of R2 has a unique point nearest to 0.
  • (d) Determine whether the following statement is correct, and justify your answer: two disjoint non-empty closed convex subsets of R2 can always be strictly separated.

Solution.

  • (a) A point p∈C is PC(x) exactly when ⟨x−p,y−p⟩≤0 for every y∈C (Theorem 18.3.1 (b)). For a subspace U it becomes the equality ⟨x−p,u⟩=0 for every u∈U, so PC(x)=PUx and Theorem 11.3.5 is recovered.

  • (b) The compactness of closed bounded sets (A3), through Corollary 16.2.5, and the extreme value theorem (A4). They are applied to K={y∈C:‖x−y‖≤R}, the part of C within the distance R of x attained at one chosen point of C, and to the function y↦‖x−y‖.

  • (c) Incorrect. The unit circle is closed and non-empty, and every one of its points is at distance 1 from 0. Uniqueness needs convexity.

  • (d) Incorrect. The region A above the hyperbola x1x2=1 in the positive quadrant and its asymptote B, the x1-axis, are disjoint, closed and convex, but the only hyperplane separating them is B itself (Example (A hyperbola and its asymptote)).

B. Practice

Exercise (B1: Projection onto a half-plane)

In R2 with the dot product, let C={y:y1+y2≤1} and x=(2,3). Find PC(x) and d(x,C), and verify Eq. 18.3.1.

Solution. Here a=(1,1), c=1, and ⟨a,x⟩=5>1. By Example (Three projections) (c), λ=(5−1)/2=2 and PC(x)=(2,3)−2(1,1)=(0,1). Check: 0+1=1, so p=(0,1)∈C, and x−p=(2,2), so ⟨x−p,y−p⟩=2y1+2(y2−1)=2(y1+y2−1)≤0 for y∈C. By Theorem 18.3.1 (b) this is the nearest point, and d(x,C)=‖(2,2)‖=22.

Exercise (B2: Cutting off a point from a diamond)

Let C=B1={y∈R2:|y1|+|y2|≤1}, with the dot product, and x=(2,2).

  • (a) Show that PC(x)=(12,12).
  • (b) Hence find the strictly separating hyperplane of Theorem 18.3.2, and check it directly.
  • (c) Find every supporting hyperplane of C at (12,12).

Solution.

  • (a) Let p=(12,12), which lies in C. Then x−p=(32,32) and, for y∈C, ⟨x−p,y−p⟩=32(y1+y2−1)≤0, because y1+y2≤|y1|+|y2|≤1. By Theorem 18.3.1 (b), PC(x)=p.

  • (b) With a=(32,32), we have ‖a‖2=92 and ⟨a,x⟩=6, so c=6−94=154. The hyperplane 32(y1+y2)=154 is the line y1+y2=52. Directly: on C, y1+y2≤1<52, while x1+x2=4>52.

  • (c) Let a≠0 satisfy ⟨a,y⟩≤⟨a,p⟩=12(a1+a2) for all y∈C. Taking y=e1 and y=e2 gives a1≤12(a1+a2) and a2≤12(a1+a2), that is, a1≤a2 and a2≤a1; so a1=a2. Taking y=−e1 gives −a1≤a1, so a1≥0, and a1≠0 since a≠0. Conversely a=(a,a) with a>0 works, by the inequality in (a). So the only supporting hyperplane at p is the line y1+y2=1 through the edge containing p.

Exercise (B3: A unique extension)

On R2 with ‖⋅‖1, let U=span((1,2)) and f(t(1,2))=3t. Show that f satisfies the hypothesis of Corollary 18.3.9, and find every extension F that the corollary allows.

Solution. |f(t(1,2))|=3|t|=|t|+2|t|=‖t(1,2)‖1, so the hypothesis holds. Every F∈(R2)∗ is F(x)=c1x1+c2x2 (Theorem 5.1.1), and it extends f exactly when F((1,2))=3, that is, c1+2c2=3.

Next, |F(x)|≤‖x‖1 for all x holds exactly when |c1|≤1 and |c2|≤1. Indeed, if both hold then |c1x1+c2x2|≤|x1|+|x2|; and if, say, |c1|>1, then x=e1 gives |F(e1)|>1=‖e1‖1.

So we need c1=3−2c2 with |3−2c2|≤1 and |c2|≤1. The first gives 1≤c2≤2, the second c2≤1; hence c2=1 and c1=1. The only extension is F(x)=x1+x2.

C. Going deeper

Exercise (C1: The projection does not stretch)

Let C⊆V be non-empty, closed and convex. Prove that ‖PC(x)−PC(y)‖≤‖x−y‖ for all x,y∈V.

Hint: write Eq. 18.3.1 once at x, tested with the point PC(y), and once at y, tested with PC(x), and add.

Solution. Put p=PC(x) and q=PC(y). By Theorem 18.3.1 (b), applied at x with the point q∈C and at y with the point p∈C, ⟨x−p,q−p⟩≤0,⟨y−q,p−q⟩≤0. The second is ⟨q−y,q−p⟩≤0. Adding, ⟨(x−y)+(q−p),q−p⟩≤0, that is, ‖q−p‖2≤⟨y−x,q−p⟩≤‖y−x‖‖q−p‖ by Theorem 11.1.5. If q=p there is nothing to prove; otherwise divide by ‖q−p‖>0. This proves ‖p−q‖≤‖x−y‖.

Exercise (C2: Strict separation and distance)

Let C1,C2⊆V be non-empty, closed and convex, and put δ=inf{‖y−x‖:x∈C1,y∈C2}.

  • (a) Prove that if C1 and C2 are strictly separated, then δ>0.
  • (b) Prove that if δ>0, then C1 and C2 are strictly separated.
  • (c) Hence deduce, without the computation of Example (A hyperbola and its asymptote), that the sets A and B there are not strictly separated.

Hint for (b): replace the difference set D of Theorem 18.3.7 by its closure.

Solution.

  • (a) Let a≠0, c and ε>0 strictly separate the sets, with C1 on the side ≤c−ε. For x∈C1 and y∈C2, Theorem 11.1.5 gives 2ε≤⟨a,y⟩−⟨a,x⟩=⟨a,y−x⟩≤‖a‖‖y−x‖, so ‖y−x‖≥2ε/‖a‖. Hence δ≥2ε/‖a‖>0.

  • (b) Let D={y−x:x∈C1,y∈C2}, which is convex by the computation in the proof of Theorem 18.3.7. Every d∈D has ‖d‖≥δ, and so does every point of D―: if dk→d with dk∈D, then ‖d‖≥‖dk‖−‖dk−d‖≥δ−‖dk−d‖ for every k, and the right side tends to δ. So 0∉D―, and D― is non-empty, closed and convex by Lemma 18.3.5 (a). By Theorem 18.3.2 there is b≠0 with ⟨b,d⟩≤−‖b‖2 on D―⊇D. With a=−b, this is ⟨a,x⟩+‖a‖2≤⟨a,y⟩ for all x∈C1, y∈C2, and the last paragraph of the proof of Theorem 18.3.7 (a) turns it into strict separation with ε=12‖a‖2.

  • (c) The points (t,1/t)∈A and (t,0)∈B are at distance 1/t, so δ≤1/t for every t>0, and δ=0. By (a), A and B are not strictly separated.

Found a typo or a mistake? Report it, or read this page’s source

The text of this book is licensed under CC BY-NC-SA 4.0.