Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Prove that the function computing the product ( 1 2 + 1 ) * ( 2 2 + 1 ) * ( 3 2 +
Prove that the function computing the product
n
is primitive recursive. This proof should follow the same pattern that we used in class to prove that addition and multiplication are primitive recursive:
You start with a dot expression
First you write a forloop corresponding to this function
Then you describe this forloop in mathematical terms
Then, to prepare for a match with the general expression for primitive recursion, you rename the function to f and the parameters to n m
Then you write down the general expression of primitive recursion for the corresponding k
Then you match: find g and h for which the specific case of primitive recursion will be exactly the functions corresponding to initialization and to what is happening inside the loop
Then, you get a final expression for the function
n
that proves that this function is primitive recursive, ie that it can be formed from pi ki and sigma by composition and primitive recursion.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started