Documentation

CslibFrontier.GameTheory.Mechanism.CombinatorialAuction.Walrasian

Combinatorial auctions: Walrasian equilibrium and the LP relaxation #

In a combinatorial auction, a finite set M of indivisible items is allocated among a finite set N of bidders, each with a valuation v i : Finset M → ℝ on bundles S : Finset M ([BN07], §11.1.1, pp. 267–268). This module formalizes §11.3 of [BN07] (pp. 275–279): the linear programming relaxation (LPR) and its dual (DLPR), demand bundles, Walrasian equilibria, the First and Second Welfare Theorems (Theorems 11.13 and 11.15), Example 11.14, and the equivalence with integral LPR optima (Corollary 11.16).

Normalization and monotonicity assumptions #

Definition 11.1 of [BN07] (p. 268) requires valuations to be normalized (v i ∅ = 0) and monotone (S ⊆ T → v i S ≤ v i T, "free disposal"). Monotonicity is not used in any theorem of §11.3, so we work directly with arbitrary real-valued profiles v : N → Finset M → ℝ and state the exact empty-bundle condition where needed:

No computational or query-complexity claims are made here (solving LPR via demand oracles is §11.5 of [BN07]).

Main definitions #

Main results #

References #

Allocations and social welfare #

structure Cslib.GameTheory.CombinatorialAuction.Allocation (N : Type u_1) (M : Type u_2) :
Type (max u_1 u_2)

An allocation of a set of indivisible items M among bidders N: each bidder i receives a bundle bundle i : Finset M, and distinct bidders receive disjoint bundles ([BN07], Definition 11.2, p. 268). Unallocated items belong to no bundle i.

theorem Cslib.GameTheory.CombinatorialAuction.Allocation.ext {N : Type u_1} {M : Type u_2} {x y : Allocation N M} (bundle : x.bundle = y.bundle) :
x = y
def Cslib.GameTheory.CombinatorialAuction.welfare {N : Type u_1} {M : Type u_2} [Fintype N] (v : N → Finset M → ℝ) (a : Allocation N M) :

The social welfare ∑ i, v i (a.bundle i) obtained by allocation a under valuation profile v ([BN07], Definition 11.2, p. 268).

The 0–1 indicator fractional allocation of a : Allocation N M: entry (i, S) is 1 when S = a.bundle i and 0 otherwise ([BN07], §11.3.1, p. 276).

Linear programming relaxation (LPR) and its dual (DLPR) #

def Cslib.GameTheory.CombinatorialAuction.lprObjective {N : Type u_1} {M : Type u_2} [Fintype N] [Fintype M] (v x : N → Finset M → ℝ) :

The objective function ∑ i, ∑ S, x i S * v i S of the linear programming relaxation LPR ([BN07], §11.3.1, display (11.3), p. 276).

structure Cslib.GameTheory.CombinatorialAuction.IsLPRFeasible {N : Type u_1} {M : Type u_2} [Fintype N] [Fintype M] [DecidableEq M] (x : N → Finset M → ℝ) :

Feasibility of a fractional allocation x : N → Finset M → ℝ in the linear programming relaxation LPR ([BN07], §11.3.1, displays (11.4)–(11.6), p. 276).

  • item_le (j : M) : ∑ i : N, ∑ S : Finset M with j ∈ S, x i S ≤ 1

    Constraint (11.4): each item j is fractionally allocated at most once.

  • bidder_le (i : N) : ∑ S : Finset M, x i S ≤ 1

    Constraint (11.5): each bidder i receives total bundle weight at most 1.

  • nonneg (i : N) (S : Finset M) : 0 ≤ x i S

    Constraint (11.6): every bundle weight is nonnegative.

def Cslib.GameTheory.CombinatorialAuction.IsIntegral {N : Type u_1} {M : Type u_2} (x : N → Finset M → ℝ) :

A fractional allocation x is integral (0–1) if every variable x i S lies in {0, 1} ([BN07], §11.3.1, p. 276). Under IsLPRFeasible, constraint (11.5) together with nonneg implies that 0 ≤ x i S ≤ 1, so x i S ∈ ℤ is equivalent to x i S ∈ {0, 1}.

def Cslib.GameTheory.CombinatorialAuction.IsLPROptimal {N : Type u_1} {M : Type u_2} [Fintype N] [Fintype M] [DecidableEq M] (v x : N → Finset M → ℝ) :

Optimality of x in the linear programming relaxation LPR for valuation profile v: x is LPR-feasible and attains at least as large an objective as every LPR-feasible y ([BN07], §11.3.1, p. 276).

theorem Cslib.GameTheory.CombinatorialAuction.isLPRFeasible_zero {N : Type u_1} {M : Type u_2} [Fintype N] [Fintype M] [DecidableEq M] :
IsLPRFeasible fun (x : N) (x_1 : Finset M) => 0

The zero fractional allocation is LPR-feasible.

The indicator of an allocation is a 0–1 vector.

The indicator of an allocation is LPR-feasible.

@[simp]

The LPR objective evaluated at the indicator of an allocation equals its social welfare.

noncomputable def Cslib.GameTheory.CombinatorialAuction.IsLPRFeasible.toAllocation {N : Type u_1} {M : Type u_2} [Fintype N] [Fintype M] [DecidableEq M] {x : N → Finset M → ℝ} (hx : IsLPRFeasible x) :

The Allocation induced by an LPR-feasible vector x: bidder i receives the unique bundle S with x i S = 1, or ∅ if no bundle has weight 1 ([BN07], §11.3.1, p. 276). For a 0–1 vector x, constraint (11.5) guarantees at most one bundle with weight 1 per bidder, and constraint (11.4) guarantees those bundles are pairwise disjoint.

theorem Cslib.GameTheory.CombinatorialAuction.IsLPRFeasible.toAllocation_bundle_eq_of_eq_one {N : Type u_1} {M : Type u_2} [Fintype N] [Fintype M] [DecidableEq M] {x : N → Finset M → ℝ} (hx : IsLPRFeasible x) {i : N} {S : Finset M} (h : x i S = 1) :

If an LPR-feasible vector x gives x i S = 1, then toAllocation assigns S to i.

theorem Cslib.GameTheory.CombinatorialAuction.IsLPRFeasible.toAllocation_bundle_eq_empty {N : Type u_1} {M : Type u_2} [Fintype N] [Fintype M] [DecidableEq M] {x : N → Finset M → ℝ} (hx : IsLPRFeasible x) {i : N} (h : ∀ (S : Finset M), x i S = 0) :

If an LPR-feasible vector x gives weight 0 to every bundle for bidder i, then toAllocation assigns ∅ to i.

theorem Cslib.GameTheory.CombinatorialAuction.IsLPRFeasible.lprObjective_le_welfare_toAllocation {N : Type u_1} {M : Type u_2} [Fintype N] [Fintype M] [DecidableEq M] {v : N → Finset M → ℝ} (hv : ∀ (i : N), 0 ≤ v i ∅) {x : N → Finset M → ℝ} (hx : IsLPRFeasible x) (hint : IsIntegral x) :

Under ∀ i, 0 ≤ v i ∅, rounding a feasible 0–1 vector x to an Allocation (setting unassigned bidders to ∅) does not decrease its social welfare.

def Cslib.GameTheory.CombinatorialAuction.dlprObjective {N : Type u_1} {M : Type u_2} [Fintype N] [Fintype M] (u : N → ℝ) (p : M → ℝ) :

The objective function ∑ i, u i + ∑ j, p j of the dual linear program DLPR ([BN07], §11.3.1, display (11.7), p. 276).

structure Cslib.GameTheory.CombinatorialAuction.IsDLPRFeasible {N : Type u_1} {M : Type u_2} (v : N → Finset M → ℝ) (u : N → ℝ) (p : M → ℝ) :

Feasibility of bidder utilities u : N → ℝ and item prices p : M → ℝ in the dual linear programming relaxation DLPR ([BN07], §11.3.1, displays (11.8)–(11.9), p. 276).

  • cover (i : N) (S : Finset M) : v i S ≤ u i + ∑ j ∈ S, p j

    Constraint (11.8): uᵢ + ∑_{j ∈ S} pⱼ ≥ vᵢ(S) for every bidder i and bundle S.

  • utility_nonneg (i : N) : 0 ≤ u i

    Constraint (11.9): utilities are nonnegative.

  • price_nonneg (j : M) : 0 ≤ p j

    Constraint (11.9): item prices are nonnegative.

Weak and strong LP duality for LPR / DLPR #

theorem Cslib.GameTheory.CombinatorialAuction.lprObjective_le_dlprObjective {N : Type u_1} {M : Type u_2} [Fintype N] [Fintype M] [DecidableEq M] {v x : N → Finset M → ℝ} {u : N → ℝ} {p : M → ℝ} (hx : IsLPRFeasible x) (hup : IsDLPRFeasible v u p) :

Weak LP duality between LPR and DLPR ([BN07], §11.3.1, pp. 276–277): the objective of any LPR-feasible fractional allocation is at most the objective of any DLPR-feasible utility-price pair.

theorem Cslib.GameTheory.CombinatorialAuction.exists_lpr_dlpr_eq {N : Type u_1} {M : Type u_2} [Fintype N] [Fintype M] [DecidableEq M] (v : N → Finset M → ℝ) :
∃ (x : N → Finset M → ℝ) (u : N → ℝ) (p : M → ℝ), IsLPRFeasible x ∧ IsDLPRFeasible v u p ∧ lprObjective v x = dlprObjective u p

Strong LP duality between LPR and DLPR ([BN07], §11.3.1, pp. 276–277): both programs are always feasible, so there exist feasible primal x and dual (u, p) attaining equal objective values. Derived directly from Matrix.exists_isGreatest_isLeast_dotProduct_of_nonneg with no unproved assumptions on v.

Demand and Walrasian equilibrium #

def Cslib.GameTheory.CombinatorialAuction.IsDemand {M : Type u_1} (v : Finset M → ℝ) (p : M → ℝ) (T : Finset M) :

A bundle T is a demand for valuation v at item prices p : M → ℝ if it maximizes quasilinear utility v S - ∑ j ∈ S, p j over all bundles S : Finset M ([BN07], Definition 11.11, p. 277).

theorem Cslib.GameTheory.CombinatorialAuction.exists_isDemand {M : Type u_1} [Finite M] (v : Finset M → ℝ) (p : M → ℝ) :
∃ (T : Finset M), IsDemand v p T

Every valuation on a finite item set has at least one demand bundle at any item prices p.

structure Cslib.GameTheory.CombinatorialAuction.IsWalrasianEquilibrium {N : Type u_1} {M : Type u_2} (v : N → Finset M → ℝ) (p : M → ℝ) (a : Allocation N M) :

A Walrasian equilibrium consists of nonnegative item prices p : M → ℝ and an allocation a : Allocation N M such that every bidder receives a demand bundle at prices p, and every unallocated item has price 0 ([BN07], Definition 11.12, p. 277).

  • price_nonneg (j : M) : 0 ≤ p j

    Item prices are nonnegative (pⱼ* ≥ 0).

  • demand (i : N) : IsDemand (v i) p (a.bundle i)

    Each bidder i receives a demand bundle at prices p.

  • unallocated_price_zero (j : M) : (∀ (i : N), j ∉ a.bundle i) → p j = 0

    Every unallocated item (j ∉ ⋃ i, a.bundle i) has price 0.

The First Welfare Theorem (Theorem 11.13) #

theorem Cslib.GameTheory.CombinatorialAuction.IsWalrasianEquilibrium.welfare_le {N : Type u_1} {M : Type u_2} [Fintype N] [Finite M] {v : N → Finset M → ℝ} {p : M → ℝ} {a : Allocation N M} (heq : IsWalrasianEquilibrium v p a) (b : Allocation N M) :

The First Welfare Theorem (integral form) ([BN07], Theorem 11.13, p. 277): every Walrasian equilibrium allocation maximizes social welfare among all integral allocations. This part holds for arbitrary real valuations v : N → Finset M → ℝ without normalization or monotonicity.

theorem Cslib.GameTheory.CombinatorialAuction.IsWalrasianEquilibrium.lprObjective_le {N : Type u_1} {M : Type u_2} [Fintype N] [Fintype M] [DecidableEq M] {v : N → Finset M → ℝ} {p : M → ℝ} {a : Allocation N M} (heq : IsWalrasianEquilibrium v p a) (hv : ∀ (i : N), 0 ≤ v i ∅) {x : N → Finset M → ℝ} (hx : IsLPRFeasible x) :

The First Welfare Theorem (fractional form) ([BN07], Theorem 11.13, pp. 277–278): if ∀ i, 0 ≤ v i ∅ (in particular, for valuations normalized as in Definition 11.1), then a Walrasian equilibrium allocation maximizes social welfare over all feasible fractional solutions of LPR: lprObjective v x ≤ welfare v a.

The condition ∀ i, 0 ≤ v i ∅ cannot be dropped (when v i ∅ < 0, the zero fractional allocation has objective 0 strictly above the welfare of allocating ∅ to every bidder).

The Second Welfare Theorem (Theorem 11.15) and Corollary 11.16 #

theorem Cslib.GameTheory.CombinatorialAuction.exists_isWalrasianEquilibrium_of_lprObjective_le {N : Type u_1} {M : Type u_2} [Fintype N] [Fintype M] [DecidableEq M] {v : N → Finset M → ℝ} {a : Allocation N M} (hopt : ∀ (x : N → Finset M → ℝ), IsLPRFeasible x → lprObjective v x ≤ welfare v a) :
∃ (p : M → ℝ), IsWalrasianEquilibrium v p a

The Second Welfare Theorem (allocation form) ([BN07], Theorem 11.15, pp. 278–279): if an allocation a achieves at least the LPR objective of every feasible fractional allocation, then there exist item prices p making (p, a) a Walrasian equilibrium. This form holds for arbitrary real valuations v : N → Finset M → ℝ without normalization or monotonicity.

theorem Cslib.GameTheory.CombinatorialAuction.exists_isWalrasianEquilibrium_of_isIntegral {N : Type u_1} {M : Type u_2} [Fintype N] [Fintype M] [DecidableEq M] {v : N → Finset M → ℝ} (hv : ∀ (i : N), 0 ≤ v i ∅) {x : N → Finset M → ℝ} (hx : IsLPROptimal v x) (hint : IsIntegral x) :

The Second Welfare Theorem (0–1 LPR form) ([BN07], Theorem 11.15, pp. 278–279): if x is an integral (0–1) optimal solution of LPR and ∀ i, 0 ≤ v i ∅, then the induced allocation hx.1.toAllocation admits a supporting Walrasian equilibrium price vector (and achieves the same objective value lprObjective v x).

theorem Cslib.GameTheory.CombinatorialAuction.exists_isIntegral_isLPROptimal_iff {N : Type u_1} {M : Type u_2} [Fintype N] [Fintype M] [DecidableEq M] {v : N → Finset M → ℝ} (hv : ∀ (i : N), 0 ≤ v i ∅) :
(∃ (x : N → Finset M → ℝ), IsLPROptimal v x ∧ IsIntegral x) ↔ ∃ (a : Allocation N M), ∀ (x : N → Finset M → ℝ), IsLPRFeasible x → lprObjective v x ≤ welfare v a

Under ∀ i, 0 ≤ v i ∅, LPR admits a 0–1 optimal solution iff there is an Allocation whose social welfare dominates every feasible fractional allocation.

theorem Cslib.GameTheory.CombinatorialAuction.exists_isWalrasianEquilibrium_iff {N : Type u_1} {M : Type u_2} [Fintype N] [Fintype M] [DecidableEq M] {v : N → Finset M → ℝ} (hv : ∀ (i : N), 0 ≤ v i ∅) :
(∃ (p : M → ℝ) (a : Allocation N M), IsWalrasianEquilibrium v p a) ↔ ∃ (x : N → Finset M → ℝ), IsLPROptimal v x ∧ IsIntegral x

Corollary 11.16 ([BN07], §11.3.2, p. 279): assuming ∀ i, 0 ≤ v i ∅ (in particular, for normalized valuations), a Walrasian equilibrium exists if and only if the linear programming relaxation LPR admits an integral (0–1) optimal solution.

Example 11.14: no Walrasian equilibrium #

The two-bidder, two-item valuation profile of [BN07], Example 11.14 (p. 278). Bidders are false (Alice) and true (Bob), and items are {false, true}. Alice values every nonempty bundle at 2 (0 for ∅); Bob values the full bundle {false, true} at 3 (0 for every proper subset).

The valuations of Example 11.14 are normalized (vᵢ(∅) = 0).

The valuations of Example 11.14 are monotone ("free disposal").

Every allocation in Example 11.14 has social welfare at most 3 ([BN07], Example 11.14, p. 278; attained by allocating {false, true} to Bob).

The exact optimum of LPR on Example 11.14 is 7 / 2 (strictly greater than the best integral welfare 3), witnessed by assigning weight 1 / 2 to (Alice, {a}), (Alice, {b}), and (Bob, {a, b}), with dual optimum u = (1 / 2, 0) and p = (3 / 2, 3 / 2).

Example 11.14 ([BN07], §11.3.2, p. 278): the two-bidder, two-item combinatorial auction noEquilibriumVal admits no Walrasian equilibrium.