\begin{theorem}
For every normally successful numeric execution whose trace selects a raw pair for final assembly, its recorded assembled word agrees with unrestricted raw-pair assembly and has a clear sign bit.
\end{theorem}
\begin{proof}
Put $U=2^{52}$.  We first evaluate the significand-width constant used in
assembly.  Through the \texttt{traitsFloatExtInst} field of
\noderef{F64_Insts_Dec2flt_modelNumImpDec2fltLemireU64},
\noderef{F64_Insts_Dec2flt_modelNumImpTraitsFloatExtU64} selects exactly
\noderef{F64_Insts_Dec2flt_modelNumImpTraitsFloatU64}.  Its
\texttt{SIG\_TOTAL\_BITS} method is
\noderef{F64_Insts_Dec2flt_modelNumImpTraitsFloatU64_SIG_TOTAL_BITS}, which
calls \noderef{ModelF64MantissaDigits} and returns $53$.  Therefore the
checked subtraction in \noderef{num_imp_traits_Float_SIG_BITS_default} is
$53-1=52$, with no underflow, and the concrete \texttt{SIG\_BITS} call
returns the 32-bit word $52$.

We next establish the mantissa range which is actually preserved by the
integer and slow converters.  The required, and strongest uniformly true,
integer-converter fact is
\[
 \texttt{compute\_float}(F_0,q,w)=\texttt{ok }b
 \quad\Longrightarrow\quad b.m.\mathit{val}\leq U,                 \tag{1}
\]
where $F_0$ is the concrete \texttt{Float} instance just identified.  Unfold
\noderef{num_imp_dec2flt_lemire_compute_float}.  Each of its three eager
sentinels is made by
\noderef{num_imp_dec2flt_common_BiasedFp_zero_pow2}, hence has mantissa zero:
the zero, infinity, and error pairs are respectively $(0,0)$, $(0,i)$ for the
successfully returned infinite-power constant $i$, and $(0,-1)$.  Thus the
$w=0$, lower-decimal-cutoff,
upper-decimal-cutoff, approximation-error, severe-underflow, and final
infinity exits all satisfy (1).

On either remaining product branch, $w\ne0$.  Its leading-zero count is in
$0,\ldots,63$, so normalization uses a legal unsigned shift count.  The cast
of \texttt{SIG\_BITS} to \texttt{usize} is exactly $52$, and the checked
addition gives precision $55$.  The call to
\noderef{num_imp_dec2flt_lemire_compute_product_approx} either fails, which is
incompatible with the displayed successful premise, or returns a pair of
64-bit words $(lo,hi)$.  Shifting $hi$ right by $63$ uses a legal signed
nonnegative count and gives \texttt{upperbit} equal to zero or one; its cast
to \texttt{i32} is exact.  The checked operations
\[
 \texttt{upperbit}+64-52-3
\]
therefore give a shift count $9$ or $10$.  If \texttt{upperbit}$=0$, then
$hi<2^{63}$ and $hi\mathbin{\mathtt{>>}}9<2^{54}$; if it is one, then
$hi<2^{64}$ and $hi\mathbin{\mathtt{>>}}10<2^{54}$.  Hence the local
\texttt{mantissa} before rounding always has value less than $2^{54}$.  The
casts of $q$ and of the leading-zero count, and the
checked signed additions and subtractions which calculate \texttt{power2},
are monadic predecessors of every remaining return.  Any failure propagates;
on a successful path they have their displayed integer meanings.  The two
copies of this calculation, below the two outcomes of the $lo$ test, are
identical and so have the same bound.

Suppose first that \texttt{power2}$\leq0$.  Its checked negation and addition
form $k=-\texttt{power2}+1$.  If $k\geq64$, the function returns the
zero sentinel.  Otherwise the successful checked operations give
$1\leq k\leq63$.  By the exact bounded right-shift semantics,
\[
 x=\texttt{mantissa}\mathbin{\mathtt{>>}}k<2^{54-k}\leq2^{53}.
\]
By \noderef{ModelU64BitAnd}, $e=x\mathbin{\mathtt{\&}}1$ is either zero or
one and is the low bit of $x$.  Consequently the checked addition $x+e$
cannot overflow and is at most $2^{53}$: its only possible upper endpoint is
obtained from $x=2^{53}-1$ and $e=1$.  The following legal right shift by one
therefore produces a returned mantissa at most $2^{52}=U$.  The shift
$1\mathbin{\mathtt{<<}}52$ is legal by \noderef{ModelU64Shl}; the Boolean
comparison with that value and its exact Boolean-to-\texttt{i32} cast change
only the exponent.  This proves (1) on the subnormal/right-shift-and-round
return, including its possible endpoint $b.m=U$.

Suppose instead that \texttt{power2}>0$.  The round-to-even tests cast the
concrete cutoff constants only after their guards; every such cast and the
left-shift equality probe either succeeds or precludes an \texttt{ok} return.
The probe's shift count is again $9$ or $10$.  Its only assignment to the
mantissa is conjunction with the complement of one, which merely clears the
low bit by \noderef{ModelU64BitAnd}.  Thus the mantissa remains below
$2^{54}$.  Adding its low bit is at most $2^{54}$ and cannot overflow, and
the subsequent right shift by one is at most $2^{53}$.  Both scalar shifts
$2\mathbin{\mathtt{<<}}52=2^{53}$ and
$1\mathbin{\mathtt{<<}}52=U$ have legal count $52$.  If the first threshold
is met, the code replaces the value by $U$ and performs the checked exponent
increment; otherwise its value is strictly below $2^{53}$.  In both cases
the final conjunction with the complement of $U$ clears bit $52$.  A value
below $2^{53}$ has no higher set bit, so the resulting ordinary-return
mantissa is strictly below $U$.  The final exponent guard either returns the
zero-mantissa infinity sentinel or this masked record.  This exhausts every
successful return of both duplicated blocks and proves (1).  Notice that all
normalization, product, cast, checked-arithmetic, mask, and scalar-shift
failures mentioned above occur inside the result monad; none is silently
assigned a value on an \texttt{ok} path.

The corresponding slow-converter fact is the strict bound
\[
 \texttt{parse\_long\_mantissa}(F_0,t)=\texttt{ok }b
 \quad\Longrightarrow\quad b.m.\mathit{val}<U.                    \tag{2}
\]
Unfold \noderef{num_imp_dec2flt_slow_parse_long_mantissa}.  Its eager zero
and infinity pairs again come from
\noderef{num_imp_dec2flt_common_BiasedFp_zero_pow2} and have mantissa zero.
A failure of \noderef{num_imp_dec2flt_decimal_seq_parse_decimal_seq}
propagates.  An empty digit sequence or decimal point below $-324$ returns
zero, while a decimal point at least $310$ returns infinity.

For its first loop, use the invariant that the loop-result field is
\texttt{none} or \texttt{some }$fp_0$.  It starts as \texttt{none}; the only
assignment follows a call through
\noderef{num_imp_dec2flt_slow_parse_long_mantissa_closure_Insts_CoreOpsFunctionFnTupleUsizeUsize_call}
and \noderef{num_imp_dec2flt_decimal_seq_DecimalSeq_right_shift}, and assigns
exactly $fp_0$.  The other branches preserve the field or terminate.  Its
positive decimal-point cast to \texttt{usize}, negation of the range
constant, shift cast back to \texttt{i32}, checked exponent addition, and
called decimal operation all precede the loop result monadically, so any
failure rules out the assumed successful outer return.  Thus a \texttt{some}
exit has zero mantissa.  The second loop analogously maintains
\texttt{none} or \texttt{some }$fp_\infty$.  Its index-zero read, decimal-point
negation and cast, closure call, calls to
\noderef{num_imp_dec2flt_decimal_seq_DecimalSeq_left_shift}, shift casts, and
checked exponent subtractions all propagate failure.  Its only assignments
to the result field store exactly $fp_\infty$, so every \texttt{some} exit
again has zero mantissa.

If both fields remain \texttt{none}, the third loop either propagates a
failure or eventually exits through its \texttt{done} branch.  In each
continuing iteration it forms the checked positive difference from the
minimum exponent, casts it to \texttt{usize}, caps it by
\noderef{num_imp_dec2flt_slow_parse_long_mantissa_MAX_SHIFT} at $60$, invokes
\noderef{num_imp_dec2flt_decimal_seq_DecimalSeq_right_shift}, casts the
bounded count back to \texttt{i32}, and performs a checked exponent addition.
Thus every cast, subtraction, addition, decimal shift, and loop transition
on an eventual successful exit has succeeded.

On the post-loop path, failures of the checked exponent subtraction and
addition propagate, and the first exponent guard may return the infinity
sentinel.  Otherwise $52$ casts exactly to \texttt{usize}, the checked
addition produces $53$, and the call to
\noderef{num_imp_dec2flt_decimal_seq_DecimalSeq_left_shift} and then
\noderef{num_imp_dec2flt_decimal_seq_DecimalSeq_round} must succeed.  The
checked addition $52+1$ in the 32-bit shift count also gives $53$, so
$1\mathbin{\mathtt{<<}}53$ is legal.  If the rounding-carry guard is true,
the decimal right shift by one, checked exponent increment, second rounding
call, subsequent exponent subtractions and additions, and second infinity
guard must all succeed; that guard may again return the zero-mantissa
infinity pair.  On either the carrying or noncarrying ordinary return, the
code legally forms $1\mathbin{\mathtt{<<}}52=U$, performs the checked
subtraction $U-1$, and conjoins the rounded word with $U-1$.  The exact
bounded conjunction from \noderef{ModelU64BitAnd} is at most $U-1$, hence is
strictly below $U$.  These are all sentinel, loop-result, carrying, and
noncarrying exits, proving (2).

Now unfold \noderef{num_imp_dec2flt_dec2flt_with_trace} under the assumed
successful \texttt{Assembled} result.  By the constructor list in
\noderef{num_imp_dec2flt_Dec2FltTrace}, the \texttt{EmptyInput},
\texttt{SignOnly}, \texttt{Invalid}, \texttt{Special}, and \texttt{FastPath}
constructors are disjoint from its \texttt{Assembled} constructor.  Therefore
the calls to
\noderef{num_imp_dec2flt_parse_parse_number} and
\noderef{num_imp_dec2flt_decimal_Decimal_try_fast_path} returned respectively
\texttt{some }$r$ and \texttt{none}; the unsuccessful numeric branch which
calls \noderef{num_imp_dec2flt_parse_parse_inf_nan} is not taken.  The three
concrete arithmetic arguments in this same execution are
\noderef{F64_Insts_CoreOpsArithDivF64F64},
\noderef{F64_Insts_CoreOpsArithMulF64F64}, and
\noderef{F64_Insts_CoreOpsArithNegF64}; only the last can be reached after
assembly, and a failure from it cannot produce the assumed outer
\texttt{ok}.

The first integer computation satisfies (1).  If \texttt{many\_digits} is
false, or the first exponent is negative, no second computation occurs and
the post-comparison pair is the first pair.  Otherwise the checked addition
$r.\texttt{mantissa}+1$ and the second integer computation must succeed, and
the second result also satisfies (1).  The exact two-field comparison
\noderef{num_imp_dec2flt_common_BiasedFp_Insts_CoreCmpPartialEqBiasedFp_eq}
either retains the first pair or retains its mantissa while replacing its
exponent by $-1$.  Thus every post-comparison mantissa is at most $U$.  If its
exponent is negative, the definition necessarily replaces the entire pair by
the successfully returned slow result, which satisfies the stronger (2); a
temporary forced exponent $-1$ is therefore never assembled.  Otherwise the
post-comparison pair itself is selected.  In all cases the final local pair
$b$ obeys
\[
                         b.m.\mathit{val}\leq U.                   \tag{3}
\]

The eventual return is \texttt{Assembled} applied to a structure whose
\texttt{selected\_pair} field, as declared by
\noderef{num_imp_dec2flt_Dec2FltAssemblyTrace}, is this same local $b$.
Injectivity of that constructor from
\noderef{num_imp_dec2flt_Dec2FltTrace} in the assumed result equality, together
with the assembly-record literal in the extracted function and the
\texttt{selected\_pair} projection declared by
\noderef{num_imp_dec2flt_Dec2FltAssemblyTrace}, already identifies $b$ with
$tr.\texttt{selected\_pair}$.  Apply \noderef{ParserSelectedExponent} to the
same source-string and execution hypotheses.  It gives the independent bound
\[
              0\leq p=tr.\texttt{selected\_pair}.p_{\rm biased}.\mathit{val}
              \leq2047.                                          \tag{4}
\]
The assembly cast in
\noderef{num_imp_dec2flt_dec2flt_with_trace} is the signed-to-unsigned
bit-vector cast.  By (4) its input is nonnegative and below $2^{32}$, so its
64-bit value is exactly the natural number $p$, without sign extension into
the upper bits.  The already evaluated count $52$ is below $64$, so
\noderef{ModelU64Shl} shows that the checked shift succeeds and has value
\[
 E=p2^{52}=pU\leq2047U=2^{63}-U<2^{64}.                           \tag{5}
\]
There is consequently no truncation and the low $52$ bits of $E$ are zero.

Let $m$ be the selected mantissa and let $W$ be the local assembled word.
By \noderef{ModelU64BitOr}, the final OR succeeds and is the exact bounded
bitwise disjunction of $m$ and $E$.  The local selection argument gives
$m\leq U$.  If $m<U$, it occupies only the low $52$ bits, disjoint from $E$,
so
\[
 W.\mathit{val}=pU+m\leq2047U+(U-1)=2^{63}-1.
\]
If $m=U$, split on the low bit of $p$.  For odd $p$, bit $52$ is already set
in $E$, so the OR is $pU\leq2047U$; for even $p$, (4) gives $p\leq2046$ and
the OR is $(p+1)U\leq2047U$.  Thus in this endpoint case also
$W.\mathit{val}\leq2^{63}-U$.  In every case $W.\mathit{val}<2^{63}$.

It remains to connect the local computation to the two requested recorded
facts.  Both sign branches first call
\noderef{num_imp_dec2flt_biased_fp_to_float}; any failure there or in the
optional final negation would contradict the assumed outer \texttt{ok}.
They then construct \texttt{Assembled} from the structure described by
the record literal in \noderef{num_imp_dec2flt_dec2flt_with_trace}.  Against
the field schema of \noderef{num_imp_dec2flt_Dec2FltAssemblyTrace}, that
literal stores the same local $b$ in \texttt{selected\_pair} and the same $W$
in \texttt{assembled\_word}.  Injectivity of the \texttt{Assembled}
constructor from \noderef{num_imp_dec2flt_Dec2FltTrace}, followed by the
\texttt{selected\_pair} and \texttt{assembled\_word} projections declared by
\noderef{num_imp_dec2flt_Dec2FltAssemblyTrace}, therefore identifies those
fields with the corresponding fields of $tr$ and transfers the strict bound on $W$ to
$tr.\texttt{assembled\_word}$.

Finally unfold the \texttt{assembledWord} field of
\noderef{DecimalGoalVocabularyDefault}.  By (4), the Euclidean remainder of
$p$ modulo $2^{64}$ is $p$ and converting it to a natural number changes
nothing.  By (5), $pU<2^{64}$, so the following modulus by $2^{64}$ also
changes nothing.  The definition therefore asks precisely for
\[
 tr.\texttt{assembled\_word}.\mathit{val}
   =\operatorname{Nat.lor}(m,pU),
\]
which is the exact value of the extracted OR established above and recorded
by constructor injectivity.  This proves both the unrestricted assembly
agreement and the clear-sign-bit inequality.  The \texttt{sourceString}
premise is used in the application of \noderef{ParserSelectedExponent} and
states the supplied source domain; no stronger lexical property is needed for
this model-internal assembly argument.
\end{proof}
