Documentation

CslibFrontier.GameTheory.Cooperative.MulticastCostSharing

Multicast Cost Sharing: Shapley (SH) vs. Marginal Cost (MC), Welfare Loss, and Communication #

In the multicast cost-sharing problem ([MS01b]; [FPS01]; [FSS07]), a source at the root of a tree T with nonnegative link costs transmits to a selected coalition R of strategic receivers located at nodes of T. Serving R incurs total routing cost cost R equal to the sum of link costs along the union of root-to-receiver paths.

Two canonical incentive-compatible mechanisms arise from opposing economic priorities:

  1. Shapley (SH) multicast cost sharing ([MS01b]; [FPS01]; [JM07], Section 15.6.1 and Exercise 15.2):
  2. Marginal Cost (MC / Clarke VCG) multicast mechanism and the 2-pass distributed algorithm ([FPS01]; [FSS07]):
  3. Efficiency vs. budget balance and Moulin–Shenker (H_n - 1) C minimax welfare loss ([MS01b]):
  4. Cut communication lower bound for SH ([FPS01]):
    • On the (k + 2)-node path multicast instance pathMulticast k with fixed link costs, any deterministic two-party protocol across the bottom cut link deciding whether the bottom receiver is served by shMechanism requires at least k + 1 bits (le_ecomplexityFun_pathMulticast_shServiced), contrasting with MC's 2 messages per link. (The randomized bounded-error lower bound of [FPS01] is not formalized here.)

Main definitions #

Main results #

References #

1. Rooted multicast trees #

structure Cslib.GameTheory.RootedTree (V : Type u_1) :
Type u_1

A rooted tree on vertex type V, represented by a distinguished root and parent pointer map with parent root = root such that iterating parent from every vertex reaches root.

  • root : V

    The source / root vertex of the multicast tree.

  • parent : V → V

    Parent pointer (parent root = root).

  • parent_root : self.parent self.root = self.root

    The root is a fixed point of parent.

  • reaches_root (v : V) : ∃ (k : ℕ), self.parent^[k] v = self.root

    Every vertex reaches root in finitely many parent steps.

u is an ancestor of w in T (reflexively: u lies on the path from w to root).

Instances For
    theorem Cslib.GameTheory.RootedTree.IsAncestor.trans {V : Type u_1} {T : RootedTree V} {u v w : V} (huv : T.IsAncestor u v) (hvw : T.IsAncestor v w) :

    Distance (number of links) from v up to T.root.

    @[simp]
    theorem Cslib.GameTheory.RootedTree.depth_eq_zero_iff {V : Type u_1} [DecidableEq V] (T : RootedTree V) {v : V} :
    T.depth v = 0 ↔ v = T.root
    theorem Cslib.GameTheory.RootedTree.depth_parent {V : Type u_1} [DecidableEq V] (T : RootedTree V) (v : V) :
    T.depth (T.parent v) = T.depth v - 1
    theorem Cslib.GameTheory.RootedTree.depth_parent_lt {V : Type u_1} [DecidableEq V] (T : RootedTree V) {v : V} (hv : v ≠ T.root) :
    T.depth (T.parent v) < T.depth v
    theorem Cslib.GameTheory.RootedTree.depth_iterate_parent {V : Type u_1} [DecidableEq V] (T : RootedTree V) (k : ℕ) (v : V) :
    T.depth (T.parent^[k] v) = T.depth v - k
    theorem Cslib.GameTheory.RootedTree.IsAncestor.depth_le {V : Type u_1} [DecidableEq V] {T : RootedTree V} {u w : V} (h : T.IsAncestor u w) :
    T.depth u ≤ T.depth w
    theorem Cslib.GameTheory.RootedTree.IsAncestor.antisymm {V : Type u_1} {T : RootedTree V} {u w : V} (huw : T.IsAncestor u w) (hwu : T.IsAncestor w u) :
    u = w
    theorem Cslib.GameTheory.RootedTree.IsAncestor.of_ancestors_of_depth_le {V : Type u_1} [DecidableEq V] {T : RootedTree V} {u₁ u₂ w : V} (h₁ : T.IsAncestor u₁ w) (h₂ : T.IsAncestor u₂ w) (hd : T.depth u₁ ≤ T.depth u₂) :
    T.IsAncestor u₁ u₂

    Two ancestors of the same vertex w are comparable by depth along the unique root path.

    Direct children {c ≠ root | parent c = u} of vertex u.

    @[simp]
    theorem Cslib.GameTheory.RootedTree.mem_children {V : Type u_1} [DecidableEq V] (T : RootedTree V) [Fintype V] {u c : V} :
    c ∈ T.children u ↔ c ≠ T.root ∧ T.parent c = u
    theorem Cslib.GameTheory.RootedTree.depth_of_mem_children {V : Type u_1} [DecidableEq V] (T : RootedTree V) [Fintype V] {u c : V} (hc : c ∈ T.children u) :
    T.depth c = T.depth u + 1

    Subtree of descendants {w | IsAncestor u w} rooted at u.

    Rooted-subtree decomposition: subtreeNodes u is the disjoint union of {u} and the subtrees of u's children.

    Maximum depth across V, used for well-founded bottom-up recursion on T.

    noncomputable def Cslib.GameTheory.orGame {B : Type u_1} (U : Finset B) (w : ℝ) :

    Excludable-resource OR game orGame U w: coalition S incurs fixed cost w if at least one member of S belongs to the user set U, and 0 otherwise.

    @[simp]
    theorem Cslib.GameTheory.orGame_cost {B : Type u_1} (U : Finset B) (w : ℝ) (S : Finset B) :
    (orGame U w).cost S = if ∃ i ∈ S, i ∈ U then w else 0
    theorem Cslib.GameTheory.orGame_isSubmodular {B : Type u_1} [DecidableEq B] (U : Finset B) {w : ℝ} (hw : 0 ≤ w) :
    theorem Cslib.GameTheory.shapleyValue_orGame {B : Type u_1} [Fintype B] [DecidableEq B] (U : Finset B) (w : ℝ) (i : B) :
    shapleyValue (orGame U w) i = if i ∈ U then w / ↑U.card else 0

    The Shapley value of orGame U w splits w equally among U (w / |U|) and assigns 0 outside U.

    structure Cslib.GameTheory.MulticastInstance (V : Type u_1) (A : Type u_2) :
    Type (max u_1 u_2)

    A multicast routing cost-sharing instance ([FPS01]; [MS01b]) on a rooted tree tree : RootedTree V with nonnegative link costs edgeCost (edgeCost tree.root = 0) and receiver node placements loc : A → V.

    • tree : RootedTree V

      Underlying rooted multicast routing tree.

    • edgeCost : V → ℝ

      Nonnegative cost of the link (tree.parent v, v) entering v (0 at tree.root).

    • edgeCost_root : self.edgeCost self.tree.root = 0

      The root carries no incoming link cost.

    • edgeCost_nonneg (v : V) : 0 ≤ self.edgeCost v

      Link costs are nonnegative.

    • loc : A → V

      Node of tree at which each receiver i : A resides.

    Cooperative TU cost-sharing game induced by M: serving R costs the sum of edgeCost over M.activeLinks R.

    theorem Cslib.GameTheory.MulticastInstance.toCostSharingGame_cost_eq_sum {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) (R : Finset A) :
    M.toCostSharingGame.cost R = ∑ v : V, if ∃ i ∈ R, M.tree.IsAncestor v (M.loc i) then M.edgeCost v else 0

    Equivalent sum over all v : V (since edgeCost tree.root = 0).

    noncomputable def Cslib.GameTheory.MulticastInstance.shShare {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) [DecidableEq A] (R : Finset A) (i : A) :

    Closed-form Shapley multicast cost share (SH) ([MS01b]; [FPS01]): each active link v on the path from root to M.loc i divides M.edgeCost v equally among the serviced receivers in R downstream of v.

    theorem Cslib.GameTheory.MulticastInstance.shShare_apply {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) [DecidableEq A] (R : Finset A) (i : A) :
    M.shShare R i = if i ∈ R then ∑ v : V with M.tree.IsAncestor v (M.loc i), M.edgeCost v / ↑{j ∈ R | M.tree.IsAncestor v (M.loc j)}.card else 0

    Per-link decomposition of the Shapley multicast scheme ([MS01b]; [FPS01]): the coalition-restricted Shapley share M.toCostSharingGame.shapleyScheme.share R i equals M.shShare R i.

    The Shapley multicast cost-sharing scheme (SH), defined by the closed-form equal per-link split M.shShare.

    @[simp]
    theorem Cslib.GameTheory.MulticastInstance.shScheme_share {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) [DecidableEq A] (R : Finset A) (i : A) :
    M.shScheme.share R i = M.shShare R i

    The Shapley (SH) multicast mechanism M.shScheme.moulinMechanism ([MS01b]; [FPS01]).

    3. Marginal Cost (MC / VCG) multicast mechanism and 2-pass tree algorithm #

    def Cslib.GameTheory.MulticastInstance.netWelfare {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) (b : A → ℝ) (R : Finset A) :

    Net social welfare (∑ i ∈ R, b i) - cost R of serving coalition R under reported bids b ([FPS01]).

    @[simp]
    theorem Cslib.GameTheory.MulticastInstance.netWelfare_empty {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) (b : A → ℝ) :
    theorem Cslib.GameTheory.MulticastInstance.netWelfare_apply {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) (b : A → ℝ) (R : Finset A) :
    M.netWelfare b R = ∑ i ∈ R, b i - M.toCostSharingGame.cost R
    theorem Cslib.GameTheory.MulticastInstance.netWelfare_supermodular {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) [DecidableEq A] (b : A → ℝ) (R S : Finset A) :
    M.netWelfare b R + M.netWelfare b S ≤ M.netWelfare b (R ∪ S) + M.netWelfare b (R ∩ S)

    Supermodularity of net welfare on multicast trees ([FPS01]; [FSS07]).

    Coalition R maximizes reported net social welfare M.netWelfare b.

    noncomputable def Cslib.GameTheory.MulticastInstance.maxNetWelfare {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) [Fintype A] (b : A → ℝ) :

    Maximum reported net social welfare max_R netWelfare b R (≥ 0).

    @[irreducible]
    noncomputable def Cslib.GameTheory.MulticastInstance.nodeWelfare {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) [Fintype A] (b : A → ℝ) (u : V) :

    Pass 1 (bottom-up) node welfare nodeWelfare b u: sum of nonnegative resident bids at u plus incoming nonnegative child surplus messages max 0 (nodeWelfare b c - edgeCost c) ([FPS01]; [FSS07]).

    noncomputable def Cslib.GameTheory.MulticastInstance.subtreeSurplus {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) [Fintype A] (b : A → ℝ) (u : V) :

    Net surplus nodeWelfare b u - edgeCost u of the subtree rooted at u (including link u).

    theorem Cslib.GameTheory.MulticastInstance.subtreeSurplus_eq {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) [Fintype A] (b : A → ℝ) (u : V) :
    noncomputable def Cslib.GameTheory.MulticastInstance.upMsg {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) [Fintype A] (b : A → ℝ) (u : V) :

    Pass 1 upward message max 0 (subtreeSurplus b u) sent along link (parent u ← u).

    theorem Cslib.GameTheory.MulticastInstance.upMsg_eq {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) [Fintype A] (b : A → ℝ) (u : V) :
    M.upMsg b u = max 0 (M.subtreeSurplus b u)
    theorem Cslib.GameTheory.MulticastInstance.nodeWelfare_eq {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) [Fintype A] (b : A → ℝ) (u : V) :
    M.nodeWelfare b u = ∑ i : A with M.loc i = u, max (b i) 0 + ∑ c ∈ M.tree.children u, M.upMsg b c
    theorem Cslib.GameTheory.MulticastInstance.nodeWelfare_nonneg {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) [Fintype A] (b : A → ℝ) (u : V) :
    @[irreducible]
    noncomputable def Cslib.GameTheory.MulticastInstance.topDownActive {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) [Fintype A] (b : A → ℝ) (u : V) :

    Pass 2 (top-down) activation bit topDownActive b u: true at root, and propagated from parent u to u iff 0 ≤ subtreeSurplus b u.

    @[irreducible]
    noncomputable def Cslib.GameTheory.MulticastInstance.topDownThreshold {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) [Fintype A] (b : A → ℝ) (u : V) :

    Pass 2 (top-down) bottleneck surplus topDownThreshold b u : Option ℝ: none at root, and min of subtreeSurplus over all non-root ancestors along (root → u).

    theorem Cslib.GameTheory.MulticastInstance.topDownActive_of_ne_root {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) [Fintype A] (b : A → ℝ) {u : V} (hu : u ≠ M.tree.root) :
    theorem Cslib.GameTheory.MulticastInstance.topDownThreshold_of_ne_root {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) [Fintype A] (b : A → ℝ) {u : V} (hu : u ≠ M.tree.root) :
    M.topDownThreshold b u = match M.topDownThreshold b (M.tree.parent u) with | none => some (M.subtreeSurplus b u) | some m => some (min m (M.subtreeSurplus b u))
    theorem Cslib.GameTheory.MulticastInstance.topDownActive_eq_true_iff {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) [Fintype A] (b : A → ℝ) (u : V) :
    M.topDownActive b u = true ↔ ∀ (w : V), M.tree.IsAncestor w u → w ≠ M.tree.root → 0 ≤ M.subtreeSurplus b w
    noncomputable def Cslib.GameTheory.MulticastInstance.twoPassReceivers {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) [Fintype A] (b : A → ℝ) :

    Receiver set selected locally at each node by the 2-pass algorithm.

    @[simp]
    theorem Cslib.GameTheory.MulticastInstance.mem_twoPassReceivers {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) [Fintype A] {b : A → ℝ} {i : A} :
    noncomputable def Cslib.GameTheory.MulticastInstance.twoPassPayment {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) [Fintype A] (b : A → ℝ) (i : A) :

    Payment computed locally at each node by the 2-pass algorithm.

    theorem Cslib.GameTheory.MulticastInstance.twoPassPayment_eq {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) [Fintype A] (b : A → ℝ) (i : A) :
    M.twoPassPayment b i = if M.topDownActive b (M.loc i) = true then match M.topDownThreshold b (M.loc i) with | none => 0 | some m => max 0 (b i - m) else 0
    theorem Cslib.GameTheory.MulticastInstance.nodeWelfare_root_eq_maxNetWelfare {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) [Fintype A] {b : A → ℝ} (hb : ∀ (i : A), 0 ≤ b i) :

    Pass 1 root correctness: on nonnegative bid profiles, nodeWelfare b tree.root equals the global maximum net social welfare maxNetWelfare b.

    noncomputable def Cslib.GameTheory.MulticastInstance.mcReceivers {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) [Fintype A] [DecidableEq A] (b : A → ℝ) :

    The unique largest welfare-maximizing receiver coalition mcReceivers b: the union of all coalitions maximizing M.netWelfare b ([FPS01]; [FSS07]).

    Unique largest welfare-maximizing coalition ([FPS01]; [FSS07]): mcReceivers b is itself welfare-maximizing and contains every welfare-maximizing coalition (IsGreatest {R | IsWelfareMaximizingSet b R} (mcReceivers b)).

    noncomputable def Cslib.GameTheory.MulticastInstance.maxNetWelfareWithout {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) [Fintype A] [DecidableEq A] (b : A → ℝ) (i : A) :

    Maximum reported net social welfare achievable by coalitions excluding receiver i.

    theorem Cslib.GameTheory.MulticastInstance.netWelfare_le_maxNetWelfareWithout {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) [Fintype A] [DecidableEq A] {b : A → ℝ} {i : A} {R : Finset A} (hi : i ∉ R) :

    The Marginal Cost (MC / Clarke VCG) multicast mechanism ([FPS01]; [FSS07]): serves mcReceivers b and charges each served receiver i its Clarke pivot payment maxNetWelfareWithout b i - (netWelfare b (mcReceivers b) - b i).

    theorem Cslib.GameTheory.MulticastInstance.mcMechanism_payment_of_notMem {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) [Fintype A] [DecidableEq A] {b : A → ℝ} {i : A} (hi : i ∉ M.mcReceivers b) :

    Dominant-strategy truthfulness of mcMechanism on all real profiles: reporting u i weakly dominates any misreport b i.

    Each served receiver under mcMechanism pays at least its marginal cost cost (mcReceivers b) - cost (mcReceivers b \ {i}) ≥ 0.

    mcMechanism never runs a budget surplus ([MS01b]; [FPS01]): for every real bid profile b, total VCG payments are at most cost (mcReceivers b) (so MC either breaks even or incurs a budget deficit).

    theorem Cslib.GameTheory.MulticastInstance.twoPassReceivers_eq_mcReceivers {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) [Fintype A] [DecidableEq A] {b : A → ℝ} (hb : ∀ (i : A), 0 ≤ b i) :

    Pass 2 allocation correctness ([FPS01]; [FSS07]): on nonnegative bid profiles, twoPassReceivers b equals the unique largest welfare-maximizing receiver set mcReceivers b.

    theorem Cslib.GameTheory.MulticastInstance.twoPassPayment_eq_mcMechanism_payment {V : Type u_1} {A : Type u_2} [Fintype V] [DecidableEq V] (M : MulticastInstance V A) [Fintype A] [DecidableEq A] {b : A → ℝ} (hb : ∀ (j : A), 0 ≤ b j) (i : A) :

    Pass 2 payment correctness ([FPS01]; [FSS07]): on nonnegative bid profiles, twoPassPayment b equals mcMechanism.payment b.

    Canonical single-link multicast instance (an excludable public good of cost C ≥ 0): root false, link (false, true) of cost C, with all receivers A located at true.

    theorem Cslib.GameTheory.singleLinkMulticast_shShare {A : Type u_1} [DecidableEq A] (C : ℝ) (hC : 0 ≤ C) (R : Finset A) (i : A) :
    (singleLinkMulticast A C hC).shShare R i = if i ∈ R then C / ↑R.card else 0
    theorem Cslib.GameTheory.netWelfare_sub_shMechanism_le_harmonic_sub_one {A : Type u_1} [Fintype A] [DecidableEq A] [Nonempty A] {C : ℝ} (hC : 0 ≤ C) {b : A → ℝ} (hb : ∀ (i : A), 0 ≤ b i) (R : Finset A) :
    have I := singleLinkMulticast A C hC; I.netWelfare b R - I.netWelfare b (I.shMechanism.serviced b) ≤ (↑(harmonic (Fintype.card A)) - 1) * C

    Moulin–Shenker (H_n - 1) C welfare-loss upper bound ([MS01b]): on a single excludable link of cost C ≥ 0 with n = Fintype.card A ≥ 1 receivers, shMechanism incurs additive net-welfare loss at most (H_n - 1) * C relative to any coalition R on every nonnegative bid profile b.

    theorem Cslib.GameTheory.exists_welfareLoss_gt_harmonic_sub_one {A : Type u_1} [Fintype A] [Nonempty A] {C : ℝ} (hC : 0 < C) {ξ : CostSharingScheme A} (hbb : ξ.IsBudgetBalanced (singleLinkMulticast A C ⋯).toCostSharingGame 1) (hcm : ξ.IsCrossMonotone) {ε : ℝ} (hε : 0 < ε) :
    ∃ (b : A → ℝ), (∀ (i : A), 0 ≤ b i) ∧ (↑(harmonic (Fintype.card A)) - 1) * C - ε < (singleLinkMulticast A C ⋯).netWelfare b Finset.univ - (singleLinkMulticast A C ⋯).netWelfare b (ξ.moulinMechanism.serviced b)

    Moulin–Shenker minimax welfare-loss lower bound ([MS01b]): for every 1-budget-balanced cross-monotonic cost-sharing scheme ξ on singleLinkMulticast (C > 0, n = Fintype.card A ≥ 1) and every ε > 0, there exists a nonnegative bid profile b on which ξ.moulinMechanism suffers additive welfare loss strictly greater than (H_n - 1) * C - ε (in fact returning serviced b = ∅ while netWelfare b univ > (H_n - 1) * C - ε).

    5. (k + 1)-bit cut communication lower bound for SH on path trees #

    Rooted path tree 0 — 1 — 2 — … — k — (k + 1) on Fin (k + 2) with root 0.

    Fixed (k + 2)-node path multicast instance pathMulticast k:

    • k spine nodes 1 .. k on Alice's side, with link cost ((k + 1)!) * ((k + 1)! + 1) ^ (v - 1) and one Alice receiver Sum.inl t at t + 1;
    • bottom node k + 1 on Bob's side (link cost 0), housing Bob's receiver Sum.inr ().
    noncomputable def Cslib.GameTheory.pathBottomShare (k : ℕ) (x : BitString k) :

    Exact shShare of Bob's bottom receiver Sum.inr () when Alice's active spine receivers are {t : Fin k | x t = true}.

    noncomputable def Cslib.GameTheory.pathBidProfile (k : ℕ) (x y : BitString k) :
    Fin k ⊕ Unit → ℝ

    Two-party bid profile on pathMulticast k induced by Alice's x : BitString k and Bob's y : BitString k: Alice's active receivers bid 1 + ∑ edgeCost, Alice's inactive receivers bid 0, and Bob's bottom receiver bids pathBottomShare k y.

    pathBottomShare k is injective on BitString k: distinct active receiver subsets along the spine induce distinct Shapley shares at the bottom node.

    (k + 1)-bit deterministic cut communication lower bound for SH on path trees ([FPS01]; [FSS07]): for 0 < k, any deterministic two-party protocol across the bottom cut link of pathMulticast k deciding whether Bob's receiver Sum.inr () is served by shMechanism exchanges at least k + 1 bits.