\begin{lemma}[Convexity of every nearest-even magnitude cell]
If a word $w$ rounds real magnitudes $a$ and $b$ in
\noderef{DecimalGoalVocabularyDefault}, and $a\leq y\leq b$, then
the same word rounds $y$.  The claim includes zero, infinity and both
even and odd finite words, with the actual strict odd-word tie boundaries.
\end{lemma}
\begin{proof}
Unfold \noderef{DecimalGoalVocabularyDefault}.  Both premises give
nonnegativity of their inputs and the target bound $w.\mathit{val}\leq I$,
where $I=2047\,2^{52}$ and $T=2^{1024}-2^{970}$ is the overflow threshold.
In particular $0\leq a\leq y$, giving nonnegativity for $y$.
If $w.\mathit{val}=I$, the premise at $a$ gives $T\leq a\leq y$;
this is exactly the infinity branch at $y$.

Otherwise both inputs satisfy $a<T$ and $b<T$, so $y\leq b<T$.
Write $W=\phi(w.\mathit{val})$ for the finite value of $w$.
For each finite competitor $v\ne w$, put $V=\phi(v.\mathit{val})$ and
\[
 D_v(t)=(t-V)^2-(t-W)^2
       =2(W-V)t+V^2-W^2.                           \tag{1}
\]
The absolute distances are nonnegative; therefore their comparison
$|t-W|\leq|t-V|$ is equivalent to $D_v(t)\geq0$, and equality of
distances is equivalent to $D_v(t)=0$.  This follows by squaring both
nonnegative quantities, whose squares are respectively $(t-W)^2$
and $(t-V)^2$.

If $a=b$, the two interval inequalities force $y=a$ and the premise
at $a$ is the conclusion.  Suppose $a<b$.  Then
$\lambda=(y-a)/(b-a)$ belongs to $[0,1]$ and
$y=(1-\lambda)a+\lambda b$.  By the affine identity (1),
\[
 D_v(y)=(1-\lambda)D_v(a)+\lambda D_v(b).             \tag{2}
\]
The two rounding premises give $D_v(a),D_v(b)\geq0$, so (2) gives
the required weak comparison at $y$.
If $w.\mathit{val}\bmod2=0$, every tie implication at $y$ already has
its required conclusion.  If the residue is not zero, either premise's
tie implication excludes equality with this competitor, so in fact
$D_v(a)>0$ and $D_v(b)>0$.  Equation (2) is then strictly positive:
at least one of $1-\lambda,\lambda$ is positive and both are nonnegative.
Thus equality at $y$ is impossible and the odd-word tie implication holds
vacuously.  This reasoning is valid for every finite competitor; it
does not assume differentiability, a strictly interior $y$, or that the
target is a normal number.  In particular an even zero target permits
its endpoint ties.  We have established the finite threshold, every
distance inequality and every parity condition, completing the proof.
\end{proof}
