Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§4 — any optimal solution of the LP with positive prices gives equilibrium prices

Proved
PLCMarkets.Rationality.isEquilibrium_of_lpOptimal

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

linear-programmingmarket-equilibriump2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let MMM be a Fisher market with additively separable piecewise-linear concave utilities, and let p′p'p′ be equilibrium prices with pj′>0p'_j>0pj′​>0 for every good and ∑jpj′=∑ie(i)\sum_jp'_j=\sum_ie(i)∑j​pj′​=∑i​e(i). Let (p,f)(p,f)(p,f) be an optimal solution of the linear program of Section 4 built from p′p'p′ (see RationalityLP) whose prices are all positive, pj>0p_j>0pj​>0. Then

p  are equilibrium prices of M.p\ \text{ are equilibrium prices of } M.p  are equilibrium prices of M.

This is the step of the proof of Theorem 4.1 that turns an optimal vertex of a rational LP into rational equilibrium prices.

Formalization Note. The paper claims this for any optimal solution. Positivity of the solution's prices is added: at a zero price the bang-per-buck constraints no longer order the buyers' segments, and Section 3, on which the argument rests, is stated only for nonzero prices. Positivity of p′p'p′ and ∑jpj′=∑ie(i)\sum_jp'_j=\sum_ie(i)∑j​pj′​=∑i​e(i) are the standing assumptions of Section 3 under which the LP is defined.

Preamble
import Mathlib
import Definitions.Def_PLCMarkets_Rationality_RationalityLP
Formal statement
namespace PLCMarkets.Rationality

/-- **§4, second paragraph** (Vazirani–Yannakakis 2011, p. 10:8): any optimal solution of the LP
constructed from the equilibrium prices `p'` gives equilibrium prices. The prices `p'` are
positive and sum to the total money (the standing assumptions of Section 3 under which the LP's
data are defined); the optimal solution's prices are
assumed positive, which the page leaves implicit. -/
theorem isEquilibrium_of_lpOptimal {n g : ℕ} (M : FisherMarket n g) (p' : Fin g → ℝ)
    (hp' : M.IsEquilibrium p')
    (hpos : ∀ j, 0 < p' j)
    (hsum : ∑ j, p' j = ∑ i, (M.budget i : ℝ))
    (z : FisherMarket.LPPoint n g) (hz : M.IsLPOptimal p' z)
    (hzpos : ∀ j, 0 < z.p j) :
    M.IsEquilibrium z.p := by sorry

end PLCMarkets.Rationality
Source
Vazirani and Yannakakis, Market Equilibrium under Separable, Piecewise-Linear, Concave Utilities, J. ACM 58(3), Article 10, 2011, https://doi.org/10.1145/1970392.1970394, p. 10:8, §4, second paragraph ("any optimal solution to this LP will be equilibrium prices")
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setting. Let MMM be any market with nnn buyers, ggg goods, positive rational budgets eie_iei​, and piecewise-linear utility functions fjif^i_jfji​. Let p′∈Rgp'\in\mathbb{R}^gp′∈Rg be a price vector.

Hypotheses. Assume all of the following:

  • p′p'p′ is an equilibrium: p′≥0p'\ge0p′≥0, and some allocation gives every buyer a budget-feasible utility-maximizing bundle with ∑ixij=1\sum_ix_{ij}=1∑i​xij​=1 for each good;
  • pj′>0p'_j>0pj′​>0 for every jjj;
  • ∑jpj′=∑iei\sum_jp'_j=\sum_ie_i∑j​pj′​=∑i​ei​;
  • zzz is an optimal point of the LP built from p′p'p′, with prices ppp and flows fs,fji,ft,ftsf^s,f_{ji},f^t,f_{ts}fs,fji​,ft,fts​;
  • every price of zzz is strictly positive: pj>0p_j>0pj​>0 for all jjj.

Optimal means that zzz is feasible and maximizes fts+∑ispenti(p)f_{ts}+\sum_i\mathrm{spent}_i(p)fts​+∑i​spenti​(p) over all feasible points. Feasibility requires:

  • capacity constraints, using unsoldj(p′)\mathrm{unsold}_j(p')unsoldj​(p′) and the capacities of segments flexible at p′p'p′;
  • flow conservation;
  • bang-per-buck relations determined by the classification at p′p'p′;
  • unspenti(p)≥0\mathrm{unspent}_i(p)\ge0unspenti​(p)≥0 and unsoldj(p′)≥0\mathrm{unsold}_j(p')\ge0unsoldj​(p′)≥0;
  • ∑jpj=∑iei\sum_jp_j=\sum_ie_i∑j​pj​=∑i​ei​;
  • nonnegativity.

Claim. The price vector ppp of zzz is an equilibrium of MMM. That is, p≥0p\ge0p≥0 and there is an allocation giving every buyer an optimal bundle at ppp with ∑ixij=1\sum_ix_{ij}=1∑i​xij​=1 for every good jjj. The flow part of zzz does not appear in the conclusion.

Degenerate cases.

  • No goods, some buyers (g=0g=0g=0, n≥1n\ge1n≥1): 0=∑jpj′<∑iei0=\sum_jp'_j<\sum_ie_i0=∑j​pj′​<∑i​ei​, so the hypotheses cannot hold.
  • No buyers, some goods (n=0n=0n=0, g≥1g\ge1g≥1): the hypotheses cannot hold, because ∑jpj′>0=∑iei\sum_jp'_j>0=\sum_ie_i∑j​pj′​>0=∑i​ei​.
  • No buyers and no goods (n=g=0n=g=0n=g=0): the conclusion holds trivially for the empty price vector.

Because all prices p′p'p′ and ppp are assumed positive, no division by zero occurs.

Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me