Is this theorem true ?
Theorem: Assume R is a relation on a set A.The relation R partitions the elements of A into classes if and only if R is an equivalence relation.
My counter example is:
Let A = {1,2} and R = {(1,2),(2,1)} The class generated by 1 is {2} and the class generated by 2 is {1}. And {1} and {2} completely partition A but R is not reflexive.
I see the problem. Your definition of a class is the set of all things equivalent to a given element. Your class generates the partition $\{1\}, \{2\}$
Note that your relation, although it generates the class, is not an equivalence relation. The equivalence relation for your partition is $a$ is equivalent to $b$ if and only if $a=b$.
The theorem states that a partition is the same as an equivalence relation. It does not say that if any relation generates a partition then that relation is an equivalence relation. In fact there are two separate theorems:
Therefore, the theorem that you wrote is incorrect.