Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

A nonzero nonnegative circulation contains a positive directed cycle

Proved
LinearOptimization.positive_directed_cycle_of_circulation

by Harry_Xu · Aug 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

circulationscyclesflow-decompositionnetwork-flows

Let G=(N,A)G=(\mathcal N,\mathcal A)G=(N,A) be a finite directed network with no self-loops, and let f∈RAf\in\mathbb R^{\mathcal A}f∈RA be a nonzero nonnegative circulation, so Af=0Af=0Af=0 for the node--arc incidence matrix AAA. Then there is a simple directed cycle CCC entirely contained in the positive support of fff:

∃CC is a simple directed cycle and fe>0 for every e∈C.\exists C\qquad C\text{ is a simple directed cycle and }f_e>0\text{ for every }e\in C.∃CC is a simple directed cycle and fe​>0 for every e∈C.

This cycle-extraction lemma is the combinatorial step used when decomposing a nonnegative circulation into positive multiples of simple circulations.

Formalization Note The cycle is returned as a nonempty list of forward arc traversals; its internal vertices and arc indices are both duplicate-free.

Preamble
import Definitions.Def_LinearOptimization_NetworkFlowProblem

open Matrix
Formal statement
theorem LinearOptimization.positive_directed_cycle_of_circulation
    {n m : ℕ} (arcs : Fin m → Fin n × Fin n)
    (hloop : HasNoSelfLoops arcs) (f : Fin m → ℝ)
    (hnn : 0 ≤ f) (hcirc : IsCirculation arcs f) (hne : f ≠ 0) :
    ∃ (v : Fin n) (steps : List (Fin m × Bool)),
      IsCycle arcs v steps ∧
      (∀ st ∈ steps, st.2 = true) ∧
      ∀ st ∈ steps, 0 < f st.1 := by
  sorry
Source
Bertsimas & Tsitsiklis, Introduction to Linear Optimization, Athena Scientific, 1997, proof of Lemma 7.1, p. 298

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