We will prove that
1 \Rightarrow 2 \Rightarrow 3 \Rightarrow 1.
(3 \Rightarrow 1) is more interesting. Suppose there are no s-t paths in G_f; then we must somehow come up with a cut (A,B) whose capacity is equal to that of the flow! To this end, define an s-t cut (A,B) as follows:
- A = all nodes reachable from s in G_{f}.
- B = everything else.
Notice that
- s \in A (s is trivially reachable from itself).
- t \in B (t can’t be in A, since we assumed there are no s-t paths in G_{f}).
and hence this is a
valid s-t cut.
The Flow Value Lemma tells us that the value of the flow is equal to the net flow across the cut (A,B), that is, v(f) = v(A,B) = \sum _{e : A \to B} f(e) \;\; - \sum _{e : B \to A} f(e).
Note that each edge (u,v) leaving A must be filled to capacity, since otherwise there would be a forwards edge from u to v with the remaining capacity in G_f, but then by definition we would have v \in A since v would be reachable in G_f. Similarly, each edge entering A must have 0 flow since if it didn’t, there would be a backwards edge from v to u in G_f, and then u would be in A as well.
Hence, we have
v(f)
= \quad \quad \quad {
Flow Value Lemma }
\sum _{e : A \to B} f(e) \;\; - \sum _{e : B \to A} f(e)
= \quad \quad \quad { All edges leaving
a are full, and all edges into
A are empty }
\sum _{e : A \to B} c(e) \;\; - 0
= \quad \quad \quad { Definition of
cut capacity }
c(A,B).