Documentation

CslibFrontier.Algorithms.Lean.Submodular.ContinuousGreedy

Continuous Greedy (1 - 1/e) Submodular Maximization over Matroids #

This module formalizes the discretized continuous greedy algorithm and its combination with deterministic pipage rounding for maximizing a monotone submodular function f : Finset ι → β subject to a matroid constraint ([CCPV11], Section 3).

Algorithm and scope #

Starting from x₀ = 0, for N ≥ 1 steps of size δ = 1 / N:

  1. At step k < N, compute the exact multilinear gradient w_k i = multilinearPartial f x_k i and select a maximum-weight independent set I_k of M over xs via Cslib.Algorithms.Lean.Matroid.greedyMaxBasis.
  2. Advance x_{k+1} = addOn x_k I_k (1 / N).
  3. After N steps, x_N ∈ matroidPolytope M is rounded deterministically by pipageRound f M x_N to an independent set I with multilinearExt f x_N ≤ f I.

Scope note: continuousGreedy evaluates the exact multilinear partial derivatives multilinearPartial f x_k directly rather than the Monte Carlo random-sampling estimates of [CCPV11], and this module makes no query-complexity or running-time claim.

Main definitions #

Main results #

References #

Discretized continuous greedy algorithm #

def Cslib.Algorithms.Lean.Submodular.continuousGreedyStep {ι : Type u_1} {β : Type u_2} [Fintype ι] [DecidableEq ι] [CommRing β] [LinearOrder β] (f : Finset ι → β) (indep : Finset ι → Bool) (xs : List ι) (δ : β) (x : ι → β) :
ι → β

One step of discretized continuous greedy with step size δ: select a maximum-weight independent set I under the exact multilinear gradient multilinearPartial f x via Matroid.greedyMaxBasis, and advance x along δ • 1_I.

def Cslib.Algorithms.Lean.Submodular.continuousGreedyIter {ι : Type u_1} {β : Type u_2} [Fintype ι] [DecidableEq ι] [CommRing β] [LinearOrder β] (f : Finset ι → β) (indep : Finset ι → Bool) (xs : List ι) (δ : β) :
ℕ → ι → β

k iterations of continuousGreedyStep with step size δ starting from 0.

def Cslib.Algorithms.Lean.Submodular.continuousGreedy {ι : Type u_1} {β : Type u_2} [Fintype ι] [DecidableEq ι] [Field β] [LinearOrder β] (f : Finset ι → β) (indep : Finset ι → Bool) (xs : List ι) (N : ℕ) :
ι → β

Discretized N-step continuous greedy algorithm ([CCPV11], Section 3.1) with step size 1 / N, evaluating exact multilinearPartial gradients (no Monte Carlo sampling or running-time/query bound is claimed).

noncomputable def Cslib.Algorithms.Lean.Submodular.continuousGreedyRounded {ι : Type u_1} {β : Type u_2} [Fintype ι] [DecidableEq ι] [Field β] [LinearOrder β] [IsStrictOrderedRing β] (f : Finset ι → β) (M : Matroid ι) (indep : Finset ι → Bool) (xs : List ι) (N : ℕ) :

Continuous greedy followed by deterministic pipage rounding, returning an independent set of M.

Polytope feasibility and algebraic (1 - (1 - 1/N)^N) bound #

theorem Cslib.Algorithms.Lean.Submodular.continuousGreedy_mem_matroidPolytope {ι : Type u_1} {β : Type u_2} [Fintype ι] [DecidableEq ι] [Field β] [LinearOrder β] [IsStrictOrderedRing β] (f : Finset ι → β) {M : Matroid ι} {indep : Finset ι → Bool} (hM : ∀ (S : Finset ι), indep S = true ↔ M.Indep ↑S) (xs : List ι) {N : ℕ} (hN : 0 < N) :

After N ≥ 1 steps, continuousGreedy produces a point in matroidPolytope M.

theorem Cslib.Algorithms.Lean.Submodular.continuousGreedyRounded_indep {ι : Type u_1} {β : Type u_2} [Fintype ι] [DecidableEq ι] [Field β] [LinearOrder β] [IsStrictOrderedRing β] (f : Finset ι → β) {M : Matroid ι} {indep : Finset ι → Bool} (hM : ∀ (S : Finset ι), indep S = true ↔ M.Indep ↑S) (xs : List ι) {N : ℕ} (hN : 0 < N) :
M.Indep ↑(continuousGreedyRounded f M indep xs N)

continuousGreedyRounded always outputs an independent set of M when N ≥ 1, over any ordered field β.

theorem Cslib.Algorithms.Lean.Submodular.multilinearExt_le_continuousGreedyRounded {ι : Type u_1} {β : Type u_2} [Fintype ι] [DecidableEq ι] [Field β] [LinearOrder β] [IsStrictOrderedRing β] {f : Finset ι → β} (hf : IsSubmodular f) {M : Matroid ι} {indep : Finset ι → Bool} (hM : ∀ (S : Finset ι), indep S = true ↔ M.Indep ↑S) (xs : List ι) {N : ℕ} (hN : 0 < N) :
multilinearExt f (continuousGreedy f indep xs N) ≤ f (continuousGreedyRounded f M indep xs N)

Pipage rounding does not decrease the multilinear objective at the continuousGreedy output, over any ordered field β.

theorem Cslib.Algorithms.Lean.Submodular.continuousGreedy_approx_additive {ι : Type u_1} {β : Type u_2} [Fintype ι] [DecidableEq ι] [Field β] [LinearOrder β] [IsStrictOrderedRing β] {f : Finset ι → β} (hf : IsSubmodular f) (hmono : Monotone f) (hf0 : 0 ≤ f ∅) {M : Matroid ι} {indep : Finset ι → Bool} (hM : ∀ (S : Finset ι), indep S = true ↔ M.Indep ↑S) {xs : List ι} {N : ℕ} (hN : 0 < N) {B : β} (hB0 : 0 ≤ B) (hB : ∀ i ∈ xs, M.Indep {i} → f {i} - f ∅ ≤ B) {O : Finset ι} (hO : M.Indep ↑O) (hOxs : ↑O ⊆ {i : ι | i ∈ xs}) :
(1 - (1 - 1 / ↑N) ^ N) * f O - ↑((matroidRk M Finset.univ).choose 2) * B / ↑N ≤ multilinearExt f (continuousGreedy f indep xs N)

Additive-error algebraic continuous greedy bound over any ordered field β: for monotone submodular f (0 ≤ f ∅), any B ≥ 0 bounding independent singleton gains f {i} - f ∅ ≤ B on elements i ∈ xs, any N ≥ 1, and any independent O covered by xs, (1 - (1 - 1/N)^N) * f O - r.choose 2 * B / N ≤ multilinearExt f (continuousGreedy f indep xs N), where r = matroidRk M Finset.univ. Evaluates exact multilinearPartial gradients (no sampling or running-time/query claim).

theorem Cslib.Algorithms.Lean.Submodular.continuousGreedy_approx {ι : Type u_1} {β : Type u_2} [Fintype ι] [DecidableEq ι] [Field β] [LinearOrder β] [IsStrictOrderedRing β] {f : Finset ι → β} (hf : IsSubmodular f) (hmono : Monotone f) (hf0 : 0 ≤ f ∅) {M : Matroid ι} {indep : Finset ι → Bool} (hM : ∀ (S : Finset ι), indep S = true ↔ M.Indep ↑S) {xs : List ι} {N : ℕ} (hN : 0 < N) {O : Finset ι} (hO : M.Indep ↑O) (hOxs : ↑O ⊆ {i : ι | i ∈ xs}) (hOmax : ∀ (J : Finset ι), M.Indep ↑J → ↑J ⊆ {i : ι | i ∈ xs} → f J ≤ f O) :
(1 - (1 - 1 / ↑N) ^ N - ↑((matroidRk M Finset.univ).choose 2) / ↑N) * f O ≤ multilinearExt f (continuousGreedy f indep xs N)

Multiplicative algebraic continuous greedy bound over any ordered field β: against an independent set O optimal among independent subsets of {i | i ∈ xs}, (1 - (1 - 1/N)^N - r.choose 2 / N) * f O ≤ multilinearExt f (continuousGreedy f indep xs N). Uses exact multilinearPartial gradients (no sampling or running-time/query claim).

theorem Cslib.Algorithms.Lean.Submodular.continuousGreedyRounded_approx {ι : Type u_1} {β : Type u_2} [Fintype ι] [DecidableEq ι] [Field β] [LinearOrder β] [IsStrictOrderedRing β] {f : Finset ι → β} (hf : IsSubmodular f) (hmono : Monotone f) (hf0 : 0 ≤ f ∅) {M : Matroid ι} {indep : Finset ι → Bool} (hM : ∀ (S : Finset ι), indep S = true ↔ M.Indep ↑S) {xs : List ι} {N : ℕ} (hN : 0 < N) {O : Finset ι} (hO : M.Indep ↑O) (hOxs : ↑O ⊆ {i : ι | i ∈ xs}) (hOmax : ∀ (J : Finset ι), M.Indep ↑J → ↑J ⊆ {i : ι | i ∈ xs} → f J ≤ f O) :
(1 - (1 - 1 / ↑N) ^ N - ↑((matroidRk M Finset.univ).choose 2) / ↑N) * f O ≤ f (continuousGreedyRounded f M indep xs N)

Ordered-field continuous greedy + pipage rounding bound: against an independent set O optimal among independent subsets of {i | i ∈ xs}, (1 - (1 - 1/N)^N - r.choose 2 / N) * f O ≤ f (continuousGreedyRounded f M indep xs N).

Real (1 - 1/e) bounds for continuous greedy and pipage rounding #

theorem Cslib.Algorithms.Lean.Submodular.one_sub_exp_neg_one_sub_mul_le_continuousGreedy {ι : Type u_1} [Fintype ι] [DecidableEq ι] {f : Finset ι → ℝ} (hf : IsSubmodular f) (hmono : Monotone f) (hf0 : 0 ≤ f ∅) {M : Matroid ι} {indep : Finset ι → Bool} (hM : ∀ (S : Finset ι), indep S = true ↔ M.Indep ↑S) {xs : List ι} {N : ℕ} (hN : 0 < N) {O : Finset ι} (hO : M.Indep ↑O) (hOxs : ↑O ⊆ {i : ι | i ∈ xs}) (hOmax : ∀ (J : Finset ι), M.Indep ↑J → ↑J ⊆ {i : ι | i ∈ xs} → f J ≤ f O) :
(1 - Real.exp (-1) - ↑((matroidRk M Finset.univ).choose 2) / ↑N) * f O ≤ multilinearExt f (continuousGreedy f indep xs N)

Continuous Greedy (1 - 1/e - C/N) Fractional Guarantee ([CCPV11], Section 3.1): for every monotone submodular f : Finset ι → ℝ (0 ≤ f ∅), finite matroid M, N ≥ 1, and independent set O optimal within xs, (1 - Real.exp (-1) - r.choose 2 / N) * f O ≤ multilinearExt f (continuousGreedy f indep xs N). Evaluates exact multilinearPartial gradients rather than Monte Carlo sampling estimates, and makes no query-complexity or running-time claim.

theorem Cslib.Algorithms.Lean.Submodular.one_sub_exp_neg_one_sub_mul_le_continuousGreedyRounded {ι : Type u_1} [Fintype ι] [DecidableEq ι] {f : Finset ι → ℝ} (hf : IsSubmodular f) (hmono : Monotone f) (hf0 : 0 ≤ f ∅) {M : Matroid ι} {indep : Finset ι → Bool} (hM : ∀ (S : Finset ι), indep S = true ↔ M.Indep ↑S) {xs : List ι} {N : ℕ} (hN : 0 < N) {O : Finset ι} (hO : M.Indep ↑O) (hOxs : ↑O ⊆ {i : ι | i ∈ xs}) (hOmax : ∀ (J : Finset ι), M.Indep ↑J → ↑J ⊆ {i : ι | i ∈ xs} → f J ≤ f O) :
(1 - Real.exp (-1) - ↑((matroidRk M Finset.univ).choose 2) / ↑N) * f O ≤ f (continuousGreedyRounded f M indep xs N)

Calinescu–Chekuri–Pál–Vondrák Continuous Greedy + Pipage Rounding Guarantee ([CCPV11], Section 3): for every monotone submodular f : Finset ι → ℝ (0 ≤ f ∅), finite matroid M, N ≥ 1, and independent set O optimal within xs, continuousGreedyRounded f M indep xs N is independent in M and achieves (1 - Real.exp (-1) - r.choose 2 / N) * f O ≤ f (continuousGreedyRounded f M indep xs N). Evaluates exact multilinearPartial gradients rather than Monte Carlo sampling estimates, and makes no query-complexity or running-time claim.

theorem Cslib.Algorithms.Lean.Submodular.exists_continuousGreedyRounded_eps {ι : Type u_1} [Fintype ι] [DecidableEq ι] {f : Finset ι → ℝ} (hf : IsSubmodular f) (hmono : Monotone f) (hf0 : 0 ≤ f ∅) {M : Matroid ι} {indep : Finset ι → Bool} (hM : ∀ (S : Finset ι), indep S = true ↔ M.Indep ↑S) {xs : List ι} {O : Finset ι} (hO : M.Indep ↑O) (hOxs : ↑O ⊆ {i : ι | i ∈ xs}) (hOmax : ∀ (J : Finset ι), M.Indep ↑J → ↑J ⊆ {i : ι | i ∈ xs} → f J ≤ f O) {ε : ℝ} (hε : 0 < ε) :
∃ (N : ℕ), 0 < N ∧ M.Indep ↑(continuousGreedyRounded f M indep xs N) ∧ (1 - Real.exp (-1) - ε) * f O ≤ f (continuousGreedyRounded f M indep xs N)

(1 - 1/e - ε) corollary: for every ε > 0, there exists a step count N ≥ 1 such that continuousGreedyRounded f M indep xs N is independent in M and achieves at least (1 - Real.exp (-1) - ε) * f O (using exact multilinearPartial gradients; no sampling or running-time/query claim).