Separating hyperplane theorem
ProvedConvexOptimization.separating_hyperplane_disjoint_convexThe separating hyperplane theorem.
Let and be nonempty convex subsets of that are disjoint, . Then there is a hyperplane separating them: there exist a nonzero vector and a scalar with
The separation is not asserted to be strict — with only convexity and disjointness in hand, the two sets may touch in the limit (as do and ), and strictness requires an additional hypothesis such as compactness of one set and closedness of the other.
This is the geometric foundation of the whole duality theory: strong duality, supporting hyperplanes, theorems of the alternative, and the existence of subgradients are all obtained by separating a suitable pair of convex sets. It is the single most reused statement of Chapter 2.
Formalization Note Vectors live in EuclideanSpace ℝ (Fin n); the conclusion is an existential over a ≠ 0 and b, with the two families of inequalities stated pointwise. Source: B&V §2.5.1, pp. 46–48.
import Mathlib open scoped RealInnerProductSpace ENNReal open MeasureTheory
theorem ConvexOptimization.separating_hyperplane_disjoint_convex {n : ℕ}
(C D : Set (EuclideanSpace ℝ (Fin n)))
(hC : Convex ℝ C) (hD : Convex ℝ D)
(hCne : C.Nonempty) (hDne : D.Nonempty) (hdisj : Disjoint C D) :
∃ a : EuclideanSpace ℝ (Fin n), a ≠ 0 ∧ ∃ b : ℝ,
(∀ x ∈ C, ⟪a, x⟫ ≤ b) ∧ (∀ x ∈ D, b ≤ ⟪a, x⟫) := by
sorry
Read-back
What the Lean code literally says, in plain math · claude-fable-5
Theorem statement. For every natural number and every pair of subsets of Euclidean -space that are convex (over ), nonempty, and disjoint (), there exist a vector with and a real number such that for every and for every . Both separation inequalities are non-strict (weak separation: both sets may touch the hyperplane , and nothing rules out both lying inside it). No closedness, boundedness, openness, or compactness is assumed of either set. Degenerate case: when the ambient space is a single point, so two nonempty disjoint subsets cannot exist and the statement is vacuously true there; for the content is the general weak separation of arbitrary disjoint nonempty convex sets in finite dimension.
Confirmed by the mission captain (proposal self-audit).