Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Corollary 2.7 — if x ℓe(x)≤α∫0xℓex\,\ell_e(x)\le\alpha\int_0^x\ell_exℓe​(x)≤α∫0x​ℓe​, a Nash flow costs at most α\alphaα times any feasible flow

Proved
SelfishRouting.Potential.corollary_2_7

by mikedeng1 · Oct 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

p2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1price-of-anarchyselfish-routing

Consider a routing instance with latency functions ℓe\ell_eℓe​ that are nonnegative, nondecreasing and continuous on [0,∞)[0,\infty)[0,∞), routes given by 0/10/10/1 edge–route incidence columns, and positive rates rir_iri​. Write C(f)=∑PℓP(f)fPC(f)=\sum_P\ell_P(f)f_PC(f)=∑P​ℓP​(f)fP​ for the cost of a flow. Let α≥1\alpha\ge1α≥1 be a constant such that

x⋅ℓe(x)≤α∫0xℓe(t) dtfor all edges e and all real x>0.x\cdot\ell_e(x)\le\alpha\int_0^x\ell_e(t)\,dt\qquad\text{for all edges } e \text{ and all real } x>0 .x⋅ℓe​(x)≤α∫0x​ℓe​(t)dtfor all edges e and all real x>0.

Corollary 2.7. If fff is a flow at Nash equilibrium and f∗f^*f∗ is any feasible flow, then

C(f)≤α C(f∗).C(f)\le\alpha\,C(f^*).C(f)≤αC(f∗).

In particular ρ(G,r,ℓ)=C(f)/C(f∗)≤α\rho(G,r,\ell)=C(f)/C(f^*)\le\alphaρ(G,r,ℓ)=C(f)/C(f∗)≤α for an optimal flow f∗f^*f∗.

The hypothesis says that the latencies are "not too steep": the Beckmann potential ∑e∫0feℓe\sum_e\int_0^{f_e}\ell_e∑e​∫0fe​​ℓe​, which a Nash flow minimizes, is within a factor α\alphaα of the true cost.

Formalization Note The paper's conclusion ρ(G,r,ℓ)≤α\rho(G,r,\ell)\le\alphaρ(G,r,ℓ)≤α is stated as the inequality C(f)≤αC(f∗)C(f)\le\alpha C(f^*)C(f)≤αC(f∗) for every feasible f∗f^*f∗, which is what the proof's chain of inequalities (pp. 10–11) establishes and which implies the ratio bound for an optimal f∗f^*f∗; this avoids dividing by a cost that may be 000. The hypothesis is quantified over x>0x>0x>0 only, as printed, and α≥1\alpha\ge1α≥1 is kept as printed. Continuity on [0,∞)[0,\infty)[0,∞) makes ∫0xℓe\int_0^x\ell_e∫0x​ℓe​ an honest integral. Routes are 0/10/10/1 incidence columns (a generalization of simple paths); continuity replaces differentiability (footnote 3, p. 7).

Preamble
import Mathlib
import Definitions.Def_KellyStochasticNetworks_Wardrop
import Definitions.Def_SelfishRouting_Potential_Model

open KellyStochasticNetworks
Formal statement
namespace SelfishRouting.Potential

theorem corollary_2_7 {J R Sd : ℕ} (A : Fin J → Fin R → ℝ) (s : Fin R → Fin Sd)
    (rate : Fin Sd → ℝ) (ℓ : Fin J → ℝ → ℝ)
    (hA : ∀ j r, A j r = 0 ∨ A j r = 1) (hrate : ∀ i, 0 < rate i)
    (hℓnn : ∀ j t, 0 ≤ t → 0 ≤ ℓ j t)
    (hℓmono : ∀ j, MonotoneOn (ℓ j) (Set.Ici 0))
    (hℓcont : ∀ j, ContinuousOn (ℓ j) (Set.Ici 0))
    (α : ℝ) (hα1 : 1 ≤ α)
    (hα : ∀ j t, 0 < t → t * ℓ j t ≤ α * ∫ u in (0:ℝ)..t, ℓ j u)
    (x y : Fin R → ℝ) (hx : IsNashFlow A s ℓ rate x) (hy : y ∈ wardropFeasible s rate) :
    SelfishRouting.Bicriteria.cost A ℓ x ≤ α * SelfishRouting.Bicriteria.cost A ℓ y := by sorry

end SelfishRouting.Potential
Source
Roughgarden & Tardos, How Bad is Selfish Routing?, J. ACM 49(2) (2002), author's manuscript of 5 Dec 2001, p. 10, Corollary 2.7
Human review
  • Endorsed by Shuze Chen · Oct 7, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 7, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me