TestBank Computability and Logic 5th Edition Boolos Solutions to Problems Part A and B, Exams of Computer Science

Comprehensive solutions for Parts A & B of the classic logic textbook. This official instructor's manual accompanies the 5th Edition of Computability and Logic by Boolos, Burgess, and Jeffrey. It provides complete, step-by-step solutions to all exercises in the Computability Theory and Basic Metalogic sections (Parts A & B), making it an essential resource for verifying problem sets and deepening your understanding of Turing computability, recursion theory, Gödel's incompleteness theorems, and first-order logic. Please note that this solution set is password-protected and typically made available to instructors by the publisher, Cambridge University Press

Typology: Exams

2025/2026

Available from 02/18/2026

iamvincent
iamvincent 🇰🇪

1.3K documents

1 / 6

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Computability and Logic (5th Edition, 2007) – Solutions to
Problems (Part A & B) – Boolos
Enumerable set - answers-One whose elements can be arranged in a single list
Enumerable set (formal) - answers-A is enumerable there is f s.t. f enumerates A f is a
bijection and f; N --> A A is countable
Cardinality (of A and B) - answers-1. ||A|| = ||B|| iff there is a bijection f:A --> B 2. ||A||
||B|| iff there is an injection f:A-->B
Finite set - answers-A set is finite if it has the same cardinality as set {0,...,n} for nN
Countable set - answers-A set is countable iff ||A|| N0
Cantor's theorem - answers-For any set A, ||A|| < ||p(A)||
Diagonalization - answers-Mighty important method to prove a set is uncountable
Doubler Turing Machine - answers-Uses 11 states to double the input
TM-computable function - answers-f; N-->N is T-computable iff there exists M st M computes f
<> f is the k-ary function computed by M if when M starts in a standard position:
1. If f(n1,...,nk) = m, then M eventually halts in a standard position, and
2. If (fn1,...,nk) , then M never halts or halts in a non-standard position
1
pf3
pf4
pf5

Partial preview of the text

Download TestBank Computability and Logic 5th Edition Boolos Solutions to Problems Part A and B and more Exams Computer Science in PDF only on Docsity!

Computability and Logic (5th Edition, 2007) – Solutions to

Problems (Part A & B) – Boolos

Enumerable set - answers-One whose elements can be arranged in a single list Enumerable set (formal) - answers-A is enumerable ↔ there is f s.t. f enumerates A ↔ f is a bijection and f; N --> A ↔ A is countable Cardinality (of A and B) - answers-1. ||A|| = ||B|| iff there is a bijection f:A --> B 2. ||A|| ≤ ||B|| iff there is an injection f:A-->B Finite set - answers-A set is finite if it has the same cardinality as set {0,...,n} for n∈N Countable set - answers-A set is countable iff ||A|| ≤ N Cantor's theorem - answers-For any set A, ||A|| < ||p(A)|| Diagonalization - answers-Mighty important method to prove a set is uncountable Doubler Turing Machine - answers-Uses 11 states to double the input TM-computable function - answers-f; N-->N is T-computable iff there exists M st M computes f <> f is the k-ary function computed by M if when M starts in a standard position:

  1. If f(n1,...,nk) = m, then M eventually halts in a standard position, and
  2. If (fn1,...,nk) ↑, then M never halts or halts in a non-standard position

Examples of TM non-computable functions - answers-1. Any function that does not map from N to N (e.g. sin(x), sqrt(x))

  1. Some functions from N to N, notably: i) Function t (Lecture 5) ii) Function p (Lecture 6; Busy Beaver) iii) h(m,n) - HP function Basic functions - answers-Zero function (z = 0); successor function (s(0)=1, s(1)=2,...); identity function (idi(x1,...,xi,...,xn) = xi) Primitive recursive functions - answers-The smallest class of functions satisfying the following:
  2. Every basic function is primitive recursive function
  3. (Composition closure) If f and g1,...,gk PR, then Cn[f, g1,...,gk)(x1,...,xn) = f(g1(x1,...,xn),...,gk(x1,...,xn))
  4. (Primitive Recursion closure) If f and g are PR, then Pr[f,g] is also PR, where: Prf,g = f(x) Pr[f, g](x, s(y)) = g(x,y,Prf,g) Recursive fuctions - answers-The smallest class of functions satisyfying:
  5. Every basic function is recursive function
  6. Composition closure
  7. Primitive Recursion Closure
  8. (Minimization Closure) If f is a recursive function, then Mn[f] is a recursive function: Mnf = μy[f(x,y) = 0]; undefined otherwise

c2g2(x) +...+ckgk(x), where c1,...,ck are characteristic functions of C1,...,Ck (f(x) is PR because PR functions are closed under +,x) Closure properties of conditions - answers-If C1 and C2 are PR conditions, then so are: not C1, C1^ C2, C1 U C How to prove that every recursive function is A-computable? - answers-Inductively.

  1. Consider functions f([1],...,[m]), g1([1],...,[n]),...,gm([1],...,[n]). Store inputs of function (e.g. x1...xn) in registers.
  2. BC - z (do nothing), s ([1] + [2] -> 2, 2+), id ([m] + [n+1] -> [n+1])
  3. IS - assume f([1],...,[m]), g1([1],...,[n]),...,gm([1],...,[n]) are all AC. A: Composition [Show: f(g1([1],...[n]),...,gm([1],...,[n]) AC] i) Compute inner functions: Starting with g1, store output of g in n+1, move it to p1, clear n+1, and repeat, yielding p1,...,pm ii) Move initial inputs: Starting with box 1, move box contents to q1, clear box 1 --> q1,...,qn, 0-n clear iii) Move the contents of p1,...,pm to boxes 1,...,m iv) f([1],...,[m]) -> m+ v) Empty m+1 into n+ vi) Move q1,...,qn to 1,...,n B: Primitive Recursion [too complicated] C: Minimization

[too complicated] How to prove that every abacus computable function is turing computable? - answers- [forthcoming] left number/right numeral of 1_1_011 - answers-l - 1; r - 1101 Why must the right numeral be backwards? - answers-So you get a unique number (e.g. 10_1_ 01 vs. 1_0_101) tpl(x,y,z) - answers-2^x3^y5^z lo(x) - answers-max {w≤x | 2^w ≤x} (gives you the actual value of f(x1,x2) given a string of 1s, from r) a(x,y) = z - answers-x is a state number; y is the scanned symbol; z is the next action If TM's instructions do not cover either x or y, a(x,y) = y q(x,y) = z - answers-is a state number; y is the scanned symbol; z is the next state If TM's instructions do not cover either x or y, we set q(x,y) = 0 Function g - answers-g(x1,x2,t) = g(x1,x2,0) = <0, 1, s(x1,x2)> Explain the cases for defining g(x1,x2,y) recursively - answers-8 cases: If next action is writing 0 or 1, two cases are: is machine scanning 0 or 1 (4) + if next action is move right, two cases,