\begin{lemma}[Constructed regular slow execution and raw-word certificate]
Let $s$ be any modeled byte slice with an actual normal decimal-sequence
parse to $d$. Suppose $d$ has positive exact-length decimal shape,
count at most 768 and $-324\le p<310$, and let
\[
 X=V(d)+\eta,\quad Y=V(d)+10^{p-768},\quad
 0\le\eta<10^{p-768},\quad d.\mathit{truncated}\iff\eta>0 .
\]
There is a biased pair $fp$ such that the actual specialized slow call on
$s$ returns normally to $fp$. Put
\[
 r=\operatorname{lor}\left(fp.m,
       ((fp.p_{\rm biased}\bmod2^{64})\,2^{52})\bmod2^{64}\right),
\]
where the signed remainder is nonnegative and converted to a natural.
Then $X\ge0$ and at least one of these raw-word alternatives holds, with
$U=2^{52}$, $T=2^{53}$, $J=2047U$ and $H=2^{1024}-2^{970}$:
\begin{enumerate}
\item $r=J$ and $H\le X$;
\item for some natural $j\le T$, $r=j$, $X\le T2^{-1074}$,
$X\le j2^{-1074}+2^{-1075}$,
$j2^{-1074}\le X+2^{-1075}$, and
$(X=(j+1/2)2^{-1074}\ \lor\ X=(j-1/2)2^{-1074})
\Longrightarrow j\bmod2=0$;
\item for some natural $p,j$ with $2\le p\le2046$, $U\le j\le T$,
and $p<2046$ or $j<T$, put $\Delta=2^{p-1075}$.
Then $r=pU+(j-U)$, $U\Delta\le X\le T\Delta$, $X<H$,
$X\le j\Delta+\Delta/2$, $j\Delta\le X+\Delta/2$, and
$(X=(j+1/2)\Delta\ \lor\ X=(j-1/2)\Delta)
\Longrightarrow j\bmod2=0$.
\end{enumerate}
Moreover there is an F64 magnitude word assembled from $fp$ that
nearest-even rounds $X$. No enclosing slow or dispatcher-success
hypothesis is assumed.
\end{lemma}
\begin{proof}
Unfold the actual specialized call using
\noderef{P9_T1_ActualDispatchOperations} and the pinned body
\noderef{num_imp_dec2flt_slow_parse_long_mantissa}.
The trait instance in the actual dispatch record reduces to the same
binary64 Float instance used in all the loop equations below.
\noderef{ParserExponentConstants} supplies normal constant computations
with infinite power 2047, minimum exponent $-1022$ and significand
width 52. The zero-pair constructor returns $(0,0)$ and the infinity
constructor returns $(0,2047)$ directly. Rewrite the parse by the given
call. Positive shape makes the count nonzero, and the point bounds make
both initial cutoff tests false.

Apply \noderef{P495_T1_SlowLoop0Execution} to the original adjacent-cell
package. It constructs a normal loop-zero return with None, shape,
point in $[-324,0]$, $0\le e_0\le1260$ and fixed endpoints.
Apply \noderef{P529_T1_Loop1Execution} there: it constructs a normal
loop-one return with None, point zero, head in $[5,9]$, shape, endpoints
and $e_1\le e_0$.
Their actual equations permit \noderef{P529_T1_NormalizationBounds},
which gives $e_1\ge-1079$ and $Y/2^{e_1}\le1$.
Apply \noderef{P529_T1_Loop2Execution} to construct the checked
decrement $e_s=e_1-1$ and normal loop-two return.
It gives $e_2=\max(e_1-1,-1022)$, $-18\le p_2\le0$,
shape, endpoint equations at $e_2+1$, and either the no-shift identity
or one actual right shift.
In particular
\[
 -1022\le e_2\le1259,\qquad e_1\le e_2+1 .
\]
All constructed normal loop returns have None, so the two early-result
matches take their None arms.

The first checked bias computation follows the source order:
$e_2-(-1022)$ lies in $[0,2281]$ and its successor
$b=e_2+1023$ in $[1,2282]$; both fit I32 exactly.
The first saturation test is therefore $b\ge2047$, equivalently
$e_2\ge1024$.
Before completing the two source branches, construct the mathematical
rounding certificates, independently of which branch is reached.
The original $X<Y$ and endpoint bound give
$0<X/2^{e_2+1}<Y/2^{e_2+1}\le1$.
\noderef{P529_T1_FinalShiftCertificate} constructs the actual normal
53-bit shift, positive trimmed $d_3$, $p_3\le16$, and endpoints
\[
 t=X/2^{e_2-52}=V(d_3)+\eta_3,\quad
 Y_3=Y/2^{e_2-52}=V(d_3)+u_3,\quad 0<t<2^{53}.
\]
\noderef{P529_T1_SeparationPackage} applies to the constructed exact
loop, decrement and final-shift equations. It gives both half-integer
and odd-integer separation at $d_3$.
The safe range $t<2^{53}<2^{64}-1/2$, point and trim clauses allow
\noderef{P529_T1_RoundArbitraryEndpoint} to construct its normal round
$m$ with the two nearest inequalities and even-tie parity.
Thus $m\le2^{53}$ by integrality.
If $e_2>-1022$, its maximum equation forces
$e_s=e_2>-1022$, so loop two is the identity and $d_2=d_1$.
\noderef{P472_T1_DecimalValueBounds} on the point-zero head at least
five gives $V(d_1)\ge1/2$.
Hence $X/2^{e_2+1}\ge1/2$ and $t\ge2^{52}$, the normal-binade
lower bound required for encoding.

If $m\ge2^{53}$, apply \noderef{P529_T1_CarryRoundExecution}
with the odd-integer separation, actual first round and endpoint
witnesses. It constructs the actual nonreset one-bit right shift and
normal reround $m_4$, with endpoints at $e_2-51$ and independent
nearest/parity laws for $t/2$. If no carry occurs, set a purely
mathematical unused witness $m_4=0$; no reround is claimed in that
case. The conditional reround premise is then vacuous.
\noderef{P529_T1_EncodingArithmetic} applies to $X,e_2,m,m_4$
and gives the explicit raw-word alternatives in the statement.
We now verify that this arithmetic raw word is exactly the source result,
not merely a nearby encoder.

If the FIRST test saturates, the source returns $(0,2047)$ immediately.
The unused constructed shift and round certificates above are not
asserted to be reached in this branch. Their arithmetic lemma's first
branch returns $2047\,2^{52}$, agreeing exactly.

Otherwise the source computes significand width 52, casts it to Usize,
adds one and shifts the decimal record by 53.
The cast and addition are exact under the ratified width in
\noderef{Assumptions}; 53 is far below the Usize maximum.
The actual shift and round coincide with the constructed $d_3,m$.
The U32 addition $52+1=53$ is in bounds; the U64 shift of one by
53 is legal and equals $2^{53}$, so the carry guard is exactly $m\ge2^{53}$.

In a carry branch the source first performs the constructed normal right
shift, then checked exponent increment $e_2+1$ and then the independently
constructed reround. The increment lies in $[-1021,1024]$ because
the first saturation test was false, so it is safe.
Its checked bias subtraction and successor yield $e_2+1024$ in
$[2,2047]$. The SECOND saturation test is exactly $e_2\ge1023$.
If true, the source returns $(0,2047)$, agreeing with the second branch
of the arithmetic raw word. If false, the repeated checked bias
calculation gives $e_2+1024$ in $[2,2046]$.
In a noncarry branch the repeated checked calculations give
$e_2+1023$ in $[1,2046]$.
In either nonsaturating branch the shift of one by 52 equals
$U=2^{52}$, and the checked subtraction $U-1$ is safe.
The conditional biased-exponent subtraction is by at most one from a
positive bias and therefore remains in $[0,2046]$.
The mask returns the chosen round word modulo $U$: each bit below
position 52 is preserved and all higher bits are zero.
These are the precise bounded operations in
\noderef{ModelU64Shl} and \noderef{ModelU64BitAnd}, also used for the
trait's corresponding built-in scalar operations in the pinned body.
All scalar updates have thus been constructed in source order.

Call the masked word $a<U$ and biased field $b'\in[0,2046]$.
Its assembly shift is $b'U<2^{64}$, and $a$ occupies only the lower
52 bits while $b'U$ occupies none of them.
Bit-by-bit, their OR is $b'U+a$; there is no carry across the disjoint
bit ranges. This agrees with \noderef{ModelU64BitOr} and the formula
in \noderef{DecimalGoalVocabularyDefault}.
The signed exponent remainder and shifted-word remainder are identities
because $0\le b'<2^{64}$ and $b'U<2^{64}$.
Thus the actual pair's raw word equals precisely the arithmetic raw
word in every branch. Rewriting all the constructed subcalls into the
pinned body proves an actual normal slow return $fp$ and its certificate.

It remains to construct an assembled magnitude, rather than assuming
assembly already succeeded. Each raw alternative implies
$0\le r\le2047U<2^{64}$: the low grid has $r\le2U$;
the normal grid has $r\le2046U+U$, with the top equality excluded by
its range clause; infinity has equality with $2047U$.
The bounded U64 with natural value $r$ therefore exists and is an F64
word; choose it as magnitude $w$.
Its value equation is exactly the assembled-word definition.
Apply \noderef{Binary64NearestEvenAssembly} with the established
$X\ge0$ and the SAME explicit raw-word alternatives.
It gives nearest-even magnitude rounding of $X$.
This proves both operational existence and the unrestricted certificate,
including the zero/subnormal low grid and the top-overflow tie.
\end{proof}
