Documentation

CslibFrontier.GameTheory.Mechanism.Bayesian

Bayes–Nash equilibrium and revenue equivalence #

A sealed-bid mechanism M : SingleParameter.Mechanism ι is played by bidders with independent private valuations: bidder i's valuation is drawn from μ i, a distribution on [0, h i], and bidder i bids β i v when its valuation is v. This is the independent single-dimensional game of [Har21], Chapter 2, §2.4, with linear utility v · x − p (Definition 2.4.1).

From bidder i's interim point of view (its own valuation known, the others drawn from the prior and bidding according to β), a bid z wins i the expected allocation x̃ᵢ(z) = E_{v₋ᵢ}[xᵢ(z, β₋ᵢ(v₋ᵢ))] and costs the expected payment p̃ᵢ(z) (Mechanism.interimAllocation, Mechanism.interimPayment); Hartline writes xᵢ(vᵢ) = x̃ᵢ(βᵢ(vᵢ)) and pᵢ(vᵢ) = p̃ᵢ(βᵢ(vᵢ)) for the interim rules indexed by values (§2.4). Both expectations are integrals over the product prior Measure.pi μ in which coordinate i is overwritten; when the μ j are probability measures this is the expectation over v₋ᵢ.

Conventions #

Main definitions #

Main results #

The first-price auction, whose uniform equilibrium is a client of this API, is in CslibFrontier.GameTheory.Mechanism.FirstPrice.

References #

theorem Cslib.GameTheory.SingleParameter.IsTruthfulOn.payment_eq {X P : ℝ → ℝ} {h : ℝ} (hT : IsTruthfulOn X P (Set.Icc 0 h)) {v : ℝ} (hv : v ∈ Set.Icc 0 h) :
P v = P 0 + (v * X v - ∫ (z : ℝ) in 0..v, X z)

Payment identity on an interval. Incentive compatibility on [0, h] determines the payment curve from the allocation curve and P(0): P(v) = P(0) + v X(v) − ∫₀ᵛ X.

theorem Cslib.GameTheory.SingleParameter.isTruthfulOn_of_payment_eq {X P : ℝ → ℝ} {h : ℝ} (hX : MonotoneOn X (Set.Icc 0 h)) (hP : ∀ v ∈ Set.Icc 0 h, P v = P 0 + (v * X v - ∫ (z : ℝ) in 0..v, X z)) :

Sufficiency on an interval. A monotone allocation curve on [0, h] with the payments of the payment identity is incentive compatible on [0, h].

Bayes–Nash equilibrium #

noncomputable def Cslib.GameTheory.SingleParameter.Mechanism.interimAllocation {ι : Type u_1} [Fintype ι] [DecidableEq ι] (M : Mechanism ι) (μ : ι → MeasureTheory.Measure ℝ) (β : ι → ℝ → ℝ) (i : ι) (z : ℝ) :

The interim allocation x̃ᵢ(z) of bidder i at bid z ([Har21], §2.4): the expected allocation of i when it bids z and every other bidder j bids β j (v j) with v ∼ Measure.pi μ.

noncomputable def Cslib.GameTheory.SingleParameter.Mechanism.interimPayment {ι : Type u_1} [Fintype ι] [DecidableEq ι] (M : Mechanism ι) (μ : ι → MeasureTheory.Measure ℝ) (β : ι → ℝ → ℝ) (i : ι) (z : ℝ) :

The interim payment p̃ᵢ(z) of bidder i at bid z ([Har21], §2.4): the expected payment of i when it bids z and every other bidder j bids β j (v j) with v ∼ Measure.pi μ.

def Cslib.GameTheory.SingleParameter.Mechanism.IsBayesNash {ι : Type u_1} [Fintype ι] [DecidableEq ι] (M : Mechanism ι) (μ : ι → MeasureTheory.Measure ℝ) (h : ι → ℝ) (β : ι → ℝ → ℝ) :

The strategy profile β is a Bayes–Nash equilibrium of M for the independent prior μ with supports [0, h i] ([Har21], Definition 2.3.2, for independent single-dimensional games and stated through the interim rules of §2.4). For every bidder i and every type v ∈ [0, h i]: the prescribed bid β i v is legal (nonnegative), and no legal bid z ≥ 0 gives v a higher interim utility v x̃ᵢ(z) − p̃ᵢ(z). Deviations to bids outside the range of β i are allowed.

The definition does not itself tie h i to μ i: h i is meant to be the support bound of μ i, and the μ i are meant to be probability measures, as the revenue results assume (HasValueDensity). Otherwise the condition can be vacuous: if h i < 0 it constrains no type of i, and if μ j = 0 for some j all interim rules are 0.

theorem Cslib.GameTheory.SingleParameter.Mechanism.IsBayesNash.nonneg {ι : Type u_1} [Fintype ι] [DecidableEq ι] {M : Mechanism ι} {μ : ι → MeasureTheory.Measure ℝ} {h : ι → ℝ} {β : ι → ℝ → ℝ} (hM : M.IsBayesNash μ h β) {i : ι} {v : ℝ} (hv : v ∈ Set.Icc 0 (h i)) :
0 ≤ β i v
theorem Cslib.GameTheory.SingleParameter.Mechanism.IsBayesNash.isTruthfulOn {ι : Type u_1} [Fintype ι] [DecidableEq ι] {M : Mechanism ι} {μ : ι → MeasureTheory.Measure ℝ} {h : ι → ℝ} {β : ι → ℝ → ℝ} (hM : M.IsBayesNash μ h β) (i : ι) :
IsTruthfulOn (fun (v : ℝ) => M.interimAllocation μ β i (β i v)) (fun (v : ℝ) => M.interimPayment μ β i (β i v)) (Set.Icc 0 (h i))

In a Bayes–Nash equilibrium the interim rules indexed by values, xᵢ = x̃ᵢ ∘ βᵢ and pᵢ = p̃ᵢ ∘ βᵢ, are incentive compatible on the support.

theorem Cslib.GameTheory.SingleParameter.Mechanism.IsBayesNash.monotoneOn {ι : Type u_1} [Fintype ι] [DecidableEq ι] {M : Mechanism ι} {μ : ι → MeasureTheory.Measure ℝ} {h : ι → ℝ} {β : ι → ℝ → ℝ} (hM : M.IsBayesNash μ h β) (i : ι) :
MonotoneOn (fun (v : ℝ) => M.interimAllocation μ β i (β i v)) (Set.Icc 0 (h i))

Bayes–Nash equilibrium, monotonicity ([Har21], Theorem 2.5.1 (i)): each interim allocation rule xᵢ(v) = x̃ᵢ(βᵢ(v)) is nondecreasing on [0, hᵢ].

theorem Cslib.GameTheory.SingleParameter.Mechanism.IsBayesNash.interimPayment_eq {ι : Type u_1} [Fintype ι] [DecidableEq ι] {M : Mechanism ι} {μ : ι → MeasureTheory.Measure ℝ} {h : ι → ℝ} {β : ι → ℝ → ℝ} (hM : M.IsBayesNash μ h β) {i : ι} {v : ℝ} (hv : v ∈ Set.Icc 0 (h i)) :
M.interimPayment μ β i (β i v) = M.interimPayment μ β i (β i 0) + (v * M.interimAllocation μ β i (β i v) - ∫ (z : ℝ) in 0..v, M.interimAllocation μ β i (β i z))

Bayes–Nash equilibrium, payment identity ([Har21], Theorem 2.5.1 (ii)): pᵢ(v) = pᵢ(0) + v xᵢ(v) − ∫₀ᵛ xᵢ(z) dz for every type v ∈ [0, hᵢ].

theorem Cslib.GameTheory.SingleParameter.Mechanism.isBayesNash_iff_isTruthfulOn {ι : Type u_1} [Fintype ι] [DecidableEq ι] {M : Mechanism ι} {μ : ι → MeasureTheory.Measure ℝ} {h : ι → ℝ} {β : ι → ℝ → ℝ} :
M.IsBayesNash μ h β ↔ ∀ (i : ι), (∀ v ∈ Set.Icc 0 (h i), 0 ≤ β i v) ∧ IsTruthfulOn (fun (v : ℝ) => M.interimAllocation μ β i (β i v)) (fun (v : ℝ) => M.interimPayment μ β i (β i v)) (Set.Icc 0 (h i)) ∧ ∀ v ∈ Set.Icc 0 (h i), ∀ (z : ℝ), 0 ≤ z → ∃ w ∈ Set.Icc 0 (h i), v * M.interimAllocation μ β i z - M.interimPayment μ β i z ≤ v * M.interimAllocation μ β i (β i w) - M.interimPayment μ β i (β i w)

A strategy profile is a Bayes–Nash equilibrium iff it prescribes legal bids, the interim rules indexed by values are incentive compatible on the support, and every legal bid is weakly dominated, for each type, by the bid of some type in the support. The last condition replaces Hartline's assumption that strategies are onto ([Har21], Proposition 2.4.1).

theorem Cslib.GameTheory.SingleParameter.Mechanism.isBayesNash_iff {ι : Type u_1} [Fintype ι] [DecidableEq ι] {M : Mechanism ι} {μ : ι → MeasureTheory.Measure ℝ} {h : ι → ℝ} {β : ι → ℝ → ℝ} :
M.IsBayesNash μ h β ↔ ∀ (i : ι), (∀ v ∈ Set.Icc 0 (h i), 0 ≤ β i v) ∧ MonotoneOn (fun (v : ℝ) => M.interimAllocation μ β i (β i v)) (Set.Icc 0 (h i)) ∧ (∀ v ∈ Set.Icc 0 (h i), M.interimPayment μ β i (β i v) = M.interimPayment μ β i (β i 0) + (v * M.interimAllocation μ β i (β i v) - ∫ (z : ℝ) in 0..v, M.interimAllocation μ β i (β i z))) ∧ ∀ v ∈ Set.Icc 0 (h i), ∀ (z : ℝ), 0 ≤ z → ∃ w ∈ Set.Icc 0 (h i), v * M.interimAllocation μ β i z - M.interimPayment μ β i z ≤ v * M.interimAllocation μ β i (β i w) - M.interimPayment μ β i (β i w)

Characterization of Bayes–Nash equilibrium ([Har21], Theorem 2.5.1, both directions): a strategy profile prescribing legal bids is a Bayes–Nash equilibrium iff each interim allocation rule is monotone on the support, the payment identity holds, and every legal bid is weakly dominated by the bid of some type in the support. Hartline's converse assumes onto strategies, which satisfy the domination condition with equality.

Revenue #

theorem Cslib.GameTheory.SingleParameter.Mechanism.IsDSIC.isBayesNash_id {ι : Type u_1} [Fintype ι] [DecidableEq ι] {M : Mechanism ι} {μ : ι → MeasureTheory.Measure ℝ} {h : ι → ℝ} [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] (hM : M.IsDSIC) (hμ : ∀ (i : ι), ∀ᵐ (v : ℝ) ∂μ i, 0 ≤ v) (hx : ∀ (i : ι) (z : ℝ), 0 ≤ z → MeasureTheory.Integrable (fun (w : ι → ℝ) => M.allocation (Function.update w i z) i) (MeasureTheory.Measure.pi μ)) (hp : ∀ (i : ι) (z : ℝ), 0 ≤ z → MeasureTheory.Integrable (fun (w : ι → ℝ) => M.payment (Function.update w i z) i) (MeasureTheory.Measure.pi μ)) :
M.IsBayesNash μ h fun (x : ι) (v : ℝ) => v

Truthful bidding is a Bayes–Nash equilibrium of every DSIC mechanism: under any product of probability measures supported on [0, ∞) for which the interim allocation and payment integrands are integrable, bidding truthfully (fun _ v => v) is a Bayes–Nash equilibrium on any [0, h i]. Pointwise dominant-strategy incentive compatibility integrates directly over the other bidders' valuations.

theorem Cslib.GameTheory.SingleParameter.Mechanism.integral_payment_eq_integral_interimPayment {ι : Type u_1} [Fintype ι] [DecidableEq ι] {μ : ι → MeasureTheory.Measure ℝ} [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] (M : Mechanism ι) (β : ι → ℝ → ℝ) (i : ι) (hp : MeasureTheory.Integrable (fun (v : ι → ℝ) => M.payment (fun (j : ι) => β j (v j)) i) (MeasureTheory.Measure.pi μ)) :
∫ (v : ι → ℝ), M.payment (fun (j : ι) => β j (v j)) i ∂MeasureTheory.Measure.pi μ = ∫ (z : ℝ), M.interimPayment μ β i (β i z) ∂μ i

Bidder i's expected payment is the expectation of its interim payment pᵢ(vᵢ) over its own valuation (Fubini over coordinate i).

theorem Cslib.GameTheory.SingleParameter.Mechanism.IsBayesNash.integral_payment_eq_integral_interimAllocation {ι : Type u_1} [Fintype ι] [DecidableEq ι] {M : Mechanism ι} {μ : ι → MeasureTheory.Measure ℝ} {h : ι → ℝ} {β : ι → ℝ → ℝ} [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] {f : ι → ℝ → NNReal} (hμ : ∀ (i : ι), HasValueDensity (μ i) (f i) (h i)) (hM : M.IsBayesNash μ h β) (i : ι) (hp : MeasureTheory.Integrable (fun (v : ι → ℝ) => M.payment (fun (j : ι) => β j (v j)) i) (MeasureTheory.Measure.pi μ)) {B : ℝ} (hB : ∀ (b : ι → ℝ), 0 ≤ b → |M.allocation b i| ≤ B) :
∫ (v : ι → ℝ), M.payment (fun (j : ι) => β j (v j)) i ∂MeasureTheory.Measure.pi μ = M.interimPayment μ β i (β i 0) + ∫ (z : ℝ), virtualValue (μ i) (f i) z * M.interimAllocation μ β i (β i z) ∂μ i

Expected payment in a Bayes–Nash equilibrium, interim form. Bidder i's expected payment is the payment pᵢ(0) of its zero type plus E[φᵢ(vᵢ) xᵢ(vᵢ)], where xᵢ(v) = x̃ᵢ(βᵢ(v)) is its interim allocation rule. This is the payment identity integrated against the prior, followed by the one-dimensional revenue identity HasValueDensity.integral_payment_eq_integral_virtualValue_mul.

theorem Cslib.GameTheory.SingleParameter.Mechanism.IsBayesNash.integral_payment_eq {ι : Type u_1} [Fintype ι] [DecidableEq ι] {M : Mechanism ι} {μ : ι → MeasureTheory.Measure ℝ} {h : ι → ℝ} {β : ι → ℝ → ℝ} [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] {f : ι → ℝ → NNReal} (hμ : ∀ (i : ι), HasValueDensity (μ i) (f i) (h i)) (hM : M.IsBayesNash μ h β) (i : ι) (hp : MeasureTheory.Integrable (fun (v : ι → ℝ) => M.payment (fun (j : ι) => β j (v j)) i) (MeasureTheory.Measure.pi μ)) (hx : Measurable fun (v : ι → ℝ) => M.allocation (fun (j : ι) => β j (v j)) i) {B : ℝ} (hB : ∀ (b : ι → ℝ), 0 ≤ b → |M.allocation b i| ≤ B) :
∫ (v : ι → ℝ), M.payment (fun (j : ι) => β j (v j)) i ∂MeasureTheory.Measure.pi μ = M.interimPayment μ β i (β i 0) + ∫ (v : ι → ℝ), virtualValue (μ i) (f i) (v i) * M.allocation (fun (j : ι) => β j (v j)) i ∂MeasureTheory.Measure.pi μ

Expected payment in a Bayes–Nash equilibrium. Bidder i's expected payment is the payment pᵢ(0) of its zero type plus its expected virtual surplus E[φᵢ(vᵢ) xᵢ(β(v))] under the ex post allocation.

theorem Cslib.GameTheory.SingleParameter.Mechanism.IsBayesNash.integral_sum_payment_eq {ι : Type u_1} [Fintype ι] [DecidableEq ι] {M : Mechanism ι} {μ : ι → MeasureTheory.Measure ℝ} {h : ι → ℝ} {β : ι → ℝ → ℝ} [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] {f : ι → ℝ → NNReal} (hμ : ∀ (i : ι), HasValueDensity (μ i) (f i) (h i)) (hM : M.IsBayesNash μ h β) (hp : ∀ (i : ι), MeasureTheory.Integrable (fun (v : ι → ℝ) => M.payment (fun (j : ι) => β j (v j)) i) (MeasureTheory.Measure.pi μ)) (hx : ∀ (i : ι), Measurable fun (v : ι → ℝ) => M.allocation (fun (j : ι) => β j (v j)) i) {B : ℝ} (hB : ∀ (b : ι → ℝ), 0 ≤ b → ∀ (i : ι), |M.allocation b i| ≤ B) :
∫ (v : ι → ℝ), ∑ i : ι, M.payment (fun (j : ι) => β j (v j)) i ∂MeasureTheory.Measure.pi μ = ∑ i : ι, M.interimPayment μ β i (β i 0) + ∫ (v : ι → ℝ), ∑ i : ι, virtualValue (μ i) (f i) (v i) * M.allocation (fun (j : ι) => β j (v j)) i ∂MeasureTheory.Measure.pi μ

Expected revenue in a Bayes–Nash equilibrium ([Mye81]; compare [Rou13], Lecture 5, eq. (6), for DSIC mechanisms): the expected revenue is the total payment ∑ᵢ pᵢ(0) of the zero types plus the expected virtual welfare E[∑ᵢ φᵢ(vᵢ) xᵢ(β(v))] of the equilibrium allocation.

theorem Cslib.GameTheory.SingleParameter.Mechanism.IsBayesNash.integral_sum_payment_eq_of_allocation_ae_eq {ι : Type u_1} [Fintype ι] [DecidableEq ι] {M : Mechanism ι} {μ : ι → MeasureTheory.Measure ℝ} {h : ι → ℝ} {β : ι → ℝ → ℝ} [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] {f : ι → ℝ → NNReal} {M' : Mechanism ι} {β' : ι → ℝ → ℝ} (hμ : ∀ (i : ι), HasValueDensity (μ i) (f i) (h i)) (hM : M.IsBayesNash μ h β) (hM' : M'.IsBayesNash μ h β') (hp : ∀ (i : ι), MeasureTheory.Integrable (fun (v : ι → ℝ) => M.payment (fun (j : ι) => β j (v j)) i) (MeasureTheory.Measure.pi μ)) (hp' : ∀ (i : ι), MeasureTheory.Integrable (fun (v : ι → ℝ) => M'.payment (fun (j : ι) => β' j (v j)) i) (MeasureTheory.Measure.pi μ)) (hx : ∀ (i : ι), Measurable fun (v : ι → ℝ) => M.allocation (fun (j : ι) => β j (v j)) i) (hx' : ∀ (i : ι), Measurable fun (v : ι → ℝ) => M'.allocation (fun (j : ι) => β' j (v j)) i) {B B' : ℝ} (hB : ∀ (b : ι → ℝ), 0 ≤ b → ∀ (i : ι), |M.allocation b i| ≤ B) (hB' : ∀ (b : ι → ℝ), 0 ≤ b → ∀ (i : ι), |M'.allocation b i| ≤ B') (hxx : ∀ᵐ (v : ι → ℝ) ∂MeasureTheory.Measure.pi μ, ∀ (i : ι), M.allocation (fun (j : ι) => β j (v j)) i = M'.allocation (fun (j : ι) => β' j (v j)) i) (h0 : ∀ (i : ι), M.interimPayment μ β i (β i 0) = M'.interimPayment μ β' i (β' i 0)) :
∫ (v : ι → ℝ), ∑ i : ι, M.payment (fun (j : ι) => β j (v j)) i ∂MeasureTheory.Measure.pi μ = ∫ (v : ι → ℝ), ∑ i : ι, M'.payment (fun (j : ι) => β' j (v j)) i ∂MeasureTheory.Measure.pi μ

Revenue equivalence, ex post form ([Har21], Corollary 2.7.1). Two Bayes–Nash equilibria, possibly of different mechanisms, whose ex post allocations agree almost surely and whose zero types make the same interim payments, have the same expected revenue. Hartline states it for zero types paying zero. Almost sure equality of the ex post allocations is stronger than Hartline's "same BNE allocation", which is about interim allocation rules; that reading is IsBayesNash.integral_sum_payment_eq_of_interimAllocation_ae_eq.

theorem Cslib.GameTheory.SingleParameter.Mechanism.IsBayesNash.integral_sum_payment_eq_of_interimAllocation_ae_eq {ι : Type u_1} [Fintype ι] [DecidableEq ι] {M : Mechanism ι} {μ : ι → MeasureTheory.Measure ℝ} {h : ι → ℝ} {β : ι → ℝ → ℝ} [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] {f : ι → ℝ → NNReal} {M' : Mechanism ι} {β' : ι → ℝ → ℝ} (hμ : ∀ (i : ι), HasValueDensity (μ i) (f i) (h i)) (hM : M.IsBayesNash μ h β) (hM' : M'.IsBayesNash μ h β') (hp : ∀ (i : ι), MeasureTheory.Integrable (fun (v : ι → ℝ) => M.payment (fun (j : ι) => β j (v j)) i) (MeasureTheory.Measure.pi μ)) (hp' : ∀ (i : ι), MeasureTheory.Integrable (fun (v : ι → ℝ) => M'.payment (fun (j : ι) => β' j (v j)) i) (MeasureTheory.Measure.pi μ)) {B B' : ℝ} (hB : ∀ (b : ι → ℝ), 0 ≤ b → ∀ (i : ι), |M.allocation b i| ≤ B) (hB' : ∀ (b : ι → ℝ), 0 ≤ b → ∀ (i : ι), |M'.allocation b i| ≤ B') (hxx : ∀ (i : ι), ∀ᵐ (z : ℝ) ∂μ i, M.interimAllocation μ β i (β i z) = M'.interimAllocation μ β' i (β' i z)) (h0 : ∀ (i : ι), M.interimPayment μ β i (β i 0) = M'.interimPayment μ β' i (β' i 0)) :
∫ (v : ι → ℝ), ∑ i : ι, M.payment (fun (j : ι) => β j (v j)) i ∂MeasureTheory.Measure.pi μ = ∫ (v : ι → ℝ), ∑ i : ι, M'.payment (fun (j : ι) => β' j (v j)) i ∂MeasureTheory.Measure.pi μ

Revenue equivalence ([Har21], Corollary 2.7.1). Two Bayes–Nash equilibria, possibly of different mechanisms, whose interim allocation rules xᵢ(v) = x̃ᵢ(βᵢ(v)) agree for almost every type of every bidder and whose zero types make the same interim payments have the same expected revenue. Hartline states it for zero types paying zero. Unlike the ex post form IsBayesNash.integral_sum_payment_eq_of_allocation_ae_eq, it needs no measurability of the ex post allocations.

theorem Cslib.GameTheory.SingleParameter.Mechanism.IsBayesNash.interimPayment_eq_of_interimAllocation_eq {ι : Type u_1} [Fintype ι] [DecidableEq ι] {M : Mechanism ι} {μ : ι → MeasureTheory.Measure ℝ} {h : ι → ℝ} {β : ι → ℝ → ℝ} {M' : Mechanism ι} {β' : ι → ℝ → ℝ} (hM : M.IsBayesNash μ h β) (hM' : M'.IsBayesNash μ h β') {i : ι} (hxx : ∀ v ∈ Set.Icc 0 (h i), M.interimAllocation μ β i (β i v) = M'.interimAllocation μ β' i (β' i v)) (h0 : M.interimPayment μ β i (β i 0) = M'.interimPayment μ β' i (β' i 0)) {v : ℝ} (hv : v ∈ Set.Icc 0 (h i)) :
M.interimPayment μ β i (β i v) = M'.interimPayment μ β' i (β' i v)

Interim revenue equivalence ([Har21], §2.7): in two Bayes–Nash equilibria with the same interim allocation rule for bidder i and the same payment for its zero type, every type of i makes the same interim payment.