Documentation

CslibFrontier.GameTheory.Mechanism.SmoothAuction

Smooth mechanisms and the price of anarchy of first- and second-price auctions #

Syrgkanis and Tardos [ST13] adapted Roughgarden's smoothness framework [Rou15b] from cost-minimization games to sealed-bid quasilinear mechanisms. A single-parameter mechanism M is (λ, μ)-smooth with respect to feasible allocations X (Mechanism.IsSmoothMechanism) if for every nonnegative valuation profile v and benchmark x ∈ X, each bidder i has a finitely supported deviation distribution D i over nonnegative bids (depending only on v and x, never on b) such that against every nonnegative bid profile b, λ * socialWelfare v x - μ * ∑ i, M.payment b i is at most ∑ i, E_{z ∼ D i}[M.utility i (v i) (update b i z)].

Charging revenue ∑ i, M.payment b i on the right-hand side rather than social welfare makes two transfers immediate:

  1. Complete-information equilibria (IsSmoothMechanism.welfare_ge, welfare_ge_of_isCorrelated, welfare_ge_of_isPureNash): when bidding 0 guarantees nonnegative utility (HasZeroBidFloor) and total payments are nonnegative (0 ≤ μ), every coarse correlated, correlated, or pure Nash equilibrium of M.toCostGame v (over nonnegative bids ℝ≥0) achieves expected welfare at least λ / max 1 μ * socialWelfare v x, with no no-overbidding assumption.
  2. Incomplete-information Bayes–Nash equilibria (integral_welfare_ge_of_isBayesNash): for arbitrary independent valuation priors Measure.pi ν on ∏ i, [0, h i], every Bayes–Nash equilibrium (Mechanism.IsBayesNash) achieves expected social welfare at least λ / max 1 μ * E_{v ∼ ν}[socialWelfare v (x v)].

We instantiate this framework on the two canonical single-item auctions:

Main definitions #

Main results #

References #

Social welfare ∑ i, v i * x i of allocation x under valuation profile v.

Realized social welfare ∑ i, v i * M.allocation b i of mechanism M on bid profile b.

theorem Cslib.GameTheory.SingleParameter.Mechanism.sum_utility_add_sum_payment {ι : Type u_1} [Fintype ι] (M : Mechanism ι) (v b : ι → ℝ) :
∑ i : ι, M.utility i (v i) b + ∑ i : ι, M.payment b i = M.welfare v b

Quasilinear accounting identity: utilities plus payments equal realized social welfare.

def Cslib.GameTheory.SingleParameter.Mechanism.toCostGame {ι : Type u_1} (M : Mechanism ι) (v : ι → ℝ) :
CostGame ι fun (x : ι) => NNReal

Complete-information strategic game induced by a sealed-bid mechanism M at valuation profile v: each bidder i submits a nonnegative bid b i : ℝ≥0, and minimizing cost -M.utility is equivalent to maximizing quasilinear utility.

Bidding 0 guarantees nonnegative allocation and nonpositive payment against nonnegative opponent bids, so every equilibrium type has a zero-bid outside option of utility at least 0.

theorem Cslib.GameTheory.SingleParameter.Mechanism.HasZeroBidFloor.utility_zero_nonneg {ι : Type u_1} [DecidableEq ι] {M : Mechanism ι} (h0 : M.HasZeroBidFloor) {i : ι} {b : ι → ℝ} (hb : 0 ≤ b) {v : ℝ} (hv : 0 ≤ v) :
0 ≤ M.utility i v (Function.update b i 0)

Syrgkanis–Tardos (λ, μ)-smooth mechanism ([ST13]): for every nonnegative valuation profile v and feasible benchmark allocation x ∈ X, there exist finitely supported bid distributions D i (independent of b) such that for every nonnegative bid profile b, λ * socialWelfare v x - μ * ∑ i, M.payment b i is at most ∑ i, E_{z ∼ D i}[M.utility i (v i) (update b i z)].

theorem Cslib.GameTheory.SingleParameter.Mechanism.coe_update_nnreal {ι : Type u_1} [DecidableEq ι] (b : ι → NNReal) (i : ι) (z : NNReal) :
(fun (j : ι) => ↑(Function.update b i z j)) = Function.update (fun (j : ι) => ↑(b j)) i ↑z

Coercing Function.update on ℝ≥0 bid profiles commutes with (↑) : ℝ≥0 → ℝ.

theorem Cslib.GameTheory.SingleParameter.Mechanism.expected_utility_ge_of_cce {ι : Type u_1} [DecidableEq ι] {M : Mechanism ι} {v : ι → ℝ} {σ : Convexity.StdSimplex ℝ (ι → NNReal)} (hσ : (M.toCostGame v).IsCoarseCorrelatedEquilibrium σ) (i : ι) (z : NNReal) :
(σ.sum fun (b : ι → NNReal) (w : ℝ) => w * M.utility i (v i) (Function.update (fun (j : ι) => ↑(b j)) i ↑z)) ≤ σ.sum fun (b : ι → NNReal) (w : ℝ) => w * M.utility i (v i) fun (j : ι) => ↑(b j)
theorem Cslib.GameTheory.SingleParameter.Mechanism.IsSmoothMechanism.welfare_ge {ι : Type u_1} [Fintype ι] [DecidableEq ι] {M : Mechanism ι} {X : Set (ι → ℝ)} {lam μ : ℝ} (hM : M.IsSmoothMechanism X lam μ) (h0 : M.HasZeroBidFloor) (hpay : ∀ (b : ι → ℝ), 0 ≤ b → 0 ≤ ∑ i : ι, M.payment b i) {v : ι → ℝ} (hv : 0 ≤ v) {x : ι → ℝ} (hx : x ∈ X) {σ : Convexity.StdSimplex ℝ (ι → NNReal)} (hσ : (M.toCostGame v).IsCoarseCorrelatedEquilibrium σ) :
lam / max 1 μ * socialWelfare v x ≤ σ.sum fun (b : ι → NNReal) (w : ℝ) => w * M.welfare v fun (j : ι) => ↑(b j)

Complete-information robust price of anarchy for smooth mechanisms ([ST13]): if M is (λ, μ)-smooth, satisfies HasZeroBidFloor, and collects nonnegative total payments on nonnegative bids, then every coarse correlated equilibrium σ of M.toCostGame v (0 ≤ v) satisfies λ / max 1 μ * socialWelfare v x ≤ E_{b ∼ σ}[M.welfare v b] for all x ∈ X.

theorem Cslib.GameTheory.SingleParameter.Mechanism.IsSmoothMechanism.welfare_ge_of_isCorrelated {ι : Type u_1} [Fintype ι] [DecidableEq ι] {M : Mechanism ι} {X : Set (ι → ℝ)} {lam μ : ℝ} (hM : M.IsSmoothMechanism X lam μ) (h0 : M.HasZeroBidFloor) (hpay : ∀ (b : ι → ℝ), 0 ≤ b → 0 ≤ ∑ i : ι, M.payment b i) {v : ι → ℝ} (hv : 0 ≤ v) {x : ι → ℝ} (hx : x ∈ X) {σ : Convexity.StdSimplex ℝ (ι → NNReal)} (hσ : (M.toCostGame v).IsCorrelatedEquilibrium σ) :
lam / max 1 μ * socialWelfare v x ≤ σ.sum fun (b : ι → NNReal) (w : ℝ) => w * M.welfare v fun (j : ι) => ↑(b j)

Correlated-equilibrium welfare bound for (λ, μ)-smooth mechanisms.

theorem Cslib.GameTheory.SingleParameter.Mechanism.IsSmoothMechanism.welfare_ge_of_isPureNash {ι : Type u_1} [Fintype ι] [DecidableEq ι] {M : Mechanism ι} {X : Set (ι → ℝ)} {lam μ : ℝ} (hM : M.IsSmoothMechanism X lam μ) (h0 : M.HasZeroBidFloor) (hpay : ∀ (b : ι → ℝ), 0 ≤ b → 0 ≤ ∑ i : ι, M.payment b i) {v : ι → ℝ} (hv : 0 ≤ v) {x : ι → ℝ} (hx : x ∈ X) {b : ι → NNReal} (hb : (M.toCostGame v).IsPureNash b) :
lam / max 1 μ * socialWelfare v x ≤ M.welfare v fun (j : ι) => ↑(b j)

Pure Nash welfare bound for (λ, μ)-smooth mechanisms.

theorem Cslib.GameTheory.SingleParameter.Mechanism.IsSmoothMechanism.integral_welfare_ge_of_isBayesNash {ι : Type u_1} [Fintype ι] [DecidableEq ι] {M : Mechanism ι} {X : Set (ι → ℝ)} {lam μ : ℝ} (hM : M.IsSmoothMechanism X lam μ) (h0 : M.HasZeroBidFloor) (hpay : ∀ (b : ι → ℝ), 0 ≤ b → 0 ≤ ∑ i : ι, M.payment b i) {ν : ι → MeasureTheory.Measure ℝ} [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (ν i)] {h : ι → ℝ} (hsupp : ∀ (i : ι), ∀ᵐ (t : ℝ) ∂ν i, t ∈ Set.Icc 0 (h i)) {β : ι → ℝ → ℝ} (hβ : M.IsBayesNash ν h β) (halloc_dev : ∀ (i : ι) (z : ℝ), 0 ≤ z → MeasureTheory.Integrable (fun (w : ι → ℝ) => M.allocation (Function.update (fun (j : ι) => β j (w j)) i z) i) (MeasureTheory.Measure.pi ν)) (hpay_dev : ∀ (i : ι) (z : ℝ), 0 ≤ z → MeasureTheory.Integrable (fun (w : ι → ℝ) => M.payment (Function.update (fun (j : ι) => β j (w j)) i z) i) (MeasureTheory.Measure.pi ν)) (hutil_eq : ∀ (i : ι), MeasureTheory.Integrable (fun (v : ι → ℝ) => M.utility i (v i) fun (j : ι) => β j (v j)) (MeasureTheory.Measure.pi ν)) (hpay_eq : ∀ (i : ι), MeasureTheory.Integrable (fun (v : ι → ℝ) => M.payment (fun (j : ι) => β j (v j)) i) (MeasureTheory.Measure.pi ν)) {x : (ι → ℝ) → ι → ℝ} (hx_mem : ∀ (v : ι → ℝ), (∀ (i : ι), v i ∈ Set.Icc 0 (h i)) → x v ∈ X) (hx_int : MeasureTheory.Integrable (fun (v : ι → ℝ) => socialWelfare v (x v)) (MeasureTheory.Measure.pi ν)) :
lam / max 1 μ * ∫ (v : ι → ℝ), socialWelfare v (x v) ∂MeasureTheory.Measure.pi ν ≤ ∫ (v : ι → ℝ), M.welfare v fun (j : ι) => β j (v j) ∂MeasureTheory.Measure.pi ν

Bayesian price of anarchy for smooth mechanisms ([ST13]): if M is (λ, μ)-smooth, satisfies HasZeroBidFloor, and collects nonnegative total payments on nonnegative bids, then for any independent probability measures ν i supported on [0, h i] and any Bayes–Nash equilibrium β (M.IsBayesNash ν h β), every integrable benchmark allocation rule x : (ι → ℝ) → ι → ℝ with x v ∈ X on ∏ i, [0, h i] achieves expected equilibrium welfare at least λ / max 1 μ * ∫ v, socialWelfare v (x v) ∂Measure.pi ν.

First-price auction: (1 - 1 / e, 1)-smoothness and unconditional PoA #

theorem Cslib.GameTheory.SingleParameter.FirstPrice.sum_payment_nonneg {ι : Type u_1} [LinearOrder ι] [Fintype ι] {b : ι → ℝ} (hb : 0 ≤ b) :
0 ≤ ∑ i : ι, mechanism.payment b i
theorem Cslib.GameTheory.SingleParameter.FirstPrice.utility_nonneg_of_le {ι : Type u_1} [LinearOrder ι] (b : ι → ℝ) (i : ι) {v z : ℝ} (hzv : z ≤ v) :
theorem Cslib.GameTheory.SingleParameter.FirstPrice.singleItemFeasible_cases {ι : Type u_1} [Fintype ι] {x : ι → ℝ} (hx : x ∈ Vickrey.singleItemFeasible) :
(∀ (i : ι), x i = 0) ∨ ∃ (i : ι), x i = 1 ∧ ∀ (j : ι), j ≠ i → x j = 0

Deterministic (1 / 2, 1)-smoothness of the first-price auction: shading by 1 / 2 on the benchmark winner gives total deviation utility at least 1 / 2 * socialWelfare v x - ∑ i, payment b i.

Uniform K-grid (exp (-1 / K) * (1 - exp (-1)), 1)-smoothness of the first-price auction (finitely supported discretization of the geometric-shading distribution of [ST13]).

theorem Cslib.GameTheory.SingleParameter.FirstPrice.welfare_ge_one_sub_exp_neg_one {ι : Type u_1} [LinearOrder ι] [Fintype ι] {v : ι → ℝ} (hv : 0 ≤ v) {x : ι → ℝ} (hx : x ∈ Vickrey.singleItemFeasible) {σ : Convexity.StdSimplex ℝ (ι → NNReal)} (hσ : (mechanism.toCostGame v).IsCoarseCorrelatedEquilibrium σ) :
(1 - Real.exp (-1)) * socialWelfare v x ≤ σ.sum fun (b : ι → NNReal) (w : ℝ) => w * mechanism.welfare v fun (j : ι) => ↑(b j)

Unconditional 1 - 1 / e robust price of anarchy of the first-price auction ([ST13]): for every nonnegative valuation profile v, every feasible single-item allocation x ∈ singleItemFeasible, and every coarse correlated equilibrium σ of mechanism.toCostGame v (without any no-overbidding assumption), (1 - exp (-1)) * socialWelfare v x ≤ E_{b ∼ σ}[mechanism.welfare v b].

theorem Cslib.GameTheory.SingleParameter.FirstPrice.integral_welfare_ge_one_sub_exp_neg_one {ι : Type u_1} [LinearOrder ι] [Fintype ι] {ν : ι → MeasureTheory.Measure ℝ} [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (ν i)] {h : ι → ℝ} (hsupp : ∀ (i : ι), ∀ᵐ (t : ℝ) ∂ν i, t ∈ Set.Icc 0 (h i)) {β : ι → ℝ → ℝ} (hβ : mechanism.IsBayesNash ν h β) (halloc_dev : ∀ (i : ι) (z : ℝ), 0 ≤ z → MeasureTheory.Integrable (fun (w : ι → ℝ) => mechanism.allocation (Function.update (fun (j : ι) => β j (w j)) i z) i) (MeasureTheory.Measure.pi ν)) (hpay_dev : ∀ (i : ι) (z : ℝ), 0 ≤ z → MeasureTheory.Integrable (fun (w : ι → ℝ) => mechanism.payment (Function.update (fun (j : ι) => β j (w j)) i z) i) (MeasureTheory.Measure.pi ν)) (hutil_eq : ∀ (i : ι), MeasureTheory.Integrable (fun (v : ι → ℝ) => mechanism.utility i (v i) fun (j : ι) => β j (v j)) (MeasureTheory.Measure.pi ν)) (hpay_eq : ∀ (i : ι), MeasureTheory.Integrable (fun (v : ι → ℝ) => mechanism.payment (fun (j : ι) => β j (v j)) i) (MeasureTheory.Measure.pi ν)) {x : (ι → ℝ) → ι → ℝ} (hx_mem : ∀ (v : ι → ℝ), (∀ (i : ι), v i ∈ Set.Icc 0 (h i)) → x v ∈ Vickrey.singleItemFeasible) (hx_int : MeasureTheory.Integrable (fun (v : ι → ℝ) => socialWelfare v (x v)) (MeasureTheory.Measure.pi ν)) :
(1 - Real.exp (-1)) * ∫ (v : ι → ℝ), socialWelfare v (x v) ∂MeasureTheory.Measure.pi ν ≤ ∫ (v : ι → ℝ), mechanism.welfare v fun (j : ι) => β j (v j) ∂MeasureTheory.Measure.pi ν

Unconditional 1 - 1 / e Bayesian price of anarchy of the first-price auction ([ST13]): for arbitrary independent valuation distributions ν i on [0, h i] and any Bayes–Nash equilibrium β of FirstPrice.mechanism, expected equilibrium welfare is at least 1 - exp (-1) times the expected welfare of any integrable benchmark rule x valued in singleItemFeasible.

Second-price (Vickrey) auction: 1 / 2 PoA under no-overbidding and necessity witness #

Truthful deviation lower bound in the second-price auction: for every bidder i, valuation v, and bid profile b, bidding v guarantees utility at least v - highestOtherBid b i.

theorem Cslib.GameTheory.SingleParameter.Vickrey.welfare_ge_half_of_noOverbidding {ι : Type u_1} [LinearOrder ι] [Fintype ι] {v : ι → ℝ} (hv : 0 ≤ v) {x : ι → ℝ} (hx : x ∈ singleItemFeasible) {σ : Convexity.StdSimplex ℝ (ι → NNReal)} (hσ : (mechanism.toCostGame v).IsCoarseCorrelatedEquilibrium σ) (hnob : ∀ b ∈ σ.support, ∀ (j : ι), ↑(b j) ≤ v j) :
1 / 2 * socialWelfare v x ≤ σ.sum fun (b : ι → NNReal) (w : ℝ) => w * mechanism.welfare v fun (j : ι) => ↑(b j)

1 / 2 robust price of anarchy of the second-price auction under no-overbidding ([CKS08]): for every coarse correlated equilibrium σ of Vickrey.mechanism.toCostGame v (0 ≤ v) supported on bid profiles satisfying b j ≤ v j, 1 / 2 * socialWelfare v x ≤ E_{b ∼ σ}[mechanism.welfare v b] for all x ∈ singleItemFeasible.

theorem Cslib.GameTheory.SingleParameter.Vickrey.integral_welfare_ge_half_of_isBayesNash_noOverbidding {ι : Type u_1} [LinearOrder ι] [Fintype ι] {ν : ι → MeasureTheory.Measure ℝ} [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (ν i)] {h : ι → ℝ} (hsupp : ∀ (i : ι), ∀ᵐ (t : ℝ) ∂ν i, t ∈ Set.Icc 0 (h i)) {β : ι → ℝ → ℝ} (hβ : mechanism.IsBayesNash ν h β) (hnob : ∀ (i : ι), ∀ t ∈ Set.Icc 0 (h i), β i t ≤ t) (halloc_dev : ∀ (i : ι) (z : ℝ), 0 ≤ z → MeasureTheory.Integrable (fun (w : ι → ℝ) => mechanism.allocation (Function.update (fun (j : ι) => β j (w j)) i z) i) (MeasureTheory.Measure.pi ν)) (hpay_dev : ∀ (i : ι) (z : ℝ), 0 ≤ z → MeasureTheory.Integrable (fun (w : ι → ℝ) => mechanism.payment (Function.update (fun (j : ι) => β j (w j)) i z) i) (MeasureTheory.Measure.pi ν)) (hutil_eq : ∀ (i : ι), MeasureTheory.Integrable (fun (v : ι → ℝ) => mechanism.utility i (v i) fun (j : ι) => β j (v j)) (MeasureTheory.Measure.pi ν)) (hpay_eq : ∀ (i : ι), MeasureTheory.Integrable (fun (v : ι → ℝ) => mechanism.payment (fun (j : ι) => β j (v j)) i) (MeasureTheory.Measure.pi ν)) {x : (ι → ℝ) → ι → ℝ} (hx_mem : ∀ (v : ι → ℝ), (∀ (i : ι), v i ∈ Set.Icc 0 (h i)) → x v ∈ singleItemFeasible) (hx_int : MeasureTheory.Integrable (fun (v : ι → ℝ) => socialWelfare v (x v)) (MeasureTheory.Measure.pi ν)) :
1 / 2 * ∫ (v : ι → ℝ), socialWelfare v (x v) ∂MeasureTheory.Measure.pi ν ≤ ∫ (v : ι → ℝ), mechanism.welfare v fun (j : ι) => β j (v j) ∂MeasureTheory.Measure.pi ν

1 / 2 Bayesian price of anarchy of the second-price auction under no-overbidding ([CKS08]): for independent valuation priors ν i on [0, h i] and any Bayes–Nash equilibrium β satisfying β i t ≤ t on [0, h i], expected equilibrium welfare is at least 1 / 2 of any integrable singleItemFeasible benchmark.

Necessity of no-overbidding in the second-price auction: with two bidders of valuations v 0 = 0 and v 1 = 1, the overbidding profile b 0 = 2, b 1 = 0 is a pure Nash equilibrium of Vickrey.mechanism.toCostGame v whose realized social welfare is 0 while optimal single-item welfare is 1.