Documentation

CslibFrontier.GameTheory.Mechanism.OptimalAuction

Myerson's optimal auction #

Bidders' valuations are independent, drawn from regular distributions with densities. Myerson's optimal auction maximizes virtual welfare pointwise and charges Myerson's payments. Among all DSIC, individually rational mechanisms with feasible allocations, it has the largest expected revenue ([Rou13], Lecture 5, §3; [Mye81]).

The argument has three steps.

  1. Expected revenue is at most expected virtual welfare (Mechanism.IsDSIC.integral_sum_payment_le). This holds with equality for normalized mechanisms, in particular for Myerson's payments.
  2. A pointwise virtual-welfare maximizer has the largest expected virtual welfare among feasible allocation rules.
  3. When every φᵢ is strictly increasing on [0, ∞), any virtual-welfare maximizer is monotone, whatever the tie-breaking (IsVirtualWelfareMaximizing.isMonotone, in CslibFrontier.GameTheory.Mechanism.SingleParameter), so Myerson's payments make it DSIC (myerson_isDSIC_of_isVirtualWelfareMaximizing). When fᵢ(0) = 0, IsRegular gives strict monotonicity on (0, ∞) only (IsRegular.strictMonoOn_Ioi), and Lean's x / 0 = 0 gives the division-by-zero artifact φᵢ(0) = 0; withholding allocation at 0 restores monotonicity on all of [0, ∞).

For a single item and i.i.d. regular bidders, Vickrey.reserveAllocation awards the item to the highest bidder when its bid is positive and its virtual valuation is nonnegative. Requiring a positive bid prevents a zero bid from winning when f(0) = 0 makes φ(0) = 0; since φ(0) ≤ 0 always holds for virtualValue (virtualValue_le), this rule still maximizes virtual welfare on all nonnegative profiles (Vickrey.isVirtualWelfareMaximizing_reserveAllocation) and is monotone whenever φ is nondecreasing on (0, ∞) (Vickrey.isMonotone_reserveAllocation). The reserve price r = inf {v > 0 | φ(v) ≥ 0} is φ⁻¹(0) when φ is continuous on (0, ∞) with a zero. The Myerson payment is max(r, highest other bid), so this is the Vickrey auction with reserve price r (Vickrey.myersonPayment_reserveAllocation, Lecture 5, §3.1). For the uniform distribution on [0, 1] the reserve price is 1/2.

The optimality theorem takes the measurability of the virtual-welfare maximizer as a hypothesis. For the single-item rule it is proved (Vickrey.measurable_reserveAllocation). Optimality is among DSIC mechanisms. The stronger optimality among Bayesian incentive-compatible mechanisms (Lecture 5, §3.2) and ironing for irregular distributions are not covered.

Main definitions #

Main results #

References #

Myerson's optimal auction is DSIC #

theorem Cslib.GameTheory.SingleParameter.myerson_isDSIC_of_isVirtualWelfareMaximizing {ι : Type u_1} [Fintype ι] [DecidableEq ι] {φ : ι → ℝ → ℝ} {X : Set (ι → ℝ)} {x : (ι → ℝ) → ι → ℝ} (hx : IsVirtualWelfareMaximizing φ X x) (hφ : ∀ (i : ι), StrictMonoOn (φ i) (Set.Ici 0)) :

Myerson's optimal auction is DSIC when each φᵢ is strictly increasing on [0, ∞): a virtual-welfare maximizer is then monotone for any tie-breaking, so Myerson's payments make it DSIC.

theorem Cslib.GameTheory.SingleParameter.myerson_isIR_of_isVirtualWelfareMaximizing {ι : Type u_1} [Fintype ι] [DecidableEq ι] {φ : ι → ℝ → ℝ} {X : Set (ι → ℝ)} {x : (ι → ℝ) → ι → ℝ} (hx : IsVirtualWelfareMaximizing φ X x) (hX : ∀ y ∈ X, 0 ≤ y) :

Myerson's optimal auction is individually rational when feasible allocations are nonnegative.

Optimality #

theorem Cslib.GameTheory.SingleParameter.integral_sum_payment_le_myerson {ι : Type u_1} [Fintype ι] [DecidableEq ι] {μ : ι → MeasureTheory.Measure ℝ} [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] {f : ι → ℝ → NNReal} {h : ι → ℝ} (hμ : ∀ (i : ι), HasValueDensity (μ i) (f i) (h i)) {X : Set (ι → ℝ)} (hX : ∀ y ∈ X, ∀ (i : ι), 0 ≤ y i ∧ y i ≤ 1) {x : (ι → ℝ) → ι → ℝ} (hx : IsVirtualWelfareMaximizing (fun (i : ι) => virtualValue (μ i) (f i)) X x) (hxm : ∀ (i : ι), Measurable fun (v : ι → ℝ) => x v i) {M : Mechanism ι} (hM : M.IsDSIC) (hIR : M.IsIR) (hMX : ∀ (v : ι → ℝ), 0 ≤ v → M.allocation v ∈ X) (hMm : ∀ (i : ι), Measurable fun (v : ι → ℝ) => M.allocation v i) :
∫ (v : ι → ℝ), ∑ i : ι, M.payment v i ∂MeasureTheory.Measure.pi μ ≤ ∫ (v : ι → ℝ), ∑ i : ι, (myerson x).payment v i ∂MeasureTheory.Measure.pi μ

Myerson's optimal auction theorem ([Rou13], Lecture 5, §3.1; [Mye81]).

Setting: valuations are independent; bidder i's valuation has density f i on [0, h i]. The feasible allocations X lie in [0, 1]^ι, and x is a measurable rule that maximizes virtual welfare over X at every nonnegative profile.

Conclusion: every DSIC, individually rational mechanism M whose allocations are measurable and feasible on nonnegative profiles has expected revenue at most that of Myerson's mechanism myerson x. When each φᵢ is strictly increasing on [0, ∞), myerson x is itself DSIC (myerson_isDSIC_of_isVirtualWelfareMaximizing), and for nonnegative feasible allocations it is individually rational (myerson_isIR_of_isVirtualWelfareMaximizing); for a single item under IsRegular alone, see Vickrey.integral_sum_payment_le_reserve and Vickrey.isMonotone_reserveAllocation. The inequality itself does not use regularity.

Reserve prices #

r ≥ 0 is a reserve threshold for φ if every bid above r has nonnegative virtual valuation and every positive bid with nonnegative virtual valuation is at least r. Restricting to positive bids v > 0 ignores the division-by-zero value φ(0) = 0 when a density vanishes at 0. For a continuous, strictly increasing φ on (0, ∞) with a zero, r = φ⁻¹(0) ([Rou13], Lecture 5, §3.1). The definition also covers a discontinuous φ that jumps over 0.

A reserve threshold is unique.

The reserve price for φ: the infimum of the positive bids with nonnegative virtual valuation.

If φ is nondecreasing on (0, ∞) and nonnegative somewhere there, reservePrice φ is its reserve threshold. No continuity is needed.

With a density on [0, h], the virtual valuation is nonnegative somewhere on (0, ∞): it is the identity above h.

A regular distribution with a density has a reserve threshold, its reserve price.

For the uniform distribution on [0, 1], the reserve threshold is 1/2 ([Rou13], Lecture 5, §3.1).

The reserve price for the uniform distribution on [0, 1] is 1/2.

A single item: the Vickrey auction with a reserve price #

noncomputable def Cslib.GameTheory.SingleParameter.Vickrey.reserveAllocation {ι : Type u_1} [LinearOrder ι] (φ : ℝ → ℝ) (b : ι → ℝ) (i : ι) :

The single-item virtual-welfare maximizer for a common virtual valuation φ: the highest bidder (ties to the smallest index) wins, provided its bid is positive and its virtual valuation is nonnegative. Requiring 0 < b i prevents a zero bid from winning via the division-by-zero value φ(0) = 0 when a density vanishes at 0.

theorem Cslib.GameTheory.SingleParameter.Vickrey.reserveAllocation_eq_one_iff {ι : Type u_1} [LinearOrder ι] {φ : ℝ → ℝ} {b : ι → ℝ} {i : ι} :
reserveAllocation φ b i = 1 ↔ Wins b i ∧ 0 < b i ∧ 0 ≤ φ (b i)
theorem Cslib.GameTheory.SingleParameter.Vickrey.reserveAllocation_eq_zero_iff {ι : Type u_1} [LinearOrder ι] {φ : ℝ → ℝ} {b : ι → ℝ} {i : ι} :
reserveAllocation φ b i = 0 ↔ ¬(Wins b i ∧ 0 < b i ∧ 0 ≤ φ (b i))

The reserve rule awards the item only to the Vickrey winner.

The reserve rule is monotone when φ is nondecreasing on (0, ∞).

The set of bid profiles at which bidder i wins is measurable.

The Vickrey allocation is measurable in the bid profile.

theorem Cslib.GameTheory.SingleParameter.Vickrey.measurable_reserveAllocation {ι : Type u_1} [LinearOrder ι] [Countable ι] {φ : ℝ → ℝ} (hφ : Measurable φ) (i : ι) :
Measurable fun (b : ι → ℝ) => reserveAllocation φ b i

The reserve rule is measurable in the bid profile.

For i.i.d. bidders with a common virtual valuation φ, nondecreasing on (0, ∞) with φ(0) ≤ 0 (which holds for every virtualValue by virtualValue_le), awarding the item to the highest bidder when its bid is positive and its virtual valuation is nonnegative maximizes virtual welfare ([Rou13], Lecture 5, §3.1).

theorem Cslib.GameTheory.SingleParameter.Vickrey.integral_sum_payment_le_reserve {ι : Type u_1} [LinearOrder ι] [Fintype ι] {μ : MeasureTheory.Measure ℝ} [MeasureTheory.IsProbabilityMeasure μ] {f : ℝ → NNReal} {h : ℝ} (hμ : HasValueDensity μ f h) (hreg : IsRegular μ f h) {M : Mechanism ι} (hM : M.IsDSIC) (hIR : M.IsIR) (hMX : ∀ (v : ι → ℝ), 0 ≤ v → M.allocation v ∈ singleItemFeasible) (hMm : ∀ (i : ι), Measurable fun (v : ι → ℝ) => M.allocation v i) :
(∫ (v : ι → ℝ), ∑ i : ι, M.payment v i ∂MeasureTheory.Measure.pi fun (x : ι) => μ) ≤ ∫ (v : ι → ℝ), ∑ i : ι, (myerson (reserveAllocation (virtualValue μ f))).payment v i ∂MeasureTheory.Measure.pi fun (x : ι) => μ

Myerson's optimal single-item auction ([Rou13], Lecture 5, §3.1).

Setting: bidders are i.i.d. with a regular distribution μ that has density f on [0, h].

Conclusion: every DSIC, individually rational single-item mechanism has expected revenue at most that of awarding the item to the highest bidder when its bid is positive and its virtual valuation is nonnegative, and charging Myerson's payments (which is itself DSIC by isMonotone_reserveAllocation and myerson_isDSIC, and individually rational by myerson_isIR). By myersonPayment_reserveAllocation and IsRegular.isReserveThreshold this is the Vickrey auction with reserve price reservePrice (virtualValue μ f).

With reserve threshold r, bidder i's critical bid is max(r, highest other bid).

theorem Cslib.GameTheory.SingleParameter.Vickrey.myersonPayment_reserveAllocation {ι : Type u_1} [LinearOrder ι] [Fintype ι] {φ : ℝ → ℝ} (hφ : MonotoneOn φ (Set.Ioi 0)) {r : ℝ} (hr : IsReserveThreshold φ r) {b : ι → ℝ} (hb : 0 ≤ b) (i : ι) :

The optimal single-item auction is the Vickrey auction with reserve price r ([Rou13], Lecture 5, §3.1). If r is a reserve threshold for φ, the winner pays max(r, highest other bid) and losers pay nothing.

theorem Cslib.GameTheory.SingleParameter.Vickrey.integral_sum_payment_le_secondPriceReserve {ι : Type u_1} [LinearOrder ι] [Fintype ι] {μ : MeasureTheory.Measure ℝ} [MeasureTheory.IsProbabilityMeasure μ] {f : ℝ → NNReal} {h : ℝ} (hμ : HasValueDensity μ f h) (hreg : IsRegular μ f h) {M : Mechanism ι} (hM : M.IsDSIC) (hIR : M.IsIR) (hMX : ∀ (v : ι → ℝ), 0 ≤ v → M.allocation v ∈ singleItemFeasible) (hMm : ∀ (i : ι), Measurable fun (v : ι → ℝ) => M.allocation v i) :
(∫ (v : ι → ℝ), ∑ i : ι, M.payment v i ∂MeasureTheory.Measure.pi fun (x : ι) => μ) ≤ ∫ (v : ι → ℝ), ∑ i : ι, max (reservePrice (virtualValue μ f)) (highestOtherBid v i) * reserveAllocation (virtualValue μ f) v i ∂MeasureTheory.Measure.pi fun (x : ι) => μ

The second-price auction with reserve price r is optimal ([Rou13], Lecture 5, §3.1). Bidders are i.i.d. with a regular distribution μ that has density f on [0, h], and r = reservePrice (virtualValue μ f). Every DSIC, individually rational single-item mechanism has expected revenue at most that of selling to the highest bidder, if its bid is positive with nonnegative virtual valuation, at price max(r, highest other bid).

The highest other bid is measurable in the bid profile.

theorem Cslib.GameTheory.SingleParameter.Vickrey.integral_allocation_update_of_strictMonoOn {ι : Type u_1} [LinearOrder ι] [Fintype ι] {μ : MeasureTheory.Measure ℝ} [MeasureTheory.IsProbabilityMeasure μ] {f : ℝ → NNReal} {h : ℝ} (hμ : HasValueDensity μ f h) {β : ℝ → ℝ} (hβ : StrictMonoOn β (Set.Icc 0 h)) (i : ι) {v : ℝ} (hv : v ∈ Set.Icc 0 h) :
(∫ (w : ι → ℝ), allocation (Function.update (fun (j : ι) => β (w j)) i (β v)) i ∂MeasureTheory.Measure.pi fun (x : ι) => μ) = μ.real (Set.Iic v) ^ (Fintype.card ι - 1)

Against i.i.d. bidders drawn from a distribution μ with density f on [0, h] who all play the same strategy β that is strictly increasing on [0, h], bidder i's expected Vickrey allocation when bidding β v (v ∈ [0, h]) is μ((-∞, v]) ^ (n - 1).

theorem Cslib.GameTheory.SingleParameter.Vickrey.integral_allocation_update_of_strictMonoOn_ge {ι : Type u_1} [LinearOrder ι] [Fintype ι] {μ : MeasureTheory.Measure ℝ} [MeasureTheory.IsProbabilityMeasure μ] {f : ℝ → NNReal} {h : ℝ} (hμ : HasValueDensity μ f h) {β : ℝ → ℝ} (hβ : StrictMonoOn β (Set.Icc 0 h)) (i : ι) {z : ℝ} (hz : β h ≤ z) :
(∫ (w : ι → ℝ), allocation (Function.update (fun (j : ι) => β (w j)) i z) i ∂MeasureTheory.Measure.pi fun (x : ι) => μ) = 1

Against i.i.d. bidders drawn from a distribution μ with density f on [0, h] who all play a strictly increasing strategy β on [0, h], any bid z ≥ β h wins with probability 1.

Exact optimal revenue for n i.i.d. uniform [0, 1] bidders: the expected revenue of Myerson's optimal auction (second-price auction with reserve price 1 / 2) is (n − 1 + (1 / 2) ^ n) / (n + 1). The proof uses the virtual-welfare identity integral_sum_myersonPayment_eq and integrates φ(z) · z ^ (n − 1) = (2 z − 1) z ^ (n − 1) over [1 / 2, 1] for each of the n bidders.

Exact optimal revenue for two i.i.d. uniform [0, 1] bidders: Myerson's optimal auction (second-price with reserve 1 / 2) earns 5 / 12, strictly exceeding the plain Vickrey auction's 1 / 3 (CslibFrontier.GameTheory.Mechanism.FirstPrice).