Documentation

CslibFrontier.GameTheory.Market.SpendingConstraint

Spending-constraint utilities and piecewise-linear concave Fisher markets #

This module formalizes Exercises 5.3, 5.4, and 5.5 of [Vaz07] (Chapter 5, pp. 133–134) on spending-constraint utility functions in Fisher's market model and their fixed-point relation to separable piecewise-linear concave (PLC) Fisher markets:

  1. Spending-constraint Fisher markets (SpendingConstraintMarket, Exercise 5.3, p. 133): Each buyer i : I has budget budget i ≥ 0 and, for each good g : G, a finite list of budget segments (SpendingSegment, with marginal utility rate rate ≥ 0 per unit of good g and maximum spendable budget cap ≥ 0, representing a nonincreasing step rate function r_{i g} : [0, e_i] → ℝ_+). At positive prices p : G → ℝ, spending s on a segment yields utility (rate / p g) * s.

  2. Uniqueness of equilibrium prices (Exercise 5.4, p. 133): price_eq_of_isEquilibrium proves that whenever every good has positive supply and every buyer's budget can be absorbed by positive-rate segments (budget i ≤ ∑_{rate > 0} cap), equilibrium prices of a SpendingConstraintMarket are unique.

  3. Fixed-point characterization of PLC Fisher equilibria (Exercise 5.5, pp. 133–134): A PLCFisherMarket specifies separable piecewise-linear concave utilities via quantity-capped segments (PLCSegment: marginal utility rate ≥ 0, quantity capacity qtyCap ≥ 0). Given positive prices p, PLCFisherMarket.toSpendingConstraint p sets each segment's spending cap to p g * qtyCap (corresponding to h_{i g}(y) = g_{i g}(y / p_g); note the printed typo p_{ij} for p_j on p. 133). We prove isEquilibriumPrice_iff_spendingFixedPoint and isEquilibriumPrice_iff_eq_spendingEquilibrium: p is an equilibrium price vector of the PLC market if and only if p is a fixed point (p = p') of the spending-constraint equilibrium price map.

Main definitions #

Main results #

References #

Exercise 5.3: Spending-constraint Fisher markets #

A constant-rate budget segment of a spending-constraint utility function ([Vaz07], Exercise 5.3, p. 133): spending up to cap dollars on this segment yields utility at rate rate per unit of good received (i.e., rate / p_g utility per dollar spent at price p_g).

  • rate : ℝ

    Marginal utility derived per unit of good received on this segment.

  • cap : ℝ

    Maximum budget spendable on this segment.

  • rate_nonneg : 0 ≤ self.rate

    Marginal utility rate is nonnegative.

  • cap_nonneg : 0 ≤ self.cap

    Spending capacity is nonnegative.

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

A spending-constraint Fisher market ([Vaz07], Exercise 5.3, p. 133): buyers I have budgets budget i ≥ 0, goods G have supplies supply g ≥ 0, and each pair (i, g) has a finite list of budget segments segments i g (representing a decreasing step rate function r_{i g}).

  • budget : I → ℝ

    Exogenous money budget budget i of buyer i.

  • supply : G → ℝ

    Available supply supply g of good g.

  • segments : I → G → List SpendingSegment

    Budget segments of buyer i for 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.

@[reducible, inline]

A segment index (g, k) for buyer i: good g paired with a valid index k into M.segments i g.

The SpendingSegment at index seg for buyer i.

Utility rate of segment seg for buyer i.

theorem Cslib.GameTheory.Market.SpendingConstraintMarket.segRate_eq {I : Type u_1} {G : Type u_2} (M : SpendingConstraintMarket I G) (i : I) (seg : M.Seg i) :
M.segRate i seg = (M.segments i seg.fst)[seg.snd].rate

Spending capacity of segment seg for buyer i.

theorem Cslib.GameTheory.Market.SpendingConstraintMarket.segCap_eq {I : Type u_1} {G : Type u_2} (M : SpendingConstraintMarket I G) (i : I) (seg : M.Seg i) :
M.segCap i seg = (M.segments i seg.fst)[seg.snd].cap
theorem Cslib.GameTheory.Market.SpendingConstraintMarket.segCap_nonneg {I : Type u_1} {G : Type u_2} (M : SpendingConstraintMarket I G) (i : I) (seg : M.Seg i) :
0 ≤ M.segCap i seg
noncomputable def Cslib.GameTheory.Market.SpendingConstraintMarket.segBpb {I : Type u_1} {G : Type u_2} (M : SpendingConstraintMarket I G) (p : G → ℝ) (i : I) (seg : M.Seg i) :

Bang-per-buck rate / p g of segment seg for buyer i at prices p.

theorem Cslib.GameTheory.Market.SpendingConstraintMarket.segBpb_eq {I : Type u_1} {G : Type u_2} (M : SpendingConstraintMarket I G) (p : G → ℝ) (i : I) (seg : M.Seg i) :
M.segBpb p i seg = M.segRate i seg / p seg.fst
theorem Cslib.GameTheory.Market.SpendingConstraintMarket.segBpb_nonneg {I : Type u_1} {G : Type u_2} (M : SpendingConstraintMarket I G) {p : G → ℝ} (hp : ∀ (g : G), 0 ≤ p g) (i : I) (seg : M.Seg i) :
0 ≤ M.segBpb p i seg

A segment spending vector s : M.Seg i → ℝ is budget-feasible for buyer i if every segment's spending lies in [0, segCap] and total spending is at most M.budget i.

noncomputable def Cslib.GameTheory.Market.SpendingConstraintMarket.spendingUtility {I : Type u_1} {G : Type u_2} (M : SpendingConstraintMarket I G) [Fintype G] (p : G → ℝ) (i : I) (s : M.Seg i → ℝ) :

Utility obtained by buyer i from segment spending s at prices p.

def Cslib.GameTheory.Market.SpendingConstraintMarket.IsOptimalSpending {I : Type u_1} {G : Type u_2} (M : SpendingConstraintMarket I G) [Fintype G] (p : G → ℝ) (i : I) (s : M.Seg i → ℝ) :

Segment spending s is optimal for buyer i at prices p if it is budget-feasible and maximizes spendingUtility p i over all budget-feasible segment spendings.

def Cslib.GameTheory.Market.SpendingConstraintMarket.goodSpend {I : Type u_1} {G : Type u_2} (M : SpendingConstraintMarket I G) (i : I) (s : M.Seg i → ℝ) (g : G) :

Total money spent by buyer i on good g under segment spending s.

theorem Cslib.GameTheory.Market.SpendingConstraintMarket.goodSpend_eq {I : Type u_1} {G : Type u_2} (M : SpendingConstraintMarket I G) (i : I) (s : M.Seg i → ℝ) (g : G) :
M.goodSpend i s g = ∑ k : Fin (M.segments i g).length, s ⟨g, k⟩
theorem Cslib.GameTheory.Market.SpendingConstraintMarket.sum_goodSpend_eq_sum {I : Type u_1} {G : Type u_2} (M : SpendingConstraintMarket I G) [Fintype G] (i : I) (s : M.Seg i → ℝ) :
∑ g : G, M.goodSpend i s g = ∑ seg : M.Seg i, s seg

Total positive-rate segment capacity available to buyer i.

theorem Cslib.GameTheory.Market.SpendingConstraintMarket.posRateCapSum_eq {I : Type u_1} {G : Type u_2} (M : SpendingConstraintMarket I G) [Fintype G] (i : I) :
M.posRateCapSum i = ∑ seg : M.Seg i, if 0 < M.segRate i seg then M.segCap i seg else 0

Total segment capacity available to buyer i.

def Cslib.GameTheory.Market.SpendingConstraintMarket.IsEquilibrium {I : Type u_1} {G : Type u_2} (M : SpendingConstraintMarket I G) [Fintype G] [Fintype I] (s : (i : I) → M.Seg i → ℝ) (p : G → ℝ) :

A spending-constraint market equilibrium ([Vaz07], Exercise 5.3, p. 133): strictly positive prices p and segment spendings s i for every buyer i such that each buyer chooses an optimal segment spending, every buyer exhausts her budget, and total spending on every good g equals p g * M.supply g (so total allocated quantity (∑ i, goodSpend i (s i) g) / p g equals M.supply g).

theorem Cslib.GameTheory.Market.SpendingConstraintMarket.IsEquilibrium.sum_price_mul_supply {I : Type u_1} {G : Type u_2} [Fintype G] [Fintype I] {M : SpendingConstraintMarket I G} {s : (i : I) → M.Seg i → ℝ} {p : G → ℝ} (heq : M.IsEquilibrium s p) :
∑ g : G, p g * M.supply g = ∑ i : I, M.budget i

Exercise 5.3(a): Threshold characterization and greedy optimal-bundle algorithm #

def Cslib.GameTheory.Market.SpendingConstraintMarket.IsThresholdSpending {I : Type u_1} {G : Type u_2} (M : SpendingConstraintMarket I G) [Fintype G] (p : G → ℝ) (i : I) (α : ℝ) (s : M.Seg i → ℝ) :

Threshold optimality condition: every segment strictly above α is saturated (s = cap), every segment strictly below α receives 0, and if α > 0 the budget is exhausted.

theorem Cslib.GameTheory.Market.SpendingConstraintMarket.IsThresholdSpending.isOptimalSpending {I : Type u_1} {G : Type u_2} [Fintype G] {M : SpendingConstraintMarket I G} {p : G → ℝ} {i : I} {α : ℝ} {s : M.Seg i → ℝ} (ht : M.IsThresholdSpending p i α s) :

Every threshold spending is optimal for buyer i at prices p.

noncomputable def Cslib.GameTheory.Market.SpendingConstraintMarket.sortedSegments {I : Type u_1} {G : Type u_2} (M : SpendingConstraintMarket I G) [Fintype G] (p : G → ℝ) (i : I) :
List (M.Seg i)

List of all segments of buyer i sorted in nonincreasing order of bang-per-buck at prices p.

noncomputable def Cslib.GameTheory.Market.SpendingConstraintMarket.optimalSpending {I : Type u_1} {G : Type u_2} (M : SpendingConstraintMarket I G) [Fintype G] (p : G → ℝ) (i : I) :
M.Seg i → ℝ

Exercise 5.3(a) greedy optimal-bundle algorithm ([Vaz07], p. 133): sort buyer i's segments in decreasing order of bang-per-buck rate / p g and greedily allocate M.budget i.

theorem Cslib.GameTheory.Market.SpendingConstraintMarket.optimalSpending_spec {I : Type u_1} {G : Type u_2} (M : SpendingConstraintMarket I G) [Fintype G] {p : G → ℝ} (hp : ∀ (g : G), 0 < p g) (i : I) :
(∃ (α : ℝ), M.IsThresholdSpending p i α (M.optimalSpending p i)) ∧ M.IsOptimalSpending p i (M.optimalSpending p i) ∧ ∑ seg : M.Seg i, M.optimalSpending p i seg = min (M.budget i) (M.totalCapSum i)

Exercise 5.3(a) correctness ([Vaz07], p. 133): at any positive prices p, optimalSpending p i satisfies the threshold optimality condition for some α ≥ 0 and is an optimal segment spending for buyer i (exhausting M.budget i whenever M.budget i ≤ M.totalCapSum i).

noncomputable def Cslib.GameTheory.Market.SpendingConstraintMarket.marginalBangPerBuck {I : Type u_1} {G : Type u_2} (M : SpendingConstraintMarket I G) [Fintype G] (p : G → ℝ) (i : I) :

Marginal bang-per-buck threshold α_i(p) ≥ 0 of buyer i at positive prices p, extracted from the greedy optimal spending.

theorem Cslib.GameTheory.Market.SpendingConstraintMarket.isOptimalSpending_iff_exists_threshold {I : Type u_1} {G : Type u_2} (M : SpendingConstraintMarket I G) [Fintype G] {p : G → ℝ} (hp : ∀ (g : G), 0 < p g) {i : I} {s : M.Seg i → ℝ} :
M.IsOptimalSpending p i s ↔ ∃ (α : ℝ), M.IsThresholdSpending p i α s

Threshold characterization of optimal spending (Exercise 5.3(a)): at positive prices p, a segment spending s is optimal for buyer i if and only if it satisfies IsThresholdSpending for some α ≥ 0.

Exercise 5.3(b)–(c): Max-flow equilibrium test and allocation construction #

Vertices of the spending-constraint equality network N(p) ([Vaz07], Exercise 5.3(b)–(c), p. 133).

Instances For
    noncomputable def Cslib.GameTheory.Market.SpendingConstraintMarket.forcedSpend {I : Type u_1} {G : Type u_2} (M : SpendingConstraintMarket I G) [Fintype G] (p : G → ℝ) (i : I) (g : G) :

    Forced spending of buyer i on good g at prices p: total cap of segments with bang-per-buck strictly exceeding marginalBangPerBuck p i.

    noncomputable def Cslib.GameTheory.Market.SpendingConstraintMarket.equalityCap {I : Type u_1} {G : Type u_2} (M : SpendingConstraintMarket I G) [Fintype G] (p : G → ℝ) (i : I) (g : G) :

    Equality-segment capacity between good g and buyer i at prices p: total cap of segments with bang-per-buck equal to marginalBangPerBuck p i.

    noncomputable def Cslib.GameTheory.Market.SpendingConstraintMarket.remBudget {I : Type u_1} {G : Type u_2} (M : SpendingConstraintMarket I G) [Fintype G] (p : G → ℝ) (i : I) :

    Remaining flexible budget of buyer i after deducting forced spending.

    noncomputable def Cslib.GameTheory.Market.SpendingConstraintMarket.remGoodRevenue {I : Type u_1} {G : Type u_2} (M : SpendingConstraintMarket I G) [Fintype G] [Fintype I] (p : G → ℝ) (g : G) :

    Remaining unsold revenue of good g after deducting all buyers' forced spending on g.

    theorem Cslib.GameTheory.Market.SpendingConstraintMarket.forcedSpend_nonneg {I : Type u_1} {G : Type u_2} (M : SpendingConstraintMarket I G) [Fintype G] (p : G → ℝ) (i : I) (g : G) :
    0 ≤ M.forcedSpend p i g
    theorem Cslib.GameTheory.Market.SpendingConstraintMarket.equalityCap_nonneg {I : Type u_1} {G : Type u_2} (M : SpendingConstraintMarket I G) [Fintype G] (p : G → ℝ) (i : I) (g : G) :
    0 ≤ M.equalityCap p i g
    theorem Cslib.GameTheory.Market.SpendingConstraintMarket.remBudget_nonneg {I : Type u_1} {G : Type u_2} (M : SpendingConstraintMarket I G) [Fintype G] {p : G → ℝ} (hp : ∀ (g : G), 0 < p g) (i : I) :
    0 ≤ M.remBudget p i

    Bipartite flow network N(p) of Exercise 5.3(b)–(c) ([Vaz07], p. 133): (source, good g) carries capacity remGoodRevenue p g, (good g, buyer i) carries capacity equalityCap p i g, and (buyer i, sink) carries capacity remBudget p i.

    noncomputable def Cslib.GameTheory.Market.SpendingConstraintMarket.allocationOfFlow {I : Type u_1} {G : Type u_2} (M : SpendingConstraintMarket I G) [Fintype G] (p : G → ℝ) (f : SpendingFlowVertex I G × SpendingFlowVertex I G → ℝ) (i : I) (seg : M.Seg i) :

    Construct a concrete segment spending allocation from a feasible flow f in spendingFlowNetwork p by filling forced segments completely, zeroing sub-threshold segments, and distributing f (.good g, .buyer i) proportionally across equality segments of (i, g).

    Exercise 5.3(c) allocation soundness ([Vaz07], p. 133): if p > 0, forced spending does not exceed any good's revenue, total market value equals total budget, and f is a feasible flow in spendingFlowNetwork p of value ∑ i, remBudget p i, then allocationOfFlow p f is an exact spending-constraint market equilibrium at prices p.

    theorem Cslib.GameTheory.Market.SpendingConstraintMarket.exists_isEquilibrium_iff_isMaxRealFlow {I : Type u_1} {G : Type u_2} (M : SpendingConstraintMarket I G) [Fintype G] [Fintype I] {p : G → ℝ} (hp : ∀ (g : G), 0 < p g) :
    (∃ (s : (i : I) → M.Seg i → ℝ), M.IsEquilibrium s p) ↔ (∀ (g : G), 0 ≤ M.remGoodRevenue p g) ∧ ∑ g : G, p g * M.supply g = ∑ i : I, M.budget i ∧ Algorithms.Lean.MaxFlow.IsMaxRealFlow (M.spendingFlowNetwork p) SpendingFlowVertex.source SpendingFlowVertex.sink (∑ i : I, M.remBudget p i)

    Exercise 5.3(b)–(c) max-flow equilibrium characterization ([Vaz07], p. 133): positive prices p are equilibrium prices of spending-constraint market M if and only if (1) forced spending does not exceed any good's revenue (0 ≤ remGoodRevenue p g), (2) aggregate good revenue equals aggregate buyer budget, and (3) the maximum source–sink flow in spendingFlowNetwork p equals ∑ i, remBudget p i.

    Exercise 5.4: Uniqueness of equilibrium prices for spending-constraint markets #

    theorem Cslib.GameTheory.Market.SpendingConstraintMarket.price_eq_of_isEquilibrium {I : Type u_1} {G : Type u_2} [Fintype G] [Fintype I] {M : SpendingConstraintMarket I G} (hsup : ∀ (g : G), 0 < M.supply g) (hcap : ∀ (i : I), M.budget i ≤ M.posRateCapSum i) {s₁ s₂ : (i : I) → M.Seg i → ℝ} {p₁ p₂ : G → ℝ} (heq₁ : M.IsEquilibrium s₁ p₁) (heq₂ : M.IsEquilibrium s₂ p₂) :
    p₁ = p₂

    Exercise 5.4 ([Vaz07], Chapter 5, p. 133): in a spending-constraint Fisher market where every good has positive supply (0 < M.supply g) and every buyer has enough positive-rate segment capacity to exhaust her budget (M.budget i ≤ M.posRateCapSum i), equilibrium prices are unique.

    Exercise 5.5: Piecewise-linear concave (PLC) Fisher markets and fixed points #

    A constant-slope quantity segment of a separable piecewise-linear concave utility function ([Vaz07], Exercise 5.5, pp. 133–134): receiving up to qtyCap units of good g on this segment yields marginal utility rate per unit received.

    • rate : ℝ

      Marginal utility derived per unit of good received on this segment.

    • qtyCap : ℝ

      Maximum quantity of good usable on this segment.

    • rate_nonneg : 0 ≤ self.rate

      Marginal utility rate is nonnegative.

    • qtyCap_nonneg : 0 ≤ self.qtyCap

      Quantity capacity is nonnegative.

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

    A separable piecewise-linear concave (PLC) Fisher market ([Vaz07], Exercise 5.5, pp. 133–134): each buyer i has budget budget i ≥ 0 and, for each good g, a finite list of quantity-capped linear utility segments segments i g (the derivative steps g_{i g} of f_{i g}).

    • budget : I → ℝ

      Exogenous money budget budget i of buyer i.

    • supply : G → ℝ

      Available supply supply g of good g.

    • segments : I → G → List PLCSegment

      Quantity-capped utility segments of buyer i for 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.

    @[reducible, inline]
    abbrev Cslib.GameTheory.Market.PLCFisherMarket.Seg {I : Type u_1} {G : Type u_2} (M : PLCFisherMarket I G) (i : I) :
    Type u_2

    Segment index (g, k) for buyer i in PLC Fisher market M.

    def Cslib.GameTheory.Market.PLCFisherMarket.segRate {I : Type u_1} {G : Type u_2} (M : PLCFisherMarket I G) (i : I) (seg : M.Seg i) :

    Marginal utility rate of PLC segment seg for buyer i.

    theorem Cslib.GameTheory.Market.PLCFisherMarket.segRate_eq {I : Type u_1} {G : Type u_2} (M : PLCFisherMarket I G) (i : I) (seg : M.Seg i) :
    M.segRate i seg = (M.segments i seg.fst)[seg.snd].rate
    def Cslib.GameTheory.Market.PLCFisherMarket.segQtyCap {I : Type u_1} {G : Type u_2} (M : PLCFisherMarket I G) (i : I) (seg : M.Seg i) :

    Quantity capacity of PLC segment seg for buyer i.

    theorem Cslib.GameTheory.Market.PLCFisherMarket.segQtyCap_eq {I : Type u_1} {G : Type u_2} (M : PLCFisherMarket I G) (i : I) (seg : M.Seg i) :
    M.segQtyCap i seg = (M.segments i seg.fst)[seg.snd].qtyCap
    theorem Cslib.GameTheory.Market.PLCFisherMarket.segRate_nonneg {I : Type u_1} {G : Type u_2} (M : PLCFisherMarket I G) (i : I) (seg : M.Seg i) :
    0 ≤ M.segRate i seg
    theorem Cslib.GameTheory.Market.PLCFisherMarket.segQtyCap_nonneg {I : Type u_1} {G : Type u_2} (M : PLCFisherMarket I G) (i : I) (seg : M.Seg i) :
    0 ≤ M.segQtyCap i seg
    def Cslib.GameTheory.Market.PLCFisherMarket.IsFeasibleBundle {I : Type u_1} {G : Type u_2} (M : PLCFisherMarket I G) [Fintype G] (p : G → ℝ) (i : I) (x : M.Seg i → ℝ) :

    A segment quantity allocation x : M.Seg i → ℝ is budget-feasible at prices p if every segment's quantity lies in [0, segQtyCap] and total expenditure is at most M.budget i.

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

    Total PLC utility derived by buyer i from segment quantity allocation x.

    theorem Cslib.GameTheory.Market.PLCFisherMarket.bundleUtility_eq {I : Type u_1} {G : Type u_2} (M : PLCFisherMarket I G) [Fintype G] (i : I) (x : M.Seg i → ℝ) :
    M.bundleUtility i x = ∑ seg : M.Seg i, M.segRate i seg * x seg
    def Cslib.GameTheory.Market.PLCFisherMarket.IsOptimalBundle {I : Type u_1} {G : Type u_2} (M : PLCFisherMarket I G) [Fintype G] (p : G → ℝ) (i : I) (x : M.Seg i → ℝ) :

    Segment quantity allocation x is optimal for buyer i at prices p.

    def Cslib.GameTheory.Market.PLCFisherMarket.goodQty {I : Type u_1} {G : Type u_2} (M : PLCFisherMarket I G) (i : I) (x : M.Seg i → ℝ) (g : G) :

    Total quantity of good g allocated to buyer i across all segments of (i, g).

    theorem Cslib.GameTheory.Market.PLCFisherMarket.goodQty_eq {I : Type u_1} {G : Type u_2} (M : PLCFisherMarket I G) (i : I) (x : M.Seg i → ℝ) (g : G) :
    M.goodQty i x g = ∑ k : Fin (M.segments i g).length, x ⟨g, k⟩
    def Cslib.GameTheory.Market.PLCFisherMarket.IsEquilibrium {I : Type u_1} {G : Type u_2} (M : PLCFisherMarket I G) [Fintype G] [Fintype I] (x : (i : I) → M.Seg i → ℝ) (p : G → ℝ) :

    A PLC Fisher market equilibrium ([Vaz07], Exercise 5.5, pp. 133–134): positive prices p and segment quantity allocations x i such that each buyer chooses an optimal bundle, each buyer exhausts her budget, and aggregate consumption of every good equals M.supply g.

    Induced spending-constraint market H(p) ([Vaz07], Exercise 5.5, p. 133): given nonnegative prices p (via max 0 (p g)), convert each quantity-capped segment (rate, qtyCap) for good g into a spending-capped segment (rate, max 0 (p g) * qtyCap), formalizing h_{i g}(y) = g_{i g}(y / p_g).

    def Cslib.GameTheory.Market.PLCFisherMarket.segEquiv {I : Type u_1} {G : Type u_2} (M : PLCFisherMarket I G) (p : G → ℝ) (i : I) :

    Canonical bijection between segment indices of M and M.toSpendingConstraint p.

    theorem Cslib.GameTheory.Market.PLCFisherMarket.isEquilibriumPrice_iff_spendingFixedPoint {I : Type u_1} {G : Type u_2} (M : PLCFisherMarket I G) [Fintype G] [Fintype I] {p : G → ℝ} (hp : ∀ (g : G), 0 < p g) :
    (∃ (x : (i : I) → M.Seg i → ℝ), M.IsEquilibrium x p) ↔ ∃ (s : (i : I) → (M.toSpendingConstraint p).Seg i → ℝ), (M.toSpendingConstraint p).IsEquilibrium s p

    Exercise 5.5 (fixed-point equivalence) ([Vaz07], Chapter 5, pp. 133–134): positive prices p are equilibrium prices of the piecewise-linear concave Fisher market M if and only if p are equilibrium prices of the induced spending-constraint market M.toSpendingConstraint p.

    theorem Cslib.GameTheory.Market.PLCFisherMarket.isEquilibriumPrice_iff_eq_spendingEquilibrium {I : Type u_1} {G : Type u_2} (M : PLCFisherMarket I G) [Fintype G] [Fintype I] {p p' : G → ℝ} (hp : ∀ (g : G), 0 < p g) (hsup : ∀ (g : G), 0 < M.supply g) (hcap : ∀ (i : I), M.budget i ≤ (M.toSpendingConstraint p).posRateCapSum i) {s' : (i : I) → (M.toSpendingConstraint p).Seg i → ℝ} (heq' : (M.toSpendingConstraint p).IsEquilibrium s' p') :
    p = p' ↔ ∃ (x : (i : I) → M.Seg i → ℝ), M.IsEquilibrium x p

    Exercise 5.5 combined with Exercise 5.4 ([Vaz07], Chapter 5, pp. 133–134): if p' is an equilibrium price vector of the spending-constraint market M.toSpendingConstraint p (whose equilibrium prices are unique under positive supply and sufficient positive-rate capacity), then p = p' if and only if p is an equilibrium price vector of the PLC Fisher market M.