\begin{theorem}[Public invalid rejection through the sharp safe length]
Every source-valid Rust string of length at most $9223372036854120459$ that
is classified as neither a complete numeric nor a complete special literal
makes the extracted public \texttt{f64} parser return normally with
\texttt{Err}.
\end{theorem}
\begin{proof}
Let $s$ satisfy the hypotheses and let $L$ be its byte length.  By
\noderef{ModelStrAsBytes}, the first bind of
\noderef{num_imp_dec2flt_dec2flt_with_trace} returns the identical complete
byte slice.  Unfolding the \texttt{none} clause of
\noderef{DecimalGoalVocabularyDefault}, the classification hypothesis gives
both absence of a complete numeric lexeme and absence of a complete signed
special literal.

By \noderef{ModelSliceFirst}, an empty input selects the empty-input branch.
The definition \noderef{num_imp_dec2flt_pfe_empty} returns normally with its
error record, and the traced dispatcher returns \texttt{Err} of that record.
Assume henceforth that the input is nonempty and call its first byte $c$.  The
dispatcher removes exactly one byte when $c$ is ASCII minus or plus, and
otherwise leaves the body unchanged.  If this body is empty, the input was a
sign alone; \noderef{num_imp_dec2flt_pfe_invalid} constructs its invalid-error
record normally and the sign-only branch returns \texttt{Err}.  We may
therefore also assume that the body is nonempty.

The body is a suffix of the original byte slice, so its length is at most
$L\leq9223372036854120459$ and hence it satisfies
\noderef{SourceValidByteSlice}.  It is not a complete unsigned numeric
literal.  Indeed, suppose an unsigned valid lexeme rendered the body.  If
$c$ was minus or plus, replacing that lexeme's absent leading sign by the
corresponding sign value preserves every clause of \texttt{validNumeric}, and
its rendering is the removed sign byte followed by the body, namely all bytes
of $s$.  If $c$ was not a sign, the body is all of $s$ and the unsigned lexeme
already renders it.  Either case supplies a complete numeric witness forbidden
by the classification hypothesis.  All premises of
\noderef{NumberHelperRejectionSafeLength} now hold, so
\texttt{parse\_number} returns \texttt{ok none} on the body.

We next check the special helper rather than assuming its rejection.  Unfold
\noderef{num_imp_dec2flt_parse_parse_inf_nan}.  At lengths other than three
and eight it returns \texttt{ok none} immediately.  At length eight, the
exact-length guard makes the read in
\noderef{SliceU8_Insts_Dec2flt_modelNumImpDec2fltCommonByteSlice_read_u64}
safe.  The mask $\mathtt{0xdfdfdfdfdfdfdfdf}$ clears exactly the ASCII case
bit in each byte, by \noderef{ModelU64BitAnd}.  Its only successful
eight-byte match is therefore a case variant of \texttt{infinity}; the other
displayed constants return \texttt{none}.  At length three, all three indices
are in bounds.  The casts are widening, the shift counts eight and sixteen
are below 64 by \noderef{ModelU64Shl}, and the two operations from
\noderef{ModelU64BitOr} assemble the bytes in little-endian order.  Applying
the same case-bit mask shows that the two successful constants are exactly
case variants of \texttt{inf} and \texttt{nan}.  Thus a \texttt{some} result
from the helper would mean that the unsigned body is one of precisely those
three case-insensitive keywords.

If such a keyword match existed, prepend a special sign value of
\texttt{some true} when the removed byte was minus, \texttt{some false} when
it was plus, and \texttt{none} when no byte was removed.  Together with the
helper's infinity-versus-NaN match, this is exactly a
\texttt{specialLiteral} witness for the complete original bytes under
\noderef{DecimalGoalVocabularyDefault}.  The invalid classification forbids
that witness.  Hence the special helper takes no successful match and returns
\texttt{ok none}; no infinity, NaN, or negation operation is reached.

The two established helper results put the traced dispatcher in its invalid
branch.  There \noderef{num_imp_dec2flt_pfe_invalid} returns the error record
normally, and \noderef{num_imp_dec2flt_dec2flt_with_trace} returns
\texttt{ok} of \texttt{Err} of that record paired with its invalid trace.
Finally, \noderef{num_imp_dec2flt_dec2flt} binds this normal traced result and
projects the first component, preserving the same \texttt{Err}.  Taking the
constructed empty-input or invalid-input record as $e$ in the corresponding
case proves the existential conclusion.
\end{proof}
