如何证明加法是原始递归?
我如何在数字示例中表明加法是原始递归的。
我通过证明理解了为什么它是原始递归的,但我只是无法想象它如何与数字进行原始递归。
How do i show in an example with numbers that addition is primitve recursive.
I understand why it is primitive recursive through the proof but I just can't imagine how it works primitive recursively with numbers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为了证明函数 φ 是原始递归函数,只需提供原始递归函数的有限序列,以常量、后继函数和投影函数开始,并以 φ 结束,这样每个函数都是通过组合和原始递归从先前的函数构造的。定义原始递归加法函数
,其中
P[m/n]
是返回其n
个参数的m
投影函数。 >n >= 1 和n <= m
。为了证明add
是原始递归,我们必须从基本函数构造φ
和ψ
:函数
φ
由原始递归函数的公理提供。函数ψ
由步骤(4)中的原始递归函数S
和P[3/3]
组合而成。最后,由步骤(6)中的φ
和ψ
通过原语递归构造出函数add
。要了解如何通过原始递归函数(例如add)计算值,只需在适当的情况下系统地替换函数定义的右侧,然后进行简化即可。我在下面的例子中折叠了组合的替换和简化:不清楚你到底在问什么,所以我给出了加法的原始递归定义的一般概述,加法是原始递归的证明,并提供了一个示例计算。如果您仍然不清楚,对原始递归函数的小值执行计算可能会有所帮助。
To show that a function
φ
is primitive recursive, it suffices to provide a finite sequence of primitive recursive functions beginning with the constant, successor and projection functions and terminating withφ
such that each function is constructed from prior functions by composition and primitive recursion. The primitive recursive addition function is definedwhere
P[m/n]
is them
-ary projection function returning itsn
th argument forn >= 1
andn <= m
. To demonstrate thatadd
is primitive recursive, we must constructφ
andψ
from the basic functions:The function
φ
is provided by the axioms of primitive recursive functions. The functionψ
is constructed by composition from the primitive recursive functionsS
andP[3/3]
in step (4). Finally, the functionadd
is constructed fromφ
andψ
in step (6) by primitive recursion. To see how a value is computed by a primitive recursive function such asadd
, it suffices to systematically substitute the right-hand sides of function definitions where appropriate, then simplify. I've collapsed substitution and simplification of composition in the following example:It's unclear precisely what you're asking, so I gave a general overview of the primitive recursive definition of addition, the proof that addition is primitive recursive, and provided an example computation. If you're still unclear, it might be helpful to perform computations on small values of primitive recursive functions.