I'm not exactly sure how to go about doing this question. I've attempted it but I'm not exactly sure if it's correct.
Question: Let $S$ be the union of disjoint sets $A_1, \cdots, A_k$. Let $R$ be the relation consisting of pairs $(x, y) \in S \times S$ such that $x, y$ belong to the same member of $\{A1, \cdots, A_k\}$. Prove that $R$ is an equivalence relation on $S$.
The three axioms are: reflexivity, symmetry, transitivity,
I have a brief idea of how to do the first 2, however, for transitivity, I don't have any ideas. Could anyone help out on this please?
Transitivity:
For all $x, y, z \in S,$ suppose $(x, y) \in R,$ and $(y, z) \in R$.
That means that $x$ and $y$ are contained within the same $A_i$, among the disjoint sets, and that $y, z$ are contained within the same $A_j$, among the disjoint sets. Because the sets are disjoint, there is no way that $y$ can appear in more than one of the sets whose union is $S$, (i.e., it is not possible that $x, y,$ are in $A_i,$ while $y, z$ are both in $A_j,$ and $i\neq j$). Hence, $A_i = A_j$ for some $i$.
We must conclude that $x, y, z$ are in the same set, disjoint from all other sets in the union that is $S$, and so $(x, z) \in R.$