27.04.2015 Views

Computability and Logic

Computability and Logic

Computability and Logic

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5.3. THE SCOPE OF ABACUS COMPUTABILITY 59<br />

Figure 5-15. Composition.<br />

For instance, if f (x) = x <strong>and</strong> g(x, y, z) = z + 1, then<br />

h(x, 0) = f (x) = x = x + 0<br />

h(x, 1) = g(x, 0, x) = x + 1<br />

h(x, 2) = g(x, 1, x + 1) = (x + 1) + 1 = x + 2<br />

<strong>and</strong> in general h(x, y) = x + y. Suppose f <strong>and</strong> g are abacus computable according<br />

to our specifications, <strong>and</strong> we are given programs for them:<br />

↓<br />

f ([1]) → 2 g 1 ([1], [2], [3]) → 4 .<br />

↓<br />

↓<br />

We want to find a program for h, to show it is abacus computable<br />

↓<br />

h([1], [2]) → 3 .<br />

↓<br />

The thing is easily done, as in Figure 5-16.<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!