Path Decomposition of Integral Flows #
Decomposes a feasible integral s-t flow on a Cslib.Algorithms.Lean.MaxFlow.Network into
simple s-t paths along positive-flow arcs: a flow of value k contains k
simple s-t paths such that each arc (u, v) lies on at most f u v of them. The remaining
flow is a circulation and is not recorded; this is the path half of the classical flow
decomposition. Also provides cancellation of antiparallel flow, which keeps the value and leaves
positive flow on at most one arc of each antiparallel pair. These are the ingredients for deriving
Menger's theorem from the integral max-flow/min-cut theorem
(CslibFrontier.Algorithms.Lean.MaxFlow.Menger).
Main definitions #
Cslib.Algorithms.Lean.MaxFlow.Network.Flow.IsFlowPath: a simples-tpath along positive-flow arcs.Cslib.Algorithms.Lean.MaxFlow.Network.Flow.cancel: cancellation of antiparallel flow.
Main results #
Cslib.Algorithms.Lean.MaxFlow.Network.Flow.exists_isFlowPath: a flow of positive value has a flow path.Cslib.Algorithms.Lean.MaxFlow.Network.Flow.exists_flowPaths: flow decomposition into paths.Cslib.Algorithms.Lean.MaxFlow.Network.Flow.value_cancel,Cslib.Algorithms.Lean.MaxFlow.Network.Flow.cancel_eq_zero_or: cancellation keeps the value and removes antiparallel flow.
A flow of positive value has a flow path. If f.value > 0, some simple s-t path
uses only arcs with positive flow.
Flow decomposition into paths (path part of the classical flow decomposition):
a feasible integral flow f of value k contains k simple s-t paths along positive-flow
arcs such that every arc (u, v) lies on at most f u v of them. (The remaining flow consists of
circulations, which are not recorded. If N.s = N.t, then k = 0.)