\begin{theorem}
For every Rust byte slice that is none of the unsigned \texttt{inf}, \texttt{infinity}, and \texttt{nan} keywords, and either separate sign argument, the specialized \texttt{parse_inf_nan} returns normally with \texttt{None}.
\end{theorem}
\begin{proof}
Fix a slice $s$ and a Boolean \texttt{negative} satisfying the three
hypotheses.  Write $L$ for the length of $s$ and $b_j$ for the unsigned
natural value of its byte at index $j$.  The first hypothesis is exactly the
Rust-slice length condition of \noderef{SourceValidByteSlice}; no content or
UTF-8 condition is being used.  The other hypotheses, after unfolding
\noderef{DecimalGoalVocabularyDefault}, say respectively that the complete
byte list is neither an ASCII-case variant of \texttt{inf} or
\texttt{infinity}, nor an ASCII-case variant of \texttt{nan}.  Indeed, with
sign argument \texttt{none}, the sign-byte prefix is empty, so the body in
\texttt{specialLiteral} is the complete byte list.

Unfold \noderef{num_imp_dec2flt_parse_parse_inf_nan}.  Its first test is
$L=8$.  If that is false, its second and only remaining length test is $L=3$.
Consequently, when $L$ is neither eight nor three, both tests are false and
the displayed final branch is immediately \texttt{ok none}; no index, cast,
shift, bit operation, floating-point constant, or negation is evaluated.

Suppose first that $L=8$.  In
\noderef{SliceU8_Insts_Dec2flt_modelNumImpDec2fltCommonByteSlice_read_u64},
the range request \texttt{self[..8]} is in bounds because $8=L$.  The
destination array also has exactly eight entries, so
\texttt{copy\_from\_slice} has equal source and destination lengths and
succeeds.  The final \texttt{from\_le\_bytes} therefore returns the word
\[
  r=\sum_{j=0}^{7} b_j2^{8j},
\]
with $b_0$ in the least significant byte.  Thus this entire bind returns
normally.

The next operation ANDs $r$ with
$M=\mathtt{0xdfdfdfdfdfdfdfdf}$.  By \noderef{ModelU64BitAnd}, it succeeds and
acts independently on corresponding bits.  Every byte of $M$ is
\texttt{0xdf}, whose binary form has every bit set except the ASCII case bit
\texttt{0x20}.  Hence byte $b_j$ of $r\mathbin{\&}M$ is
$b_j\mathbin{\&}\mathtt{0xdf}$.  For any uppercase-letter byte $u$ occurring
below, the equality
$b_j\mathbin{\&}\mathtt{0xdf}=u$ holds exactly when $b_j=u$ or
$b_j=u+\mathtt{0x20}$: equality fixes all seven retained bits, while the one
cleared bit may be zero or one.  These are precisely the uppercase and
lowercase forms of that letter.

The eight-byte match has only one branch returning \texttt{some}: its decimal
constant $6436850368004902473$ is
\texttt{0x5954494e49464e49}, whose little-endian bytes are
\texttt{49 4e 46 49 4e 49 54 59}, namely \texttt{INFINITY}.  Equality with
this masked word therefore says that the complete eight input bytes are,
position by position, uppercase or lowercase forms of \texttt{infinity}.
The body equal to the complete byte list then satisfies the eight-letter
alternative of \texttt{specialLiteral} with sign \texttt{none} and kind
\texttt{false}, contradicting the unsigned-infinity hypothesis.  This match
branch is impossible.  The branches for the two other displayed constants and
the default branch each return \texttt{ok none} directly, so every possible
eight-byte execution has the required result.

It remains to consider $L=3$.  The indices $0$, $1$, and $2$ are all strictly
below $L$, so each of the three extracted indexing binds succeeds and returns
the corresponding byte.  Each such value lies in $0,\ldots,255$; its checked
cast from \texttt{u8} to \texttt{u64} is therefore in range, succeeds, and
preserves its value exactly.  These two extracted shifts are specifically
\texttt{c <<< 16\#i32} and \texttt{b <<< 8\#i32}: their right operands are
signed \texttt{i32} values, not unsigned \texttt{u32} values.  The Aeneas
\texttt{UScalar}-by-\texttt{IScalar} left-shift operation first checks that the
signed count is nonnegative, converts it to a natural number, and then checks
that number against the bit width of the unsigned left operand; on success it
returns the zero-filled 64-bit shift, and either failed check returns integer
overflow.  Here the literal counts have signed values $16$ and $8$, so both
are nonnegative, their natural conversions remain $16$ and $8$, and both are
strictly below the \texttt{u64} width $64$.  Thus both shifts succeed.

They also have no high-bit truncation.  Since each input came from a byte,
$0\leq b_2,b_1\leq255$, whence
\[
 b_2 2^{16}\leq255\cdot2^{16}<256\cdot2^{16}=2^{24}<2^{64}
 \quad\hbox{and}\quad
 b_1 2^8\leq255\cdot2^8<256\cdot2^8=2^{16}<2^{64}.
\]
Consequently the checked 64-bit results are exactly $b_2 2^{16}$ and
$b_1 2^8$, rather than reductions modulo $2^{64}$.  Their occupied bit ranges
are respectively $16$--$23$ and $8$--$15$; the widened $b_0$ occupies bits
$0$--$7$.  They are disjoint.
Therefore both operations described by \noderef{ModelU64BitOr} succeed, and
the two extracted ORs assemble exactly the little-endian word
\[
  r=b_0+b_1 2^8+b_2 2^{16}<2^{24}.
\]
The subsequent AND with $M$ succeeds by \noderef{ModelU64BitAnd}; its low
three bytes clear exactly the same case bit as above, and its upper five bytes
remain zero.

There are now only two potentially successful matches.  The constant
$4607561=\mathtt{0x464e49}$ has little-endian bytes
\texttt{49 4e 46}, namely \texttt{INF}.  Equality after masking says exactly
that the three input bytes are a case variant of \texttt{inf}; choosing the
complete byte list as the empty-prefix body establishes
\texttt{specialLiteral (bytes s) none false}, contradicting the first grammar
negation.  Similarly,
$5128526=\mathtt{0x4e414e}$ has little-endian bytes
\texttt{4e 41 4e}, namely \texttt{NAN}.  Its match would establish
\texttt{specialLiteral (bytes s) none true}, contradicting the second grammar
negation.  The remaining displayed constant
$6436850368004902473$ cannot equal this masked word because that word is below
$2^{24}$, and in any event its branch returns \texttt{ok none}; the default
branch also returns \texttt{ok none}.  Thus every possible three-byte
execution returns \texttt{ok none}.

Finally, in the extracted definition the infinity/NaN constant lookup, the
test of the separate \texttt{negative} argument, and the possible negation all
occur only after one of the successful word matches.  The grammar-negation
hypotheses excluded every such match at lengths eight and three.  Hence none
of that sign-dependent code is reached, for either Boolean value, and the
three exhaustive length cases prove the result.
\end{proof}
