Floor defines Equivalence Relation

Theorem
Let $x \in \R$ be a real number.

Let $\floor x$ denote the floor function of $x$.

Let $\RR$ be the relation defined on $\R$ such that:
 * $\forall x, y, \in \R: \tuple {x, y} \in \RR \iff \floor x = \floor y$

Then $\RR$ is an equivalence, and $\forall n \in \Z$, the $\RR$-class of $n$ is the half-open interval $\hointr n {n + 1}$.

Proof
Checking in turn each of the critera for equivalence:

Reflexivity

 * $\forall x \in \R: \floor x = \floor x$

Thus the floor function is reflexive.

Symmetry

 * $\forall x, y \in \R: \floor x = \floor y \implies \floor y = \floor x$

Thus the floor function is symmetric.

Transitivity
Let $\floor x = \floor y$ and $\floor y = \floor z$.

Let $n = \floor x = \floor y = \floor z$, which follows from transitivity of $=$.

Thus from Real Number is Floor plus Difference‎:
 * $x = n + t_x, y = n + t_y, z = n + t_z: t_x, t_y, t_z \in \hointr 0 1$

Thus:
 * $x = n + t_x, z = n + t_z$

and:
 * $\floor x = \floor z$

Thus the floor function is transitive.

Thus we have shown that $\RR$ is an equivalence relation.

Now we show that the $\RR$-class of $n$ is the interval $\hointr n {n + 1}$.

Defining $\RR$ as above, with $n \in \Z$: