Logical implications describe conditional relationships between statements and are essential for formal mathematical proofs.
The implication "if $p$ then $q$" is the connective on which theorems are based: every statement of the type "if the hypotheses hold, then the thesis holds" is an implication. Understanding its behavior prevents common errors in reasoning [1].
It is written $p \to q$, with $p$ as antecedent and $q$ as consequent. It is false only when $p$ is true and $q$ is false; it is true in the other three cases, including the one with a false antecedent (vacuously true). It is equivalent to $\lnot p \lor q$ [1][2].
In $p \to q$, $p$ is a sufficient condition for $q$ and $q$ is a necessary condition for $p$. Example: "if a number is a multiple of $6$, then it is even": being a multiple of $6$ is enough to be even, but being even is only necessary (general observation).
- Inverse: $q \to p$. It is not equivalent to the original.
- Converse: $\lnot p \to \lnot q$. It is not equivalent to the original.
- Contrapositive: $\lnot q \to \lnot p$. It is equivalent to the original.
With values $p$ false and $q$ true, the implication $p \to q$ is true but the inverse $q \to p$ is false (calculation): therefore they are not equivalent. The contrapositive is equivalent in all $4$ rows of the truth table (calculation).
- Direct proof: from $p$ deduce $q$.
- By contraposition: prove $\lnot q \to \lnot p$.
- By contradiction: assume $p \land \lnot q$ and arrive at a contradiction.
- Exportation property: $p \to (q \to r) \equiv (p \land q) \to r$, verified on the $8$ rows (calculation).
$p \leftrightarrow q$ is equivalent to $(p \to q) \land (q \to p)$. A "if and only if" theorem requires proving both directions. See the rows on truth tables and connectives.
Mathematical reasoning, "if... then" rules in programs and expert systems (general observation).
Material implication does not express a cause: "if $2 + 2 = 5$ then the Moon is made of cheese" is true. For this reason, the intuitive reading "$p$ causes $q$" is misleading. Using the inverse instead of the original is a common error.
[1] Wikipedia (it): Implicazione logica
[2] Wikipedia (en): Material conditional
Generating summary…