Sunteți pe pagina 1din 15

Lecture 7

Proof by Contradiction,
Semantics of Propositional Logic
Soundness and Completeness of Propositional Logic

Thursday, February 7, 13
Proof by Contradiction
Meta Theorem Let be a set of premises
,¬ ,¬ =
Meta Corollary (a) , ,¬ = ¬
(b) , ¬ =

Thursday, February 7, 13
You can assume
Example directly instead of¬¬
Theorem 6 ,¬ ¬ ( Modus Tollens)
Proof Assume , ¬ , ¬¬
1. P
2.¬ P
3.¬¬ P
4. T hm4, 3
5. M P 1, 4

You get a contradiction


with lines 2 and 5

Thursday, February 7, 13
Theorem 7 ,¬
Proof Assume ,¬ ,¬
1. P
2.¬ P
3.¬ P
4.¬ T hm6, 1, 2
5. M P 3, 4

You get a contradiction


with lines 2 and 5

Thursday, February 7, 13
Quiz
Theorem 8 , ¬ ¬( )
Proof Assume , ¬ ,
1. P
2. P
4. M P 1, 2
5.¬ P

You get a contradiction


with lines 4 and 5

Thursday, February 7, 13
Semantics of
Propositions
• So far we have focused on the syntax of
proofs
• Just operations on symbols
• Now we look at the “meaning” of the
propositions (i.e., are they true or false?)
• We are mostly interested in “True”
statements
• i.e., tautologies and tautological
consequences
Thursday, February 7, 13
Notation for Tautology

|= is the notation indicating is a tautology

Thursday, February 7, 13
Example: Tautology
|= p p

p p p
0 1
1 1

Thursday, February 7, 13
Tautological Consequence
A proposition q is a tautological consequence of propositions p1 , p2 , dots, pn
if and only if every row of a joint truth table that assigns “T” to all propositions
p1 , p2 , . . . , pn also assigns “T” to q OR there is no row that assigns “T” to all
propositions pi

• Notation

p1 , p2 , . . . , pn |= q
Thursday, February 7, 13
When all premises are true,
the conclusion is also true
¬p, q p |= ¬q
p q ¬p q p ¬q
0 0 1 1 1
0 1 1 0 0
1 0 0 1 1
1 1 0 1 0

Thursday, February 7, 13
No Row Assigns T to all
Premises
p, ¬p |= q
p q ¬p
0 0 1
0 1 1
1 0 0
1 1 0
Thursday, February 7, 13
Soundness
• How can we be sure that all the theorems
that we prove are true?
• Soundness Theorem:
= |=
p1 , p 2 , . . . , pn = p1 , p2 , . . . , pn |=
• Proof: The axioms A1, A2, A3 are tautologies and
Modus Ponens is closed under tautologies (i.e., the
derivation is also a tautology)
Thursday, February 7, 13
Completeness

• If a proposition is true given a set of


assumptions, can I prove it? i.e., can I show
that it is a theorem?

Thursday, February 7, 13
Emil Post
1921

In his doctoral thesis, Post proved, among


other things, that the propositional calculus
of Principia Mathematica was complete: all
tautologies are theorems, given the Principia
axioms and the rules of substitution and
modus ponens.

Thursday, February 7, 13
Completeness Theorem

|= =
p1 , p2 , . . . , pn |= = p1 , p 2 , . . . , p n

Thursday, February 7, 13

S-ar putea să vă placă și