\begin{theorem}
Every nonnegative real number has an IEEE 754 binary64 magnitude rounding target under round-to-nearest, ties-to-even, where the target may be finite, subnormal, zero, or positive infinity.
\end{theorem}
\begin{proof}
Put
\[
 F=2^{52},\qquad I=2047F,
 \qquad T=2^{1024}-2^{970}.
\]
Thus $I=2^{63}-2^{52}<2^{63}<2^{64}$.  By the carrier definition in
\noderef{F64}, there is consequently an \texttt{F64} word with value field
$I$, and there is an \texttt{F64} word with value field $n$ for every natural
$n<I$.  Moreover, two such words having the same value field are equal by
extensionality of the unsigned-word structure.

Fix a real $x$ and assume $0\leq x$.  Unfold the
\texttt{roundsMagnitude} field of
\noderef{DecimalGoalVocabularyDefault}.  Its infinity word is exactly $I$,
its overflow threshold is exactly $T$, and its finite-value function is
\[
 \phi(n)=
 \begin{cases}
 (m: \mathbb R)/2^{1074},&e=0,\\
 (F+m: \mathbb R)/2^{1075-e},&0<e<1075,\\
 (F+m: \mathbb R)2^{e-1075},&1075\leq e,
 \end{cases}                                      \tag{1}
\]
where $e=n/F$ and $m=n\bmod F$.  For $n<I$, Euclidean division gives
$n=eF+m$, $0\leq m<F$, and $0\leq e<2047$, so (1) covers every finite
candidate and only uses natural exponents.

First suppose $T\leq x$.  Choose the word $w$ whose value field is $I$.
The three outer requirements of \texttt{roundsMagnitude} are then discharged
as follows: $0\leq x$ is the hypothesis, $w.\mathit{val}\leq I$ is equality,
and the conditional selects its infinity branch because
$w.\mathit{val}=I$, where its required conclusion is exactly $T\leq x$.
This supplies a target in the overflow case.

It remains to treat $x<T$.  We first establish explicitly that $\phi$ is
strictly increasing on the natural indices below $I$.  Let $n+1<I$, and
write $n=eF+m$ with $m<F$.

If $m+1<F$, then $n+1=eF+(m+1)$ has the same exponent field.  Subtraction in
the three respective branches of (1) gives
\[
 \phi(n+1)-\phi(n)=
 \begin{cases}
  1/2^{1074},&e=0,\\
  1/2^{1075-e},&1\leq e<1075,\\
  2^{e-1075},&1075\leq e<2047.
 \end{cases}
\]
Every displayed denominator is a positive power of two and every displayed
power is positive, hence in each case $\phi(n)<\phi(n+1)$.

If instead $m=F-1$, then $n+1=(e+1)F$ has fraction field zero.  The premise
$n+1<I$ gives $e\leq2045$.  All possible boundary cases are the following.
For $e=0$, the last subnormal value and first normal value differ by
\[
 {F\over 2^{1074}}-{F-1\over 2^{1074}}={1\over2^{1074}}>0.
\]
For $1\leq e\leq1073$, both exponent fields use the reciprocal branch and
\[
 {F\over2^{1074-e}}-{2F-1\over2^{1075-e}}
 ={2F-(2F-1)\over2^{1075-e}}
 ={1\over2^{1075-e}}>0.
\]
For $e=1074$, the old word uses the reciprocal branch and the new exponent
field $1075$ uses the multiplicative branch, giving
\[
 F-{2F-1\over2}={1\over2}>0.
\]
Finally, for $1075\leq e\leq2045$, both values use the multiplicative branch
and
\[
 F2^{e+1-1075}-(2F-1)2^{e-1075}
 =2^{e-1075}>0.
\]
This includes the subnormal/first-normal transition and both sides of the
formula change at exponent field $1075$.  Thus every consecutive step below
$I$ is strict.  Iterating the consecutive inequality through the finite
interval from $p$ to $q$ shows
\[
       p<q<I\quad\Longrightarrow\quad\phi(p)<\phi(q).       \tag{2}
\]

Now let $S=\{n\in\mathbb N\mid n<I\}$.  It is finite and nonempty: $I>0$, so
$0\in S$.  For $n\in S$ put
$d(n)=|x-\phi(n)|$.  A real-valued function on a nonempty finite set attains
its minimum; let $\delta$ be that minimum and let
\[
        M=\{n\in S\mid d(n)=\delta\}
\]
be the nonempty set of minimizing indices.

Any two distinct members of $M$ are adjacent.  Indeed, take $p<q$ in $M$.
If $p+1<q$, (2) puts
\[
       a:=\phi(p)<z:=\phi(p+1)<b:=\phi(q).
\]
Because $p$ and $q$ minimize, $|x-a|=|x-b|=\delta$.  The equality of the two
endpoint distances forces $a<x<b$: if $x\leq a$, then
$|x-b|=b-x>a-x=|x-a|$, while if $b\leq x$, then
$|x-a|=x-a>x-b=|x-b|$.  Therefore
$|x-a|=x-a$ and $|x-b|=b-x$, so their equality says
$x-a=b-x$.  If $z\leq x$, then
\[
       |x-z|=x-z<x-a=\delta
\]
because $a<z$; if $x\leq z$, then
\[
       |x-z|=z-x<b-x=\delta
\]
because $z<b$.  The total order on the reals gives one of these two cases,
and either conclusion contradicts minimality of $\delta$, since $p+1\in S$.
Hence $p+1<q$ is impossible.  As $p<q$ already gives $p+1\leq q$, necessarily
$q=p+1$.

It follows that $M$ has at most two elements.  Otherwise three of its members
could be ordered $p<q<r$; applying the preceding conclusion to $p,q$ and to
$p,r$ would give both $q=p+1$ and $r=p+1$, contrary to $q<r$.  If $M$ has
one element, let $r$ be that element.  If $M$ has two elements, write them as
$p<p+1$ and choose for $r$ the one whose residue modulo $2$ is zero.  Such a
choice exists because consecutive natural numbers have residues $0$ and $1$
modulo $2$.  In either case
\[
 r\in S,\qquad d(r)\leq d(n)\quad(n\in S),                 \tag{3}
\]
and, whenever $M$ has two elements, $r\bmod2=0$.

Since $r<I<2^{64}$, \noderef{F64} supplies a word $w$ with
$w.\mathit{val}=r$.  We verify every clause of the finite branch of
\texttt{roundsMagnitude}.  The leading clause $0\leq x$ is the original
hypothesis.  The target bound is
$w.\mathit{val}=r<I$, hence $w.\mathit{val}\leq I$.  In particular
$w.\mathit{val}\ne I$, so the conditional takes the finite branch, whose
first clause is precisely the current assumption $x<T$.

Finally take any competing word $v$ satisfying
$v.\mathit{val}<I$ and $v\ne w$, and put $n=v.\mathit{val}$.  Then $n\in S$,
so (3) gives
\[
 |x-\phi(w.\mathit{val})|=d(r)\leq d(n)
   =|x-\phi(v.\mathit{val})|,
\]
which is the required absolute-distance inequality.  Suppose equality holds.
Then $n\in M$.  If $M$ is a singleton, it follows that $n=r$; equality of the
two value fields and unsigned-word extensionality give $v=w$, contradicting
the competitor hypothesis.  Thus equality cannot occur in the singleton
case.  In the two-element case, the construction of $r$ gives
$w.\mathit{val}\bmod2=r\bmod2=0$, exactly the conclusion required by the
tie implication.  Hence the distance and ties-to-even clauses hold for every
competing finite word.  The word $w$ is therefore a rounding target when
$x<T$, completing the two exhaustive threshold cases.
\end{proof}
