Shapley–Folkman lemma
OpenShapleyFolkman.shapley_folkman_lemmaShapley–Folkman lemma. Let and be integers and let be arbitrary (not necessarily convex, closed or bounded) subsets of the Euclidean space . Their Minkowski sum is
and denotes the convex hull of a set . If
then there are points such that
In words: every point of the convex hull of a Minkowski sum can be written as a sum of points taken from the convex hulls of the summands, where all but at most of these points already lie in the original sets .
Because , the lemma says that a Minkowski sum of many sets is close to convex: the defect is confined to at most summands, however large is. It is the key step in Starr's construction of approximate (quasi-)equilibria for markets with non-convex preferences, and it underlies the small duality gap of separable non-convex optimization problems with many terms.
Formalization Note is EuclideanSpace ℝ (Fin N) and the family is indexed by Fin m. The Minkowski sum is the pointwise sum of sets ∑ i, S i (scope Pointwise), and the number of exceptional indices is Set.ncard {i | y i ∉ S i}. No nonemptiness hypothesis is stated: if some is empty, the Minkowski sum is empty and the hypothesis on cannot hold. The degenerate cases and are included.
import Mathlib open scoped Pointwise
namespace ShapleyFolkman
theorem shapley_folkman_lemma (N m : ℕ) (S : Fin m → Set (EuclideanSpace ℝ (Fin N)))
(x : EuclideanSpace ℝ (Fin N)) (hx : x ∈ convexHull ℝ (∑ i, S i)) :
∃ y : Fin m → EuclideanSpace ℝ (Fin N),
(∀ i, y i ∈ convexHull ℝ (S i)) ∧ ∑ i, y i = x ∧
{i | y i ∉ S i}.ncard ≤ N := by
sorry
end ShapleyFolkman