Professional Documents
Culture Documents
23 1391
:
14-16
16-18
:
http://blog.bamneshin.ir/
:
:
Mohammad.bamneshin@yahoo.com
:
BASU_DM_1391
2
23 1391
23 1391
23 1391
23 1391
) ( )(%30
)(%50
)(%20
23 1391
Expectations
This is really a fun course!
This class contains some of the most beautiful math
youll ever learn.
Its even useful, beyond giving you techniques to use
solving the puzzles in Games Magazine.
Hints for success
Read the textbook.
Lectures really do help!
Do the homework.
1391 23
Propositional Logic
is a declarative statement thats either TRUE or
A proposition
Whats
a proposition?
FALSE (but not both).
Propositions
Not Propositions
3 + 2 = 32
Bring me coffee!
3+2
1391 23
T
F
F
T
Notice that
p is a
proposition!
1391 23
1391 23
pq
T
T
F
F
T
F
T
F
T
F
F
F
10
1391 23
pq
T
T
F
F
T
F
T
F
T
T
T
F
11
1391 23
pq
T
T
F
F
T
F
T
F
T
F
T
T
12
13
1391 23
pq
q p
T
T
F
F
T
F
T
F
T
F
T
T
T
T
F
F
T
F
T
F
F
F
T
T
T
F
T
T
14
p (q r) (p q) (p r)
I could say
prove a law of
distributivity.
(p q) (p r)
qr
p (q r)
pq
pr
F T
All truth
assignment
F T
s for p, q,
F F
and r.
F F
1391 23
15
One of these
things is not
like the others.
p q q p
1391 23
16
p p p p p p
1391 23
17
18
(p q) q
1391 23
(p q) q
DeMorgans
(p q) q
Double negation
p (q q)
Associativity
p q
Idempotent
19
1391 23
substitution for
[(p p) (p q)] q
distributive
[ F (p q)] q
(p q) q
(p q) q
(p q) q
p (q q )
p T
T
uniqueness
identity
substitution for
DeMorgans
associative
excluded middle
domination
20
YES
YES
1391 23
21
1391 23
22
Predicates
Define:
1391 23
23
Predicates
Suppose Q(x,y) = x > y
Proposition, YES or NO?
Q(x,y)
Q(3,4)
Q(x,9)
NO
YES
NO
1391 23
Q(x,y)
Q(3,4)
Q(x,9)
-
YES
NO
YES
24
25
Universe of discourse
is people in this room.
x (Y(x) B(x))
x (Y(x) L(x))
A: only a is true
B: only b is true
C: both are true
D: neither is true
1391 23
26
1391 23
x C(x)?
27
Universe of discourse
is people in this room.
x B(x)
x (Y(x) L(x))
A: only a is true
B: only b is true
C: both are true
D: neither is true
1391 23
28
x (L(x) F(x))
x (L(x) C(x))
x (F(x) C(x))
1391 23
29
Universe of discourse
is all creatures.
x (B(x) R(x))
x (L(x) H(x))
30
x (L(x) H(x))
x P(x)
So, x P(x) is the same as x P(x).
x (L(x) H(x))
1391 23
31
x (L(x) H(x))
x P(x)
So, x P(x) is the same as x P(x).
x (L(x) H(x))
1391 23
32
1391 23
33
Negation
rule
x (L(x) H(x))
DeMorgans
x (L(x) H(x))
Subst for
1391 23
34