If there exists two disjoint convex sets C,D then there exists a hyperplane a⊤x=b that seperates the two sets.
Define the two points c∈C and d∈D that are closest to each other, and let it be the distance between the two sets:
The inf function denotes the infimum ⇒ the largest lower bound of ∣∣c−d∣∣2
Then there exists a seperating function:
And we will see that
We will prove those constraint by contradiction:
Assue ∃u∈D such that f(u)<0
So implies that for f(u)<0, <d−c,u−d> has to be lower than 0
Because this inner product is negative, so if I move along the vector u−d for some distance t, then I may get closer to c
Let
If t∈(0,1) then p∈D (Since D is convex)
Consider
We want to show that p is closer than d to c
So let’s write the next two terms
But we can always choose a value of t such that the first term is always smaller in magnitude
So we have proved a contradiction (because now the distance between c and d is no longer the minimal)