从证明中提取全部Amb程序
Extracting total Amb programs from proofs
摘要:
我们提出了一个逻辑系统CFP(并发不动点逻辑),从它的证明可以提取不确定性和并发的程序,可证明的全部和正确的证明公式。CFP是一个直觉一阶逻辑,具有由两个命题算子A扩展的归纳和上归纳定义,||B(限制,加强蕴涵B -> A)和$\ddownarrow(A)$(完全并发)。提取的目标是一个具有构造函数和由构造函数Amb(用于麦卡锡的amb)扩展的递归的λ演算,它被解释为操作上全局天使般的选择。提取的程序的正确性证明通过中间域理论指称语义。我们证明了我们的系统的有用性,通过提取一个并发程序,将无限的格雷码到有符号的数字表示。我们的系统的一个值得注意的特点是,限制和并发性的证明规则涉及到经典的排中律的变体,如果没有Amb,这些变体在计算上是不可解释的。
英文摘要:
We present a logical system CFP (Concurrent Fixed Point Logic) from whose proofs one can extract nondeterministic and concurrent programs that are provably total and correct with respect to the proven formula. CFP is an intuitionistic first-order logic with inductive and coinductive definitions extended by two propositional operators, A || B (restriction, a strengthening of the implication B -> A) and $\ddownarrow(A)$ (total concurrency). The target of the extraction is a lambda calculus with constructors and recursion extended by a constructor Amb (for McCarthy's amb) which is interpreted operationally as globally angelic choice. The correctness of extracted programs is proven via an intermediate domain-theoretic denotational semantics. We demonstrate the usefulness of our system by extracting a concurrent program that translates infinite Gray code into the signed digit representation. A noteworthy feature of our system is that the proof rules for restriction and concurrency involve variants of the classical law of excluded middle that would not be interpretable computationally without Amb.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。