Documentation

CslibFrontier.GameTheory.Mechanism.Ironing

Myerson ironing, discrete virtual valuations, monopoly pricing, and empirical Myerson #

When a valuation distribution is irregular (¬ IsRegular μ f h), pointwise maximization of virtual welfare ∑ᵢ φᵢ(bᵢ) xᵢ fails to produce a monotone allocation rule and therefore cannot be implemented truthfully ([HK07a], Lemma 13.12, p. 337). Myerson's ironing construction ([Mye81]; [HK07a], §13.2.2, p. 337) replaces each virtual valuation φᵢ with a monotone ironed virtual valuation φ̄ᵢ whose cumulative tail integrals dominate those of φᵢ, with equality at 0 and local constancy wherever cumulative slack is positive.

This module develops five parts extending CslibFrontier/GameTheory/Mechanism/OptimalAuction.lean:

  1. Continuous Myerson ironing and conditional optimality step (IsIronedVirtualValue, IsIronedVirtualValue.integral_virtualValue_mul_le, IsIronedVirtualValue.integral_virtualValue_mul_eq, integral_sum_payment_le_ironed_myerson_of_isIronedVirtualValue, Vickrey.integral_sum_payment_le_ironed_of_isIronedVirtualValue): via a layer-cake and Fubini representation of arbitrary measurable monotone allocation curves, every monotone curve has expected virtual surplus at most its expected ironed virtual surplus, with equality whenever the allocation rule is constant across pooled intervals. Given caller-supplied ironed virtual valuations φBarᵢ (constructive convex-hull existence of IsIronedVirtualValue from arbitrary HasValueDensity is tracked in #7789), maximizing ironed virtual welfare with ironed-bid-dependent tie-breaking is monotone, DSIC, individually rational, and maximizes expected seller revenue among all DSIC, IR mechanisms.
  2. Necessity of monotone virtual valuations (isMonotone_virtualSurplusMaximizer_iff, not_isImplementable_of_isVirtualWelfareMaximizing, not_isImplementable_iid_of_virtualValue_gt): the converse direction of [HK07a], Lemma 13.12 (p. 337), both across linear seller-cost environments and in zero-cost single-item auctions.
  3. Seller production costs and reservation value v₀ ≥ 0 (Mechanism.IsDSIC.integral_profit_le_virtualSurplus_sub_cost, Vickrey.integral_profit_le_sellerReserve, Vickrey.integral_profit_le_ironed_sellerReserve_of_isIronedVirtualValue): [HK07a], Definition 13.9, Theorem 13.10 (p. 336), and Exercise 13.1 (p. 360), showing that for i.i.d. regular bidders and seller valuation v₀ ≥ 0, VA_{φ⁻¹(v₀)} maximizes expected seller profit, together with the conditional irregular optimality step given ironed virtual valuations.
  4. Monopoly pricing opt(F) and optimal Bayesian digital goods without regularity (IsMonopolyPrice, postedPriceDigitalGoods, integral_sum_payment_le_postedPriceDigitalGoods): [HK07a], Definition 13.17 and Theorem 13.18 (p. 338), proved for arbitrary probability measures concentrated on [0, hᵢ] without regularity or density assumptions, together with opt(F) = φ⁻¹(0) for regular densities (IsRegular.isMonopolyPrice_reservePrice).
  5. Discrete finite-support virtual valuations, discrete ironing, DOP, and single-item EM (DiscretePrior, DiscretePrior.virtualValue, IsDiscreteIronedVirtualValue, expectedDiscreteSumPayment_le_ironed_of_isDiscreteIronedVirtualValue, empiricalMonopolyPrice, dopMechanism, dopBadBids, empiricalSingleItemMechanism): [HK07a], Exercise 13.3 (p. 360) via summation by parts, discrete ironing inequality and conditional optimality step via Abel summation (discrete concave-envelope existence tracked in #7789), Definitions 13.19–13.21 and the parametric k²-bidder generalization of Example 13.23 (pp. 339–340) proving unbounded k vs. k² gap for DOP, and Exercise 13.4 (p. 360) showing that single-item EM (VA_{opt(F_{b₋ᵢ})}) collapses identically to the reserve-free Vickrey auction.

Main definitions #

Main results #

References #

Bulow–Roberts tail identity and continuous Myerson ironing #

The interval (0, ∞) has full μ-measure whenever μ has a value density on [0, h], since μ is concentrated on [0, h] and {0} is μ-null.

Bulow–Roberts tail identity. For a valuation distribution μ with density f on [0, h] and any threshold p ≥ 0, the tail integral of the virtual valuation over (p, ∞) equals the posted-price revenue p · μ((p, ∞)): applying the one-dimensional revenue identity to the strict threshold curve 𝟏_{(p, ∞)} evaluates the Myerson payment to p above p and 0 elsewhere.

φBar is an ironed virtual valuation for a distribution μ with density f on [0, h] ([Mye81]; [HK07a], §13.2.2, p. 337):

  • φBar is measurable, μ-integrable, and monotone nondecreasing on (0, h];
  • its cumulative tail integrals dominate those of virtualValue μ f on [0, h], with equality of the full integral over μ;
  • pooling flatness (complementary slackness): at every interior valuation v ∈ (0, h) where the tail integral of φBar strictly exceeds that of virtualValue μ f, φBar is locally constant around v.

Every regular distribution is already ironed: its virtual valuation satisfies IsIronedVirtualValue without modification.

theorem Cslib.GameTheory.SingleParameter.IsIronedVirtualValue.integral_virtualValue_mul_le {μ : MeasureTheory.Measure ℝ} [MeasureTheory.IsFiniteMeasure μ] {f : ℝ → NNReal} {h : ℝ} {φBar : ℝ → ℝ} (hμ : HasValueDensity μ f h) (hφ : IsIronedVirtualValue μ f h φBar) {g : ℝ → ℝ} (hg : Measurable g) (hgm : MonotoneOn g (Set.Icc 0 h)) :
∫ (z : ℝ), virtualValue μ f z * g z ∂μ ≤ ∫ (z : ℝ), φBar z * g z ∂μ

Myerson's continuous ironing inequality ([Mye81]; [HK07a], §13.2.2, p. 337). For every measurable allocation curve g that is nondecreasing on [0, h], expected virtual surplus is at most expected ironed virtual surplus.

theorem Cslib.GameTheory.SingleParameter.IsIronedVirtualValue.integral_virtualValue_mul_eq {μ : MeasureTheory.Measure ℝ} [MeasureTheory.IsFiniteMeasure μ] {f : ℝ → NNReal} {h : ℝ} {φBar : ℝ → ℝ} (hμ : HasValueDensity μ f h) (hφ : IsIronedVirtualValue μ f h φBar) {g : ℝ → ℝ} (hg : Measurable g) (hgm : MonotoneOn g (Set.Icc 0 h)) (hpool : ∀ z₁ ∈ Set.Ioc 0 h, ∀ z₂ ∈ Set.Ioc 0 h, φBar z₁ = φBar z₂ → g z₁ = g z₂) :
∫ (z : ℝ), virtualValue μ f z * g z ∂μ = ∫ (z : ℝ), φBar z * g z ∂μ

Myerson's pooling equality (complementary slackness). If g is measurable, nondecreasing on [0, h], and constant across every flat of φBar on (0, h] (i.e. φBar z₁ = φBar z₂ implies g z₁ = g z₂ for z₁, z₂ ∈ (0, h]), then expected virtual surplus equals expected ironed virtual surplus.

Multi-bidder optimal irregular auctions #

theorem Cslib.GameTheory.SingleParameter.integrable_ironed_mul {ι : Type u_1} [Fintype ι] {μ : ι → MeasureTheory.Measure ℝ} [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] {f : ι → ℝ → NNReal} {h : ι → ℝ} {φBar : ι → ℝ → ℝ} (hμ : ∀ (i : ι), HasValueDensity (μ i) (f i) (h i)) (hφ : ∀ (i : ι), IsIronedVirtualValue (μ i) (f i) (h i) (φBar i)) (i : ι) {x : (ι → ℝ) → ι → ℝ} {B : ℝ} (hx : Measurable fun (v : ι → ℝ) => x v i) (hB : ∀ (v : ι → ℝ), 0 ≤ v → |x v i| ≤ B) :
MeasureTheory.Integrable (fun (v : ι → ℝ) => φBar i (v i) * x v i) (MeasureTheory.Measure.pi μ)
theorem Cslib.GameTheory.SingleParameter.Mechanism.IsDSIC.integral_sum_payment_le_ironed {ι : Type u_1} [Fintype ι] [DecidableEq ι] {μ : ι → MeasureTheory.Measure ℝ} [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] {f : ι → ℝ → NNReal} {h : ι → ℝ} {φBar : ι → ℝ → ℝ} {M : Mechanism ι} (hM : M.IsDSIC) (hIR : M.IsIR) (hμ : ∀ (i : ι), HasValueDensity (μ i) (f i) (h i)) (hφ : ∀ (i : ι), IsIronedVirtualValue (μ i) (f i) (h i) (φBar i)) {B : ℝ} (hx : ∀ (i : ι), Measurable fun (v : ι → ℝ) => M.allocation v i) (hB : ∀ (v : ι → ℝ), 0 ≤ v → ∀ (i : ι), |M.allocation v i| ≤ B) :
∫ (v : ι → ℝ), ∑ i : ι, M.payment v i ∂MeasureTheory.Measure.pi μ ≤ ∫ (v : ι → ℝ), ∑ i : ι, φBar i (v i) * M.allocation v i ∂MeasureTheory.Measure.pi μ

Expected revenue of any DSIC, IR mechanism is at most expected ironed virtual welfare.

theorem Cslib.GameTheory.SingleParameter.integral_sum_myersonPayment_eq_ironed {ι : Type u_1} [Fintype ι] [DecidableEq ι] {μ : ι → MeasureTheory.Measure ℝ} [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] {f : ι → ℝ → NNReal} {h : ι → ℝ} {φBar : ι → ℝ → ℝ} (hμ : ∀ (i : ι), HasValueDensity (μ i) (f i) (h i)) (hφ : ∀ (i : ι), IsIronedVirtualValue (μ i) (f i) (h i) (φBar i)) {x : (ι → ℝ) → ι → ℝ} {B : ℝ} (hmono : IsMonotone x) (hx : ∀ (i : ι), Measurable fun (v : ι → ℝ) => x v i) (hB : ∀ (v : ι → ℝ), 0 ≤ v → ∀ (i : ι), |x v i| ≤ B) (hpool : ∀ (i : ι) (v : ι → ℝ), 0 ≤ v → ∀ z₁ ∈ Set.Ioc 0 (h i), ∀ z₂ ∈ Set.Ioc 0 (h i), φBar i z₁ = φBar i z₂ → x (Function.update v i z₁) i = x (Function.update v i z₂) i) :
∫ (v : ι → ℝ), ∑ i : ι, myersonPayment x v i ∂MeasureTheory.Measure.pi μ = ∫ (v : ι → ℝ), ∑ i : ι, φBar i (v i) * x v i ∂MeasureTheory.Measure.pi μ

Expected Myerson revenue of a monotone pooling-invariant rule equals its expected ironed virtual welfare.

theorem Cslib.GameTheory.SingleParameter.integral_sum_payment_le_ironed_myerson_of_isIronedVirtualValue {ι : Type u_1} [Fintype ι] [DecidableEq ι] {μ : ι → MeasureTheory.Measure ℝ} [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] {f : ι → ℝ → NNReal} {h : ι → ℝ} {φBar : ι → ℝ → ℝ} (hμ : ∀ (i : ι), HasValueDensity (μ i) (f i) (h i)) (hφ : ∀ (i : ι), IsIronedVirtualValue (μ i) (f i) (h i) (φBar i)) {X : Set (ι → ℝ)} (hX : ∀ y ∈ X, ∀ (i : ι), 0 ≤ y i ∧ y i ≤ 1) {x : (ι → ℝ) → ι → ℝ} (hx : IsVirtualWelfareMaximizing φBar X x) (hmono : IsMonotone x) (hxm : ∀ (i : ι), Measurable fun (v : ι → ℝ) => x v i) (hpool : ∀ (i : ι) (v : ι → ℝ), 0 ≤ v → ∀ z₁ ∈ Set.Ioc 0 (h i), ∀ z₂ ∈ Set.Ioc 0 (h i), φBar i z₁ = φBar i z₂ → x (Function.update v i z₁) i = x (Function.update v i z₂) 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 μ

Conditional optimality step (not the unconditional irregular-auction existence theorem) of [Mye81] and [HK07a], §13.2.2, p. 337, taking caller-supplied ironed virtual valuations φBarᵢ (constructive convex-hull existence of IsIronedVirtualValue from arbitrary HasValueDensity is tracked in #7789).

Given independent (not necessarily regular or identical) valuation distributions (μᵢ, fᵢ, hᵢ) and ironed virtual valuations φBarᵢ, if x is a monotone, measurable allocation rule that maximizes ironed virtual welfare ∑ᵢ φBarᵢ(vᵢ) yᵢ over X ⊆ [0, 1]^ι and is constant across every flat of φBarᵢ on (0, hᵢ], then myerson x achieves at least the expected revenue of every DSIC, individually rational mechanism with allocations in X.

def Cslib.GameTheory.SingleParameter.ironedAllocation {ι : Type u_1} (φBar : ι → ℝ → ℝ) (xHat : (ι → ℝ) → ι → ℝ) (b : ι → ℝ) :
ι → ℝ

Composing a real-weight welfare maximizer xHat with ironed virtual bids i ↦ φBar i (b i) produces an allocation rule that depends on each bid solely through its ironed virtual value.

theorem Cslib.GameTheory.SingleParameter.isVirtualWelfareMaximizing_ironedAllocation {ι : Type u_1} [Fintype ι] {φBar : ι → ℝ → ℝ} {X : Set (ι → ℝ)} {xHat : (ι → ℝ) → ι → ℝ} (hxHat : ∀ (w : ι → ℝ), xHat w ∈ X ∧ ∀ y ∈ X, ∑ i : ι, w i * y i ≤ ∑ i : ι, w i * xHat w i) :
theorem Cslib.GameTheory.SingleParameter.isMonotone_ironedAllocation {ι : Type u_1} [Fintype ι] [DecidableEq ι] {φBar : ι → ℝ → ℝ} {X : Set (ι → ℝ)} {xHat : (ι → ℝ) → ι → ℝ} (hxHat : ∀ (w : ι → ℝ), xHat w ∈ X ∧ ∀ y ∈ X, ∑ i : ι, w i * y i ≤ ∑ i : ι, w i * xHat w i) (hφ : ∀ (i : ι), MonotoneOn (φBar i) (Set.Ici 0)) :

Ironed virtual-welfare maximization is monotone whenever xHat maximizes ∑ᵢ wᵢ yᵢ over all real weight vectors w and each φBarᵢ is nondecreasing on [0, ∞): equal virtual bids pass identical inputs to xHat, while strictly higher virtual bids force a weakly higher coordinate by the standard two-profile optimality comparison.

theorem Cslib.GameTheory.SingleParameter.ironedAllocation_eq_of_eq {ι : Type u_1} [DecidableEq ι] (φBar : ι → ℝ → ℝ) (xHat : (ι → ℝ) → ι → ℝ) (b : ι → ℝ) (i : ι) {z₁ z₂ : ℝ} (h : φBar i z₁ = φBar i z₂) :
ironedAllocation φBar xHat (Function.update b i z₁) = ironedAllocation φBar xHat (Function.update b i z₂)
noncomputable def Cslib.GameTheory.SingleParameter.Vickrey.virtualWinnerAllocation {ι : Type u_1} [LinearOrder ι] (w : ι → ℝ) (i : ι) :

Canonical single-item real-weight welfare maximizer: awards the item to the smallest-index bidder achieving the highest nonnegative virtual weight, and withholds the item if all virtual weights are negative.

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

Single-item ironed allocation rule for (possibly non-identical, irregular) ironed virtual valuations φBar: evaluates virtualWinnerAllocation on the ironed virtual bids j ↦ φBar j (b j).

theorem Cslib.GameTheory.SingleParameter.Vickrey.measurable_ironedAllocation {ι : Type u_1} [LinearOrder ι] [Countable ι] {φBar : ι → ℝ → ℝ} (hφ : ∀ (j : ι), Measurable (φBar j)) (i : ι) :
Measurable fun (b : ι → ℝ) => ironedAllocation φBar b i
theorem Cslib.GameTheory.SingleParameter.Vickrey.isMonotone_ironedAllocation {ι : Type u_1} [LinearOrder ι] [Finite ι] {φBar : ι → ℝ → ℝ} (hmono : ∀ (i : ι), MonotoneOn (φBar i) (Set.Ici 0)) :
theorem Cslib.GameTheory.SingleParameter.Vickrey.integral_sum_payment_le_ironed_of_isIronedVirtualValue {ι : Type u_1} [LinearOrder ι] [Fintype ι] {μ : ι → MeasureTheory.Measure ℝ} [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] {f : ι → ℝ → NNReal} {h : ι → ℝ} {φBar : ι → ℝ → ℝ} (hμ : ∀ (i : ι), HasValueDensity (μ i) (f i) (h i)) (hφ : ∀ (i : ι), IsIronedVirtualValue (μ i) (f i) (h i) (φBar i)) (hmono : ∀ (i : ι), MonotoneOn (φBar i) (Set.Ici 0)) {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 μ ≤ ∫ (v : ι → ℝ), ∑ i : ι, (myerson (ironedAllocation φBar)).payment v i ∂MeasureTheory.Measure.pi μ

Single-item specialization of the conditional optimality step of [Mye81] (not the unconditional irregular single-item theorem; convex-hull existence of IsIronedVirtualValue is tracked in #7789): given independent distributions (μᵢ, fᵢ, hᵢ) and caller-supplied ironed virtual valuations φBarᵢ that are nondecreasing on [0, ∞), myerson (Vickrey.ironedAllocation φBar) achieves at least the expected revenue of every DSIC, IR single-item mechanism.

Necessity of monotone virtual valuations (Lemma 13.12) #

Feasible allocations in a single-parameter digital goods auction ([HK07a], Example 13.2, p. 332): unlimited supply with zero marginal cost, so each bidder independently receives an allocation in [0, 1].

theorem Cslib.GameTheory.SingleParameter.isMonotone_virtualSurplusMaximizer_iff {ι : Type u_1} [Fintype ι] [DecidableEq ι] (φ : ι → ℝ → ℝ) :
(∀ (c₀ : ℝ), ∃ (x : (ι → ℝ) → ι → ℝ), IsVirtualWelfareMaximizing (fun (i : ι) (v : ℝ) => φ i v - c₀) digitalGoodsFeasible x ∧ IsMonotone x) ↔ ∀ (i : ι), MonotoneOn (φ i) (Set.Ici 0)

Truthfulness of virtual-surplus maximization across seller-cost environments ([HK07a], Lemma 13.12, p. 337).

For virtual valuations φ : ι → ℝ → ℝ on a nonempty bidder set, maximizing virtual surplus ∑ᵢ φᵢ(bᵢ) yᵢ − c₀ ∑ᵢ yᵢ over digitalGoodsFeasible ([0, 1]^ι) yields a monotone allocation rule for every per-unit seller cost c₀ ∈ ℝ (and arbitrary tie-breaking, or even for some tie-breaking per c₀) if and only if every φᵢ is monotone nondecreasing on [0, ∞).

theorem Cslib.GameTheory.SingleParameter.not_isImplementable_of_isVirtualWelfareMaximizing {ι : Type u_1} [Fintype ι] [DecidableEq ι] {φ : ι → ℝ → ℝ} {x : (ι → ℝ) → ι → ℝ} (hx : IsVirtualWelfareMaximizing φ Vickrey.singleItemFeasible x) {i : ι} {b : ι → ℝ} (hb : 0 ≤ b) {v₁ v₂ : ℝ} (hv₁ : 0 ≤ v₁) (hv12 : v₁ < v₂) (hpos : 0 < φ i v₁) (hother_le : ∀ (j : ι), j ≠ i → φ j (b j) < φ i v₁) (hbeat : φ i v₂ < 0 ∨ ∃ (j : ι), j ≠ i ∧ 0 < φ j (b j) ∧ φ i v₂ < φ j (b j)) :

In a zero-cost single-item auction (singleItemFeasible), if bidder i has 0 ≤ v₁ < v₂ with φᵢ(v₂) < φᵢ(v₁) and 0 < φᵢ(v₁), and there is a nonnegative opponent profile b whose maximum other virtual valuation lies strictly between φᵢ(v₂) and φᵢ(v₁) (or all opponents have nonpositive virtual valuations while φᵢ(v₂) < 0), then no virtual-welfare maximizer is implementable (¬ IsImplementable x).

theorem Cslib.GameTheory.SingleParameter.not_isImplementable_iid_of_virtualValue_gt {ι : Type u_1} [Fintype ι] [DecidableEq ι] (hcard : 2 ≤ Fintype.card ι) {φ : ℝ → ℝ} {h v₁ v₂ : ℝ} (hv₁ : 0 ≤ v₁) (hv12 : v₁ < v₂) (hv₂h : v₂ ≤ h) (hcont : ContinuousOn φ (Set.Icc v₂ h)) (hφ0 : φ 0 ≤ 0) (hφh : φ v₁ ≤ φ h) (hlt : φ v₂ < φ v₁) (hpos : 0 < φ v₁) {x : (ι → ℝ) → ι → ℝ} (hx : IsVirtualWelfareMaximizing (fun (x : ι) => φ) Vickrey.singleItemFeasible x) :

For at least two i.i.d. bidders with a continuous virtual valuation φ on [v₂, h] satisfying φ(0) ≤ 0 and φ(v₁) < φ(h) (which holds automatically when φ(v₁) ≤ v₁ < v₂ ≤ h = φ(h)), any non-monotonicity 0 ≤ v₁ < v₂ ≤ h with φ(v₂) < φ(v₁) and 0 < φ(v₁) makes every single-item virtual-welfare maximizer non-implementable ([HK07a], Lemma 13.12, p. 337).

Seller production costs and reservation value v₀ ≥ 0 (Theorem 13.10 & Exercise 13.1) #

theorem Cslib.GameTheory.SingleParameter.Mechanism.IsDSIC.integral_profit_eq_virtualSurplus_sub_cost {ι : Type u_1} [Fintype ι] [DecidableEq ι] {μ : ι → MeasureTheory.Measure ℝ} [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] {f : ι → ℝ → NNReal} {h : ι → ℝ} {M : Mechanism ι} (hM : M.IsDSIC) (hN : M.IsNormalized) (hμ : ∀ (i : ι), HasValueDensity (μ i) (f i) (h i)) {B : ℝ} (hx : ∀ (i : ι), Measurable fun (v : ι → ℝ) => M.allocation v i) (hB : ∀ (v : ι → ℝ), 0 ≤ v → ∀ (i : ι), |M.allocation v i| ≤ B) {c : (ι → ℝ) → ℝ} (hc : MeasureTheory.Integrable (fun (v : ι → ℝ) => c (M.allocation v)) (MeasureTheory.Measure.pi μ)) :
∫ (v : ι → ℝ), ∑ i : ι, M.payment v i - c (M.allocation v) ∂MeasureTheory.Measure.pi μ = ∫ (v : ι → ℝ), ∑ i : ι, virtualValue (μ i) (f i) (v i) * M.allocation v i - c (M.allocation v) ∂MeasureTheory.Measure.pi μ

Expected profit equals expected virtual surplus with a finite seller cost function c(x) ([HK07a], Definition 13.9 and Theorem 13.10, p. 336): for any normalized DSIC mechanism M with measurable bounded allocations and integrable cost v ↦ c (M.allocation v), E[∑ᵢ pᵢ(v) − c(x(v))] = E[∑ᵢ φᵢ(vᵢ) xᵢ(v) − c(x(v))].

theorem Cslib.GameTheory.SingleParameter.Mechanism.IsDSIC.integral_profit_le_virtualSurplus_sub_cost {ι : Type u_1} [Fintype ι] [DecidableEq ι] {μ : ι → MeasureTheory.Measure ℝ} [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] {f : ι → ℝ → NNReal} {h : ι → ℝ} {M : Mechanism ι} (hM : M.IsDSIC) (hIR : M.IsIR) (hμ : ∀ (i : ι), HasValueDensity (μ i) (f i) (h i)) {B : ℝ} (hx : ∀ (i : ι), Measurable fun (v : ι → ℝ) => M.allocation v i) (hB : ∀ (v : ι → ℝ), 0 ≤ v → ∀ (i : ι), |M.allocation v i| ≤ B) (hp : MeasureTheory.Integrable (fun (v : ι → ℝ) => ∑ i : ι, M.payment v i) (MeasureTheory.Measure.pi μ)) {c : (ι → ℝ) → ℝ} (hc : MeasureTheory.Integrable (fun (v : ι → ℝ) => c (M.allocation v)) (MeasureTheory.Measure.pi μ)) :
∫ (v : ι → ℝ), ∑ i : ι, M.payment v i - c (M.allocation v) ∂MeasureTheory.Measure.pi μ ≤ ∫ (v : ι → ℝ), ∑ i : ι, virtualValue (μ i) (f i) (v i) * M.allocation v i - c (M.allocation v) ∂MeasureTheory.Measure.pi μ

Expected profit upper bound with seller cost c(x) ([HK07a], Theorem 13.10, p. 336): for every DSIC, IR mechanism M with integrable payments and integrable seller cost v ↦ c (M.allocation v), expected seller profit is at most expected virtual surplus minus seller cost.

theorem Cslib.GameTheory.SingleParameter.Vickrey.integral_profit_le_sellerReserve {ι : Type u_1} [Fintype ι] [LinearOrder ι] {μ : MeasureTheory.Measure ℝ} [MeasureTheory.IsProbabilityMeasure μ] {f : ℝ → NNReal} {h v₀ : ℝ} (hμ : HasValueDensity μ f h) (hreg : IsRegular μ f h) (hv₀ : 0 ≤ v₀) {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 - v₀ * ∑ i : ι, M.allocation v i ∂MeasureTheory.Measure.pi fun (x : ι) => μ) ≤ ∫ (v : ι → ℝ), ∑ i : ι, max (reservePrice fun (z : ℝ) => virtualValue μ f z - v₀) (highestOtherBid v i) * reserveAllocation (fun (z : ℝ) => virtualValue μ f z - v₀) v i - v₀ * ∑ i : ι, reserveAllocation (fun (z : ℝ) => virtualValue μ f z - v₀) v i ∂MeasureTheory.Measure.pi fun (x : ι) => μ

Optimal single-item auction with seller reservation value v₀ ≥ 0 under regularity ([HK07a], Exercise 13.1, p. 360).

When bidders are i.i.d. with a regular distribution (μ, f, h) and the seller values keeping the item at v₀ ≥ 0 (so seller profit is ∑ᵢ pᵢ(v) − v₀ ∑ᵢ xᵢ(v)), the Vickrey auction with shifted reserve r = reservePrice (fun z => virtualValue μ f z - v₀) (VA_{φ⁻¹(v₀)}) is DSIC, IR, charges winners max(r, highestOtherBid b i), and achieves expected seller profit at least that of every DSIC, IR single-item mechanism. For irregular or asymmetric distributions, see integral_profit_le_ironed_sellerReserve.

theorem Cslib.GameTheory.SingleParameter.Vickrey.integral_profit_le_ironed_sellerReserve_of_isIronedVirtualValue {ι : Type u_1} [Fintype ι] [LinearOrder ι] {μ : ι → MeasureTheory.Measure ℝ} [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] {f : ι → ℝ → NNReal} {h : ι → ℝ} {φBar : ι → ℝ → ℝ} {v₀ : ℝ} (hμ : ∀ (i : ι), HasValueDensity (μ i) (f i) (h i)) (hφ : ∀ (i : ι), IsIronedVirtualValue (μ i) (f i) (h i) (φBar i)) (hmono : ∀ (i : ι), MonotoneOn (φBar i) (Set.Ici 0)) (hv₀ : 0 ≤ v₀) {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 - v₀ * ∑ i : ι, M.allocation v i ∂MeasureTheory.Measure.pi μ ≤ ∫ (v : ι → ℝ), ∑ i : ι, (myerson (ironedAllocation fun (i : ι) (z : ℝ) => φBar i z - v₀)).payment v i - v₀ * ∑ i : ι, ironedAllocation (fun (i : ι) (z : ℝ) => φBar i z - v₀) v i ∂MeasureTheory.Measure.pi μ

Conditional seller-reserve optimality step after [Mye81] and [HK07a], Exercise 13.1, p. 360 (not an unconditional irregular theorem; convex-hull existence of IsIronedVirtualValue is tracked in #7789).

Given independent (possibly irregular and non-identical) distributions (μᵢ, fᵢ, hᵢ), caller-supplied ironed virtual valuations φBarᵢ nondecreasing on [0, ∞), and seller valuation v₀ ≥ 0, maximizing shifted ironed virtual welfare ∑ᵢ (φBarᵢ(vᵢ) − v₀) xᵢ via myerson (ironedAllocation (fun i z => φBar i z - v₀)) achieves at least the expected seller profit of every DSIC, IR single-item mechanism.

Monopoly pricing opt(F) and Bayesian digital goods without regularity (Theorem 13.18) #

pStar ≥ 0 is a monopoly sale price (opt(F)) for a valuation measure μ ([HK07a], Definition 13.17, p. 338) if pStar · μ([pStar, ∞)) maximizes the single-buyer posted-price revenue p · μ([p, ∞)) over all nonnegative prices p ≥ 0. Under a density (HasValueDensity), μ([p, ∞)) = μ((p, ∞)) = 1 − F(p).

For a regular distribution with density f on [0, h], the virtual-valuation reserve price reservePrice (virtualValue μ f) (φ⁻¹(0)) is a monopoly sale price ([HK07a], Example 13.16 and Theorem 13.18, p. 338: opt(F) = φ⁻¹(0)).

noncomputable def Cslib.GameTheory.SingleParameter.postedPriceDigitalGoods {ι : Type u_1} (p : ι → ℝ) :

Fixed posted-price digital goods mechanism offering each bidder i take-it-or-leave-it price p i ([HK07a], Example 13.16 and Theorem 13.18, p. 338).

theorem Cslib.GameTheory.SingleParameter.integral_sum_payment_le_postedPriceDigitalGoods {ι : Type u_1} [Fintype ι] [DecidableEq ι] {μ : ι → MeasureTheory.Measure ℝ} [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (μ i)] {h pStar : ι → ℝ} (hμ : ∀ (i : ι), ∀ᵐ (v : ℝ) ∂μ i, v ∈ Set.Icc 0 (h i)) (hpStar : ∀ (i : ι), IsMonopolyPrice (μ i) (pStar i)) {M : Mechanism ι} (hM : M.IsDSIC) (hIR : M.IsIR) (hMX : ∀ (v : ι → ℝ), 0 ≤ v → M.allocation v ∈ digitalGoodsFeasible) (hMm : ∀ (i : ι), Measurable fun (v : ι → ℝ) => M.allocation v i) :
∫ (v : ι → ℝ), ∑ i : ι, M.payment v i ∂MeasureTheory.Measure.pi μ ≤ ∫ (v : ι → ℝ), ∑ i : ι, (postedPriceDigitalGoods pStar).payment v i ∂MeasureTheory.Measure.pi μ

Optimal Bayesian digital goods auction without regularity ([HK07a], Definition 13.17 and Theorem 13.18, p. 338).

For independent (not necessarily identical, regular, or continuous) valuation distributions μᵢ concentrated on [0, hᵢ], if pStarᵢ is a monopoly sale price (IsMonopolyPrice (μ i) (pStar i)) for each bidder i, then offering each bidder the fixed take-it-or-leave-it price pStarᵢ (postedPriceDigitalGoods pStar) is DSIC, individually rational, normalized, and achieves at least the expected revenue of every DSIC, individually rational digital-goods mechanism.

Discrete finite-support virtual valuations and discrete ironing (Exercise 13.3) #

A finite-support discrete single-parameter prior on m + 1 strictly ordered nonnegative valuations v₀ < v₁ < ⋯ < vₘ with positive probabilities fₖ > 0 summing to 1 ([HK07a], Exercise 13.3, p. 360).

  • val : Fin (m + 1) → ℝ

    Ordered valuation grid v₀ < v₁ < ⋯ < vₘ.

  • prob : Fin (m + 1) → ℝ

    Probability mass fₖ = Pr[V = vₖ] at each grid index.

  • strictMono : StrictMono self.val

    Grid valuations are strictly increasing.

  • val_zero_nonneg : 0 ≤ self.val 0

    Every grid valuation is nonnegative (0 ≤ v₀).

  • prob_pos (k : Fin (m + 1)) : 0 < self.prob k

    Every grid valuation has positive probability.

  • sum_prob : ∑ k : Fin (m + 1), self.prob k = 1

    Total probability mass equals 1.

Discrete virtual valuation ([HK07a], Exercise 13.3, p. 360): φ(vₖ) = vₖ − (vₖ₊₁ − vₖ) · (∑_{j > k} fⱼ) / fₖ for k < m, and φ(vₘ) = vₘ at the top grid point.

Discrete envelope payment formula on the valuation grid D.val, obtained by binding individual rationality at v₀ and downward local incentive constraints p_{i+1} − p_i = v_{i+1}(x_{i+1} − x_i): pₖ = vₖ xₖ − ∑_{i < k} (v_{i+1} − v_i) x_i.

Dominant-strategy incentive compatibility on the discrete valuation grid D.val.

Individual rationality on the discrete valuation grid D.val.

theorem Cslib.GameTheory.SingleParameter.DiscretePrior.payment_le_envelopePayment {m : ℕ} (D : DiscretePrior m) {x p : Fin (m + 1) → ℝ} (hdsic : D.IsDiscreteDSIC x p) (hir : D.IsDiscreteIR x p) (k : Fin (m + 1)) :

Every discrete DSIC, IR mechanism charges at most the discrete envelope payment at every grid point.

Pairing a grid allocation rule x with D.envelopePayment x is DSIC on D if and only if x is monotone.

theorem Cslib.GameTheory.SingleParameter.DiscretePrior.envelopePayment_isDiscreteIR {m : ℕ} (D : DiscretePrior m) {x : Fin (m + 1) → ℝ} (hx : ∀ (k : Fin (m + 1)), 0 ≤ x k) :

With nonnegative allocations, the discrete envelope payment rule is individually rational.

Discrete revenue equals expected discrete virtual surplus ([HK07a], Exercise 13.3, p. 360): for any allocation curve x on the grid D.val, summation by parts identifies expected envelope payment with expected discrete virtual surplus.

theorem Cslib.GameTheory.SingleParameter.DiscretePrior.expectedPayment_le_expectedVirtualSurplus {m : ℕ} (D : DiscretePrior m) {x p : Fin (m + 1) → ℝ} (hdsic : D.IsDiscreteDSIC x p) (hir : D.IsDiscreteIR x p) :
∑ k : Fin (m + 1), D.prob k * p k ≤ ∑ k : Fin (m + 1), D.prob k * D.virtualValue k * x k

Every discrete DSIC, IR mechanism has expected payment at most its expected discrete virtual surplus.

theorem Cslib.GameTheory.SingleParameter.DiscretePrior.not_monotone_virtualWelfareMaximizer_of_gt {m : ℕ} (D : DiscretePrior m) {j k : Fin (m + 1)} (hjk : j < k) {c₀ : ℝ} (hk : D.virtualValue k < c₀) (hj : c₀ < D.virtualValue j) {x : Fin (m + 1) → ℝ} (hx01 : ∀ (r : Fin (m + 1)), 0 ≤ x r ∧ x r ≤ 1) (hmax : ∀ (r : Fin (m + 1)) (y : ℝ), 0 ≤ y → y ≤ 1 → (D.virtualValue r - c₀) * y ≤ (D.virtualValue r - c₀) * x r) :

Discrete converse of Lemma 13.12 ([HK07a], Lemma 13.12, p. 337): if discrete virtual valuations fail monotonicity (j < k with φ(vₖ) < c₀ < φ(vⱼ) against a reserve or competitor virtual value c₀), any [0, 1]-valued rule x maximizing (φ(vᵣ) − c₀) y at each grid point is non-monotone (¬ Monotone x), and hence by IsDiscreteDSIC.monotone cannot be implemented as a discrete DSIC mechanism.

φBar is a discrete ironed virtual valuation for D : DiscretePrior m:

  • φBar is monotone nondecreasing on Fin (m + 1);
  • every upper tail sum ∑_{j ≥ k} fⱼ φ̄ⱼ dominates ∑_{j ≥ k} fⱼ φⱼ, with equality at k = 0 (the full sum);
  • discrete complementary slackness: wherever strict tail slack occurs at i.succ, φBar pools adjacent grid points i.castSucc and i.succ (φBar i.castSucc = φBar i.succ).
theorem Cslib.GameTheory.SingleParameter.IsDiscreteIronedVirtualValue.sum_virtualValue_mul_le {m : ℕ} {D : DiscretePrior m} {φBar : Fin (m + 1) → ℝ} (hφ : IsDiscreteIronedVirtualValue D φBar) {x : Fin (m + 1) → ℝ} (hx : Monotone x) :
∑ j : Fin (m + 1), D.prob j * D.virtualValue j * x j ≤ ∑ j : Fin (m + 1), D.prob j * φBar j * x j

Discrete Myerson ironing inequality. For every monotone allocation curve x on the grid, expected discrete virtual surplus is at most expected discrete ironed virtual surplus.

theorem Cslib.GameTheory.SingleParameter.IsDiscreteIronedVirtualValue.sum_virtualValue_mul_eq {m : ℕ} {D : DiscretePrior m} {φBar : Fin (m + 1) → ℝ} (hφ : IsDiscreteIronedVirtualValue D φBar) {x : Fin (m + 1) → ℝ} (hpool : ∀ (i : Fin m), φBar i.castSucc = φBar i.succ → x i.castSucc = x i.succ) :
∑ j : Fin (m + 1), D.prob j * D.virtualValue j * x j = ∑ j : Fin (m + 1), D.prob j * φBar j * x j

Discrete pooling equality. If x is constant across adjacent pooled types where φBar is flat, expected discrete virtual surplus equals expected discrete ironed virtual surplus.

theorem Cslib.GameTheory.SingleParameter.expectedDiscreteSumPayment_le_ironed_of_isDiscreteIronedVirtualValue {ι : Type u_1} [Fintype ι] [DecidableEq ι] {m : ι → ℕ} (D : (i : ι) → DiscretePrior (m i)) {φBar : (i : ι) → Fin (m i + 1) → ℝ} (hφ : ∀ (i : ι), IsDiscreteIronedVirtualValue (D i) (φBar i)) {X : Set (ι → ℝ)} {x : ((i : ι) → Fin (m i + 1)) → ι → ℝ} (hx_max : ∀ (k : (i : ι) → Fin (m i + 1)), x k ∈ X ∧ ∀ y ∈ X, ∑ i : ι, φBar i (k i) * y i ≤ ∑ i : ι, φBar i (k i) * x k i) (hx_pool : ∀ (i : ι) (k : (a : ι) → Fin (m a + 1)) (r : Fin (m i)), φBar i r.castSucc = φBar i r.succ → x (Function.update k i r.castSucc) i = x (Function.update k i r.succ) i) {x' p' : ((i : ι) → Fin (m i + 1)) → ι → ℝ} (hx'_mem : ∀ (k : (i : ι) → Fin (m i + 1)), x' k ∈ X) (hdsic : ∀ (i : ι) (k : (a : ι) → Fin (m a + 1)), (D i).IsDiscreteDSIC (fun (r : Fin (m i + 1)) => x' (Function.update k i r) i) fun (r : Fin (m i + 1)) => p' (Function.update k i r) i) (hir : ∀ (i : ι) (k : (a : ι) → Fin (m a + 1)), (D i).IsDiscreteIR (fun (r : Fin (m i + 1)) => x' (Function.update k i r) i) fun (r : Fin (m i + 1)) => p' (Function.update k i r) i) :
∑ k : (i : ι) → Fin (m i + 1), (∏ j : ι, (D j).prob (k j)) * ∑ i : ι, p' k i ≤ ∑ k : (i : ι) → Fin (m i + 1), (∏ j : ι, (D j).prob (k j)) * ∑ i : ι, (D i).envelopePayment (fun (r : Fin (m i + 1)) => x (Function.update k i r) i) (k i)

Conditional discrete optimality step after [Mye81] and [HK07a], Exercise 13.3, p. 360 (not an unconditional discrete irregular-auction theorem; concave-envelope existence of IsDiscreteIronedVirtualValue from arbitrary DiscretePrior is tracked in #7789).

Given independent finite-support priors D : ∀ i, DiscretePrior (m i) and caller-supplied discrete ironed virtual valuations φBar i, if x : (∀ i, Fin (m i + 1)) → ι → ℝ maximizes ∑ᵢ φBarᵢ(kᵢ) yᵢ over X at every grid profile k and is constant across every pooled adjacent step of φBarᵢ, then pairing x with coordinatewise discrete envelope payments achieves at least the expected revenue of every discrete DSIC, IR feasible mechanism (x', p').

Empirical monopoly pricing, DOP, Example 13.23, and single-item EM (Exercise 13.4) #

noncomputable def Cslib.GameTheory.SingleParameter.empiricalSinglePriceRevenue {ι : Type u_1} (S : Finset ι) (b : ι → ℝ) (p : ℝ) :

Total revenue p · |{j ∈ S : bⱼ ≥ p}| obtained from a subset of bidders S at uniform offer price p ([HK07a], Definitions 13.19 and 13.21, pp. 339–340).

noncomputable def Cslib.GameTheory.SingleParameter.empiricalCandidatePrices {ι : Type u_1} (S : Finset ι) (b : ι → ℝ) :

Nonnegative candidate prices {0} ∪ {bⱼ ≥ 0 | j ∈ S} for maximizing empirical single-price revenue on S.

noncomputable def Cslib.GameTheory.SingleParameter.empiricalMonopolyPriceOn {ι : Type u_1} (S : Finset ι) (b : ι → ℝ) :

Optimal single sale price opt(F_S) on bid subset S, breaking ties in favour of the smallest optimal nonnegative candidate price ([HK07a], Definitions 13.17 and 13.19, pp. 338–339).

noncomputable def Cslib.GameTheory.SingleParameter.empiricalMonopolyPrice {ι : Type u_1} [Fintype ι] [DecidableEq ι] (b : ι → ℝ) (i : ι) :

Empirical monopoly price opt(F_{b₋ᵢ}) offered to bidder i from the empirical distribution of the other bids b₋ᵢ ([HK07a], Definitions 13.19 and 13.21, pp. 339–340).

Key observation for Exercise 13.4: the empirical monopoly price opt(F_{b₋ᵢ}) never exceeds the highest other bid maxⱼ≠ᵢ bⱼ (since every candidate price is either 0 or bⱼ for some j ≠ i).

Deterministic Optimal Price auction (DOP) ([HK07a], Definition 13.21, p. 340): empirical Myerson applied to digital goods, offering each bidder i the bid-independent price opt(F_{b₋ᵢ}).

Parametric k²-bidder worst-case bid family generalizing [HK07a], Example 13.23 (p. 340, k = 10): among k² bidders, the first k bid k and the remaining k² − k bid 1.

For every k ≥ 2, the optimal single-price revenue max_p p · |{i : bᵢ ≥ p}| on dopBadBids k is k² (achieved at both p = 1 and p = k, generalizing [HK07a], Example 13.23, p. 340).

Unbounded worst-case competitive ratio of DOP (parametric generalization of [HK07a], Example 13.23, p. 340): for every k ≥ 2, on dopBadBids k (where optimal single-price revenue is k²), DOP offers price 1 to each of the k high bidders (k² − 1 > k(k − 1)) and price k to each of the k² − k low bidders (k² > k² − 1), collecting total revenue k.

Empirical Myerson single-item mechanism (EM) ([HK07a], Definition 13.20, Theorem 13.15, Theorem 13.18, and Exercise 13.4, pp. 338–339, 360): instantiates the i.i.d. optimal single-item reserve-price auction VA_{opt(F_{b₋ᵢ})} for each bidder i using the empirical monopoly price opt(F_{b₋ᵢ}) of the other bids.

In any discrete distribution on v₀ < ⋯ < vₘ (n ≥ 2), the top support point vₘ = maxⱼ≠ᵢ bⱼ is an extreme vertex of the quantile revenue curve (0, 0) → (fₘ, fₘ vₘ) (since vₖ q < vₘ q for all k < m), so vₘ is never pooled downward under discrete ironing and retains ironed virtual valuation vₘ ≥ 0 while all lower support points have ironed virtual valuation < vₘ; thus bidder i still beats the existing vₘ bidder in b₋ᵢ only above maxⱼ≠ᵢ bⱼ and pays maxⱼ≠ᵢ bⱼ (formalizing general multi-environment EM simulation over arbitrary cost functions c is tracked in #7789).

Single-item EM has the exact Vickrey allocation on every nonnegative bid profile b ≥ 0 ([HK07a], Exercise 13.4, p. 360), since opt(F_{b₋ᵢ}) ≤ maxⱼ≠ᵢ bⱼ.

Single-item EM has the exact Vickrey payment on every nonnegative bid profile b ≥ 0 ([HK07a], Exercise 13.4, p. 360), since max(opt(F_{b₋ᵢ}), maxⱼ≠ᵢ bⱼ) = maxⱼ≠ᵢ bⱼ.