Lec 4 (3 - Part2)
Lec 4 (3 - Part2)
Direct Deduction
Premises Conclusion
m p q m p q
T T T T T T
T T F T T F
T F T T F T
T F F T F F
F T T F T T
F T F F T F
F F T F F T
F F F F F F
KB + Observation
Wumpus World
Wumpus World
𝛼 = “There is no pit in [1,2] ”
1
Proofs:
Symbolic manipulation of sentences
rather than enumeration of truth assignments.
Benefits:
Proofs are usually smaller than truth tables.
Proofs can often be found with less work.
Proof Systems
Others:
Gentzen Systems
Sequent Calculi
and so forth
Programme
Direct Proofs
Axiom Schemata
Rules of Inference
Direct Proofs
Hilbert Proof System
Soundness and Completeness
Practical Matters
Hierarchical Proofs
Metatheorems
Direct Proofs
Linear Reasoning
Schemas / Schemata
A axiom schema is an expression satisfying the
grammatical rules of our language except for the
occurrence of metavariables (written here as Greek letters)
in place of various subparts of the expression.
φ ⇒ (ψ ⇒ φ)
Instances
An instance of a schema is a sentence obtained by
consistently substituting sentences for the metavariables in
the rule.
Schema:
φ ⇒ (ψ ⇒ φ)
Instances:
p ⇒ (q ⇒ p)
¬p ⇒ (q ⇒ ¬p)
(p ⇒ q) ⇒ ((q ⇒ r) ⇒ (p ⇒ q))
Non-Instance:
p ⇒ (q ⇒ r)
Valid Axiom Schemata
Reflexivity: (j Þ j)
Negation Elimination: (¬¬j Þ j)
Negation Introduction: (j Þ ¬¬j)
Tautology: (j Ú ¬j)
32
Rules of Inference
A rule of inference is a pattern of reasoning consisting of
zero or more axiom schemas, called premises, and one or
more additional schemas, called conclusions.
A rule applies to a set of sentences if and only if there is an instance of the rule in
which all of the premises are in the set. In this case, the conclusions of the instance
are the results of the rule application.
Rules of Inference for ¬ and ⇒
Implication Distribution
(φ ⇒ (ψ ⇒ χ))
(φ ⇒ ψ) ⇒ (φ ⇒ χ)
Rule Instances
An instance of a rule of inference is the rule obtained by
consistently substituting sentences for the metavariables in
the rule.
Rule of Inference:
φ⇒ψ
φ
ψ
Instances:
p⇒q ¬p ⇒ q (p ⇒ q) ⇒ (q ⇒ r)
p ¬p p⇒q
q q q⇒r
Rule Application
Premises: Rule of Inference:
p φ⇒ψ
(p Þ q) φ
(p Þ q) Þ (q Þ r) ψ
Conclusion 1: Conclusion 2:
q (q Þ r)
Top Level Sentences Only!!!
Premises:
(p Þ q)
(p Þ r)
(1) a premise,
1. p Premise
2. pÞq Premise
3. (p Þ q) Þ (q Þ r) Premise
4. q IE: 1, 2
5. qÞr IE: 2, 3
6 r IE: 4, 5
Example
1. p Þ q Premise
2. q Þ r Premise
3 p Þ (q Þ r) IC: 2
4 (p Þ q) Þ (p Þ r) ID: 4
5 (p Þ r) IE: 4, 5
Example
1. p Premise
2. ¬p Premise
3. ¬q Þ ¬p IC: 2
4. p Þ q IR: 3
5. q IE: 4, 1
Example
1. ¬¬p Premise
2. ¬¬¬¬p Þ ¬¬p IC: 1
4. ¬p Þ ¬¬¬p IR: 2
5. ¬¬p Þ p IR: 3
6 p IE: 5, 1