120. The quotient of a function
We mentioned the partition $\mathrm{Z}/n =\{C_{r} \mid 0\leq r < n\}$ in section 117.2. It is a special case of a construction which works for any function:
120.1 Theorem
Let $F\colon A \to B$ be a function. Then the family of sets
$$\{F^{-1} (b )\mid b \in \operatorname{Im} F\}$$
is a partition of $A$.
120.2 Definition: quotient set
The set $\{F^{-1} (b )\mid b \in \operatorname{Im} F\}$ is denoted $A/F$ and is called the quotient set of $F$.
120.2.1 Example Consider the function $F\colon \{ 1, 2, 3\} \to \{ 2, 4, 5, 6\}$ defined by $F(1) = 4$ and $F (2) =F(3) = 5$. Its quotient set (of a function) is $\{\{ 1\},\{ 2, 3\}\}$.
120.2.2 Example The quotient set (of a function) of the squaring function $S\colon \mathrm{R} \to \mathrm{R}$ defined by $S (x ) =x^{2}$ is
$$\mathrm{R}/S =\{\{r,-r\} \mid r \in \mathrm{R} \}$$
Every block of $\mathrm{R}/S$ has two elements with the exception of the block $\{ 0\}$. The notation “$\{\{r,-r\} \mid r \in \mathrm{R} \}$” for $\mathrm{R}/S$ lists $\{ 0\}$ as $\{ 0,- 0\}$, but that is the same set as $\{ 0\}$. Note that every set except $\{ 0\}$ is listed twice in the expression “$\{\{r,-r\} \mid r \in \mathrm{R} \}$”.
120.2.3 Example Let’s look at the remainder function $R_{n} (k ) =k \bmod n$ for a fixed integer $n$. This function takes an integer $k$ to its remainder when divided by $n$. (As earlier, we use floored division for negative $k$). For a particular remainder $r$, the set of integers which leave a remainder of $r$ when divided by $n$ is the set we called $C_{r}$ earlier in the section. Thus the quotient set of $R_{n}$ is the set we called $\mathrm{Z}/n$.
120.3 Proof of Theorem 120.1
We must show that the blocks of $A/F$ are nonempty and that every element of $A$ is in exactly one block of $A/F$.
That the blocks are nonempty follows the fact that $A/F$ consists of those $F^{-1} (b)$ for which $b \in \operatorname{Im} F$; if $b \in \operatorname{Im} F$, then there is some $a \in A$ with $F (a ) =b$, which implies that $a\in F^{-1} (b)$, so that $F^{-1} (b)$ is nonempty. Since $a \in F^{-1} (F (a))$, every element of $A$ is in at least one block. If $a\in F^{-1} (b)$ also, then $F (a ) =b$ by definition, so $F^{-1} (F (a )) =F^{-1} (b)$, so no element is in more than one block.
120.3.1 Exercise For a function $F\colon S \to T$, define a condition on the quotient set $S/F$ which is true if and only if $F$ is injective. (Answer on page 250.)
120.3.2 Exercise Give examples of two functions $F\colon \mathrm{N} \to \mathrm{N}$ and $G\colon \mathrm{N} \to \mathrm{N}$ with the property that $F$ is surjective, $G$ is not surjective and $F$ and $G$ have the same quotient set. (Thus, in contrast to Exercise 120.3.1, there is no condition on the quotient set of a function that forces the function to be surjective.)
120.4 Exercise set
In Problems 120.4.1 through 120.4.5, provide an example of a function $F\colon \mathrm{R} \to \mathrm{R}$ for which $\mathrm{R}/F$ has the given property.
120.4.1 $\mathrm{R}/F$ has at least one block with exactly three elements. (Answer on page 250.)
120.4.2 $\mathrm{R}/F$ has exactly three blocks.
120.4.3 $\mathrm{R}/F$ is finite.
120.4.4 Every block of $\mathrm{R}/F$ is finite.
120.4.5 Every block of $\mathrm{R}/F$ has exactly two elements.
120.4.6 Exercise Suppose $F\colon A \to B$ is a function, and $x$ and $y$ are distinct elements of $B$. Suppose also that $|A| = 7,|B|= 4$, $\operatorname{Im} F =B - \{y\}$, and that the function $F| \bigl(A-F^{-1} (x)\bigr)$ is injective.
a) How many elements does $A/F$ have?
b) How many elements are there in each block of $A/F$?
120.4.7 Exercise (hard) Let $A$ be a set, $\Pi$ a partition of $A$ and $B$ a subset of $A$. Define the set $\Pi |B$ of subsets of $B$ by
$$\Pi |B =\{C \cap B \mid C \in \Pi \text{ and } C \cap B \neq \emptyset \}$$
a) Prove that $\Pi |B$ is a partition of $B$.
b) Give an example to show that the set $\{C \cap B \mid C \in \Pi \}$ need not be a partition of $B$.
120.4.8 Exercise (hard) Let $A$ be a set, $\Pi$ a partition of $A$, and $\Phi$ a partition of $\Pi$. For any block $C \in \Phi$, let $B_{C}$ be the union of all the blocks $B \in \Pi$ for which $B \in C$. Show that $\{B_{C} \mid C \in \Phi \}$ is a partition of $A$. (For many people, this exercise will be an excellent example of a common phenomenon in conceptual mathematics: It seems incomprehensible at first, but when you finally figure out what the notation means, you see that it is obviously true.)
Pages 184–185 of the book (PDF).