Show that P \to Q \equiv \neg P \lor Q.
One way we could do this is by making a truth table:
\begin {array}{ccccc}
P & Q & P \to Q & \neg P & \neg P \lor Q \\ \hline
\mathsf {T} & \mathsf {T} & \mathsf {T} & \mathsf {F} & \mathsf {T} \\
\mathsf {T} & \mathsf {F} & \mathsf {F} & \mathsf {F} & \mathsf {F} \\
\mathsf {F} & \mathsf {T} & \mathsf {T} & \mathsf {T} & \mathsf {T} \\
\mathsf {F} & \mathsf {F} & \mathsf {T} & \mathsf {T} & \mathsf {T} \\
\end {array}
Notice that the columns for P \rightarrow Q and \neg P \lor Q are
exactly the same, which means that these two propositions always
have the same truth value. Hence they are logically equivalent.
We could also use Disco to check this automatically, like so:
Disco> :test forall p: Bool, q:Bool. (p -> q) == (not p \/ q)
- Certainly true: ∀p, q. (p -> q) == (not p \/ q)
No counterexamples exist; all possible values were checked.