Benn said:
I know that it's a fundamentally wrong method of proof in a general sense. For example, in your example there are actually 2 options for the solution. In x+2=0 there is guaranteed to be one solution. Its like you have a simple puzzle with one piece missing and you put the missing piece into see if its right. So you exclude all the other possibilities by just plugging it in and verifying. I understand though that this might not work for other cases where there are multiple options to worry about. So is it then still wrong to prove it that way?
Yes! It is
always invalid the moment you assume the consequent. Don't you see why? If you assume the consequent, your entire proof is based on the truth of the consequent, how could you arrive at
anything other than the consequent being true? It's circular logic.
For example:
Theorem: If the 2 < 5, then elephants are reptiles.
Assume elephants are reptiles.
Then elephants must possesses all of the traits of a reptile.
Therefore elephants are reptiles.
Therefore if 2 < 5, then elephants are reptiles.
QED
Plugging in an example to show it works doesn't prove anything for a for all statement. You could negate the statement, which becomes a "there exists" and then plug something into THAT to show that the negation is true, and therefore the theorem is false. That's called a counter example, but that's not what you're doing.
You brought up "if x + 2 = 0, then x = -2." You seem to be under the impression that plugging in -2 is OK because "x + 2 = 0" is "guaranteed" to have only one solution.
However, you have NOT proved that it has only one solution! You just took that it only has one solution as axiom because you know algebra, but that's what you're trying to prove! Of course if x + 2 = 0 only has one solution, and it's -2, then the proposition is true; all you've done by saying that it is "guaranteed to have one solution" is reworded the proposition and assumed that your rewording was true. But you've done nothing to prove that it only has one solution by plugging in -2.
"If x + 2 = 0, then x = - 2."
"Assume x + 2 = 0"
"Then x + 2 - 2 = 0 - 2"
"Therefore x = -2"
Is a valid proof. I have shown that it only has one solution, and that it is -2.
"If x + 2 = 0, then x = - 2."
"Assume x = -2"
"*whatever I want*"
"Then x = -2"
Could never, ever be a proof of anything, other than proof of my inability to do proofs.