\begin{lemma}[Unsigned-to-I32 cast congruence]
For every extracted unsigned machine word $x$, there is an integer $k$ such
that the signed value of its Rust cast to I32 is
\[
  \operatorname{hcast}_{\mathrm{I32}}(x)=x+k2^{32}.
\]
\end{lemma}
\begin{proof}
Unfold the unsigned-to-signed cast supplied by the Aeneas scalar semantics
in the shared preamble.  It zero-extends or truncates the source bitvector to
32 bits.  The unsigned value of the resulting bitvector is therefore
$r=x\bmod 2^{32}$.  Its signed interpretation is $r$ when $r<2^{31}$ and
$r-2^{32}$ otherwise.  Euclidean division gives
$r=x-2^{32}\lfloor x/2^{32}\rfloor$.  In the first case choose
$k=-\lfloor x/2^{32}\rfloor$; in the second choose that integer minus one.
Both choices give the displayed equality.
\end{proof}
