30.07.2013 Views

Lambda-Calculus and Combinators, an Introduction

Lambda-Calculus and Combinators, an Introduction

Lambda-Calculus and Combinators, an Introduction

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

58 Computable functions<br />

Definition 4.21 (Partial recursive functions) A function φ from<br />

a subset of IN n into IN (n ≥ 0) is called partial recursive 4 iff there exist<br />

primitive recursive ψ <strong><strong>an</strong>d</strong> χ such that, for all m1, ..., mn ∈ IN,<br />

φ(m1,...,mn )=ψ µk[ χ(m1,...,mn,k)=0] ,<br />

where µk[χ(m1,...,mn,k) = 0] is the least k such that χ(m1,...,mn ,k)<br />

=0,ifsuchak exists, <strong><strong>an</strong>d</strong> is undefined if no such k exists.<br />

Example 4.22 The subtraction function is partial recursive. Because<br />

m1 − m2 = µk[((m2 + k) · m1) =0],<br />

where · is the cut-off subtraction introduced in Example 4.10. Note<br />

that when m1 0 for all k ≥ 0, so<br />

µk[((m2 + k) · m1) = 0] does not exist. This agrees with m1 − m2 not<br />

existing when m1

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

Saved successfully!

Ooh no, something went wrong!