The identity function is a proof of the formula P \to P, no matter what
P is. The
law of non-contradiction \neg (P \wedge \neg P) expands to (P \wedge (P \to \bot)) \to \bot: • A proof of (P \wedge (P \to \bot)) \to \bot is a construction that converts a proof of (P \wedge (P \to \bot)) into a proof of \bot. • A proof of (P \wedge (P \to \bot)) is a pair of proofs \langle a, b \rangle, where a is a proof of
P, and b is a proof of P \to \bot. • A proof of P \to \bot is a construction that converts a proof of P into a proof of \bot. Putting it all together, a proof of (P \wedge (P \to \bot)) \to \bot is a construction that converts a pair \langle a, b \rangle – where a is a proof of P, and b is a construction that converts a proof of P into a proof of \bot – into a proof of \bot. There is a function f that does this, where f(\langle a, b \rangle) = b(a), proving the law of non-contradiction, no matter what
P is. Indeed, the same line of thought provides a proof for the
modus ponens rule (P \wedge (P \to Q)) \to Q as well, where Q is any proposition. On the other hand, the
law of excluded middle P \vee (\neg P) expands to P \vee (P \to \bot), and in general has no proof. According to the interpretation, a proof of P \vee (\neg P) is a pair \langle a, b \rangle where
a is 0 and
b is a proof of P, or
a is 1 and
b is a proof of P \to \bot. Thus if neither P nor P \to \bot is provable then neither is P \vee (\neg P). ==See also==