In the first case when you assume $\lnot r$ is true, you don't know it is true it may or may not in actuality be true.. But in presuming it is true you do prove that $\lnot r \implies \lnot c$ is true, always true.
Consider the possibility $n^2 = 4k + 2$ for some integer $k$. We don't know if it is true or not. And we are not claiming it is true but we are considering what may happen if it is true.
But if it is true $n^2 = 2(2k+1)$ is even so $n$ is even. So $\frac n2$ is an integer and $n*\frac n2$ is an even integer. And $n*\frac n2=\frac{n^2}2 = 2k+1$ is an even integer.
So we have proven that $n^2 = 4k + 2$ for some integer $k \implies 2k+1$ is even. The implication is a true statement whether or not $n^2$ does or does not equal $4k +2$ for some integer $k$.
And no we know that $2k+1$ is odd is always true.
So you have $n^2 = 4k + 2\implies 2k+1$ is even. And we have $2k+1$ is odd. Then $n^2 = 4k + 2 \implies (2k + 1$ is even $\land 2k+1$ is odd$)$.
That is true whether are not we know that $n^2 = 4k +2 $ or not.
But $(2k+1$ is even $\land 2k+1$ is odd$)$ is certainly false.
So the only way that $n^2 = 4k + 2 \implies (2k + 1$ is even $\land 2k+1$ is odd$)$ is true is if $n^2 = 4k + 2$ is false.
So $n^2 = 4k + 2$ is false. We never asssumed it was true but we showed if it were true a contradiction would arise.
.......
"it's blue or it's red ⇔ if it's not blue then it's red" what if it's yellow though? both sentences would be false (correct since they're equivalent)
Exactly. Nothing wrong with that. "it's blue or it is red" is false and $"if it's not blue then it's red" is false.
Equivalency can hold if both are false.
but I can't say that since "it's not blue" it's red, because it's yellow!
Of course not. "if it's not blue it's red" was a FALSE state.
"If an animal isn't a horse, then it is a pig" is false. So you show me a rabbit. And I claim, since it's not a horse it's a pig.
Why would I do that. "If an animal isn't a horse, then it is a pig" is FALSE so I wouldn't say that.
This is what the the textbooks seem to say: "since (c∧∼c) is false, r must be true." but how? what if it's another thing?
Other than what?
Let's suppose it is yellow. Then we know it is not red and we know it is not blue.
And we proved "if it's either red or blue then if it's not blue it is red" That would mean if (it's red or blue) then as it's not blue (it is red)
So (it's red or blue)$\implies$ (it's red).
And we know (it's not red).
So (it's red or blue) $\implies$ (it's red and it's not red).
As the later is certainly false then (it's red or blue) must be false. And it IS false. It's yellow!