Docsity

Constructing Proofs - Review Notes | CS 1050, Study notes of Computer Science

Toggle sidebar
bg1
5. See the back of the book
15. see back of the book
16.
t)(sp
:get we(6), 10a to appying
e)
(5)t s)p(
4 5a to applying
ts))(sp(
(3) 3a to applying
d)
(4)ts))(ss)p((
get we(3) 5a to rule applying
)
)3())((
get we(2) 3a to rule appying
)
)2()()(
)1(10
)
)1)(().(3
∨→
∨∨¬
∨∨∨¬
∨∨∨∨¬
∨∨∨¬
∨∨∨¬
→¬∨→
c
tssp
b
tssp
getwetoaruleapply
a
tssp
pf3
pf4
pf5

Partial preview of the text

Download Constructing Proofs - Review Notes | CS 1050 and more Study notes Computer Science in PDF only on Docsity!

  1. See the back of the book
  2. see back of the book

p (s t)

appying10a to(6),weget:

e)

( p s) t(5)

applying5a to 4

( p (s s)) t

applying3a to(3)

d)

(( p s) (s s)) t(4)

applyingrule5a to(3)weget

appyingrule3a to(2)weget

c

p s s t

b

p s s t

applyrule ato weget

a

p s s t

a) counterexample: when A is false, A→C is true, but C is false. Therefore, there is no proof that C is always true. b) counterexample: when both A and B are false, A→C and B→C are true, but C is false. c) similar to a) and b) except that we assume A1, A2, A3, …, A100000 are all false.

assume: take bus ≡ b take subway ≡ s late for appt. ≡ l be broke ≡ r

symbolically, doesnotfollowfromA C

Thisstatementdoesnotfollowlogicallyfromstatement:"AimpliesC"

Thisargumentisnot valid.Theflawisinthestatement:"ifAwerefalsethanCwouldbefalse,too"

Section2.

Againthefirstandforthclolumnsarethesame,sotheresult

p q p q p (p q)

b).

thefirstandforthcolumnsarethesame,sop (p q) p

p q p q p (p q)

a)

(p q)( p q)

p qistruewheneitherpistrueandqisfalse,or whenqistrueandpisfalse

A C

applying 10a to (7) ¬(¬h∧¬w)∨¬d (8) applying deMorgan's law to (8) h∨w∨¬d (9) appling associative law to (9) h∨(w∨¬d) (10) apply 10a to (10) ¬h→(w∨¬d) (11) commutative law applied to (11) ¬h→¬d∨w

c) look in the back of the book. d) Study law ≡ l Make lots money ≡ m Study archeology ≡ a Travel a lot ≡ t Be disappointed ≡ d Hypotheses: l→m (1) a→t (2) m∨t→¬d (3) contrapositive to (3) d→¬(m∨t) (4) demorgan's to (4) d→¬m∧¬t (5) contrapositive to (1) ¬m→¬l (6) contrapositive to (2) ¬t→¬a (7) rule 12b and simplification to (5) d→¬m (8) rule 24 to (8) and (6) d→¬l (9) rule 12b and simplication to (5) d→¬t (10) rule 24 to (10) and (7) d→¬a 12b applied to (9) and (11) d→(¬l∧¬a)

a) counterexample: p q r p∧r (q∧r)→p ¬r q→¬r 0 0 0 0 1 1 1 all hypotheses are true, yet p is false

b) counterexample: when p,r are false and q is true, all hypotheses are true. c) counterexample: when p,r are true and q,s are false, all the hypothese are true, yet p→s is false.

worth doing ≡ d doing well ≡ w hypothesis: d→w ¬w ¬d (using contrapositive).

He did not find yardwork worth doing, so he didn't do it well. This did not invalidate what he was told, because what he was told could only be invalidated if there was an actual job that he did find worth doing (and he didn't do it well).