Documentation

CslibFrontier.GameTheory.ResourceAllocation.KellyMechanism

Kelly's proportional allocation mechanism and the 3/4 efficiency theorem #

A single infinitely divisible resource of capacity C > 0 is shared among a finite set ι of users with utility functions U_i : [0, ∞) → ℝ ([RT07], §17.2.4, pp. 452–454; [Joh07], §21.2, pp. 544–551; [Kel97]; [JT04]). Under Kelly's proportional allocation mechanism, each user i submits a nonnegative bid w_i ≥ 0, the market-clearing price is p = (∑_j w_j) / C ([Joh07], Eq. (21.4), p. 545), and user i receives allocation d_i = C · w_i / (∑_j w_j) (with d_i = 0 when ∑_j w_j = 0; [RT07], Eq. (17.1), p. 452) and quasilinear payoff U_i(d_i) - w_i ([RT07], Eq. (17.2), p. 453; [Joh07], Eq. (21.11), p. 547).

When users are price-taking, a competitive equilibrium (w, μ) always exists for admissible concave strictly increasing utilities (IsAdmissibleUtility, [Joh07], Assumption 1, p. 545) and maximizes aggregate social welfare ∑_i U_i(d_i) over feasible allocations SYSTEM ([Joh07], Theorem 21.1, pp. 546–547; [Kel97]). When users are price-anticipating ([RT07], Definition 17.5, p. 453) and |ι| ≥ 2, each user's single-variable payoff is strictly concave and continuously differentiable whenever competing bids are positive ([RT07], Exercise 17.4, p. 459), every Nash equilibrium has at least two strictly positive bids ([RT07], Exercise 17.5, p. 459), and the game admits a unique Nash equilibrium w, whose allocation d uniquely solves the strictly concave potential problem GAME maximizing ∑_i Û_i(d_i) where Û_i(d_i) = (1 - d_i / C) U_i(d_i) + (1 / C) ∫_0^{d_i} U_i(z) dz ([Joh07], Theorem 21.2, pp. 547–548; [JT04]) and satisfies the corresponding variational inequality ([Joh07], Corollary 21.3, p. 549).

The headline efficiency theorem of Johari and Tsitsiklis ([JT04]; [Joh07], Theorem 21.4, pp. 549–551) shows that if each admissible utility satisfies U_i(0) ≥ 0, then every Nash equilibrium achieves at least 3/4 of the maximum feasible aggregate utility (efficiency loss at most 1/4, i.e., price of anarchy at most 4/3). Moreover, this constant 3/4 is tight: both the n-user fixed-slope family twoToOneLinearGame n (U_0(x) = 2x, U_i(x) = x, [RT07], Example 17.6, pp. 453–454, where user 0 gets allocation n / (2n - 1) and Nash welfare (3n - 1) / (2n - 1) against optimal welfare 2) and the (n + 1)-user family kellyTightGame n achieve welfare ratio 3/4 + 1 / (4 (2 n - 1)), approaching 3/4 arbitrarily closely as n → ∞.

IsAdmissibleUtility requires concavity, strict monotonicity, and differentiability within [0, ∞) (i.e., differentiability on (0, ∞) with a finite right derivative at 0). This matches Assumption 1 of [Joh07], §21.2, p. 545, because continuity of the derivative on [0, ∞) is automatic for differentiable concave functions (IsAdmissibleUtility.continuousOn_derivWithin).

KellyGame.IsNashEquilibrium maximizes quasilinear payoffs directly over nonnegative real bids on ι → ℝ rather than wrapping CostGame ι (fun _ => {t : ℝ // 0 ≤ t}) (CslibFrontier.GameTheory.Strategic.Basic), keeping unilateral deviations and single-variable convex calculus over ℝ subtype-free.

Main definitions #

Main results #

References #

Admissible utility functions #

An admissible utility function for the divisible single-resource allocation model: concave, strictly increasing, and differentiable within [0, ∞) (equivalently differentiable on (0, ∞) with a finite right derivative at 0). This formalizes Assumption 1 of [Johari2007], §21.2.

First-order local-maximum helper #

theorem Cslib.GameTheory.IsAdmissibleUtility.le_add_derivWithin {u : ℝ → ℝ} (hu : IsAdmissibleUtility u) {x y : ℝ} (hx : 0 ≤ x) (hy : 0 ≤ y) :
u y ≤ u x + derivWithin u (Set.Ici 0) x * (y - x)

First-order concavity inequality on [0, ∞): u y ≤ u x + u'(x) (y - x).

The marginal utility u' is nonincreasing on [0, ∞).

Every concave, strictly increasing, differentiable function on [0, ∞) has strictly positive marginal utility everywhere on [0, ∞).

Every admissible utility has a continuous derivative within [0, ∞) on [0, ∞) (automatic C¹ regularity for differentiable concave functions).

Kelly resource allocation model #

structure Cslib.GameTheory.KellyGame (ι : Type u_1) :
Type u_1

A single-resource divisible allocation problem with user type ι, total capacity capacity, and utility functions utility i : ℝ → ℝ on [0, ∞) ([Johari2007], §21.2).

  • capacity : ℝ

    Total divisible capacity C of the resource.

  • utility : ι → ℝ → ℝ

    Utility function U_i of user i on [0, ∞).

An allocation vector d : ι → ℝ is feasible for SYSTEM if it is nonnegative and its sum does not exceed the resource capacity G.capacity.

def Cslib.GameTheory.KellyGame.welfare {ι : Type u_1} (G : KellyGame ι) [Fintype ι] (d : ι → ℝ) :

Aggregate social welfare ∑_i U_i(d_i) of an allocation d.

def Cslib.GameTheory.KellyGame.IsSocialOptimum {ι : Type u_1} (G : KellyGame ι) [Fintype ι] (d : ι → ℝ) :

A feasible allocation d solves SYSTEM if it maximizes aggregate welfare over all feasible allocations ([Joh07], §21.2).

noncomputable def Cslib.GameTheory.KellyGame.price {ι : Type u_1} (G : KellyGame ι) [Fintype ι] (w : ι → ℝ) :

The market-clearing price p(w) = (∑_j w_j) / C induced by bid vector w.

noncomputable def Cslib.GameTheory.KellyGame.allocation {ι : Type u_1} (G : KellyGame ι) [Fintype ι] (w : ι → ℝ) (i : ι) :

Kelly's proportional allocation rule: user i receives C · w_i / (∑_j w_j), which equals 0 when ∑_j w_j = 0 ([Joh07], §21.2; [Kel97]).

noncomputable def Cslib.GameTheory.KellyGame.payoff {ι : Type u_1} (G : KellyGame ι) [Fintype ι] (w : ι → ℝ) (i : ι) :

Quasilinear payoff U_i(d_i(w)) - w_i of user i in the price-anticipating Kelly game.

def Cslib.GameTheory.KellyGame.IsCompetitiveEquilibrium {ι : Type u_1} (G : KellyGame ι) [Fintype ι] (w : ι → ℝ) (μ : ℝ) :

A price-taking competitive equilibrium (w, μ) consists of nonnegative bids w and a positive market-clearing price μ = (∑_j w_j) / C such that each user i maximizes U_i(t / μ) - t over t ≥ 0 at t = w_i ([Joh07], §21.2, Theorem 21.1).

A price-anticipating Nash equilibrium w is a nonnegative bid profile from which no user can strictly improve its payoff by unilaterally changing its bid to any t ≥ 0 ([Joh07], §21.2, Theorem 21.2).

noncomputable def Cslib.GameTheory.KellyGame.modifiedUtility {ι : Type u_1} (G : KellyGame ι) (i : ι) (x : ℝ) :

The modified utility Û_i(x) = (1 - x / C) U_i(x) + (1 / C) ∫_0^x U_i(z) dz defining the potential optimization problem GAME ([Joh07], §21.2, Theorem 21.2).

noncomputable def Cslib.GameTheory.KellyGame.modifiedWelfare {ι : Type u_1} (G : KellyGame ι) [Fintype ι] (d : ι → ℝ) :

Aggregate modified welfare ∑_i Û_i(d_i) (the objective of GAME).

def Cslib.GameTheory.KellyGame.IsGameOptimum {ι : Type u_1} (G : KellyGame ι) [Fintype ι] (d : ι → ℝ) :

A feasible allocation d solves GAME if it maximizes aggregate modified welfare over all feasible allocations ([Joh07], §21.2, Theorem 21.2).

Basic properties of proportional allocation #

theorem Cslib.GameTheory.KellyGame.allocation_eq_zero_of_sum_eq_zero {ι : Type u_1} (G : KellyGame ι) [Fintype ι] {w : ι → ℝ} (hw : ∑ j : ι, w j = 0) (i : ι) :
G.allocation w i = 0
theorem Cslib.GameTheory.KellyGame.allocation_eq_div_price {ι : Type u_1} (G : KellyGame ι) [Fintype ι] {w : ι → ℝ} (hC : G.capacity ≠ 0) (i : ι) :
G.allocation w i = w i / G.price w
theorem Cslib.GameTheory.KellyGame.allocation_nonneg {ι : Type u_1} (G : KellyGame ι) [Fintype ι] {w : ι → ℝ} (hC : 0 ≤ G.capacity) (hw : ∀ (j : ι), 0 ≤ w j) (i : ι) :
0 ≤ G.allocation w i
theorem Cslib.GameTheory.KellyGame.sum_allocation_eq_capacity {ι : Type u_1} (G : KellyGame ι) [Fintype ι] {w : ι → ℝ} (hW : ∑ j : ι, w j ≠ 0) :
∑ i : ι, G.allocation w i = G.capacity
theorem Cslib.GameTheory.KellyGame.isFeasibleAllocation_allocation {ι : Type u_1} (G : KellyGame ι) [Fintype ι] {w : ι → ℝ} (hC : 0 ≤ G.capacity) (hw : ∀ (j : ι), 0 ≤ w j) :
theorem Cslib.GameTheory.KellyGame.allocation_le_capacity {ι : Type u_1} (G : KellyGame ι) [Fintype ι] {w : ι → ℝ} (hC : 0 ≤ G.capacity) (hw : ∀ (j : ι), 0 ≤ w j) (i : ι) :
theorem Cslib.GameTheory.KellyGame.isFeasibleAllocation_le_capacity {ι : Type u_1} (G : KellyGame ι) [Fintype ι] {d : ι → ℝ} (hd : G.IsFeasibleAllocation d) (i : ι) :

Simplex optimization and shared KKT characterization #

The feasible allocation simplex {d | G.IsFeasibleAllocation d} is compact.

theorem Cslib.GameTheory.KellyGame.IsSocialOptimum.swap_deriv_le {ι : Type u_1} [Fintype ι] {G : KellyGame ι} {d : ι → ℝ} (hd : G.IsSocialOptimum d) {i j : ι} (hij : i ≠ j) (hdi : 0 < d i) {di' dj' : ℝ} (hderiv_i : HasDerivWithinAt (G.utility i) di' (Set.Icc 0 G.capacity) (d i)) (hderiv_j : HasDerivWithinAt (G.utility j) dj' (Set.Icc 0 G.capacity) (d j)) :
dj' ≤ di'

Pairwise first-order optimality condition on the simplex: at a social optimum d, if user i receives positive allocation d i > 0, shifting infinitesimal capacity from i to j cannot improve welfare, so dj' ≤ di'.

Price-taking competitive equilibrium (Theorem 21.1) #

First Welfare Theorem for Kelly's mechanism ([Joh07], §21.2, Theorem 21.1; [Kel97]): every price-taking competitive equilibrium (w, μ) induces a socially optimal allocation G.allocation w (without assuming concavity or differentiability).

theorem Cslib.GameTheory.KellyGame.isSocialOptimum_iff_kkt {ι : Type u_1} [Fintype ι] [Nonempty ι] {G : KellyGame ι} (hC : 0 < G.capacity) (hU : ∀ (i : ι), IsAdmissibleUtility (G.utility i)) {d : ι → ℝ} :
G.IsSocialOptimum d ↔ G.IsFeasibleAllocation d ∧ ∑ i : ι, d i = G.capacity ∧ ∃ (μ : ℝ), 0 < μ ∧ (∀ (i : ι), derivWithin (G.utility i) (Set.Ici 0) (d i) ≤ μ) ∧ ∀ (i : ι), 0 < d i → derivWithin (G.utility i) (Set.Ici 0) (d i) = μ

First-order KKT characterization of SYSTEM optima for admissible utilities.

theorem Cslib.GameTheory.KellyGame.IsSocialOptimum.sum_eq_capacity {ι : Type u_1} [Fintype ι] [Nonempty ι] {G : KellyGame ι} (hmono : ∀ (i : ι), StrictMonoOn (G.utility i) (Set.Icc 0 G.capacity)) {d : ι → ℝ} (hd : G.IsSocialOptimum d) :
∑ i : ι, d i = G.capacity

Every social optimum for strictly increasing utilities exhausts the resource capacity.

theorem Cslib.GameTheory.KellyGame.exists_isSocialOptimum {ι : Type u_1} [Fintype ι] {G : KellyGame ι} (hC : 0 ≤ G.capacity) (hcont : ∀ (i : ι), ContinuousOn (G.utility i) (Set.Icc 0 G.capacity)) :
∃ (d : ι → ℝ), G.IsSocialOptimum d

Existence of a socially optimal allocation for SYSTEM with positive capacity and continuous utilities on [0, C].

theorem Cslib.GameTheory.KellyGame.existsUnique_isSocialOptimum_of_strictConcaveOn {ι : Type u_1} [Fintype ι] {G : KellyGame ι} (hC : 0 ≤ G.capacity) (hcont : ∀ (i : ι), ContinuousOn (G.utility i) (Set.Icc 0 G.capacity)) (hstrict : ∀ (i : ι), StrictConcaveOn ℝ (Set.Icc 0 G.capacity) (G.utility i)) :
∃! d : ι → ℝ, G.IsSocialOptimum d

Existence and uniqueness of the socially optimal allocation for SYSTEM with strictly concave continuous utilities on [0, C].

theorem Cslib.GameTheory.KellyGame.exists_isCompetitiveEquilibrium {ι : Type u_1} [Fintype ι] [Nonempty ι] {G : KellyGame ι} (hC : 0 < G.capacity) (hU : ∀ (i : ι), IsAdmissibleUtility (G.utility i)) :
∃ (w : ι → ℝ) (μ : ℝ), G.IsCompetitiveEquilibrium w μ ∧ G.IsSocialOptimum (G.allocation w)

Existence of Kelly competitive equilibrium ([Joh07], §21.2, Theorem 21.1; [Kel97]): for Nonempty ι, positive capacity G.capacity, and admissible utilities, there exists a competitive equilibrium (w, μ), and its allocation G.allocation w solves SYSTEM.

theorem Cslib.GameTheory.KellyGame.existsUnique_isCompetitiveEquilibrium_of_strictConcaveOn {ι : Type u_1} [Fintype ι] [Nonempty ι] {G : KellyGame ι} (hC : 0 < G.capacity) (hU : ∀ (i : ι), IsAdmissibleUtility (G.utility i)) (hstrict : ∀ (i : ι), StrictConcaveOn ℝ (Set.Ici 0) (G.utility i)) :
∃! p : (ι → ℝ) × ℝ, G.IsCompetitiveEquilibrium p.1 p.2

When utilities are also strictly concave on [0, ∞), the competitive equilibrium (w, μ) is unique.

Properties of the modified utility Û_i #

Derivative of modifiedUtility G i on [0, C]: Û_i'(x) = (1 - x / C) U_i'(x).

Each modified utility Û_i is strictly concave on [0, C] whenever U_i is concave and strictly increasing (even when U_i is linear).

Price-anticipating Nash equilibrium, GAME, and variational inequality #

theorem Cslib.GameTheory.KellyGame.IsNashEquilibrium.sum_erase_pos {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : KellyGame ι} (hC : 0 < G.capacity) (hmono : ∀ (i : ι), StrictMonoOn (G.utility i) (Set.Ici 0)) {w : ι → ℝ} (hne : G.IsNashEquilibrium w) (i : ι) :
0 < ∑ j ∈ Finset.univ.erase i, w j

At any Nash equilibrium with strictly increasing utilities and positive capacity, the sum of all other users' bids is strictly positive for every user i (so at least two users bid strictly positively; in particular, no Nash equilibrium exists with a single user).

theorem Cslib.GameTheory.KellyGame.IsNashEquilibrium.exists_two_pos_bids {ι : Type u_1} [Fintype ι] [DecidableEq ι] [Nonempty ι] {G : KellyGame ι} (hC : 0 < G.capacity) (hmono : ∀ (i : ι), StrictMonoOn (G.utility i) (Set.Ici 0)) {w : ι → ℝ} (hne : G.IsNashEquilibrium w) :
∃ (i : ι) (j : ι), i ≠ j ∧ 0 < w i ∧ 0 < w j

At least two positive equilibrium bids ([RT07], Exercise 17.5, p. 459; [Joh07], Theorem 21.2, p. 548): in any Nash equilibrium of a resource allocation game with positive capacity and strictly increasing utilities, at least two distinct users submit strictly positive bids.

theorem Cslib.GameTheory.KellyGame.IsNashEquilibrium.price_pos {ι : Type u_1} [Fintype ι] [DecidableEq ι] [Nonempty ι] {G : KellyGame ι} (hC : 0 < G.capacity) (hmono : ∀ (i : ι), StrictMonoOn (G.utility i) (Set.Ici 0)) {w : ι → ℝ} (hne : G.IsNashEquilibrium w) :
0 < G.price w
theorem Cslib.GameTheory.KellyGame.IsNashEquilibrium.sum_allocation_eq_capacity {ι : Type u_1} [Fintype ι] [DecidableEq ι] [Nonempty ι] {G : KellyGame ι} (hC : 0 < G.capacity) (hmono : ∀ (i : ι), StrictMonoOn (G.utility i) (Set.Ici 0)) {w : ι → ℝ} (hne : G.IsNashEquilibrium w) :
∑ i : ι, G.allocation w i = G.capacity

At any Nash equilibrium with strictly increasing utilities, total equilibrium allocation equals the resource capacity.

theorem Cslib.GameTheory.KellyGame.IsNashEquilibrium.allocation_lt_capacity {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : KellyGame ι} (hC : 0 < G.capacity) (hmono : ∀ (i : ι), StrictMonoOn (G.utility i) (Set.Ici 0)) {w : ι → ℝ} (hne : G.IsNashEquilibrium w) (i : ι) :
theorem Cslib.GameTheory.KellyGame.strictConcaveOn_payoff {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : KellyGame ι} (hC : 0 < G.capacity) {i : ι} (hu : IsAdmissibleUtility (G.utility i)) {w : ι → ℝ} (hs : 0 < ∑ j ∈ Finset.univ.erase i, w j) :
StrictConcaveOn ℝ (Set.Ici 0) fun (t : ℝ) => G.payoff (Function.update w i t) i

Strict concavity of single-user payoff ([RT07], §17.2.4, p. 453 and Exercise 17.4, p. 459): for C > 0, an admissible utility G.utility i, and competing bids with positive total 0 < ∑ j ≠ i, w j (in particular, any nonnegative w_{-i} with at least one strictly positive component), user i's payoff t ↦ G.payoff (Function.update w i t) i is strictly concave on [0, ∞).

theorem Cslib.GameTheory.KellyGame.hasDerivWithinAt_payoff {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : KellyGame ι} (hC : 0 < G.capacity) {i : ι} (hu : IsAdmissibleUtility (G.utility i)) {w : ι → ℝ} (hs : 0 < ∑ j ∈ Finset.univ.erase i, w j) {t : ℝ} (ht : 0 ≤ t) :
HasDerivWithinAt (fun (x : ℝ) => G.payoff (Function.update w i x) i) (derivWithin (G.utility i) (Set.Ici 0) (G.capacity * t / (t + ∑ j ∈ Finset.univ.erase i, w j)) * ((G.capacity * ∑ j ∈ Finset.univ.erase i, w j) / (t + ∑ j ∈ Finset.univ.erase i, w j) ^ 2) - 1) (Set.Ici 0) t

Derivative of single-user payoff ([RT07], §17.2.4, p. 453 and Exercise 17.4, p. 459): when C > 0, G.utility i is admissible, and competing bids satisfy 0 < ∑ j ≠ i, w j, user i's payoff is differentiable within [0, ∞) at every t ≥ 0 with explicit derivative U_i'(C t / (t + s)) * (C s / (t + s)^2) - 1.

theorem Cslib.GameTheory.KellyGame.continuousOn_derivWithin_payoff {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : KellyGame ι} (hC : 0 < G.capacity) {i : ι} (hu : IsAdmissibleUtility (G.utility i)) {w : ι → ℝ} (hs : 0 < ∑ j ∈ Finset.univ.erase i, w j) :
ContinuousOn (derivWithin (fun (x : ℝ) => G.payoff (Function.update w i x) i) (Set.Ici 0)) (Set.Ici 0)

Continuous differentiability of single-user payoff ([RT07], §17.2.4, p. 453 and Exercise 17.4, p. 459): when C > 0, G.utility i is admissible, and competing bids satisfy 0 < ∑ j ≠ i, w j, the derivative of t ↦ G.payoff (Function.update w i t) i within [0, ∞) is continuous on [0, ∞).

theorem Cslib.GameTheory.KellyGame.isNashEquilibrium_iff_kkt {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : KellyGame ι} (hC : 0 < G.capacity) (hU : ∀ (i : ι), IsAdmissibleUtility (G.utility i)) {w : ι → ℝ} :
G.IsNashEquilibrium w ↔ (∀ (i : ι), 0 ≤ w i) ∧ (∀ (i : ι), 0 < ∑ j ∈ Finset.univ.erase i, w j) ∧ (∀ (i : ι), derivWithin (G.utility i) (Set.Ici 0) (G.allocation w i) * (1 - G.allocation w i / G.capacity) ≤ G.price w) ∧ ∀ (i : ι), 0 < G.allocation w i → derivWithin (G.utility i) (Set.Ici 0) (G.allocation w i) * (1 - G.allocation w i / G.capacity) = G.price w

First-order KKT characterization of price-anticipating Nash equilibria ([Joh07], §21.2): a nonnegative bid profile w is a Nash equilibrium iff every user faces a positive sum of competing bids and the modified marginal utility U_i'(d_i) (1 - d_i / C) is at most the clearing price μ = G.price w, with equality whenever d_i > 0.

theorem Cslib.GameTheory.KellyGame.existsUnique_isNashEquilibrium {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : KellyGame ι} (hcard : 2 ≤ Fintype.card ι) (hC : 0 < G.capacity) (hU : ∀ (i : ι), IsAdmissibleUtility (G.utility i)) :
(∃! w : ι → ℝ, G.IsNashEquilibrium w) ∧ (∃! d : ι → ℝ, G.IsGameOptimum d) ∧ ∀ (w : ι → ℝ), G.IsNashEquilibrium w → G.IsGameOptimum (G.allocation w)

Existence and uniqueness of the price-anticipating Nash equilibrium and equivalence with GAME ([Joh07], §21.2, Theorem 21.2; [JT04]): for 2 ≤ Fintype.card ι, positive capacity, and admissible utilities, the Kelly game has a unique Nash equilibrium w, and its allocation G.allocation w is the unique maximizer of GAME.

theorem Cslib.GameTheory.KellyGame.IsNashEquilibrium.variational_inequality {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : KellyGame ι} (hC : 0 < G.capacity) (hU : ∀ (i : ι), IsAdmissibleUtility (G.utility i)) {w : ι → ℝ} (hne : G.IsNashEquilibrium w) {x : ι → ℝ} (hx : G.IsFeasibleAllocation x) :
∑ i : ι, derivWithin (G.utility i) (Set.Ici 0) (G.allocation w i) * (1 - G.allocation w i / G.capacity) * (x i - G.allocation w i) ≤ 0

Variational inequality for Kelly Nash equilibria ([Joh07], §21.2, Corollary 21.3): at any Nash equilibrium w with allocation d = G.allocation w, ∑_i U_i'(d_i) (1 - d_i / C) (x_i - d_i) ≤ 0 for every feasible allocation x.

Johari–Tsitsiklis 3/4 worst-case efficiency theorem (Theorem 21.4) #

theorem Cslib.GameTheory.KellyGame.IsNashEquilibrium.three_fourths_welfare_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : KellyGame ι} (hC : 0 < G.capacity) (hU : ∀ (i : ι), IsAdmissibleUtility (G.utility i)) (hU0 : ∀ (i : ι), 0 ≤ G.utility i 0) {w : ι → ℝ} (hne : G.IsNashEquilibrium w) {x : ι → ℝ} (hx : G.IsFeasibleAllocation x) :
3 / 4 * G.welfare x ≤ G.welfare (G.allocation w)

Johari–Tsitsiklis 3/4 worst-case efficiency theorem ([JT04]; [Joh07], §21.2, Theorem 21.4): for positive capacity and admissible utilities with U_i(0) ≥ 0, every price-anticipating Nash equilibrium w of Kelly's proportional allocation mechanism achieves at least 3/4 of the aggregate welfare of any feasible allocation x.

Explicit tightness family approaching 3/4 #

The (n + 1)-user linear-utility Kelly game of capacity 1 with U_0(x) = x and U_i(x) = (n / (2 n - 1)) · x for i ≠ 0. For n ≥ 2, its unique Nash equilibrium has welfare 3/4 + 1 / (4 (2 n - 1)) against optimal welfare 1.

noncomputable def Cslib.GameTheory.KellyGame.kellyTightBid (n : ℕ) :
Fin (n + 1) → ℝ

The explicit Nash equilibrium bid vector for kellyTightGame n: w_0 = 1/4 and w_i = 1 / (4 n) for i ≠ 0.

Every positive-slope linear utility x ↦ a * x (0 < a) satisfies IsAdmissibleUtility.

theorem Cslib.GameTheory.KellyGame.derivWithin_linear {a x : ℝ} (hx : 0 ≤ x) :
derivWithin (fun (t : ℝ) => a * t) (Set.Ici 0) x = a

Right-sided derivative on [0, ∞) of a linear function t ↦ a * t at 0 ≤ x.

Exact equilibrium and efficiency analysis of kellyTightGame n for n ≥ 2: admissible linear utilities, unique Nash equilibrium kellyTightBid n, optimal welfare 1, and Nash welfare 3/4 + 1 / (4 (2 n - 1)).

theorem Cslib.GameTheory.KellyGame.exists_nash_welfare_lt_three_fourths_add {ε : ℝ} (hε : 0 < ε) :
∃ (n : ℕ) (G : KellyGame (Fin (n + 1))) (w : Fin (n + 1) → ℝ) (x : Fin (n + 1) → ℝ), 0 < G.capacity ∧ (∀ (i : Fin (n + 1)), IsAdmissibleUtility (G.utility i)) ∧ (∀ (i : Fin (n + 1)), 0 ≤ G.utility i 0) ∧ G.IsNashEquilibrium w ∧ G.IsSocialOptimum x ∧ 0 < G.welfare x ∧ G.welfare (G.allocation w) < (3 / 4 + ε) * G.welfare x

Tightness of the 3/4 efficiency bound ([JT04]; [Joh07], §21.2, Theorem 21.4): for every ε > 0, there exists a finite linear-utility Kelly game whose unique Nash equilibrium achieves strictly less than (3/4 + ε) times the optimal social welfare.

The n-user fixed-slope linear resource allocation game of [RT07], Example 17.6 (pp. 453–454): capacity 1, user 0 has utility U_0(x) = 2 * x, and all other n - 1 users have utility U_i(x) = x.

The unique Nash equilibrium bid vector for twoToOneLinearGame n (n ≥ 2): b_0 = 2 n (n - 1) / (2 n - 1)^2 and b_i = 2 (n - 1) / (2 n - 1)^2 for i ≠ 0 ([RT07], Example 17.6, pp. 453–454).

Exact equilibrium and efficiency analysis of Example 17.6 ([RT07], §17.2.4, pp. 453–454): for n ≥ 2 users with C = 1, U_0(x) = 2 x, and U_i(x) = x (i ≠ 0), the unique Nash equilibrium twoToOneLinearBid n allocates n / (2n - 1) to user 0 and 1 / (2n - 1) to each remaining user, attaining welfare (3n - 1) / (2n - 1) against optimal welfare 2 (efficiency ratio 3 / 4 + 1 / (4 (2n - 1)) → 3 / 4).