Documentation

ConvexAnalysis.BranchAndBound

Convergence of branch and bound #

Branch and bound minimizes f : X → ℝ over a feasible set D by splitting a set that contains D into smaller and smaller pieces. Every piece carries a lower bound for f on its feasible part, and the piece with the least bound is split next (best-first selection). The values of f at the feasible points found so far give the incumbent, an upper bound for the infimum, and a piece may be deleted once none of its feasible points can beat the incumbent. The run stops when the incumbent is within ε of the least bound. This file proves the convergence theory of Horst and Tuy for this scheme (HT, Theorem IV.3 and HT, Section IV.2) and applies it to Lipschitz functions on a box, with the bound (IV.14') of HT, Section IV.4.1 and the bisection of rectangles of HT, Section IV.3.2; Horst and Tuy prove convergence of such methods in HT, Proposition XI.3 with HT, Remark XI.1 (i).

The declarations are in the namespaces ConvexAnalysis.BranchAndBound and ConvexAnalysis.Box (boxes and their bisection).

Main definitions #

Main statements #

For a run h : IsRun D f S β P sel x on a subdivision S of D, with lower bounds β, and the infimum m of f on D (IsGLB (f '' D) m; no minimizer needs to exist):

For f Lipschitz with constant K on a box Icc a b in ι → ℝ:

Implementation notes #

References #

Related work, not formalized here:

Tags #

branch and bound, global optimization, exhaustive subdivision, consistent bounding, Lipschitz optimization, bisection, interval branch and bound, Moore–Skelboe algorithm, Kőnig's lemma

The incumbent value #

noncomputable def ConvexAnalysis.BranchAndBound.incumbent {X : Type u_1} (f : X → ℝ) (x : ℕ → X) (k : ℕ) :

The incumbent value after step k: the least of the values f (x 0), …, f (x k) at the feasible points found so far.

Equations
Instances For
    theorem ConvexAnalysis.BranchAndBound.incumbent_le {X : Type u_1} {f : X → ℝ} {x : ℕ → X} {j k : ℕ} (h : j ≤ k) :
    incumbent f x k ≤ f (x j)

    The incumbent value is at most every value found so far.

    theorem ConvexAnalysis.BranchAndBound.exists_le_and_apply_eq_incumbent {X : Type u_1} (f : X → ℝ) (x : ℕ → X) (k : ℕ) :
    ∃ j ≤ k, f (x j) = incumbent f x k

    The incumbent value is attained at one of the points found so far, the incumbent point.

    theorem ConvexAnalysis.BranchAndBound.antitone_incumbent {X : Type u_1} (f : X → ℝ) (x : ℕ → X) :

    The incumbent values decrease.

    theorem ConvexAnalysis.BranchAndBound.incumbent_zero {X : Type u_1} (f : X → ℝ) (x : ℕ → X) :
    incumbent f x 0 = f (x 0)

    The first incumbent value is the first value.

    theorem ConvexAnalysis.BranchAndBound.incumbent_succ {X : Type u_1} (f : X → ℝ) (x : ℕ → X) (k : ℕ) :
    incumbent f x (k + 1) = min (incumbent f x k) (f (x (k + 1)))

    The incumbent value after step k + 1 is the least of the incumbent value after step k and the new value.

    theorem ConvexAnalysis.BranchAndBound.le_incumbent {X : Type u_1} {f : X → ℝ} {x : ℕ → X} {D : Set X} {m : ℝ} (hm : ∀ y ∈ D, m ≤ f y) (hx : ∀ (k : ℕ), x k ∈ D) (k : ℕ) :
    m ≤ incumbent f x k

    The incumbent value is the value of f at a point of D, so it is at least every lower bound m of f on D.

    Kőnig's lemma for the tree of lists #

    theorem ConvexAnalysis.BranchAndBound.exists_path_of_forall_exists_le_length {ι : Type u_1} [Finite ι] {G : Set (List ι)} (hG : ∀ (t p : List ι), t ++ p ∈ G → p ∈ G) (hd : ∀ (d : ℕ), ∃ p ∈ G, d ≤ p.length) :
    ∃ (path : ℕ → List ι), path 0 = [] ∧ (∀ (n : ℕ), ∃ (i : ι), path (n + 1) = i :: path n) ∧ ∀ (n : ℕ), path n ∈ G

    Kőnig's lemma for the tree of lists: a set G of nodes that is closed under taking ancestors and contains nodes of every depth contains an infinite path from the root.

    Branch and bound runs #

    def ConvexAnalysis.BranchAndBound.candidates {ι : Type u_2} [Fintype ι] [DecidableEq ι] (P : Finset (List ι)) (p : List ι) :

    The candidates for the partition after a branching step: the partition P without the selected node p, and the children of p.

    Equations
    Instances For
      theorem ConvexAnalysis.BranchAndBound.mem_candidates {ι : Type u_2} [Fintype ι] [DecidableEq ι] {P : Finset (List ι)} {p q : List ι} :
      q ∈ candidates P p ↔ q ≠ p ∧ q ∈ P ∨ ∃ (i : ι), q = i :: p

      The candidates are the other nodes of the partition and the children of the selected node.

      def ConvexAnalysis.BranchAndBound.IsLowerBound {X : Type u_1} {ι : Type u_2} (D : Set X) (f : X → ℝ) (S : List ι → Set X) (β : List ι → ℝ) :

      IsLowerBound D f S β: β p is a lower bound of f on the feasible part S p ∩ D of the node p.

      Equations
      Instances For
        theorem ConvexAnalysis.BranchAndBound.IsLowerBound.forall_lt_of_lt {X : Type u_1} {ι : Type u_2} {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} (hβ : IsLowerBound D f S β) {c : ℝ} {q : List ι} (h : c < β q) (y : X) :
        y ∈ S q ∩ D → c < f y

        Deletion by bound: if a value c (for example the incumbent value) is less than the lower bound β q, then it is less than every value of f on the feasible part of q, so the deletion condition of ConvexAnalysis.BranchAndBound.IsRun holds for q.

        structure ConvexAnalysis.BranchAndBound.IsRun {X : Type u_1} {ι : Type u_2} [Fintype ι] [DecidableEq ι] (D : Set X) (f : X → ℝ) (S : List ι → Set X) (β : List ι → ℝ) (P : ℕ → Finset (List ι)) (sel : ℕ → List ι) (x : ℕ → X) :

        IsRun D f S β P sel x: a branch and bound run for minimizing f over D on the subdivision tree S with the bounds β. At step k, the current partition is the finite set of nodes P k, starting with the root, P 0 = {[]}. The run selects a node sel k ∈ P k with the least bound (best-first selection), evaluates f at a feasible point x k ∈ S (sel k) ∩ D, and replaces sel k by its children. The next partition P (k + 1) consists of candidates (ConvexAnalysis.BranchAndBound.candidates), and a candidate q may be deleted only if no feasible point of S q is as good as the incumbent: incumbent f x k < f y for all y ∈ S q ∩ D, for example because incumbent f x k < β q (ConvexAnalysis.BranchAndBound.IsLowerBound.forall_lt_of_lt), or because S q ∩ D = ∅.

        Best-first selection is a special case of the bound improving selection of HT, Definition IV.6, which only asks that a piece with the least bound be selected after finitely many steps, and which may refine several pieces in one step. Every selected set contains a known feasible point (point_mem); the pieces of uncertain feasibility of HT, Definition IV.2 are outside this model.

        • part_zero : P 0 = {[]}

          The run starts with the root.

        • sel_mem (k : ℕ) : sel k ∈ P k

          The selected node belongs to the current partition.

        • le_of_mem (k : ℕ) (q : List ι) : q ∈ P k → β (sel k) ≤ β q

          Best-first selection: the selected node has the least bound.

        • point_mem (k : ℕ) : x k ∈ S (sel k) ∩ D

          The evaluated point is a feasible point of the selected set.

        • part_succ_subset (k : ℕ) : P (k + 1) ⊆ candidates (P k) (sel k)

          The selected node is replaced by its children.

        • lt_of_notMem (k : ℕ) (q : List ι) : q ∈ candidates (P k) (sel k) → q ∉ P (k + 1) → ∀ y ∈ S q ∩ D, incumbent f x k < f y

          A candidate is deleted only if none of its feasible points is as good as the incumbent.

        Instances For
          theorem ConvexAnalysis.BranchAndBound.IsRun.injective_sel {X : Type u_1} {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} (h : IsRun D f S β P sel x) :

          A run never selects the same node twice.

          theorem ConvexAnalysis.BranchAndBound.IsRun.tendsto_length_sel {X : Type u_1} {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} (h : IsRun D f S β P sel x) :

          The depth of the selected nodes tends to infinity.

          theorem ConvexAnalysis.BranchAndBound.IsRun.eq_nil_or_exists_eq_cons_sel {X : Type u_1} {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} (h : IsRun D f S β P sel x) {k : ℕ} {q : List ι} (hq : q ∈ P k) :
          q = [] ∨ ∃ (i : ι), ∃ j < k, q = i :: sel j

          Every node of a partition other than the root is a child of a node selected earlier.

          theorem ConvexAnalysis.BranchAndBound.IsRun.mem_range_sel_of_append_mem {X : Type u_1} {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} (h : IsRun D f S β P sel x) {t p : List ι} (hp : t ++ p ∈ Set.range sel) :

          The ancestors of selected nodes are selected.

          theorem ConvexAnalysis.BranchAndBound.IsRun.exists_nested_sel {X : Type u_1} {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} (h : IsRun D f S β P sel x) :
          ∃ (s : ℕ → ℕ), ∀ (n : ℕ), ∃ (i : ι), sel (s (n + 1)) = i :: sel (s n)

          Kőnig's lemma for a run: the selected nodes contain an infinite nested sequence sel (s 0), sel (s 1), …, each a child of the previous one.

          theorem ConvexAnalysis.BranchAndBound.IsRun.monotone_bound {X : Type u_1} {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} (h : IsRun D f S β P sel x) (hmono : ∀ (p : List ι) (i : ι), β p ≤ β (i :: p)) :
          Monotone fun (k : ℕ) => β (sel k)

          If the bounds do not decrease from a node to its children, then the bounds of the selected nodes increase.

          def ConvexAnalysis.BranchAndBound.IsConsistentRun {X : Type u_1} {ι : Type u_2} (f : X → ℝ) (β : List ι → ℝ) (sel : ℕ → List ι) (x : ℕ → X) :

          IsConsistentRun f β sel x: the bounds are consistent along the run in the sense of Horst and Tuy HT, Definition IV.4: along every nested sequence of selected nodes sel (s 0), sel (s 1), … (each a child of the previous one), the gap incumbent f x (s n) - β (sel (s n)) between the incumbent value and the bound tends to 0. Unlike ConvexAnalysis.BranchAndBound.IsConsistent and ConvexAnalysis.BranchAndBound.IsConsistentOnPaths, it depends on the run, and it does not ask the sets to shrink. Horst and Tuy take the incumbent at the step where the piece enters the partition, here at the later step where it is selected; their requirement that every unfathomed piece can be refined holds automatically in the tree.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            noncomputable def ConvexAnalysis.BranchAndBound.argminBound {ι : Type u_2} (β : List ι → ℝ) (P : Finset (List ι)) :
            List ι

            A node of P with the least bound β, if P is nonempty (and [] otherwise).

            Equations
            Instances For
              theorem ConvexAnalysis.BranchAndBound.argminBound_mem {ι : Type u_2} {β : List ι → ℝ} {P : Finset (List ι)} (h : P.Nonempty) :

              A node with the least bound belongs to P, if P is nonempty.

              theorem ConvexAnalysis.BranchAndBound.argminBound_le {ι : Type u_2} {β : List ι → ℝ} {P : Finset (List ι)} {q : List ι} (hq : q ∈ P) :
              β (argminBound β P) ≤ β q

              A node with the least bound has the least bound.

              noncomputable def ConvexAnalysis.BranchAndBound.bestFirstPartition {ι : Type u_2} [Fintype ι] [DecidableEq ι] (β : List ι → ℝ) :
              ℕ → Finset (List ι)

              The partitions of the best-first branch and bound run without deletion: start with the root, and replace a node with the least bound by its children at every step.

              Equations
              Instances For
                noncomputable def ConvexAnalysis.BranchAndBound.bestFirstNode {ι : Type u_2} [Fintype ι] [DecidableEq ι] (β : List ι → ℝ) (k : ℕ) :
                List ι

                The node selected at step k of the best-first run.

                Equations
                Instances For

                  The partitions of the best-first run without deletion are nonempty.

                  theorem ConvexAnalysis.BranchAndBound.isRun_bestFirst {X : Type u_1} {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} [Nonempty ι] {pt : List ι → X} (hpt : ∀ (p : List ι), pt p ∈ S p ∩ D) :
                  IsRun D f S β (bestFirstPartition β) (bestFirstNode β) fun (k : ℕ) => pt (bestFirstNode β k)

                  The best-first run without deletion is a branch and bound run as soon as every node has a feasible point pt p ∈ S p ∩ D, at which f is evaluated.

                  noncomputable def ConvexAnalysis.BranchAndBound.bestFirstPrunedState {X : Type u_1} {ι : Type u_2} [Fintype ι] [DecidableEq ι] (D : Set X) (f : X → ℝ) (S : List ι → Set X) (β : List ι → ℝ) (pt : List ι → X) :
                  ℕ → Finset (List ι) × ℝ

                  The state of the best-first run with deletion after step k: the partition, and the incumbent value at the points pt (sel j), j ≤ k. At every step, a node with the least bound is selected, and a candidate q is deleted if the incumbent value is less than β q (deletion by bound) or if S q ∩ D = ∅ (deletion by infeasibility).

                  Equations
                  Instances For
                    noncomputable def ConvexAnalysis.BranchAndBound.bestFirstPrunedPartition {X : Type u_1} {ι : Type u_2} [Fintype ι] [DecidableEq ι] (D : Set X) (f : X → ℝ) (S : List ι → Set X) (β : List ι → ℝ) (pt : List ι → X) (k : ℕ) :

                    The partitions of the best-first run that deletes by bound and by infeasibility.

                    Equations
                    Instances For
                      noncomputable def ConvexAnalysis.BranchAndBound.bestFirstPrunedNode {X : Type u_1} {ι : Type u_2} [Fintype ι] [DecidableEq ι] (D : Set X) (f : X → ℝ) (S : List ι → Set X) (β : List ι → ℝ) (pt : List ι → X) (k : ℕ) :
                      List ι

                      The node selected at step k of the best-first run that deletes by bound and by infeasibility.

                      Equations
                      Instances For
                        theorem ConvexAnalysis.BranchAndBound.bestFirstPrunedState_snd {X : Type u_1} {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} (pt : List ι → X) (k : ℕ) :
                        (bestFirstPrunedState D f S β pt k).2 = incumbent f (fun (j : ℕ) => pt (bestFirstPrunedNode D f S β pt j)) k

                        The second component of ConvexAnalysis.BranchAndBound.bestFirstPrunedState is the incumbent value.

                        theorem ConvexAnalysis.BranchAndBound.mem_bestFirstPrunedPartition_succ {X : Type u_1} {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {pt : List ι → X} {k : ℕ} {q : List ι} :
                        q ∈ bestFirstPrunedPartition D f S β pt (k + 1) ↔ q ∈ candidates (bestFirstPrunedPartition D f S β pt k) (bestFirstPrunedNode D f S β pt k) ∧ β q ≤ incumbent f (fun (j : ℕ) => pt (bestFirstPrunedNode D f S β pt j)) k ∧ (S q ∩ D).Nonempty

                        A node of the partition after step k + 1 of the best-first run with deletion is a candidate whose bound is at most the incumbent value and whose set contains a feasible point.

                        Subdivision trees and bounds #

                        structure ConvexAnalysis.BranchAndBound.IsSubdivision {X : Type u_1} {ι : Type u_2} (D : Set X) (S : List ι → Set X) :

                        IsSubdivision D S: the sets S p form a subdivision tree of the feasible set D. The nodes are the lists p : List ι, the root is [], and the children of p are the nodes i :: p (so p lists the branching decisions from the last to the first). The root contains D, every child lies in its parent, and the children cover the feasible part of their parent. No metric is needed.

                        • subset_root : D ⊆ S []

                          The root contains the feasible set.

                        • subset_parent (p : List ι) (i : ι) : S (i :: p) ⊆ S p

                          Every child lies in its parent.

                        • inter_subset_iUnion (p : List ι) : S p ∩ D ⊆ ⋃ (i : ι), S (i :: p)

                          The children cover the feasible part of their parent.

                        Instances For
                          theorem ConvexAnalysis.BranchAndBound.IsSubdivision.subset_append {X : Type u_1} {ι : Type u_2} {D : Set X} {S : List ι → Set X} (hS : IsSubdivision D S) (t p : List ι) :
                          S (t ++ p) ⊆ S p

                          The set of a descendant lies in the set of the node.

                          IsExhaustive S: the subdivision is exhaustive in the sense of Horst and Tuy HT, Definition IV.10: every nested sequence of sets of the tree (each the child of the previous one) shrinks to at most a point, ediam (S (p n)) → 0. Horst and Tuy use the Euclidean diameter of subsets of ℝⁿ; here X is any pseudometric space. The extended diameter Metric.ediam is used because Metric.diam is 0 for unbounded sets; for a tree with a bounded root the condition is diam (S (p n)) → 0 (ConvexAnalysis.BranchAndBound.IsSubdivision.isExhaustive_of_tendsto_diam), and it implies this (ConvexAnalysis.BranchAndBound.IsExhaustive.tendsto_diam).

                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For
                            def ConvexAnalysis.BranchAndBound.IsConsistent {X : Type u_1} [PseudoMetricSpace X] {ι : Type u_2} (D : Set X) (f : X → ℝ) (S : List ι → Set X) (β : List ι → ℝ) :

                            IsConsistent D f S β: the bounds are consistent along every sequence of nodes whose sets shrink: if ediam (S (p n)) → 0, then the gap f (y n) - β (p n) tends to 0 for all feasible points y n ∈ S (p n) ∩ D. It does not depend on a run. The extended diameter Metric.ediam is used for the reason given at ConvexAnalysis.BranchAndBound.IsExhaustive; for a tree with a bounded root this is the condition on Metric.diam (ConvexAnalysis.BranchAndBound.IsSubdivision.isConsistent_iff_of_isBounded).

                            Equations
                            • One or more equations did not get rendered due to their size.
                            Instances For
                              def ConvexAnalysis.BranchAndBound.IsConsistentOnPaths {X : Type u_1} [PseudoMetricSpace X] {ι : Type u_2} (D : Set X) (f : X → ℝ) (S : List ι → Set X) (β : List ι → ℝ) :

                              IsConsistentOnPaths D f S β: the bounds are consistent along nested sequences: along every nested sequence of nodes (each a child of the previous one) whose sets shrink, ediam (S (p n)) → 0, the gap f (y n) - β (p n) tends to 0 for all feasible points y n ∈ S (p n) ∩ D. It is weaker than ConvexAnalysis.BranchAndBound.IsConsistent, and it is a run-independent sufficient condition for the consistency of Horst and Tuy (ConvexAnalysis.BranchAndBound.IsConsistentRun) on an exhaustive subdivision (ConvexAnalysis.BranchAndBound.IsConsistentOnPaths.isConsistentRun). For a tree with a bounded root, Metric.diam may replace Metric.ediam (ConvexAnalysis.BranchAndBound.IsSubdivision.isConsistentOnPaths_iff_of_isBounded).

                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For
                                theorem ConvexAnalysis.BranchAndBound.IsConsistent.isConsistentOnPaths {X : Type u_1} [PseudoMetricSpace X] {ι : Type u_2} {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} (h : IsConsistent D f S β) :

                                Consistent bounds are consistent along nested sequences.

                                theorem ConvexAnalysis.BranchAndBound.IsSubdivision.isBounded {X : Type u_1} [PseudoMetricSpace X] {ι : Type u_2} {D : Set X} {S : List ι → Set X} (hS : IsSubdivision D S) (hb : Bornology.IsBounded (S [])) (p : List ι) :

                                The sets of a subdivision tree with a bounded root are bounded.

                                theorem ConvexAnalysis.BranchAndBound.IsSubdivision.isConsistent_iff_of_isBounded {X : Type u_1} [PseudoMetricSpace X] {ι : Type u_2} {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} (hS : IsSubdivision D S) (hb : Bornology.IsBounded (S [])) :
                                IsConsistent D f S β ↔ ∀ (p : ℕ → List ι) (y : ℕ → X), (∀ (n : ℕ), y n ∈ S (p n) ∩ D) → Filter.Tendsto (fun (n : ℕ) => Metric.diam (S (p n))) Filter.atTop (nhds 0) → Filter.Tendsto (fun (n : ℕ) => f (y n) - β (p n)) Filter.atTop (nhds 0)

                                On a subdivision tree with a bounded root, ConvexAnalysis.BranchAndBound.IsConsistent may be stated with Metric.diam in place of Metric.ediam.

                                theorem ConvexAnalysis.BranchAndBound.IsSubdivision.isConsistentOnPaths_iff_of_isBounded {X : Type u_1} [PseudoMetricSpace X] {ι : Type u_2} {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} (hS : IsSubdivision D S) (hb : Bornology.IsBounded (S [])) :
                                IsConsistentOnPaths D f S β ↔ ∀ (p : ℕ → List ι) (y : ℕ → X), (∀ (n : ℕ), ∃ (i : ι), p (n + 1) = i :: p n) → (∀ (n : ℕ), y n ∈ S (p n) ∩ D) → Filter.Tendsto (fun (n : ℕ) => Metric.diam (S (p n))) Filter.atTop (nhds 0) → Filter.Tendsto (fun (n : ℕ) => f (y n) - β (p n)) Filter.atTop (nhds 0)

                                On a subdivision tree with a bounded root, ConvexAnalysis.BranchAndBound.IsConsistentOnPaths may be stated with Metric.diam in place of Metric.ediam.

                                theorem ConvexAnalysis.BranchAndBound.IsExhaustive.tendsto_diam {X : Type u_1} [PseudoMetricSpace X] {ι : Type u_2} {S : List ι → Set X} (hex : IsExhaustive S) {p : ℕ → List ι} (hp : ∀ (n : ℕ), ∃ (i : ι), p (n + 1) = i :: p n) :
                                Filter.Tendsto (fun (n : ℕ) => Metric.diam (S (p n))) Filter.atTop (nhds 0)

                                Along a nested sequence of an exhaustive subdivision, the diameters tend to 0.

                                theorem ConvexAnalysis.BranchAndBound.IsSubdivision.isExhaustive_of_tendsto_diam {X : Type u_1} [PseudoMetricSpace X] {ι : Type u_2} {D : Set X} {S : List ι → Set X} (hS : IsSubdivision D S) (hb : Bornology.IsBounded (S [])) (h : ∀ (p : ℕ → List ι), (∀ (n : ℕ), ∃ (i : ι), p (n + 1) = i :: p n) → Filter.Tendsto (fun (n : ℕ) => Metric.diam (S (p n))) Filter.atTop (nhds 0)) :

                                A subdivision tree with a bounded root is exhaustive if the diameters tend to 0 along every nested sequence.

                                theorem ConvexAnalysis.BranchAndBound.IsExhaustive.exists_forall_ediam_lt {X : Type u_1} [PseudoMetricSpace X] {ι : Type u_2} [Finite ι] {D : Set X} {S : List ι → Set X} (hex : IsExhaustive S) (hS : IsSubdivision D S) {δ : ENNReal} (hδ : 0 < δ) :
                                ∃ (d : ℕ), ∀ (p : List ι), d ≤ p.length → Metric.ediam (S p) < δ

                                Kőnig's lemma for exhaustive subdivisions: if every nested sequence of sets of a finitely branching subdivision tree shrinks, then the sets shrink uniformly in the depth: for every δ > 0, all nodes of depth at least some d have sets of extended diameter < δ.

                                theorem ConvexAnalysis.BranchAndBound.IsExhaustive.exists_forall_diam_lt {X : Type u_1} [PseudoMetricSpace X] {ι : Type u_2} [Finite ι] {D : Set X} {S : List ι → Set X} (hex : IsExhaustive S) (hS : IsSubdivision D S) {δ : ℝ} (hδ : 0 < δ) :
                                ∃ (d : ℕ), ∀ (p : List ι), d ≤ p.length → Metric.diam (S p) < δ

                                Kőnig's lemma for exhaustive subdivisions, with Metric.diam: for every δ > 0, all nodes of depth at least some d have sets of diameter < δ (ConvexAnalysis.BranchAndBound.IsExhaustive.exists_forall_ediam_lt).

                                theorem ConvexAnalysis.BranchAndBound.IsLowerBound.isConsistent {X : Type u_1} [PseudoMetricSpace X] {ι : Type u_2} {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} (hβ : IsLowerBound D f S β) {ω : ℝ → ℝ} (hω : Filter.Tendsto ω (nhds 0) (nhds 0)) (h : ∀ (p : List ι), Bornology.IsBounded (S p) → ∀ y ∈ S p ∩ D, f y - β p ≤ ω (Metric.diam (S p))) :
                                IsConsistent D f S β

                                Lower bounds whose gap on a bounded node is at most ω of the diameter of its set, with ω t → 0 as t → 0, are consistent. Nothing is asked of unbounded nodes, since the sets of a sequence of nodes with ediam (S (p n)) → 0 are eventually bounded.

                                theorem ConvexAnalysis.BranchAndBound.isLowerBound_and_isConsistent_of_mem_Icc {X : Type u_1} [PseudoMetricSpace X] {ι : Type u_2} {D : Set X} {f : X → ℝ} {S : List ι → Set X} {lo hi : List ι → ℝ} (hF : ∀ (p : List ι), ∀ y ∈ S p ∩ D, f y ∈ Set.Icc (lo p) (hi p)) {ω : ℝ → ℝ} (hω : Filter.Tendsto ω (nhds 0) (nhds 0)) (hw : ∀ (p : List ι), Bornology.IsBounded (S p) → hi p - lo p ≤ ω (Metric.diam (S p))) :
                                IsLowerBound D f S lo ∧ IsConsistent D f S lo

                                Interval branch and bound: an inclusion function, which encloses the values of f on the feasible part of each node in an interval [lo p, hi p], of width at most ω (diam (S p)) on bounded nodes, with ω t → 0 as t → 0, gives consistent lower bounds lo. This is the setting of the Moore–Skelboe algorithm, best-first selection by the lower endpoint lo.

                                Convergence #

                                theorem ConvexAnalysis.BranchAndBound.IsRun.exists_mem_or_exists_incumbent_lt {X : Type u_1} {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} (h : IsRun D f S β P sel x) (hS : IsSubdivision D S) {y : X} (hy : y ∈ D) (k : ℕ) :
                                (∃ q ∈ P k, y ∈ S q) ∨ ∃ j < k, incumbent f x j < f y

                                No feasible point is lost: every y ∈ D lies in a set of the current partition, or was deleted at an earlier step j, at which the incumbent was already better than f y.

                                theorem ConvexAnalysis.BranchAndBound.IsRun.bound_le {X : Type u_1} {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} (h : IsRun D f S β P sel x) (hS : IsSubdivision D S) (hβ : IsLowerBound D f S β) (k : ℕ) {y : X} (hy : y ∈ D) :
                                β (sel k) ≤ f y

                                The bound of the selected node is at most every value of f on D. No minimizer needs to exist.

                                theorem ConvexAnalysis.BranchAndBound.IsRun.bound_le_incumbent {X : Type u_1} {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} (h : IsRun D f S β P sel x) (hS : IsSubdivision D S) (hβ : IsLowerBound D f S β) (k : ℕ) :
                                β (sel k) ≤ incumbent f x k

                                The bound of the selected node is at most the incumbent value. Hence best-first selection never selects a node that could have been deleted by bound.

                                theorem ConvexAnalysis.BranchAndBound.IsRun.bound_le_of_isGLB {X : Type u_1} {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} {m : ℝ} (h : IsRun D f S β P sel x) (hS : IsSubdivision D S) (hβ : IsLowerBound D f S β) (hm : IsGLB (f '' D) m) (k : ℕ) :
                                β (sel k) ≤ m

                                The bound of the selected node is a lower bound of the infimum of f on D.

                                theorem ConvexAnalysis.BranchAndBound.IsRun.isGLB_csInf_image {X : Type u_1} {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} (h : IsRun D f S β P sel x) (hS : IsSubdivision D S) (hβ : IsLowerBound D f S β) :
                                IsGLB (f '' D) (sInf (f '' D))

                                Along a run, f is bounded below on the nonempty set D, so its infimum on D exists.

                                theorem ConvexAnalysis.BranchAndBound.IsRun.incumbent_le_add_of_sub_le {X : Type u_1} {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} (h : IsRun D f S β P sel x) (hS : IsSubdivision D S) (hβ : IsLowerBound D f S β) {ε : ℝ} {k : ℕ} (hk : incumbent f x k - β (sel k) ≤ ε) {y : X} (hy : y ∈ D) :
                                incumbent f x k ≤ f y + ε

                                Soundness of the stopping test: if the incumbent is within ε of the bound of the selected node, then it is within ε of every value of f on D.

                                The form of Horst and Tuy #

                                theorem ConvexAnalysis.BranchAndBound.IsRun.tendsto_incumbent_of_isConsistentRun {X : Type u_1} {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} {m : ℝ} (h : IsRun D f S β P sel x) (hS : IsSubdivision D S) (hβ : IsLowerBound D f S β) (hc : IsConsistentRun f β sel x) (hm : IsGLB (f '' D) m) :

                                Convergence of the upper bounds in the form of Horst and Tuy HT, Theorem IV.3: if the bounds are consistent along the run, then the incumbent values decrease to the infimum m of f on D. The subdivision need not be exhaustive, and the bounds need not increase. Horst and Tuy assume a bound improving selection and a minimizer; here the selection is best-first and m is the infimum.

                                theorem ConvexAnalysis.BranchAndBound.IsRun.tendsto_bound_of_isConsistentRun {X : Type u_1} {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} {m : ℝ} (h : IsRun D f S β P sel x) (hS : IsSubdivision D S) (hβ : IsLowerBound D f S β) (hc : IsConsistentRun f β sel x) (hmono : ∀ (p : List ι) (i : ι), β p ≤ β (i :: p)) (hm : IsGLB (f '' D) m) :
                                Filter.Tendsto (fun (k : ℕ) => β (sel k)) Filter.atTop (nhds m)

                                Convergence of the lower bounds in the form of Horst and Tuy HT, Theorem IV.3: if the bounds are consistent along the run and do not decrease from a node to its children (the monotonicity of Step k.4 of HT, Section IV.1), then the bounds of the selected nodes increase to the infimum m of f on D. The subdivision need not be exhaustive.

                                theorem ConvexAnalysis.BranchAndBound.IsRun.exists_incumbent_sub_bound_le_of_isConsistentRun {X : Type u_1} {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} (h : IsRun D f S β P sel x) (hS : IsSubdivision D S) (hβ : IsLowerBound D f S β) (hc : IsConsistentRun f β sel x) {ε : ℝ} (hε : 0 < ε) :
                                ∃ (k : ℕ), incumbent f x k - β (sel k) ≤ ε ∧ ∃ j ≤ k, ∀ y ∈ D, f (x j) ≤ f y + ε

                                Finite termination with an ε-optimal point in the form of Horst and Tuy: for every ε > 0, the stopping test incumbent - bound ≤ ε of HT, Remark IV.1 (iv) holds at some step k, and then one of the points x j, j ≤ k, is ε-optimal. Neither exhaustiveness nor increasing bounds are needed. Horst and Tuy do not state this consequence of HT, Theorem IV.3 separately.

                                theorem ConvexAnalysis.BranchAndBound.IsRun.eventually_incumbent_sub_bound_le_of_isConsistentRun {X : Type u_1} {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} (h : IsRun D f S β P sel x) (hS : IsSubdivision D S) (hβ : IsLowerBound D f S β) (hc : IsConsistentRun f β sel x) (hmono : ∀ (p : List ι) (i : ι), β p ≤ β (i :: p)) {ε : ℝ} (hε : 0 < ε) :
                                ∀ᶠ (k : ℕ) in Filter.atTop, incumbent f x k - β (sel k) ≤ ε

                                Finite termination in the form of Horst and Tuy: for every ε > 0, the stopping test incumbent - bound ≤ ε holds from some step on, if the bounds are consistent along the run and do not decrease from a node to its children; a consequence of HT, Theorem IV.3.

                                theorem ConvexAnalysis.BranchAndBound.IsRun.isMinOn_of_mapClusterPt_of_isConsistentRun {X : Type u_1} {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} [TopologicalSpace X] (h : IsRun D f S β P sel x) (hS : IsSubdivision D S) (hβ : IsLowerBound D f S β) (hc : IsConsistentRun f β sel x) (hD : IsClosed D) (hf : LowerSemicontinuousOn f D) {y : ℕ → X} (hyD : ∀ (k : ℕ), y k ∈ D) (hy : ∀ (k : ℕ), f (y k) ≤ incumbent f x k) {z : X} (hz : MapClusterPt z Filter.atTop y) :
                                z ∈ D ∧ IsMinOn f D z

                                Cluster points of incumbent points are global minimizers in the form of Horst and Tuy: if the bounds are consistent along the run, D is closed and f is lower semicontinuous on D, then every cluster point of points y k ∈ D with f (y k) ≤ incumbent f x k (for example the incumbent points) minimizes f on D. The evaluated points themselves need not have this property. HT, Corollary IV.2 assumes f continuous, D closed and a bounded level set; here f is lower semicontinuous and a cluster point is assumed instead.

                                theorem ConvexAnalysis.BranchAndBound.isRun_bestFirstPruned {X : Type u_1} {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} (hS : IsSubdivision D S) (hβ : IsLowerBound D f S β) (hD : D.Nonempty) {pt : List ι → X} (hpt : ∀ (p : List ι), (S p ∩ D).Nonempty → pt p ∈ S p ∩ D) :
                                IsRun D f S β (bestFirstPrunedPartition D f S β pt) (bestFirstPrunedNode D f S β pt) fun (k : ℕ) => pt (bestFirstPrunedNode D f S β pt k)

                                The best-first run that deletes by bound and by infeasibility (ConvexAnalysis.BranchAndBound.bestFirstPrunedPartition) is a branch and bound run, for lower bounds β on a subdivision of a nonempty D, if f is evaluated at a feasible point pt p ∈ S p ∩ D of every node p that has one.

                                Convergence on exhaustive subdivisions #

                                theorem ConvexAnalysis.BranchAndBound.IsRun.tendsto_ediam {X : Type u_1} [PseudoMetricSpace X] {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} (h : IsRun D f S β P sel x) (hS : IsSubdivision D S) (hex : IsExhaustive S) :
                                Filter.Tendsto (fun (k : ℕ) => Metric.ediam (S (sel k))) Filter.atTop (nhds 0)

                                The extended diameters of the selected sets tend to 0.

                                theorem ConvexAnalysis.BranchAndBound.IsRun.tendsto_diam {X : Type u_1} [PseudoMetricSpace X] {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} (h : IsRun D f S β P sel x) (hS : IsSubdivision D S) (hex : IsExhaustive S) :
                                Filter.Tendsto (fun (k : ℕ) => Metric.diam (S (sel k))) Filter.atTop (nhds 0)

                                The diameters of the selected sets tend to 0.

                                theorem ConvexAnalysis.BranchAndBound.IsRun.tendsto_sub_bound {X : Type u_1} [PseudoMetricSpace X] {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} (h : IsRun D f S β P sel x) (hS : IsSubdivision D S) (hex : IsExhaustive S) (hc : IsConsistent D f S β) :
                                Filter.Tendsto (fun (k : ℕ) => f (x k) - β (sel k)) Filter.atTop (nhds 0)

                                The gap between the value at the evaluated point and the bound of the selected node tends to 0.

                                theorem ConvexAnalysis.BranchAndBound.IsRun.tendsto_bound {X : Type u_1} [PseudoMetricSpace X] {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} {m : ℝ} (h : IsRun D f S β P sel x) (hS : IsSubdivision D S) (hex : IsExhaustive S) (hβ : IsLowerBound D f S β) (hc : IsConsistent D f S β) (hm : IsGLB (f '' D) m) :
                                Filter.Tendsto (fun (k : ℕ) => β (sel k)) Filter.atTop (nhds m)

                                Convergence of the lower bounds: the bounds β (sel k) of the selected nodes, the least bounds of the current partitions, tend to the infimum m of f on D.

                                theorem ConvexAnalysis.BranchAndBound.IsRun.tendsto_apply {X : Type u_1} [PseudoMetricSpace X] {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} {m : ℝ} (h : IsRun D f S β P sel x) (hS : IsSubdivision D S) (hex : IsExhaustive S) (hβ : IsLowerBound D f S β) (hc : IsConsistent D f S β) (hm : IsGLB (f '' D) m) :
                                Filter.Tendsto (fun (k : ℕ) => f (x k)) Filter.atTop (nhds m)

                                The values at the evaluated points tend to the infimum m of f on D.

                                theorem ConvexAnalysis.BranchAndBound.IsRun.tendsto_incumbent {X : Type u_1} [PseudoMetricSpace X] {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} {m : ℝ} (h : IsRun D f S β P sel x) (hS : IsSubdivision D S) (hex : IsExhaustive S) (hβ : IsLowerBound D f S β) (hc : IsConsistent D f S β) (hm : IsGLB (f '' D) m) :

                                Convergence of the upper bounds: the incumbent values decrease to the infimum m of f on D.

                                theorem ConvexAnalysis.BranchAndBound.IsRun.tendsto_bound_of_isMinOn {X : Type u_1} [PseudoMetricSpace X] {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} {z : X} (h : IsRun D f S β P sel x) (hS : IsSubdivision D S) (hex : IsExhaustive S) (hβ : IsLowerBound D f S β) (hc : IsConsistent D f S β) (hz : z ∈ D) (hmin : IsMinOn f D z) :
                                Filter.Tendsto (fun (k : ℕ) => β (sel k)) Filter.atTop (nhds (f z))

                                ConvexAnalysis.BranchAndBound.IsRun.tendsto_bound for a minimizer z of f on D.

                                theorem ConvexAnalysis.BranchAndBound.IsRun.tendsto_apply_of_isMinOn {X : Type u_1} [PseudoMetricSpace X] {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} {z : X} (h : IsRun D f S β P sel x) (hS : IsSubdivision D S) (hex : IsExhaustive S) (hβ : IsLowerBound D f S β) (hc : IsConsistent D f S β) (hz : z ∈ D) (hmin : IsMinOn f D z) :
                                Filter.Tendsto (fun (k : ℕ) => f (x k)) Filter.atTop (nhds (f z))

                                ConvexAnalysis.BranchAndBound.IsRun.tendsto_apply for a minimizer z of f on D.

                                theorem ConvexAnalysis.BranchAndBound.IsRun.tendsto_incumbent_of_isMinOn {X : Type u_1} [PseudoMetricSpace X] {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} {z : X} (h : IsRun D f S β P sel x) (hS : IsSubdivision D S) (hex : IsExhaustive S) (hβ : IsLowerBound D f S β) (hc : IsConsistent D f S β) (hz : z ∈ D) (hmin : IsMinOn f D z) :

                                ConvexAnalysis.BranchAndBound.IsRun.tendsto_incumbent for a minimizer z of f on D.

                                theorem ConvexAnalysis.BranchAndBound.IsRun.isMinOn_of_mapClusterPt {X : Type u_1} [PseudoMetricSpace X] {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} (h : IsRun D f S β P sel x) (hS : IsSubdivision D S) (hex : IsExhaustive S) (hβ : IsLowerBound D f S β) (hc : IsConsistent D f S β) (hD : IsClosed D) (hf : LowerSemicontinuousOn f D) {y : X} (hy : MapClusterPt y Filter.atTop x) :
                                y ∈ D ∧ IsMinOn f D y

                                Accumulation points are global minimizers: if D is closed and f is lower semicontinuous on D, then every cluster point of the evaluated points minimizes f on D. Compare HT, Corollary IV.5, for continuous f and strongly consistent bounds.

                                theorem ConvexAnalysis.BranchAndBound.IsRun.eventually_incumbent_sub_bound_le {X : Type u_1} [PseudoMetricSpace X] {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} (h : IsRun D f S β P sel x) (hS : IsSubdivision D S) (hex : IsExhaustive S) (hc : IsConsistent D f S β) {ε : ℝ} (hε : 0 < ε) :
                                ∀ᶠ (k : ℕ) in Filter.atTop, incumbent f x k - β (sel k) ≤ ε

                                Finite termination: for every ε > 0, the stopping test incumbent - bound ≤ ε holds from some step on.

                                theorem ConvexAnalysis.BranchAndBound.IsRun.exists_incumbent_sub_bound_le {X : Type u_1} [PseudoMetricSpace X] {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} (h : IsRun D f S β P sel x) (hS : IsSubdivision D S) (hex : IsExhaustive S) (hβ : IsLowerBound D f S β) (hc : IsConsistent D f S β) {ε : ℝ} (hε : 0 < ε) :
                                ∃ (k : ℕ), incumbent f x k - β (sel k) ≤ ε ∧ ∃ j ≤ k, ∀ y ∈ D, f (x j) ≤ f y + ε

                                Finite termination with an ε-optimal point: for every ε > 0, the stopping test incumbent - bound ≤ ε holds at some step k, and then one of the points x j, j ≤ k, is ε-optimal. No minimizer of f needs to exist.

                                theorem ConvexAnalysis.BranchAndBound.IsRun.exists_isMinOn_and_tendsto {X : Type u_1} [PseudoMetricSpace X] {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} (h : IsRun D f S β P sel x) (hS : IsSubdivision D S) (hex : IsExhaustive S) (hβ : IsLowerBound D f S β) (hc : IsConsistent D f S β) (hD : IsCompact D) (hf : LowerSemicontinuousOn f D) :
                                ∃ z ∈ D, IsMinOn f D z ∧ Filter.Tendsto (fun (k : ℕ) => β (sel k)) Filter.atTop (nhds (f z)) ∧ Filter.Tendsto (incumbent f x) Filter.atTop (nhds (f z))

                                Convergence of branch and bound for a lower semicontinuous function on a compact set: f has a minimizer z on D, and the lower bounds β (sel k) and the incumbent values tend to f z. Compare HT, Proposition IV.3, HT, Lemma IV.5, HT, Theorem IV.3 and HT, Corollary IV.3; no monotonicity of the bounds is needed here.

                                theorem ConvexAnalysis.BranchAndBound.IsConsistentOnPaths.isConsistentRun {X : Type u_1} [PseudoMetricSpace X] {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} (hc : IsConsistentOnPaths D f S β) (h : IsRun D f S β P sel x) (hS : IsSubdivision D S) (hex : IsExhaustive S) (hβ : IsLowerBound D f S β) :
                                IsConsistentRun f β sel x

                                On an exhaustive subdivision, lower bounds that are consistent along nested sequences are consistent along every run in the sense of Horst and Tuy. Compare HT, Lemma IV.5, which derives consistency from strong consistency for continuous f; no continuity is needed here.

                                theorem ConvexAnalysis.BranchAndBound.IsRun.tendsto_bound_of_isConsistentOnPaths {X : Type u_1} [PseudoMetricSpace X] {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} {m : ℝ} (h : IsRun D f S β P sel x) (hS : IsSubdivision D S) (hex : IsExhaustive S) (hβ : IsLowerBound D f S β) (hc : IsConsistentOnPaths D f S β) (hmono : ∀ (p : List ι) (i : ι), β p ≤ β (i :: p)) (hm : IsGLB (f '' D) m) :
                                Filter.Tendsto (fun (k : ℕ) => β (sel k)) Filter.atTop (nhds m)

                                Convergence of the lower bounds for bounds consistent along nested sequences on an exhaustive subdivision, if they do not decrease from a node to its children: the bounds of the selected nodes increase to the infimum m of f on D.

                                theorem ConvexAnalysis.BranchAndBound.IsRun.tendsto_incumbent_of_isConsistentOnPaths {X : Type u_1} [PseudoMetricSpace X] {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} {m : ℝ} (h : IsRun D f S β P sel x) (hS : IsSubdivision D S) (hex : IsExhaustive S) (hβ : IsLowerBound D f S β) (hc : IsConsistentOnPaths D f S β) (hm : IsGLB (f '' D) m) :

                                Convergence of the upper bounds for bounds consistent along nested sequences on an exhaustive subdivision: the incumbent values decrease to the infimum m of f on D.

                                theorem ConvexAnalysis.BranchAndBound.IsRun.eventually_incumbent_sub_bound_le_of_isConsistentOnPaths {X : Type u_1} [PseudoMetricSpace X] {ι : Type u_2} [Fintype ι] [DecidableEq ι] {D : Set X} {f : X → ℝ} {S : List ι → Set X} {β : List ι → ℝ} {P : ℕ → Finset (List ι)} {sel : ℕ → List ι} {x : ℕ → X} (h : IsRun D f S β P sel x) (hS : IsSubdivision D S) (hex : IsExhaustive S) (hβ : IsLowerBound D f S β) (hc : IsConsistentOnPaths D f S β) (hmono : ∀ (p : List ι) (i : ι), β p ≤ β (i :: p)) {ε : ℝ} (hε : 0 < ε) :
                                ∀ᶠ (k : ℕ) in Filter.atTop, incumbent f x k - β (sel k) ≤ ε

                                Finite termination for bounds consistent along nested sequences on an exhaustive subdivision, if they do not decrease from a node to its children: for every ε > 0, the stopping test incumbent - bound ≤ ε holds from some step on.

                                Longest-edge bisection of boxes #

                                noncomputable def ConvexAnalysis.Box.longestEdge {ι : Type u_1} [Fintype ι] [Nonempty ι] (w : ι → ℝ) :
                                ι

                                An index of a largest entry of w. For the edge lengths w = b - a of a box Icc a b, it is a longest edge.

                                Equations
                                Instances For
                                  theorem ConvexAnalysis.Box.apply_le_apply_longestEdge {ι : Type u_1} [Fintype ι] [Nonempty ι] (w : ι → ℝ) (j : ι) :
                                  w j ≤ w (longestEdge w)

                                  The longest edge is at least as long as every edge.

                                  noncomputable def ConvexAnalysis.Box.halveLongest {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] (w : ι → ℝ) :
                                  ι → ℝ

                                  The edge lengths after one longest-edge bisection: the largest entry of w is halved.

                                  Equations
                                  Instances For
                                    noncomputable def ConvexAnalysis.Box.bisect {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] (B : (ι → ℝ) × (ι → ℝ)) (c : Bool) :
                                    (ι → ℝ) × (ι → ℝ)

                                    Longest-edge bisection of the box Icc B.1 B.2, given by its corners: the half c = false is the lower and c = true the upper half along a longest edge.

                                    Equations
                                    • One or more equations did not get rendered due to their size.
                                    Instances For
                                      noncomputable def ConvexAnalysis.Box.bisectionTree {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] (a b : ι → ℝ) :
                                      List Bool → (ι → ℝ) × (ι → ℝ)

                                      The bisection tree of the box Icc a b: the corners of the box at the node p, obtained from Icc a b by the longest-edge bisections listed in p (the last one first).

                                      Equations
                                      Instances For
                                        noncomputable def ConvexAnalysis.Box.bisectionSet {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] (a b : ι → ℝ) (p : List Bool) :
                                        Set (ι → ℝ)

                                        The box at the node p of the bisection tree of Icc a b.

                                        Equations
                                        Instances For
                                          theorem ConvexAnalysis.Box.bisect_snd_sub_fst {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] (B : (ι → ℝ) × (ι → ℝ)) (c : Bool) :
                                          (bisect B c).2 - (bisect B c).1 = halveLongest (B.2 - B.1)

                                          Both halves of a box have the edge lengths of the box, with the longest edge halved.

                                          theorem ConvexAnalysis.Box.bisectionTree_snd_sub_fst {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] (a b : ι → ℝ) (p : List Bool) :

                                          Both halves of a box have the same edge lengths; at depth d, they are the d-th iterate of ConvexAnalysis.Box.halveLongest on b - a.

                                          theorem ConvexAnalysis.Box.halveLongest_nonneg {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] {w : ι → ℝ} (hw : 0 ≤ w) :

                                          Halving the longest edge keeps the edge lengths nonnegative.

                                          theorem ConvexAnalysis.Box.halveLongest_le {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] {w : ι → ℝ} (hw : 0 ≤ w) :

                                          Halving the longest edge does not increase the edge lengths.

                                          theorem ConvexAnalysis.Box.halveLongest_iterate_nonneg {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] {w : ι → ℝ} (hw : 0 ≤ w) (k : ℕ) :

                                          Repeated halving keeps the edge lengths nonnegative.

                                          theorem ConvexAnalysis.Box.halveLongest_iterate_antitone {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] {w : ι → ℝ} (hw : 0 ≤ w) :
                                          Antitone fun (k : ℕ) => halveLongest^[k] w

                                          Repeated halving decreases the edge lengths.

                                          theorem ConvexAnalysis.Box.halveLongest_iterate_card_le {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] {w : ι → ℝ} {W : ℝ} (hw : 0 ≤ w) (hW : ∀ (i : ι), w i ≤ W) (i : ι) :

                                          Longest-edge bisection halves the boxes: after n bisections of a box in n dimensions whose edges have length at most W, every edge has length at most W / 2.

                                          theorem ConvexAnalysis.Box.halveLongest_iterate_mul_le {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] {w : ι → ℝ} {W : ℝ} (hw : 0 ≤ w) (hW : ∀ (i : ι), w i ≤ W) (m : ℕ) (i : ι) :

                                          After n m longest-edge bisections of a box in n dimensions whose edges have length at most W, every edge has length at most W / 2 ^ m.

                                          theorem ConvexAnalysis.Box.bisectionTree_fst_le_snd {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] {a b : ι → ℝ} (hab : a ≤ b) (p : List Bool) :
                                          (bisectionTree a b p).1 ≤ (bisectionTree a b p).2

                                          The corners of the boxes of the bisection tree of Icc a b, a ≤ b, are ordered.

                                          theorem ConvexAnalysis.Box.Icc_bisect_subset {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] {B : (ι → ℝ) × (ι → ℝ)} (hB : B.1 ≤ B.2) (c : Bool) :
                                          Set.Icc (bisect B c).1 (bisect B c).2 ⊆ Set.Icc B.1 B.2

                                          Both halves of a box lie in the box.

                                          theorem ConvexAnalysis.Box.Icc_subset_iUnion_bisect {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] (B : (ι → ℝ) × (ι → ℝ)) :
                                          Set.Icc B.1 B.2 ⊆ ⋃ (c : Bool), Set.Icc (bisect B c).1 (bisect B c).2

                                          The two halves of a box cover the box.

                                          theorem ConvexAnalysis.Box.bisectionSet_subset {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] {a b : ι → ℝ} (hab : a ≤ b) (p : List Bool) :
                                          bisectionSet a b p ⊆ Set.Icc a b

                                          The boxes of the bisection tree of Icc a b lie in Icc a b.

                                          theorem ConvexAnalysis.Box.diam_bisectionSet {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] {a b : ι → ℝ} (hab : a ≤ b) (p : List Bool) :

                                          The diameter of a box of the bisection tree depends only on its depth.

                                          theorem ConvexAnalysis.Box.diam_bisectionSet_le {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] {a b : ι → ℝ} (hab : a ≤ b) {m : ℕ} {p : List Bool} (hp : Fintype.card ι * m ≤ p.length) :

                                          Explicit exhaustiveness of longest-edge bisection: the boxes at depth at least n m have at most 1 / 2 ^ m times the diameter of Icc a b, n the dimension. HT, Section IV.3.2 states the exhaustiveness without proof and without a rate.

                                          theorem ConvexAnalysis.Box.midpoint_mem_Icc {ι : Type u_1} {a b : ι → ℝ} (hab : a ≤ b) :

                                          The center of a box lies in the box.

                                          theorem ConvexAnalysis.Box.norm_sub_midpoint_le {ι : Type u_1} [Fintype ι] {a b y : ι → ℝ} (hy : y ∈ Set.Icc a b) :

                                          Every point of a box lies within half its width of the center (in the sup norm).

                                          The bisection tree is a subdivision tree of the box Icc a b.

                                          Longest-edge bisection is exhaustive HT, Section IV.3.2.

                                          Branch and bound for Lipschitz functions on a box #

                                          noncomputable def ConvexAnalysis.BranchAndBound.lipschitzBoxBound {ι : Type u_1} [Fintype ι] (f : (ι → ℝ) → ℝ) (K : NNReal) (B : (ι → ℝ) × (ι → ℝ)) :

                                          The Lipschitz lower bound on the box Icc B.1 B.2: f c - K r with the center c = midpoint ℝ B.1 B.2 and the radius r = ‖B.2 - B.1‖ / 2 of the box in the sup norm. This is the bound (IV.14') of HT, Section IV.4.1, there with the Euclidean diagonal and Lipschitz constant.

                                          Equations
                                          Instances For
                                            noncomputable def ConvexAnalysis.BranchAndBound.lipschitzBound {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] (f : (ι → ℝ) → ℝ) (K : NNReal) (a b : ι → ℝ) :

                                            The bounds of the Lipschitz branch and bound method on the bisection tree of Icc a b: the Lipschitz bound of the box, raised to the bound of the parent, so that the bounds do not decrease from a box to its halves, as in HT, Section IV.4.5.

                                            Equations
                                            Instances For
                                              theorem ConvexAnalysis.BranchAndBound.lipschitzBoxBound_le {ι : Type u_1} [Fintype ι] {f : (ι → ℝ) → ℝ} {K : NNReal} {a b : ι → ℝ} (hf : LipschitzOnWith K f (Set.Icc a b)) {B : (ι → ℝ) × (ι → ℝ)} (hB : B.1 ≤ B.2) (hBab : Set.Icc B.1 B.2 ⊆ Set.Icc a b) {y : ι → ℝ} (hy : y ∈ Set.Icc B.1 B.2) :

                                              The Lipschitz bound of a box in Icc a b is a lower bound of f on the box.

                                              theorem ConvexAnalysis.BranchAndBound.sub_lipschitzBoxBound_le {ι : Type u_1} [Fintype ι] {f : (ι → ℝ) → ℝ} {K : NNReal} {a b : ι → ℝ} (hf : LipschitzOnWith K f (Set.Icc a b)) {B : (ι → ℝ) × (ι → ℝ)} (hB : B.1 ≤ B.2) (hBab : Set.Icc B.1 B.2 ⊆ Set.Icc a b) {y : ι → ℝ} (hy : y ∈ Set.Icc B.1 B.2) :
                                              f y - lipschitzBoxBound f K B ≤ ↑K * ‖B.2 - B.1‖

                                              The gap of the Lipschitz bound of a box in Icc a b is at most K times the width.

                                              theorem ConvexAnalysis.BranchAndBound.isLowerBound_lipschitzBound {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] {f : (ι → ℝ) → ℝ} {K : NNReal} {a b : ι → ℝ} (hab : a ≤ b) (hf : LipschitzOnWith K f (Set.Icc a b)) :

                                              The Lipschitz bounds are lower bounds.

                                              theorem ConvexAnalysis.BranchAndBound.lipschitzBoxBound_le_lipschitzBound {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] {f : (ι → ℝ) → ℝ} {K : NNReal} {a b : ι → ℝ} (p : List Bool) :

                                              The bound of a node is at least the Lipschitz bound of its box.

                                              theorem ConvexAnalysis.BranchAndBound.lipschitzBound_le_cons {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] {f : (ι → ℝ) → ℝ} {K : NNReal} {a b : ι → ℝ} (p : List Bool) (c : Bool) :
                                              lipschitzBound f K a b p ≤ lipschitzBound f K a b (c :: p)

                                              The bounds do not decrease from a node to its children.

                                              theorem ConvexAnalysis.BranchAndBound.sub_lipschitzBound_le {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] {f : (ι → ℝ) → ℝ} {K : NNReal} {a b : ι → ℝ} (hab : a ≤ b) (hf : LipschitzOnWith K f (Set.Icc a b)) {p : List Bool} {y : ι → ℝ} (hy : y ∈ Box.bisectionSet a b p) :
                                              f y - lipschitzBound f K a b p ≤ ↑K * Metric.diam (Box.bisectionSet a b p)

                                              The gap of the Lipschitz bound on a box is at most K times its diameter.

                                              theorem ConvexAnalysis.BranchAndBound.apply_midpoint_sub_lipschitzBound_le {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] {f : (ι → ℝ) → ℝ} {K : NNReal} {a b : ι → ℝ} (hab : a ≤ b) (p : List Bool) :

                                              At the center of a box, the gap of the Lipschitz bound is at most K times half the diameter. No Lipschitz condition is needed.

                                              theorem ConvexAnalysis.BranchAndBound.isConsistent_lipschitzBound {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] {f : (ι → ℝ) → ℝ} {K : NNReal} {a b : ι → ℝ} (hab : a ≤ b) (hf : LipschitzOnWith K f (Set.Icc a b)) :

                                              The Lipschitz bounds are consistent. Compare HT, Proposition IV.3, which proves the strong consistency of a vertex bound under exhaustive subdivision.

                                              noncomputable def ConvexAnalysis.BranchAndBound.lipschitzNode {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] (f : (ι → ℝ) → ℝ) (K : NNReal) (a b : ι → ℝ) (k : ℕ) :

                                              The node selected at step k of the Lipschitz branch and bound method on Icc a b: best-first selection on the bisection tree with the bounds ConvexAnalysis.BranchAndBound.lipschitzBound.

                                              Equations
                                              Instances For
                                                noncomputable def ConvexAnalysis.BranchAndBound.lipschitzPoint {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] (f : (ι → ℝ) → ℝ) (K : NNReal) (a b : ι → ℝ) (k : ℕ) :
                                                ι → ℝ

                                                The point at which the Lipschitz method evaluates f at step k: the center of the selected box.

                                                Equations
                                                • One or more equations did not get rendered due to their size.
                                                Instances For
                                                  theorem ConvexAnalysis.BranchAndBound.isRun_lipschitz {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] {f : (ι → ℝ) → ℝ} {K : NNReal} {a b : ι → ℝ} (hab : a ≤ b) :

                                                  The Lipschitz method is a branch and bound run.

                                                  theorem ConvexAnalysis.BranchAndBound.monotone_lipschitzBound_lipschitzNode {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] {f : (ι → ℝ) → ℝ} {K : NNReal} {a b : ι → ℝ} (hab : a ≤ b) :
                                                  Monotone fun (k : ℕ) => lipschitzBound f K a b (lipschitzNode f K a b k)

                                                  The lower bounds of the Lipschitz method increase.

                                                  theorem ConvexAnalysis.BranchAndBound.exists_isMinOn_and_tendsto_lipschitz {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] {f : (ι → ℝ) → ℝ} {K : NNReal} {a b : ι → ℝ} (hab : a ≤ b) (hf : LipschitzOnWith K f (Set.Icc a b)) :
                                                  ∃ z ∈ Set.Icc a b, IsMinOn f (Set.Icc a b) z ∧ Filter.Tendsto (fun (k : ℕ) => lipschitzBound f K a b (lipschitzNode f K a b k)) Filter.atTop (nhds (f z)) ∧ Filter.Tendsto (incumbent f (lipschitzPoint f K a b)) Filter.atTop (nhds (f z))

                                                  Convergence of the Lipschitz branch and bound method: for f Lipschitz with constant K on Icc a b (in the sup norm), f has a minimizer z on the box, and the lower bounds lipschitzBound f K a b (lipschitzNode f K a b k) (which increase) and the incumbent values (which decrease) tend to f z. This is HT, Proposition XI.3 for this method, which HT, Remark XI.1 (i) covers.

                                                  theorem ConvexAnalysis.BranchAndBound.isMinOn_of_mapClusterPt_lipschitzPoint {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] {f : (ι → ℝ) → ℝ} {K : NNReal} {a b : ι → ℝ} (hab : a ≤ b) (hf : LipschitzOnWith K f (Set.Icc a b)) {y : ι → ℝ} (hy : MapClusterPt y Filter.atTop (lipschitzPoint f K a b)) :
                                                  y ∈ Set.Icc a b ∧ IsMinOn f (Set.Icc a b) y

                                                  Every cluster point of the points evaluated by the Lipschitz method minimizes f on the box (HT, Proposition XI.3 with HT, Remark XI.1 (i)).

                                                  theorem ConvexAnalysis.BranchAndBound.exists_lt_two_pow_incumbent_sub_lipschitzBound_le {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] {f : (ι → ℝ) → ℝ} {K : NNReal} {a b : ι → ℝ} (hab : a ≤ b) (hf : LipschitzOnWith K f (Set.Icc a b)) {ε : ℝ} {m : ℕ} (hm : ↑K * ‖b - a‖ ≤ 2 ^ (m + 1) * ε) :
                                                  ∃ k < 2 ^ (Fintype.card ι * m), incumbent f (lipschitzPoint f K a b) k - lipschitzBound f K a b (lipschitzNode f K a b k) ≤ ε ∧ ∀ y ∈ Set.Icc a b, incumbent f (lipschitzPoint f K a b) k ≤ f y + ε

                                                  Iteration bound for the Lipschitz method: if K ‖b - a‖ ≤ 2 ^ (m + 1) ε, then at some step k < 2 ^ (n m), n the dimension, the stopping test incumbent - bound ≤ ε holds, and the incumbent value is then within ε of every value of f on the box. The gap at the center of a box is half the gap K · diam of ConvexAnalysis.BranchAndBound.sub_lipschitzBound_le (ConvexAnalysis.BranchAndBound.apply_midpoint_sub_lipschitzBound_le).

                                                  theorem ConvexAnalysis.BranchAndBound.exists_lt_incumbent_sub_lipschitzBound_le {ι : Type u_1} [Fintype ι] [Nonempty ι] [DecidableEq ι] {f : (ι → ℝ) → ℝ} {K : NNReal} {a b : ι → ℝ} (hab : a ≤ b) (hf : LipschitzOnWith K f (Set.Icc a b)) {ε : ℝ} (hε : 0 < ε) :
                                                  ∃ (k : ℕ), ↑k < max 1 ((↑K * ‖b - a‖ / ε) ^ Fintype.card ι) ∧ incumbent f (lipschitzPoint f K a b) k - lipschitzBound f K a b (lipschitzNode f K a b k) ≤ ε ∧ ∀ y ∈ Set.Icc a b, incumbent f (lipschitzPoint f K a b) k ≤ f y + ε

                                                  Iteration bound for the Lipschitz method, explicit form: for ε > 0, the stopping test incumbent - bound ≤ ε holds at some step k < max 1 ((K ‖b - a‖ / ε) ^ n), n the dimension, and the incumbent value is then within ε of every value of f on the box. Horst and Tuy give no such bound; compare the passive grid (XI.4) of HT, Section XI.1 in dimension one.