\begin{theorem}
For every source-valid optionally signed, ASCII-case-insensitive NaN literal, the extracted \texttt{f64} parser returns normally with \texttt{Ok} of a word satisfying the binary64 NaN predicate.
\end{theorem}
\begin{proof}
Fix $s$ and $\mathit{sign}$ satisfying the two hypotheses.  Unfold
\noderef{DecimalGoalVocabularyDefault} in the special-literal hypothesis.
There is a list $B$ such that
\[
 \mathsf{bytes}(s)=\mathsf{signBytes}(\mathit{sign})\mathbin{++}B
 \quad\hbox{and}\quad
 \mathsf{List.Forall2}(R,B,[110,97,110]),                 \tag{1}
\]
where $R(a,l)$ means $a=l$ or $a+32=l$.  Equality of lengths in the
\texttt{Forall2} relation gives $|B|=3$.  Its three clauses say, in order,
that the entries of $B$ lie in
\[
             \{110,78\},\qquad \{97,65\},\qquad
             \{110,78\}.                                \tag{2}
\]
In particular $B$ is nonempty and its first byte is either $110$ or $78$.
The same unfolding gives
\[
 \mathsf{signBytes}(\mathsf{none})=[],\quad
 \mathsf{signBytes}(\mathsf{some\ true})=[45],\quad
 \mathsf{signBytes}(\mathsf{some\ false})=[43].          \tag{3}
\]

We next follow the initial dispatcher operations exactly.  By
\noderef{ModelStrAsBytes}, the first bind in
\noderef{num_imp_dec2flt_dec2flt_with_trace} succeeds with the complete
ordered byte slice of $s$, and by \noderef{ModelSliceFirst} the second bind
returns its actual first byte.  The \texttt{bytes} field unfolded in (1) maps
each actual \texttt{U8} to its value, preserving list length and order; two
\texttt{U8} values with equal natural values are equal.  Consequently (1)
and (3) determine the actual head and tail of the represented slice, not
merely an unrelated list of observations.  Split into the three possible
values of $\mathit{sign}$.  For \texttt{some true}, (1) and (3) make that byte $45$;
the first sign test succeeds, the range-from-one index has start $1$ in a
four-byte slice, and therefore succeeds with exactly its three-byte tail
$B$.  For \texttt{some false}, the first byte is $43$; the minus test is
false, the plus test is true, and the same in-bounds range call returns the
same tail $B$.  For \texttt{none}, the whole slice has byte list $B$ and its
first byte is $110$ or $78$ by (2), hence is neither $45$ nor $43$; both sign
tests are false and the dispatcher retains the whole slice.  Thus in every
case its \texttt{body1} is one and the same represented slice, which we also
call $B$, whose unsigned-value list is the $B$ of (1).  Its Boolean
\texttt{c = 45} is respectively true, false, and false, so it equals
\[
                 \mathit{negative}:=(\mathit{sign}=\mathsf{some\ true}).
                                                                    \tag{4}
\]
Since $|B|=3$, the extracted emptiness test is false and no sign-only branch
is taken.

The first conjunct of \texttt{sourceString} in
\noderef{DecimalGoalVocabularyDefault} bounds the complete source byte length
by $2^{63}-1$.  The dispatcher body just identified is either that complete
slice or its one-byte suffix, so it inherits this bound and satisfies
\noderef{SourceValidByteSlice}.  More sharply, (1) already gives $|B|=3$;
hence $|B|\leq9223372036854120459$, as required by the safe-length numeric
helper theorem.

We claim that $B$ is not the complete rendering of a valid unsigned numeric
lexeme.  Suppose instead that a lexeme $x$ had
$x.\mathit{leadingSign}=\mathsf{none}$, satisfied \texttt{validNumeric}, and
rendered to $B$.  Unfold \noderef{DecimalGoalVocabularyDefault} again.  If
$x.\mathit{integerDigits}$ is nonempty, its first digit $d$ satisfies
$d<10$, and because the leading sign is absent the first rendered byte is
$48+d\in\{48,\ldots,57\}$.  If the integer list is empty, the nonempty-
significand clause of \texttt{validNumeric} forces the fraction to be
\texttt{some ds} with $ds\ne[]$; the absent leading sign then makes the first
rendered byte the decimal point $46$.  Both conclusions contradict (2),
which makes the first byte $110$ or $78$.  This proves the required exclusion.

We may therefore apply \noderef{NumberHelperRejectionSafeLength} to the exact
body slice: source validity was inherited above, nonemptiness and length
three follow from (1), and the preceding paragraph is precisely its unsigned
numeric-rendering exclusion.  For the call defined by
\noderef{num_imp_dec2flt_parse_parse_number}, it yields
\[
             \texttt{parse\_number}(B)=\texttt{ok none}.           \tag{5}
\]
Also, (1) is exactly
$\mathsf{specialLiteral}(\mathsf{bytes}(B),\mathsf{none},\mathsf{true})$:
choose the same list $B$, use the empty unsigned sign prefix, and retain the
same \texttt{Forall2} proof.  Apply \noderef{SpecialHelperNan} with the
Boolean (4).  It supplies an $f$ such that
\[
 \texttt{parse\_inf\_nan}
   (\mathsf{F64Float},B,\mathit{negative})=\texttt{ok (some }f\texttt{)}
 \quad\hbox{and}\quad \mathsf{isNan}(f).                           \tag{6}
\]
Here the helper call is the extracted operation
\noderef{num_imp_dec2flt_parse_parse_inf_nan}, and
$\mathsf{isNan}$ is the raw-word predicate fixed by
\noderef{DecimalGoalVocabularyDefault}.

It remains to check that (6) is literally the instance selected by the public
dispatcher.  The \texttt{traitsFloatExtInst} field in the concrete record
\noderef{F64_Insts_Dec2flt_modelNumImpDec2fltLemireU64}, whose field schema is
\noderef{num_imp_dec2flt_Lemire}, reduces to
\noderef{F64_Insts_Dec2flt_modelNumImpTraitsFloatExtU64}.  Its
\texttt{FloatInst} projection, as specified by the structure
\noderef{num_imp_traits_FloatExt}, reduces in turn to exactly
\noderef{F64_Insts_Dec2flt_modelNumImpTraitsFloatU64}, the $\mathsf{F64Float}$
instance used in (6).  Thus no trait conversion or extensional identification
is being assumed.

Finally unfold \noderef{num_imp_dec2flt_dec2flt_with_trace} with the exact
initial execution established above.  Its body is nonempty, (5) selects the
\texttt{none} arm of the numeric result, and (6) substitutes
\texttt{some $f$} for the following special-helper result.  The definition
therefore returns normally with first component \texttt{Ok $f$} and trace
\[
 \texttt{Special }B\ \mathit{negative}\ \texttt{none}\
       \texttt{(some }f\texttt{)}\ f,
\]
which is exactly the corresponding constructor of
\noderef{num_imp_dec2flt_Dec2FltTrace}.  Unfolding
\noderef{num_imp_dec2flt_dec2flt}, the public wrapper binds that successful
pair and projects its first component, so its result is
\texttt{ok (Result.Ok $f$)}.  The second conjunct from (6) says
$\mathsf{isNan}(f)$.  This $f$ is the existential witness required by the
theorem.
\end{proof}
