ppt - IIT Bombay

Download Report

Transcript ppt - IIT Bombay

CS344 : Introduction to Artificial
Intelligence
Pushpak Bhattacharyya
CSE Dept.,
IIT Bombay
Lecture 6- Soundness and
Completeness
Soundness, Completeness &
Consistency
Soundness
Semantic
World
----------
Syntactic
World
---------Theorems,
Proofs
*
Valuation,
Tautology
Completeness
*

Soundness


Provability
Truth
Completeness

Truth
Provability

Soundness:


Proved entities are indeed true/valid
Completeness:

Correctness of the System
Power of the System
True things are indeed provable
Consistency
The System should not be able to
prove both P and ~P, i.e., should not be
able to derive
F
Examine the relation between
Soundness
&
Consistency
Soundness
Consistency
If a System is inconsistent, i.e., can derive
F , it can prove any expression to be a
theorem. Because
F
P is a theorem
To show that
F
P is a theorem
Observe that
F, PF ⊢ F
By D.T.
F ⊢ (P
⊢P
i.e. ⊢ F
F )
P
F; A3
Inconsistency is a Serious issue.
Informal Statement of Godel Theorem:
If a sufficiently powerful system is complete it is
inconsistent.
Sufficiently powerful: Can capture at least
Peano Arithmetic
Introduce Semantics in
Propositional logic
Valuation Function V
Definition of V
V(F ) = F
Syntactic ‘false
Semantic ‘false’
Where F is called ‘false’ and is one of the two
symbols (T, F)
V(F ) = F
V(A
B) is defined through what is called the
truth table
V(A)
T
T
F
F
V(B)
F
T
F
T
V(A
B)
F
T
T
T
Tautology
An expression ‘E’ is a tautology if
V(E) = T
for all valuations of constituent propositions
Each ‘valuation’ is called a ‘model’.
To see that
(F
P) is a tautology
two models
V(F
V(P) = T
V(P) = F
P) = T for both
F
P is a theorem
Soundness
F
Completeness
P is a tautology
If a system is Sound & Complete, it does not
matter how you “Prove” or “show the validity”
Take the Syntactic Path or the Semantic Path
Syntax vs. Semantics issue
Refers to
FORM VS. CONTENT
Tea
Form
(Content)
Form & Content
painter
logician
musician
Godel, Escher, Bach
By D. Hofstadter
Problem
(P
Q)
(P
Q)
Semantic Proof
A
P
T
T
F
F
Q
F
T
F
T
P
B
Q
F
T
F
F
P
Q
T
T
F
T
A
B
T
T
T
T
To show syntactically
(P Q) (P
i.e.
[(P
(Q
F ))
Q)
F ]
[(P
F )
Q]
If we can establish
(P
(Q
F ))
F,
(P
F ), Q
This is shown as
Q
F hypothesis
(Q F ) (P (Q
F ⊢F
F)) A1
QF; hypothesis
(QF)(P(QF)); A1
P(QF); MP
F; MP
Thus we have a proof of the line we
started with
Soundness Proof
Hilbert Formalization of Propositional
Calculus is sound.
“Whatever is provable is valid”
Statement
Given
A1, A2, … ,An + B
V(B) is ‘T’ for all Vs for which V(Ai) = T
Proof
Case 1 B is an axiom
V(B) = T by actual observation
Statement is correct
Case 2
B is one of Ais
if V(Ai) = T, so is V(B)
statement is correct
Case 3
.
.
.
Ei
.
.
.
Ej
.
.
.
B
B is the result of MP on Ei & Ej
Ei is Ei
B
Suppose V(B) = F
Then either V(Ei) = F or V(Ej) = F
i.e. Ei/Ej is result of MP of two expressions
coming before them
Thus we progressively deal with shorter and
shorter proof body.
Ultimately we hit an axiom/hypothesis.
Hence V(B) = T