Propositional Logic - Semantics and Formal Proofs
Propositional Logic - Semantics and Formal Proofs
Propositional Logic - Semantics and Formal Proofs
COMPUTER SCIENCE
Propositional logic
Semantics & Formal Proofs
SEMANTICS
SEMANTICS
T T T
T F F
F T T
F F T
BASIC TRUTH TABLES
φ ¬φ
⊥
T F
F
F T
φ ψ φ ∧ψ φ ∨ψ φ →ψ
T T T T T
T F F T F
F T F T T
F F F F T
Question
• Let 2 = { F, T }
• Let ¬ : 2 → 2, ∨: 2×2 → 2, ∧: 2×2 → 2, →: 2×2 → 2 be the
obvious functions (note: we are abusing notation)
• Logicians are not happy with this state of affairs and devised a number of formal proof systems.
Here the proof itself is a mathematical object with strict rules: we can tell if something is a proof or not
a proof by examining is. There is a close connection between proofs and programs.
• An analogy can be made with recipe books (written for humans) and programs (written for machines).
When is a recipe not a well-formed recipe? When is a program not a well-formed program?
• Write ⊦ φ when we can prove φ without using any assumptions (i.e. as shorthand
for ∅ ⊦ φ)
SOUNDNESS
• When is a proof system correct?
Γ ⊦ φ implies Γ ⊧ φ
• “whenever gamma proves phi, gamma semantically entails phi"
• So if we can prove that φ holds given from some assumptions, if those assumptions are
true then φ must be true also!
Γ ⊧ φ implies Γ ⊦ φ
• “whenever gamma semantically entails phi, gamma proves phi”
• whenever φ is true given that some formulas are true, then φ is also provable from those
formulas
• i.e. if something is true, the proof system is powerful enough to prove it.