Documentation

CslibFrontier.GameTheory.Market.EisenbergGale

Linear Fisher markets and the Eisenberg–Gale convex program #

In Fisher's linear market model ([EG59]; [Vaz07], Section 5.2, pp. 105–107), each buyer i : I arrives with money budget budget i ≥ 0 and additive linear utility buyerUtility x i = ∑ g, utility i g * x i g over divisible goods g : G of supply supply g ≥ 0 (LinearFisherMarket.unitSupply specializes to unit supply supply g = 1).

Eisenberg and Gale [EG59] proved that the market equilibria of a non-degenerate linear Fisher market are captured by maximizing the budget-weighted logarithmic Nash social welfare (eisenbergGaleObjective, Program (5.1) of [Vaz07], Section 5.2, p. 105):

max ∑ i, budget i * log (∑ g, utility i g * x i g) subject to ∑ i, x i g ≤ supply g and x ≥ 0.

This module establishes the three-way equivalence between linear Fisher market equilibria, the Karush–Kuhn–Tucker / maximum bang-per-buck conditions (IsEisenbergGaleKKT and bangPerBuck), and global maximizers of eisenbergGaleObjective ([Vaz07], Section 5.2, pp. 105–107; KKT conditions (i)–(iv) on p. 106), together with existence of equilibrium, convexity of the equilibrium allocation set, and uniqueness of equilibrium utilities and prices ([Vaz07], Theorem 5.1, p. 107).

Main definitions #

Main results #

References #

structure Cslib.GameTheory.Market.LinearFisherMarket (I : Type u_1) (G : Type u_2) :
Type (max u_1 u_2)

A linear Fisher market ([EG59]; [Vaz07], Section 5.2, p. 105): each buyer i : I has nonnegative money budget budget i and nonnegative marginal utilities utility i : G → ℝ over divisible goods g : G of supply supply g ≥ 0.

  • budget : I → ℝ

    Money budget budget i available to buyer i.

  • supply : G → ℝ

    Available supply supply g of divisible good g.

  • utility : I → G → ℝ

    Marginal utility utility i g obtained by buyer i per unit of good g.

  • budget_nonneg (i : I) : 0 ≤ self.budget i

    Buyer budgets are nonnegative.

  • supply_nonneg (g : G) : 0 ≤ self.supply g

    Good supplies are nonnegative.

  • utility_nonneg (i : I) (g : G) : 0 ≤ self.utility i g

    Marginal utilities are nonnegative.

def Cslib.GameTheory.Market.LinearFisherMarket.unitSupply {I : Type u_1} {G : Type u_2} (budget : I → ℝ) (utility : I → G → ℝ) (budget_nonneg : ∀ (i : I), 0 ≤ budget i) (utility_nonneg : ∀ (i : I) (g : G), 0 ≤ utility i g) :

Construct a linear Fisher market with unit supply (supply g = 1) of every good, the normalization used throughout [Vaz07], Section 5.2, Program (5.1), p. 105.

@[simp]
theorem Cslib.GameTheory.Market.LinearFisherMarket.unitSupply_budget {I : Type u_1} {G : Type u_2} (budget : I → ℝ) (utility : I → G → ℝ) (hb : ∀ (i : I), 0 ≤ budget i) (hu : ∀ (i : I) (g : G), 0 ≤ utility i g) :
(unitSupply budget utility hb hu).budget = budget
@[simp]
theorem Cslib.GameTheory.Market.LinearFisherMarket.unitSupply_supply {I : Type u_1} {G : Type u_2} (budget : I → ℝ) (utility : I → G → ℝ) (hb : ∀ (i : I), 0 ≤ budget i) (hu : ∀ (i : I) (g : G), 0 ≤ utility i g) (g : G) :
(unitSupply budget utility hb hu).supply g = 1
@[simp]
theorem Cslib.GameTheory.Market.LinearFisherMarket.unitSupply_utility {I : Type u_1} {G : Type u_2} (budget : I → ℝ) (utility : I → G → ℝ) (hb : ∀ (i : I), 0 ≤ budget i) (hu : ∀ (i : I) (g : G), 0 ≤ utility i g) :
(unitSupply budget utility hb hu).utility = utility

View a LinearFisherMarket as a general FisherMarket with linearUtility [Fintype G].

Embed a linear Fisher market into a LinearExchangeMarket by giving buyer i fraction budget i / totalBudget of every good's supply ([CV07], Section 6.1.7, p. 140).

def Cslib.GameTheory.Market.LinearFisherMarket.buyerUtility {I : Type u_1} {G : Type u_2} [Fintype G] (M : LinearFisherMarket I G) (x : I → G → ℝ) (i : I) :

Buyer i's additive linear utility ∑ g, utility i g * x i g under allocation x.

theorem Cslib.GameTheory.Market.LinearFisherMarket.buyerUtility_eq {I : Type u_1} {G : Type u_2} [Fintype G] (M : LinearFisherMarket I G) (x : I → G → ℝ) (i : I) :
noncomputable def Cslib.GameTheory.Market.LinearFisherMarket.bangPerBuck {I : Type u_1} {G : Type u_2} (M : LinearFisherMarket I G) (p : G → ℝ) (i : I) (g : G) :

Buyer i's bang-per-buck (marginal utility per unit money) utility i g / p g on good g at price vector p ([Vaz07], Section 5.2, p. 106).

theorem Cslib.GameTheory.Market.LinearFisherMarket.bangPerBuck_eq {I : Type u_1} {G : Type u_2} (M : LinearFisherMarket I G) (p : G → ℝ) (i : I) (g : G) :
M.bangPerBuck p i g = M.utility i g / p g
def Cslib.GameTheory.Market.LinearFisherMarket.IsEquilibrium {I : Type u_1} {G : Type u_2} [Fintype I] [Fintype G] (M : LinearFisherMarket I G) (x : I → G → ℝ) (p : G → ℝ) :

Market equilibrium (x, p) of linear Fisher market M.

Pareto optimality of allocation x in linear Fisher market M.

Standard non-degeneracy conditions for Fisher's linear market model ([Vaz07], Section 5.2, Theorem 5.1, pp. 105–107): positive buyer budgets, positive good supplies, every buyer desires at least one good, and every good has at least one interested buyer. Note that [Vaz07], Section 5.2 writes "if each good has a potential buyer" (good_desired) explicitly while leaving budget_pos, supply_pos, and buyer_nonsatiated implicit.

  • budget_pos (i : I) : 0 < M.budget i

    Every buyer has a strictly positive budget.

  • supply_pos (g : G) : 0 < M.supply g

    Every good has strictly positive supply.

  • buyer_nonsatiated (i : I) : ∃ (g : G), 0 < M.utility i g

    Every buyer has strictly positive marginal utility for at least one good.

  • good_desired (g : G) : ∃ (i : I), 0 < M.utility i g

    Every good has strictly positive marginal utility for at least one buyer.

noncomputable def Cslib.GameTheory.Market.LinearFisherMarket.eisenbergGaleObjective {I : Type u_1} {G : Type u_2} [Fintype I] [Fintype G] (M : LinearFisherMarket I G) (x : I → G → ℝ) :

The Eisenberg–Gale objective ∑ i, budget i * log (buyerUtility x i) ([EG59]; [Vaz07], Section 5.2, Program (5.1), p. 105).

A feasible allocation giving every buyer strictly positive utility, forming the effective domain of the logarithmic Eisenberg–Gale objective (5.1).

structure Cslib.GameTheory.Market.LinearFisherMarket.IsEisenbergGaleKKT {I : Type u_1} {G : Type u_2} [Fintype I] [Fintype G] (M : LinearFisherMarket I G) (x : I → G → ℝ) (p : G → ℝ) :

Karush–Kuhn–Tucker optimality conditions for the Eisenberg–Gale convex program (5.1) ([Vaz07], Section 5.2, p. 106, conditions (i)–(iv)) with primal allocation x and dual supply multipliers (prices) p.

noncomputable def Cslib.GameTheory.Market.LinearFisherMarket.eisenbergGaleDualPrice {I : Type u_1} {G : Type u_2} [Fintype I] [Fintype G] (M : LinearFisherMarket I G) (x : I → G → ℝ) (g : G) :

Explicit Eisenberg–Gale dual price of good g induced by a positive-utility allocation x: max_i (budget i * utility i g / buyerUtility x i) (0 when I is empty).

theorem Cslib.GameTheory.Market.LinearFisherMarket.eisenbergGaleDualPrice_of_nonempty {I : Type u_1} {G : Type u_2} [Fintype I] [Fintype G] [Nonempty I] (M : LinearFisherMarket I G) (x : I → G → ℝ) (g : G) :
M.eisenbergGaleDualPrice x g = Finset.univ.sup' ⋯ fun (i : I) => M.budget i * M.utility i g / M.buyerUtility x i

Logarithm helper inequalities #

KKT, bang-per-buck, and equilibrium equivalence #

theorem Cslib.GameTheory.Market.LinearFisherMarket.IsEquilibrium.isParetoOptimal {I : Type u_1} {G : Type u_2} [Fintype I] [Fintype G] {M : LinearFisherMarket I G} {x : I → G → ℝ} {p : G → ℝ} (heq : M.IsEquilibrium x p) (hns : ∀ (i : I), ∃ (g : G), 0 < M.utility i g) :

Every linear Fisher market equilibrium in which each buyer desires at least one good is Pareto optimal.

theorem Cslib.GameTheory.Market.LinearFisherMarket.IsEquilibrium.price_pos {I : Type u_1} {G : Type u_2} [Fintype I] [Fintype G] {M : LinearFisherMarket I G} {x : I → G → ℝ} {p : G → ℝ} (heq : M.IsEquilibrium x p) (hgood : ∀ (g : G), ∃ (i : I), 0 < M.utility i g) (g : G) :
0 < p g

In any equilibrium of a linear Fisher market where every good is desired by some buyer, every good has a strictly positive price.

theorem Cslib.GameTheory.Market.LinearFisherMarket.isEquilibrium_iff_bangPerBuck {I : Type u_1} {G : Type u_2} [Fintype I] [Fintype G] {M : LinearFisherMarket I G} {x : I → G → ℝ} {p : G → ℝ} (hbuyer : ∀ (i : I), ∃ (g : G), 0 < M.utility i g) (hgood : ∀ (g : G), ∃ (i : I), 0 < M.utility i g) :
M.IsEquilibrium x p ↔ (∀ (g : G), 0 < p g) ∧ (∀ (i : I) (g : G), 0 ≤ x i g) ∧ (∀ (g : G), ∑ i : I, x i g = M.supply g) ∧ (∀ (i : I), expenditure p (x i) = M.budget i) ∧ ∀ (i : I) (g : G), 0 < x i g → ∀ (g' : G), M.bangPerBuck p i g' ≤ M.bangPerBuck p i g

Bang-per-buck characterization of linear Fisher equilibrium ([Vaz07], Section 5.2, pp. 105–106): when every buyer desires some good and every good is desired by some buyer, (x, p) is a market equilibrium if and only if prices are strictly positive, bundles are nonnegative, every good's supply is completely sold, every buyer spends their entire budget, and buyers purchase only goods maximizing bangPerBuck p i g = utility i g / p g.

theorem Cslib.GameTheory.Market.LinearFisherMarket.IsEisenbergGaleKKT.expenditure_eq_budget {I : Type u_1} {G : Type u_2} [Fintype I] [Fintype G] {M : LinearFisherMarket I G} {x : I → G → ℝ} {p : G → ℝ} (hkkt : M.IsEisenbergGaleKKT x p) (i : I) :
expenditure p (x i) = M.budget i

In any Eisenberg–Gale KKT solution (x, p), each buyer i spends exactly M.budget i and the aggregate market value of supplies equals total buyer budgets.

theorem Cslib.GameTheory.Market.LinearFisherMarket.IsEisenbergGaleKKT.isEquilibrium {I : Type u_1} {G : Type u_2} [Fintype I] [Fintype G] {M : LinearFisherMarket I G} {x : I → G → ℝ} {p : G → ℝ} (hkkt : M.IsEisenbergGaleKKT x p) (hbudget : ∀ (i : I), 0 < M.budget i) :

KKT sufficiency for market equilibrium ([Vaz07], Section 5.2, p. 106): when every buyer has a positive budget, any pair (x, p) satisfying the Eisenberg–Gale KKT conditions is a linear Fisher market equilibrium.

theorem Cslib.GameTheory.Market.LinearFisherMarket.IsEquilibrium.isEisenbergGaleKKT {I : Type u_1} {G : Type u_2} [Fintype I] [Fintype G] {M : LinearFisherMarket I G} {x : I → G → ℝ} {p : G → ℝ} (heq : M.IsEquilibrium x p) (hbudget : ∀ (i : I), 0 < M.budget i) (hbuyer : ∀ (i : I), ∃ (g : G), 0 < M.utility i g) (hgood : ∀ (g : G), ∃ (i : I), 0 < M.utility i g) :

KKT necessity for market equilibrium ([Vaz07], Section 5.2, p. 106): when budgets are positive, every buyer desires some good, and every good is desired by some buyer, every linear Fisher market equilibrium (x, p) satisfies the Eisenberg–Gale KKT conditions.

Eisenberg–Gale KKT equivalence ([Vaz07], Section 5.2, p. 106, conditions (i)–(iv)): under M.IsNonDegenerate (in fact without needing supply_pos), (x, p) is a linear Fisher market equilibrium if and only if (x, p) satisfies M.IsEisenbergGaleKKT x p.

Global optimality, uniqueness, convexity, and existence #

Global optimality of KKT allocations ([EG59]; [Vaz07], Section 5.2, Program (5.1), p. 105): any allocation x admitting an Eisenberg–Gale KKT multiplier p globally maximizes M.eisenbergGaleObjective over all positive-utility feasible allocations y.

Any positive-utility feasible allocation y attaining at least the Eisenberg–Gale objective value of a KKT allocation x (when budgets are positive) induces the exact same buyer utilities M.buyerUtility y = M.buyerUtility x.

theorem Cslib.GameTheory.Market.LinearFisherMarket.buyerUtility_eq_of_isEquilibrium {I : Type u_1} {G : Type u_2} [Fintype I] [Fintype G] {M : LinearFisherMarket I G} (hnd : M.IsNonDegenerate) {x y : I → G → ℝ} {p q : G → ℝ} (hx : M.IsEquilibrium x p) (hy : M.IsEquilibrium y q) :

Uniqueness of equilibrium buyer utilities ([Vaz07], Theorem 5.1, p. 107): in a non-degenerate linear Fisher market, any two market equilibria yield identical buyer utility profiles (M.buyerUtility x = M.buyerUtility y).

theorem Cslib.GameTheory.Market.LinearFisherMarket.price_eq_of_isEquilibrium {I : Type u_1} {G : Type u_2} [Fintype I] [Fintype G] {M : LinearFisherMarket I G} (hnd : M.IsNonDegenerate) {x y : I → G → ℝ} {p q : G → ℝ} (hx : M.IsEquilibrium x p) (hy : M.IsEquilibrium y q) :
p = q

Uniqueness of equilibrium prices ([Vaz07], Theorem 5.1, p. 107): in a non-degenerate linear Fisher market, equilibrium prices are uniquely determined (p = q).

Convexity of equilibrium allocations ([Vaz07], Theorem 5.1, p. 107): in a non-degenerate linear Fisher market, the set of equilibrium allocations {x | ∃ p, M.IsEquilibrium x p} is convex.

Primal optimality implies Eisenberg–Gale KKT ([EG59]; [Vaz07], Section 5.2, p. 106): in a non-degenerate linear Fisher market, any maximizer x of M.eisenbergGaleObjective on {y | M.IsPositiveUtilityAllocation y} pairs with the explicit price vector M.eisenbergGaleDualPrice x to satisfy M.IsEisenbergGaleKKT.

Eisenberg–Gale primal optimality equivalence ([EG59]; [Vaz07], Section 5.2, Program (5.1), pp. 105–107): in a non-degenerate linear Fisher market, an allocation x participates in a market equilibrium (x, p) if and only if x is a positive-utility feasible allocation maximizing M.eisenbergGaleObjective over {y | M.IsPositiveUtilityAllocation y}.

theorem Cslib.GameTheory.Market.LinearFisherMarket.IsNonDegenerate.exists_isEquilibrium {I : Type u_1} {G : Type u_2} [Fintype I] [Fintype G] {M : LinearFisherMarket I G} (hnd : M.IsNonDegenerate) :
∃ (x : I → G → ℝ) (p : G → ℝ), M.IsEquilibrium x p

Existence of linear Fisher market equilibrium ([EG59]; [Vaz07], Theorem 5.1, p. 107): every non-degenerate linear Fisher market admits a market equilibrium (x, p).

Linear Fisher-to-Arrow–Debreu reduction ([CV07], Section 6.1.7) #

Under M.IsNonDegenerate with [Nonempty I], (x, p) is a linear Fisher equilibrium of M if and only if expenditure p M.supply = M.toFisherMarket.totalBudget and (x, p) is a competitive equilibrium of M.toLinearExchangeMarket ([CV07], Section 6.1.7, p. 140).

Rescaling recovery ([CV07], Section 6.1.7, p. 140): in a non-degenerate linear Fisher market with [Nonempty I], any competitive equilibrium (x, p) of M.toLinearExchangeMarket rescales directly to a linear Fisher market equilibrium of M.