Professional Documents
Culture Documents
COGS 502
• We need valid arguments to reason about
situations formally
conclusion
Name of
the rule
1. p∧q premise
2. r premise
3. q ∧e 1
4. q∧r ∧i 3,2
The rules of double negation
• Intuitively, there is no difference between a
formula φ and its double negation ¬¬φ
• p, p → q and p → (q → r)
• infer r
cont.
1. p → (q → r) premise
2. p→q premise
3. p premise
4. q→r →e 1, 3
5. q →e 2, 3
6. r →e 4, 5
Modus tollens (MT)
• Suppose that p → q and ¬ q are the case
• Then, if p holds we can use →e to conclude that q holds.
Thus, we then have that q and ¬ q hold, which is
impossible. Therefore, we may infer that p must be false
1. p → (q → r) premise
2. p premise
3. ¬r premise
4. q→r →e 1, 2
5. ¬q MT 4, 3
The rule implies introduction
• p → q Ⱶ ¬q → ¬p
• If we temporarily assume that ¬q holds, we
can use MT to infer ¬p. Thus, assuming p → q
we can show that ¬q implies ¬p
cont.
• Showing p → q using the rule →i is called type
checking, an important topic in the construction of
compilers for typed programming languages
Theorems
• Logical formulas φ with valid sequent Ⱶ φ are
theorems