Let $N(y)$ be the nearest-integer function and undefined on half-integers.
For all $r \in \mathbb R$ that are not half-integers, prove $$\forall{\ i \in \mathbb Z}:\left|N(r)-r\right|\leq\left|i-r\right|$$
Does this even need to be "proven" or perhaps only "demonstrated"? Does it follow directly from the typical definition of the nearest-integer function?
Giving a rigorous definition of the nearest-integer function, $$N(r)::=j\in\mathbb Z:\forall i\in\mathbb Z, |j-r|\le|i-r|,$$
it is indeed immediate that $$\forall i\in\mathbb Z, |N(r)-r|\le|i-r|.$$
That definition is not completely valid, as there could be several $j$ that realize the minimum distance (and this is indeed the case for half-integer $r$). But even if we arbitrarily choose for $N(r)$ any $j$ that achieves the minimum, the claimed property holds despite non-uniqueness.