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
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
0 votes
1 answer
123 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
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
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
14 votes
0 answers
307 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
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
203 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
3 votes
2 answers
376 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
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
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
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
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
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
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
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
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
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
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
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
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
625 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
-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
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
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