Documentation

Books.ConvexAnalysis_Rockafellar_1970.Chapters.Chap04.section17_part8

theorem positivelyHomogeneousConvexFunctionGenerated_convexHullFunction_eq_sInf_nonnegLinearCombination {n : } {f : (Fin n)EReal} (h_not_bot : ∀ (x : Fin n), f x ) (x : Fin n) :
x 0positivelyHomogeneousConvexFunctionGenerated (convexHullFunction f) x = sInf {z : EReal | ∃ (x' : Fin (n + 1)Fin n) (c : Fin (n + 1)), (∀ (i : Fin (n + 1)), 0 c i) i : Fin (n + 1), c i x' i = x z = i : Fin (n + 1), (c i) * f (x' i)}

Corollary 17.1.6. Let f : ℝⁿ → (-∞, +∞] be any function (modeled here as f : (Fin n → ℝ) → EReal together with the side condition ∀ x, f x ≠ ⊥). Let k be the positively homogeneous convex function generated by f (equivalently, generated by conv f, modeled here as convexHullFunction f).

Then, for each vector x ≠ 0, k x = inf { ∑ i, λ i * f (xᵢ i) | ∑ i, λ i • xᵢ i = x }, where the infimum is taken over all expressions of x as a nonnegative linear combination of at most n+1 vectors (allowing zero coefficients to pad the representation).

theorem linearIndependent_lift1_of_affineIndependent {n d : } {p : Fin (d + 1)Fin n} (hp : AffineIndependent p) :
LinearIndependent fun (i : Fin (d + 1)) (i_1 : Fin (n + 1)) => Fin.cases 1 (p i) i_1

Linear independence of the lifted points (1, p i) from affine independence of p.

Convex hull of affinely independent vertices is a generalized simplex.

theorem exists_affineIndependent_vertices_through_point_finrank_direction {n : } {C : Set (Fin n)} {x : Fin n} (hx : x C) :
have d := Module.finrank (affineSpan C).direction; ∃ (p : Fin (d + 1)Fin n), p 0 = x (∀ (i : Fin (d + 1)), p i C) AffineIndependent p

For any x ∈ C, there are d+1 affinely independent points of C with x as the first vertex, where d is the finrank of the direction of affineSpan ℝ C.

Theorem 17.1 (Caratheodory's Theorem), union-of-simplices formulation. With C := mixedConvexHull S₀ S₁ and d := dim C (here d := finrank (affineSpan ℝ C).direction), the set C is the union of all generalized d-dimensional simplices contained in C.

The x-axis union the point (0,1) is closed in Fin 2 → ℝ.

The explicit convex-combination sequence lies in the convex hull.

The explicit sequence converges to (1,1).

The limit point (1,1) is not in the convex hull of the x-axis union (0,1).

Crollary 17.1.7 (Convex hull of a closed set need not be closed), LaTeX label cor:conv-closed-not-closed.

In general, the convex hull of a closed subset of ℝⁿ need not be closed. In particular, if S ⊆ ℝ² is the union of a line and a single point not on that line, then conv(S) is not closed.

The convex hull of the x-axis union (0,1) is not closed.

theorem exists_affineEquiv_image_line_eq_xAxis_and_map_point {L : AffineSubspace (Fin 2)} {p : Fin 2} (hL : Module.finrank L.direction = 1) (hp : pL) :
∃ (e : (Fin 2) ≃ᵃ[] Fin 2), e '' L = cor1717_xAxis✝ e p = cor1717_p✝

An affine equivalence sending an affine line to the x-axis and a point off the line to (0,1).

theorem not_isClosed_conv_line_union_singleton {L : AffineSubspace (Fin 2)} {p : Fin 2} (hL : Module.finrank L.direction = 1) (hp : pL) :
¬IsClosed (conv (L {p}))

Crollary 17.1.7 (Convex hull of a closed set need not be closed), particular case: if S is the union of an affine line in ℝ² and a point not on that line, then conv(S) is not closed.

Convex weights are exactly points in the standard simplex.

def convexCombinationSet {n : } (S : Set (Fin n)) (m : ) :
Set (Fin n)

The set of convex combinations of m points from closure S.

Equations
Instances For

    The m-point convex-combination set is compact when closure S is compact.

    theorem conv_closure_eq_iUnion_convexCombinationSet {n : } (S : Set (Fin n)) :
    conv (closure S) = ⋃ (m : Fin (n + 2)), convexCombinationSet S m

    Carathéodory-style union: conv (closure S) is the union of m-point combination sets.

    The easy inclusion conv (closure S) ⊆ closure (conv S).

    Boundedness yields closedness of conv (closure S).

    The bounded inclusion closure (conv S) ⊆ conv (closure S).

    Theorem 17.2. If S is a bounded set of points in ℝⁿ, then closure (conv S) = conv (closure S). In particular, if S is closed and bounded, then conv S is closed and bounded.

    Theorem 17.2 (in particular). If S is closed and bounded, then conv S is closed and bounded.

    theorem cor1721_isCompact_S {n : } {S : Set (Fin n)} (hS_closed : IsClosed S) (hS_bdd : Bornology.IsBounded S) :

    Compactness of a closed bounded subset of ℝⁿ.

    theorem cor1721_exists_lowerBound_on_S {n : } {S : Set (Fin n)} (hS_compact : IsCompact S) (hS_ne : S.Nonempty) {f : (Fin n)} (hf : ContinuousOn f S) :
    ∃ (m : ), xS, m f x

    A continuous function on a nonempty compact set is bounded below.

    theorem cor1721_properConvexFunctionOn_convexHullFunction_fExt {n : } {S : Set (Fin n)} (hS_ne : S.Nonempty) {f : (Fin n)} {m : } (hm : xS, m f x) :
    have fExt := fun (x : Fin n) => (f x) + indicatorFunction S x; ProperConvexFunctionOn Set.univ (convexHullFunction fExt)

    Properness of convexHullFunction from a global lower bound on f over S.

    theorem cor1721_fExt_ne_bot {n : } {S : Set (Fin n)} {f : (Fin n)} :
    have fExt := fun (x : Fin n) => (f x) + indicatorFunction S x; ∀ (x : Fin n), fExt x

    The extension fExt never takes the value .

    theorem cor1721_isCompact_graph {n : } {S : Set (Fin n)} (hS : IsCompact S) {f : (Fin n)} (hf : ContinuousOn f S) :
    IsCompact ((fun (x : Fin n) => (x, f x)) '' S)

    The graph of f over a compact set is compact.

    theorem cor1721_isCompact_convexHull_graph {n : } {S : Set (Fin n)} (hS_closed : IsClosed S) (hS_bdd : Bornology.IsBounded S) {f : (Fin n)} (hf : ContinuousOn f S) :
    have F := (fun (x : Fin n) => (x, f x)) '' S; IsCompact ((convexHull ) F)

    The convex hull of the graph is compact in ℝ^{n+1}.

    theorem cor1721_isClosed_K_add_convexHull_graph {n : } {S : Set (Fin n)} (hS_closed : IsClosed S) (hS_bdd : Bornology.IsBounded S) {f : (Fin n)} (hf : ContinuousOn f S) :
    have F := (fun (x : Fin n) => (x, f x)) '' S; have K := {p : (Fin n) × | p.1 = 0 0 p.2}; IsClosed (K + (convexHull ) F)

    The Minkowski sum of the vertical ray and the convex hull of the graph is closed.

    theorem cor1721_epigraph_eq_K_add_convexHull_graph {n : } {S : Set (Fin n)} (hS_closed : IsClosed S) (hS_bdd : Bornology.IsBounded S) {f : (Fin n)} (hf : ContinuousOn f S) :
    have fExt := fun (x : Fin n) => (f x) + indicatorFunction S x; have F := (fun (x : Fin n) => (x, f x)) '' S; have K := {p : (Fin n) × | p.1 = 0 0 p.2}; epigraph Set.univ (convexHullFunction fExt) = K + (convexHull ) F

    The epigraph of the convex hull function is K + convexHull(graph).

    theorem cor1721_isClosed_epigraph_convexHullFunction_fExt {n : } {S : Set (Fin n)} (hS_closed : IsClosed S) (hS_bdd : Bornology.IsBounded S) {f : (Fin n)} (hf : ContinuousOn f S) :
    have fExt := fun (x : Fin n) => (f x) + indicatorFunction S x; IsClosed (epigraph Set.univ (convexHullFunction fExt))

    Closedness of the epigraph of the convex hull function for fExt.

    theorem closedConvex_and_properConvexFunctionOn_convexHullFunction_of_continuousOn_closed_bounded {n : } {S : Set (Fin n)} (hS_ne : S.Nonempty) (hS_closed : IsClosed S) (hS_bdd : Bornology.IsBounded S) {f : (Fin n)} (hf : ContinuousOn f S) :

    Corollary 17.2.1. Let S be a nonempty closed bounded set in ℝⁿ. Let f be a continuous real-valued function on S, and extend it by f(x) = +∞ for x ∉ S. Then conv f (here: convexHullFunction applied to the extension) is a closed proper convex function.

    noncomputable def supremumInnerSub {n : } (S : Set (Fin n)) (f : SEReal) (z : Fin n) :

    Definition 17.2.2 (A convex function defined as a supremum), LaTeX label def:h.

    Let S ⊆ ℝⁿ and let f : S → (ℝ ∪ {+∞}) (modeled here as f : S → EReal). Define h : ℝⁿ → (ℝ ∪ {+∞}) by

    h z = sup { ⟪z, x⟫ - f x | x ∈ S }.

    In Fin n → ℝ, the inner product ⟪z, x⟫ is expressed as ∑ i, z i * x i.

    Equations
    Instances For