equivalence relation
an equivalence relation on a set
is a set
of ordered pairs of elements of
such that
when for all
(reflexive property).
implies
(symmetric property).
and
imply
(transitive property).
[cite:;from @abstract_gallian_2021 chapter 0 preliminaries]
the equivalence classes of an equivalence relation on a set
constitute a partition of
. conversely, for any partition
of
, there is an equivalence relation on
whose equivalence classes are the elements of
.
[cite:;from @abstract_gallian_2021 theorem 0.7 equivalence classes partition]
[cite:;from @abstract_gallian_2021 theorem 0.7 equivalence classes partition]
let 
first we check for reflexivity:
let
then we know
and therefore
and therefore
is reflexive
second we check for symmetry:
let
so that
and therefore by definition of
we know
, but only because
doesnt mean
because x might be 0, but we know
because
therefore
therefore by definition of
we get
therefore
is symmetric
third we check for transitivity:
let
such that
therefore by definition of the relation
we get
and we know
therefore by definition of
we get
therefore
is transitive
therefore
is an equivalence relation
first we check for reflexivity:
let
second we check for symmetry:
let
third we check for transitivity:
let
therefore