Currently, I am studying Set Theory, and have come to the point of proving the Cantor-Bernstein Theorem (if $|A| \leq |B|$ and $|B| \leq |A|$, then $|A| = |B|$). Now, I am studying from Jech and Hrbacek's "Introduction to Set Theory," but my professor provided me with a proof of the theorem that is significantly different from the book. I worked through it, and I think I get the gist of it, but things start unravelling at the end and I need help understanding it. So,
Statement: If $\phi:A\rightarrow B$ and $\psi:B\rightarrow A$ are one-to-one functions, then $A$ is equipotent to $B$.
Proof: For $a,a'\in A$, set $a\equiv a' \iff \exists\ k\in\mathbb{N}\ s.t. (\phi^{-1}\circ\psi^{-1})^k(a)=a'$. Then clearly $\equiv$ is an equivalence relation (I have a hard time proving this, but this is beyond the point I suppose).
Consider the set of equivalence classes $H$ of $\equiv$. Then, any $E\in H$ is one of two types:
i) $\forall\ a\in E, \exists\ a'\ s.t.\ a' = \phi^{-1}\circ\psi^{-1}(a)$
ii) $\exists\ \dot a\in E \ s.t.\ \dot a \notin\ any\ (\psi\circ\phi)$
In this case, $\dot a$ is at the top of the class (in the obvious order). Such an $\dot a$ is of two types:
1) $\psi^{-1}(\dot a)$ exists but $\phi^{-1}\circ\psi^{-1}(\dot a)$ doesn't.
2) $\psi^{-1}(\dot a)$ doesn't exist.
We then define $\eta: A\rightarrow B$ by:
$\eta(a) = \phi(a)$ if $[a]$ is of type (i) or of type (ii)-2 and
$\eta(a) = \psi^{-1}(a)$ if otherwise.
Claim: $\eta$ is one-to-one: Consider $\eta(a)=\eta(a')$. Then clearly $[a]=[a']$. Hence, if $[a]$ is of type (ii)-1, then $\eta(a) = \psi^{-1}(a) = \psi^{-1}(a') = \eta(a')$, and since $\psi^{-1}$ is one-to-one, $a=a'$. If $[a]$ is of type (i) or (ii)-2, then $\eta(a) = \phi(a) = \phi(a') = \eta(a')$, and since $\phi$ is one-to-one, $a=a'$.
Claim: $\eta$ is onto: Let $b\in B$ and consider $\psi(b)=a$. If $[a]$ is of type (i) or (ii)-2, then $\phi^{-1}(b)$ exists and $\eta(\phi^{-1}(b))=b$. If $[a]$ is of type (ii)-1, then $\eta(a)=b$.
Therefore, there exists a bijection between $A$ and $B$ so that they are equipotent.
QED
Really, defining our $\equiv$ relation is straightforward and makes since in pictures. But when we start getting into the different types I get a little shaky. Type (i) is just saying that $(\phi^{-1}\circ\psi^{-1})$ gets mapped to something for any $a$ within the equivalence class. Is type (ii) just saying the opposite? That is, there is some $a$ within the equivalence class that $(\phi^{-1}\circ\psi^{-1})$ can't be mapped from? The changing of the wording throws me off, and I'm not sure the significance of it.
Now, if (ii) is true, then it has to be one of the other two types trivially, correct? For either (1) or (2), $(\phi^{-1}\circ\psi^{-1})(\dot a)$ can't exist simply because it fell into type (ii). At this point, are we just saying $\phi^{-1}(\dot a$ either works or doesn't?
I suppose the big problem here is that I'm not understanding things intuitively. He drew a picture which looks like a function mapping some $a$ between $A$ and $B$ in a cascading way, but I don't know what to make of the picture other than that fact that we can keep reapplying out composite or one of our original functions to move around between the sets.
If anyone can shed any light on this proof that may make it easier for me to understand, I'd appreciate it. And I tried my best to eliminate any errors in it, but if something seems wrong, there's a good chance it is, so let me know.