Documentation

CslibFrontier.Algorithms.BranchAndBound.Basic

General Branch-and-Bound Trees, Hardness Measures, and Affine Reductions #

This module develops the abstract model of general branch-and-bound (BB) certificate trees over ℝⁿ branching on arbitrary integral split disjunctions (π ⬝ᵥ x ≤ π₀) ∨ (π ⬝ᵥ x ≥ π₀ + 1) with π ∈ ℤⁿ and π₀ ∈ ℤ, following [DeyDubeyMolinaro2023, §§2–4, pp. 6–11]. It formalizes the tree complexity measures, the rank-to-hardness lower bound (Lemma 1), monotonicity and integral affine transfer reductions (Lemmas 4–6 and Corollaries 2–4), and the Helly-based infeasibility lower bound (Lemma 7, the Generalized Dadush–Tiwari Lemma). Results are generalized from polytopes to arbitrary bounded sets (or finite intersections of convex sets); the paper's downstream exponential lower-bound instances (packing, set-cover, cross-polytope, smoothed cross-polytope, and TSP in §§4.1–7) are not formalized here.

Main definitions #

Main results #

References #

Integer points and integer hull #

A point in Fin n → ℝ is integral if every coordinate is an integer.

theorem Cslib.Algorithms.BranchAndBound.isIntegerPoint_iff_exists_intVec {n : ℕ} (x : Fin n → ℝ) :
IsIntegerPoint x ↔ ∃ (z : Fin n → ℤ), x = fun (i : Fin n) => ↑(z i)

The integer hull P_I = conv(P ∩ ℤⁿ) of a set P ⊆ ℝⁿ.

theorem Cslib.Algorithms.BranchAndBound.integerHull_mono {n : ℕ} {Q P : Set (Fin n → ℝ)} (hQP : Q ⊆ P) :
theorem Cslib.Algorithms.BranchAndBound.isIntegerPoint_cast {n : ℕ} (z : Fin n → ℤ) :
IsIntegerPoint fun (i : Fin n) => ↑(z i)

Abstract branch-and-bound trees #

An abstract general branch-and-bound (BB) tree over ℝⁿ ([DeyDubeyMolinaro2023, §2, Definition 1, p. 6]). Each internal node splits on an integral disjunction (π ⬝ᵥ x ≤ π₀) ∨ (π ⬝ᵥ x ≥ π₀ + 1) with π : Fin n → ℤ and π₀ : ℤ.

Number of leaf nodes in a BB tree.

Total number of nodes in a BB tree.

Cast an integer vector π : Fin n → ℤ to Fin n → ℝ.

List of branching-constraint regions across all leaves of t.

Every integer point satisfies the branching constraints of at least one leaf.

def Cslib.Algorithms.BranchAndBound.BBTree.eval {n : ℕ} (t : BBTree n) (P : Set (Fin n → ℝ)) :
Set (Fin n → ℝ)

Union t.eval P of all leaf atoms of t on P ([DeyDubeyMolinaro2023, Definition 1, §2, p. 6]).

theorem Cslib.Algorithms.BranchAndBound.BBTree.mem_eval_iff {n : ℕ} (t : BBTree n) (P : Set (Fin n → ℝ)) (x : Fin n → ℝ) :
x ∈ t.eval P ↔ x ∈ P ∧ ∃ C ∈ t.leafConstraintSets, x ∈ C
theorem Cslib.Algorithms.BranchAndBound.BBTree.eval_subset {n : ℕ} (t : BBTree n) (P : Set (Fin n → ℝ)) :
t.eval P ⊆ P
theorem Cslib.Algorithms.BranchAndBound.BBTree.eval_mono {n : ℕ} (t : BBTree n) {Q P : Set (Fin n → ℝ)} (hQP : Q ⊆ P) :
t.eval Q ⊆ t.eval P

Monotonicity of leaf evaluation: Q ⊆ P implies t.eval Q ⊆ t.eval P ([DeyDubeyMolinaro2023, Lemma 4, §3, p. 8], generalized from polytopes to arbitrary sets Q ⊆ P ⊆ ℝⁿ).

def Cslib.Algorithms.BranchAndBound.BBTree.Separates {n : ℕ} (t : BBTree n) (P : Set (Fin n → ℝ)) (x : Fin n → ℝ) :

t separates x from P if x ∉ convexHull ℝ (t.eval P) ([DeyDubeyMolinaro2023, Definition 1, §2, p. 6]).

t certifies integer-infeasibility of P if t.eval P = ∅ ([DeyDubeyMolinaro2023, Definition 1, §2, p. 6]).

def Cslib.Algorithms.BranchAndBound.BBTree.Solves {n : ℕ} (t : BBTree n) (P : Set (Fin n → ℝ)) (c : Fin n → ℝ) :

t solves max_{x ∈ P ∩ ℤⁿ} ⟨c, x⟩ if every leaf atom P ∩ C is either empty or has its objective values bounded above by the objective value at some point in integerHull P.

On bounded sets P, this two-clause condition matches the three-clause LP pruning definition (i)–(iii) in [DeyDubeyMolinaro2023, Definition 1, §2, p. 6]:

Grafting and universal grid BB trees for bounded sets #

Replace every leaf of t₁ with a copy of t₂.

theorem Cslib.Algorithms.BranchAndBound.BBTree.mem_leafConstraintSets_append {n : ℕ} (t₁ t₂ : BBTree n) (C : Set (Fin n → ℝ)) :
C ∈ (t₁.append t₂).leafConstraintSets ↔ ∃ C₁ ∈ t₁.leafConstraintSets, ∃ C₂ ∈ t₂.leafConstraintSets, C = C₁ ∩ C₂
theorem Cslib.Algorithms.BranchAndBound.BBTree.exists_universal_grid_bbTree {n : ℕ} {P : Set (Fin n → ℝ)} (hP : Bornology.IsBounded P) :
∃ (t : BBTree n), (∀ C ∈ t.leafConstraintSets, P ∩ C = ∅ ∨ ∃ (z : Fin n → ℤ), ∀ x ∈ P ∩ C, x = fun (i : Fin n) => ↑(z i)) ∧ (∀ x ∈ P, x ∉ integerHull P → t.Separates P x) ∧ ∀ (c : Fin n → ℝ), t.Solves P c

Every bounded set P admits a single finite BB tree whose non-empty leaf atoms are all integer singletons, so it simultaneously separates every x ∈ P \ integerHull P and solves every linear objective c.

Depth, rank, and hardness measures #

noncomputable def Cslib.Algorithms.BranchAndBound.BBdepth {n : ℕ} (x : Fin n → ℝ) (P : Set (Fin n → ℝ)) :

Minimum total node count (BBTree.size) of a BB certificate tree separating x from P ([DeyDubeyMolinaro2023, Definition 2, §2, p. 7], generalized from polytopes to arbitrary sets P ⊆ ℝⁿ). Because sInf on ℕ falls back to 0 on the empty set while every actual tree has t.size ≥ 1, BBdepth x P = 0 indicates that no finite split-disjunction tree separates x from P. In particular, by BBTree.integer_subset_eval, no finite tree separates any x ∈ integerHull P, so BBdepth x P = 0 for all x ∈ integerHull P even when P is bounded; existence of a separating tree (and hence the minimum-size interpretation, with BBdepth x P ≥ 1) is guaranteed for x ∈ P \ integerHull P when P is bounded by BBTree.exists_universal_grid_bbTree.

noncomputable def Cslib.Algorithms.BranchAndBound.BBminSize {n : ℕ} (P : Set (Fin n → ℝ)) (c : Fin n → ℝ) :

Minimum total node count (BBTree.size) of a BB certificate tree solving max_{x ∈ P ∩ ℤⁿ} ⟨c, x⟩ ([DeyDubeyMolinaro2023, §2, p. 6], generalized from polytopes to arbitrary sets P ⊆ ℝⁿ). Because sInf on ℕ falls back to 0 on the empty set while every actual tree has t.size ≥ 1, BBminSize P c = 0 indicates that no finite split-disjunction certificate tree solves (P, c) (for example, P = Set.univ with c = ![1]); the minimum-size interpretation applies under an existence hypothesis (guaranteed for bounded P by BBTree.exists_universal_grid_bbTree).

noncomputable def Cslib.Algorithms.BranchAndBound.BBrank {n : ℕ} (P : Set (Fin n → ℝ)) :

BBrank P = sup_{x ∈ P \ integerHull P} BBdepth x P ([DeyDubeyMolinaro2023, Definition 3, §2, p. 7], generalized from polytopes to arbitrary sets P ⊆ ℝⁿ), using ℕ-valued sSup (which is 0 when P \ integerHull P is empty or the set of depths is unbounded). For bounded P, the depths are bounded above (BBrank_bddAbove) and the supremum is attained whenever P \ integerHull P is nonempty (exists_attains_BBrank).

noncomputable def Cslib.Algorithms.BranchAndBound.BBhardness {n : ℕ} (P : Set (Fin n → ℝ)) :

BBhardness P = sup_{c ∈ ℝⁿ} BBminSize P c ([DeyDubeyMolinaro2023, §2, p. 6], generalized from polytopes to arbitrary sets P ⊆ ℝⁿ), using ℕ-valued sSup (which is 0 when the set of minimum sizes is unbounded). On unbounded P (such as P = Set.univ), objectives c with no finite solving tree yield BBminSize P c = 0, which is absorbed by sSup (for instance, BBhardness Set.univ = 1 from c = 0, even though c = ![1] admits no finite solving tree). The intended worst-case hardness interpretation holds for bounded P, where every objective admits a finite solving tree by BBTree.exists_universal_grid_bbTree.

theorem Cslib.Algorithms.BranchAndBound.BBdepth_le_of_separates {n : ℕ} {x : Fin n → ℝ} {P : Set (Fin n → ℝ)} {t : BBTree n} (ht : t.Separates P x) :
theorem Cslib.Algorithms.BranchAndBound.le_BBdepth_of_forall_separates {n : ℕ} {x : Fin n → ℝ} {P : Set (Fin n → ℝ)} {k : ℕ} (hk : ∀ (t : BBTree n), t.Separates P x → k ≤ t.size) (hne : ∃ (t : BBTree n), t.Separates P x) :
k ≤ BBdepth x P
theorem Cslib.Algorithms.BranchAndBound.BBminSize_le_of_solves {n : ℕ} {P : Set (Fin n → ℝ)} {c : Fin n → ℝ} {t : BBTree n} (ht : t.Solves P c) :
theorem Cslib.Algorithms.BranchAndBound.le_BBminSize_of_forall_solves {n : ℕ} {P : Set (Fin n → ℝ)} {c : Fin n → ℝ} {k : ℕ} (hk : ∀ (t : BBTree n), t.Solves P c → k ≤ t.size) (hne : ∃ (t : BBTree n), t.Solves P c) :
theorem Cslib.Algorithms.BranchAndBound.BBdepth_le_BBrank {n : ℕ} {P : Set (Fin n → ℝ)} (hP : Bornology.IsBounded P) {x : Fin n → ℝ} (hxP : x ∈ P) (hxPI : x ∉ integerHull P) :
theorem Cslib.Algorithms.BranchAndBound.le_BBhardness_of_infeas {n : ℕ} {P : Set (Fin n → ℝ)} (hP : Bornology.IsBounded P) (hinf : {x : Fin n → ℝ | x ∈ P ∧ IsIntegerPoint x} = ∅) {k : ℕ} (hk : ∀ (t : BBTree n), t.CertifiesInfeas P → k ≤ t.size) :
theorem Cslib.Algorithms.BranchAndBound.BBrank_bddAbove {n : ℕ} {P : Set (Fin n → ℝ)} (hP : Bornology.IsBounded P) :
BddAbove ((fun (x : Fin n → ℝ) => BBdepth x P) '' (P \ integerHull P))

The set of integer points in a bounded set P ⊆ ℝⁿ is finite.

The integer hull integerHull P of a bounded set P ⊆ ℝⁿ is a V-polytope.

BB rank lower bounds BB hardness ([DeyDubeyMolinaro2023, Lemma 1, §2, p. 7], generalized from polytopes to arbitrary bounded sets P ⊆ ℝⁿ): there is a linear objective c : Fin n → ℝ with BBrank P ≤ BBminSize P c and hence BBrank P ≤ BBhardness P.

Monotonicity and integral affine pullback simulation #

theorem Cslib.Algorithms.BranchAndBound.BBdepth_mono {n : ℕ} {Q P : Set (Fin n → ℝ)} (hQP : Q ⊆ P) (hP : Bornology.IsBounded P) {x : Fin n → ℝ} (hxQ : x ∈ Q) (hxPI : x ∉ integerHull P) :

Monotonicity of BB depth under set inclusion ([DeyDubeyMolinaro2023, Corollary 2, §3, p. 8], generalized from polytopes to arbitrary Q ⊆ P ⊆ ℝⁿ with P bounded): for every x ∈ Q \ integerHull P, BBdepth x Q ≤ BBdepth x P.

An integral affine map f : ℝⁿ → ℝᵐ given by f(x) = C x + d with integer matrix C and integer translation d ([DeyDubeyMolinaro2023, §3, p. 8]).

  • mat : Matrix (Fin m) (Fin n) ℤ

    The m × n integer linear part of the affine map.

  • shift : Fin m → ℤ

    The m-dimensional integer translation vector of the affine map.

Cast the integer matrix of f to a real matrix.

Cast the integer shift of f to a real vector.

Underlying function f(x) = C x + d on Fin n → ℝ.

AffineMap ℝ (Fin n → ℝ) (Fin m → ℝ) corresponding to f.

Composition of two integral affine maps.

Pull back a BB tree tHat on ℝᵐ along an integral affine map f(x) = C x + d.

theorem Cslib.Algorithms.BranchAndBound.BBTree.pullback_constraintSets {n m : ℕ} (f : IntegralAffineMap n m) (t : BBTree m) (C : Set (Fin n → ℝ)) :
C ∈ (pullback f t).leafConstraintSets → ∃ C' ∈ t.leafConstraintSets, ∀ x ∈ C, f.eval x ∈ C'
theorem Cslib.Algorithms.BranchAndBound.affine_simulation {n m : ℕ} {P : Set (Fin n → ℝ)} (f : IntegralAffineMap n m) (tHat : BBTree m) :
∃ (t : BBTree n), t.size = tHat.size ∧ f.eval '' t.eval P ⊆ tHat.eval (f.eval '' P)

Simulation of a BB tree under an integral affine map ([DeyDubeyMolinaro2023, Lemma 5, §3, pp. 8–9], generalized from polytopes to arbitrary sets P ⊆ ℝⁿ without requiring boundedness): pulling back tHat along f yields a tree t of the same size with f.eval '' t.eval P ⊆ tHat.eval (f.eval '' P).

theorem Cslib.Algorithms.BranchAndBound.BBhardness_affine_le {n m : ℕ} {P : Set (Fin n → ℝ)} (hP : Bornology.IsBounded P) (f : IntegralAffineMap n m) (hPinf : {x : Fin n → ℝ | x ∈ P ∧ IsIntegerPoint x} = ∅) (hQinf : {y : Fin m → ℝ | y ∈ f.eval '' P ∧ IsIntegerPoint y} = ∅) :

BB hardness transfer for integer-infeasible sets under an integral affine map ([DeyDubeyMolinaro2023, Corollary 3, §3, p. 9], generalized from polytopes to bounded sets P ⊆ ℝⁿ): if both P and f.eval '' P are integer-infeasible, then BBhardness P ≤ BBhardness (f.eval '' P). (As in the source, hPinf is stated explicitly although it follows from hQinf and f.isIntegerPoint_eval.)

theorem Cslib.Algorithms.BranchAndBound.BBdepth_affine_le {n m : ℕ} {P : Set (Fin n → ℝ)} (hP : Bornology.IsBounded P) (f : IntegralAffineMap n m) {x : Fin n → ℝ} (hxP : x ∈ P) (hfxPI : f.eval x ∉ integerHull (f.eval '' P)) :
BBdepth x P ≤ BBdepth (f.eval x) (f.eval '' P)

BB depth transfer under an integral affine map ([DeyDubeyMolinaro2023, Corollary 4, §3, p. 9], generalized from polytopes to bounded sets P ⊆ ℝⁿ): for x ∈ P with f.eval x ∉ integerHull (f.eval '' P), BBdepth x P ≤ BBdepth (f.eval x) (f.eval '' P). (The hypothesis x ∈ P ensures f.eval x ∈ f.eval '' P so a finite separating tree exists via BBTree.exists_universal_grid_bbTree; x ∉ integerHull P is omitted because it follows from hfxPI.)

theorem Cslib.Algorithms.BranchAndBound.BBrank_affine_le {n m : ℕ} {P : Set (Fin n → ℝ)} {T : Set (Fin m → ℝ)} (hP : Bornology.IsBounded P) (hT : Bornology.IsBounded T) (f : IntegralAffineMap n m) (hf_inj : Function.Injective f.eval) (hf_img : f.eval '' P ⊆ T) (hf_int : {y : Fin m → ℝ | y ∈ T ∧ IsIntegerPoint y} ⊆ f.eval '' {x : Fin n → ℝ | x ∈ P ∧ IsIntegerPoint x}) :

Hardness lemma for BB rank under an injective integral affine embedding ([DeyDubeyMolinaro2023, Lemma 6, §3, pp. 9–10], generalized from polytopes to bounded sets P ⊆ ℝⁿ and T ⊆ ℝᵐ): if f is injective, f.eval '' P ⊆ T, and every integer point of T is the image of an integer point of P, then BBrank P ≤ BBrank T.

Helly-based infeasibility lower bound #

theorem Cslib.Algorithms.BranchAndBound.helly_infeas_leaf_lower_bound {n : ℕ} (C_P D : Finset (Set (Fin n → ℝ))) (hconv : ∀ c ∈ C_P, Convex ℝ c) (hD : D ⊆ C_P) (hPne : (⋂₀ ↑C_P).Nonempty) (hPinf : {x : Fin n → ℝ | x ∈ ⋂₀ ↑C_P ∧ IsIntegerPoint x} = ∅) (hcrit : ∀ C ⊆ C_P, ¬D ⊆ C → ∃ (z : Fin n → ℝ), IsIntegerPoint z ∧ ∀ c ∈ C, z ∈ c) {t : BBTree n} (ht : t.CertifiesInfeas (⋂₀ ↑C_P)) :
0 < n ∧ D.card ≤ n * t.numLeaves ∧ 2 * ↑D.card / ↑n - 1 ≤ ↑t.size

Generalized Dadush–Tiwari Lemma ([DeyDubeyMolinaro2023, Lemma 7, §4, p. 11], generalizing the Helly-based branching lower bound of [DT20] from polytopes to finite intersections of arbitrary convex sets): if P = ⋂₀ C_P is a non-empty, integer-infeasible intersection of convex constraints and dropping any single member of a critical subfamily D ⊆ C_P restores integer feasibility, then 0 < n and every BB tree certifying integer-infeasibility of P satisfies D.card ≤ n * t.numLeaves and 2 * D.card / n - 1 ≤ t.size. (The hypothesis hD : D ⊆ C_P is stated explicitly to match the source statement, though it follows from hcrit and hPinf.)