Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 9.5 -- negative_cycle_criterion_mcfp0

Proved
DiscreteConvex.NetworkFlowsB.negative_cycle_criterion_mcfp0

by Shuze Chen · Sep 28, 2026 · Mathlib 0df444a (Lean v4.33.1)

combinatoricsdiscrete-convex-analysis

Theorem 9.5 (Negative-cycle criterion; p.252). For a feasible flow ξ\xiξ to the minimum cost flow problem MCFP0, ξ\xiξ is optimal iff the auxiliary network (Gξ,ℓξ)(G_\xi,\ell_\xi)(Gξ​,ℓξ​) of Eq. (9.34) has no negative cycle.

(Murota, Discrete Convex Analysis, SIAM 2003, DOI 10.1137/1.9780898718508, p.252, Theorem 9.5.)

Preamble
import Mathlib
import Definitions.Def_DiscreteConvex_NetworkFlowsB_FeasibleFlowMCFP0
import Definitions.Def_DiscreteConvex_NetworkFlowsB_OptimalFlowMCFP0
import Definitions.Def_DiscreteConvex_NetworkFlowsB_HasNegativeCycle
import Definitions.Def_DiscreteConvex_NetworkFlowsB_AuxTailMCFP0
import Definitions.Def_DiscreteConvex_NetworkFlowsB_AuxHeadMCFP0
import Definitions.Def_DiscreteConvex_NetworkFlowsB_AuxActiveMCFP0
import Definitions.Def_DiscreteConvex_NetworkFlowsB_AuxLengthMCFP0
Formal statement
namespace DiscreteConvex.NetworkFlowsB

open Classical
open scoped Pointwise
variable {V A : Type*} [Fintype V] [Fintype A] [DecidableEq V] [DecidableEq A]
/-- Theorem 9.5 (Negative-cycle criterion; p.252). For a feasible flow `ξ` to MCFP0, `ξ` is
optimal iff the auxiliary network `(Gξ, ℓξ)` has no negative cycle. -/
theorem negative_cycle_criterion_mcfp0 (tail head : A → V) (cUpper : A → WithTop ℝ)
    (cLower : A → WithBot ℝ) (gamma : A → ℝ) (x : V → ℝ) (xi : A → ℝ)
    (hfeas : FeasibleFlowMCFP0 tail head cUpper cLower gamma x xi) :
    OptimalFlowMCFP0 tail head cUpper cLower gamma x xi ↔
      ¬ HasNegativeCycle (AuxTailMCFP0 tail head) (AuxHeadMCFP0 tail head)
        (AuxActiveMCFP0 cUpper cLower xi) (AuxLengthMCFP0 gamma) := by sorry

end DiscreteConvex.NetworkFlowsB
Source
Murota, Discrete Convex Analysis, SIAM 2003, DOI 10.1137/1.9780898718508, p.252, Theorem 9.5
Human review
  • Endorsed by Community (Bot) · Oct 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Shuze Chen · Oct 1, 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