[guided]The final step is the bridge from total unimodularity to integrality of the maximum flow. Recall the construction used in the preceding steps. The augmented arc set is $A_0=A\cup\{a_0\}$ with $a_0=(t,s)$, and the variable $z\in\mathbb{R}^{A_0}$ is defined by $z_a=x_a$ for $a\in A$ and $z_{a_0}=\nu$. The matrix $B_r$ is obtained from the augmented incidence matrix by deleting one row, $I_A$ selects the original arc coordinates, and $C$ is obtained by stacking $B_r$, $-B_r$, $I_A$, and $-I_A$. The right-hand side $d$ has corresponding blocks $0$, $0$, $u$, and $0$. The previous determinant argument proves that this matrix $C$ is totally unimodular, and the capacity hypothesis gives $d\in\mathbb{Z}^{2|V|-2+2|A|}$. Thus the feasible region is
\begin{align*}
P=\{z\in\mathbb{R}^{A_0}: Cz\leq d\},
\end{align*}
where $C$ is totally unimodular and $d$ is integral. The point $z=0$ belongs to $P$, so the feasible region is nonempty. For each original arc $a\in A$, the inequalities in $Cz\leq d$ give
\begin{align*}
0\leq z_a\leq u_a.
\end{align*}
The remaining coordinate is $z_{a_0}=\nu$. It is also bounded, because $s\neq t$ and the balance equation at the source $s$ expresses it as
\begin{align*}
z_{a_0}=\nu=\sum_{a=(s,w)\in A} z_a-\sum_{a=(w,s)\in A} z_a.
\end{align*}
Each term on the right-hand side is bounded between $0$ and its capacity, and there are only finitely many arcs. Thus $P$ is a nonempty bounded polyhedron, hence a compact polytope. By the finite-dimensional polytope theorem, $P$ is the convex hull of its vertices. An affine function on a convex hull takes its maximum at a vertex whenever it attains a maximum: if a maximizer is written as a convex combination of vertices, at least one vertex in that combination has objective value no smaller. Therefore the linear objective $z\mapsto z_{a_0}$ has an optimal solution that is a vertex of $P$.
Now let $z^*$ be such an optimal vertex. The defining property of a vertex is that the active constraints determine the point uniquely. Formally, let
\begin{align*}
I:=\{i: C_i z^*=d_i\}
\end{align*}
be the set of active inequalities. If the active rows did not span $\mathbb{R}^{A_0}$, there would exist a nonzero vector $h\in\mathbb{R}^{A_0}$ with
\begin{align*}
C_i h=0 \quad \text{for every } i\in I.
\end{align*}
For sufficiently small $\varepsilon>0$, the points $z^*+\varepsilon h$ and $z^*-\varepsilon h$ would still satisfy all inactive strict inequalities and would keep all active inequalities equalities. Hence both points would lie in $P$, and $z^*$ would be the midpoint of two distinct feasible points, contradicting that $z^*$ is a vertex. Therefore the active rows span $\mathbb{R}^{A_0}$.
Because the active rows span, we can choose a subset $J\subset I$ with exactly $|A_0|$ rows such that
\begin{align*}
C_J\in\mathbb{Z}^{A_0\times A_0}
\end{align*}
is nonsingular. Since $C$ is totally unimodular, every square subdeterminant of $C$ is $-1$, $0$, or $1$; nonsingularity excludes $0$, so
\begin{align*}
\det C_J\in\{-1,1\}.
\end{align*}
The point $z^*$ satisfies the selected active equations:
\begin{align*}
C_Jz^*=d_J,
\end{align*}
and $d_J$ is integral because the capacities $u_a$ are integral and all other right-hand sides are $0$. By Cramer's rule, the coordinate $(z^*)_k$ is
\begin{align*}
(z^*)_k=\frac{\det C_J^{(k)}}{\det C_J},
\end{align*}
where $C_J^{(k)}$ is the integer matrix obtained from $C_J$ by replacing its $k$-th column by $d_J$. Thus $\det C_J^{(k)}\in\mathbb{Z}$ and $\det C_J=\pm 1$, so $(z^*)_k\in\mathbb{Z}$. Since this holds for every coordinate,
\begin{align*}
z^*\in\mathbb{Z}^{A_0}.
\end{align*}
Finally, the original flow variables are $x_a^*=z_a^*$ for $a\in A$, and the flow value is $\nu^*=z_{a_0}^*$. Hence the optimal flow and its value are integral.[/guided]