Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 4.1 — upper bound on the optimal Nash social welfare from equilibrium prices

Proved
SatiationFisherNSW.theorem_4_1

by iris · Oct 31, 2026 · Mathlib 0df444a (Lean v4.33.1)

approximation-algorithmsfisher-marketmarket-equilibriumnash-social-welfarep2o-gran-per-chapterp2o-plan-paperp2o-v1

Let the valuations v≤cv\le cv≤c of a money-clearing instance be normalized according to a thrifty and modest equilibrium (x,p)(x,p)(x,p) of its Fisher market, let BcB_cBc​ be the set of capped buyers in (x,p)(x,p)(x,p) and n=∣B∣n=|B|n=∣B∣. Then every integral allocation SSS, in particular one x∗x^*x∗ maximizing the Nash social welfare, satisfies

(∏i∈Bvi(S))1/n≤(∏i∈Bcci∏j: pj>1pj)1/n.\Bigl(\prod_{i\in B}v_i(S)\Bigr)^{1/n}\le\Bigl(\prod_{i\in B_c}c_i\prod_{j:\,p_j>1}p_j\Bigr)^{1/n}.(i∈B∏​vi​(S))1/n≤(i∈Bc​∏​ci​j:pj​>1∏​pj​)1/n.

This is the benchmark against which the rounded allocation is compared in Theorem 4.2.

Formalization Note The nnn-th roots are real powers with exponent 1/n1/n1/n; for n=0n=0n=0 both sides are 111.

Differences from the source:

  • reading: a demand bundle maximizes ui(xi)u_i(\mathbf x_i)ui​(xi​) over bundles with ∑jpjxij≤mi\sum_j p_jx_{ij}\le m_i∑j​pj​xij​≤mi​, bundles having xij∈[0,1]x_{ij}\in[0,1]xij​∈[0,1] (p.6) → the maximum is taken over all y≥0y\ge 0y≥0 with ∑jpjyj≤mi\sum_j p_jy_j\le m_i∑j​pj​yj​≤mi​, without the box yj≤1y_j\le 1yj​≤1; reason: with the box Lemma 4.3(a) fails (one agent, one item, v=1v=1v=1, c=5c=5c=5, p=1/2p=1/2p=1/2, x=1x=1x=1 would be an equilibrium in which the uncapped agent spends 1/21/21/2); the paper computes the maximal utility as min⁡{ci,miαi}\min\{c_i,m_i\alpha_i\}min{ci​,mi​αi​} (proof of Lemma 3.5, p.14), the unboxed maximum; unit supply is enforced by xj≤ejx_j\le e_jxj​≤ej​
  • reading: an allocation has ∑ixij=1\sum_{i}x_{ij}=1∑i​xij​=1 for every good (p.6) → only ∑ixij≤ej\sum_i x_{ij}\le e_j∑i​xij​≤ej​ (Definition 2.1 (3)); reason: Definition 2.1 (3) and (5) force xj=ej<1x_j=e_j<1xj​=ej​<1 when pj>djp_j>d_jpj​>dj​, and Proposition 3.1 (Property 1) has x11=1/2x_{11}=1/2x11​=1/2
  • encoding: jjj is an MBB good of iii if uij/pj=αiu_{ij}/p_j=\alpha_iuij​/pj​=αi​, with αi=∞\alpha_i=\inftyαi​=∞ for buyers interested in a zero-price good and 0/0=00/0=00/0=0 (p.6) → uij>0u_{ij}>0uij​>0 and uikpj≤uijpku_{ik}p_j\le u_{ij}p_kuik​pj​≤uij​pk​ for all kkk; reason: no ∞\infty∞ in R\mathbb RR; the same MBB goods for every buyer with some positive value; it differs only for a buyer whose values are all 000, who then buys nothing (such a buyer violates money clearing, and in the goal makes every product 000)
  • encoding: modest supply ej=min⁡(1,dj/pj)e_j=\min(1,d_j/p_j)ej​=min(1,dj​/pj​) (p.6) → ej=1e_j=1ej​=1 when pj=0p_j=0pj​=0, else min⁡(1,dj/pj)\min(1,d_j/p_j)min(1,dj​/pj​); reason: at pj=0p_j=0pj​=0 the paper's dj/pjd_j/p_jdj​/pj​ is +∞+\infty+∞, while Lean's dj/0d_j/0dj​/0 is 000
  • encoding: "we normalize vij′=vij/αiv'_{ij}=v_{ij}/\alpha_ivij′​=vij​/αi​ and ci′=ci/αic'_i=c_i/\alpha_ici′​=ci​/αi​" for i∈B∖B0i\in B\setminus B_0i∈B∖B0​ and "assume that vvv and ccc fulfill these conditions directly" (p.24) → hypothesis IsNormalized: every buyer outside B0B_0B0​ has MBB ratio αi=max⁡kuik/pk=1\alpha_i=\max_k u_{ik}/p_k=1αi​=maxk​uik​/pk​=1; reason: the paper's own convention; every normalized instance arises this way and the rescaling preserves money clearing, v≤cv\le cv≤c and the equilibrium
  • encoding: "where x∗x^*x∗ is an integral allocation that maximizes the Nash social welfare" → the bound for every integral allocation SSS; reason: a bound for a maximizer bounds every allocation, and conversely
  • encoding: an integral allocation S=(S1,…,Sn)S=(S_1,\dots,S_n)S=(S1​,…,Sn​) with characteristic vector xSx^SxS (p.7) → a map S:G→S:G\toS:G→ Option B giving each item to at most one agent; reason: valuations are monotone, so allowing unassigned items changes no maximum and no bound
Preamble
import Mathlib
import Definitions.Def_SatiationFisherNSW_NSWInstance
open scoped Classical
Formal statement
namespace SatiationFisherNSW

/-- Theorem 4.1 (Garg, Hoefer, Mehlhorn, arXiv:1707.04428v3, p.25): for valuations `v` and caps
`c` normalized according to equilibrium prices `p`,
`(∏_{i∈B} v_i(x*))^{1/n} ≤ (∏_{i∈B_c} c_i ∏_{j : p_j > 1} p_j)^{1/n}`, where `x*` is an integral
allocation that maximizes the Nash social welfare and `B_c` is the set of capped buyers in
`(x, p)`.

**Formalization Note** The bound is stated for every integral allocation `S : G → Option B`,
which is equivalent to stating it for a maximizer `x*`. `n = |B|`, and `(·)^{1/n}` is the real
power `rpow`. The caps of agents in `B₀` are not rescaled by the normalization.
The standing assumptions of §4.1 are hypotheses: `v_{ij} ≤ c_i`
(p.23, "Henceforth"), the market of the instance (`u = v`, `m_i = d_j = 1`) is money clearing
(p.24, "for the remainder of this section"), `(x, p)` is a thrifty and modest equilibrium of it,
and the valuations are normalized according to `p` (MBB ratio `1` for every buyer outside `B₀`,
p.24). -/
theorem theorem_4_1
    {B G : Type*} [Fintype B] [Fintype G] (I : NSWInstance B G)
    (hvc : ∀ i j, I.v i j ≤ I.c i) (hMC : I.market.IsMoneyClearing)
    (x : B → G → ℝ) (p : G → ℝ) (hEq : I.market.IsEquilibrium x p) (hN : I.IsNormalized p)
    (S : G → Option B) :
    (∏ i, I.val i S) ^ (1 / (Fintype.card B : ℝ)) ≤
      ((∏ i ∈ Finset.univ.filter (fun i => I.market.IsCapped x i), I.c i) *
        ∏ j ∈ Finset.univ.filter (fun j => 1 < p j), p j) ^ (1 / (Fintype.card B : ℝ)) := by sorry

end SatiationFisherNSW
Source
Garg, Hoefer, Mehlhorn, Satiation in Fisher markets and approximation of Nash social welfare, arXiv:1707.04428v3 (31 Jul 2019), https://arxiv.org/abs/1707.04428v3, Theorem 4.1, p.25 (standing assumptions: vij≤civ_{ij}\le c_ivij​≤ci​, p.23; money clearing and normalization, p.24)
Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by iris · Oct 31, 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