Documentation

CslibFrontier.GameTheory.Market.EllipsoidWGS

Continuous Walrasian tâtonnement and the ellipsoid method for WGS exchange economies #

Building on CslibFrontier.GameTheory.Market.GrossSubstitutes, CslibFrontier.GameTheory.Market.Tatonnement, and CslibFrontier.Algorithms.Ellipsoid.Basic, this module formalizes two remaining algorithmic and dynamical results from [CV07]:

  1. Continuous Walrasian tâtonnement ODE and WGS Lyapunov stability (Section 6.1.2, Equation (6.1), pp. 137–138; Section 6.3.1, pp. 143–144): a price trajectory p : ℝ → G → ℝ satisfies continuous tâtonnement on s : Set ℝ (IsContinuousTatonnementOn) with adjustment speeds Gfn : G → ℝ → ℝ when HasDerivAt (fun τ => p τ g) (Gfn g (Z (p t) g)) t for every t ∈ s and g. For positive linear speeds Gfn g z = α g * z (α g > 0), the weighted squared Euclidean distance tatonnementLyapunov α pHat p = (1/2) ∑ g, (p g - pHat g)^2 / α g to any positive Walrasian equilibrium pHat has exact derivative - expenditure pHat (Z (p t)) (hasDerivAt_tatonnementLyapunov), which under degree-0 homogeneity, Walras's law, and weak gross substitutability (Lemma 6.4) is nonpositive everywhere and strictly negative at every non-equilibrium price (tatonnementLyapunov_antitone, tatonnementLyapunov_strictAnti_of_not_isWalrasianEquilibrium).
  2. Ellipsoid method for WGS exchange markets (Section 6.7, p. 156; Codenotti, McCune, and Varadarajan 2005): pairing the quantitative separating hyperplane of Lemma 6.7 (expenditure_phantomExcessDemand_ge_delta) and the ℓ_2 norm bound of Lemma 6.8 (sum_sq_phantomExcessDemand_le) with the central-cut ellipsoid method (Cslib.Algorithms.Ellipsoid.run) reduces the iteration dependence on accuracy from poly(|G|, 1 / ε) (projected discrete tâtonnement, Theorems 6.9–6.10) to O(|G|^2 log(|G| / ε)) exact-arithmetic ellipsoid iterations: around any regularized equilibrium pStar ∈ Δ, the Euclidean ball of radius r = min(δ / (2 L), ε η / (20 |G|)) (wgsEllipsoidRadius) is strictly separated from every non-approximate-equilibrium query p ∈ Δ⁺ by - Z p and from every p ∉ Δ⁺ by a violated box-constraint normal (wgsEllipsoidOracle, which queries only the regularized excess demand Z and returns none solely when Z p = 0), so Cslib.Algorithms.Ellipsoid.exists_center_mem_of_inner_ball_subset certifies that some iterate k ≤ N hits a weak (1 + ε)-approximate equilibrium for any N > 2 |G| (|G| + 1) log (√|G| / r) (exists_ellipsoid_isWeakApproxEquilibrium_phantom, exists_ellipsoid_weakApproxEquilibrium_of_wgs_oracle, and the direct Cobb–Douglas instantiation CobbDouglasExchangeMarket.exists_ellipsoid_weakApproxEquilibrium). As in CslibFrontier.Algorithms.Ellipsoid.Basic, ellipsoid arithmetic is exact over ℝ; finite-precision rounding and bit complexity are outside this module.

Main definitions #

Main results #

References #

Continuous Walrasian tâtonnement ODE (§6.1.2, Eq. (6.1)) and WGS Lyapunov decay #

def Cslib.GameTheory.Market.IsContinuousTatonnementOn {G : Type u_1} (Z : (G → ℝ) → G → ℝ) (Gfn : G → ℝ → ℝ) (s : Set ℝ) (p : ℝ → G → ℝ) :

Continuous Walrasian tâtonnement ODE (Equation (6.1)) on s : Set ℝ ([CV07], Section 6.1.2, pp. 137–138): price trajectory p : ℝ → G → ℝ satisfies d(p_g)/dt = Gfn g (Z (p t) g) for every t ∈ s and good g.

noncomputable def Cslib.GameTheory.Market.tatonnementLyapunov {G : Type u_1} [Fintype G] (α pHat p : G → ℝ) :

Weighted squared Euclidean Lyapunov potential (1/2) ∑ g, (p g - pHat g)^2 / α g relative to equilibrium pHat and speed weights α.

theorem Cslib.GameTheory.Market.hasDerivAt_tatonnementLyapunov {G : Type u_1} [Fintype G] {Z : (G → ℝ) → G → ℝ} {α pHat : G → ℝ} {s : Set ℝ} {p : ℝ → G → ℝ} (hode : IsContinuousTatonnementOn Z (fun (g : G) (z : ℝ) => α g * z) s p) (hα : ∀ (g : G), 0 < α g) (hW : SatisfiesWalrasLaw Z) {t : ℝ} (ht : t ∈ s) (hp : ∀ (g : G), 0 < p t g) :
HasDerivAt (fun (τ : ℝ) => tatonnementLyapunov α pHat (p τ)) (-expenditure pHat (Z (p t))) t

Exact Lyapunov time-derivative along continuous linear tâtonnement ([CV07], Section 6.1.2, Eq. (6.1), p. 137; Section 6.3.1, p. 143): for positive speeds α g > 0 and Walras's law hW, d/dt V(p(t)) = - expenditure pHat (Z (p t)).

theorem Cslib.GameTheory.Market.tatonnementLyapunov_antitone {G : Type u_1} [Fintype G] {Z : (G → ℝ) → G → ℝ} {α pHat : G → ℝ} {p : ℝ → G → ℝ} (hH : IsHomogeneousDegZero Z) (hW : SatisfiesWalrasLaw Z) (hWGS : IsWeakGrossSubstitutes Z) (heq : IsWalrasianEquilibrium Z pHat) {a b : ℝ} (hab : a ≤ b) (hode : IsContinuousTatonnementOn Z (fun (g : G) (z : ℝ) => α g * z) (Set.Icc a b) p) (hα : ∀ (g : G), 0 < α g) (hp : ∀ t ∈ Set.Icc a b, ∀ (g : G), 0 < p t g) :
tatonnementLyapunov α pHat (p b) ≤ tatonnementLyapunov α pHat (p a)

Lyapunov monotonicity under WGS continuous tâtonnement ([CV07], Section 6.3.1, pp. 143–144): along any positive trajectory of dπ_g/dt = α_g Z_g(π) on [a, b] in a WGS economy, tatonnementLyapunov α pHat (p b) ≤ tatonnementLyapunov α pHat (p a).

theorem Cslib.GameTheory.Market.tatonnementLyapunov_strictAnti_of_not_isWalrasianEquilibrium {G : Type u_1} [Fintype G] {Z : (G → ℝ) → G → ℝ} {α pHat : G → ℝ} {p : ℝ → G → ℝ} (hH : IsHomogeneousDegZero Z) (hW : SatisfiesWalrasLaw Z) (hWGS : IsWeakGrossSubstitutes Z) (heq : IsWalrasianEquilibrium Z pHat) {a b : ℝ} (hab : a < b) (hode : IsContinuousTatonnementOn Z (fun (g : G) (z : ℝ) => α g * z) (Set.Icc a b) p) (hα : ∀ (g : G), 0 < α g) (hp : ∀ t ∈ Set.Icc a b, ∀ (g : G), 0 < p t g) (hnot : ∀ t ∈ Set.Ioo a b, ¬IsWalrasianEquilibrium Z (p t)) :
tatonnementLyapunov α pHat (p b) < tatonnementLyapunov α pHat (p a)

Strict Lyapunov decay away from equilibrium under WGS continuous tâtonnement ([CV07], Section 6.3.1, pp. 143–144): if a < b and the positive trajectory p does not visit an equilibrium on (a, b), then tatonnementLyapunov α pHat (p b) < tatonnementLyapunov α pHat (p a).

Ellipsoid method for WGS exchange economies (§6.7, p. 156) #

noncomputable def Cslib.GameTheory.Market.wgsEllipsoidRadius (n : ℕ) (ε η : ℝ) :

Inner-ball radius r = min (δ / (2 L), ε η / (20 |G|)) around a regularized equilibrium pStar ∈ Δ used in the ellipsoid method for WGS economies ([CV07], Section 6.7, p. 156).

theorem Cslib.GameTheory.Market.wgsEllipsoidRadius_pos {n : ℕ} (hn : 0 < n) {ε η : ℝ} (hε : 0 < ε) (hη : 0 < η) :
theorem Cslib.GameTheory.Market.wgsEllipsoidRadius_ge {n : ℕ} (hn : 0 < n) {ε η : ℝ} (hε0 : 0 < ε) (hε1 : ε ≤ 1) (hη0 : 0 < η) (hη1 : η ≤ 1) :
ε ^ 2 * η ^ 3 / (3456 * ↑n ^ 6) ≤ wgsEllipsoidRadius n ε η

Explicit polynomial lower bound ε^2 η^3 / (3456 n^6) ≤ wgsEllipsoidRadius n ε η for 1 ≤ n, 0 < ε ≤ 1, and 0 < η ≤ 1, certifying log (R / r) = O(log (n / (ε η))).

noncomputable def Cslib.GameTheory.Market.wgsEllipsoidOracle {G : Type u_2} [Fintype G] [DecidableEq G] (Z' : (G → ℝ) → G → ℝ) (η : ℝ) (p : G → ℝ) :
Option (G → ℝ)

Pure excess-demand separation oracle for the WGS ellipsoid method ([CV07], Section 6.7, p. 156): returns a violated box-constraint normal outside Δ⁺ = tatonnementOuterBox G η; inside Δ⁺, queries only the regularized excess-demand map phantomExcessDemand Z' η p, returning none when it vanishes and returning the excess-demand cut - phantomExcessDemand Z' η p otherwise.

theorem Cslib.GameTheory.Market.exists_ellipsoid_isWeakApproxEquilibrium_phantom {I : Type u_1} {G : Type u_2} [Fintype I] [Fintype G] [DecidableEq G] [Nonempty G] {E : ExchangeMarket I G} (hray : ∀ (i : I), IsRayConcave (E.utility i)) (hu_nn : ∀ (i : I) (b : G → ℝ), (∀ (g : G), 0 ≤ b g) → 0 ≤ E.utility i b) {d : I → (G → ℝ) → G → ℝ} (hd : ∀ ⦃q : G → ℝ⦄, (∀ (g : G), 0 < q g) → ∀ (i : I), d i q ∈ E.demandSet q i) {Z' : (G → ℝ) → G → ℝ} (hZ'_eq : ∀ ⦃q : G → ℝ⦄, (∀ (g : G), 0 < q g) → ∀ (g : G), Z' q g = ∑ i : I, d i q g - E.totalSupply g) (hsup : ∀ (g : G), E.totalSupply g = 1) (hH' : IsHomogeneousDegZero Z') (hW' : SatisfiesWalrasLaw Z') (hWGS' : IsWeakGrossSubstitutes Z') (hcont' : ContinuousOn Z' {q : G → ℝ | ∀ (g : G), 0 < q g}) {η ε : ℝ} (hη0 : 0 < η) (hη1 : η ≤ 1) (hε0 : 0 < ε) (hε1 : ε ≤ 1) {N : ℕ} (hN : 2 * ↑(Fintype.card G) * (↑(Fintype.card G) + 1) * Real.log (√↑(Fintype.card G) / wgsEllipsoidRadius (Fintype.card G) ε η) < ↑N) :
have R := √↑(Fintype.card G); have c₀ := fun (x : G) => 1 / 2; ∃ k ≤ N, have pk := (Algorithms.Ellipsoid.run (wgsEllipsoidOracle Z' η) (R ^ 2 • 1) c₀ k).center; pk ∈ tatonnementOuterBox G η ∧ (E.withPhantomTrader η ⋯).IsWeakApproxEquilibrium (1 + ε) pk

Ellipsoid method on the regularized WGS market M̂ ([CV07], Section 6.7, p. 156): for a unit-supply WGS exchange economy E with continuous Marshallian demands, 0 < η ≤ 1, 0 < ε ≤ 1, initial center c₀ = fun _ => 1 / 2, initial radius R = √|G|, and inner radius r = wgsEllipsoidRadius |G| ε η, for any N > 2 |G| (|G| + 1) log (R / r) some exact-arithmetic ellipsoid iterate k ≤ N under the pure excess-demand oracle wgsEllipsoidOracle Z' η lies in Δ⁺ and is a weak (1 + ε)-approximate equilibrium of E.withPhantomTrader η hη0.le.

theorem Cslib.GameTheory.Market.exists_ellipsoid_weakApproxEquilibrium_of_wgs_oracle {I : Type u_1} {G : Type u_2} [Fintype I] [Fintype G] [DecidableEq G] [Nonempty G] {E : ExchangeMarket I G} (hW : ∀ (g : G), 0 < E.totalSupply g) (hray : ∀ (i : I), IsRayConcave (E.utility i)) (hu_nn : ∀ (i : I) (b : G → ℝ), (∀ (g : G), 0 ≤ b g) → 0 ≤ E.utility i b) {d : I → (G → ℝ) → G → ℝ} (hd : ∀ ⦃q : G → ℝ⦄, (∀ (g : G), 0 < q g) → ∀ (i : I), d i q ∈ E.demandSet q i) {Z : (G → ℝ) → G → ℝ} (hZ_eq : ∀ ⦃q : G → ℝ⦄, (∀ (g : G), 0 < q g) → ∀ (g : G), Z q g = ∑ i : I, d i q g - E.totalSupply g) (hH : IsHomogeneousDegZero Z) (hWalras : SatisfiesWalrasLaw Z) (hWGS : IsWeakGrossSubstitutes Z) (hcont : ContinuousOn Z {q : G → ℝ | ∀ (g : G), 0 < q g}) {ε : ℝ} (hε0 : 0 < ε) (hε1 : ε ≤ 1) {N : ℕ} (hN : 2 * ↑(Fintype.card G) * (↑(Fintype.card G) + 1) * Real.log (√↑(Fintype.card G) / wgsEllipsoidRadius (Fintype.card G) (ε / 3) (ε / 3)) < ↑N) :
have Z' := fun (p : G → ℝ) (g : G) => Z (fun (l : G) => p l / E.totalSupply l) g / E.totalSupply g; have η := ε / 3; have R := √↑(Fintype.card G); ∃ k ≤ N, have pk := (Algorithms.Ellipsoid.run (wgsEllipsoidOracle Z' η) (R ^ 2 • 1) (fun (x : G) => 1 / 2) k).center; E.IsWeakApproxEquilibrium (1 + ε) fun (g : G) => pk g / E.totalSupply g

End-to-end O(|G|^2 log(|G| / ε)) ellipsoid computation of weak (1 + ε)-approximate equilibria for WGS exchange markets ([CV07], Section 6.7, p. 156): for any positively supplied WGS exchange economy E with continuous Marshallian demands and 0 < ε ≤ 1, rescaling by total supplies (Lemma 6.5) and regularizing with η = ε / 3 (Lemma 6.6), for any N > 2 |G| (|G| + 1) log (√|G| / r) (r = wgsEllipsoidRadius |G| (ε / 3) (ε / 3)), some iterate k ≤ N of Ellipsoid.run with the pure excess-demand oracle wgsEllipsoidOracle Z' η un-rescales to a weak (1 + ε)-approximate equilibrium of E.

theorem Cslib.GameTheory.Market.CobbDouglasExchangeMarket.exists_ellipsoid_weakApproxEquilibrium {I : Type u_1} {G : Type u_2} [Fintype I] [Fintype G] [DecidableEq G] [Nonempty G] (E : CobbDouglasExchangeMarket I G) (hW : ∀ (g : G), 0 < E.toExchangeMarket.totalSupply g) {ε : ℝ} (hε0 : 0 < ε) (hε1 : ε ≤ 1) {N : ℕ} (hN : 2 * ↑(Fintype.card G) * (↑(Fintype.card G) + 1) * Real.log (√↑(Fintype.card G) / wgsEllipsoidRadius (Fintype.card G) (ε / 3) (ε / 3)) < ↑N) :
have W := E.toExchangeMarket.totalSupply; have Z' := fun (p : G → ℝ) (g : G) => E.excessDemandFn (fun (l : G) => p l / W l) g / W g; have η := ε / 3; have R := √↑(Fintype.card G); ∃ k ≤ N, have pk := (Algorithms.Ellipsoid.run (wgsEllipsoidOracle Z' η) (R ^ 2 • 1) (fun (x : G) => 1 / 2) k).center; E.toExchangeMarket.IsWeakApproxEquilibrium (1 + ε) fun (g : G) => pk g / W g

Direct instantiation of the O(|G|^2 log(|G| / ε)) ellipsoid solver for any positively supplied CobbDouglasExchangeMarket ([CV07], Section 6.7, p. 156).