Documentation

CslibFrontier.GameTheory.Market.ConvexExchange

Convex feasibility programs for linear and CES exchange economies, and non-convexity for ρ < -1 #

Building on CslibFrontier.GameTheory.Market.Basic and CslibFrontier.GameTheory.Market.GrossSubstitutes, this module formalizes Sections 6.4 and 6.5.1 of [CV07] (pp. 149–151):

  1. Convex feasibility program for linear exchange economies (§6.4.1, p. 149; Nenakov–Primak 1983, Jain 2004): for a LinearExchangeMarket I G with marginal utilities a_{ij} ≥ 0 and endowments w_{ij} ≥ 0, the logarithmic-price feasibility constraints ∑_k a_{ik} x_{ik} ≥ a_{ij} ∑_k w_{ik} exp(ψ_k - ψ_j), ∑_i x_{ij} = ∑_i w_{ij}, x ≥ 0 (LinearExchangeMarket.IsConvexProgramFeasible) define a convex set in (ψ, x) (LinearExchangeMarket.convex_setOf_isConvexProgramFeasible) whose feasible pairs correspond bijectively to positive-price competitive equilibria (x, exp ∘ ψ) whenever every trader desires at least one good (LinearExchangeMarket.isConvexProgramFeasible_iff_isCompetitiveEquilibrium).
  2. CES utility properties, strict demand uniqueness (6.7), and Proposition 6.11 (§6.4.2, pp. 149–150):
  3. Multiple disconnected equilibria for ρ < -1 (§6.5.1, p. 151; Gjerstad 1996): in the 2-trader, 2-good CES exchange economy gjerstadMarket with endowments (1, 0), (0, 1) and utilities ((ax)^ρ + y^ρ)^{1/ρ}, ((x/a)^ρ + y^ρ)^{1/ρ}, (1/2, 1/2) is always a Walrasian equilibrium price, and for every ρ < -1 and every a > 0 with a^{-ρ/(1-ρ)} < (-ρ - 1)/(1 - ρ) there exists a unique p ∈ (0, 1/2) such that (p, 1 - p) and (1 - p, p) are Walrasian equilibria while (q, 1 - q) is not an equilibrium for any q ∈ (0, 1/2) \ {p} (gjerstadMarket_exists_disconnected_equilibria).

Main definitions #

Main results #

References #

§6.4.1 Convex feasibility program for linear exchange economies #

def Cslib.GameTheory.Market.LinearExchangeMarket.IsConvexProgramFeasible {I : Type u_1} {G : Type u_2} [Fintype I] [Fintype G] (E : LinearExchangeMarket I G) (ψ : G → ℝ) (x : I → G → ℝ) :

Feasibility constraints of the Nenakov–Primak–Jain convex program for a linear exchange economy ([CV07], Section 6.4.1, p. 149): logarithmic prices ψ : G → ℝ (representing π_g = exp (ψ g)) and nonnegative allocations x : I → G → ℝ clearing every good's aggregate supply and satisfying ∑_k a_{ik} x_{ik} ≥ a_{ij} ∑_k w_{ik} exp (ψ_k - ψ_j) for all i, j.

theorem Cslib.GameTheory.Market.LinearExchangeMarket.isConvexProgramFeasible_iff_isCompetitiveEquilibrium {I : Type u_1} {G : Type u_2} [Fintype I] [Fintype G] (E : LinearExchangeMarket I G) (hns : ∀ (i : I), ∃ (g : G), 0 < E.utility i g) (ψ : G → ℝ) (x : I → G → ℝ) :

Equivalence of the linear-exchange convex program with positive-price competitive equilibria ([CV07], Section 6.4.1, p. 149): when every trader desires at least one good, (ψ, x) satisfies E.IsConvexProgramFeasible ψ x if and only if (x, fun g => Real.exp (ψ g)) is a competitive equilibrium of E.

theorem Cslib.GameTheory.Market.LinearExchangeMarket.exists_isConvexProgramFeasible_of_isCompetitiveEquilibrium {I : Type u_1} {G : Type u_2} [Fintype I] [Fintype G] (E : LinearExchangeMarket I G) (hns : ∀ (i : I), ∃ (g : G), 0 < E.utility i g) (hgood : ∀ (g : G), ∃ (i : I), 0 < E.utility i g) {x : I → G → ℝ} {p : G → ℝ} (heq : E.IsCompetitiveEquilibrium x p) :
∃ (ψ : G → ℝ), (∀ (g : G), Real.exp (ψ g) = p g) ∧ E.IsConvexProgramFeasible ψ x

When every trader desires some good and every good is desired by some trader, every competitive equilibrium (x, p) of E has strictly positive prices and corresponds via ψ g = Real.log (p g) to a feasible solution of the linear-exchange convex program ([CV07], Section 6.4.1, p. 149).

Convexity of the linear-exchange feasibility set ([CV07], Section 6.4.1, p. 149): the set of pairs (ψ, x) satisfying E.IsConvexProgramFeasible ψ x is convex.

§6.4.2 CES utility homogeneity, concavity, strict demand uniqueness, and Proposition 6.11 #

theorem Cslib.GameTheory.Market.cesUtility_smul {G : Type u_1} [Fintype G] {α b : G → ℝ} {ρ c : ℝ} (hα : ∀ (g : G), 0 ≤ α g) (hρ : ρ ≠ 0) (hb : ∀ (g : G), 0 ≤ b g) (hc : 0 < c) :
cesUtility α ρ (c • b) = c * cesUtility α ρ b

Positive homogeneity of degree 1 for cesUtility α ρ on nonnegative bundles ([CV07], Section 6.1.5, p. 139).

theorem Cslib.GameTheory.Market.cesUtility_mono {G : Type u_1} [Fintype G] {α b₁ b₂ : G → ℝ} {ρ : ℝ} (hα : ∀ (g : G), 0 ≤ α g) (hρ : ρ ≠ 0) (hb₁ : ∀ (g : G), 0 ≤ b₁ g) (hle : ∀ (g : G), b₁ g ≤ b₂ g) :
cesUtility α ρ b₁ ≤ cesUtility α ρ b₂

Monotonicity of cesUtility α ρ on nonnegative bundles for α ≥ 0 and ρ ≠ 0.

theorem Cslib.GameTheory.Market.concaveOn_cesUtility {G : Type u_1} [Fintype G] {α : G → ℝ} {ρ : ℝ} (hα : ∀ (g : G), 0 < α g) (hρ_le : ρ ≤ 1) (hρ_ne : ρ ≠ 0) :
ConcaveOn ℝ {b : G → ℝ | ∀ (g : G), 0 ≤ b g} (cesUtility α ρ)

Concavity of CES utilities ([CV07], Section 6.1.5, p. 139 and Section 6.4.2, p. 150): for strictly positive weights α > 0 and any exponent ρ ≤ 1 with ρ ≠ 0, cesUtility α ρ is concave on {b : G → ℝ | ∀ g, 0 ≤ b g}.

theorem Cslib.GameTheory.Market.demandSet_cesUtility_eq {G : Type u_1} [Fintype G] [Nonempty G] {α p : G → ℝ} {ρ m : ℝ} (hα : ∀ (g : G), 0 < α g) (hρ_lt : ρ < 1) (hρ_ne : ρ ≠ 0) (hp : ∀ (g : G), 0 < p g) (hm : 0 ≤ m) :
demandSet (cesUtility α ρ) p m = {cesDemand α ρ p m}

Strict uniqueness of CES Marshallian demand (Equation (6.7)) ([CV07], Section 6.4.2, p. 149): for strictly positive weights α > 0, exponent ρ < 1 with ρ ≠ 0, strictly positive prices p > 0, and budget m ≥ 0, cesDemand α ρ p m is the unique optimal bundle in demandSet (cesUtility α ρ) p m.

noncomputable def Cslib.GameTheory.Market.cesTransformedDemand {G : Type u_1} [Fintype G] (α w : G → ℝ) (ρ_i : ℝ) (σ : G → ℝ) (g : G) :

Transformed CES demand f_{ij}(σ) = σ_j * x_{ij}(σ^2) under the change of variables σ_k = π_k^{1 / (1 - ρ)} = √(π_k) (ρ = -1) of [CV07], Section 6.4.2, pp. 149–150.

theorem Cslib.GameTheory.Market.cesTransformedDemand_apply {G : Type u_1} [Fintype G] (α w : G → ℝ) (ρ_i : ℝ) (σ : G → ℝ) (g : G) :
cesTransformedDemand α w ρ_i σ g = σ g * cesDemand α ρ_i (fun (k : G) => σ k ^ 2) (expenditure (fun (k : G) => σ k ^ 2) w) g
theorem Cslib.GameTheory.Market.convexOn_cesTransformedDemand {G : Type u_1} [Fintype G] [Nonempty G] {α w : G → ℝ} {ρ_i : ℝ} (hα : ∀ (k : G), 0 < α k) (hw : ∀ (k : G), 0 ≤ w k) (hρ_lo : -1 ≤ ρ_i) (hρ_hi : ρ_i < 0) (g : G) :
ConvexOn ℝ {σ : G → ℝ | ∀ (k : G), 0 < σ k} fun (σ : G → ℝ) => cesTransformedDemand α w ρ_i σ g

Proposition 6.11 ([CV07], Section 6.4.2, Equations (6.8)–(6.9), p. 150): for strictly positive CES weights α > 0, nonnegative endowment w ≥ 0, and CES exponent -1 ≤ ρ_i < 0, the transformed demand σ ↦ cesTransformedDemand α w ρ_i σ g (σ_k = √(π_k)) is a convex function on the positive orthant {σ : G → ℝ | ∀ k, 0 < σ k}.

CES Arrow–Debreu exchange markets and convex feasibility for -1 ≤ ρ_i < 0 #

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

A CES Arrow–Debreu exchange economy ([CV07], Section 6.4.2, p. 149): each trader i : I has nonnegative endowment endowment i, strictly positive CES weights weight i, and substitution parameter rho i < 1 with rho i ≠ 0.

  • endowment : I → G → ℝ

    Initial endowment endowment i g of good g held by trader i.

  • weight : I → G → ℝ

    CES utility weights weight i g > 0.

  • rho : I → ℝ

    CES substitution parameter rho i ∈ (-∞, 1) \ {0} of trader i.

  • endowment_nonneg (i : I) (g : G) : 0 ≤ self.endowment i g

    Initial endowments are nonnegative.

  • weight_pos (i : I) (g : G) : 0 < self.weight i g

    CES utility weights are strictly positive.

  • rho_lt_one (i : I) : self.rho i < 1

    Each trader's CES parameter satisfies rho i < 1.

  • rho_ne_zero (i : I) : self.rho i ≠ 0

    Each trader's CES parameter is nonzero.

View E as a general ExchangeMarket I G with cesUtility (E.weight i) (E.rho i).

noncomputable def Cslib.GameTheory.Market.CESExchangeMarket.excessDemandFn {I : Type u_1} {G : Type u_2} [Fintype I] [Fintype G] (E : CESExchangeMarket I G) (p : G → ℝ) (g : G) :

Single-valued aggregate excess-demand function Z(p)_g = ∑_i x_{ig}(p) - ∑_i w_{ig} of CES exchange economy E via Equation (6.7) ([CV07], Section 6.4.2, p. 149).

theorem Cslib.GameTheory.Market.CESExchangeMarket.excessDemandFn_eq {I : Type u_1} {G : Type u_2} [Fintype I] [Fintype G] (E : CESExchangeMarket I G) (p : G → ℝ) (g : G) :
E.excessDemandFn p g = ∑ i : I, cesDemand (E.weight i) (E.rho i) p (expenditure p (E.endowment i)) g - E.toExchangeMarket.totalSupply g
theorem Cslib.GameTheory.Market.CESExchangeMarket.isCompetitiveEquilibrium_iff_isWalrasianEquilibrium {I : Type u_1} {G : Type u_2} [Fintype I] [Fintype G] (E : CESExchangeMarket I G) [Nonempty G] {x : I → G → ℝ} {p : G → ℝ} (hp : ∀ (g : G), 0 < p g) :

Because CES demand (6.7) is unique, a positive price vector p > 0 and allocation x form a competitive equilibrium of E.toExchangeMarket if and only if x equals the closed-form CES demand profile and IsWalrasianEquilibrium E.excessDemandFn p.

Transformed equilibrium price set {σ ∈ ℝ_{++}^G | ∀ g, ∑_i f_{ig}(σ) ≤ σ_g ∑_i w_{ig}} under σ_g = √(π_g) ([CV07], Section 6.4.2, pp. 149–150).

theorem Cslib.GameTheory.Market.CESExchangeMarket.isWalrasianEquilibrium_sq_iff {I : Type u_1} {G : Type u_2} [Fintype I] [Fintype G] (E : CESExchangeMarket I G) {σ : G → ℝ} (hσ : ∀ (g : G), 0 < σ g) :

Equivalence between σ ∈ E.transformedEquilibriumSet and IsWalrasianEquilibrium E.excessDemandFn (fun k => (σ k) ^ 2) ([CV07], Section 6.4.2, p. 149).

theorem Cslib.GameTheory.Market.CESExchangeMarket.convex_setOf_transformedEquilibrium {I : Type u_1} {G : Type u_2} [Fintype I] [Fintype G] (E : CESExchangeMarket I G) [Nonempty G] (hρ_lo : ∀ (i : I), -1 ≤ E.rho i) (hρ_hi : ∀ (i : I), E.rho i < 0) :

Convex feasibility characterization of CES exchange equilibria for -1 ≤ ρ_i < 0 ([CV07], Section 6.4.2, Proposition 6.11 corollary, pp. 149–150): when every trader's CES parameter lies in [-1, 0), the transformed equilibrium price set E.transformedEquilibriumSet is convex (and hence preconnected).

§6.5.1 Multiple disconnected equilibria for ρ < -1 (Gjerstad's example) #

noncomputable def Cslib.GameTheory.Market.gjerstadMarket (ρ a : ℝ) (hρ1 : ρ < 1) (hρ0 : ρ ≠ 0) (ha : 0 < a) :

Gjerstad's 2-trader, 2-good CES exchange economy ([CV07], Section 6.5.1, p. 151): trader 0 holds endowment (1, 0) and utility ((a x)^ρ + y^ρ)^{1/ρ} (weights ![a^ρ, 1]), while trader 1 holds endowment (0, 1) and utility ((x / a)^ρ + y^ρ)^{1/ρ} (weights ![a^{-ρ}, 1]).

@[simp]
theorem Cslib.GameTheory.Market.gjerstadMarket_endowment (ρ a : ℝ) (hρ1 : ρ < 1) (hρ0 : ρ ≠ 0) (ha : 0 < a) :
(gjerstadMarket ρ a hρ1 hρ0 ha).endowment = ![![1, 0], ![0, 1]]
@[simp]
theorem Cslib.GameTheory.Market.gjerstadMarket_weight (ρ a : ℝ) (hρ1 : ρ < 1) (hρ0 : ρ ≠ 0) (ha : 0 < a) :
(gjerstadMarket ρ a hρ1 hρ0 ha).weight = ![![a ^ ρ, 1], ![a ^ (-ρ), 1]]
@[simp]
theorem Cslib.GameTheory.Market.gjerstadMarket_rho (ρ a : ℝ) (hρ1 : ρ < 1) (hρ0 : ρ ≠ 0) (ha : 0 < a) (i : Fin 2) :
(gjerstadMarket ρ a hρ1 hρ0 ha).rho i = ρ
theorem Cslib.GameTheory.Market.gjerstadMarket_isWalrasianEquilibrium_half {ρ a : ℝ} (hρ1 : ρ < 1) (hρ0 : ρ ≠ 0) (ha : 0 < a) :

Part (i) of §6.5.1 ([CV07], p. 151): for every ρ < 1 (ρ ≠ 0) and a > 0, ![1/2, 1/2] is a Walrasian equilibrium price of gjerstadMarket ρ a.

theorem Cslib.GameTheory.Market.gjerstadMarket_exists_disconnected_equilibria {ρ a : ℝ} (hρ : ρ < -1) (ha : 0 < a) (ha_small : a ^ (-ρ / (1 - ρ)) < (-ρ - 1) / (1 - ρ)) :
have hρ1 := ⋯; have hρ0 := ⋯; have E := gjerstadMarket ρ a hρ1 hρ0 ha; IsWalrasianEquilibrium E.excessDemandFn ![1 / 2, 1 / 2] ∧ ∃ (p : ℝ), 0 < p ∧ p < 1 / 2 ∧ IsWalrasianEquilibrium E.excessDemandFn ![p, 1 - p] ∧ IsWalrasianEquilibrium E.excessDemandFn ![1 - p, p] ∧ ∀ (q : ℝ), 0 < q → q < 1 / 2 → q ≠ p → ¬IsWalrasianEquilibrium E.excessDemandFn ![q, 1 - q]

NRTV §6.5.1 — Multiple disconnected equilibria for ρ < -1 ([CV07], Section 6.5.1, p. 151; Gjerstad 1996): for every ρ < -1 and every a > 0 satisfying a ^ (-ρ / (1 - ρ)) < (-ρ - 1) / (1 - ρ):

  1. ![1/2, 1/2] is a Walrasian equilibrium price of gjerstadMarket ρ a;
  2. there exists a unique p ∈ (0, 1/2) such that ![p, 1 - p] (and symmetrically ![1 - p, p]) is a Walrasian equilibrium price;
  3. for every q with p < q < 1/2 (indeed every q ∈ (0, 1/2) \ {p}), ![q, 1 - q] is not a Walrasian equilibrium price.