Floor defines Equivalence Relation

From ProofWiki
Jump to navigation Jump to search


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}$.


Checking in turn each of the critera for equivalence:


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

Thus the floor function is reflexive.



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

Thus the floor function is symmetric.



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$


$x = n + t_x, z = n + t_z$


$\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$:

\(\ds x\) \(\in\) \(\ds \eqclass n \RR\)
\(\ds \leadsto \ \ \) \(\ds \floor x\) \(=\) \(\ds \floor n\)
\(\ds \) \(=\) \(\ds n\)
\(\ds \leadsto \ \ \) \(\ds \exists t \in \hointr 0 1: x\) \(=\) \(\ds n + t\)
\(\ds \leadsto \ \ \) \(\ds x\) \(\in\) \(\ds \hointr n {n + 1}\)


Also see