Documentation

ConvexAnalysis.Box

Boxes in ι → ℝ #

A box is a closed interval Icc a b in ι → ℝ for the coordinatewise order, the product of the intervals Icc (a i) (b i). With the sup norm of ι → ℝ, its diameter is its width ‖b - a‖, the largest side length. This file collects the facts about boxes that interval methods (ConvexAnalysis.IntervalNewton) and branch and bound (ConvexAnalysis.BranchAndBound) share; it needs only Mathlib.

Main statements #

Implementation notes #

Mathlib's NonemptyInterval would fix boxes as the only shape of sets; the lemmas here are stated for Set.Icc in the product order of ι → ℝ, in which sInf and sSup are coordinatewise.

Tags #

box, interval vector, interval hull, diameter, sup norm

theorem ConvexAnalysis.interior_Icc_pi {ι : Type u_1} [Finite ι] (a b : ι → ℝ) :
interior (Set.Icc a b) = Set.univ.pi fun (i : ι) => Set.Ioo (a i) (b i)

The interior of a box Icc a b in ι → ℝ is the open box: a i < x i < b i for all i.

theorem ConvexAnalysis.diam_Icc_eq_norm_sub {ι : Type u_1} [Fintype ι] {a b : ι → ℝ} (hab : a ≤ b) :

The diameter of a box Icc a b in ι → ℝ (with the sup norm) is its width ‖b - a‖, the largest side length.

theorem ConvexAnalysis.closedBall_eq_Icc_pi {ι : Type u_1} [Fintype ι] (x₀ : ι → ℝ) {r : ℝ} (hr : 0 ≤ r) :
Metric.closedBall x₀ r = Set.Icc (x₀ - fun (x : ι) => r) (x₀ + fun (x : ι) => r)

A closed ball of ι → ℝ with the sup norm is the box Icc (x₀ - r) (x₀ + r).

theorem ConvexAnalysis.Icc_sInf_sSup_subset {ι : Type u_1} {s : Set (ι → ℝ)} (hne : s.Nonempty) {a b : ι → ℝ} (h : s ⊆ Set.Icc a b) :
Set.Icc (sInf s) (sSup s) ⊆ Set.Icc a b

The interval hull Icc (sInf s) (sSup s) of a nonempty set s in ι → ℝ is the smallest box containing s; sInf and sSup in ι → ℝ are taken coordinatewise, so the sides of the hull are the ranges of the coordinates on s. A bounded set lies in its hull by Mathlib's Bornology.IsBounded.subset_Icc_sInf_sSup.

theorem ConvexAnalysis.diam_Icc_sInf_sSup {ι : Type u_1} [Fintype ι] {s : Set (ι → ℝ)} (hs : Bornology.IsBounded s) :

The interval hull of a bounded set has the same diameter as the set, for the sup norm of ι → ℝ: each side sSup s i - sInf s i is the supremum of x i - y i ≤ ‖x - y‖ over x, y ∈ s.