Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

LEMMA 3.1 — p are equilibrium prices iff max-flow in N(p) is Σ unspent(i)

Proved
PLCMarkets.Rationality.isEquilibrium_iff_maxFlow

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

fisher-marketmarket-equilibriummax-flowp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let MMM be a Fisher market with additively separable piecewise-linear concave utilities, and let ppp be prices with

  1. pj>0p_j>0pj​>0 for every good jjj;
  2. ∑jpj=∑ie(i)\sum_jp_j=\sum_ie(i)∑j​pj​=∑i​e(i) (the prices sum to the buyers' total money);
  3. unspent(i)≥0\mathrm{unspent}(i)\ge0unspent(i)≥0 for every buyer iii and unsold(j)≥0\mathrm{unsold}(j)\ge0unsold(j)≥0 for every good jjj.

Then ppp are equilibrium prices if and only if the max-flow value of the network N(p)N(p)N(p) is

∑i∈Bunspent(i).\sum_{i\in B}\mathrm{unspent}(i).i∈B∑​unspent(i).

This reduces checking an equilibrium to one max-flow computation and is the criterion by which the proof of Theorem 4.1 recognises the rational optimal solution of its LP as equilibrium prices.

Formalization Note. Hypotheses 1–3 are the standing assumptions of Section 3 of the paper: nonzero prices (§3.1), the display ∑jpj=∑ie(i)\sum_jp_j=\sum_ie(i)∑j​pj​=∑i​e(i) (§3), and the first sentence of §3.2, which rejects prices violating 3 before the network is built. The index kik_iki​ of §3.1 always exists at positive prices, because the last, unbounded segment of every fjif^i_jfji​ has infinite value. See EquilibriumNetwork for the network and its max-flow.

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

/-- **LEMMA 3.1** (Vazirani–Yannakakis 2011, §3.2, p. 10:8). Under the standing assumptions of
Section 3 — positive prices (§3.1, "Given nonzero prices"), `Σ_j p_j = Σ_i e(i)` (§3), and
`unspent(i) ≥ 0`, `unsold(j) ≥ 0` (§3.2, first sentence) — the prices `p` are equilibrium prices
iff the max-flow value of the network `N(p)` equals `Σ_i unspent(i)`. (With positive prices, `k_i`
exists for every buyer, since the unbounded last segment of every `f^i_j` has infinite value.) -/
theorem isEquilibrium_iff_maxFlow {n g : ℕ} (M : FisherMarket n g) (p : Fin g → ℝ)
    (hp : ∀ j, 0 < p j)
    (hsum : ∑ j, p j = ∑ i, (M.budget i : ℝ))
    (hunspent : ∀ i, 0 ≤ M.unspent p i)
    (hunsold : ∀ j, 0 ≤ M.unsold p j) :
    M.IsEquilibrium p ↔ M.maxFlow p = ∑ i, M.unspent p 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:8, LEMMA 3.1 (standing assumptions: §3 display p. 10:7, §3.1 first sentence p. 10:7, §3.2 first sentence p. 10:8)
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​. Each fjif^i_jfji​ has:

  • bounded segments with nonnegative, nonincreasing slopes and positive amounts;
  • a tail slope that is nonnegative and at most every bounded slope.

Let p∈Rgp\in\mathbb{R}^gp∈Rg be a price vector.

Hypotheses. Assume all of the following:

  • pj>0p_j>0pj​>0 for every good jjj;
  • ∑jpj=∑iei\sum_j p_j=\sum_i e_i∑j​pj​=∑i​ei​;
  • unspenti(p)≥0\mathrm{unspent}_i(p)\ge0unspenti​(p)≥0 for every buyer iii, where unspenti(p)=ei\mathrm{unspent}_i(p)=e_iunspenti​(p)=ei​ minus the total value akijpja^{ij}_kp_jakij​pj​ of iii's forced segments;
  • unsoldj(p)≥0\mathrm{unsold}_j(p)\ge0unsoldj​(p)≥0 for every good jjj, where unsoldj(p)=1\mathrm{unsold}_j(p)=1unsoldj​(p)=1 minus the total amount of good jjj in all buyers' forced segments.

Forced segments are those whose bang per buck ckij/pjc^{ij}_k/p_jckij​/pj​ exceeds the flexible level ρi(p)\rho_i(p)ρi​(p).

Claim.

p is an equilibrium  ⟺  maxFlow(p)=∑iunspenti(p).p \text{ is an equilibrium} \iff \mathrm{maxFlow}(p)=\sum_i \mathrm{unspent}_i(p).p is an equilibrium⟺maxFlow(p)=i∑​unspenti​(p).

Here:

  • Equilibrium means p≥0p\ge0p≥0 and there is an allocation giving every buyer a utility-maximizing bundle within their budget, with ∑ixij=1\sum_i x_{ij}=1∑i​xij​=1 for every good.
  • maxFlow(p)\mathrm{maxFlow}(p)maxFlow(p) is the supremum of ∑j,iyji\sum_{j,i}y_{ji}∑j,i​yji​ over arrays satisfying:
    • y≥0y\ge0y≥0;
    • yji≤capjiy_{ji}\le\mathrm{cap}_{ji}yji​≤capji​ unless the tail of fjif^i_jfji​ is flexible;
    • ∑iyji≤unsoldj pj\sum_iy_{ji}\le\mathrm{unsold}_j\,p_j∑i​yji​≤unsoldj​pj​;
    • ∑jyji≤unspenti\sum_jy_{ji}\le\mathrm{unspent}_i∑j​yji​≤unspenti​.

Under these hypotheses the zero flow is feasible, and maxFlow(p)\mathrm{maxFlow}(p)maxFlow(p) is at most ∑iunspenti(p)\sum_i\mathrm{unspent}_i(p)∑i​unspenti​(p).

Degenerate cases.

  • No goods, some buyers (g=0g=0g=0, n≥1n\ge1n≥1): ∑jpj=0<∑iei\sum_jp_j=0<\sum_ie_i∑j​pj​=0<∑i​ei​, so the hypotheses cannot hold and the statement is vacuous.
  • No buyers, some goods (n=0n=0n=0, g≥1g\ge1g≥1): ∑jpj>0=∑iei\sum_jp_j>0=\sum_ie_i∑j​pj​>0=∑i​ei​, so again the statement is vacuous.
  • No buyers and no goods (n=g=0n=g=0n=g=0): both sides are true. The empty vector is an equilibrium, and maxFlow=0=∑iunspenti\mathrm{maxFlow}=0=\sum_i\mathrm{unspent}_imaxFlow=0=∑i​unspenti​.

Because p>0p>0p>0 is assumed, 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