Documentation

CslibFrontier.Algorithms.Lean.Submodular.MatroidGreedy

Greedy Submodular Maximization over Matroids and p-Systems #

This module formalizes the greedy algorithm of Fisher, Nemhauser, and Wolsey for maximizing a monotone submodular set function f : Finset α → β subject to a matroid constraint, or more generally a p-system constraint ([FNW78]; [CCPV11], Appendix B). Starting from S = ∅, each round inserts a feasible element c ∉ S with indep (insert c S) maximizing f (insert c S), and the algorithm stops when no feasible element remains.

It instantiates the general selector-driven framework in CslibFrontier.Algorithms.Lean.Submodular.ApproxMatroidGreedy with exact scanCandidates selection (α = 1).

Main definitions #

Main results #

References #

Monadic and pure greedy algorithm #

def Cslib.Algorithms.Lean.Submodular.submodularMatroidGreedyStep {α : Type u_1} {β : Type u_2} [DecidableEq α] [LinearOrder β] (f : Finset α → β) (indep : Finset α → Bool) (u : List α) (S : Finset α) :

One pure greedy round over the deduplicated ground list u: returns some (insert c S) for the feasible candidate c maximizing f (insert c S) (ties broken toward earlier elements of u), or none when no candidate is feasible.

def Cslib.Algorithms.Lean.Submodular.submodularMatroidGreedyLoop {α : Type u_1} {β : Type u_2} [DecidableEq α] [LinearOrder β] (f : Finset α → β) (indep : Finset α → Bool) (u : List α) :
ℕ → Finset α → Finset α

Pure greedy loop with fuel k, stopping at the first round without a feasible candidate.

def Cslib.Algorithms.Lean.Submodular.submodularMatroidGreedy {α : Type u_1} {β : Type u_2} [DecidableEq α] [LinearOrder β] (f : Finset α → β) (indep : Finset α → Bool) (xs : List α) :

Pure Fisher–Nemhauser–Wolsey greedy algorithm for maximizing f over the independent subsets of the ground list xs.

def Cslib.Algorithms.Lean.Submodular.submodularMatroidGreedyStepM {α β : Type} {m : Type → Type u_1} [Monad m] [DecidableEq α] [LinearOrder β] (evalSet : Finset α → m β) (indepM : Finset α → m Bool) (u : List α) (S : Finset α) :
m (Option (Finset α))

One monadic greedy round: one indepM call per element c ∉ S of u, then one evalSet call per feasible candidate.

def Cslib.Algorithms.Lean.Submodular.submodularMatroidGreedyLoopM {α β : Type} {m : Type → Type u_1} [Monad m] [DecidableEq α] [LinearOrder β] (evalSet : Finset α → m β) (indepM : Finset α → m Bool) (u : List α) :
ℕ → Finset α → m (Finset α)

Monadic greedy loop with fuel k, stopping at the first round without a feasible candidate.

def Cslib.Algorithms.Lean.Submodular.submodularMatroidGreedyM {α β : Type} {m : Type → Type u_1} [Monad m] [DecidableEq α] [LinearOrder β] (evalSet : Finset α → m β) (indepM : Finset α → m Bool) (xs : List α) :
m (Finset α)

Monadic Fisher–Nemhauser–Wolsey greedy algorithm with value-oracle callback evalSet and independence-oracle callback indepM.

Monad homomorphism and pure/Id.run bridges #

@[simp]
theorem Cslib.Algorithms.Lean.Submodular.submodularMatroidGreedyStepM_pure {α β : Type} [DecidableEq α] [LinearOrder β] {m : Type → Type u_1} [Monad m] [LawfulMonad m] (f : Finset α → β) (indep : Finset α → Bool) (u : List α) (S : Finset α) :
submodularMatroidGreedyStepM (fun (T : Finset α) => pure (f T)) (fun (T : Finset α) => pure (indep T)) u S = pure (submodularMatroidGreedyStep f indep u S)
@[simp]
theorem Cslib.Algorithms.Lean.Submodular.submodularMatroidGreedyLoopM_pure {α β : Type} [DecidableEq α] [LinearOrder β] {m : Type → Type u_1} [Monad m] [LawfulMonad m] (f : Finset α → β) (indep : Finset α → Bool) (u : List α) (k : ℕ) (S : Finset α) :
submodularMatroidGreedyLoopM (fun (T : Finset α) => pure (f T)) (fun (T : Finset α) => pure (indep T)) u k S = pure (submodularMatroidGreedyLoop f indep u k S)
@[simp]
theorem Cslib.Algorithms.Lean.Submodular.submodularMatroidGreedyM_pure {α β : Type} [DecidableEq α] [LinearOrder β] {m : Type → Type u_1} [Monad m] [LawfulMonad m] (f : Finset α → β) (indep : Finset α → Bool) (xs : List α) :
submodularMatroidGreedyM (fun (T : Finset α) => pure (f T)) (fun (T : Finset α) => pure (indep T)) xs = pure (submodularMatroidGreedy f indep xs)
@[simp]
theorem Cslib.Algorithms.Lean.Submodular.idRun_submodularMatroidGreedyM {α β : Type} [DecidableEq α] [LinearOrder β] (evalSet : Finset α → Id β) (indepM : Finset α → Id Bool) (xs : List α) :
(submodularMatroidGreedyM evalSet indepM xs).run = submodularMatroidGreedy (fun (T : Finset α) => (evalSet T).run) (fun (T : Finset α) => (indepM T).run) xs
theorem Cslib.IsMonadHom.map_submodularMatroidGreedyStepM {α β : Type} [DecidableEq α] [LinearOrder β] {m : Type → Type u_1} {n : Type → Type u_2} [Monad m] [Monad n] {φ : {γ : Type} → m γ → n γ} (hφ : IsMonadHom m n fun {α : Type} => φ) (evalSet : Finset α → m β) (indepM : Finset α → m Bool) (u : List α) (S : Finset α) :
φ (Algorithms.Lean.Submodular.submodularMatroidGreedyStepM evalSet indepM u S) = Algorithms.Lean.Submodular.submodularMatroidGreedyStepM (fun (T : Finset α) => φ (evalSet T)) (fun (T : Finset α) => φ (indepM T)) u S
theorem Cslib.IsMonadHom.map_submodularMatroidGreedyLoopM {α β : Type} [DecidableEq α] [LinearOrder β] {m : Type → Type u_1} {n : Type → Type u_2} [Monad m] [Monad n] {φ : {γ : Type} → m γ → n γ} (hφ : IsMonadHom m n fun {α : Type} => φ) (evalSet : Finset α → m β) (indepM : Finset α → m Bool) (u : List α) (k : ℕ) (S : Finset α) :
φ (Algorithms.Lean.Submodular.submodularMatroidGreedyLoopM evalSet indepM u k S) = Algorithms.Lean.Submodular.submodularMatroidGreedyLoopM (fun (T : Finset α) => φ (evalSet T)) (fun (T : Finset α) => φ (indepM T)) u k S
theorem Cslib.IsMonadHom.map_submodularMatroidGreedyM {α β : Type} [DecidableEq α] [LinearOrder β] {m : Type → Type u_1} {n : Type → Type u_2} [Monad m] [Monad n] {φ : {γ : Type} → m γ → n γ} (hφ : IsMonadHom m n fun {α : Type} => φ) (evalSet : Finset α → m β) (indepM : Finset α → m Bool) (xs : List α) :
φ (Algorithms.Lean.Submodular.submodularMatroidGreedyM evalSet indepM xs) = Algorithms.Lean.Submodular.submodularMatroidGreedyM (fun (T : Finset α) => φ (evalSet T)) (fun (T : Finset α) => φ (indepM T)) xs

The greedy chain, feasibility, and maximality #

def Cslib.Algorithms.Lean.Submodular.submodularMatroidGreedyChain {α : Type u_1} {β : Type u_2} [DecidableEq α] [LinearOrder β] (f : Finset α → β) (indep : Finset α → Bool) (u : List α) :
ℕ → Finset α

The chain S₀ = ∅ ⊆ S₁ ⊆ ⋯ of greedy prefixes over the ground list u: S (t + 1) is the next greedy prefix, or S t once no feasible candidate remains.

theorem Cslib.Algorithms.Lean.Submodular.exists_of_submodularMatroidGreedyStep_eq_some {α : Type u_1} {β : Type u_2} [DecidableEq α] [LinearOrder β] {f : Finset α → β} {indep : Finset α → Bool} {u : List α} {S S' : Finset α} (h : submodularMatroidGreedyStep f indep u S = some S') :
∃ c ∈ feasibleCandidates indep u S, S' = insert c S ∧ ∀ x ∈ feasibleCandidates indep u S, f (insert x S) ≤ f S'

A successful greedy round inserts a feasible candidate c maximizing f (insert c S) over all feasible candidates.

theorem Cslib.Algorithms.Lean.Submodular.submodularMatroidGreedyStep_eq_none_iff {α : Type u_1} {β : Type u_2} [DecidableEq α] [LinearOrder β] {f : Finset α → β} {indep : Finset α → Bool} {u : List α} {S : Finset α} :
@[simp]
theorem Cslib.Algorithms.Lean.Submodular.submodularMatroidGreedyChain_zero {α : Type u_1} {β : Type u_2} [DecidableEq α] [LinearOrder β] (f : Finset α → β) (indep : Finset α → Bool) (u : List α) :

The greedy output is the prefix S n of the greedy chain, n = xs.eraseDups.length.

theorem Cslib.Algorithms.Lean.Submodular.subset_submodularMatroidGreedyLoop {α : Type u_1} {β : Type u_2} [DecidableEq α] [LinearOrder β] (f : Finset α → β) (indep : Finset α → Bool) (u : List α) (k : ℕ) (S : Finset α) :
S ⊆ submodularMatroidGreedyLoop f indep u k S

The greedy loop only adds elements.

theorem Cslib.Algorithms.Lean.Submodular.submodularMatroidGreedyChain_subset_succ {α : Type u_1} {β : Type u_2} [DecidableEq α] [LinearOrder β] (f : Finset α → β) (indep : Finset α → Bool) (u : List α) (t : ℕ) :
theorem Cslib.Algorithms.Lean.Submodular.submodularMatroidGreedyChain_subset_toFinset {α : Type u_1} {β : Type u_2} [DecidableEq α] [LinearOrder β] (f : Finset α → β) (indep : Finset α → Bool) (u : List α) (t : ℕ) :
theorem Cslib.Algorithms.Lean.Submodular.indep_submodularMatroidGreedyChain {α : Type u_1} {β : Type u_2} [DecidableEq α] [LinearOrder β] {f : Finset α → β} {indep : Finset α → Bool} (h0 : indep ∅ = true) (u : List α) (t : ℕ) :
indep (submodularMatroidGreedyChain f indep u t) = true
theorem Cslib.Algorithms.Lean.Submodular.card_submodularMatroidGreedyChain_le {α : Type u_1} {β : Type u_2} [DecidableEq α] [LinearOrder β] (f : Finset α → β) (indep : Finset α → Bool) (u : List α) (t : ℕ) :
theorem Cslib.Algorithms.Lean.Submodular.submodularMatroidGreedy_subset_toFinset {α : Type u_1} {β : Type u_2} [DecidableEq α] [LinearOrder β] (f : Finset α → β) (indep : Finset α → Bool) (xs : List α) :

The greedy output is a subset of the ground list.

theorem Cslib.Algorithms.Lean.Submodular.indep_submodularMatroidGreedy {α : Type u_1} {β : Type u_2} [DecidableEq α] [LinearOrder β] {f : Finset α → β} {indep : Finset α → Bool} (h0 : indep ∅ = true) (xs : List α) :
indep (submodularMatroidGreedy f indep xs) = true

The greedy output is independent whenever ∅ is.

theorem Cslib.Algorithms.Lean.Submodular.not_indep_insert_submodularMatroidGreedy {α : Type u_1} {β : Type u_2} [DecidableEq α] [LinearOrder β] (f : Finset α → β) (indep : Finset α → Bool) {xs : List α} {x : α} (hx : x ∈ xs) (hxG : x ∉ submodularMatroidGreedy f indep xs) :
indep (insert x (submodularMatroidGreedy f indep xs)) = false

The greedy output is maximal: no element of the ground list can be added to it while preserving independence.

theorem Cslib.Algorithms.Lean.Submodular.submodularMatroidGreedy_isBasis' {α : Type u_1} {β : Type u_2} [DecidableEq α] [LinearOrder β] {M : Matroid α} {indep : Finset α → Bool} (hM : ∀ (S : Finset α), indep S = true ↔ M.Indep ↑S) (f : Finset α → β) (xs : List α) :
M.IsBasis' ↑(submodularMatroidGreedy f indep xs) {x : α | x ∈ xs}

Under an independence test implementing M : Matroid α, the greedy output is a basis of the ground list, M.IsBasis' G {x | x ∈ xs}.

Approximation guarantees #

theorem Cslib.Algorithms.Lean.Submodular.le_submodularMatroidGreedyChain_succ {α : Type u_1} {β : Type u_2} [DecidableEq α] [LinearOrder β] {f : Finset α → β} {indep : Finset α → Bool} {u : List α} {t : ℕ} {o : α} (hou : o ∈ u) (hoS : o ∉ submodularMatroidGreedyChain f indep u t) (hind : indep (insert o (submodularMatroidGreedyChain f indep u t)) = true) :
f (insert o (submodularMatroidGreedyChain f indep u t)) ≤ f (submodularMatroidGreedyChain f indep u (t + 1))

A feasible element o ∉ S t of u cannot gain more over S t than the greedy round did.

theorem Cslib.Algorithms.Lean.Submodular.sum_le_nsmul_sub_of_submodularMatroidGreedyChain {α : Type u_1} {β : Type u_2} [DecidableEq α] [AddCommGroup β] [LinearOrder β] [IsOrderedAddMonoid β] {f : Finset α → β} {indep : Finset α → Bool} {p : ℕ} (hmono : Monotone f) (hsys : Matroid.IsPSystem (fun (S : Finset α) => indep S = true) p) {u : List α} {O : Finset α} (hO : indep O = true) (hOu : O ⊆ u.toFinset) {c : α → β} (hc : ∀ o ∈ O, ∀ t < u.toFinset.card, o ∉ submodularMatroidGreedyChain f indep u t → indep (insert o (submodularMatroidGreedyChain f indep u t)) = true → c o ≤ f (submodularMatroidGreedyChain f indep u (t + 1)) - f (submodularMatroidGreedyChain f indep u t)) :
∑ o ∈ O, c o ≤ p • (f (submodularMatroidGreedyChain f indep u u.toFinset.card) - f ∅)

Chain-level charging ([CCPV11], Appendix B). Let indep be a p-system, O ⊆ u.toFinset independent, and f monotone. If each o ∈ O costs at most the gain f S (t + 1) - f S t of every greedy round t < n in which o is still feasible, then ∑ O c ≤ p • (f S n - f ∅), where n = u.toFinset.card.

theorem Cslib.Algorithms.Lean.Submodular.add_nsmul_le_succ_nsmul_submodularMatroidGreedy {α : Type u_1} {β : Type u_2} [DecidableEq α] [AddCommGroup β] [LinearOrder β] [IsOrderedAddMonoid β] {f : Finset α → β} (hf : IsSubmodular f) (hmono : Monotone f) {indep : Finset α → Bool} {p : ℕ} (hsys : Matroid.IsPSystem (fun (S : Finset α) => indep S = true) p) {xs : List α} {O : Finset α} (hO : indep O = true) (hOxs : O ⊆ xs.toFinset) :
f O + p • f ∅ ≤ (p + 1) • f (submodularMatroidGreedy f indep xs)

Fisher–Nemhauser–Wolsey greedy bound ([FNW78]; [CCPV11], Appendix B). For a monotone submodular f, a p-system indep and every independent O ⊆ xs.toFinset, the greedy output G satisfies f O + p • f ∅ ≤ (p + 1) • f G, i.e. f O - f ∅ ≤ (p + 1) • (f G - f ∅).

Corollaries: ordered fields, approximate value oracles, matroids, modular objectives #

theorem Cslib.Algorithms.Lean.Submodular.div_succ_le_submodularMatroidGreedy {α : Type u_1} [DecidableEq α] {β : Type u_2} [Field β] [LinearOrder β] [IsStrictOrderedRing β] {f : Finset α → β} (hf : IsSubmodular f) (hmono : Monotone f) (hf0 : 0 ≤ f ∅) {indep : Finset α → Bool} {p : ℕ} (hsys : Matroid.IsPSystem (fun (S : Finset α) => indep S = true) p) {xs : List α} {O : Finset α} (hO : indep O = true) (hOxs : O ⊆ xs.toFinset) :
f O / (↑p + 1) ≤ f (submodularMatroidGreedy f indep xs)

Ordered-field form of the greedy bound: f O / (p + 1) ≤ f G when 0 ≤ f ∅.

theorem Cslib.Algorithms.Lean.Submodular.div_add_mul_le_submodularMatroidGreedy_of_approxOracle {α : Type u_1} [DecidableEq α] {β : Type u_2} [Field β] [LinearOrder β] [IsStrictOrderedRing β] {f fApprox : Finset α → β} (hf : IsSubmodular f) (hmono : Monotone f) (hf0 : 0 ≤ f ∅) {indep : Finset α → Bool} {p : ℕ} (hsys : Matroid.IsPSystem (fun (S : Finset α) => indep S = true) p) {r : β} (hr : 0 < r) (hlo : ∀ (S : Finset α) (c : α), indep S = true → c ∉ S → indep (insert c S) = true → r * marginalGain f S c ≤ marginalGain fApprox S c) (hhi : ∀ (S : Finset α) (c : α), indep S = true → c ∉ S → indep (insert c S) = true → marginalGain fApprox S c ≤ marginalGain f S c) {xs : List α} {O : Finset α} (hO : indep O = true) (hOxs : O ⊆ xs.toFinset) :
r / (↑p + r) * f O ≤ f (submodularMatroidGreedy fApprox indep xs)

α / (p + α) guarantee for submodularMatroidGreedy run on an approximate value oracle: if the oracle fApprox has marginal gains within [r, 1] of f's marginal gains on feasible insertions, then (r / ((p : β) + r)) * f O ≤ f (submodularMatroidGreedy fApprox indep xs).

theorem Cslib.Algorithms.Lean.Submodular.add_le_two_nsmul_submodularMatroidGreedy_of_matroid {α : Type u_1} [DecidableEq α] {β : Type u_2} [AddCommGroup β] [LinearOrder β] [IsOrderedAddMonoid β] {f : Finset α → β} (hf : IsSubmodular f) (hmono : Monotone 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 ⊆ xs.toFinset) :
f O + f ∅ ≤ 2 • f (submodularMatroidGreedy f indep xs)

1/2-approximation over a matroid ([FNW78]; [CCPV11], Section 1, the case p = 1): under an independence test implementing M : Matroid α, f O + f ∅ ≤ 2 • f G for every independent O ⊆ xs.toFinset.

theorem Cslib.Algorithms.Lean.Submodular.half_le_submodularMatroidGreedy_of_matroid {α : Type u_1} [DecidableEq α] {β : Type u_2} [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 α} {O : Finset α} (hO : M.Indep ↑O) (hOxs : O ⊆ xs.toFinset) :
f O / 2 ≤ f (submodularMatroidGreedy f indep xs)

1/2-approximation over a matroid, ordered-field form: f O / 2 ≤ f G when 0 ≤ f ∅.

theorem Cslib.Algorithms.Lean.Submodular.add_card_nsmul_le_submodularMatroidGreedy_of_iInter_matroid {α : Type u_1} [DecidableEq α] {β : Type u_2} [AddCommGroup β] [LinearOrder β] [IsOrderedAddMonoid β] {f : Finset α → β} (hf : IsSubmodular f) (hmono : Monotone f) {ι : Type u_3} [Fintype ι] [Nonempty ι] {M : ι → Matroid α} {indep : Finset α → Bool} (hM : ∀ (S : Finset α), indep S = true ↔ ∀ (i : ι), (M i).Indep ↑S) {xs : List α} {O : Finset α} (hO : ∀ (i : ι), (M i).Indep ↑O) (hOxs : O ⊆ xs.toFinset) :

1/(k+1)-approximation over an intersection of k ≥ 1 matroids ([FNW78]; [CCPV11], Section 1), ordered-group form: f O + k • f ∅ ≤ (k + 1) • f G with k = Fintype.card ι.

theorem Cslib.Algorithms.Lean.Submodular.div_card_succ_le_submodularMatroidGreedy_of_iInter_matroid {α : Type u_1} [DecidableEq α] {β : Type u_2} [Field β] [LinearOrder β] [IsStrictOrderedRing β] {f : Finset α → β} (hf : IsSubmodular f) (hmono : Monotone f) (hf0 : 0 ≤ f ∅) {ι : Type u_3} [Fintype ι] [Nonempty ι] {M : ι → Matroid α} {indep : Finset α → Bool} (hM : ∀ (S : Finset α), indep S = true ↔ ∀ (i : ι), (M i).Indep ↑S) {xs : List α} {O : Finset α} (hO : ∀ (i : ι), (M i).Indep ↑O) (hOxs : O ⊆ xs.toFinset) :
f O / (↑(Fintype.card ι) + 1) ≤ f (submodularMatroidGreedy f indep xs)

1/(k+1)-approximation over an intersection of k ≥ 1 matroids ([FNW78]; [CCPV11], Section 1), ordered-field form: f O / (k + 1) ≤ f G when 0 ≤ f ∅.

theorem Cslib.Algorithms.Lean.Submodular.sum_le_nsmul_sum_submodularMatroidGreedy {α : Type u_1} [DecidableEq α] {β : Type u_2} [AddCommGroup β] [LinearOrder β] [IsOrderedAddMonoid β] {w : α → β} (hw : ∀ (x : α), 0 ≤ w x) {indep : Finset α → Bool} {p : ℕ} (hsys : Matroid.IsPSystem (fun (S : Finset α) => indep S = true) p) {xs : List α} {O : Finset α} (hO : indep O = true) (hOxs : O ⊆ xs.toFinset) :
∑ x ∈ O, w x ≤ p • ∑ x ∈ submodularMatroidGreedy (modularSum w) indep xs, w x

Modular objectives on p-systems ([Jen76]; [CCPV11], Section 1): for nonnegative weights w, the greedy algorithm run on modularSum w satisfies ∑ O w ≤ p • ∑ G w for every independent O ⊆ xs.toFinset.

theorem Cslib.Algorithms.Lean.Submodular.sum_le_sum_submodularMatroidGreedy_of_matroid {α : Type u_1} [DecidableEq α] {β : Type u_2} [AddCommGroup β] [LinearOrder β] [IsOrderedAddMonoid β] {w : α → β} (hw : ∀ (x : α), 0 ≤ w x) {M : Matroid α} {indep : Finset α → Bool} (hM : ∀ (S : Finset α), indep S = true ↔ M.Indep ↑S) {xs : List α} {O : Finset α} (hO : M.Indep ↑O) (hOxs : O ⊆ xs.toFinset) :
∑ x ∈ O, w x ≤ ∑ x ∈ submodularMatroidGreedy (modularSum w) indep xs, w x

Greedy is optimal for nonnegative modular objectives on a matroid (the p = 1 case of sum_le_nsmul_sum_submodularMatroidGreedy): ∑ O w ≤ ∑ G w for every independent O ⊆ xs.toFinset. Compare the Rado–Edmonds weight-sorted greedy Cslib.Algorithms.Lean.Matroid.sum_le_greedyMaxBasis_of_indep, which reaches the same optimum by scanning elements in decreasing weight order instead of re-evaluating marginal gains.

Tightness of the 1/2 bound #

Independence test of the partition matroid on Fin 3 with blocks {0, 1} and {2}, each of capacity one: a set is independent unless it contains both 0 and 1.

The partition matroid on Fin 3 decided by matroidTightIndep.

Coverage sets of the tight instance: 0 and 2 both cover item 0, and 1 covers item 1.

Unit-weight coverage objective S ↦ |⋃ s ∈ S, matroidTightCover s| of the tight instance.

On the tight instance, greedy first picks 0 (all singletons have value 1, and ties go to the earliest candidate), then 2 (1 is blocked by 0), and stops at {0, 2}.

theorem Cslib.Algorithms.Lean.Submodular.exists_tight_submodularMatroidGreedy :
∃ (M : Matroid (Fin 3)) (indep : Finset (Fin 3) → Bool) (f : Finset (Fin 3) → ℤ) (xs : List (Fin 3)) (O : Finset (Fin 3)), (∀ (S : Finset (Fin 3)), indep S = true ↔ M.Indep ↑S) ∧ IsSubmodular f ∧ Monotone f ∧ f ∅ = 0 ∧ M.Indep ↑O ∧ O ⊆ xs.toFinset ∧ 0 < f O ∧ f O = 2 * f (submodularMatroidGreedy f indep xs)

Tightness of the 1/2 bound ([FNW78]; [CCPV11], Section 1, which states that the greedy ratios are tight for all p): a monotone submodular coverage objective with f ∅ = 0 and a partition matroid on three elements for which the greedy value is exactly half the value of an independent set.