6 Searching for an Augmenting Path or a Blossom

Below we describe in some detail our formal total correctness proof of the search algorithm. Although the algorithm has been treated by numerous authors [1, 4,5,6], we believe that the following proof is more detailed than any previous exposition.

$$ \text {cap}(s) = {\left\{ \begin{array}{ll} 1 & {\text { if }} k=0\\ k & {\text { otherwise}}. \end{array}\right. } $$