\begin{lemma}
Let $s$ be a source string and $x$ a valid numeric lexeme such that the byte
values of $s$ are \texttt{renderNumeric($x$)}.  Let $f$ be an \texttt{F64}
binary64 word and let $t$ be a \texttt{Dec2FltTrace F64}.  Suppose
\[
\begin{split}
&\texttt{num.imp.dec2flt.dec2flt\_with\_trace}\\
&\quad\texttt{F64.Insts.Dec2flt\_modelNumImpDec2fltLemireU64}\\
&\quad\texttt{F64.Insts.CoreOpsArithDivF64F64}\\
&\quad\texttt{F64.Insts.CoreOpsArithMulF64F64}\\
&\quad\texttt{F64.Insts.CoreOpsArithNegF64}\ s
 =\texttt{ok (Ok }f\texttt{, }t\texttt{)}.
\end{split}
\]
Put $x_0$ equal to $x$ with only \texttt{leadingSign} replaced by
\texttt{none}.  Then one of the following surviving trace shapes is exhibited.

In the fast case there are a body $b$, sign Boolean $n$, parsed record $d$,
fast input $d_f$, and optional fast result $o$ such that
\texttt{$t$ = FastPath $b$ $n$ (some $d$) $d_f$ $o$ $f$}; moreover $b$ is
nonempty and source-valid, its byte values are
\texttt{renderNumeric($x_0$)}, $n=\texttt{lexicalNegative($x$)}, and
\texttt{parse\_number($b$) = ok (some $d$)}.

In the assembled case there are an assembly record $a$ and parsed record $d$
such that \texttt{$t$ = Assembled $a$}; moreover $a.\mathit{body}$ is
nonempty and source-valid, its byte values are
\texttt{renderNumeric($x_0$)},
$a.\mathit{negative}=\operatorname{lexicalNegative}(x)$,
$a.\mathit{parse\_number\_result}=\texttt{some }d$, and
\texttt{parse\_number($a.\mathit{body}$) = ok (some $d$)}.  The constructor
equalities and all accompanying facts are the conjunctions displayed in the
Lean statement.
\end{lemma}
\begin{proof}
Put $B=\operatorname{bytes}(s)$.  Unfold
\noderef{DecimalGoalVocabularyDefault}.  Validity says that every recorded
digit is below ten, that an exponent (when present) has a digit, and that the
integer and fractional parts contain at least one digit between them.
Consequently the rendered list $B$ is nonempty.  If $x$ has negative sign its
first byte is $45$; if it has positive sign its first byte is $43$; and if it
has no sign its first byte is a digit byte in $48,\ldots,57$ or the decimal
point $46$.  In particular, after deleting a present sign, the remaining
list is still nonempty and is exactly
\texttt{renderNumeric($x_0$)}.

By \noderef{ModelStrAsBytes}, the first bind in
\noderef{num_imp_dec2flt_dec2flt_with_trace} returns the full slice whose byte
values are $B$.  The source-string length bound also makes this slice
source-valid in the sense of \noderef{SourceValidByteSlice}.  By
\noderef{ModelSliceFirst}, its nonempty first call returns the first byte $c$.
Now inspect the two sign branches of the cited dispatcher definition.  For
$c=45$ the in-bounds range-from-one operation deletes precisely that negative
sign; for $c=43$ it deletes precisely the positive sign; otherwise it returns
the original slice.  Denote the resulting slice by $b$.  The range operation
cannot fail in either sign case because the byte just returned at index zero
exists.  Therefore
\[
 b.\mathit{val}\ne[],\qquad
 \operatorname{bytes}(b)=\operatorname{renderNumeric}(x_0),\qquad
 (c=45)=\operatorname{lexicalNegative}(x).                 \tag{1}
\]
Deleting zero or one byte cannot increase length, so the source bound on $B$
and \noderef{SourceValidByteSlice} give
\texttt{SourceValidByteSlice($b$)}.

The next emptiness test is false by (1), so the dispatcher reaches
\texttt{parse\_number($b$)}.  A failure at this or any later bind would
propagate as a failed \texttt{Result}, contradicting the assumed normal
equation.  We show that the returned option cannot be \texttt{none}.  The
unsigned byte list in (1) begins with a digit or decimal point.  Hence it is
neither a case-insensitive \texttt{inf}/\texttt{infinity} body nor a
case-insensitive \texttt{nan} body under the \texttt{specialLiteral}
definition in \noderef{DecimalGoalVocabularyDefault}.

It is important here that the rejection theorem is applied to the actual
instance passed by the dispatcher.  Unfold
\noderef{F64_Insts_Dec2flt_modelNumImpDec2fltLemireU64}: its
\texttt{traitsFloatExtInst} field is exactly
\noderef{F64_Insts_Dec2flt_modelNumImpTraitsFloatExtU64}.  Unfold that record:
its \texttt{FloatInst} field is exactly
\noderef{F64_Insts_Dec2flt_modelNumImpTraitsFloatU64}; unfolding the latter
identifies the concrete binary64 float record used by the specialized helper.
Thus the call in
\noderef{num_imp_dec2flt_dec2flt_with_trace} is literally the call in the
conclusion of \noderef{SpecialHelperRejection}, with slice $b$ and Boolean
$c=45$.  Source-validity and the two keyword exclusions just proved discharge
its hypotheses, so the call returns \texttt{ok none}.  If
\texttt{parse\_number($b$)} had returned \texttt{ok none}, the following
match would therefore take its invalid arm and return first component
\texttt{Err}, not the assumed \texttt{Ok $f$}.  Hence, for some record $r$,
\[
             \texttt{parse\_number($b$)=ok (some $r$)}.     \tag{2}
\]

Continue through the two arms after (2) in the extracted dispatcher.  Its
native call is made on $r$ with only \texttt{negative} replaced by $c=45$.
If the call returns \texttt{some $v$}, the returned pair is definitionally
\[
 \texttt{(Ok $v$, FastPath $b$ $(c=45)$ (some $r$)
         $r[negative:=(c=45)]$ (some $v$) $v$)}.
\]
Equality with the assumed pair gives $v=f$ by constructor injectivity.  Choose
$b,c=45,r,r[\mathit{negative}:=(c=45)]$, and \texttt{some $f$}.  The exact
\texttt{FastPath} equality follows, while (1), source-validity, and (2) give
all five accompanying facts of the first alternative.

If the native result is \texttt{none}, every successful continuation returns
an \texttt{Assembled} constructor.  Let $a$ be the complete record displayed
by that return.  Both final sign arms set
$a.\mathit{body}=b$ and set $a.\mathit{negative}$ to the Boolean $c=45$.
They set
\[
 a.\mathit{parse\_number\_result}
   =\texttt{some }\{r\texttt{ with many\_digits}:=b_1\},
\]
where the immediately preceding branch sets $b_1$ to \texttt{true} when
$r.\mathit{many\_digits}$ is true and to \texttt{false} otherwise.  A case
split on that Boolean shows that this record update is exactly $r$.  Thus,
choosing $d=r$, the field is \texttt{some $d$} and (2) is precisely the
required parse equation for $a.\mathit{body}$.  Constructor injectivity gives
the exact equation \texttt{$t$ = Assembled $a$}; (1) and the source-validity
argument give the remaining assembled facts.  These native-result cases
exhaust the successful numeric execution and establish the disjunction.
\end{proof}
