I'm struggling with understanding proof by contradiction. So, I understood proof by contradiction as written below.
Want to prove "$p$ is true". First, assume that "$p$ is false". Show that this assumption leads to a contradiction e.g. $q$ is true and $q$ is false at the same time. Therefore, "$p$ is true".
So I understand "$p$ is false" leads to a contradiction and therefore "$p$ is false" cannot be true. But I don't understand why this has to lead "$p$ is true" i.e. I'm confused why "$p$ is false" being wrong has to mean "$p$ is true". Is it just nature of mathematics that has to be either true or false? Why can't it be like "$p$ is false" is wrong but "$p$ is true" is also wrong?