Documentation

CslibFrontier.Algorithms.Lean.CombinatorialAuction.SingleMindedProcurement

Greedy set-cover procurement mechanism for single-minded suppliers #

This module formalizes the mechanism-design and approximation step of Exercise 11.9(b) of [BN07] (Chapter 11, p. 299); it is not a machine-level polynomial-time theorem (the polynomial-time clause of Exercise 11.9(b) remains open under issue #7789). It builds directly on the weighted set-cover greedy algorithm in Cslib.Algorithms.Lean.SetCover (which covers part (a), the (1 + log m)-approximation bound) and the procurement mechanism framework in Cslib.GameTheory.Mechanism.Frugality.

Precision notes on the printed source #

  1. Printed argmax typo in Exercise 11.9(a) (p. 299): [BN07] prints j ∈ argmax_k v_k / |R ∩ S_k| in the greedy loop for minimizing total procurement cost; this should be argmin_k v_k / |R ∩ S_k| (minimizing cost per newly covered item, as implemented by SetCover.bestSet and SetCover.greedy).
  2. No-monopoly assumption for finite critical payments: if some supplier i is the unique supplier covering some element a ∈ U, then i is selected by SetCover.greedy for every cost bid z ≥ 0 and no finite critical payment exists. Under the monopoly-free condition IsMonopolyFree (setCoverFamily S U) (every N \ {i} still covers U), every winning supplier has a finite, explicitly computable critical payment greedyCriticalValue.
  3. No machine-level running-time claim: the greedy allocation and critical-payment rules are pure Lean functions; machine polynomial-time complexity remains open under issue #7789.

Main definitions #

Main results #

References #

List argmin perturbation lemmas #

Monotonicity of greedy set cover #

theorem Cslib.Algorithms.Lean.CombinatorialAuction.mem_greedy_of_le_of_subset {N : Type u_1} {M : Type u_2} [DecidableEq N] [DecidableEq M] {S : N → Finset M} {w : N → ℝ} {J : List N} {U : Finset M} (hnd : J.Nodup) {i : N} {S' : Finset M} {c' : ℝ} (hc' : 0 ≤ c') (hle : c' ≤ w i) (hsub : S i ⊆ S') (hi : i ∈ SetCover.greedy S w J U) :

Bundle-and-cost monotonicity of SetCover.greedy ([BN07], Exercise 11.9(b), p. 299).

theorem Cslib.Algorithms.Lean.CombinatorialAuction.mem_greedy_of_le {N : Type u_1} {M : Type u_2} [DecidableEq N] [DecidableEq M] {S : N → Finset M} {w : N → ℝ} {J : List N} {U : Finset M} (hnd : J.Nodup) {i : N} {c' : ℝ} (hc' : 0 ≤ c') (hle : c' ≤ w i) (hi : i ∈ SetCover.greedy S w J U) :

Cost monotonicity of SetCover.greedy ([BN07], Exercise 11.9(b), p. 299): for fixed bundles S, lowering supplier i's nonnegative bid preserves winning.

Explicit critical-value formula for greedy set-cover procurement #

noncomputable def Cslib.Algorithms.Lean.CombinatorialAuction.greedyCriticalValueLoop {N : Type u_1} {M : Type u_2} [DecidableEq N] [DecidableEq M] (S : N → Finset M) (w : N → ℝ) (J : List N) (i : N) :
ℕ → Finset M → ℝ

Recursive computation of supplier i's critical value along k rounds of SetCover.greedy run without supplier i (J.filter (· ≠ i)): takes the maximum over every round (R, j) of |S i ∩ R| * costPerUncovered S w R j ([BN07], Exercise 11.9(b), p. 299).

noncomputable def Cslib.Algorithms.Lean.CombinatorialAuction.greedyCriticalValue {N : Type u_1} {M : Type u_2} [DecidableEq N] [DecidableEq M] (S : N → Finset M) (w : N → ℝ) (J : List N) (U : Finset M) (i : N) :

The critical value of supplier i in greedy set-cover procurement ([BN07], Exercise 11.9(b), p. 299): the highest cost bid at which i can beat the greedy run without i in some round before all of S i is covered.

@[simp]
theorem Cslib.Algorithms.Lean.CombinatorialAuction.greedyCriticalValue_update_cost {N : Type u_1} {M : Type u_2} [DecidableEq N] [DecidableEq M] (S : N → Finset M) (w : N → ℝ) (J : List N) (U : Finset M) (i : N) (z : ℝ) :

greedyCriticalValue is independent of supplier i's own cost bid.

theorem Cslib.Algorithms.Lean.CombinatorialAuction.greedyCriticalValue_nonneg {N : Type u_1} {M : Type u_2} [DecidableEq N] [DecidableEq M] {S : N → Finset M} {w : N → ℝ} {J : List N} {U : Finset M} {i : N} (hw : ∀ j ∈ J, j ≠ i → 0 ≤ w j) :

greedyCriticalValue is nonnegative on nonnegative cost profiles.

theorem Cslib.Algorithms.Lean.CombinatorialAuction.greedyCriticalValue_mono_bundle {N : Type u_1} {M : Type u_2} [DecidableEq N] [DecidableEq M] {S : N → Finset M} {w : N → ℝ} {J : List N} {U : Finset M} {i : N} (hw : ∀ j ∈ J, j ≠ i → 0 ≤ w j) {S' : Finset M} (hsub : S' ⊆ S i) :

greedyCriticalValue is monotone in supplier i's declared bundle S i.

theorem Cslib.Algorithms.Lean.CombinatorialAuction.mem_greedy_of_lt_greedyCriticalValue {N : Type u_1} {M : Type u_2} [DecidableEq N] [DecidableEq M] {S : N → Finset M} {w : N → ℝ} {J : List N} {U : Finset M} {i : N} (hiJ : i ∈ J) {z : ℝ} (hz : 0 ≤ z) (hlt : z < greedyCriticalValue S w J U i) :

Below-threshold winning for SetCover.greedy.

theorem Cslib.Algorithms.Lean.CombinatorialAuction.notMem_greedy_of_greedyCriticalValue_lt {N : Type u_1} {M : Type u_2} [DecidableEq N] [DecidableEq M] {S : N → Finset M} {w : N → ℝ} {J : List N} {U : Finset M} {i : N} (hcov : ∀ a ∈ U, ∃ j ∈ J, j ≠ i ∧ a ∈ S j) {z : ℝ} (hlt : greedyCriticalValue S w J U i < z) :
i ∉ SetCover.greedy S (Function.update w i z) J U

Above-threshold losing for SetCover.greedy.

theorem Cslib.Algorithms.Lean.CombinatorialAuction.sSup_winningBids_eq_greedyCriticalValue {N : Type u_1} {M : Type u_2} [DecidableEq N] [DecidableEq M] {S : N → Finset M} {w : N → ℝ} {J : List N} {U : Finset M} {i : N} (hiJ : i ∈ J) (hw : ∀ j ∈ J, j ≠ i → 0 ≤ w j) (hcov : ∀ a ∈ U, ∃ j ∈ J, j ≠ i ∧ a ∈ S j) :

Critical value as supremum of winning bids ([BN07], Exercise 11.9(b), p. 299): under the no-monopoly coverage assumption, greedyCriticalValue S w J U i equals sSup {z : ℝ | 0 ≤ z ∧ i ∈ greedy S (Function.update w i z) J U}.

Greedy set-cover procurement mechanism #

The feasible family of supplier subsets C ⊆ N covering all items in U.

Canonical tie-breaking order of all suppliers N.

theorem Cslib.Algorithms.Lean.CombinatorialAuction.isMonopolyFree_setCoverFamily_iff {N : Type u_1} {M : Type u_2} [Fintype N] [LinearOrder N] [DecidableEq M] (S : N → Finset M) (U : Finset M) :
GameTheory.Mechanism.Frugality.IsMonopolyFree (setCoverFamily S U) ↔ ∀ (i : N), ∀ a ∈ U, ∃ (j : N), j ≠ i ∧ a ∈ S j

IsMonopolyFree (setCoverFamily S U) is equivalent to every N \ {i} covering U.

noncomputable def Cslib.Algorithms.Lean.CombinatorialAuction.greedyProcurementMechanism {N : Type u_1} {M : Type u_2} [Fintype N] [LinearOrder N] [DecidableEq M] (S : N → Finset M) (U : Finset M) (hcov : ∀ a ∈ U, ∃ (i : N), a ∈ S i) :

Greedy set-cover procurement mechanism ([BN07], Exercise 11.9(b), p. 299): selects the winning supplier set using SetCover.greedy (minimizing w_k / |R ∩ S_k|) and pays each winning supplier its critical value greedyCriticalValue and each loser 0.

theorem Cslib.Algorithms.Lean.CombinatorialAuction.greedyProcurementMechanism_losersPaidZero {N : Type u_1} {M : Type u_2} [Fintype N] [LinearOrder N] [DecidableEq M] (S : N → Finset M) (U : Finset M) (hcov : ∀ a ∈ U, ∃ (i : N), a ∈ S i) :

Losers receive zero payment in greedyProcurementMechanism.

Individual rationality of greedyProcurementMechanism ([BN07], Exercise 11.9(b), p. 299) under the no-monopoly condition.

Dominant-strategy incentive compatibility of greedyProcurementMechanism ([BN07], Exercise 11.9(b), p. 299) under the no-monopoly condition.

theorem Cslib.Algorithms.Lean.CombinatorialAuction.greedyProcurementMechanism_isDSIC_bundle {N : Type u_1} {M : Type u_2} [Fintype N] [LinearOrder N] [DecidableEq M] (S : N → Finset M) (U : Finset M) (hcov : ∀ a ∈ U, ∃ (i : N), a ∈ S i) (hmono : GameTheory.Mechanism.Frugality.IsMonopolyFree (setCoverFamily S U)) (i : N) (b : N → ℝ) (hb : 0 ≤ b) (c_i : ℝ) (hc_i : 0 ≤ c_i) (S' : Finset M) (hsub : S' ⊆ S i) (c' : ℝ) (hcov' : ∀ a ∈ U, ∃ (j : N), a ∈ Function.update S i S' j) :

Bundle-and-cost DSIC for single-minded suppliers ([BN07], Exercise 11.9(b), p. 299): if supplier i has true bundle S i and true cost c_i ≥ 0, and deviates by reporting any deliverable sub-bundle S' ⊆ S i and cost c' ≥ 0 (such that the profile still covers U), supplier i's utility never exceeds its utility from truthful reporting (S i, c_i).

theorem Cslib.Algorithms.Lean.CombinatorialAuction.greedyProcurementMechanism_cost_le_harmonic_mul {N : Type u_1} {M : Type u_2} [Fintype N] [LinearOrder N] [DecidableEq M] (S : N → Finset M) (U : Finset M) (hcov : ∀ a ∈ U, ∃ (i : N), a ∈ S i) {b : N → ℝ} (hb : 0 ≤ b) {C : Finset N} (hC : C ∈ setCoverFamily S U) :
∑ i ∈ (greedyProcurementMechanism S U hcov).alloc b, b i ≤ ↑(harmonic U.card) * ∑ j ∈ C, b j

H(|U|) cost approximation of greedyProcurementMechanism ([BN07], Exercise 11.9(a)–(b), p. 299), reusing SetCover.sum_greedy_le_harmonic_card_mul.

theorem Cslib.Algorithms.Lean.CombinatorialAuction.greedyProcurementMechanism_cost_le_one_add_log_mul {N : Type u_1} {M : Type u_2} [Fintype N] [LinearOrder N] [DecidableEq M] (S : N → Finset M) (U : Finset M) (hcov : ∀ a ∈ U, ∃ (i : N), a ∈ S i) {b : N → ℝ} (hb : 0 ≤ b) {C : Finset N} (hC : C ∈ setCoverFamily S U) :
∑ i ∈ (greedyProcurementMechanism S U hcov).alloc b, b i ≤ (1 + Real.log ↑U.card) * ∑ j ∈ C, b j

(1 + log |U|) cost approximation of greedyProcurementMechanism ([BN07], Exercise 11.9(a)–(b), p. 299), reusing SetCover.sum_greedy_le_one_add_log_mul.