Content deleted Content added
mNo edit summary |
No edit summary |
||
Line 1:
The '''recursive functions''' are a class of
== Definition ==
Take as axioms the axioms of the [[primitive recursive function]]s, but extend the definitions so as to allow for [[partial function]]s. Add one further operator, the ''least search'' or ''unbounded search'' operator, defined
The set of ''partial recursive functions'' is defined as the smallest set of partial functions of any [[arity]] from natural numbers to natural numbers which contains the zero, successor, and projection functions, and which is closed under composition, primitive recursion, and unbounded search.▼
▲::If ''f''(''x'',''z''<sub>0</sub>,''z''<sub>1</sub>,...) is a partial function on the [[natural numbers]], then the function μ''x'' ''f''(''x'',''z''<sub>0</sub>,''z''<sub>1</sub>,...), which returns the least ''x'' such that ''f''(0,''z''<sub>0</sub>,''z''<sub>1</sub>,...), ''f''(1,''z''<sub>0</sub>,''z''<sub>1</sub>,...), ''f''(''x'',''z''<sub>0</sub>,''z''<sub>1</sub>,...), ... are all defined and ''f''(''x'',''z''<sub>0</sub>,''z''<sub>1</sub>,...) = 0, if such an ''x'' exists, is a ''recursive function''. (If such an ''x'' does not exist, the operation is undefined on the input ''z''<sub>0</sub>,''z''<sub>1</sub>,....)
The set of ''recursive functions'' is the subset of partial recursive functions which are [[total function|total]].▼
In the [[equivalence of models of computability]] the parallel is drawn between [[Turing machine|Turing machines]] which do not terminate for certain inputs and an undefined result for that input in the corresponding recursive function.▼
The unbounded search operator is not definable by the rules of primitive recursion as they do not provide a mechanism for these "infinite loops" (undefined values). ▼
▲In the [[equivalence of models of computability]] the parallel is drawn between [[Turing machine|Turing machines]] which do not terminate for certain inputs and an undefined result for that input in the corresponding partial recursive function.
▲The set of ''partial recursive functions'' is the smallest set of partial functions of any [[arity]] from natural numbers to natural numbers which contains the zero, successor, and projection functions, and which is closed under composition, primitive recursion, and unbounded search.
▲The unbounded search operator is not definable by the rules of primitive recursion as
▲The set of ''recursive functions'' is the subset of partial recursive functions which are [[total function|total]].
It is interesting to note that if the application of the unbounded search operator in the definition above is limited strictly to ''regular functions'' (functions which are guaranteed to be total when the unbounded search operator is applied to them), the resulting set
|