We study encodings of the lambda-calculus into the pi-calculus in the unexplored case of calculi with non-determinism and failures. On the sequential side, we consider lambdafail, a new non-deterministic calculus in which intersection types control resources (terms); on the concurrent side, we consider spi, a pi-calculus in which non-determinism and failure rest upon a Curry-Howard correspondence between linear logic and session types. We present a typed encoding of lambdafail into spi and establish its correctness. Our encoding precisely explains the interplay of non-deterministic and fail-prone evaluation in lambdafail via typed processes in spi. In particular, it shows how failures in sequential evaluation (absence/excess of resources) can be neatly codified as interaction protocols.
翻译:我们研究在未探索的微积分和无确定性和失败的微积分中,羊羔计算器的编码。 在相继的一面,我们认为羊羔dafail是一种新的非确定性的微积分,在这种微积分中,交叉类型的控制资源(术语);在同时的一面,我们认为 spi, 一种不确定性和失败在于线性逻辑和会话类型之间的咖哩-榴弹通信中。我们把羊驼计算器输入spi,并确立其正确性。我们的编码准确地解释了通过Spi 中键入过程对羊驼进行非确定性和易失败性评价的相互作用。特别是,它表明如何将连续评估中的失败(资源缺乏/缺乏)精确地编成互动协议。