\begin{helper}[Exact rejection by the extracted special-literal helper]
For every byte slice $s$ and Boolean $n$, if the complete byte list of $s$
is neither an unsigned case-insensitive infinity literal nor an unsigned
case-insensitive NaN literal, then the extracted specialized
\texttt{parse\_inf\_nan} operation for binary64 returns normally with
\texttt{None} on $(s,n)$.
\end{helper}
\begin{proof}
Unfold \noderef{num_imp_dec2flt_parse_parse_inf_nan}.  Its only potentially
successful lengths are eight and three.  If the slice length is neither,
both length tests are false and the definition returns \texttt{ok none}
without indexing the slice.

Suppose first that the length is eight.  By
\noderef{NumberHelperReadEightBytes}, the extracted read succeeds with a
64-bit word $w$ whose $i$th little-endian byte is exactly byte $i$ of $s$,
for every $0\leq i<8$.  The following AND clears bit $5$ in every byte, as
specified by \noderef{ModelU64BitAnd}, because every byte of
$\mathtt{0xdfdfdfdfdfdfdfdf}$ is $\mathtt{0xdf}$.  Among the three displayed
match constants in the eight-byte branch, only
$6436850368004902473=\mathtt{0x5954494e49464e49}$ can return
\texttt{Some}; in little-endian order its bytes spell \texttt{INFINITY}.
If the masked word equalled this constant, extracting each of its eight
bytes would show that the corresponding input byte is either the displayed
uppercase byte or that byte plus $\mathtt{0x20}$, namely the lowercase form.
The complete input list would therefore satisfy the eight-letter infinity
alternative of \texttt{specialLiteral} in
\noderef{DecimalGoalVocabularyDefault} with sign \texttt{none} and kind
\texttt{false}, contrary to the first hypothesis.  Thus this successful
match is impossible.  The other two constants and the default branch return
\texttt{None} directly.

Now suppose the length is three.  The indices $0,1,2$ are in bounds, so the
three indexing operations succeed with the corresponding bytes.  Each
widening cast from \texttt{u8} to \texttt{u64} preserves the byte value.  The
shift counts $16$ and $8$ are nonnegative and below $64$, hence the checked
shifts succeed.  Their occupied bit ranges are disjoint, and the two ORs
described by \noderef{ModelU64BitOr} assemble
$b_0+b_1 2^8+b_2 2^{16}$.  The final AND again clears exactly the ASCII case
bit of each byte.

There are two successful three-byte constants.  The little-endian bytes of
$4607561=\mathtt{0x464e49}$ spell \texttt{INF}.  Equality with this masked
word forces the three input bytes to be uppercase or lowercase variants of
\texttt{inf}; choosing the complete input as the body gives an unsigned
infinity witness under \noderef{DecimalGoalVocabularyDefault}, contradicting
the first hypothesis.  Likewise the little-endian bytes of
$5128526=\mathtt{0x4e414e}$ spell \texttt{NAN}, and equality would give the
unsigned NaN witness forbidden by the second hypothesis.  The remaining
displayed constant and the default branch return \texttt{None}.  Both
successful guards have therefore been excluded, independently of the
separate Boolean sign argument, and every length case returns
\texttt{ok none}.
\end{proof}
