Question: To show that 2 sets have the same cardinality, there needs to be atleast one bijective mapping between them. So given the below proof of a bijective mapping below, why can't we say that $\left | \mathbb{R} \right |=\left | \mathbb{N} \right |$? Where is the mistake in this proof?
Background: I am studying Real Analysis from the book "Real Analysis: A Long-Form Mathematics Textbook" by Jay Cummings. In Theorem 2.9 of $\left | \mathbb{R} \right |>\left | \mathbb{N} \right |$ through Cantor's Diagonaliation argument. Now, I get why the presented mapping isn't bijective but I don't why get there can't be any bijective mapping from $\left | \mathbb{R} \right | $ and $\left | \mathbb{N} \right |$? If there is proof of this please let me know. But, while thinking about this I made this proof which seems to tell that their cardinality is same, please do also let me know where the mistake is in the given proof.
Wrong Proof: The mapping here is from $\mathbb{N_{0}}$ to $\mathbb{(0,1)}$. Through something like sigmoid function, we can show that $|(0,1)| = |\mathbb{R}|$, and though a simple shift we can also show that $|\mathbb{N_{0}}| = |\mathbb{N}|$. And we also can prove that cardinality does show transitive property that is if $|A|=|B|$ and $|B|=|C|$ then $|A|=|C|$ (Composite of bijectives is also bijective function). This is the mapping: $$ ....a_{13}a_{12}a_{11} \rightarrow 0.b_{11}b_{12}b_{13}....\\ ....a_{23}a_{22}a_{21} \rightarrow 0.b_{21}b_{22}b_{23}....\\ ....a_{33}a_{32}a_{31} \rightarrow 0.b_{31}b_{32}b_{33}.... $$ where, $ a_{ij}, b_{ij} \in \{0,1,2,3,4,5,6,7,8,9\} $. To make the mapping we first have "$....a_{13}a_{12}a_{11} \rightarrow 0.b_{11}b_{12}b_{13}....$", through Cantor's diagonilization we can pop out 2 numbers from left and right side, both of which will then be mapped to each other and added to this relation. In this way this relation is being built. (better explanation in part of the proof where we prove this function is surjective)
To convince us that the left side is indeed $\mathbb{N_{0}}$. We can see that "$....a_{i3}a_{i2}a_{i1}$" this will always be postive (or zero) and will never have decimal points, and so it is indeed a representation of $\mathbb{N_{0}}$. (representation of $\mathbb{N_{0}}$ itself might be wrong)
To convince us that this relation is indeed a function:
- We can pick any element of $\mathbb{N_{0}}$ and there does exist some way in which we can represent it in the form "$....a_{i3}a_{i2}a_{i1}$" and so some mapping of every element of domain exists.(maybe I'm wrong here)
- The mapping of one $x$ in $\mathbb{N_{0}}$ will always land on the same $y$ in $\mathbb{(0,1)}$, due to how we have defined the mapping, no number on left side will ever repeat. This is because the relation is being built through Cantor's diagonalization process on both sides.
This relation is a function, now is it bijective?
- It is injective (one-to-one) because of its definition.
- Is it surjective (onto)? --> This is the main part of the proof. (most probably where I'm wrong)
- Now, through Cantor's diagonalization (CD) on right side we can at any "step" pick out a number which isn't mapped to yet, but again through CD on the left side, we can pick out a natural number which is left to be mapped. Well we have a number on right side not mapped to yet and a number on left side which hasn't gotten its mapping yet, we simply map them to each other. In this way no matter at what "step" you look no element of $\mathbb{N_{0}}$ or $(0,1)$ aren't mapped. So, no element of $(0,1)$ is left unmapped to by $\mathbb{N_{0}}$.
- So, no element of $(0,1)$ can be found which cannot be mapped to in this fashion. (raises some eye-brows)
Well this shows us that we have just constructed a bijective mapping between $\mathbb{N_{0}}$ and $(0,1)$, which implies that $|\mathbb{N_{0}}| = |(0,1)|$. And so we have: $$ |\mathbb{N_{0}}| = |(0,1)| \\ |(0,1)| = |\mathbb{R}| \\ |\mathbb{N}| = |\mathbb{N_{0}}| \\ $$ which imples => $$ |\mathbb{R}|= |\mathbb{N}| $$
Remarks: I think if someone can help me find one example in $(0,1)$ which isn't mapped to through this definition then we can confidently say that this proof is incorrect. Or if we can show that this relation cannot actually map all elements of $\mathbb{N_{0}}$ (which is it's domain) then also this proof is incorrect.
Edits:
- Realised that the representation itself might be wrong for this proof, which means that "$....a_{i3}a_{i2}a_{i1}$" could actually not be $\mathbb{N_{0}}$