119. The class function

119.1 Definition: the class function

If $\Pi$ is a partition of a set $A$, then the class function $\mathrm{cls}_{\Pi}\colon A \to \Pi$ takes an element $a$ of $A$ to the block of $\Pi$ that has it as an element.

119.1.1 Example If $A =\{ 1, 2, 3, 4, 5\}$ and $\Pi =\{\{ 1, 2\},\{ 3, 4, 5\}\}$, then $\mathrm{cls}_{\Pi}(3) =\{ 3, 4, 5\}$.

119.1.2 Usage A common notation for the class function is $[\ ]\colon A \to \Pi$; in Example 119.1.1, one would write $[3] =\{ 3, 4, 5\}$.

119.1.3 Example In Example 117.1.4, $[2]_{\Pi_{1}} =\{ 1, 2\}$.

119.1.4 Warning Note that in Example 119.1.1, $[3] = [4] = [5]$, but $[2]\neq [3]$. In mathematics, the fact that two different names are used does not mean they name different things. (This point was made before, in Example 58.1.2.)

119.1.5 Example If $\Pi$ is the partition $\mathrm{Z}/3$, then $[2] = [5] = [-1] = C_{2}$, and $[3] =C_{0}$.

119.1.6 Exercise Prove that for any set $S$ with partition $\Pi$, the class function $\mathrm{cls}\colon S \to \Pi$ is surjective.

Page 183 of the book (PDF).