\begin{helper}[Backward induction for an extracted partial loop]
Let a loop body on states of type $\alpha$ return either a continuation state
or a completed value of type $\beta$.  Let $R(x,y)$ be a relation between an
input state and a completed value.  Assume that every successful done step
from $x$ to $y$ establishes $R(x,y)$, and every successful continuation from
$x$ to $x'$ transports $R(x',y)$ backward to $R(x,y)$.  Then every successful
evaluation of the extracted partial loop from $x$ to $y$ establishes
$R(x,y)$.
\end{helper}
\begin{proof}
Apply fixed-point induction to the partial loop functional, with induction
predicate saying that every successful result $y$ of the current
approximation from $x$ satisfies $R(x,y)$.  The predicate is admissible in the
flat result order: the only nontrivial approximant comparison is from
divergence, and divergence cannot equal a successful result.  For the
fixed-point step, evaluate the body at $x$.  Failure or divergence cannot
produce the assumed successful loop result.  A done result is handled by the
done hypothesis.  A continuation result $x'$ reduces the loop evaluation to
the recursive evaluation from $x'$; fixed-point induction gives $R(x',y)$,
and the continuation hypothesis gives $R(x,y)$.  This is the desired
backward induction rule.  It is the backward analogue of the forward
invariant rule packaged by \noderef{ResultLoopPartial}.
\end{proof}
