We next define a
-counterpart of
* and
* and look into some of its closure properties.
2.5.0.3 Definition. (Semi-computable Relations) A relation P (
) is called semi-computable or semi-recursive iff for some f
, we have, for all
n ,
The set of all semi-computable relations is denoted by
* .
If
in (1) above, then we say that “a” is a semi-computable index or just a semi-index of P (
n )”. If n = 1 (thus P ⊆
) and a is one of the semi-indices of P , then we write P = W a [Rogers (1967)].
We are making the symbol
* up, in complete analogy with the symbols
* and
* . It is not standard in the literature.
We have at once:
2.5.0.4 Theorem. (Normal Form Theorem for Semi-computable Relations) P (
n )
* iff, for some a
, we have (for all
n ) P (
n ) ≡ (∃ z ) T ( n ) ( a ,
n , z ).
Proof. Only if -part. Let P (
n ) ≡ f (
n ) ↓, with f
. By Remark 2.3.0.12 ,
for some a
. We conclude by Corollary 2.3.0.8 (1).
If -part: By 2.5.0.3 and 2.3.0.12 , the given equivalence translates into P (
n ) ≡
But
.
Rephrasing the above theorem (hiding the
-index “ a ”, and remembering that
* ⊆
* ), we have:
2.5.0.5 Corollary. (Strong Projection Theorem) P (
n )
* iff, for some recursive predicate Q (
n , z ), we have (for all
n ) P (
n ) ≡ (∃ z ) Q (
n , z ).
Proof . For the only if, take Q (
n , z ) to be λ
n , z . T ( n ) ( a ,
n , z ) for appropriate a
. For the if, take f = λ
n .( μ z ) Q (
n , z ) (cf. 2.1.2.39 ). Then f
and P (
n ) ≡ f (
n ) ↓.
2.5.0.6 Corollary. P (
n )
* iff, for some λ
n . g (
n )
, we have ( for all
n ) P (
n ) ≡ g (
n ) = 0.
Proof . The only if is immediate from 2.5.0.3 : Let f
such that, for all
n , P (
n ) ≡ f (
n ) ↓. Take g = λ
n .1 ∸ (1 ∸ f (
n )).
For the if , note that f =
for some i , thus
We are done by 2.5.0.5.
The preceding corollary is the analogue of 2.1.2.16 and 2.1.2.17 for
* . It provides, among other things, easy proofs for the facts
* ⊆
* and
* ⊆
* . For example, say, Q (
)
* . Then, for some g
, Q (
) ≡ g (
) = 0, for all
. But g
as well, and we can invoke 2.5.0.6.
2.5.0.7 Corollary. (Graphs of Partial Recursive Functions) λ
n . f (
n )
iff y = f (
n ) is semi-recursive .
Proof . For the only if, let
. Then
We conclude by 2.5.0.5. For the if part, let (again, 2.5.0.5 )
To compute f (
n )—given
n —we enumerate all pairs 〈z, y〉 and stop at the “first“, if any, that satisfies Q ( z ,
n , y ); we output y . Mathematically,
Clearly f
.
Pause. Why not argue the if part more simply, in view of 2.5.0.6 ? Let g
such that
Then f (
n ) = ( μ y ) g ( y ,
n ), for all
n , and thus f
.
See Exercise 2.12.33 .
2.5.0.8 Remark. (Deciders and Verifiers) A computable relation P (
n ) is, by definition, one for which xp
; thus it has an associated URM M that decides membership of any
n in P both ways : “yes” (output 0) if it is in; “no” (output 1) if it is not. Thus this M is a decider for P (
n ).
A semi-computable relation Q (
m ), on the other hand, comes equipped only with a verifier, i.e., a URM N that verifies
m
Q , if true, by virtue of halting on input
m . A verifier gives no tangible information about the non membership cases, which cause it to enter a so-called “infinite loop” (it enters a non terminating computation).
While, mathematically speaking,
m
Q is also “verified” by virtue of looping forever on input
m , algorithmically speaking this is no verification at all as we do not have a way of knowing whether N is looping forever as opposed to simply being awfully slow, planning perhaps to halt in a couple of trillion years (cf. halting problem 2.5.0.16 ).
In the algorithmic sense, a verifier (of a semi-computable set of m -tuples) verifies only the “yes” instances of questions such as “Is
m
Q ?”—hence its name.
Thus, the output of a verifier for a semi-computable relation Q (
), when it halts, is irrelevant. It has verified membership of its input to Q simply by virtue of terminating its computation .
2.5.0.9 Definition. (Undecidable Problems) A problem is a question of the form
Q. Synonymously, a question of the form Q (
).
Figure 2.1 A decider and a verifier, pictorially, for handling the query, “
n
A ?”, by a URM.
Thus, a problem is a predicate .
We say that a problem Q (
) is decidable or (recursively) 82 solvable, iff there is a decider for it, which mathematically is expressed by “ Q (
)
* ”—i.e., Q is recursive. In the opposite case we say that Q (
) is undecidable or (recursively) unsolvable .
A problem Q (
) is semi-decidable iff there is a a verifier for it, that is, iff Q (
) is semi-computable.
Intuitively, we see that if we have a verifier for a relation Q (
n ) and also have a verifier for its complement (negation) ¬ Q (
n ), then we can build a decider for Q (
n ): On input
n we simply run both verifiers simultaneously. If the one for Q halts, then we print 0 and stop the computation. If, on the other hand, the one for ¬ Q halts, then we print 1 and stop. Of course, one or the other will halt, since one of Q (
n ) or ¬ Q (
n ) is true!
This process computes XQ (
n ). Put more mathematically,
2.5.0.10 Proposition. If Q (
n ) and ¬ Q (
n ) are in
* , then both are in
* .
Proof. Let i and j be semi-indices of Q and ¬ Q respectively, that is ( 2.5.0.4 ),
Define
Intuitively, g implements (mathematically) the process in which we run the two verifiers simultaneously, (coded as) i and j , and look for one that halts, by looking for the smallest z that codes a computation 83 of i or j as the case may be.
Trivially, g
. Hence, g
, since it is total (why?). We are done by noticing that Q (
n ) ≡ T ( n ) ( i ,
n , g (
n ))—cf. 2.1.2.24. By closure properties of
* ( 2.1.2.21 ), ¬ Q (
n ) is in
* , too.
2.5.0.11 Proposition.
* ⊆
* .
Proof . Let Q (
)
* and y be a new variable (other than any of the
). Since Q does not depend on y , we have Q (
) ≡ (∃ y ) Q (
). By 2.5.0.5 , Q (
)
* .
2.5.0.12 Remark. An intuitive way to see the truth of the preceding proposition is this: Given a URM M that decides Q (
), that is, computes XQ , modify it to compute instead
How do we do this? Easy: Using M as a subprogram, we build a new URM, G , for g that
(1) Given the input
, G first computes XQ (
)—using M .
(2) If the computed answer is 0, then it halts (jumps to the stop instruction of G ).
If the answer is 1 then it enters an infinite loop.
How do we enter an infinite loop deliberately? Well, say that the output variable of M and G is Y . We just need the following program “logic” (as programmers say):
Comment. Above k − 1 we have just M , with its stop removed k − 1 : if Y = 0 goto k else goto k − 1
k : stop
![]()
![]()
2.5.0.13 Remark. (Undecidable Problems and Uncomputable Functions Exist)
We can readily show, albeit in a somewhat intangible manner, that undecidable problems and therefore uncomputable total functions (their characteristic functions) exist.
This readily follows from a so-called cardinality argument: By Kleene’s Normal Form theorem, we have only a countable set of partial recursive functions
Thus the subset (recall 1.3.0.44) of total (computable) 0-1-valued functions (and hence, decidable problems) is countable. However, by 1.3.0.50, the set of all total functions f :
→ {0, 1} is uncountable. So there must be many such functions that do not belong to the enumeration (1)! Each such function f not only provides an example of an uncomputable function, but being 0-1-valued provides an example of an undecidable problem, this one: f ( x ) = 0.
We called this an “intangible demonstration” of the existence of undecidable problems as it produced no specific meaningful problem that is undecidable. We remedy this below.
2.5.0.14 Definition. (The Halting Problem) The halting problem has central significance in computability. It is the question whether “ program x will ever halt if it starts computing on input x ”. That is, if we set K = { x :
x (x) ↓}, then the halting problem is x
K . We denote the complement of K by
.
2.5.0.15 Exercise. The halting problem x
K is semi-recursive.
Hint. The problem is “
x ( x ) ↓”. Now invoke the normal form theorem ( 2.3.0.8 (1)).
2.5.0.16 Theorem. (Unsolvability of the Halting Problem) The halting problem is undecidable .
Proof . In view of the preceding exercise (and 2.5.0.10 ), it suffices to show that
is not semi-computable. Suppose instead that i is a semi-index of this set. Thus, x
≡ (∃ z ) T ( i, x, z ), or, making the part x
—that is,
x ( x ) ↑—explicit:
Substituting i into x in (1) we get a contradiction.
2.5.0.17 Remark. (1) By 2.5.0.3 a set S ⊆
is semi-recursive iff “it is a W i ”, that is, for some i , S = W i . The above proof says that “
is not a W i ”. Is this surprising? Well, no!
This goes back to the Cantor diagonalization that shows that D (⊆
), below,
D = { x : x
S x }
is not an S i (cf. 1.3.0.52 ), where each S i is a subset of
. Indeed,
hence x
W i ≡¬(∃ y ) T ( i,x,y ) and, in particular, i
W i ≡¬(∃ y ) T ( i,i,y ). But the right hand side says “
i ( i ) ↑”, that is, i
. Thus
and Cantor’s diagonalization argument shows that “
is not a W i ”. So the proof of 2.5.0.16 was a well-concealed diagonalization argument!
(2) Since K
* , we conclude that the inclusion
* ⊆
* ( 2.5.0.11 ) is proper, i.e.,
* ⊂
* .
(3) The characteristic function of K provides an example of a total uncomputable function.
(4) In 2.1.2.14 we saw an example of how to remove “points of non definition” from a function so that it remains computable after it has been extended to a total function. Can we always do that?
No. For example, the function f = λ x .
x ( x ) + 1 cannot be extended to a total computable function. Of course, by 2.3.0.8 , f
, since, for all x, f ( x ) ⋍ d (( μ y ) T ( x, x, y )) + 1. Here is why: Suppose that g
extends f . Thus, g =
i for some i . Let us look at g ( i ): We have
But since f ( i ) ↓, we also have g ( i ) = f ( i ) as g extends f , a contradiction.
Once we have built a class of functions or predicates, we next look at their closure properties.
2.5.0.18 Theorem. (Closure Properties of
* )
* is closed under ∨, ∧,(∃ y ) < z , (∃ y ), and (∀ y ) < z . It is not closed under either ¬ or (∀ y ).
Proof. Given semi-computable relations P (
n ), Q (
m ), and R ( y ,
k ) of semi-indices p, q, r, respectively. In each case we will express the relation we want to prove semi-computable as a strong projection ( 2.5.0.5 ):
As for possible closure under ¬ and ∀ y , K provides a counterexample to ¬: K
* ( 2.5.0.15 ) but
* ( 2.5.0.16 ). Closure under ∀ y is also untenable as ¬ T ( x,x,y ) provides a counterexample: Being primitive recursive, it is in
* . However, (∀ y )¬ T ( x,x,y ) is not, since this is ¬(∃ y ) T ( x,x,y )—that is, x
.
2.5.0.9 Remark. The case for ∨ in the proof above is straightforward since ∃ distributes with
.
However, it does not distribute with ∧, hence the complication in the ∧ case. We want to say that
is true precisely when two independent computations z 1 and z 2 exist for the machines (coded by) p and q, if the inputs are
n and
m , respectively.
One way to say this is just as we did, by saying that there is a number w , bigger than both of z 1 and z 2 —for example w = max( z 1 , z 2 ) + 1 will do—and then use “(∃ z ) < w ” in each case.
Pause . Why not forget about these acrobatics and just rest the case with the first line of the ∧ case above?
But surely, because we want to express the left hand side as a formula of the form (∃ w ) S ( w ,...)—in order to invoke 2.5.0.5 —that is, a formula with a single existential quantifier up in front and with a recursive S [confirmed due to bounded quantifications, “(∃ z ) < w ”, being employed].
An alternative way of saying “I have two computations z 1 and z 2 ” is to use coding:
For the (∃ y ) < z case we used the commutativity betwee the two ∃.
Pause. But one is bounded! Can it commute with an unbounded one? (See Exercise 2.12.26 )
In the double-∃ case we reduce the two quantifiers to one, as needed for a form (∃ w ) S ( w ,...) with recursive S , by using a z > y , w (e.g., z = max( y, w ) + 1 will do). Alternatively, we can use z = [ y, w ] and thus say
Regarding the (∀ y ) < z case, commuting ∃ and ∀ is not on.
Pause . Think of (∀ x )(∃ y ) x < y vs. (∃ y )(∀ x ) x < y .
Yet, we wanted to bring
in the form (∃ w ) S ( w ,. . .) with a recursive S . Thus, we argued (implicitly) as follows: (1) says that for every y = 0, 1,..., z −1 there is a w -value—possibly dependent on the y—that is, there is a sequence of numbers w 0 , w 1 ,..., w z −1 that make the predicate T (k+1) ( r, i,
k , w i ) true. If we set u = max{ w 0 , w 1 ,..., w z −1 } + 1 then we can capture this observation by making the quantifier prefix of (1) “(∃ u )(∀ y ) < z (∃ w ) <u ”. Incidentally, this expresses (1) in the form required: (∃ w ) S ( w ,. . .) with a recursive S . This is precisely what we did in our proof above.
An alternative technique, using coding, is often encountered in the literature: (1) is equivalent to
which has the proper form.
2.5.0.20 Proposition. If λ
. f (
)
and Q ( z ,
)
* , then Q ( f (
),
)
* .
Proof . By 1.2.0.10,
By 2.5.0.7 and 2.5.0.18 , the right hand side, and hence the left hand side, of ≡ is semi-recursive.
For a more direct proof, see Exercise 2.12.32 .
2.5.0.21 Example. This is our first example of a reduction argument, a trivial one. We introduce a generalization, K 0 , of the halting set K , by
We show that the problem 〈 x , y 〉
K 0 is undecidable, that is,
Suppose that (1) is false. Then the characteristic function, λ xy .χ K 0 ( x , y ) of K 0 is in
. But then so is the function f = λ x .χ K 0 ( x , x ) obtained from χ K 0 by identification of variables (cf. 2.1.2.6 ). However, f is the characteristic function of the halting set, and we just have shown that the halting problem is decidable!
This contradiction shows that (1) is correct, after all.
We have just witnessed an instance of an argument that went like this: If I have an algorithm that solves problem B, 85 then I know how to build another algorithm that uses the one for B and solves problem A. 86
That is, we reduced problem A to problem B (this makes A “more decidable” than B ; and makes B “more undecidable” than A ).
This reduction shows that if we know that A is undecidable, then so must be B.
We will encounter many more reduction arguments in Section 2.7 .
2.5.0.22 Example. (A Very Hard Problem) The equivalence problem is: given two programs, decide if they compute the same function or not.
A “program” here can be any finite way of describing a function. This finite way could be an actual program, such as a URM or a loop program. Or it could be a derivation (cf. 2.1.2.1 and Corollary 2.3.0.11 ), say, within
or
, which defines a function.
To fix ideas, let us focus attention on primitive recursive functions, finitely defined via loop programs. We ask: Is the problem of determining whether two such functions are equal decidable?
Well, if it is, then in particular so will be the special case of determining whether λ y .1 and λ y .χ T ( x , x , y )—where T is the Kleene predicate—are the same function or not, for any given x. The reader may readily imagine—due to the primitive recursiveness of both functions—that they are given by loop programs.
The question, mathematically, is (∀ y ) (1 = χ T ( x , x , y )). In terms of T this says (∀ y )¬ T ( x , x , y ), or ¬(∃ y ) T ( x x , y ).
We recognize the last expression as x
, which we know that is not semi-computable ( 2.5.0.16 ), let alone recursive!
Pause. Why “let alone”?
Thus the equivalence problem of primitive recursive functions is incredibly hard: There is not even a verifier for it!
2.5.0.23 Remark. (Computably Enumerable Sets) There is an interesting characterization of non-empty semi-computable sets that is found in all introductions to the theory of computation. These sets are precisely those that can be “enumerated effectively” or “computably”, that is, we can prove that
A non-empty set S ⊆
is semi-computable iff it is the range (cf. Definition 1.2.0.5 ) of some f
![]()
.
The enumeration is not required to be 1-1, so there may be repetitions. Notice that since the enumerating function is total, there will necessarily be repetitions in the case when S is finite.
What is the intuition for this? Well,
(1) Assume first that we have an algorithmic enumeration of all the members of S . Here is then how to verify (semi-decide) the question x
S : Given x , start the algorithmic enumeration and keep an eye on what it “prints”. If and when x is printed, then stop. We have verified x
S . What if x
S ? Well, then it will never be printed by the enumeration and we will never stop our process.
(2) Conversely, assume that we have a verifier, M (a URM), for x
S . We write a new program N that behaves as follows: It systematically generates all pairs of numbers 〈 x , y 〉, one at a time.
For example, one can enumerate all numbers
0, 1, 2, 3, … , z , …
in turn, and, for each z generated, one can generate the pair 〈( z ) 0 , ( z ) 1 〉.
For each pair generated, N checks whether M , on input x, halts within y computation steps. 87 If so, x is printed (as it clearly belongs to S ).
Pause. Why make it so complicated and not instead enumerate all numbers x in turn, and if M halts on x , then print x ?
The technique in (2) above is called dovetailing several computations (of M ) for several inputs “at once”. Well, strictly speaking, not “at once”. The method implements, indeed sequentially simulates, a “poor person’s parallelism” , because, in essence, it simulates the in parallel examination of several questions of the type “does M halt on x ?”.
The essential feature of parallelism is not the temporal simultaneity of testing the questions “does M halt on x ?” for various x , but rather the fact that if an input x = a causes M to run forever, this does not affect, nor block, the testing of other inputs for which M halts. A true parallel “environment” allocates one process to each input x . On the other hand, dovetailing captures this key property of parallelism and does so with a single computation process (or “single processor”)!
The simulation of parallelism is effected by allowing to each question gradually more and more time (number of steps) to reach an answer. Notice that since there are infinitely many pairs 〈 a , y 〉 with first component a , if M ever halts on a —say, using y = b computation steps—then this fact will be eventually verified in the process (2): It will happen precisely when we will be testing the pair 〈 a , b 〉.
An intuitively more immediate rearrangement of the dovetailing process of (2), which demonstrates the sense in which dovetailing is approaching true parallelism “in the limit”, is captured by the matrix below:
0; 1
0,1; 2
0,1,2; 3
0,1,2,3; 4
.
.
.
0,1,2,3,…, i ; i + 1
.
.
.
The number at the far right in each row is the number of steps that we let M run. The other numbers in each row are the inputs we test for said number of steps. In the “limit”, it is as if we are testing all inputs “simultaneously”: input 0 for one step; inputs 0 and 1 for two steps; inputs 0, 1 and 2 for three steps; …, inputs 0, 1, …, i for i + 1 steps; and so on.
Mathematically, we repeat the above informal argument, (1) and (2), in 2.5.0.24 below to prove the italicized statement at the beginning of the previous remark. Central in our preceding discussion was the concept of “step”. But what is a step mathematically? We take as “step” to be the entire computation, coded as y in the Kleene predicate T ( i , x , y ). That is, for any
i , its step-counting or complexity function is
This is reasonable, since the computation y is a strictly increasing function of how many ID-to-ID “real steps” took place in the (terminating) computation.
In fact, Blum (1967) takes as the key, indeed defining , properties of the concept of complexity of
i the following two:
(I)
i ( x ) ↓ iff Φ i ( x ) ↓; that is, the program i halts on input x if a complexity of computation can be assigned for said input.
(II) Φ i ( x ) ≤ y is recursive ; that is, we can decide whether machine i halts within y (i.e., in ≤ y ) “steps”.
Blum (1967) takes (I)–(II) as the axioms for complexity theory, that is, without specifying Φ explicitly. Many concrete choices of Φ that satisfy the axioms are possible. By the way, for our chosen Φ in (*), (I) is trivially obtained directly from 2.3.0.8 . As for (II), Φ i ( x ) ≤ y ≡ (∃ z ) ≤ y T ( i , x , z ) which is more than recursive: primitive recursive.
On the other hand y < Φ i ( x ) ≡ ¬Φ i ( y ) ≤ y ; also in
* .
It is important to observe that we bypass (I), above, when we assess
We do not compute Φ i ( x ) (which may diverge!) to figure out the answer.
2.5.0.24 Theorem. A non-empty set S ⊆
is semi-computable iff it is the range of some f
.
Proof . For the part (1), let f be primitive recursive such that ran( f ) = S . That is,
y
S ≡ (∃ x ) f ( x ) = y
Given that f ( x ) = y is in
* (2.1.2.25), y
S is semi-computable by the projection theorem ( 2.5.0.5 ).
For the dovetailing part, (2) of 2.5.0.23 , assume that the non-empty S is semi-computable. Let i be a semi-index for S , thus,
for all x. Following directly on the idea in (2), with the concept of “step” made mathematically precise in the preceding remarks, we define the enumerating function by:
where “ a ” is some fixed member of S that we keep outputting every time the condition “ T ( i , ( z ) 0 , ( z ) 1 )” fails, 88 ensuring that f is total. Of course f is primitive recursive.
Is it true that ran( f ) = S ?
Indeed, as ran( f ) contains only numbers of the form ( z ) 0 such that T ( i , ( z ) 0 , ( z ) 1 ) holds, it is immediate by (*) that ran( f ) ⊆ S. Conversely, let x
S and let b be a value of y that makes (*) true. But then f ([ x , b ]) = x , so x
ran( f ).
The above result justifies the following nomenclature:
2.5.0.25 Definition. A set S ⊆
is called computably enumerable (c.e.) or recursively enumerable (r.e.) iff it is either empty, or is the range of a primitive recursive function.
There is no loss of generality in presenting the above definition for subsets of
since via coding […] it can be trivially and naturally extended to sets of n -tuples for n > 1. A set S ⊆
n is c.e. iff there is a primitive recursive f such that ran( f ) = {[
] : S (
)}.
2.5.0.26 Corollary. A non-empty set S ⊆
is semi-recursive iff it is c.e. (r.e.)
2.5.0.27 Corollary. A non-empty set S ⊆
n is semi-recursive iff it is c.e. (r.e.)
Proof . The if is straightforward, while the only if is a direct adaptation of the proof of 2.5.0.24 : Let
for all x. The enumerator f is given by
where “
n ” is some fixed member of S.
2.5.0.28 Corollary. A set S ⊆
n is semi-recursive iff it the range of an f
.
Proof. The only if is proved as above, where we just drop the “[
n ] otherwise”. For the if , suppose that
y
S ≡ (∃ x ) f ( x ) = y
By 2.5.0.7 and 2.5.0.18 , the above yields S
* .
2.5.0.29 Example. (Another Very Hard Problem) The set
= { x :
x
}— which trivially is the same as { x :
x is total}; cf. 2.1.1.2 —is very important in computability. One certainly wants to know whether or not we can “tell” if a program x computes a total function. We can tell in one of two ways: We can fully (algorithmically) decide the question x
, or we can just verify it when true. Which one is it here?
Neither.
is not semi-recursive, hence nor is it recursive ( 2.5.0.11 ). In that sense this is another very hard—and very meaningful—problem of which we cannot even verify the positive instances.
We prove the non semi-recursiveness by proving that
is not c.e. using diagonalization (cf. Subsection 2.2.2 and 1.3.0.50 ). So, by way of contradiction, let f
be such that
= ran( f ). This means that {
f ( x ) : x
} is the set of all total computable functions of one variable. Consider the function d = λ x .
f ( x ) ( x ) + 1.
By the preceding remark, and composition with the successor function, d
. Thus, for some i ,
since
is the set of all programs that compute total 1-argument functions, thus a program m for d must be an f ( i ).
What do we know of
f ( i ) ( i )? Well,
A contradiction, since all sides of = are defined. So no such f exists, and
is not c.e.
The above example concludes a discussion we have started in the
-enclosed passage on p. 147 .
Quite apart from the empirical question of whether or not “Church’s Thesis” is correct, we note that within the formalization of
, in which the functions
z of
have finite descriptions z
![]()
, it is impossible to have an enumeration of all such descriptions via a recursive function of
.
So, at least, within the
-formalism we cannot diagonalize out of
by an argument like the one given in 2.2.2. This observation will be proved mathematically without invoking any “beliefs”.
2.5.0.30 Exercise. (Definition by Positive Cases) Consider a set of mutually exclusive relations R i (
), i = 1, …, n , that is, R i (
) ∧ R j (
) is false for each
as long as i ≠ j .
Then we can define a function f by positive cases R i from given functions f j by the requirement (for all
) given below:
Prove that if each f i is in
and each of the R i (
) is in
* , then f
.
Hint. Use 2.5.0.7 along with closure properties of
* relations to examine y = f (
).
A semi-recursive predicate is “positive” having the form (∃ y ) Q ( y ,
) for some recursive Q ( 2.5.0.5 ). It is also known as a Σ 1 predicate.
It is important to note about the last case in the definition:
(1) The otherwise condition, is the negation of a positive predicate, namely, of the semi-recursive R 1 ∨ … ∨ R n . A “negative” predicate such as this negation has the form (∀ y ) R ( y ,
), for some recursive R , since it is the negation of one of the form (∃ y ) Q ( y ,
), for some recursive Q. Such negative predicates are also called Π 1 predicates.
(2) Note that the “output” in the last case is ↑. This, intuitively, is as much as is expected in general, given that, for example, the “otherwise” of some positive cases, such as x
K , are not even semi-recursive so that the obvious “program” for the function f will enter into an infinite loop when pondering the condition “otherwise”.
This last observation is firmed up mathematically in Exercise 2.12.35 via two examples.
Comment. Above k − 1 we have just M , with its stop removed k − 1 : if Y = 0 goto k else goto k − 1