Skip to main content

Questions tagged [primitive-recursion]

Filter by
Sorted by
Tagged with
3 votes
1 answer
150 views

There is a famous equivalence between types of grammars and automatons. However when discussing recursive functions, we only consider equivalence of General Recursive functions with Turing machines. ...
math boy's user avatar
  • 394
2 votes
2 answers
201 views

i have seen some articles where they use the diagonalization argument to prove the existence of non-primitive recursive functions. But this should only work if we can create an infinite list of every ...
Aditya Mishra's user avatar
3 votes
1 answer
189 views

The Ackermann function is the textbook example of a function which is total recursive but not primitive recursive. If we want to implement it in some programming language we will need to use a priori ...
Weier's user avatar
  • 253
1 vote
1 answer
119 views

Are there (interesting) situations where we can decrease the time complexity of a program by increasing its ordinal complexity? For example, is it possible to find a primitive recursive function such ...
agemO's user avatar
  • 177
0 votes
1 answer
124 views

We want to show that the following function $F$ is primitive recursive (using the primitive recursion scheme) : For all $x,p,a\in \mathbb N$, $F(p,a,0)=g(\eta^{p}(a))$ $F(p,a,x+1)=h(\eta^{(p-(x+1))}(...
Maman's user avatar
  • 199
0 votes
0 answers
127 views

Suppose $x$ is Godel's number of some formula. Predicate $\operatorname{P}(\operatorname{f}(x))$ is true only when the number of functions is equal to the number of predicates in that formula. Prove ...
Lida Aristakesyan's user avatar
1 vote
1 answer
101 views

So I'm trying to solve this problem(problem 8 from section 3.4) of the book Computability, Complexity and languages by Martin Davis: Let k be some fixed number, let ...
Mahdi's user avatar
  • 113
1 vote
1 answer
161 views

the scheme of iteration ? Here is the scheme of iteration : for $g : \mathbb{N}^p\to \mathbb{N}$ and $h:\mathbb{N}^{p+1}\to \mathbb{N}$ two primitive recursive functions we associate $f: \mathbb{N}^{p+...
Maman's user avatar
  • 199
1 vote
0 answers
91 views

Let $f:\mathbb{N}^{p+1} \to \mathbb{N}$ a primitive recursive function and $g:\mathbb{N}^{p+1} \to \mathbb{N}$ the bounded sum defined by : $g(\bar{a},x)=\sum\limits_{i=0}^x f(\bar a , i)$. To show ...
Maman's user avatar
  • 199
0 votes
1 answer
121 views

My intuition is that you can't call a function that has not yet been defined, although I have yet to find a source confirming this. Is this true? Thanks, friends :)
Glubs's user avatar
  • 123
14 votes
0 answers
308 views

In 2014, inspired by Regex Golf, I started exploring, along with a mathematician going by the name teukon, what could be done in the unary domain in ECMAScript regex that went significantly beyond ...
Deadcode's user avatar
  • 241
0 votes
0 answers
78 views

Let $\forall n \in \mathbb{N}\ \ P(n)$ a primitive recursive predicate such that $\neg P(n)$ for a finite number of values of $n$. Why this function: $$ f(x) = \begin{cases} 1 & \text{ if there ...
TakeASadSong's user avatar
3 votes
1 answer
172 views

Is it correct to state that $u$ is a universal function if and only if $$ \forall f : \text{RE} \quad \exists g : \text{R} \quad \exists h : \text{R} \quad f = h \circ u \circ g $$ where RE is the set ...
user76284's user avatar
  • 446
1 vote
1 answer
80 views

How do I prove that the predicate $P(x , y)$ is primitive recursive, where $P(x,y)$ holds if $x,y$ are relatively prime?
Dr.knowNothing's user avatar
1 vote
1 answer
205 views

I know, loosely speaking, if we can define a function $f$ in term of \begin{align} &f(0,\vec{x})=g(\vec{x})\\ &f(n+1,\vec{x})=h(f(n),n,\vec{x}) \end{align} where functions $g,h$ are primitive ...
Ethan's user avatar
  • 113
0 votes
0 answers
48 views

Which function results from primitive recursion of the functions $g$ and $h$? $f_1=PR(g,h)$ with $g=succ\circ zero_0, h=zero_2$ $f_2=PR(g,h)$ with $g=zero_0, h=f_1\circ P_1^{(2)}$ $f_3=PR(g,h)$ with $...
Doesbaddel's user avatar
3 votes
2 answers
377 views

I was reading a Wikipedia page on Primitive Recursive Functions but there is a phrase for describing the simple for loops which I really don't understand. Can anyone explain this to me? The Phrase: ...
ARK1375's user avatar
  • 200
1 vote
1 answer
66 views

Assume $f\colon ω × ω → ω$ is a computable function. How can we prove that there is a primitive recursive function $g\colon ω × ω → ω$ where the following holds: $∀n [∃s(f(n, s) = 1) ↔ ∃k(g(n, k) = 1)...
Tim10083's user avatar
1 vote
1 answer
1k views

Given a function E(x) which outputs 0 is x is even and 1 is x is odd, prove that this function is primitive recursive. My attempt is as follows $$ E(x) = x \mod 2$$ To show that any function is ...
Keane Moraes's user avatar
0 votes
0 answers
136 views

I try to prove that this function is recursive: $$f(x_1,x_2)= \begin{cases} 2x_1-x_2 & \text{if $x_1 \geqslant \sqrt{x_2}$} \newline \bot & \text{otherwise} \end{cases}$$ I think that I need ...
Alessandro Recchia's user avatar
1 vote
1 answer
299 views

I have a problem for the comprehension of how to prove that a function $ \log_2 : \mathbb{N} \rightarrow \mathbb{N}$ defined as: $$\log_2 (x)= \begin{cases} y & \text{if $x=2^y$} \newline \bot &...
Alessandro Recchia's user avatar
2 votes
0 answers
199 views

I'm asked to show that the quotient function is primitive recursive. I know that the operation of integer division $div$ is not total, as it is not defined when the denominator is zero, and a ...
Karla's user avatar
  • 181
2 votes
1 answer
133 views

Let's say that a set of natural numbers $S \subseteq \mathbb{N}$ is primitive recursively enumerable if there exists some primitive recursive function $f$ such that $S$ is the range of $f$. That is, ...
Joey Eremondi's user avatar
2 votes
1 answer
193 views

Let P(p) <=> for each x, comp(p,x) is defined. Can anyone explain to me how to prove that P is not RE (recursively enumerable) ?
A. Othmane's user avatar
1 vote
0 answers
81 views

In Elements of the Theory of Computation by Lewis and Papadimitriou, the authors use a specific function for proving that application of unbounded minimization on a primitive recursive function need ...
Puneet Singh's user avatar
2 votes
2 answers
483 views

I want to construct a LOOP-computable program for the integer division (quotient): x = a DIV b The LOOP specification can be seen here: https://en.wikipedia.org/wiki/LOOP_(programming_language) I ...
Christopher300's user avatar
3 votes
2 answers
316 views

Let us consider the class $\cal F$ of functions that contains all constant functions all projections the successor function the Ackermann function as basic functions, and that is closed under ...
Gamow's user avatar
  • 180
0 votes
1 answer
1k views

Let $f:\mathbb{N} \to \mathbb{N}$ be a computable partial functions and $T$ a Turing Machine which computes it. By this I understand that $T$ writes $f(n)$ on its tape and halts when $n$ is an input ...
Saravanan's user avatar
  • 151
1 vote
2 answers
2k views

How to prove that if the set and its complement are recursively enumerable, then this set and its complement are recursive? My idea is that we can make the characteristic function of recursively ...
Pavel Iljiev's user avatar
5 votes
0 answers
74 views

I'm currently studying some of the history of computation / computability, in the early days known as recursion theory. I see Goedel's definition of recursive functions seems significant in his paper,...
Greg Peckory's user avatar
4 votes
0 answers
124 views

Primitive recursion is recursion where totality can be proved because there is a single natural number parameter that strictly decreases in every recursive call. Put another way, the recursion ...
Aaron Rotenberg's user avatar
0 votes
1 answer
174 views

If $f:A^*\rightarrow A*$ and $g:A^* \rightarrow A^*$ are partial recursive we want to prove $h:A^* \rightarrow A^*$ with the following definition is partial recursive $$ h(x) = \begin{cases} \...
Karo's user avatar
  • 488
1 vote
1 answer
496 views

Let h(x) be the integer n such that $n \leq \sqrt2 < n+1$ Show that h(x) is primitive recursive. I know how primitive recursive functions are defined, but showing an integer is primitive recursive ...
mandib's user avatar
  • 25
3 votes
1 answer
546 views

Recently, I encountered terminologies such as primitive recursion and recursion combinator. One of the sources is here link I googled and read some, but missing the points of them. I know that ...
alim's user avatar
  • 1,034
3 votes
1 answer
169 views

Is there any computable real number which can not be computed by a higher order primitive recursive algorithm? For computable real number I mean those that can be computed by a Turing machine to any ...
user3368561's user avatar
5 votes
1 answer
770 views

Problem 7.16 in The Nature of Computation reads as follows: [...] show that when defining primitive recursive functions, we really only need to think about functions of a single variable. In ...
Sebastian Oberhoff's user avatar
2 votes
1 answer
187 views

Primitive recursion seems to be related to bounded quantification. It is easier to make sense of bounded quantification with respect to natural numbers than to make sense of bounded quantification ...
Thomas Klimpel's user avatar
1 vote
1 answer
167 views

Could you find an example of a complete $\mu$-recursive function that is not a primitive function?
Sikelef's user avatar
  • 93
3 votes
1 answer
879 views

Let $S(i,x_1,\ldots, x_n)$ be a primitive recursive predicate. \begin{equation} f(i_1,i_2,x_1,\ldots, x_n) = \begin{cases} 1 &\text{ when for all i, }\; i_1 \le i \le i_2,\; S(i,x_1, \ldots, ...
David Hamide's user avatar
3 votes
0 answers
138 views

Let $\varphi:\mathbb{N}\to\mathbb{N}^*$ be an arbitrary recursive enumeration of finite strings and $\mathcal{I}^n_i(x_1,...,x_n) = x_i $ be the $i$-th projection over $n$ variables. I would like to ...
Manlio's user avatar
  • 379
3 votes
1 answer
280 views

Is there a real world nonmathematical example of computer software that isn't primitive recursive? I'm not interested in examples that are somehow closely related to theory of computation or logic (...
Luka Mikec's user avatar
3 votes
1 answer
376 views

The minimization of a given primitive recursive function $f$ is computed by the following expression: $ \newcommand{\pr}[2]{\text{pr}^{#1}_{#2}} \newcommand{\gpr}{\text{Pr}} \newcommand{\sig}{\text{...
lo tolmencre's user avatar
3 votes
1 answer
626 views

We consider the function $g$ which associates the number of prime integers with $n$ in the set $\{0,...,n\}$. I have to prove that $g$ is a primitive recursive function. First I defined the set $A=\{...
Maman's user avatar
  • 199
4 votes
1 answer
102 views

How to construct my proof and generally what should I aim to get when showing a function is $\mu$-recursive? Should I transform it in some of the basic functions using the given operators? For ...
user8's user avatar
  • 309
-1 votes
1 answer
195 views

If we have a function $g\colon \mathbb{N}^{k+1} \to \mathbb{N}$ which is primitive-recursive. How to show that the function $f\colon \mathbb{N}^{k+1} \to \mathbb{N}$ with $$f(x_1, \dots, x_k , x_{k+...
fragant's user avatar
  • 175
0 votes
0 answers
57 views

In total functional programming programs are restricted to total computable functions. A well-known class of total functions are the primitive recursive functions ($PR$). However the Ackermann ...
Peter's user avatar
  • 361
0 votes
1 answer
667 views

The Wikipedia article about regular languages mentions that $DSPACE(O(1))$ is equal to $REG$. Can I conclude from this that every function in $R$ with constant space complexity is in $REG$?
Peter's user avatar
  • 361
7 votes
1 answer
133 views

The wikipedia article for primitive recursion mentions a limitation that primitive recursive function can't compute the function $ ev(i,j) $ which computes the $ i $th primitive recursive function on ...
cardobard_box's user avatar
5 votes
4 answers
1k views

Problem Statement Prove that if a function $f$ is primitive recursive, then there are countably infinite number of primitive recursive definitions of $f$ Yes, this is a homework question. My Work ...
Banach Tarski's user avatar
2 votes
2 answers
2k views

I stumbled across an exam question, and I am not sure how to prove that that all primitive recursive functions are computable. Is there a formal definition of this?
user48566's user avatar