# Metamath Proof Explorer

## Theorem sbth

Description: Schroeder-Bernstein Theorem. Theorem 18 of Suppes p. 95. This theorem states that if set A is smaller (has lower cardinality) than B and vice-versa, then A and B are equinumerous (have the same cardinality). The interesting thing is that this can be proved without invoking the Axiom of Choice, as we do here. The theorem can also be proved from the axiom of choice and the linear order of the cardinal numbers, but our development does not provide the linear order of cardinal numbers until much later and in ways that depend on Schroeder-Bernstein.

The main proof consists of lemmas sbthlem1 through sbthlem10 ; this final piece mainly changes bound variables to eliminate the hypotheses of sbthlem10 . We follow closely the proof in Suppes, which you should consult to understand our proof at a higher level. Note that Suppes' proof, which is credited to J. M. Whitaker, does not require the Axiom of Infinity. In the Intuitionistic Logic Explorer (ILE) the Schroeder-Bernstein Theorem has been proven equivalent to the law of the excluded middle (LEM), and in ILE the LEM is not accepted as necessarily true; see https://us.metamath.org/ileuni/exmidsbth.html . This is Metamath 100 proof #25. (Contributed by NM, 8-Jun-1998)

Ref Expression
Assertion sbth ${⊢}\left({A}\preccurlyeq {B}\wedge {B}\preccurlyeq {A}\right)\to {A}\approx {B}$

### Proof

Step Hyp Ref Expression
1 reldom ${⊢}\mathrm{Rel}\preccurlyeq$
2 1 brrelex1i ${⊢}{A}\preccurlyeq {B}\to {A}\in \mathrm{V}$
3 1 brrelex1i ${⊢}{B}\preccurlyeq {A}\to {B}\in \mathrm{V}$
4 breq1 ${⊢}{z}={A}\to \left({z}\preccurlyeq {w}↔{A}\preccurlyeq {w}\right)$
5 breq2 ${⊢}{z}={A}\to \left({w}\preccurlyeq {z}↔{w}\preccurlyeq {A}\right)$
6 4 5 anbi12d ${⊢}{z}={A}\to \left(\left({z}\preccurlyeq {w}\wedge {w}\preccurlyeq {z}\right)↔\left({A}\preccurlyeq {w}\wedge {w}\preccurlyeq {A}\right)\right)$
7 breq1 ${⊢}{z}={A}\to \left({z}\approx {w}↔{A}\approx {w}\right)$
8 6 7 imbi12d ${⊢}{z}={A}\to \left(\left(\left({z}\preccurlyeq {w}\wedge {w}\preccurlyeq {z}\right)\to {z}\approx {w}\right)↔\left(\left({A}\preccurlyeq {w}\wedge {w}\preccurlyeq {A}\right)\to {A}\approx {w}\right)\right)$
9 breq2 ${⊢}{w}={B}\to \left({A}\preccurlyeq {w}↔{A}\preccurlyeq {B}\right)$
10 breq1 ${⊢}{w}={B}\to \left({w}\preccurlyeq {A}↔{B}\preccurlyeq {A}\right)$
11 9 10 anbi12d ${⊢}{w}={B}\to \left(\left({A}\preccurlyeq {w}\wedge {w}\preccurlyeq {A}\right)↔\left({A}\preccurlyeq {B}\wedge {B}\preccurlyeq {A}\right)\right)$
12 breq2 ${⊢}{w}={B}\to \left({A}\approx {w}↔{A}\approx {B}\right)$
13 11 12 imbi12d ${⊢}{w}={B}\to \left(\left(\left({A}\preccurlyeq {w}\wedge {w}\preccurlyeq {A}\right)\to {A}\approx {w}\right)↔\left(\left({A}\preccurlyeq {B}\wedge {B}\preccurlyeq {A}\right)\to {A}\approx {B}\right)\right)$
14 vex ${⊢}{z}\in \mathrm{V}$
15 sseq1 ${⊢}{y}={x}\to \left({y}\subseteq {z}↔{x}\subseteq {z}\right)$
16 imaeq2 ${⊢}{y}={x}\to {f}\left[{y}\right]={f}\left[{x}\right]$
17 16 difeq2d ${⊢}{y}={x}\to {w}\setminus {f}\left[{y}\right]={w}\setminus {f}\left[{x}\right]$
18 17 imaeq2d ${⊢}{y}={x}\to {g}\left[{w}\setminus {f}\left[{y}\right]\right]={g}\left[{w}\setminus {f}\left[{x}\right]\right]$
19 difeq2 ${⊢}{y}={x}\to {z}\setminus {y}={z}\setminus {x}$
20 18 19 sseq12d ${⊢}{y}={x}\to \left({g}\left[{w}\setminus {f}\left[{y}\right]\right]\subseteq {z}\setminus {y}↔{g}\left[{w}\setminus {f}\left[{x}\right]\right]\subseteq {z}\setminus {x}\right)$
21 15 20 anbi12d ${⊢}{y}={x}\to \left(\left({y}\subseteq {z}\wedge {g}\left[{w}\setminus {f}\left[{y}\right]\right]\subseteq {z}\setminus {y}\right)↔\left({x}\subseteq {z}\wedge {g}\left[{w}\setminus {f}\left[{x}\right]\right]\subseteq {z}\setminus {x}\right)\right)$
22 21 cbvabv ${⊢}\left\{{y}|\left({y}\subseteq {z}\wedge {g}\left[{w}\setminus {f}\left[{y}\right]\right]\subseteq {z}\setminus {y}\right)\right\}=\left\{{x}|\left({x}\subseteq {z}\wedge {g}\left[{w}\setminus {f}\left[{x}\right]\right]\subseteq {z}\setminus {x}\right)\right\}$
23 eqid ${⊢}\left({{f}↾}_{\bigcup \left\{{y}|\left({y}\subseteq {z}\wedge {g}\left[{w}\setminus {f}\left[{y}\right]\right]\subseteq {z}\setminus {y}\right)\right\}}\right)\cup \left({{{g}}^{-1}↾}_{\left({z}\setminus \bigcup \left\{{y}|\left({y}\subseteq {z}\wedge {g}\left[{w}\setminus {f}\left[{y}\right]\right]\subseteq {z}\setminus {y}\right)\right\}\right)}\right)=\left({{f}↾}_{\bigcup \left\{{y}|\left({y}\subseteq {z}\wedge {g}\left[{w}\setminus {f}\left[{y}\right]\right]\subseteq {z}\setminus {y}\right)\right\}}\right)\cup \left({{{g}}^{-1}↾}_{\left({z}\setminus \bigcup \left\{{y}|\left({y}\subseteq {z}\wedge {g}\left[{w}\setminus {f}\left[{y}\right]\right]\subseteq {z}\setminus {y}\right)\right\}\right)}\right)$
24 vex ${⊢}{w}\in \mathrm{V}$
25 14 22 23 24 sbthlem10 ${⊢}\left({z}\preccurlyeq {w}\wedge {w}\preccurlyeq {z}\right)\to {z}\approx {w}$
26 8 13 25 vtocl2g ${⊢}\left({A}\in \mathrm{V}\wedge {B}\in \mathrm{V}\right)\to \left(\left({A}\preccurlyeq {B}\wedge {B}\preccurlyeq {A}\right)\to {A}\approx {B}\right)$
27 2 3 26 syl2an ${⊢}\left({A}\preccurlyeq {B}\wedge {B}\preccurlyeq {A}\right)\to \left(\left({A}\preccurlyeq {B}\wedge {B}\preccurlyeq {A}\right)\to {A}\approx {B}\right)$
28 27 pm2.43i ${⊢}\left({A}\preccurlyeq {B}\wedge {B}\preccurlyeq {A}\right)\to {A}\approx {B}$