Documentation

CslibFrontier.GameTheory.FairDivision.Proportional

Proportional Cake-Cutting Protocols: Cut-and-Choose, Dubins–Spanier, and Even–Paz #

Formalizes three classical discrete cake-cutting protocols in the Robertson–Webb query model (FreeM (RWQuery (Fin n))) over arbitrary nonatomic finite additive valuations (CakeValuation) on [0, 1]:

  1. Cut-and-Choose (n = 2) ([Ste48]; [RW98]): Player 0 cuts [0, 1] into two pieces of equal v₀-value 1 / 2, and Player 1 evaluates [0, c] and chooses the higher-valued piece (2 Robertson–Webb queries, 1 physical cut). The resulting contiguous division is both envy-free and proportional (≥ 1 / 2).
  2. Dubins–Spanier discrete protocol (n agents) ([DS61]; [RW98]): By induction on the m remaining active agents (m = n, n - 1, …, 1), while m ≥ 2 every active agent marks a cut point of value 1 / n from the current left boundary a, the agent with the leftmost mark c receives [a, c], and the remaining m - 1 agents recurse on [c, 1]; the final agent receives [a, 1] (n - 1 cuts, contiguous bundles, exact query count n * (n + 1) / 2 - 1 ≤ n ^ 2 for n ≥ 1, every agent receives value ≥ 1 / n).
  3. Even–Paz divide-and-conquer protocol (n agents) ([EP84]; [RW98]): For m ≥ 2 active agents on [a, b], every active agent queries v_i(a, b) and marks a cut point of value (⌊m / 2⌋ / m) · v_i(a, b); cutting at the ⌊m / 2⌋-th mark splits the agents into groups of sizes ⌊m / 2⌋ on [a, c] and m - ⌊m / 2⌋ on [c, b]. Produces a contiguous proportional division (≥ 1 / n) with n - 1 cuts and at most 2 * n * Nat.clog 2 n (O(n log n)) Robertson–Webb queries.

Main definitions #

Main results #

References #

1. Two-Player Cut-and-Choose (n = 2) #

Two-player Cut-and-Choose protocol in the Robertson–Webb query model ([Ste48]): Player 0 cuts [0, 1] at c with v₀(0, c) = 1 / 2, and Player 1 evaluates [0, c] and takes [0, c] if 1 / 2 ≤ v₁(0, c) and [c, 1] otherwise, leaving the remaining piece to Player 0.

Canonical pure evaluation of cutAndChooseQ against RWQuery.oracleOf v.

@[simp]
theorem Cslib.GameTheory.FairDivision.countQueries_cutAndChooseQ (oracle : {ι : Type} → RWQuery (Fin 2) ι → ι) :
FreeM.countQueries (fun {ι : Type} => oracle) cutAndChooseQ = 2

cutAndChooseQ makes exactly 2 Robertson–Webb queries against any oracle.

@[simp]
theorem Cslib.GameTheory.FairDivision.numCuts_cutAndChooseQ (oracle : {ι : Type} → RWQuery (Fin 2) ι → ι) :
(FreeM.eval (fun {ι : Type} => oracle) cutAndChooseQ).numCuts = 1

cutAndChooseQ makes exactly 1 physical cut on [0, 1].

theorem Cslib.GameTheory.FairDivision.isContiguous_cutAndChooseQ (oracle : {ι : Type} → RWQuery (Fin 2) ι → ι) :
(FreeM.eval (fun {ι : Type} => oracle) cutAndChooseQ).IsContiguous

cutAndChooseQ assigns each player a single contiguous interval.

cutAndChooseQ always produces a valid partition of [0, 1].

theorem Cslib.GameTheory.FairDivision.isEnvyFree_cutAndChooseQ {v : Fin 2 → CakeValuation} {oracle : {ι : Type} → RWQuery (Fin 2) ι → ι} (ho : RWQuery.IsValidOracle v fun {ι : Type} => oracle) :
(FreeM.eval (fun {ι : Type} => oracle) cutAndChooseQ).IsEnvyFree v

Cut-and-Choose envy-freeness: for every two-player valuation profile v and valid Robertson–Webb oracle oracle, cutAndChooseQ outputs an envy-free division.

theorem Cslib.GameTheory.FairDivision.isProportional_cutAndChooseQ {v : Fin 2 → CakeValuation} {oracle : {ι : Type} → RWQuery (Fin 2) ι → ι} (ho : RWQuery.IsValidOracle v fun {ι : Type} => oracle) :
(FreeM.eval (fun {ι : Type} => oracle) cutAndChooseQ).IsProportional v

Cut-and-Choose proportionality: for every two-player valuation profile v and valid Robertson–Webb oracle oracle, both players receive value at least 1 / 2.

Shared contiguous-subdivision assembly and agent-index query lifting #

2. Dubins–Spanier Proportional Division (n Agents, O(n²) Queries) #

n-player discrete Dubins–Spanier protocol in the Robertson–Webb query model ([DS61]; [RW98]).

Size-uniform RWQuery ℕ packaging of dubinsSpanierQ for Cslib.Query.UpperBound.

Canonical pure evaluation of dubinsSpanierQ n against RWQuery.oracleOf v.

theorem Cslib.GameTheory.FairDivision.countQueries_dubinsSpanierQ {n : ℕ} (hn : 1 ≤ n) (oracle : {ι : Type} → RWQuery (Fin n) ι → ι) :
FreeM.countQueries (fun {ι : Type} => oracle) (dubinsSpanierQ n) = n * (n + 1) / 2 - 1

Exact Robertson–Webb query count of dubinsSpanierQ n for 1 ≤ n: n * (n + 1) / 2 - 1.

theorem Cslib.GameTheory.FairDivision.countQueries_dubinsSpanierQ_le (n : ℕ) (oracle : {ι : Type} → RWQuery (Fin n) ι → ι) :
FreeM.countQueries (fun {ι : Type} => oracle) (dubinsSpanierQ n) ≤ n ^ 2

Quadratic query bound for dubinsSpanierQ n: at most n ^ 2 Robertson–Webb queries for every n and every oracle.

Cslib.Query.UpperBound formulation (n ^ 2) for Dubins–Spanier across all n : ℕ.

theorem Cslib.GameTheory.FairDivision.isValidPartition_dubinsSpanierQ {n : ℕ} (hn : 1 ≤ n) (oracle : {ι : Type} → RWQuery (Fin n) ι → ι) :
(FreeM.eval (fun {ι : Type} => oracle) (dubinsSpanierQ n)).IsValidPartition ∧ (FreeM.eval (fun {ι : Type} => oracle) (dubinsSpanierQ n)).numCuts = n - 1 ∧ (FreeM.eval (fun {ι : Type} => oracle) (dubinsSpanierQ n)).IsContiguous

For 1 ≤ n, dubinsSpanierQ n produces a valid (n - 1)-cut contiguous partition of [0, 1] against any oracle.

theorem Cslib.GameTheory.FairDivision.isProportional_dubinsSpanierQ {n : ℕ} {v : Fin n → CakeValuation} {oracle : {ι : Type} → RWQuery (Fin n) ι → ι} (ho : RWQuery.IsValidOracle v fun {ι : Type} => oracle) :
(FreeM.eval (fun {ι : Type} => oracle) (dubinsSpanierQ n)).IsProportional v

Dubins–Spanier proportionality: for every n-agent valuation profile v and every valid Robertson–Webb oracle oracle, dubinsSpanierQ n gives every agent value at least 1 / n.

3. Even–Paz Divide-and-Conquer Proportional Division (n Agents, O(n log n) Queries) #

n-player Even–Paz divide-and-conquer protocol in the Robertson–Webb query model ([EP84]; [RW98]).

Size-uniform RWQuery ℕ packaging of evenPazQ for Cslib.Query.UpperBound.

Canonical pure evaluation of evenPazQ n against RWQuery.oracleOf v.

theorem Cslib.GameTheory.FairDivision.countQueries_evenPazQ_le (n : ℕ) (oracle : {ι : Type} → RWQuery (Fin n) ι → ι) :
FreeM.countQueries (fun {ι : Type} => oracle) (evenPazQ n) ≤ 2 * n * Nat.clog 2 n

Even–Paz O(n log n) Robertson–Webb query bound: evenPazQ n makes at most 2 * n * Nat.clog 2 n queries against every oracle.

Cslib.Query.UpperBound formulation (2 * n * ⌈log₂ n⌉, i.e. O(n log n)) for Even–Paz across all n : ℕ.

theorem Cslib.GameTheory.FairDivision.isValidPartition_evenPazQ {n : ℕ} (hn : 1 ≤ n) (oracle : {ι : Type} → RWQuery (Fin n) ι → ι) :
(FreeM.eval (fun {ι : Type} => oracle) (evenPazQ n)).IsValidPartition ∧ (FreeM.eval (fun {ι : Type} => oracle) (evenPazQ n)).numCuts = n - 1 ∧ (FreeM.eval (fun {ι : Type} => oracle) (evenPazQ n)).IsContiguous

For 1 ≤ n, evenPazQ n produces a valid (n - 1)-cut contiguous partition of [0, 1] against any oracle.

theorem Cslib.GameTheory.FairDivision.isProportional_evenPazQ {n : ℕ} {v : Fin n → CakeValuation} {oracle : {ι : Type} → RWQuery (Fin n) ι → ι} (ho : RWQuery.IsValidOracle v fun {ι : Type} => oracle) :
(FreeM.eval (fun {ι : Type} => oracle) (evenPazQ n)).IsProportional v

Even–Paz proportionality: for every n-agent valuation profile v and valid Robertson–Webb oracle oracle, evenPazQ n gives every agent value at least 1 / n.