Beruflich Dokumente
Kultur Dokumente
Libro di Testo
Lettura aggiuntiva
and !
or!
if ..., then ... !
not!
iff!
falsity
()X.
PROP is well defined? (PROP ?)
PROP
"
Y PROP
()
() Y . "
()PROP. "
() Y . "
"
PROP is not the smallest set satisfying (i), (ii)
and (iii)!!! impossible
()X.
Theorem"
Let h: N x A A and cA."
There exist one and only one function "
f : N A t.c.:"
1. f(0)=c"
2. n N, f(n+1)=h(n,f(n))
11
The general principle behind this practice is laid down in the following
{,,}
theorem.
Theorem 1.1.6 (Definition by Recursion) Let mappings H! : A2 A
and H : A A be given and let Hat be a mapping from the set of atoms
into A, then there exists exactly one mapping F : P ROP A such that
F (()) = H (F ()).
In concrete applications it is usually rather easily seen to be a correct principle. However, in general one has to prove the existence of a unique function
satisfying the above equations. The proof is left as an exercise, cf. Exercise 11.
A( ()), "
A( ()), "
(v) A()
A( ()).
exercise
T ((!))
T (())
for atomic
! (!)
"
"
T () T ()
! ()
T ()
Examples.
%
$
T (p1 ( (p3 )) ;
""
"
p1
"
(p3 )
"
"
"
"
$
%
T ((p1 (p1 )))
"(p1 (p1 ))
T (())
! ()
T ()
Examples.
%
$
T (p1 ( (p3 )) ;
"
p3
$
%
T ((p1 (p1 )))
"(p1 (p1 ))
"
"
"(p1 )
""
p1
"
p1
A simpler way to exhibit the trees consists of listing the atoms at the bottom, and indicating the connectives at the nodes.
T (())
! ()
T ()
Examples.
%
$
T (p1 ( (p3 )) ;
"
p3
$
%
T ((p1 (p1 )))
"(p1 (p1 ))
"
"
"(p1 )
""
p1
"
p1
A simpler way to exhibit the trees consists of listing the atoms at the bottom, and indicating the connectives at the nodes.
SEMANTICS
reads the truth table as follows: the first argument is taken from the
Definition 1!
ost column
andv the
second
argument
is takenif from
the top row.
A mapping
: PROP
{0,
1} is a valuation
!
v( ) = min(v(), v()),!
v( ) = max(v(), v()),!
nction.
If a visitor
wants
to see one of the partners, no matter which
v()=0
v()=1
and v()=0,!
he wants
to be in! one of the positions
v( the
)=1table
v()=v(),
in out
in out
in out
v() = 1 v()!
v() =Smith
0.
Smith
Smith
Jones
Jones
Jones
the two
definitions are
equivalent
Definition 2 !
mapping
v :can
PROP
{0,
1} is a valuation
n theAlast
case he
make
a choice,
but that ifis! no problem, he wants to
v(one
)of=the
1 gentlemen,
v()=1 and v()=1!
t least
no matter which one.
) =1 thev()=1
or v()=1!of is given by
n ourv(
notation,
interpretation
v()=1
v( v()=0
) = 1or v()=1,!
i v() = 1
v( )=1
v()=v(), !
v()=0!
0 1
0 0 1
or
v() = 1.
Theorem "
v: AT {0, 1} s.t. v() = 0 (assignment for atoms)"
"
there exists a unique valuation []v:PROP{0,1}"
such that []v = v() for each AT
Definition "
is a tautology if []v = 1 for all valuations v,"
stands for is a tautology,"
let be a set of propositions, "
iff for all v: ([]v = 1 for all ) []v =1.
SUBSTITUTION!
"
[/p] =
if = p
"""
if =/= p if atomic
"
"
(12)[/p] = (1[/p]2[/p])"
()[/p] = ([/p])
Substitution Theorem !
tautologies!
"
( )
( )
( )
( )"
associativity"
"
"
commutativity"
"
( )
( ) ( )
( )
( ) ( ) "
distributivity"
"
( )
( )
"
De Morgans laws"
"
"
idempotency"
"
"
[ ] = 1."
( ) ()()
( )
( )
( )
( )
( )
( ),
.
PROPxPROP : iff
."
Natural Deduction
restrict our language for the moment to the connectives , and . This
o real restriction as {, } is a functionally
complete
set. rule
an
elimination
premises
Our derivations consist of very simple steps, such as from and
clude , written as:
The propositions above the line are premises , and the one below the line
INTRODUCTION
RULES theELIMINATION
RULES
he conclusion . The
above example eliminated
connective . We
can
conclusion
introduce connectives. The derivation rules for and are separated
(I)
(E)
[]
( I)
premise
..
.
with
formulas
a tree
labelled
( E)
I
conclusion
Proof tree
Deduction
Derivation
Hypotheses
conclusion
alternatives holds.
The propositional connective which has a strikingly dierent meaning in a
The Elimination
Rule
constructive
and in a non-constructive
approach is the disjunction. Therefore
we restrict
language for the moment to the connectives , and . This
forour
Implication
is no real restriction as {, } is a functionally complete set.
Our derivations consist of very simple steps, such as from and
conclude , written as:
The propositions above the line are premises , and the one below the line
is the conclusion . The above example eliminated the connective . We can
also introduce connectives. The derivation rules for and are separated
into
[]
( I)
..
.
( E)
(RAA)
..
.
RA
[]
( I)
..
.
( E)
[]
()
(RAA)
..
.
RA
[]
( I)
..
.
[]
( E)
[]
[]
()
(RAA)
..
.
RA
[]
( I)
..
.
( E)
[]
()
(RAA)
..
.
RA
[]
( I)
..
.
( E)
[]
()
(RAA)
..
.
RA
[]
( I)
..
.
[]
( E)
[]
()
(RAA)
..
.
RA
Introduction rules
Elimination rules
31
(E)
E1
E2
[]
( I)
..
.
( E)
We have two rules for , both of which eliminate , but introduce a formula.
[]
(RAA)
..
.
RAA
[ ]
[ ]
I1
II
[ ]
[ ]
I1
II
[ ]
[ ]
I1
II
[ ]
[ ]
I1
II
[]
[ ]
( )
I1
(( ) )
I2
[]
[ ]
( )
I1
(( ) )
I2
[]
[ ]
( )
I1
(( ) )
I2
[ ]
[ ]1
[ ( )]2
I1
( ( )) ( )
I2
[ ]
[ ]1
[ ( )]2
I1
( ( )) ( )
I2
[ ]
[ ]1
[ ( )]2
I1
( ( )) ( )
I2
[ ]
[ ]1
[ ( )]2
I1
( ( )) ( )
I2
[ ]
[ ]1
[ ( )]2
I1
( ( )) ( )
I2
[ ]
[ ]1
[ ( )]2
I1
( ( )) ( )
I2
( ( )) ( )
I2
II
[]
I1
I2
following example we use the negation sign and also the bi-implication;
for ( ) ( ).
[ ]3
[ ]3
Derivations
new derivations
obtained by:
i) unary rule
ii) binary rule
D'
'
D D'
'
D D
, , t
are
derivations
with
conclusions
if
,
inga derivation
rule to (and and ).
Derivation
with obtained by applying
(possibly
empty)
are
derivations
a
derivation
s indicated
as follows: if D is a derivation
hypothesis
of all the leaves
labelled with the
formula
The cancellation of a hypothesis is indicated
as f
marked
hypothesis cancelled
as "cancelled"
/does
"discharged"
ion of hypotheses, we note
that
one
without RAA.
We
to our theoretical
notions. set X such that
Thenow
setreturn
of derivations
is the smallest
Definition 1.4.1 The set of derivations is the smallest set X such that
(1) The one element tree belongs to X for all PROP.
36
D D
X, then
(2) If ,
1 Propositional Logic
If
X, then
(2) If D X, then
X.
,
[]
D
X.
X.
(2)
X,then
then
(2) IfIf DD X,
[]
[]
DD
X.X.
DD
DD D
IfIf ,, D X,
then
X,
then
DD
X.X.
D
D
D
(2) If D X, then X.
(2) If X, then X.
[]
[]
If D X, then
D X.
If D X, then
X.
The bottom formula of a derivation is called its conclusion . Since the class
!
!
!
!
!
there is a derivation
with conclusion and
with all hypotheses
cancelled
if
!
and
,
!
{}
(1) ( )!
(2) ( )!
(3) ( ) [( ) ( )]!
(4) ( ) ( )!
(5)
(6) [ ( )]
(7)
( )
[ ] !
Proof.
[
[]
1.
( )
[]
I1
[ ]
3.
2.
( )] [ ],
( ).
[]2
]1
I1
2.
[]1
I1
( )
[ ]3
[ ]2
I2
1.
( )
[]1
I1
I1
( )
[ ]3
3.
2.
[ ]2
I1
( ) ( )
I2
I2
( ) (( ) ( ))
I3
Soundness
, ' '!
, , {}
!
, !
& ' ' , ' '!
' & '!
!
, !
- {} !
!
& ' , ' !
, !
- {} !
& ', , '
,
!
v. {([]v=1& []v=1)[]v=1}
!
v. {NOT([]v=1& []v=1) OR []v=1}
!
v. {([]v 1 OR []v=0) OR []v=1}
!
v. {[]v1 OR ([]v=0 OR []v=1)}
!
v. {[]v1 OR ([]v=1)}
!
v. {[]v=1 []v=1}
!
Soundness
1.5 Comp
If D has
then
evidently
We one
prove,element,
by induction
on the
lenght of . The rea
derivations, that !
|= .
!
D
D
for each
derivation and
hp
D
!
are
derivations
and
nduction
hypothesis:
and, with
aining we
thehave
hypotheses
of
D,
D
,
|=
,
|=
D
D
Basis: D =
D =
and
Inductive cases
es of D, D , |= , |= .
D
D
1: I
D"=
hypotheses
of
hpD
& hpD'
' .
]]v = 1. This shows
|=
D
hpD hpD' '
s: For any containing
the hypotheses of
" '
D
sider a containing all hypotheses of and
D
2: E
D'=of and
potheses
hpD' '
|= .
all
hpD
hpD
hypotheses
of
'
3: E2
D,
. Now {} con
2: I
[]
D
all hypotheses
. Now {} conD'= of
hpD' '
hpD -{}
eader.
(since hpD' = hpD -{})
'
D
, |=.
D
4: E
D"=
X, then
hpD" "
X.
X, then
[] hpD hpD'
D
'
"X.
D X, then
4: RAA
then
If D X,D'=
[]
D
X.
The bottom formula of a derivation is called its conclusion . Since the class
hpD'
'
erivations
is inductively
defined, we can mimic the results of section 1.1.
E.g. we have a principle of induction on D: let A be a property. If A(D)
s for one element derivations and A is preserved under the clauses (2),
) and (2 ), then A(D) holds for all derivations. Likewise we can define
InductivebyHypothesis
(IH) Exercises 6, 7, 9).
pings on the set of derivations
recursion (cf.
hpD
finition 1.4.2 The relation between sets of propositions and propo
ns is defined by: there is a derivation with conclusion and with all
-{}
cancelled) hypotheses in hpD
. (See
also
exercise 6).
(since
hpD'
=
hpD
-{})
We say that is derivable from . Note that by definition may contain
' The symbol is called turnstile .
y superfluous hypotheses.
An application of soundness
()
1. let =p0 and =p1
2. let v(p0)=0 and
v(p1)=1
3. v((p0p1)p0)=0
4. (p0p1)p0
5. (p0p1)p0
Completeness
(1) is consistent
(1) is inconsistent
(1) is inconsistent
[]
(1) is inconsistent
X, then
X.
D
If
X, then
X, then
(2)
D s.t. If
D
X, then
X.
[]
X.
with
hpD
X,
then
If D X, then
X.
[]
D
X.
(1) is inconsistent
immediate
(1) is inconsistent
D' D'
D'
D' s.t.
with hpD'
D'
D' s.t.
with hpD'
Proposition:!
If there is a valuation such that []v = 1 for all ,
then is consistent.
Proof:!
Suppose , then , so for any valuation v !
[()]v = 1 for all []v = 1 !
Since []v = 0 for all valuations, there is no valuation with []v =
1 for all . Contradiction. !
Hence is consistent.
{} is inconsistent
{} is inconsistent
, !
.
D'
D' s.t.
with hpD' {}
{} is inconsistent
[] !
D'
!
RAA
D'
D' s.t.
with hpD' {}
{} is inconsistent
[] !
D'
!
I
Theorem:!
Each consistent set is contained in a maximally
consistent set
1) enumerate all the formulas
0, 1, 2, .....
2) define the non decreasing sequence:
0=
! = n {n} if n {n} is consistent,
! n+1
n otherwise
3) define
n .
n0
(b) is consistent
suppose
we have
=
D with hpD={0,,k} ;
ik n : .
n0
ni
a) either , or , !
b),. ( ).!
(a) We know that not both and can belong to . Consider
= {}. If is inconsistent, then, . If is
consistent, then by the maximality of .!
(b) b1) Let and .!
Since , and since is closed under derivability we
get by E.!
b2) Let
. !
If then obviously , so .!
If ,then , and then .!
Therefore .!
Corollary!
!
1 if pi
(b) Define v(pi ) =
0 else
2.
3.
Corollary !
{} consistent
Proof.
RAA33
The
connective
[]
..
[]
.
..
.
..
[]
.
..
.
proof
..
[]
.
..
.
E
E
by cases
miliar rules.
mples. ( ) ( ) ( ).
[ ]
[]
( )
( ) ( )
miliar rules.
The reader
is urged
to use
above
shortcuts
derivations,
mples.
(
)
the
(
)inactual
(
). whenever convenient. As a rule, only I and E are of importance, the reader has
of course recognised the rules for and as slightly eccentric applications
of familiar rules.
Examples. ( ) 1( ) ( ).
( )
[ ]
[]
[ ]
[]1
(
)
1
( ) ( )
[ ]2
[]2
( ) ( )
(1)
miliar rules.
mples. ( ) ( ) ( ).
52
1 Propositional Logic
Conversely
[ ]
( ) ( )
( ) ( )
[]2
[]1
[]1
[]
( )
1
( )
( )
( )
( )
( )
2
[]2
( ) ( )
[( ) ( )]
D
(2)
[]
( ) ( )
1
[]
( ) ( )
( )
( ) (
)
[]1
[( )]2
I1
( )
1
[]
[( )]2
RAA2
)
( )
(
1
[]
( ) ( )
1
[]
I1
( ) ( )
[(( ) (
I1
( ) ( )
( )
( ) ( )
RAA2
( ) ( )
[]
[]
I1
( ) ( )
I1
[(( ) ( ))]2
( ) ( ) E [(( ) (
I1
( ) ( )
1 2
[(( ) (
I))]
RAA2
)
) (
( ) (
(
( )
( )
[]
[( )]
[( )]
( )
( ) 1.6
The
Missing Connectives
( )
[]
[( )]
[] [( )]
[( )]
( )
[]
[( )]
[( )]
( )
heorem 1.6.3
( ).
( ).
( ) ( ) ( ).
roof. Observe that by Lemma 1.6.2 the defined and the primi
ctives obey exactly the same
derivability relations (derivatio
exercise
sh). This leads immediately to the desired result. Let us give