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.

7.1. RECURSIVE RELATIONS 77<br />

Proof:<br />

(a), (b): These have already been proved.<br />

(c): In the remaining items, we write simply x for x 1 , ..., x n . The characteristic<br />

function c ∗ of the negation or complement of R is obtainable from the characteristic<br />

function c of R by c ∗ (x) = 1 − . c(x).<br />

(d), (e): The characteristic function c ∗ of the conjunction or intersection of R 1<br />

<strong>and</strong> R 2 is obtainable from the characteristic functions c 1 <strong>and</strong> c 2 of R 1 <strong>and</strong> R 2 by<br />

c ∗ (x) = min(c 1 (x), c 2 (x)), <strong>and</strong> the characteristic function c† of the disjunction or<br />

union is similarly obtainable using max in place of min.<br />

(f), (g): From the characteristic function c(x, y) of the relation R(x, y) the characteristic<br />

functions u <strong>and</strong> e of the relations ∀v ≤ yR(x 1 , ..., x n , v) <strong>and</strong> ∃v ≤ yR(x 1 ,<br />

..., x n , v) are obtainable as follows:<br />

(<br />

y∏<br />

y∑<br />

)<br />

u(x, y) = c(x, i) e(x, y) = sg c(x, i)<br />

i=0<br />

i=0<br />

where the summation (∑) <strong>and</strong> product (∏) notation is as in Proposition 6.5. For the<br />

product will be 0 if any factor is 0, <strong>and</strong> will be 1 if <strong>and</strong> only if all factors are 1; while<br />

the sum will be positive if any summ<strong>and</strong> is positive. For the strict bounds ∀v < y <strong>and</strong><br />

∃v < y we need only replace y by y . − 1.<br />

7.5 Example (Primality). Recall that a natural number x is prime if x > 1 <strong>and</strong> there do<br />

not exist any u, v both

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

Saved successfully!

Ooh no, something went wrong!