Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§4, proof of Thm 4.1, first display (p. 227) — maxflow = min over metrics d of ΣC·d / ΣD·d

Proved
GeometryOfGraphs.FlowCut.lp_duality

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

linear-programminglp-dualitymulticommodity-flowp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let NNN be a multicommodity flow network on a finite vertex set VVV with capacities CCC and commodities (sμ,tμ,Dμ)μ=1k(s_\mu, t_\mu, D_\mu)_{\mu=1}^k(sμ​,tμ​,Dμ​)μ=1k​, and suppose some commodity has Dμ>0D_\mu > 0Dμ​>0 and sμ≠tμs_\mu \ne t_\musμ​=tμ​. Then the maxflow is the minimum, over semi-metrics ddd on VVV, of the ratio

λ=min⁡d∑{i,j}Ci,j di,j∑μ=1kDμ dsμ,tμ,\lambda = \min_d \frac{\sum_{\{i,j\}} C_{i,j}\, d_{i,j}}{\sum_{\mu=1}^k D_\mu\, d_{s_\mu,t_\mu}},λ=dmin​∑μ=1k​Dμ​dsμ​,tμ​​∑{i,j}​Ci,j​di,j​​,

where the numerator sums over unordered pairs {i,j}\{i,j\}{i,j}. Precisely:

  1. for every semi-metric ddd on VVV, maxflow⋅∑μDμdsμ,tμ≤∑{i,j}Ci,jdi,j\mathrm{maxflow}\cdot\sum_\mu D_\mu d_{s_\mu,t_\mu} \le \sum_{\{i,j\}} C_{i,j} d_{i,j}maxflow⋅∑μ​Dμ​dsμ​,tμ​​≤∑{i,j}​Ci,j​di,j​;
  2. some semi-metric ddd with ∑μDμdsμ,tμ>0\sum_\mu D_\mu d_{s_\mu,t_\mu} > 0∑μ​Dμ​dsμ​,tμ​​>0 attains equality.

The paper obtains this from linear programming duality (citing [24]): the maxflow is the optimum of a linear program whose dual is the metric relaxation of the sparsest cut. It turns the flow problem into a question about a metric, which is where the embedding results of Section 3 enter.

Formalization Note The page writes the numerator as ∑i≠jCi,jdi,j\sum_{i \ne j} C_{i,j} d_{i,j}∑i=j​Ci,j​di,j​ over ordered pairs, which counts each edge twice while maxflow and Cap\mathrm{Cap}Cap count each edge once; read literally it is off by a factor 222. The statement uses unordered pairs, written 12∑i∑jCi,jdi,j\tfrac12\sum_i\sum_j C_{i,j} d_{i,j}21​∑i​∑j​Ci,j​di,j​. The same convention is used in the coordinate-minimum display, so the chain of the proof is unchanged. "Metric" means semi-metric (p. 218, footnote 1).

Preamble
import Mathlib
import Definitions.Def_GeometryOfGraphs_FlowCut_Pseudometric
import Definitions.Def_GeometryOfGraphs_FlowCut_Network
import Definitions.Def_GeometryOfGraphs_FlowCut_Maxflow

set_option autoImplicit false
Formal statement
namespace GeometryOfGraphs.FlowCut

/-- §4, proof of Theorem 4.1, first display (p. 227): by LP duality,
`maxflow = min_d (Σ_{edges} C_{ij} d_{ij}) / (Σ_μ D_μ d_{s_μ t_μ})` over (semi-)metrics `d` on `V`.
Stated cross-multiplied: (1) every pseudometric `d` gives an upper bound on `maxflow`; (2) some
pseudometric with positive denominator attains it. Edge sums are over unordered pairs, written as
`(1/2) * Σ_i Σ_j`, so that each edge's capacity is counted once, as in `Cap`. -/
theorem lp_duality {V : Type*} [Fintype V] [DecidableEq V] (N : Network V)
    (hN : ∃ μ, 0 < N.D μ ∧ N.s μ ≠ N.t μ) :
    (∀ d : V → V → ℝ, IsPseudometric d →
      N.maxflow * ∑ μ, N.D μ * d (N.s μ) (N.t μ) ≤ (1 / 2) * ∑ i, ∑ j, N.C i j * d i j) ∧
    ∃ d : V → V → ℝ, IsPseudometric d ∧ 0 < ∑ μ, N.D μ * d (N.s μ) (N.t μ) ∧
      N.maxflow * ∑ μ, N.D μ * d (N.s μ) (N.t μ) = (1 / 2) * ∑ i, ∑ j, N.C i j * d i j := by sorry

end GeometryOfGraphs.FlowCut
Source
N. Linial, E. London, Y. Rabinovich, The geometry of graphs and some of its algorithmic applications, Combinatorica 15 (1995), p. 227, proof of Theorem 4.1, first display
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 6, 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