Professional Documents
Culture Documents
Propositional Logic - Natural Deduction
Propositional Logic - Natural Deduction
COMPUTER SCIENCE
Propositional logic
Natural Deduction
FORMAL PROOF SYSTEMS
• Last time we discussed formal proof systems in
general, together with the concepts of soundness
and completeness.
3
PROOFS IN NATURAL
DEDUCTION
•A proof can be seen as a tree where
• leaves are assumptions
assumptions
• the root is the proved formula
4
RULES OF NATURAL
DEDUCTION
RULES FOR CONJUNCTION
∧-introduction ∧-elimination
6
RULES FOR IMPLICATION
→-introduction →-elimination
(modus ponens)
7
EX (TRUSS 7.1 (1))
•A
proof in natural deduction of χ with assumptions φ∧ψ,
φ→(ψ→χ)
8
EX (TRUSS 7.1 (1))
•A
proof in natural deduction of χ with assumptions φ∧ψ,
φ→(ψ→χ)
9
DISCHARGING ASSUMPTIONS
∧-introduction
1 2
→-introduction
1
10
Question
→-elimination
[χ]1 χ→ψ [χ]1 χ→φ (modus ponens)
→Ε →Ε
ψ φ
∧-introduction ∧Ι
φ∧ψ
→-introduction
→Ι1
χ→φ∧ψ
RULES FOR NEGATION
¬-introduction ¬-elimination
13
RULES FOR DISJUNCTION
∨-elimination
∨-introduction
14
RULES FOR ‘FALSE’
More on this later
17
Question
[¬ψ]
[φ]1 φ→ψ
→E [¬φ]
ψ [¬ψ]2
¬E
⊥
¬I1
¬φ
→Ι2
¬ψ→¬φ
RULES FOR ‘FALSE’
φ ∨ ¬φ
Excluded middle
RAA (Reductio ad absurdum) (Tertium non datur)
• Using these rules can result in proofs where you prove that
something exists, but don’t know what it is.
Example
√2 √2
(√2 ) = (√2)√2×√2 = (√2)2 = 2.
Γ ⊦ φ implies Γ ⊧ φ
• Consider:
φ
¬φ
26
A PROOF AS A TREE
COMPLETENESS
28