Lecture 03
Lecture 03
Propositional Analysis
Michael Genesereth
Computer Science Department
Stanford University
Syntax and Semantics
Evaluation:
pi = T ( p ∨ q)i = T
qi = F (¬q)i = T
Satisfaction:
( p ∨ q)i = T pi = T
(¬q)i = T qi = F
Programme for Today
Properties of Sentences
Validity, Contingency, Unsatisfiability
Satisfiability and Falsifiability
Useful "Metatheorems"
Equivalence, Unsatisfiability, Deduction, Consistency
Substitution, Monotonicity, Ramification
Properties of Sentences
Truth Tables
A truth table is a table of all possible interpretations
for the propositional constants in a language.
p q r
T T T
T T F One column per constant.
T F T
T F F One row per interpretation.
F T T
F T F For a language with n constants,
there are 2n interpretations.
F F T
F F F
Example
Oddities
Properties of Sentences
Valid
A sentences is satisfiable if and only
} if it is either valid or contingent.
Contingent
A sentences is falsifiable if and only
} if it is contingent or unsatisfiable.
Unsatisfiable
Possible Worlds
Possible Worlds
Possible Worlds
Possible Worlds
Possible Worlds
Possible Worlds
Valid Equivalences
Double Negation:
p ⇔ ¬¬p
deMorgan's Laws:
¬(p ∧ q) ⇔ (¬p ∨ ¬q)
¬(p ∨ q) ⇔ (¬p ∧ ¬q)
Implications:
(p ⇒ q) ⇔ (¬p ∨ q)
Biconditionals:
(p ⇔ q) ⇔ ((p ⇒ q) ∧ (q ⇒ p))
Valid Implications
Implication Introduction:
p ⇒ (q ⇒ p)
Implication Distribution
(p ⇒ (q ⇒ r)) ⇒ ((p ⇒ q) ⇒ (p ⇒ r))
Implication Reversal
(¬q ⇒ ¬p) ⇒ (p ⇒ q)
Relationships Between Sentences
Comparison of Sentences
Logical Equivalence
(p ∧ q) ⊨ (p ∨ q)
p ⊨ (p ∨ q)
(p ∧ q) ⊨ p
p ⊭ (p ∧ q)
Logical Entailment ≠ Logical Equivalence
p ⊨ (p ∨ q)
(p ∨ q) ⊭ p
{p, q} ⊨ (p ∧ q)
Sets of Conclusions
(p ∧ q) ⊨ {p, q}
Validities
If {} ⊨ ϕ , then ϕ is valid.
Examples:
{} ⊨ p ∨ ¬p
{} ⊭ p
{} ⊭ p ∧ ¬p
Examples:
{p, ¬p} ⊨ p
{p, ¬p} ⊨ ¬p
{p, ¬p} ⊨ q
If Γ ⊨ ϕ and Γ ⊆ Δ, then Δ ⊨ ϕ.
Example: {p, q} ⊨ p ∧ q
Therefore {p, q, r} ⊨ p ∧ q
If Ω ⊨ Δ and Γ ⊆ Δ, then Ω ⊨ Γ.
Monotonicity Theorem
Ramification Theorem
Equivalence Theorem
Substitution Theorem
Deduction Theorem
Unsatisfiability Theorem
Consistency Theorem
Monotonicity Theorem
If Γ ⊨ ϕ and Γ ⊆ Δ, then Δ ⊨ ϕ.
Example: {p, q} ⊨ p ∧ q
Therefore {p, q, r} ⊨ p ∧ q
If Ω ⊨ Δ and Γ ⊆ Δ, then Ω ⊨ Γ.
Example: {p ∧ q} ⊨ {p, q}
Therefore {p ∧ q} ⊨ {p}
p q (p ⇒ q) ⇔ (p ⇒ (q ⇒ p))
1 1 1
1 0 0
0 1 1
0 0 1
CS 157 Quiz Question #1
(p ⇒ q) ⇔ (p ⇒ (q ⇒ p)) is contingent.
CS 157 Quiz Question #2
Substitution Theorem
and
(p ⇒ ¬q) ⇔ (¬p | ¬q)
CS 157 Quiz Question #2
Substitution Theorem
and
(p ⇔ ¬q) ⇔ (p ⇒ ¬q) ∧ (¬q ⇒ p)
CS 157 Quiz Question #2
Deduction Theorem
CS 157 Quiz Question #2
Definition of Entailment
Definition of Conjunction
CS 157 Quiz Question #2
Monotonicity Theorem
CS 157 Quiz Question #3a
http://logica.stanford.edu