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:
Spending-constraint Fisher markets (
SpendingConstraintMarket, Exercise 5.3, p. 133): Each buyeri : Ihas budgetbudget i ≥ 0and, for each goodg : G, a finite list of budget segments (SpendingSegment, with marginal utility raterate ≥ 0per unit of goodgand maximum spendable budgetcap ≥ 0, representing a nonincreasing step rate functionr_{i g} : [0, e_i] → ℝ_+). At positive pricesp : G → ℝ, spendingson a segment yields utility(rate / p g) * s.- Exercise 5.3(a) (Optimal bundle algorithm):
optimalSpendingsorts buyeri's segments in decreasing order of bang-per-buckrate / p gand greedily allocatesbudget idown the list. We prove optimality (optimalSpending_spec) and the exact marginal bang-per-buck threshold characterization (isOptimalSpending_iff_exists_threshold). - Exercise 5.3(b)–(c) (Equilibrium test and allocation via max-flow): using each buyer's
unique optimal marginal bang-per-buck
marginalBangPerBuck, forced spending (rate / p g > α) is deducted from budgets and good revenues, and equality segments (rate / p g = α) populate the bipartite networkspendingFlowNetwork. We prove thatp > 0is an equilibrium price vector if and only if forced spending does not exceed good revenues, aggregate revenue equals aggregate budget, and the maximums–tflow inspendingFlowNetworksaturates all remaining budgets (exists_isEquilibrium_iff_isMaxRealFlow), and explicitly construct an equilibrium segment allocation from any maximum flow (allocationOfFlow_isEquilibrium).
- Exercise 5.3(a) (Optimal bundle algorithm):
Uniqueness of equilibrium prices (Exercise 5.4, p. 133):
price_eq_of_isEquilibriumproves 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 aSpendingConstraintMarketare unique.Fixed-point characterization of PLC Fisher equilibria (Exercise 5.5, pp. 133–134): A
PLCFisherMarketspecifies separable piecewise-linear concave utilities via quantity-capped segments (PLCSegment: marginal utilityrate ≥ 0, quantity capacityqtyCap ≥ 0). Given positive pricesp,PLCFisherMarket.toSpendingConstraint psets each segment's spending cap top g * qtyCap(corresponding toh_{i g}(y) = g_{i g}(y / p_g); note the printed typop_{ij}forp_jon p. 133). We proveisEquilibriumPrice_iff_spendingFixedPointandisEquilibriumPrice_iff_eq_spendingEquilibrium:pis an equilibrium price vector of the PLC market if and only ifpis a fixed point (p = p') of the spending-constraint equilibrium price map.
Main definitions #
Cslib.GameTheory.Market.SpendingSegment,Cslib.GameTheory.Market.SpendingConstraintMarket: spending-constraint Fisher market model.Cslib.GameTheory.Market.SpendingConstraintMarket.optimalSpending,Cslib.GameTheory.Market.SpendingConstraintMarket.marginalBangPerBuck: greedy optimal bundle algorithm and optimal marginal bang-per-buck threshold (Exercise 5.3(a)).Cslib.GameTheory.Market.SpendingConstraintMarket.SpendingFlowVertex,Cslib.GameTheory.Market.SpendingConstraintMarket.spendingFlowNetwork,Cslib.GameTheory.Market.SpendingConstraintMarket.allocationOfFlow: bipartite equality-segment flow network and flow-to-allocation map (Exercise 5.3(b)–(c)).Cslib.GameTheory.Market.PLCSegment,Cslib.GameTheory.Market.PLCFisherMarket,Cslib.GameTheory.Market.PLCFisherMarket.toSpendingConstraint: separable piecewise-linear concave Fisher market and its price-indexed spending-constraint market (Exercise 5.5).
Main results #
Cslib.GameTheory.Market.SpendingConstraintMarket.optimalSpending_spec,Cslib.GameTheory.Market.SpendingConstraintMarket.isOptimalSpending_iff_exists_threshold: correctness of the greedy optimal-bundle algorithm and threshold characterization (Exercise 5.3(a)).Cslib.GameTheory.Market.SpendingConstraintMarket.exists_isEquilibrium_iff_isMaxRealFlow,Cslib.GameTheory.Market.SpendingConstraintMarket.allocationOfFlow_isEquilibrium: max-flow characterization of equilibrium prices and allocation construction (Exercise 5.3(b)–(c)).Cslib.GameTheory.Market.SpendingConstraintMarket.price_eq_of_isEquilibrium: uniqueness of spending-constraint equilibrium prices (Exercise 5.4).Cslib.GameTheory.Market.PLCFisherMarket.isEquilibriumPrice_iff_spendingFixedPoint,Cslib.GameTheory.Market.PLCFisherMarket.isEquilibriumPrice_iff_eq_spendingEquilibrium: fixed-point characterization of PLC Fisher equilibrium prices (Exercise 5.5).
References #
Exercise 5.3: Spending-constraint Fisher markets #
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}).
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.
Spending capacity of segment seg for buyer i.
Bang-per-buck rate / p g of segment seg for buyer i at prices p.
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.
Utility obtained by buyer i from segment spending s at prices p.
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.
Total money spent by buyer i on good g under segment spending s.
Total positive-rate segment capacity available to buyer i.
Total segment capacity available to buyer i.
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).
Exercise 5.3(a): Threshold characterization and greedy optimal-bundle algorithm #
Threshold optimality condition: every segment strictly above α is saturated (s = cap),
every segment strictly below α receives 0, and if α > 0 the budget is exhausted.
Every threshold spending is optimal for buyer i at prices p.
List of all segments of buyer i sorted in nonincreasing order of bang-per-buck at prices
p.
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.
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).
Marginal bang-per-buck threshold α_i(p) ≥ 0 of buyer i at positive prices p, extracted
from the greedy optimal spending.
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).
- source {I : Type u_3} {G : Type u_4} : SpendingFlowVertex I G
- good {I : Type u_3} {G : Type u_4} (g : G) : SpendingFlowVertex I G
- buyer {I : Type u_3} {G : Type u_4} (i : I) : SpendingFlowVertex I G
- sink {I : Type u_3} {G : Type u_4} : SpendingFlowVertex I G
Instances For
Forced spending of buyer i on good g at prices p: total cap of segments with bang-per-buck
strictly exceeding marginalBangPerBuck p i.
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.
Remaining flexible budget of buyer i after deducting forced spending.
Remaining unsold revenue of good g after deducting all buyers' forced spending on g.
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.
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.
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 #
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 #
Segment index (g, k) for buyer i in PLC Fisher market M.
Marginal utility rate of PLC segment seg for buyer i.
Quantity capacity of PLC segment seg for buyer 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.
Total PLC utility derived by buyer i from segment quantity allocation x.
Segment quantity allocation x is optimal for buyer i at prices p.
Total quantity of good g allocated to buyer i across all segments of (i, 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).
Canonical bijection between segment indices of M and M.toSpendingConstraint 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.
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.