Documentation

CslibFrontier.Algorithms.Lean.CombinatorialAuction.DynamicProgramming

Dynamic programming optimality steps for combinatorial auction winner determination #

This module formalizes the exact algorithmic optimality steps of Exercises 11.1 and 11.2 of [BN07] (Chapter 11, p. 298); it is not a machine-level polynomial-time theorem (the polynomial-time clauses of Exercises 11.1 and 11.2 remain open under issue #7789).

  1. Single-minded interval bidders (optimality step of Exercise 11.1, p. 298; cf. §11.2.1, p. 272): when m items are linearly ordered as Fin m and each single-minded bidder i : N desires a nonempty consecutive interval Finset.Icc lo hi (lo ≤ hi) with value value : ℝ (IntervalBid m), dynamic programming over prefixes {0, ..., t - 1} (intervalDP) returns a compatible (SingleMinded.IsCompatible) set of winning bidders maximizing total social welfare ∑ i ∈ W, (b i).value (intervalDP_isCompatible, sum_le_intervalDP).
  2. Explicit-vector combinatorial auctions (optimality step of Exercise 11.2, p. 298): for n bidders (Fin n) and a finite item set M with arbitrary real valuations v : Fin n → Finset M → ℝ, subset dynamic programming (subsetDPAllocation) computes an Allocation (Fin n) M maximizing social welfare CombinatorialAuction.welfare v a (welfare_le_subsetDP, requiring neither monotonicity nor normalization).

Main definitions #

Main results #

References #

Exercise 11.1: Single-minded interval bidders #

A single-minded bid on linearly ordered items Fin m whose desired bundle is the nonempty contiguous interval [lo, hi] = Finset.Icc lo hi ([BN07], Exercise 11.1, p. 298).

  • lo : Fin m

    Left endpoint k_i of the desired interval.

  • hi : Fin m

    Right endpoint l_i of the desired interval.

  • lo_le_hi : self.lo ≤ self.hi

    Nonemptiness of the interval (k_i ≤ l_i).

  • value : ℝ

    Scalar value v_i for winning the interval [lo, hi].

theorem Cslib.Algorithms.Lean.CombinatorialAuction.IntervalBid.ext {m : ℕ} {x y : IntervalBid m} (lo : x.lo = y.lo) (hi : x.hi = y.hi) (value : x.value = y.value) :
x = y

Two interval bids have disjoint desired bundles iff one ends strictly before the other starts.

noncomputable def Cslib.Algorithms.Lean.CombinatorialAuction.intervalDP {N : Type u_1} {m : ℕ} [Fintype N] [DecidableEq N] (b : N → IntervalBid m) :

The exact dynamic program for single-minded interval bidders ([BN07], Exercise 11.1, p. 298): returns an optimal compatible set of winning bidders for item set Fin m.

Feasibility of intervalDP ([BN07], Exercise 11.1, p. 298): the winner set returned by intervalDP b is compatible (pairwise disjoint desired intervals).

theorem Cslib.Algorithms.Lean.CombinatorialAuction.sum_le_intervalDP {N : Type u_1} {m : ℕ} [Fintype N] [DecidableEq N] (b : N → IntervalBid m) {W : Finset N} (hW : GameTheory.CombinatorialAuction.SingleMinded.IsCompatible (fun (i : N) => (b i).toSingleMindedBid) W) :
∑ i ∈ W, (b i).value ≤ ∑ i ∈ intervalDP b, (b i).value

Optimality of intervalDP ([BN07], Exercise 11.1, p. 298): intervalDP b achieves social welfare at least that of every compatible winner set W.

Exercise 11.2: Subset dynamic programming for explicit-vector combinatorial auctions #

The allocation returned by subsetDP on all n bidders and all items Finset.univ ([BN07], Exercise 11.2, p. 298).

Optimality of subsetDPAllocation ([BN07], Exercise 11.2, p. 298): for arbitrary real valuations v : Fin n → Finset M → ℝ, subsetDPAllocation v maximizes social welfare over all allocations a : Allocation (Fin n) M.