Formal logic is the science of deductively valid inferences or logical truths. It studies how conclusions follow from premises due to the structure of arguments alone, independent of their topic and content.
Hilbert-style systems and Gentzen-style systems.
Gentzen’s Natural Deduction is a pretty neat one.
| <PREMISE 1>
| <PREMISE 2>
| ...
| <PREMISE N>
|--------------- <rule-name>
| <CONCLUSION>
| A
| B
|-------- conj-intro
| A ∧ B
| A ∧ B
|-------- conj-elim-l
| A
| A ∧ B
|-------- conj-elim-r
| B
| A
|------------- disj-intro-l
| A ∨ B
| B
|------------- disj-intro-r
| A ∨ B
| A ∨ B
|
| | A
| |----
| | C
|
| | B
| |----
| | C
|--------- disj-elim
| C
| A
|-----
| B
--------- impl-intro
A ==> B
| A ==> B
| A
|---------- impl-elim
| B
| | A
| |-----
| | ⊥
|
|-------------- neg-intro
| ¬A
| A
| ¬A
|--------- neg-elim
| ⊥
| ⊥
|------ contra-elim
| A
| | ¬A
| |-----
| | ⊥
|----------- proof-by-contra
| A
| | x
| |-------
| | P[x]
|------------- forall-intro
| ∀ α P[x/α]
As a side-condition—the x
must not “escape” its scope.
Demonstrate.
| ∀ α P[α]
|------------- forall-elim
| P[α/x]
| P[t]
|------------ exists-intro
| ∃ α P[t/α]
As a side note—not all occurrences of term t
have to be replaced with α
s.
Demonstrate.
| ∃ α P[α]
|
| | P[α/x]
| |-------
| | F
|
|----------- exists-elim
| F
As a side-condition—the x
must not “escape” its scope.
Do these resemble something you know? Maybe focus on the implication introduction and elimination, forall introduction …
Theorem proving is not magic!
Let’s do some light theorem proving.