\begin{helper}[Decimal-sequence default, capacities, and scalar append]
The extracted default constructor returns a decimal sequence $d_0$ with
digit count and decimal point zero, truncation flag false, and every cell of
its 768-cell array equal to zero.  The extracted constants
\texttt{MAX\_DIGITS} and \texttt{MAX\_DIGITS\_WITHOUT\_OVERFLOW} have
unsigned values 768 and 19.

Moreover, whenever \texttt{try\_add\_digit($d$, $c$)} returns $d'$, its
digit count is the old count plus one, its decimal point and truncation flag
are unchanged, and its array is as follows.  If the old count is below 768,
the array is the old array with exactly that indexed cell replaced by $c$;
otherwise the entire array is unchanged.  These are exactly the existential,
constant equalities, and universally quantified implication in Lean.
\end{helper}
\begin{proof}
Unfold
\noderef{num_imp_dec2flt_decimal_seq_DecimalSeq_Insts_CoreDefaultDefault_default}.
Its first operation is \texttt{Array.repeat 768 0}.  The Aeneas array
semantics from the Preamble creates an array whose value list has length 768
and whose every member is the supplied byte zero.  The following record
literal assigns count $0$, point $0$, flag \texttt{false}, and that array,
and the final \texttt{ok} has no failure branch.  Choosing this record as
$d_0$ proves the first five displayed fields.

Unfolding
\noderef{num_imp_dec2flt_decimal_seq_DecimalSeq_MAX_DIGITS} and
\noderef{num_imp_dec2flt_decimal_seq_DecimalSeq_MAX_DIGITS_WITHOUT_OVERFLOW}
gives the literal machine values $768\#\mathrm{usize}$ and
$19\#\mathrm{usize}$.  Both are within the 64-bit unsigned range, so their
\texttt{val} observations are exactly 768 and 19.

Finally fix $d,c,d'$ and assume the successful append equation.  Unfold
\noderef{num_imp_dec2flt_decimal_seq_DecimalSeq_try_add_digit} and replace
\texttt{MAX\_DIGITS} by 768 using the preceding equality.  If the old count
is below 768, the selected array index is strictly below the array's fixed
length.  The Aeneas \texttt{Array.update} rule therefore succeeds, changes
exactly that list index to $c$, and leaves every other cell unchanged.  If
the old count is at least 768, the other branch returns the old array
unchanged.  In both branches the next checked operation adds one to the old
\texttt{usize} count.  Since the whole call was assumed to return normally,
this addition cannot have overflowed; its observed value is consequently the
old observed value plus one.  The concluding record update changes only
\texttt{num\_digits} and \texttt{digits}.  Its point and flag are therefore
definitionally those of $d$, and the two array alternatives are exactly the
conditional equality in the statement.
\end{proof}
