


























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!



























This is the errata of Edition. The errata corrects typos, errors, and clarifies some of the exposition. Discrete Structures, Logic, and Computability , Second Note: errata occur. The brackets that precede each item indicate the printings in which the
computer program?” onto a line by itself like the other four questions. [1] Page v lines 18 to 22. with the text above it. Also, don't indent the first line. The left margin of this paragraph should line up
[1] Page xiii line 1. Insert “(UI)” after “Universal Instantiation”.
[1, 2] Page 8 line – 10. The italic “ contrapositve ” is misspelled and should be
“ contrapositive ”. [1, 2] Page 14, lines 10 to 12. important characteristic…occurrences of the letter Delete this paragraph of two senten L .” ces, “An [1, 2] Page 14, lines – 3 to – 6. Replace these four lines with the following text: or arrangement of the elemen^ “It follows from the definition of equality that there is no particular orderts in a set. For example, since { u , g , h } and { h , u , g } have the same elements, we have { u , g , h } = { h , u , g }. It also follows that there are no repeated occurrences of elements in a set. For example, since { h , u , g , h } and { h , u , g } have the same elements, we have
So { h , u , g , h }, { u , g , h }, and { h ,^ { uh ,, gu } are different representations of the same,^ g ,^ h } = { h ,^ u ,^ g }. set.” [1, 2] Page 22 line 12. In Example 1.14 replace “ x ∈ N” with “ x ∈ Z”. like "{1, 4, 9, 16, 25, 36, 49, 64}".^ [1] Page 31 line^ – 15.^ Exercise 2c should have 9 included^ in the set, so it looks [1] Page 31 line – 5. Exercise 6e should be blue color. [1] Page 44 line other words, replace " – 5. Insert space between uppercase lambda and “or”. InΛor" with "Λ or". [1] Page 45 line 7. "∅". Delete space between ∅ and . i.e., replace "∅ " with [1, 2] Page 46 line – 4. Change “ternary operation on” to “ternary relation on”. [1, 2] Page 50 line absolute value brace “|” at the rig – 8. The third line of the displayed equations is missing anht end. In other words, replace “|{a, c, d} (^5) ” with “|{a, c, d}^5 |”. [1] Page 53 line 15. to “{ a , b , c } – { a }”. Change Exercise 11c from “{ a , b , c } – { a , b }*”
“It follows from (2.6) that ƒ is a bijection of type N 26 → N 26 .” [1, 2] Page 107 line – 16. Replace “abut” with “about”. [1, 2] Page 107 line – 4. Change "( M , A )" to "( A , M )”. [1, 2] Page 107 line – 1. Change "(3 x + 5) mod 26" to "(3 x + 15) mod 26”. [1, 2] Page 108 line 3. Change "(9 x + 7) mod 26" to "(9 x + 21) mod 26". [1, 2] Page 111 line – 16. Change “( g , n ) = 1” to “gcd( g , n ) = 1”. [1] Page 113 line – 2. In Exercise 10 change “0 to 26” to “0 to 25”. [1, 2] Page 114 line 17. In Exercise 13 change “N 7 ” to “N 8 ”. [1] Page 115 line 3. In Exercise 20 change “16 to prove” to “19 to prove”. [1] Page 117 line – 10. Replace “Therefore ƒ( s ) is” with “Therefore ƒ( S ) is”. [1, 2] Page 124 line 8. In Exercise 1a, replace “≤ 100” by “≤ 98”. [1] Page 124 line – 1. Delete the period to the right of the first right brace.
equals sign. The line should look like the following:
[1, 2] Page 136 line 8. Replace “of this” with “of these”. [1, 2] Page 141 line 12. the sentence reads as follows: Change the sentence by adding a phrase at the end so “So the area and ƒ : N → N A .” can be described as the following set of points, where a , b ∈ N [1] Page 143 line 5. In Exercise 6e, replace “ n ∈ N” with “ m , n ∈ N”.
[1, 2] Page 147 line – 12. Replace “ƒ(0) = 1” with “ƒ(0) = 0”. [1, 2] Page 150 line – 10. Replace “popular” with “the popular”. [1, 2] Page 155 line – 13. Replace “difinition” with “definition”. [1, 2] Page 156 line 5. “〈 2 〉”. In the right side of the equation replace “〈 1 〉” with [1, 2] Page 166 line 9. Replace “is is” with “it is”. [1] Page 168 line "c. ƒ( k , n ) = gcd(1, – 4. In Exercise 4c, replace the line with n ) + gcd(2, n ) + ... + gcd( k , n ) the following line:for k > 0."
[1] Page 180 line 15. The letter M should be italic. [1] Page 180 lines or “⇒ ”. Remove the space in each o – 11, – 13, and – 14. ccurrence to obtain “ These lines contain the symbols “⇒+” or “⇒” and⇒ +” insert a space to the right of each “ with "⇒+ (^) w ". +” or “*”. For example, replace "⇒ + w " [1] Page 181 line 7. Replace "⇒ + ay " with "⇒+^ ay ". [1] Page 181 line 9. Replace "⇒ + aby " with "⇒+^ ayy ". [1, 2] Page 189 line 13. In Exercise 4b, replace “ n ∈ N” with “ m , n ∈ N”. [1, 2] Page 191 line 8. In Exercise 15b, change “ b → b | bB .” to “ B → b | bB .”
with its plural “Relations”. [1, 2] Page 203 lines “For example, if R = {( (^) a – (^3) , a and ), ( b (^) , – b 4. ), ( Replace the sentence, a , b ), ( a , c )}, then st ( R ) = ts ( R ) = {( a , a ), ( b , b ), ( a , b ), ( a , c ), ( b, a ), ( c, a )}.”
[1] Page 282 line “ i = 1” to “ i = 0”. – 2. In (5.2c) change the lower limit of the summation from [1] Page 286 lines 7 and 8. Replace sentence and phrase operations and”^ “There are no operations for^ n^ = 0. If^ n^ > 0, then there are^ n^ –^ 1 addition with the following phrase: “There are n addition operations and” [1] Page 286 line 9. "operations is given by". Replace “operations for n > 0 is given by” with [1] Page 286 lines 11, 12, and 13. the following three lines: Replace these three displayed lines with
n + ( 0 + 1 + 2 + ...+ n) = n +! i =^ n 0 i = n +^ n(^ n 2 +^1 ) =^ n^2 + 2 3 n. [1] Page 286 line 15. Replace 494 with 495. [1] Page 294 line contains the term ( (^) n 13. – (^) r In box (5.8), the term at the right end of the equation!) in the denominator. It should be ( n – r )!. Here is the proper equation with the correct term on the right: C( n, r ) =^ P(^ n r!, r^ )= r!(n^ n !! r)!. [1] Page 298 line – 9. Replace "be bit tricky" with "be a bit tricky". [1, 2] Page 308 line 10. Replace “Frst” with “First”. [1] Page 311 line 7. 6 p.m.”. In exercise 15, replace “home after 6 p.m.” with “home by
[1] Page 311 line five of". – 10. In exercise 18c, change "with four of" to "with four or [1, 2] Page 319 line 6. Replace “closed from” with “closed form”. [1, 2] Page 322 line 2. In the first summation, change “ an +1 xn ” to “ an – 1 xn ”. [1, 2] Page 322 line “ n = 0” to “ n = 2” so the line looks like the following: - 3. Change the lower limit in the first summation from
[1, 2] Page 323 line 11. plus, so that the line looks like the following: Change the minus between the two expressions to a
!
= " (^1) "^1 2 x + (^1) "^1 3 x (put into form (^) 1-^1 t ) [1, 2] Page 327 line – 17. Change “from 1 to k – 1” to “from 1 to n – 1”.
period and eliminate the space before the comma. [1, 2] Page 353, line of “contraditions” as “contradictions”. – 3 (start counting above the figure). Change spelling [1, 2] Page 355, line 8. Replace “to old” with “to the old”. [1] Page 354 below "Figure 6.5...". the right margin. In " Basic Equivalences (6.1)" move (6.1) to [1] Page 368 line becomes "( A ∨ B ) ∧ 14. ¬ A In Exercise 10c replace "¬ → B ." B " with " B ", so the formula [1, 2] Page 370, line 2. “required: inference rules and axioms. We’ll discuss them next.”. Replace “required, and we’ll discuss them next.” with [1, 2] Page 372 line 3. natural way that we reason.". Replace "the way we reason informally." with "the
paragraph. [1] Page 410 line – 1. Add the following sentence to the end of the paragraph: "The proofs of (7.2a–7.2d) are left as exercises." [1] Page 412 line 13 (second line of proof). "variable in a wff W ". Replace "variable of W " with [1, 2] Page 413, lines 1 to 4. sentence. Replace these four lines with the following
exercise. QED.”^ “The proof of part (2) is similar to that of part (1) and we’ll leave it as an [1] Page 416 line – 11. Do not indent the beginning paragraph of Section 7.2. [1] Page 417 line – 14. Replace " pq ( a ) = q ( b ) = false." with the following: " p ( a ) = p ( b ) = true and q ( a ) = q ( b ) = false." [1] Page 418 line the line looks like the following: – 12. Replace "¬ p (0) ∧ ¬ p (1)" with "¬ p (0) ∨ ¬ p (1)" so that "≡ ¬ p (0) ∨ ¬ p (1) ∨ ¬ p (2) ∨ ¬ p (3)". [1] Page 420 line – 3. Replace the phrase, disjunction."^ "the following equivalence to distribute an existential quantifer over with the phrase, "the following equivalences." [1] Page 420 lines three-line box: – 1 and – 2. Replace the two-line box with the following Distributing the Quantifiers a. ∃ x ( p ( x ) ∨ q ( x )) ≡ ∃ x p ( x ) ∨ ∃ x q (^) ( x ). (7.7) b. ∀ x ( p ( x ) ∧ q ( x )) ≡ ∀ x p ( x ) ∧ ∀ x q ( x ).
[1] Page 421 line 1. Replace "Proof:" with "Proof of (7.7a):". [1] Page 421 line 4. Insert the following sentence after line 4. Proof of (7.7b): Use the fact that then apply (7.7a). QED. ∀ x ( p ( x ) ∧ q ( x )) ≡ ¬ ∃ x (¬ p ( x ) ∨ ¬ q ( x )) and [1] Page 423 line as follows: – 1. Delete the "¬" from this formula. So the line should be ≡ C ∧ ∃ x A ( x ). [1, 2] Page 424, lines – 12 to – 15. Replace the text “A wff expression. In other words, a pre W is in prenex normal form nex normal form looks like the following: if all its quantifiers are on the left of the Q 1 x 1 ... Qnxn M ,” WITH “A wff W is in prenex normal form if it has the following form: W = Q 1 x 1 ... Qnxn M ,” [1] Page 425 line " C ( z , y ) ∨ ∀ w ¬ A ( w – )" so that the line look 5. Replace " C ( z , y ) → ∀s like the following: w ¬ A ( w )" with "≡ ∀ z ∃ y ( A ( x ) ∧ ( B ( z ) → C ( z , y ) ∨ ∀ w ¬ A ( w ))) (7.4)" [1, 2] Page 427 line 8. the rightmost one. i.e., replace “ There are two occurrences of ““∃ y C ( z , y )” with “∃ y C ( z ∃, y y (^) )”.“ on this line. Delete [1] Page 429 line 14 (fomula 7 the right margin of this line. In other words, the last line in the box should be in the box of equivalences). Add "(7.7)" at as follows:
7. ∀ x ( A ( x ) ∧ B ( x )) ≡ ∀ x A ( x ) ∧ ∀ x B ( x ). (7.7) [1] Page 430 Exercise 3. follows: Make replacements in each of the four parts as
rule”. [1, 2] Page 439 line 15. Replace "4, 5, Conj." with "3, 4, Conj.”. [1, 2] Page 439, line becomes “Existential Instantiation Rule (EI) – 8. The title of the box needs “(EI)” so that the line (7.17)”. [1] Page 440 line 6. not occur in P ∧ ∃ x W (^) (Rep x ) orlace "Since A ,". y does not occur in A ," with "Since y does [1, 2] Page 441, line 16. On line 5 of the proof, replace “3, EG” with “4, EG”. [1] Page 442 lines 19 and 20. following sentence. Replace the sentence in box (7.19) with the
Conditional Proof Rule (CP) If A is a premise in a proof of B (^) , then there is a proof of A → B that does (7.19) not use A as a premise.
[1] Page 442 line following proof: – 18 to page 443 line 14. Replace the entire proof with the Proof: Let show by induction that for each W 1 , ..., Wn = B be a proof of k in the interval 1 B that contains ≤ k ≤ An , there is a proof of as a premise. We’ll A → For the case Wk that does not use k = 1, the ar A (^) gument is the same as that given in the proof of theas a premise. Since B = Wn , the result will be proved. CP rule for propositional calculus. Let there is a proof of A → Wi that does not use k > 1 and assume that for each A as a premise. If Wk is not i < k inferred by a quantifier rule, then the argument in propositional calculus constructs a proof of A → W the proof of the CP rule for k that does not use A as a premise. The construction also guarantees that the premises needed in the proof of A → Wk are the premises other than A that are needed in the original proof of Suppose that Wk. Wk is inferred by a quantifier rule from Wi , where i < k. First, notice that if Wk. So we can remove A (^) is not needed to prove A from the given proof of Wi , then Wk. Now add the valid wff A is not needed to prove Wk → proof of ( A → AW k →) to the proof and then use MP to infer Wk that does not use A as a premise. Second, notice from the A → Wk. This gives us a proof of the EI rule (7.17) alternative proof that does not use EI. So we c that for any proof that uses EI, there is anan assume that A is needed in the proof of If Wi infers Wi and EI is not used in the given proof. Wk by UG, then Wk = ∀ x Wi , where x is not free in any premise needed to prove does not use A as a premise and Wi. So x is not free in x is not free in any premise needed to prove A. Induction gives a proof of A → Wi that A → from (7.12a) that Wi. So we can use UG to infer ∀ x ( A → Wi ) → ∀ ( xA (→ A → ∀ (^) x WWi ). Since i ) is valid. Now use MP to infer x is not free in A , it follows A → ∀ x W If Wi. So we have a proof of i infers Wk by UI, then there is a wff A → Wk that does not use C ( x ) such that A as premise. Wi = ∀ x C ( x ) and W that k = ∀ Cx ( t ), where C ( x ) → C t ( (^) t is free to replace) is valid. Induction gives a proof of x in C ( x ). The proof of the UI rule tells us A → ∀ x C ( x ) that does not use → Wk that does not use A as a premise. Now use HS to infer A as premise. A → C ( t ). So we have a proof of A ∃ x C (^ If x^ ), where Wi^ infers t^ W is free to replace k^ by EG, then there is a wff x in C ( x ). The proof of the EG rule tells us^ C ( x ) such that^ Wi^ =^ C ( t ) and^ Wk^ = that not use C ( t A ) → as a premise. Now use HS to infer ∃ x C ( x ) is valid. By induction there is a proof of A → ∃ x C ( x ). So we have a proof of A → C ( t ) that does A → Wk that does not use A as premise. QED.
denote”. [1, 2] Page 461, line portion of the line looks like: – 3. Change the rightmost “=” to “→” so that the right “ p ( t 1 , …, tk ) → p ( u 1 , …, uk )”. [1] Page 462 (lines the lines of the proof numbered – 1 to – 5) and page 463 ( 1 through 9 lines 1 to 4). should have the formulas In Example 8.3 , indented. So the proof should look like the following. Proof: 1. 2. x – (^) x + = x (^) – = x x P EA
[1, 2] Page 466 line 13 (Exercise 8b). Replace “that that” with “that”. [1, 2] Page 469 line end of the “numerator” in the rightmost expression. – 1. In the display for (8.11), remove the comma at the [1] Page 472 lines between the negative sign and – 5 and (^) – x 2.. In other words, replace " On each of these lines, remove the space– x " with "– x ". [1] Page 473 line 2. other words, replace " (^) – Remove the space between the negative sign and x " with "– x ". x. In [1, 2] Page 476 lines 10 and 11. 0)". Replace "( a ≥ 0) ∧ ( b > 0)" with "( a > 0) ∧ ( b ≥ [1] Page 477 line – 8. Replace "11, 14, IP" with "12, 14, IP". [1] Page 477 line – 3. Replace "Conseq, Comp" with "Comp, Conseq". [1] Page 477 lines should be moved left a bit so that the line numbers align with the line – 1 to – 18. It looks as though the lines numbered 7 to 21 numbers numbered 1 to 6. [1] Page 490 lines lines should be aligned. – 9 to – 12. In exercise 19, the left ends of the four displayed [1] Page 495 line 13. " S ," with " S ,". Remove the space between S and comma. i.e., replace [1, 2] Page 500, line 3. Change “indivdual” to”individual”.
[1] Page 509 line – 8. Replace " A ( d 1 , ..., dk , e )" with " C ( d 1 , ..., dk , e )". [1] Page 509 line – 6. Replace " A ( d 1 , ..., dk , e )" with " C ( d 1 , ..., dk , e )". [1, 2] Page 511, line 4. Change “(¬ p ( a ) vq )” to “(¬ p ( a ) ∨ q )”.
[1] Page 536 lines 1, 7, and 10. word. Replace "unifier unifier" with "unifier". On each of these three lines there is a double [1, 2] Page 538 line 1. Replace “there a proof” with “there is a proof”. [1] Page 543 line – 7. Replace "grandparent of a ." with "grandparent of c .". [1] Page 549 line Closure" to "Acyclic Transitive Closure". – 8. Change the title of Example 9.23 from "Transitive [1] Page 549 lines relation." – 7 to – 5. Delete the sentence "So we'll discuss...of a binary [1] Page 549 line – 5. Replace the phrase, "binary relation r and" with the phrase, "binary relation r whose graph is acyclic (i.e., there are no cycles) and".
[1, 2] Page 569 several lines. rational numbers is the wrong font. It should be the same font as introduced The symbol Q (in three places on this page) for on page 15. The same problem occurs on page 238. [1, 2] Page 571 lines 20 to 24. the phrase, “for In each of the parts (a), (b), (c), and (d) remove
!
(^) o,”. [1] Page 572 line – 2. Reduce the length of the overbar "—" to about "–". [1] Page 573 line replace "(do it last." with "(do it last).". – 13. Replace the missing right parenthesis. In other words, [1, 2] Page 581 line – 10. Replace xyz with x y z. [1, 2] Page 581 line – 10. Replace xyzwith xy z.
[1, 2] Page 584 line 12 (Exercise 5f). following: Replace this exercise with the “f. !
x ( y + z )( x + y )( y + x + z ).” [1, 2] Page 584 line – 8 (Exercise 9). Replace “ !
a + b =” with “ !
ab =“. [1] Page 586 line – 1. Remove space between s ( x ) and comma. [1] Page 587 line 3. Remove space between s ( s (0)) and comma. [1] Page 587 line 4. Remove space between s (0) and comma. [1] Page 587 line 10. Remove space between s ( x ) and comma. [1] Page 587 line 16. Remove space between s ( x ) and comma. [1] Page 587 line 16. Remove space between mult(0, 4) and comma. [1] Page 587 lines 19 to 23 much preceding space. Remove it.. On each of these lines there is a comma with too [1] Page 587 line – 3. Remove space between p ( x ) and comma. [1] Page 587 line – 1. Remove space between p ( x ) and comma. [1] Page 589 line 10. Remove space between succ( x ) and comma. [1] Page 589 line 12. Remove space between succ( x ) and comma. [1] Page 589 line 16. Remove space between pred( x ) and comma. [1, 2] Page 593 line – 15. Replace “Then b and c are” with “Then c and b are”. [1, 2] Page 593 line and a are”. – 14. Replace “Finally, a and b + c are” with “Finally b + c [1, 2] Page 593 line that the equation becomes the following: – 1. Replace the arguments “ a ” and “ b ” with “ z ” and “ y ” so “eval(op, push( z , push( y , stk))) = push(val( y , op, z ), stk).” [1] Page 601 lines 4 and 5. On each of these lines, remove space between p ( x )