Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of THEOREM 4.1 — the starting equilibrium prices p′ are an optimal LP solution of value M

Proved
PLCMarkets.Rationality.lp_optimal_value_eq_total_money

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). Consider the linear program of Section 4 built from p′p'p′ (see RationalityLP). Then there is a flow fff such that (p′,f)(p',f)(p′,f) is an optimal solution of this LP, and its objective value is the total money:

f(t,s)+∑i∈Bspent(i)=∑i∈Be(i).f_{(t,s)}+\sum_{i\in B}\mathrm{spent}(i)=\sum_{i\in B}e(i).f(t,s)​+i∈B∑​spent(i)=i∈B∑​e(i).

Together with the statement that every optimal solution with positive prices is an equilibrium, this shows that the LP's optimal face contains p′p'p′ and consists of equilibria, so a rational optimal solution gives rational equilibrium prices.

Formalization Note. 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 forced/flexible classes, and hence the LP, are defined; the LP's constraint ∑jpj=M\sum_jp_j=M∑j​pj​=M can be met by p′p'p′ only under the second.

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

/-- **Proof of THEOREM 4.1, first sentence** (Vazirani–Yannakakis 2011, §4, p. 10:9): the
starting equilibrium prices `p'`, together with a flow, form an optimal solution of value `M`
(the total money of the buyers) of the LP constructed from `p'`. 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). -/
theorem lp_optimal_value_eq_total_money {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, z.p = p' ∧ M.IsLPOptimal p' z ∧
      M.lpObjective p' z = ∑ i, (M.budget i : ℝ) := 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:9, proof of THEOREM 4.1, first sentence
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 there is an allocation giving each buyer a budget-feasible utility-maximizing bundle with ∑ixij=1\sum_ix_{ij}=1∑i​xij​=1 for every good;
  • pj′>0p'_j>0pj′​>0 for every jjj;
  • ∑jpj′=∑iei\sum_jp'_j=\sum_ie_i∑j​pj′​=∑i​ei​.

Claim. There exists a point zzz of the LP built from p′p'p′ such that:

  • its price component equals p′p'p′ exactly;
  • zzz is optimal for that LP: it is feasible, and no feasible point has a larger objective fts+∑ispenti(p)f_{ts}+\sum_i\mathrm{spent}_i(p)fts​+∑i​spenti​(p);
  • its objective value equals ∑iei\sum_ie_i∑i​ei​.

The LP is the one whose classifications and unsoldj(p′)\mathrm{unsold}_j(p')unsoldj​(p′) are computed at p′p'p′. Its constraints are:

  • capacities;
  • flow conservation;
  • the three bang-per-buck relations between a segment flexible at p′p'p′ and segments that are flexible, strictly above, or strictly below ρi(p′)\rho_i(p')ρi​(p′) 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.

The hypotheses do not include unsoldj(p′)≥0\mathrm{unsold}_j(p')\ge0unsoldj​(p′)≥0 or unspenti(p′)≥0\mathrm{unspent}_i(p')\ge0unspenti​(p′)≥0. The conclusion's feasibility requires both.

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): again the hypotheses cannot hold, both through the sum condition and because equilibrium clearing fails.
  • No buyers and no goods (n=g=0n=g=0n=g=0): the claim is that some point with every flow equal to zero is optimal with value 000.

Because p′>0p'>0p′>0, no division by zero occurs in the classification.

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