Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 5.4 — terminated refine returns an ε-optimal circulation

Proved
CostScaling.Refine.terminated_refine_correct

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

cost-scalingminimum-cost-circulationp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1push-relabel

Let f0f_0f0​ be a circulation that is 2ε2\varepsilon2ε-optimal with respect to prices p0p_0p0​, with ε>0\varepsilon>0ε>0. Start generic refine by halving the input error parameter and saturating all arcs of negative reduced cost. Let σ0,…,σK\sigma_0,\ldots,\sigma_Kσ0​,…,σK​ be any resulting sequence of applicable push and relabel operations. If no operation is applicable in σK\sigma_KσK​, then its pseudoflow fKf_KfK​ is a circulation and remains ε\varepsilonε-optimal with respect to its final prices pKp_KpK​:

Terminated⁡(σK)⟹fK is a circulation and cpK(v,w)≥−ε for every residual arc.\operatorname{Terminated}(\sigma_K)\quad\Longrightarrow\quad f_K\text{ is a circulation and }c_{p_K}(v,w)\ge-\varepsilon\text{ for every residual arc.}Terminated(σK​)⟹fK​ is a circulation and cpK​​(v,w)≥−ε for every residual arc.

This is the partial correctness result for the generic subroutine; the update counts separately establish finite termination.

Formalization Note “Terminated” is the literal negation of Figure 4's update guard. The parameter ε\varepsilonε here is the new error parameter after Figure 4 halves the input 2ε2\varepsilon2ε.

Preamble
import Mathlib
import Definitions.Def_CostScaling_Refine_Run
Formal statement
namespace CostScaling.Refine

/-- Theorem 5.4, p. 21, including the entry contract of refine. -/
theorem terminated_refine_correct {V : Type*} [Fintype V] [DecidableEq V]
    (N : Network V) (ε : ℝ) (hε : 0 < ε)
    (f₀ : V → V → ℝ) (p₀ : V → ℝ)
    (hcirc : CycleCanceling.MinMean.IsCirculation N f₀)
    (hentry : IsEpsOptimal N (2 * ε) f₀ p₀)
    (σ : ℕ → State V) (K : ℕ)
    (hrun : IsRun N ε f₀ p₀ σ K)
    (hterm : Terminated N (σ K)) :
    CycleCanceling.MinMean.IsCirculation N (σ K).f ∧
      IsEpsOptimal N ε (σ K).f (σ K).p := by sorry

end CostScaling.Refine
Source
Goldberg & Tarjan, MIT/LCS/TM-333 (July 1987), Theorem 5.4, p. 21; https://publications.csail.mit.edu/lcs/pubs/pdf/MIT-LCS-TM-333.pdf
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