Documentation

CslibFrontier.Algorithms.Ellipsoid.Basic

The central-cut ellipsoid method with a strong separation oracle #

Khachiyan's ellipsoid method [Kha79] for a set P ⊆ ℝⁿ given by a strong separation oracle [GrotschelLovaszSchrijver1988, Section 2.1]. Starting from an ellipsoid E(A₀, c₀) ⊇ P, each step queries the oracle at the current center. If the oracle certifies the center is in P the method stops (the state no longer changes). Otherwise it returns a hyperplane through the center with P strictly on one side, and the method replaces the ellipsoid by the central-cut ellipsoid Matrix.centralCutShape/Matrix.centralCutCenter containing that half [GrotschelLovaszSchrijver1988, Section 3.1], [BertsimasTsitsiklis1997, Section 8.2]. This is the exact-arithmetic method of those sections; the finite-precision central-cut method of [GrotschelLovaszSchrijver1988, Section 3.2], with rounding and its larger constants, is not formalized here.

Since each cut shrinks the volume by the factor exp (-1 / (2 (n + 1))) (Matrix.volume_ellipsoid_centralCut_lt), after N steps either the current center is in P or vol P ≤ exp (-N / (2 (n + 1))) · vol E(A₀, c₀).

Arithmetic is exact over ℝ: the square root in the update is computed exactly and nothing is rounded. Finite-precision ellipsoids, the bit complexity of the method, and its use for rational linear programming (a volume lower bound for full-dimensional rational polytopes and the reduction of feasibility to that case) are not formalized here.

Main definitions #

Main results #

References #

structure Cslib.Algorithms.Ellipsoid.IsStrongSeparationOracle {ι : Type u_1} [Fintype ι] (P : Set (ι → ℝ)) (sep : (ι → ℝ) → Option (ι → ℝ)) :

sep is a strong separation oracle for P [GrotschelLovaszSchrijver1988, Section 2.1]: on a query z it either answers none, certifying z ∈ P, or returns a nonzero vector a with a ⬝ᵥ x < a ⬝ᵥ z for every x ∈ P, i.e. a hyperplane strictly separating z from P.

Grötschel, Lovász and Schrijver pose the strong separation problem for convex sets, with a normalized cut vector given in binary. Here P is an arbitrary set, any nonzero real a is allowed and no encoding or output size is involved, so for convex P this is the real-number content of that problem up to scaling of a.

theorem Cslib.Algorithms.Ellipsoid.IsStrongSeparationOracle.eq_none_iff {ι : Type u_1} [Fintype ι] {P : Set (ι → ℝ)} {sep : (ι → ℝ) → Option (ι → ℝ)} (h : IsStrongSeparationOracle P sep) {z : ι → ℝ} :
sep z = none ↔ z ∈ P

A strong separation oracle decides membership: it answers none exactly on P.

structure Cslib.Algorithms.Ellipsoid.State (ι : Type u_2) :
Type u_2

The state of the ellipsoid method: the current ellipsoid ellipsoid shape center.

  • shape : Matrix ι ι ℝ

    The shape matrix A of the current ellipsoid E(A, c).

  • center : ι → ℝ

    The center c of the current ellipsoid E(A, c).

noncomputable def Cslib.Algorithms.Ellipsoid.step {ι : Type u_1} [Fintype ι] (sep : (ι → ℝ) → Option (ι → ℝ)) (s : State ι) :

One step of the central-cut ellipsoid method: query the oracle at the center; if it answers none the center lies in P and the state is kept, otherwise cut through the center with the returned normal [GrotschelLovaszSchrijver1988, Section 3.1].

noncomputable def Cslib.Algorithms.Ellipsoid.run {ι : Type u_1} [Fintype ι] (sep : (ι → ℝ) → Option (ι → ℝ)) (A₀ : Matrix ι ι ℝ) (c₀ : ι → ℝ) :
ℕ → State ι

N steps of the central-cut ellipsoid method started from E(A₀, c₀).

theorem Cslib.Algorithms.Ellipsoid.step_of_eq_none {ι : Type u_1} [Fintype ι] {sep : (ι → ℝ) → Option (ι → ℝ)} {s : State ι} (h : sep s.center = none) :
step sep s = s
theorem Cslib.Algorithms.Ellipsoid.step_of_eq_some {ι : Type u_1} [Fintype ι] {sep : (ι → ℝ) → Option (ι → ℝ)} {s : State ι} {a : ι → ℝ} (h : sep s.center = some a) :
step sep s = { shape := s.shape.centralCutShape a, center := s.shape.centralCutCenter s.center a }
@[simp]
theorem Cslib.Algorithms.Ellipsoid.run_zero {ι : Type u_1} [Fintype ι] {sep : (ι → ℝ) → Option (ι → ℝ)} (A₀ : Matrix ι ι ℝ) (c₀ : ι → ℝ) :
run sep A₀ c₀ 0 = { shape := A₀, center := c₀ }
theorem Cslib.Algorithms.Ellipsoid.run_succ {ι : Type u_1} [Fintype ι] {sep : (ι → ℝ) → Option (ι → ℝ)} (A₀ : Matrix ι ι ℝ) (c₀ : ι → ℝ) (N : ℕ) :
run sep A₀ c₀ (N + 1) = step sep (run sep A₀ c₀ N)
theorem Cslib.Algorithms.Ellipsoid.posDef_run_shape {ι : Type u_1} [Fintype ι] {sep : (ι → ℝ) → Option (ι → ℝ)} {P : Set (ι → ℝ)} (hsep : IsStrongSeparationOracle P sep) {A₀ : Matrix ι ι ℝ} (hA₀ : A₀.PosDef) (c₀ : ι → ℝ) (N : ℕ) :
(run sep A₀ c₀ N).shape.PosDef

Every shape produced by the method is positive definite.

theorem Cslib.Algorithms.Ellipsoid.subset_ellipsoid_run {ι : Type u_1} [Fintype ι] {sep : (ι → ℝ) → Option (ι → ℝ)} {P : Set (ι → ℝ)} [DecidableEq ι] (hsep : IsStrongSeparationOracle P sep) {A₀ : Matrix ι ι ℝ} (hA₀ : A₀.PosDef) {c₀ : ι → ℝ} (hP : P ⊆ A₀.ellipsoid c₀) (N : ℕ) :
P ⊆ (run sep A₀ c₀ N).shape.ellipsoid (run sep A₀ c₀ N).center

Every ellipsoid produced by the method contains P, if the initial one does.

theorem Cslib.Algorithms.Ellipsoid.center_mem_or_volume_ellipsoid_run_le {ι : Type u_1} [Fintype ι] {sep : (ι → ℝ) → Option (ι → ℝ)} {P : Set (ι → ℝ)} [DecidableEq ι] (hsep : IsStrongSeparationOracle P sep) {A₀ : Matrix ι ι ℝ} (hA₀ : A₀.PosDef) (c₀ : ι → ℝ) (N : ℕ) :
(run sep A₀ c₀ N).center ∈ P ∨ MeasureTheory.volume ((run sep A₀ c₀ N).shape.ellipsoid (run sep A₀ c₀ N).center) ≤ ENNReal.ofReal (Real.exp (-↑N / (2 * (↑(Fintype.card ι) + 1)))) * MeasureTheory.volume (A₀.ellipsoid c₀)

Volume decrease of the ellipsoid method: after N steps either the current center lies in P or the current ellipsoid has volume at most exp (-N / (2 (n + 1))) times the initial one, where n = card ι [GrotschelLovaszSchrijver1988, Section 3.1], [BertsimasTsitsiklis1997, Section 8.2].

theorem Cslib.Algorithms.Ellipsoid.exists_center_mem_or_volume_le {ι : Type u_1} [Fintype ι] {sep : (ι → ℝ) → Option (ι → ℝ)} [DecidableEq ι] {Target Inner : Set (ι → ℝ)} (hnone : ∀ {z : ι → ℝ}, sep z = none → z ∈ Target) (hne : ∀ {z a : ι → ℝ}, z ∉ Target → sep z = some a → a ≠ 0) (hsep : ∀ {z a : ι → ℝ}, z ∉ Target → sep z = some a → ∀ x ∈ Inner, a ⬝ᵥ x < a ⬝ᵥ z) {A₀ : Matrix ι ι ℝ} (hA₀ : A₀.PosDef) {c₀ : ι → ℝ} (hI : Inner ⊆ A₀.ellipsoid c₀) (N : ℕ) :
(∃ k ≤ N, (run sep A₀ c₀ k).center ∈ Target) ∨ MeasureTheory.volume Inner ≤ ENNReal.ofReal (Real.exp (-↑N / (2 * (↑(Fintype.card ι) + 1)))) * MeasureTheory.volume (A₀.ellipsoid c₀)

Volume decrease for asymmetric target/inner-set separation oracles: if sep z = none certifies z ∈ Target, while on every z ∉ Target with sep z = some a, a is nonzero and strictly separates z from Inner ⊆ E(A₀, c₀), then after N steps either some iterate k ≤ N hits Target, or vol Inner ≤ exp (-N / (2 (n + 1))) · vol E(A₀, c₀).

theorem Cslib.Algorithms.Ellipsoid.center_mem_or_volume_le {ι : Type u_1} [Fintype ι] {sep : (ι → ℝ) → Option (ι → ℝ)} {P : Set (ι → ℝ)} [DecidableEq ι] (hsep : IsStrongSeparationOracle P sep) {A₀ : Matrix ι ι ℝ} (hA₀ : A₀.PosDef) {c₀ : ι → ℝ} (hP : P ⊆ A₀.ellipsoid c₀) (N : ℕ) :
(run sep A₀ c₀ N).center ∈ P ∨ MeasureTheory.volume P ≤ ENNReal.ofReal (Real.exp (-↑N / (2 * (↑(Fintype.card ι) + 1)))) * MeasureTheory.volume (A₀.ellipsoid c₀)

The ellipsoid method with a strong separation oracle: if P ⊆ E(A₀, c₀), then after N steps either the current center lies in P or vol P ≤ exp (-N / (2 (n + 1))) · vol E(A₀, c₀) [GrotschelLovaszSchrijver1988, Section 3.1], [BertsimasTsitsiklis1997, Section 8.2]. Arithmetic is exact over ℝ.

theorem Cslib.Algorithms.Ellipsoid.center_mem_or_volume_lt {ι : Type u_1} [Fintype ι] {sep : (ι → ℝ) → Option (ι → ℝ)} {P : Set (ι → ℝ)} [DecidableEq ι] (hsep : IsStrongSeparationOracle P sep) {A₀ : Matrix ι ι ℝ} (hA₀ : A₀.PosDef) {c₀ : ι → ℝ} (hP : P ⊆ A₀.ellipsoid c₀) {v : ℝ} (hv : 0 < v) {N : ℕ} (hN : 2 * (↑(Fintype.card ι) + 1) * Real.log ((MeasureTheory.volume (A₀.ellipsoid c₀)).toReal / v) < ↑N) :

Iteration bound: if P ⊆ E(A₀, c₀), 0 < v and N > 2 (n + 1) ln (vol E(A₀, c₀) / v), then after N steps either the current center lies in P or vol P < v [GrotschelLovaszSchrijver1988, Section 3.1], [BertsimasTsitsiklis1997, Section 8.2].

theorem Cslib.Algorithms.Ellipsoid.exists_center_mem_of_inner_ball_subset {ι : Type u_1} [Fintype ι] {sep : (ι → ℝ) → Option (ι → ℝ)} [DecidableEq ι] {Target Inner : Set (ι → ℝ)} (hnone : ∀ {z : ι → ℝ}, sep z = none → z ∈ Target) (hne : ∀ {z a : ι → ℝ}, z ∉ Target → sep z = some a → a ≠ 0) (hsep : ∀ {z a : ι → ℝ}, z ∉ Target → sep z = some a → ∀ x ∈ Inner, a ⬝ᵥ x < a ⬝ᵥ z) {r R : ℝ} (hr : 0 < r) (hR : 0 < R) {z₀ c₀ : ι → ℝ} (hz : {x : ι → ℝ | (x - z₀) ⬝ᵥ (x - z₀) ≤ r ^ 2} ⊆ Inner) (hIc : Inner ⊆ {x : ι → ℝ | (x - c₀) ⬝ᵥ (x - c₀) ≤ R ^ 2}) {N : ℕ} (hN : 2 * ↑(Fintype.card ι) * (↑(Fintype.card ι) + 1) * Real.log (R / r) < ↑N) :
∃ k ≤ N, (run sep (R ^ 2 • 1) c₀ k).center ∈ Target

Ball sandwich for asymmetric target/inner-set separation oracles: if sep z = none certifies z ∈ Target, while on every z ∉ Target with sep z = some a, a is nonzero and strictly separates z from Inner, and Inner contains a ball of radius r > 0 inside the ball of radius R > 0 about c₀, then some iterate k ≤ N hits Target for any N > 2 n (n + 1) ln (R / r).

theorem Cslib.Algorithms.Ellipsoid.center_mem_of_ball_subset {ι : Type u_1} [Fintype ι] {sep : (ι → ℝ) → Option (ι → ℝ)} {P : Set (ι → ℝ)} [DecidableEq ι] (hsep : IsStrongSeparationOracle P sep) {r R : ℝ} (hr : 0 < r) (hR : 0 < R) {z c₀ : ι → ℝ} (hzP : {x : ι → ℝ | (x - z) ⬝ᵥ (x - z) ≤ r ^ 2} ⊆ P) (hPc : P ⊆ {x : ι → ℝ | (x - c₀) ⬝ᵥ (x - c₀) ≤ R ^ 2}) {N : ℕ} (hN : 2 * ↑(Fintype.card ι) * (↑(Fintype.card ι) + 1) * Real.log (R / r) < ↑N) :
(run sep (R ^ 2 • 1) c₀ N).center ∈ P

Ball sandwich: if P contains a ball of radius r > 0 and lies in the ball of radius R about c₀, the method started from that ball finds a point of P within any N > 2 n (n + 1) ln (R / r) steps [GrotschelLovaszSchrijver1988, Section 3.1], [BertsimasTsitsiklis1997, Section 8.2].