Theorem 2.12 — has a feasible potential iff it has no negative-cost dicircuit
ProvedCombOpt.ShortestPath.theorem_2_12combinatorial-optimizationdigraphsp2o-gran-per-chapterp2o-plan-bookp2o-strengthenedp2o-v1shortest-paths
Let be a finite digraph (loops and parallel arcs allowed) with real arc costs . Then there is a real vector with
if and only if has no negative-cost dicircuit.
No reachability assumption is made: the theorem applies "even without any assumption about the existence of dipaths". Since subtracting from every preserves the inequalities, for any the left side is the same as the existence of a feasible potential with root .
Differences from the source:
- generalization: the section may assume G simple (p. 20) → loops and parallel arcs allowed; reason: every digraph of p. 19 is covered, in particular the simple ones, so the Lean statement specializes to the book's
- reading: "(G, c) has a feasible potential" (feasible potential: (2.12) and y_r = 0) → there is a real y satisfying (2.12), with no root fixed; reason: the theorem names no root and its proof adds a new root node; by p. 21 subtracting y_r preserves (2.12), so for every r ∈ V the two readings are equivalent
- encoding: a dicircuit is the sequence v_0, e_1, v_1, …, e_k, v_k → a start node and the arc list [e_1, …, e_k]; reason: the nodes are the start node and the heads of the arcs
Preamble
import Mathlib import Definitions.Def_CombOpt_ShortestPath_Digraph_SatisfiesPotentialIneq import Definitions.Def_CombOpt_ShortestPath_Digraph_HasNegativeDicircuit
Formal statement
namespace CombOpt.ShortestPath
/-- **Theorem 2.12 (a feasible potential exists iff there is no negative-cost dicircuit).**
Cook, Cunningham, Pulleyblank & Schrijver, *Combinatorial Optimization* (Wiley, 1998), Theorem 2.12, p. 25 (PDF p. 34): "(G, c) has a feasible potential if and only if it has no
negative-cost dicircuit." The book adds: "Notice that it applies even without any assumption
about the existence of dipaths."
For a finite digraph `G` with real arc costs `c`, there is a real vector `y` with
`y (head e) ≤ y (tail e) + c e` for every arc `e` (inequalities (2.12)) if and only if no
dicircuit of `G` has negative cost.
**Formalization Note.** The normalization `y_r = 0` of a feasible potential is dropped: the
theorem names no root, its proof (p. 25) adds a new node as root, and p. 21 notes that
"subtracting y_r from each y_v preserves (2.12) and makes y_r = 0", so for any `r ∈ V` the left
side is equivalent to the existence of a feasible potential with root `r`. -/
theorem theorem_2_12 {V E : Type*} [Fintype V] [Fintype E] (G : Digraph V E) (c : E → ℝ) :
(∃ y : V → ℝ, G.SatisfiesPotentialIneq c y) ↔ ¬ G.HasNegativeDicircuit c := by sorry
end CombOpt.ShortestPath
Source
Cook, Cunningham, Pulleyblank & Schrijver, Combinatorial Optimization (Wiley, 1998), Theorem 2.12, p. 25 (PDF p. 34); feasible potential p. 21 (PDF p. 30)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.