Wikipedia states:
In mathematical logic, the proof by contradiction is represented as "if $S \cup \{ P \} \vdash \mathbb{F}$ then $S \vdash \neg P$" or "if $S \cup \{ \neg P \} \vdash \mathbb{F}$ then $S \vdash P$".
Is it true? Are the two really the same? I think it is impossible for one to deduce the "law of excluded middle" from the the second representation, but possible to do so using the first. Am I wrong?
Law of excluded middle states that "Everything is either true or false". I know how to use the first statement of RAA (proof by contradiction) to prove this law, but is it possible to do so using the second statement?
Why I claim it to be impossible, you ask? Because in the natural system of deduction, RAA is the only way to introduce a $\neg$ to the right-hand side. Replacing the first form, with the second, I see no way of introducing $\neg$ to right-hand side.
The two formulations are easily equivalent if $\vdash \neg\neg P\leftrightarrow P$, as is the case in classical logic but not in intuitionistic logic.
In intuitionistic logic they are not the same. Indeed, the inference $$ \tag{1} \frac{S,P\vdash \bot}{S\vdash \neg P}$$ is intuitionistically valid (and is the canonical way of establishing $\neg P$ intuitionistically), whereas $$ \tag{2} \frac{S,\neg P\vdash \bot}{S\vdash P} $$ is not intuitionistically valid. Adding the latter rule to intuitionistic logic will produce classical logic.
The law of excluded middle is, of course, another example of something that is classically but not intuitionistically valid. Therefore it cannot be proved using only (1) (and other intuitionistically valid rules).
The law of excluded middle can be proved using (2) -- namely, $\neg(A\lor \neg A)\vdash \bot$ is intuitionistically valid, and one application of (2) will then conclude $A\lor \neg A$.
To reach a contradiction from $\neg(A\lor \neg A)$, use the fact that $\neg(P\lor Q)\vdash \neg P$ intuitionistically to conclude first $\neg A$ and then $\neg\neg A$, which contradict each other.