arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2201.12572cs.LO
收藏

逻辑伪代码:连接算法与证明

Logical Pseudocode: Connecting Algorithms with Proofs

Keehang Kwon, Hyung Joon Kwon

摘要:

证明(微积分,自然演绎)和命令式算法(伪码)是两个众所周知的共存概念。那他们是什么关系?我们的答案是,\[ imperative\ algorithms\ =\ proofs\ with\ cuts \]这一观察导致一个推广的伪码,我们称之为{ \it逻辑伪码}。它类似于可计算性逻辑\cite{Jap03,Jap08}的自然演绎证明。其中的每一个陈述都对应于自然演绎中的一个证明步骤。因此,相对于伪代码,它的优点是保证每个语句相对于初始规范是正确和安全的。它也可以被看作是可计算性逻辑网(\colw)的扩展,具有正向推理能力。

英文摘要:

Proofs (sequent calculus, natural deduction) and imperative algorithms (pseudocodes) are two well-known coexisting concepts. Then what is their relationship? Our answer is that \[ imperative\ algorithms\ =\ proofs\ with\ cuts \] This observation leads to a generalization to pseudocodes which we call {\it logical pseudocodes}. It is similar to natural deduction proof of computability logic\cite{Jap03,Jap08}. Each statement in it corresponds to a proof step in natural deduction. Therefore, the merit over pseudocode is that each statement is guaranteed to be correct and safe with respect to the initial specifications. It can also be seen as an extension to computability logic web (\colw) with forward reasoning capability.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑