Documentation

Books.ConvexAnalysis_Rockafellar_1970.Chapters.Chap02.section10_part1

Definition 10.0.1. Let f : ℝ^n → ℝ be a function and let S ⊆ ℝ^n. The function f is continuous relative to S if the restriction of f to S (denoted f|_S) is continuous on S.

Equations
Instances For

    If a sequence in a subset S converges in the ambient space, then it also converges in the topology nhdsWithin _ S.

    theorem Function.continuousRelativeTo_imp_seq_tendsto {n : } {f : EuclideanSpace (Fin n)} {S : Set (EuclideanSpace (Fin n))} :
    ContinuousRelativeTo f SxS, ∀ (y : EuclideanSpace (Fin n)), (∀ (k : ), y k S)Filter.Tendsto y Filter.atTop (nhds x)Filter.Tendsto (fun (k : ) => f (y k)) Filter.atTop (nhds (f x))

    From ContinuousRelativeTo f S (i.e. ContinuousOn f S), every sequence in S converging to x ∈ S has f (y k) → f x.

    theorem Function.seq_in_subtype_to_seq_in_ambient {n : } {S : Set (EuclideanSpace (Fin n))} {u : S} {x : S} (hu : Filter.Tendsto u Filter.atTop (nhds x)) :
    Filter.Tendsto (fun (k : ) => (u k)) Filter.atTop (nhds x)

    A sequence in a subtype S converging to x yields an ambient sequence converging to x.

    theorem Function.seq_tendsto_imp_continuousRelativeTo_via_restrict {n : } {f : EuclideanSpace (Fin n)} {S : Set (EuclideanSpace (Fin n))} (hseq : xS, ∀ (y : EuclideanSpace (Fin n)), (∀ (k : ), y k S)Filter.Tendsto y Filter.atTop (nhds x)Filter.Tendsto (fun (k : ) => f (y k)) Filter.atTop (nhds (f x))) :

    If every ambient sequence in S converging to x ∈ S satisfies f (y k) → f x, then f is continuous relative to S.

    theorem Function.continuousRelativeTo_iff_seq_tendsto {n : } (f : EuclideanSpace (Fin n)) (S : Set (EuclideanSpace (Fin n))) :
    ContinuousRelativeTo f S xS, ∀ (y : EuclideanSpace (Fin n)), (∀ (k : ), y k S)Filter.Tendsto y Filter.atTop (nhds x)Filter.Tendsto (fun (k : ) => f (y k)) Filter.atTop (nhds (f x))

    Theorem 10.0.2. Let f : ℝ^n → ℝ and S ⊆ ℝ^n. Then f is continuous relative to S if and only if for every x ∈ S and every sequence (y_k) ⊆ S with y_k → x, one has f(y_k) → f(x).

    theorem convexFunctionOn_continuousOn_of_relOpen_effectiveDomain {n : } {f : (Fin n)EReal} (hf : ConvexFunctionOn Set.univ f) {C : Set (Fin n)} (hCconv : Convex C) (hCsub : C effectiveDomain Set.univ f) (hCrelOpen : euclideanRelativelyOpen n ((fun (x : EuclideanSpace (Fin n)) => x.ofLp) ⁻¹' C)) :

    Theorem 10.1. A convex function f on ℝ^n is continuous relative to any relatively open convex set C in its effective domain, in particular relative to ri (dom f).

    Theorem 10.1 (in particular). A convex function f on ℝ^n is continuous relative to ri (dom f), where dom f is the effective domain.

    theorem effectiveDomain_univ_coe_real {n : } (f : (Fin n)) :
    (effectiveDomain Set.univ fun (x : Fin n) => (f x)) = Set.univ

    For a real-valued function, coercion to EReal is finite everywhere, hence its effective domain over univ is univ.

    The whole Euclidean space is relatively open in itself (ri univ = univ).

    theorem continuous_coe_ereal_iff_continuous {α : Type u_1} [TopologicalSpace α] {f : α} :
    (Continuous fun (a : α) => (f a)) Continuous f

    A real-valued map is continuous iff its coercion to EReal is continuous.

    theorem convexFunctionOn_continuous_of_real {n : } {f : (Fin n)} (hf : ConvexFunctionOn Set.univ fun (x : Fin n) => (f x)) :

    Corollary 10.1.1. A convex function finite on all of ℝ^n is necessarily continuous.

    theorem le_csSup_range_apply {n : } {T : Type u_1} [Nonempty T] (f : (Fin n)T) (hbdd : ∀ (x : Fin n), BddAbove (Set.range fun (t : T) => f x t)) (x : Fin n) (t : T) :
    f x t sSup (Set.range fun (t : T) => f x t)

    Any element of a bounded-above range is bounded above by its sSup.

    theorem convexOn_sSup_range_of_convexOn {n : } {T : Type u_1} [Nonempty T] (f : (Fin n)T) (hconv : ∀ (t : T), ConvexOn Set.univ fun (x : Fin n) => f x t) (hbdd : ∀ (x : Fin n), BddAbove (Set.range fun (t : T) => f x t)) :
    ConvexOn Set.univ fun (x : Fin n) => sSup (Set.range fun (t : T) => f x t)

    The pointwise supremum of a family of convex functions is convex.

    theorem continuous_of_convexOn_univ {n : } {h : (Fin n)} (hh : ConvexOn Set.univ h) :

    A convex real-valued function on all of ℝ^n is continuous.

    theorem convexOn_continuous_sSup_range {n : } {T : Type u_1} [Nonempty T] (f : (Fin n)T) (hconv : ∀ (t : T), ConvexOn Set.univ fun (x : Fin n) => f x t) (hbdd : ∀ (x : Fin n), BddAbove (Set.range fun (t : T) => f x t)) :
    have h := fun (x : Fin n) => sSup (Set.range fun (t : T) => f x t); ConvexOn Set.univ h Continuous h

    Theorem 10.1.2. Let T be an arbitrary index set and let f : ℝ^n × T → ℝ be a function such that:

    • for each t ∈ T, the function x ↦ f(x,t) is convex on ℝ^n;
    • for each x ∈ ℝ^n, the function t ↦ f(x,t) is bounded above on T.

    Define h(x) := sup { f(x,t) | t ∈ T }. Then h is a finite convex function on ℝ^n, and h(x) depends continuously on x.

    theorem sInf_image_add_nonempty {n : } {f : (Fin n)} {C : Set (Fin n)} (hCne : C.Nonempty) (x : Fin n) :
    (f '' ((fun (y : Fin n) => y + x) '' C)).Nonempty

    The inf-set in Theorem 10.1.3 is nonempty.

    theorem exists_mem_C_lt_sInf_add {n : } {f : (Fin n)} {C : Set (Fin n)} (hCne : C.Nonempty) (x : Fin n) {ε : } ( : 0 < ε) :
    yC, f (y + x) < sInf (f '' ((fun (y : Fin n) => y + x) '' C)) + ε

    For ε > 0, there is a point in C whose translate is ε-close above the infimum.

    theorem convexOn_sInf_image_add_of_bddBelow {n : } {f : (Fin n)} (hf : ConvexOn Set.univ f) {C : Set (Fin n)} (hCne : C.Nonempty) (hCconv : Convex C) (hbdd : ∀ (x : Fin n), BddBelow (f '' ((fun (y : Fin n) => y + x) '' C))) :
    ConvexOn Set.univ fun (x : Fin n) => sInf (f '' ((fun (y : Fin n) => y + x) '' C))

    If all the inf-sets are bounded below, the pointwise infimum of translates of a convex function is convex.

    theorem convexOn_continuous_sInf_image_add {n : } {f : (Fin n)} (hf : ConvexOn Set.univ f) {C : Set (Fin n)} (hCne : C.Nonempty) (hCconv : Convex C) (hbdd : ∀ (x : Fin n), BddBelow (f '' ((fun (y : Fin n) => y + x) '' C))) :
    have h := fun (x : Fin n) => sInf (f '' ((fun (y : Fin n) => y + x) '' C)); ConvexOn Set.univ h Continuous h

    Theorem 10.1.3. Let f : ℝ^n → ℝ be a convex function finite on all of ℝ^n, and let C ⊆ ℝ^n be a nonempty convex set. For each x ∈ ℝ^n, define h(x) := inf {f(y) | y ∈ C + x}.

    Then h is convex on ℝ^n, and h depends continuously on x.

    noncomputable def quadraticOverLinearEReal (ξ : Fin 2) :

    Theorem 10.1.4. Define f : ℝ^2 → (-∞, +∞] by

    • f(ξ₁, ξ₂) = ξ₂^2 / (2 ξ₁) if ξ₁ > 0,
    • f(0, 0) = 0,
    • f(ξ₁, ξ₂) = +∞ otherwise.

    Then f is convex with effective domain {(ξ₁, ξ₂) | ξ₁ > 0} ∪ {(0,0)}. Moreover, f is the support function of the convex set C = {(η₁, η₂) | η₁ + η₂^2 / 2 ≤ 0} (i.e. the supremum of ⟪ξ, η⟫ over η ∈ C).

    The function is continuous at every point of its effective domain except at (0,0), where it is only lower semicontinuous. In particular, for any α > 0, lim_{t → 0} f(t^2/(2α), t) = α, while lim_{t ↓ 0} f(t • x) = 0 for every x with x₁ > 0.

    Equations
    Instances For

      The convex set C = {(η₁, η₂) | η₁ + η₂^2/2 ≤ 0} appearing in Theorem 10.1.4.

      Equations
      Instances For
        theorem dotProduct_fin2 (ξ η : Fin 2) :
        ξ ⬝ᵥ η = ξ 0 * η 0 + ξ 1 * η 1

        Expand dotProduct on Fin 2 as a two-term sum.

        The set of dot products ⟪ξ,η⟫ with η ∈ quadraticOverLinearSupportSet, seen in EReal.

        Equations
        Instances For

          The quadratic-over-linear function is nonnegative everywhere (as an EReal-valued map).

          theorem concave_quadratic_bound {a b t : } (ha : 0 < a) :
          -(a / 2) * t ^ 2 + b * t b ^ 2 / (2 * a)

          A completing-the-square bound for a concave quadratic.

          theorem quadraticOverLinear_supportSet_dotProduct_le_quadraticBound {ξ η : Fin 2} ( : 0 < ξ 0) ( : η quadraticOverLinearSupportSet) :
          ξ ⬝ᵥ η ξ 1 ^ 2 / (2 * ξ 0)

          Upper bound on ⟪ξ,η⟫ when η ∈ quadraticOverLinearSupportSet and ξ₁ > 0.

          theorem exists_supportSet_attains_quadraticBound {ξ : Fin 2} ( : 0 < ξ 0) :
          ηquadraticOverLinearSupportSet, ξ ⬝ᵥ η = ξ 1 ^ 2 / (2 * ξ 0)

          For ξ₁ > 0, there is η ∈ quadraticOverLinearSupportSet attaining the quadratic bound.

          theorem fin2_eq_zero_iff (ξ : Fin 2) :
          ξ = 0 ξ 0 = 0 ξ 1 = 0

          ξ = 0 in Fin 2 → ℝ iff both coordinates are zero.

          theorem exists_lt_coe_of_lt_top {b : EReal} (hb : b < ) :
          ∃ (r : ), b < r

          If b < ⊤ in EReal, it is below some real coercion.

          theorem sSup_quadraticOverLinearSupportValues_of_pos {ξ : Fin 2} ( : 0 < ξ 0) :
          sSup (quadraticOverLinearSupportValues ξ) = ↑(ξ 1 ^ 2 / (2 * ξ 0))

          If ξ₁ > 0, the support supremum equals the quadratic bound.

          For ξ = 0, the support supremum equals 0.

          If ξ₁ < 0, the support supremum is (unbounded above).

          If ξ₁ = 0 and ξ₂ ≠ 0, the support supremum is (unbounded above).

          theorem sSup_quadraticOverLinearSupportValues (ξ : Fin 2) :
          sSup (quadraticOverLinearSupportValues ξ) = if ξ 0 > 0 then ↑(ξ 1 ^ 2 / (2 * ξ 0)) else if ξ 0 = 0 ξ 1 = 0 then 0 else

          Compute the support supremum in closed form.

          Support function representation for quadraticOverLinearEReal (as a pointwise equality).

          theorem convexFunctionOn_ereal_dotProduct_fixed (η : Fin 2) :
          ConvexFunctionOn Set.univ fun (ξ : Fin 2) => ↑(ξ ⬝ᵥ η)

          For fixed η, the map ξ ↦ ⟪ξ,η⟫ (coerced to EReal) is convex on ℝ^2.

          theorem convexFunctionOn_supportFunctionEReal (C : Set (Fin 2)) :
          ConvexFunctionOn Set.univ fun (ξ : Fin 2) => sSup {z : EReal | ηC, z = ↑(ξ ⬝ᵥ η)}

          The EReal support function ξ ↦ sSup {⟪ξ,η⟫ | η ∈ C} is convex.

          Theorem 10.1.4 (convexity): the quadratic-over-linear extended-valued function is convex.

          Theorem 10.1.4 (effective domain): dom f = {ξ | ξ₁ > 0} ∪ {(0,0)}.

          Theorem 10.1.4 (convex set): C = {(η₁, η₂) | η₁ + η₂^2/2 ≤ 0} is convex.

          Theorem 10.1.4 (support function): f is the support function of C.

          Theorem 10.1.4 (continuity away from (0,0)): f is continuous at every nonzero point of its effective domain.