[PDF] [PDF] Discrete Mathematics - Math Berkeley

g) p ↔ q : The election is decided if and only if the votes have been counted h) ¬ q 1 3 24 Show that (p → q) ∨ (p → r) and p → (q ∨ r) are logically equivalent



Previous PDF Next PDF





[PDF] Discrete Mathematics - Math Berkeley

g) p ↔ q : The election is decided if and only if the votes have been counted h) ¬ q 1 3 24 Show that (p → q) ∨ (p → r) and p → (q ∨ r) are logically equivalent



[PDF] Truth Tables, Tautologies, and Logical Equivalences

19 fév 2020 · and ↔ The truth or falsity of a statement built with these connective depends on the truth or falsity of its P ↔ Q means that P and Q are equivalent So the double Show that P → Q and ¬P ∨ Q are logically equivalent P Q



[PDF] Logic, Proofs

p ↔ q “p if and only if q” The truth value of a compound proposition depends only on the q Note that that two propositions A and B are logically equivalent



[PDF] SOLUTIONS TO TAKE HOME EXAM 1 MNF130, SPRING 2010

Show that ¬(p ∨ ¬q) and q ∧ ¬p are logically equivalent by (a) using a truth table; f(n1) = f(n2) ↔ 2n1 +1=2n2 + 1 ↔ 2n1 = 2n2 ↔ n1 = n2 Likewise, g ◦ f is 



[PDF] Discrete Mathematics Applications - Houston ISD

My goal was to show the relevance and practicality of discrete mathematics to students of mathematical logic, which serves as the foundation for the subsequent discussions of methods alent, so that a conditional statement and its contrapositive are equivalent The biconditional statement p ↔ q is the proposition “p if



[PDF] Chapter 2 Propositional Logic

This chapter is dedicated to one type of logic, called propositional logic The world logic we will say that the compound propositions p ∨ q and q ∨ p are equivalent propositions We only need to show that ¬p ∨ ¬q is false too, which is the case, since both ¬p The biconditional of p and q: p ↔ q ≜ (p → q) ∧ (q → p)



[PDF] Propositional Logic - Duke Computer Science

15 jan 2013 · Then ¬p represents the proposition that A is a knave and ¬q q) How can we show this to be equivalent to equivalent if p↔q is a tautology



[PDF] Logic and Truth Tables

Truth tables are logical devices that predominantly show up in Mathematics, Computer Science The conjunction “p and q” is only true if both p and q are true



[PDF] Math208:DiscreteMathematics - College of Arts & Sciences

Logical Connectives and Compound Propositions 25 1 1 Propositions 25 26 1 The modulo m equivalence relation 206 2 1 Prove p → q ≡ ¬p ∨ q 36 2 2 Logical The conjunction of p with q is denoted by p ∧ q and read as p and q



[PDF] Exam 1: Solutions

Using truth tables, (a) show that p ↔ q and (p ∧ q) ∨ (¬p ∧ ¬q) are logically equivalent (b) show that (p ∧ q) → r and (p → r) ∧ (q → r) are not logically

[PDF] show that p ↔ q and p ∧ q ∨ p ∧ q are logically equivalent

[PDF] show that p(4 2) is equidistant

[PDF] show that p2 will leave a remainder 1

[PDF] show that the class of context free languages is closed under the regular operations

[PDF] show that the class of turing recognizable languages is closed under star

[PDF] show that the family of context free languages is not closed under difference

[PDF] show that the language l an n is a multiple of three but not a multiple of 5 is regular

[PDF] show that x is a cauchy sequence

[PDF] show that x is a discrete random variable

[PDF] show that x is a markov chain

[PDF] show that x is a random variable

[PDF] show that [0

[PDF] show the mechanism of acid hydrolysis of ester

[PDF] show time zone cisco

[PDF] show ∞ n 2 1 n log np converges if and only if p > 1

Math 55: Discrete Mathematics

UC Berkeley, Fall 2011

Homework # 1, due Wedneday, January 25

1.1.10Letpandqbe the propositions \The election is decided" and \The

votes have been counted," respectively. Express each of these compound propositions as English sentences. a):p: The election is not (yet) decided. b)p_q: The election is decided or the votes have been counted. c):p^q: The votes have been counted but the election is not (yet) decided. d)q!p: If the votes are counted then the election is decided. e):q! :p: The election is not decided unless the votes have been counted. f):p! :q: The votes have not been counted unless the election has been decided. This is equivalent to proposition d). g)p$q: The election is decided if and only if the votes have been counted. h):q_(:p^q): The votes have not been counted, or they have been counted but the election is not (yet) decided.

1.1.18Determine whether each of these conditional statements is true or

false. a)If1 + 1 = 3, then unicorns exist. This statement is true becauseF!Fhas the truth valueT. b)If1 + 1 = 3, then dogs can y. This statement is true becauseF!Fhas the truth valueT. c)If1 + 1 + 2, then dogs can y. This statement is false becauseT!Fhas the truth valueF. d)If2 + 2 + 4, then1 + 2 = 3. This statement is true becauseT!Thas the truth valueT. 1

1.1.26Write each of these propositions in the form \pif and only ifq" in

English.

a)For you to get anAin this course, it is necessary and sucient that you learn how to solve discrete mathematics problems. You get anAin this course if and only if you learn how to solve discrete mathematics problems. b)If you read the newspaper every day, you will be informed, and conversely.You will be informed if and only if you read the newspaper every day. c)It rains if it is a weekend day, and it is a weekend day if it rains. It rains if and only it is a weekend day (that's unfortunate indeed). d)You can see the wizard only if the wizard is not in, and the wizard is not in only if you can see him. You can see the wizard if and only if he is not in.

1.1.38Construct a truth table for((p!q)!r)!s.

p q p!q r(p!q)!r s((p!q)!r)!s

T T T T T T T

T T T T T F F

T T T F F T T

T T T F F F T

T F F T T T T

T F F T T F F

T F F F T T T

T F F F T F F

F T T T T T T

F T T T T F F

F T T F F T T

F T T F F F T

F F T T T T T

F F T T T F F

F F T F F T T

F F T F F F T

1.2.34Five friends have access to a chat room. Is it possible to determine

who is chatting if the following information is known? Either Kevin or Heather, or both, are chatting. Either Randy or Vijay, but not both, are chatting. If Abby is chatting, so is Randy. Vijay and Kevin are 2 either both chatting or neither is. If Heather is chatting, then so are

Abby and Kevin.

We introducing the rst letter of the name as an unknown representing \that person is chatting". Then the ve given statements are

K_H ; RV ; A!R; VK ; H!A^K:

The conjunction of these ve propositions is satisable, but there is only one satisfying assignment, namely

A=R=K= true; V=H= false:

All 31 other assignments of truth values are inconsistent. One way to see this is to simply try all 31 possibilities. We conclude that the given information suces to uniquely determine who is chatting: Abby, Randy and Kevin are chatting, while Vijay and Heather are not.

1.3.24Show that(p!q)_(p!r)andp!(q_r)are logically equivalent.

By the denition of conditional statements on page 6, using the Com- mutativity Law, the hypothesis is equivalent to (q_ :p)_(:p_r). By the Associative Law, this is equivalent to ((q_ :p)_ :p)_r, and hence to (q_(:p_ :p))_r. By the First Idempotent Law, this is equivalent to (q_ :p)_r. Using Commutativity and Associativity again, we obtain:p_(q_r), and this is precisely the conclusion.

1.3.30Show that(p_q)^(:p_r)!(q_r)is a tautology.

This time around, we nd it preferable to construct a truth table: p q p_q:p r:p_r(p_q)^(:p_r)q_r

T T T F T T T T

T T T F F F F T

T F T F T T T T

T F T F F F F F

F T T T T T T T

F T T T F T T T

F F F T T T F T

F F F T F T F F

For every occurrence of aTin the second-to-last column, we nd aT in the same row in the last column. This means that the conditional from the second-to-last column the last column is always true (T). In conclusion, we have proved theResolutionrule on page 92. 3

1.3.40Find a compound proposition involving the propositional variablesp,

qandrthat is true whenpandqare true andris false but false otherwise. The compound proposition (p^q)^ :rhas the desired property, since a conjunction is true if and only if its two constituents are true.

1.3.63Show how the solution of a given44Sudoku puzzle can be found by

solving a satisability problem. Letp(i;j;n) denote the proposition asserting that the cell in rowiand columnjhas the valuen. In analogy to the formulas derived on page

33, we assert that every row contains all four numbers 1;2;3 and 4,

4 i=14 n=14 _ j=1p(i;j;n); every column contains all four numbers 1;2;3 and 4, 4 j=14 n=14 _ i=1p(i;j;n); and each of the four 22-blocks contains all four numbers 1;2;3 and 4, 1 r=01 s=04 n=12 _ i=12 _ j=1p(2r+i;2s+j;n): Finally, we need to assert that no cell contains more than one number, and this is done just like in the last bullet on page 33.

1.4.14Determine the truth value of each of these statements if the domain

consists of all real numbers. a)9x(x3=1):

This statement is true becausex=1 satisesx3=1.

b)9x(x4< x2): This statement is true becausex= 1=2 satisesx4< x2. c)8x((x)2=x2: This statement is true because the square of a real number is equal to the square of its negative. d)8x((2x > x): This statement is false becausex=1 does not satistfy 2x > x. 4

1.4.28Translate each of these statements into logical expressions using pred-

icates, quantiers and logical connectives.LetC(x) denote the predi- cate \xis in the correct place", letE(x) denote the predicate \xis in excellent condition", and letT(x) denote the predicate \xis a tool". and suppose that the domain consists of all tools. a)Something is not in the correct place.9x:C(x). b)All tools are in the correct place and are in excellent condition.

8x(T(x)!(C(x)^E(x)).

c)Everything is in the correct place and is in excellent condition.

8x(C(x)^E(x).

d)Nothing is in the correct place and is in excellent condition.

8x:(C(x)^E(x)).

e)One of your tools is not in the correct place, but is in excellent condition. (9x(:C(x)^E(x)))^ 8y((:C(y)^E(y))!(x=y)).

1.4.32Express each of these statements using quantiers. Then form the

negation of the statement so that no negation is to the left of a quan- tier. Next, express the negation in simple English. a)All dogs have eas. We write this statement as8x(D(x)!F(x)) or8x(:D(x)^ F(x)). Its negation is9x(D(x)_ :F(x)), and in English it translates into \There is a dog that does not have eas". b)There is a horse that can add. We write this statement as9x(H(x)^A(x)). Its negation is

8x(:H(x)_ :A(x)) or, equivalently,8x(H(x)! :A(x)). In

English: \no horse can add".

c)Every koala can climb. We write this statement as8x(K(x)!C(x)). Similar to a), its negation is9x(K(x)_:C(x)). In English: \there is a koala that cannot climb". d)No monkey can speak French. We write this statement as8x(M(x)! :F(x)) or8x(:M(x)_ :F(x)). Its negation is9x(M(x)^F(x)). In English: There is a monkey who can speak French. e)There exists a pig that can swim and catch sh. We write this statement as9x(P(x)^S(x)^F(x))). Its negation 5 is8x(:P(x)_:S(x)_:F(x)) or8x(P(x)!(:S(x)_:F(x)). In English: \Every pig either can't swim or it can't catch sh".

1.5.8LetQ(x;y)be the statement \studentxhas been a contestant on quiz

showy". Express each of these sentences in terms ofQ(x;y), quan- tiers, and logical connectives, where the domain forxconsists of all students at your school and foryconsists of all quiz shows on televi- sion. a)There is a student at your school who has been a contestant on a television quiz show.9x9y Q(x;y). b)No student at your school has ever been a contestant on a televi- sion quiz show.8x8y:Q(x;y). c)There is a student at your school who has been a contestant on

Jeopardy and on Wheel of Fortune.

9xQ(x;Jeopardy)^Q(x;Wheel of Fortune).

d)Every television quiz show has had a student from your school as a contestant.

8y9xQ(x;y).

e)At least two students from your school have been contestants on

Jeopardy.

9x9z(x6=z)^Q(x;Jeopardy)^Q(z;Jeopardy).

1:5:10LetF(x;y)be the statement \xcan fooly", where the domain consists

of all people in the world. Use quantiers to express each of these statements. a)Everybody can fool Fred.8xF(x;Fred) b)Evelyn can fool everybody.8y F(Evelyn;y) c)Everybody can fool somebody.8x9y F(x;y) d)There is no one who can fool everybody.:9x8y F(x;y) e)Everyone can be fooled by somebody.8y9xF(x;y) f)No one can fool both Fred and Jerry.:9x(F(x;Fred)^F(x;Jerry) g)Nancy can fool exactly two people.

9y9z(y6=z)^F(Nancy;y)^F(Nancy;z)^ 8w((w=y)_

(w=z)_ :F(Nancy;w)) h)There is exactly one person whom everybody can fool.

9y8xF(x;y)^(8z((8wF(w;z))!y=z)

6 i)No one can fool himself or herself. :9xF(x;x) j)There is someone who can fool exactly one person besides himself or herself.

9x9yF(x;y)^(8z(F(x;z)!y=z))

1.5.20Express each of these mathematical statements using predicates, quan-

tiers, logical connectives, and mathematical operators, where the do- main consists of all integers. a)The product of two negative integers is positive.

8m8n(((m <0)^(n <0))!(mn >0))

b)The average of two positive integers is positive.

8m8n(((m >0)^(n >0))!(m+n2

>0)) c)The dierence of two negative integers is not necessarily negative.

9m9n((m <0)^(n <0)^ :(mn <0))

d)The absolute value of the sum of two integers does not exceed the sum of the absolute values of the integers.

8m8n(jm+nj jmj+jnj)

1.6.5Use rules of inference to show that the hypotheses \Randy works hard",

\If Randy works hard, then he is a dull boy" and \If Randy is a dull boy, then he will not get the job" imply the conclusion \Randy will not get the job". By applying Modus Ponens to the rst two hypotheses, we infer \Randy is a dull boy". We then apply Modus Ponens that that statement and to the third hypothesis to conclude that \Randy will not get the job".

1.6.16For each of these arguments determine whether the argument is correct

or incorrect and explain why. a)Everyone enrolled in the university has lived in a dormitory. Mia has never lived in a dormitory. Therefore, Mia is not enrolled in the university.The argument is correct. It is an application of universal modus tollens. b)A convertible car is fun to drive. Isaac's car is not a convertible. Therefore, Isaac's car is not fun to drive.The argument is not correct. It is an instance of the fallacy of denying the hypothesis. c)Quincy likes all action movies. Quincy likes the movieEight Men

Out. Therefore,Eight Men Outis an action movie.

7 This argument is not correct. It's a variant of the fallacy of arming the conclusion. Indeed, it is quite possible that Quincy likes also some movies that are not action movies. d)All lobstermen set a least a dozen traps. Hamilton is a lobster- man. Therefore, Hamilton sets at least a dozen traps.This argu- ment is correct. It is an application of universal instantiation.

1.6.20Determine whether these are valid arguments.

a)Ifxis a positive real number thenx2is a positive real number. Therefore, ifa2is positive, whereais a real number, thenais a positive real number. This argument is not valid. Takea=1 for a counterexample. b)Ifx26= 0, wherexis a real number, thenx6= 0. Letabe a real number witha26= 0, thena6= 0. This argument is valid. It is an application of universal instanti- ation. 8quotesdbs_dbs17.pdfusesText_23