In this little post we are going to quickly and formally prove that the function we built in Infinity and Beyond - Part 2 is in fact a bijection. This post is only for those who are really interested to see the formal proof, as we have already informally proven this in the original article.
The function
The function we created looked like this.
![01.png](https://images.hive.blog/768x0/https://steemitimages.com/DQmYUefD4bvjpke4MU8GjeoDxSaenamcXtpKijiC2Uu7Vdq/01.png)
Remember that and
.
Injection
Mathematical definition of injections.
![04.png](https://images.hive.blog/768x0/https://steemitimages.com/DQmbZh9HiLqxbBZZri1QJU7XWo1YJMMDnenHC7VwTwQfYcu/04.png)
Read as "For all and all
from A,
implies
."
We can show this easily by starting on one side and working our way over to the other side.
![09.png](https://images.hive.blog/768x0/https://steemitimages.com/DQmP7fuYNBYxe4qXTbfy2MuSUr1T5EPYbSSvRhLM8pZ7Qu6/09.png)
Surjection
Mathematical definition of surjections.
![10.png](https://images.hive.blog/768x0/https://steemitimages.com/DQmNgmDgTMj3gCCcyUEEcbz5EGCWXKVMUB3h3YrJNaB6T4k/10.png)
Read as "For all y in B there exists an x in A such that f(x) = y"
We can't show this directly, so we try to invert the function and prove that the inverted function is correct.
![11.png](https://images.hive.blog/768x0/https://steemitimages.com/DQmWb43eMfwy6pdp1esywLRMfrKA75xSdthMdhZmSsTKdyw/11.png)
This leads to the inverse function . For it to be correct the following must hold.
![13.png](https://images.hive.blog/768x0/https://steemitimages.com/DQmTHsRUzFVV9WXHQRumcV2UUAVYRdtfTce5h6CJv3g1vFr/13.png)
Again, we can easily show this by working from one side to the other.
![14.png](https://images.hive.blog/768x0/https://steemitimages.com/DQmPdvUjYtCw1Z2jwYJgdSb8y5Fhnk6ntGuvcytZhTDdX5S/14.png)
Q.E.D.
Conclusion
We just proved that our function is both an injection and a surjection, which makes it a bijection.
- Injection Definition - https://en.wikipedia.org/wiki/Injective_function
- Surjection Definition - https://en.wikipedia.org/wiki/Surjective_function
PS: The abbreviation "Q.E.D." stands for the Latin phrase "quod erat demonstrandum" and translates to "what was to be demonstrated".Source It is often found under mathematical proof. Think of it as the mathematical way of saying "The End".
Deutsche Version hier.