Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§2.2 — a pseudo-extreme maximum flow of the Hitchcock problem is extreme

Proved
EdmondsKarp.Scaling.pseudoExtreme_max_isExtreme

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

minimum-cost-flowp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1transportation-problem

Consider the Hitchcock network of Figure 1 with m,n≥1m, n \ge 1m,n≥1, positive capacities aia_iai​, bjb_jbj​ with ∑iai=∑jbj\sum_i a_i = \sum_j b_j∑i​ai​=∑j​bj​, and nonnegative costs dijd_{ij}dij​. If fff is a maximum flow and fff is pseudo-extreme, that is, there are real uiu_iui​, vjv_jvj​ with

ui−vj+dij≥0andui−vj+dij>0⇒fij=0u_i - v_j + d_{ij} \ge 0 \quad\text{and}\quad u_i - v_j + d_{ij} > 0 \Rightarrow f_{ij} = 0ui​−vj​+dij​≥0andui​−vj​+dij​>0⇒fij​=0

for all i,ji, ji,j, then fff is extreme.

This is the fact on which the scaling method rests: it only has to maintain the two conditions (5a)–(5b), and the maximum flow it ends with in Problem 000 is then of minimum cost. The balance ∑ai=∑bj\sum a_i = \sum b_j∑ai​=∑bj​ is needed; for unbalanced problems the implication fails in general.

Preamble
import Mathlib
import Definitions.Def_EdmondsKarp_Scaling_Transport
Formal statement
namespace EdmondsKarp.Scaling

/-- §2.2, p. 259 (unnumbered): for the Hitchcock problem (`∑ a_i = ∑ b_j`), a pseudo-extreme maximum
flow is extreme. -/
theorem pseudoExtreme_max_isExtreme {m n : ℕ} (hm : 1 ≤ m) (hn : 1 ≤ n) (T : Transport m n)
    (ha : ∀ i, 0 < T.a i) (hb : ∀ j, 0 < T.b j) (hsum : ∑ i, T.a i = ∑ j, T.b j)
    (hd : ∀ i j, 0 ≤ T.d i j) (x : Flow m n) (hmax : IsMaxFlow T x)
    (hpe : IsPseudoExtreme T x) :
    IsExtreme T x := by sorry

end EdmondsKarp.Scaling
Source
Edmonds, Karp, Theoretical Improvements in Algorithmic Efficiency for Network Flow Problems, J. ACM 19(2), 1972, p. 259, §2.2 (unnumbered: 'A pseudo-extreme maximum flow is extreme')
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setting. Let m≥1m\ge1m≥1 and n≥1n\ge1n≥1. Let T=(a,b,d)T=(a,b,d)T=(a,b,d) be a transport problem.

Hypotheses.

  • ai>0a_i>0ai​>0 for all iii, and bj>0b_j>0bj​>0 for all jjj;
  • ∑iai=∑jbj\sum_i a_i=\sum_j b_j∑i​ai​=∑j​bj​;
  • dij≥0d_{ij}\ge0dij​≥0 for all i,ji,ji,j;
  • xxx is a maximum flow for TTT: a flow (nonnegative, f0i≤aif_{0i}\le a_if0i​≤ai​, fj0≤bjf_{j0}\le b_jfj0​≤bj​, conservation at all nodes) whose return value is at least that of every flow;
  • xxx is pseudo-extreme for TTT: there exist reals u1,…,umu_1,\dots,u_mu1​,…,um​ and v1,…,vnv_1,\dots,v_nv1​,…,vn​ with ui−vj+dij≥0u_i-v_j+d_{ij}\ge0ui​−vj​+dij​≥0 for all i,ji,ji,j, and fij=0f_{ij}=0fij​=0 whenever ui−vj+dij>0u_i-v_j+d_{ij}>0ui​−vj​+dij​>0.

Conclusion. xxx is extreme: for every flow y=(g)y=(g)y=(g) for TTT with the same return value as xxx,

∑i,jdijfij≤∑i,jdijgij.\sum_{i,j} d_{ij}f_{ij} \le \sum_{i,j} d_{ij}g_{ij}.i,j∑​dij​fij​≤i,j∑​dij​gij​.

Degenerate cases. The hypotheses exclude m=0m=0m=0, n=0n=0n=0 and zero capacities. No other degenerate cases arise.

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