\begin{helper}[Exponent-independent certificate for a loop-1 step]
For a decimal record $r$, write $r.p$ for
$r.\mathsf{decimal\_point}.\mathsf{val}$ and put
\[
 D(r)=\operatorname{map}(q\mapsto q.\mathsf{val},
       \operatorname{take}(r.\mathsf{num\_digits}.\mathsf{val},
                           r.\mathsf{digits}.\mathsf{val})),
 \quad I(r)=\operatorname{foldl}((n,q)\mapsto10n+q,0,D(r)),
 \quad V(r)=I(r)10^{r.p-r.\mathsf{num\_digits}.\mathsf{val}}.
\]
Let $X,Y\in\mathbb R$, let $d,d'$ be decimal records, and let $e,e'$ be
signed machine exponents; in formulas, each exponent denotes its signed
integer value.  Assume
\[
 -324\leq d.p\leq0,qquad d.\mathsf{num\_digits}.\mathsf{val}\leq768,
 \qquad
 \forall q\in\operatorname{take}(d.\mathsf{num\_digits}.\mathsf{val},
                                  d.\mathsf{digits}.\mathsf{val}),
 \quad q.\mathsf{val}<10,
\]
and assume that there are $a\in\mathbb N$ and a list $a_s$ with
\[
 D(d)=a::a_s,qquad1\leq a<10,qquad
 |D(d)|=d.\mathsf{num\_digits}.\mathsf{val}.             \tag{S}
\]
Assume there are $\eta,u\in\mathbb R$ such that
\[
 X=V(d)+\eta,qquad Y=V(d)+u,qquad0\leq\eta<u,qquad
 (d.\mathsf{truncated}=\mathsf{true}\Longleftrightarrow0<\eta). \tag{E}
\]
If the exact extracted loop-1 body call at exponent $e$, with the maximal
biased-float sentinel and early-result input $\mathsf{none}$, returns
$\mathsf{ok}(\mathsf{cont}(d',e',\mathsf{none}))$, then there are a
machine-natural shift $k$, natural numbers $z,z'$, and lists $z_s,z'_s$ such
that
\[
 \mathsf{left\_shift}(d,k)=\mathsf{ok}(d'),\qquad
 k.\mathsf{val}\leq60,qquad e'=e-k.                    \tag{L}
\]
Writing $\mathsf{selector}$ for the extracted decimal-shift closure call, the
selector alternative is exactly
\[
 \begin{aligned}
 &(d.p<0\ \wedge\ \exists n,\ n.\mathsf{val}=-d.p\ \wedge\
       \mathsf{selector}(n)=\mathsf{ok}(k))\\
 &\qquad\vee
 (d.p=0\ \wedge\ z<5\ \wedge\
       k=(\mathsf{if}\ z=1\ \mathsf{then}\ 2\ \mathsf{else}\ 1)).
 \end{aligned}                                                        \tag{C}
\]
Moreover,
\[
 D(d)=z::z_s,qquad D(d')=z'::z'_s,qquad
 1\leq z<10,qquad1\leq z'<10,                          \tag{D}
\]
and all of the following point and leading-digit progress clauses hold:
\[
 \begin{aligned}
 d.p\leq-19&\Longrightarrow(d'.p=d.p+18\ \vee\ d'.p=d.p+19),\\
 -18\leq d.p<0&\Longrightarrow(d'.p=-1\ \vee\ d'.p=0),\\
 d.p=-1\ \wedge\ d'.p=-1&\Longrightarrow7\leq z',\\
 d.p=-1\ \wedge\ 7\leq z&\Longrightarrow(d'.p=0\ \wedge\ 5\leq z'),\\
 d.p=0&\Longrightarrow z<5,\\
 d.p=0&\Longrightarrow
   (d'.p=0\ \wedge\ (z\leq2\Longrightarrow3\leq z')\ \wedge\
                    (3\leq z\Longrightarrow5\leq z')).
 \end{aligned}                                                        \tag{P}
\]
Finally, the output satisfies
\[
 d'.\mathsf{num\_digits}.\mathsf{val}\leq768,qquad
 \forall q\in\operatorname{take}(d'.\mathsf{num\_digits}.\mathsf{val},
                                  d'.\mathsf{digits}.\mathsf{val}),
 \quad q.\mathsf{val}<10,qquad
 |D(d')|=d'.\mathsf{num\_digits}.\mathsf{val},            \tag{S'}
\]
and there are $\eta',u'\in\mathbb R$ such that
\[
 2^{k.\mathsf{val}}X=V(d')+\eta',\qquad
 2^{k.\mathsf{val}}Y=V(d')+u',\qquad
 0\leq\eta'<u',\qquad
 (d'.\mathsf{truncated}=\mathsf{true}\Longleftrightarrow0<\eta').       \tag{E'}
\]
\end{helper}
\begin{proof}
The signed exponent does not influence which decimal shift the loop body
selects or which decimal record that shift returns.  Apply
\noderef{P804_T1_LeftLoopStep} to the same $X,Y,d$ at the synthetic exponent
zero; its exponent lower-bound premise is then immediate.  Its done
alternative is impossible: \noderef{P826_T1_LeftBodySelector} applied to the
actual continuation says either the point is negative, contradicting the
done point zero, or the point is zero with leading digit below five,
contradicting the done leading digit at least five.

Thus the synthetic call supplies a continuing shift $k_s$, successor record
$d_s$, output exponent $e_s$, the exact point and leading-digit alternatives,
and all output shape and endpoint clauses in the conclusion.  Apply
\noderef{P826_T1_LeftBodySelector} to both the actual and synthetic body
equalities.  In the negative-point case, the two recovered machine naturals
both have integer value $-p$, hence are equal; injectivity of the identical
successful selector calls makes their shifts equal.  In the point-zero case,
both shifts equal the same literal expression, two exactly when $z=1$ and one
otherwise.  Mixed cases contradict respectively $p<0$ and $p=0$.

The synthetic exponent equations are
$e_s=0-k_s$ from \noderef{P804_T1_LeftLoopStep} and
$e_s=0-k$ from the inversion helper, so equality of machine-natural values
also identifies its displayed shift with the recovered one.  The actual and
synthetic successful left-shift calls now have identical input and shift;
injectivity of `ok` identifies $d_s=d'$.  Substitute these equalities into
all clauses supplied by \noderef{P804_T1_LeftLoopStep}.  The actual inversion
supplies $e'=e-k$ and the exact selector clause, while every remaining point,
digit, capacity, length, and endpoint clause is unchanged.  This proves the
full stated certificate.
\end{proof}
