We start with a basic set of rules, that is complete.
By complete, we mean that it is sufficient to prove any valid argument.
Our rules will either eliminate or introduce a connective, our proof system will have a pair of rules for each connective of the language.
⊝I will be used to designate the introduction of the connective ⊝.
For instance, (∧I) will be used to denote the rule that introduces the connective ∧.
⊝E will be used to designate the elimination of the connective ⊝.
For instance, (∧E) will be used to denote the rule that eliminates the connective ∧.
A∧B is only true when both A and B are true.
Similarly, whenever we know that A∧B is true, we know that A and B are both true.
This gives us (∧I) and (∨E) rules as:
?
title: Example 1: Prove that $A \land B \vdash B \lor C$$$ \begin{aligned} &1. &&A \land B &&\text{data} \\ &2. &&B &&\text{from } (1.) \text{ and } (\land E) \\ &3. &&B \lor C &&\text{from } (2.) \text{ and } (\lor I) \end{aligned}$$
Elimination of disjunction (∨E)
Natural Deduction elimination of disjunction
The first (∨E) we present is an indirect rule.
We can eliminate a dis-junction A∨B by showing that some formula C follows from both A and B, so whichever of A or B is the case, C will hold:
?
title: Example 2: Prove that $A, A \rightarrow (B \lor C), B \rightarrow D, C \rightarrow D \vdash D$$$ \begin{aligned} &1. &&A &&\text{data} \\ &2. &&A \rightarrow (B \lor C) &&\text{data} \\ &3. &&B \rightarrow D &&\text{data} \\ &4. &&C \rightarrow D &&\text{data} \\ &5. &&B \lor C &&\text{since } (1.), (2.) \text{ and } (\rightarrow E) \\ &6. &&D &&\text{since } (5.), (3.), (4.) \text{ and } (\lor E) \end{aligned}$$
Rules for negation (¬)
Natural Deduction rules for negation
The rules for negation are also done indirectly and can be tricky.
In order to conclude ¬A, we must show that if A were the case, then we would reach a contradiction. We can also use the same reasoning to eliminate ¬ by starting with the negated formula, ¬A.
Hence:
?
title: Example 3: Prove that $A \rightarrow B, A \rightarrow \neg B, C \vdash \neg A \land C$$$ \begin{aligned} &1. &&A \rightarrow B &&\text{data} \\ &2. &&A \rightarrow \neg B &&\text{data} \\ &3. &&C &&\text{data} \\ &4. &&\neg A &&\text{since } (1.), (2.), and (\neg I) \\ &5. &&\neg A \land C &&\text{since } (3.), (4.), and (\land I) \end{aligned}$$
Rules for biconditional (⟺)
Natural Deduction rules for biconditional
When dealing with the biconditional, ⟺, there is two natural deduction rules, one for introduction and elimination:
?
A subcomputation box defines a sub-proof that is dependent on an extra assumption.
The box demonstrates that the consequent of the implication is a valid conclusion under the assumption that the antecedent is true. Our goal is to justify the derivation of the implication:
If the assumption is true, then the box provides valid proof of the consequent, therefore the implication holds.
If the assumption is false, the implication will hold anyway because an implication is true when its antecdent is false. (refer to → truth table)
Hence, if a box manages to show the conclusion, the implication will be true whether or not the extra assumption is true, and therefore true under the original circumstances.
title: Example 5: Prove $A \rightarrow B, B \rightarrow C \vdash A \rightarrow C$$$ \begin{array}{c} \begin{aligned} &1. &&A \rightarrow B &&\text{data} \\ &2. &&B \rightarrow C &&\text{data} \\ &3. &&A \rightarrow C &&(\rightarrow I) \text{ from the subcomputation below} \end{aligned} \\ \boxed{ \begin{aligned} & && && &&\underline{C} \\ &3.1. &&A &&\text{assumption} \\ &3.2. &&B &&\text{from } (3.1), (1.) \text{ and } (\rightarrow E) \\ &3.3. &&C &&\text{from } (3.2), (2.) \text{ and } (\rightarrow E) \end{aligned} } \end{array}$$You can think of the box as proof that $A \rightarrow C$ under the assumption that $A \rightarrow B$ and $B \rightarrow C$.
Using subcomputation boxes
In order to correctly perform a subcomputation, we follow these rules:
The assumption at the beginning of a box may only be used in the box.
Any conclusions previously available, including premises and formulas derived can also be used inside the box.
Any conclusion obtained inside the box that depends on the box’s initial assumption cannot be used on its own. (for example, as with example 5 above, C cannot be used on its own as it relies on the assumption of A)
title: Example 6: Prove $A \rightarrow B \vdash \neg B \rightarrow \neg A$$$ \begin{array}{c} \begin{aligned} &1. &&A \rightarrow B &&\text{data} \\ &2. &&\neg B \rightarrow \neg A &&(\rightarrow I) \text{ from the subcomputation below} \end{aligned} \\ \boxed{ \begin{aligned} \begin{aligned} & && && &&\underline{\neg A} \\ &2.1. &&\neg B &&\text{assumption} \\ &2.2. &&A \rightarrow \neg B &&(\rightarrow I) \text{ from the subcomputation below} \end{aligned} \\ \boxed{ \begin{aligned} & && && &&\underline{\neg B} \\ &2.2.1. &&A &&\text{assumption} \\ &2.2.2. &&\neg B &&\text{since } (2.1) \end{aligned} } \\ \begin{aligned} &\neg A && &&\text{from } (1.), (2.2), \text{ and } (\neg I) \\ \end{aligned} \end{aligned} } \end{array}$$You can think of the box as proof that $A \rightarrow C$ under the assumption that $A \rightarrow B$ and $B \rightarrow C$.
We can avoid the need for a subcomputation box if we augment our basic set of rules with an extra implication-introduction rule of the form:
A→BB(→I2)
This variant implication-introduction rule avoids the need for a subcomputation box in the cases where the consequent of the implication is already part of the current proof.
Using the form above, we can write the proof B⊢A→B as:
1.2.BA→Bdatafrom (1.) and (→I2)
Variant disjunction elimination rules (∨E1) (∨E2)
Variant disjunction elimination rules
The variant disjunction elimination rules, ∨E1 and ∨E2 are:
?
With (∨I), we can get from ¬A to ¬A∨B and B to ¬A∨B, which we know are equivalent to A→B.
Using (→I1) we can derive an implication whose antecedent is false, and using (→I2) we can derive an implication whose consequence is true:
?
title: Example 2: Show that $A \lor B, \neg B \vdash A$$$ \begin{aligned} &1. &&A \lor B &&\text{data} \\ &2. &&\neg B &&\text{data} \\ &3. &&A &&\text{from } (1.), (2.), \text{ and } (\lor E2) \\ \end{aligned}$$
title: Example 3: Show that $A \land \neg A \vdash B$$$ \begin{aligned} &1. &&A \lor \neg A &&\text{data} \\ &2. &&A &&\text{from } (1.) \text{ and } (\land E) \\ &3. &&\neg B \rightarrow A &&\text{from } (2.) \text{ and } (\rightarrow I2) \\ &4. &&\neg A &&\text{from } (1.) \text{ and } (\land E) \\ &5. &&\neg B \rightarrow \neg A &&\text{from } (4.) \text{ and } (\rightarrow I2) \\ &6. &&B &&\text{from } (3.), (5.), \text{ and } (\neg E) \end{aligned}$$
title: Example 4: Show that $\neg A, B \rightarrow C \vdash A \rightarrow C$$$ \begin{aligned} &1. &&\neg A &&\text{data} \\ &2. &&A \rightarrow C &&\text{from } (1.) \text{ and } (\rightarrow I1) \end{aligned}$$