{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

1.1 (evens)

# 1.1 (evens) - Section 1.1 Propositional Logic 1 CHAPTER 1...

This preview shows pages 1–7. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Section 1.1 Propositional Logic 1 CHAPTER 1 The Foundations: Logic and Proofs SECTION 1.1 Propositional Logic 2. Propositions must have clearly deﬁned truth values, so a proposition must be a declarative sentence with no free variables. a) This is not a proposition; it’s a command. b) This is not a proposition; it’s a question. c) This is a proposition that is false, as anyone who has been to Maine knows. (I) This is not a proposition; its truth value depends on the value of (r. e) This is a proposition that is false. 1') This is not a proposition; its truth value depends on the value of n. . a) I did not buy a lottery ticket this week. 1)) Either I bought a lottery ticket this week or [in the inclusive sense] I won the million dollar jackpot on Friday. c) If I bought a lottery ticket this week, then I won the million dollar jackpot on Friday. cl) I bought a lottery ticket this week and I won the million dollar jackpot on Friday. 6) I bought a lottery ticket this week if and only ifI won the million dollar jackpot on Friday. 1") Ifl did not buy a lottery ticket this week, then I did not win the million dollar jackpot on Friday. g) I did not buy a lottery ticket this week, and I did not win the million dollar jackpot on Friday. h) Either I did not buy a lottery ticket this week, or else I did buy one and won the million dollar jackpot on Friday. a) The election is not decided. b) The election is decided, or the votes have been counted. c) The election is not decided, and the votes have been counted. d) If the votes have been counted, then the election is decided. e) If the votes have not been counted, then the election is not decided. I") If the election is not decided, then the votes have not been counted. g) The election is decided if and only if the votes have been counted. h) Either the votes have not been counted, or else the election is not decided and the votes have been counted. Note that we were able to incOrporatc the parentheses by using the words either and eisc. . a) If you have the ﬂu, then you miss the ﬁnal exam. b) You do not miss the ﬁnal exam if and only if you pass the course. c) If you miss the ﬁnal exam, then you do not pass the course. d) You have the ﬂu, or miss the ﬁnal exam, or pass the course. 6) It is either the case that if you have the ﬂu then you do not pass the course 01' the case that if you miss the ﬁnal exam then you do not pass the course (or both, it is understood). f) Either you have the. flu and miss the ﬁnal exam, 01' you do not miss the ﬁnal exam and do pass the course. 10. 12. 14. 16. 18. 20. 22. Chapter I The Foundations: Logic and Proofs a) That; b)pf\q/\r d)p/\-vq/\r 6)")? GNP/H1)!” fierVp) a) This is T H T, which is true. b) This is T <—r F, which is false. c) This is F H F, which is true. (1) This is F H T, which is false. 21) This is F —+ F, which is true. b) This is F —> P, which is true. c) This is T —+ F, which is false. (1) This is T —+ T, which is true. a) The employer making this request would be happy if the applicant knew both of these languages, so this is clearly an inclusive or. b) The restaurant would probably charge extra if the diner wanted both of these items, so this is an exclusive or. c) If a person happened to have both forms of identiﬁcation, so much the better, so this is clearly an inclusive 07“. d) This could be argued either way, but the inclusive interpretation seems more appropriate. This phrase means that faculty members who do not publish papers in research journals are likely to be ﬁred from their jobs during the probationary period. On the other hand, it may happen that they will be ﬁred even if they do publish (for example, if their teaching is poor). a) The necessary condition is the conclusion: If you get promoted, then you wash the boss’s car. b) If the winds are from the south, then there will be a spring thaw. c) The sufficient condition is the hypothesis: If you bought the computer less than a year ago, then the warranty is good. d) If \Villy cheats, then he gets caught. e) The “only if” condition is the conclusion: If you access the website, then you must pay a subscription fee. f') If you know the right people, then you will be elected. g) If Carol is on a boat, then she gets seasick. a) lfl am to remember to send you the address, then you will have to send me an e—mail message. (This has been slightly reworded so that the tenses make more sense.) b) If you were born in the United States, then you are a citizen of this country. c) If you keep your textbook, then it will be a useful reference in your future courses. (The word “then” is understood in English, even if omitted.) d) If their goaltender plays well, then the Red Wings will win the Stanley Cup. 9) If you get the job, then you had the best credentials. f) If there is a storm, then the beach erodes. g) If you log on to the server, then you have a valid password. [1) If you do not begin your climb too late, then you will reach the summit. a) You will get an A in this course if and only if you learn how to solve discrete mathematics problems. b) You will be informed if and only if you read the newspaper every day. (It sounds better in this order; it would be logically equivalent to state this as “You read the newspaper every day if and only if you will be in formed .”) Section 1.1 24. 26. 28. 30. Propositional Logic 3 c) It rains if and only if it is a weekend day. (1) You can see the wizard if and only if he is not in. a) Converse: IfI stagr home, then it will snow tonight. Contrapositive: If I do not stay at home, then it will not snow tonight. Inverse: If it does not snow tonight, then I will not stay home. 1)) Converse: Whenever I. go to the heacl'i, it is a sunny summer day. Contrapositive: Whenever I do not go to the beachJ it is not a sunny summer day. Inverse: Whenever it is not a sunny day, I do not go to the beach. c) Converse: If I sleep until noon, then I stayed up late. Contrapositive: If 1 do not sleep until noon, then I did not stay up late. Inverse: If I don"t stay up late, then I don’t sleep until noon. A truth table will need 2" rows if there are n variables. a) 22:4 b)23:s c)26:64 d)25:32 To construct the truth table for a compound proposition, we work from the inside out. In each case, we will show the intermediate steps. 111 part ((1), for example, we ﬁrst construct the truth tables for p A q and for p V q and combine them to get the truth table for (p /\ q) —> (1) V (1). For parts (a) and (b) we have the following table (column three for part (a), column four for part ﬂ .1’ 31.11 m T F F F F T T F For parts (c) and (d) we have the following table. Li H V G M1 M W T T T T F T T F T F F T F T T F T T F F F F F T For part (e) we have the following table. P 9 or) (We?) PM? T T F F T F T F F T F F F T T T F F F F T T T T For part. (f) we have the following table. 12 q 11 p <—i q p 6+ nq (p H (1) EB (p <—) w) T T F T F T T F T F T T F T F F T T F F T T F T For parts (a) and (b) we have the following table (column two for part (a), column four for part B p 69 p l) p 69 "11) T F F T F F T T For parts (c) and (d) we have the following table (columns ﬁve and six). 19 ‘1 T19 _‘q 10 El} ﬁq TP 6) _‘q T T F F T F T F F T F T F T T F F T F F T T T F 4 Chapter 1 The Foundations: Logic and Proofs For parts (8) and (f) we have the following table (columns ﬁve and six). This time we have omitted the column explicitly showing the negation of q. Note that the ﬁrst is a tautology and the second is a contradiction (see deﬁnitions in Section 1.2). p q p®q p$ﬁq @®q%¢m®o® (pen/\eeﬁn T T F T T F T F T F T F F T T F T F FF F T T F 32. For parts (a) and (b), we have p q r qu (qu)\/i (qu)/'\-r T T T T T T T T F T T F T F T T T T T F F T T F F T T T T T F T F T T F F F T F T F F F F F F F For parts ((3) and (d), we have p q I pAq (PAWVT (pAmAr T T T T T T T T F T T F T F T F T F T F F F F F F T T F T F F T F F F F F F T F T F F F F F F F Finally, for parts (9) and (f) we have he qu (PvﬂAnr pAq (pAmVoT 'Tihj’n’ﬁ%ﬁ>€ﬁ~c WWHH'TJ’UHQ-Q mamamawa amamamamﬂ wmaaaaaﬂ unamamaw ﬁﬁ’ﬁﬂd'ﬁ‘jI-Ilﬁ amamamaa 34. This time the truth table needs 2‘1 : 16 rows. Section 1.1 36. 38. 40. 42. 44. 46. Propositional Logic 5 1? q r s I? —* q (p —1 r1) —5 1‘ ((1) —1 (1) —> r) —’ S T T T T T T T T T T F T T F T T F T T 7 T T T F F T F T T F T T F T T T F T F F T F T F F T F T T T F F F F T .F F T T T T T T F T T F T T F F T F T T F T F T F F T F T F F T T T T T F F T F T T F F F F T T F T F F F F T F T a) Since the condition is true, the statement is executed, so .1; is incremented and now has the value 2. b) Since the condition is false, the statement is not executed, so :1: is not incremented and now still has the value 1. c) Since the condition is true, the statement is executed, so :1: is incremented and now has the value ‘2. ('1) Since the condition is false, the statement is not executed, so :5 is not incremented and 110w still has the value 1 . e) Since the condition is true when it is encountered (since a: : 1), the statement is executed, so :1: is incremented and now has the value 2. (it is irrelevant that the condition is now false.) a) l1000/\(01011V11011):11000/\11011:11000 b) (011l1A10101)V01000 : 0 0101 v0 1000 = 01101 c) (011110 e1 1011)e01000 : 1 0001$0 1000 :1 1001. d) (11011 V01010)/\(10{]01Vl1011):11011/\11011: 11011 The truth value of “Fred and John are happy” is min{0.8,0.4) : 0.4. The truth value of “Neither Fred nor John is happy” is min(0.2,0.b‘ : 0.2, since this statement means “Fred is not happy, and John is not happy,” and we computed the truth values of the two propositions in this conjunction in Exercise 35. This cannot be a proposition, because it cannot have a truth value. Indeed, if it were true, then it would be truly asserting,r that it is false, a contradiction; on the other hand if it were false, then its assertion that it is false must be false, so that it would be truce—again a contradiction. Thus this string of letters, while appearing to be a proposition, is in fact meaningless. No. This is a classical paradox. (we will use the male pronoun in what follows, assuming that we are talking about. males shaving their beards here, and assuming that all men have facial hair. If we restrict ourselves to beards and allow female barbers, then the barber could be female with no contradiction.) If such a barber existed, who would shave the barber? If the barber shaved himself, then he would be. violating the rule that. he shaves only those people who do not shave themselves. 0n the other hand, if he does not shave himself, then the rule says that he must shave himself. Neither is possible, so there can be no such barber. a) If the explorer (a. woman, so that our pronouns will not get confused here the cannibals will be male) encounters a truth—teller, then he will honestly answer “no” to her question. If she encounters a. liar, then the 48. 50. 52. 56. 58. 60. Chapter I The Foundations: Logic and Proofs i )9 honest answer to her question is “yes,’ so he will lie and answer “no. Thus everybody will answer “no” to the question, and the explorer will have no way to determine which type of cannibal she is speaking to. b) There are several possible correct answers. One is the following question: “If I were to ask you if you always told the truth, would you say that you did?" Then if the cannibal is a truth teller, he will answer yes (truthfully), while if he is a liar, then, since in fact he would have said that he did tell the truth if questioned, he will now lie and answer no. a) I‘But" means “and”: r A r11). (r A 'P) —r a. c) Access being denied is the negation of (1, so we have ﬁr —> riq. b) “Whenever” means “if”: d) The hypothesis is a conjunction: (rip A r) —r q. We write these symbolically: u —> —:c, c. —> 3, -vs —+ -ru.. Note that we can make all the conclusion true by making 0 false, 3 true, and u. false. Therefore if the users cannot access the ﬁle system, they can save new ﬁles, and the system is not being upgraded, then all the conditional statements are true. Thus the system is consistent. This system is consistent. \Ve use L, Q, N, and B to stand for the basic propositions here, “The ﬁle system is locked,” “New me, ages will be queued," “The system is functioning normally,” and “New messages will be sent to the message buffer,” respectively. Then the given speciﬁcations are ﬁL —> Q, —L i—) N, SQ —> B, —‘L a B, and ﬁB. If we want consistency, then we had better have B false in order that —B be true. This requires that both L and Q be true, by the two conditional statements that have B as their consequence. The ﬁrst conditional statement therefore is of the form F —> T, which is true. Finally, the biconditional -uL H N can be satisﬁed by taking N to be false. Thus this set of speciﬁcations is consistent. Note that there is just this one satisfying truth assignment. This is similar to Example 17, about universities in New Mexico. To search for hiking in West Virginia, we could enter WEST AND VIRGINIA AND HIKING. If we enter (VIRGINIA AND HIKING) NOT WEST, then we’ll get websites about hiking in Virginia but not in “fest Virginia, except for sites that happen to use the word “west” (in a different context (e.g., “Follow the stream west until you come to a cIearing”). If A is a knight, then his statement that both of them are knights is true, and both will be telling the truth. But that is impossible, because B is asserting otherwise (that A is a knave). If A is a knave, then B’s assertion is true, so he must be a knight, and A’s assertion is false, as it should be. Thus we conclude that A is a knave and B is a knight. We can draw no conclusions. A knight will declare himself to be a knight, telling the truth. A knave will lie and assert that he is a knight. Since everyone will say “I am a knight,” we can determine nothing. a) We look at the three possibilities of who the innocent men might be. If Smith and Jones are innocent (and therefore telling the truth), then we get an immediate contradiction, since Smith said that Jones was a friend of Cooper, bnt Jones said that he did not even know Cooper. If Jones and Williams are the innocent truth—tellers, then we again get a contradiction, since Jones says that he did not know Cooper and was out of town, but \Villiams says he saw Jones with Cooper (presumably in town, and presumably if we was with him, then he knew him). Therefore it must be the case that Smith and Williams are telling the truth. Their statements do not contradict each other. Based on Williams’ statement, we know that Jones is lying, since he said that he did not know Cooper when in fact he was with him. Therefore Jones is the murderer. Section 1.2 62. 64. Propositional Equivalences 7’ b) This is just like part (:1), except that we are not told ahead of time that one of the men is guilty. Can none of them be guilty? If so, then they are all telling the truth, but this is impossible, because as we just saw, some of the statements are contradictory. Can more than one of them be guilty? If, for example, they are all guilty, then their statements give us no information. SO that is certainly possible. This information is enough to determine the entire system. Let each letter stand for the statement that the person whose name begins with that letter is chatting. Then the given information can be expressed symbolically as follows: -II\' a H, R. —) —uV, HR A V, A —+ R, V —i K, I\’ a V, H —> A, H a K. Note that we were able to convert all of these statements into conditional statements. In what follows we will sometimes make use of the contrapositives of these conditional statements as well. First suppose that H is true. Then it follows that A and K are true, whence it follows that R and V are true. But H implies that V is false, so we get a contradiction. Therefore H must be false. Horn this it follows that K is true; whence V is true, and therefore R is false, as is A. We can now check that this assignment leads to a true value for each conditional statement. So we conclude that Kevin and Vijay are chatting but Heather, Randy, and Abby are not. Note that. Diana’s statement is Inerer that. she didn’t do it. a) John did it. There are four cases to consider. If Alice is the sole truth—teller, then Carlos did it; but this means that John is telling the truth, a contradiction. If John is the sole truth—teller, then Diana must be lying, so she did it, but then Carlos is telling the truth, a contradiction. lf Carlos is the sole truthsteller, then Diana did it, but that makes John truthful, again a contradiction. So the only possibility is that Diana is the sole truth—teller. This means that. John is lying when he denied it, so he did it. Note that in this case both Alice and Carlos are indeed lying. b) Again there are [Our cases to consider. Since Carlos and Diana are making contradictory statements, the liar must. be one of them (we could have used this approach in part (a) as well). Therefore Alice is telling the truth, so Carlos (lid it. Note that John and Diana are telling the truth as well here, and it is Carlos who is lying. ...
View Full Document

{[ snackBarMessage ]}

### Page1 / 7

1.1 (evens) - Section 1.1 Propositional Logic 1 CHAPTER 1...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online