

















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


















9/25/^
9/25/^
9/25/^
Ax:U P(x)^ Ć ^ P(c) if c
e^ U
P(c) for arb. c
e^ U Ć Ax:U P(x)
Ex:U P(x)^ Ć ^ P(c) for some c
e^ U
P(c) for some c
e^ U Ć Ex:U P(x)
9/25/^
Q(x)
-^ !Q(x)^ f!
P(x) (contrapositive) (Seems true!)
9/25/^
q=āI will finish the programā
-^ r=āI will go to sleep earlyā
s=āI will be restedā
-^ If I get email, then I will finish the program
pfq
-^ If I do not get email, I will go to sleep early
!pfr
-^ If I go to sleep early, I will be rested.
rf
s
-^ If I do not finish the program, I will be rested
!qfs
9/25/^
Hypothesis
2.^ !qf!
p^ Contrapositive of 1
3.^ !pfr^
Hypothesis
4.^ !qfr^
Hypothetical syllogism 2 & 3
5.^ rfs^
Hypothesis
6.^ !qfs^
Hypothetical syllogism 4 & 5
-^ So we proved
!qfs (If I do not finish the program, I will be rested) by using the rules ofinference!
9/25/^ Application: Logic Programming in Prolog^ ⢠Kowalski: algorithm = logic+control⢠Declarative language, not imperative/proceduralā¢^ You say āwhatā, engine handles āhowā⢠age(freddie, 27)age(anne,28)older_than (X, Y) :- age (X, Age_of_X),age (Y, Age_of_Y) , Age_of_X > Age_of_Y⢠?- older_than (
9/25/^
causes global 2 warming.āāBut Mr. Smith was once convicted of a felony.āāSo it is obvious that he is wrong.ā⢠āArgumentum ad Hominemā ā against the man⢠http://gncurtis.home.texas.net/taxonomy.html
9/25/^
fq
fq
!qf!p (contrapositive)
fq, show p false
fq, show q true without using p
!pf(r^ ¶!
r)
vp)fq^ ¤ 12
pfq^ ¶^ p^1
fq 2
9/25/^
2 is oddā
2
-^ = 4k
2 + 4k + 1
-^ = 2(2k
2 +2k) + 1
-^ = 2m + 1, where integer m = 2k
2 + 2k
(^2) ⢠à nis odd⢠Good if p is simple and q is complex
9/25/^
(^2) f n>n
(^2) f 0 >
fq is true if p is false, regardless of q
versus^ Ax | x > 0
-^ P(x)
9/25/^
17
nā„b f aā„ nb
(^0) ā„b f aā„ (^0) b
9/25/^
19
 +   + (^) = + (^) 
) (^12) ( 4 (^1212 )
(^2) k kk
   ^ +++=à ^4 
(^144) (^2 222 ) kk kk =   ^4 
) (^2) ( 2 2 2 2
(^2) kk k
(^44242) (^22 )
2 kkk k^
++= Ć ) (^2) ( 2 42 2 2
(^2) kk
9/25/^