ML5的一元形式化
A Monadic Formalization of ML5
摘要:
ML 5是一种用于空间分布式计算的程序设计语言,基于与模态逻辑S5的Curry-Howard对应关系。尽管是通过与S5模态逻辑的对应关系来设计的,但ML 5程序设计语言在几个方面与该逻辑不同。在本文中,我们解释ML 5和S5之间的这些差异,通过将ML 5翻译成稍微不同的逻辑:直觉S5扩展了一个松散的模态,将有效的计算封装在一个单子中。这种翻译既解释了现有的ML 5设计,又提出了一些简化和概括。我们已经在Agda证明助手中正式确定了我们的翻译。我们没有将lax S5形式化为一个证明理论,而是将它作为依赖类型宿主语言中的一个论域(universe)来进行\emph{embed},并通过实现模态逻辑的Kripke语义来消除论域。这种表示技术节省了我们为逻辑定义证明理论并证明其正确的工作,并且还允许我们继承元语言的等式理论,该理论可以用于证明语义验证ML 5的操作语义。
英文摘要:
ML5 is a programming language for spatially distributed computing, based on a Curry-Howard correspondence with the modal logic S5. Despite being designed by a correspondence with S5 modal logic, the ML5 programming language differs from the logic in several ways. In this paper, we explain these discrepancies between ML5 and S5 by translating ML5 into a slightly different logic: intuitionistic S5 extended with a lax modality that encapsulates effectful computations in a monad. This translation both explains the existing ML5 design and suggests some simplifications and generalizations. We have formalized our translation within the Agda proof assistant. Rather than formalizing lax S5 as a proof theory, we \emph{embed} it as a universe within the the dependently typed host language, with the universe elimination given by implementing the modal logic's Kripke semantics. This representation technique saves us the work of defining a proof theory for the logic and proving it correct, and additionally allows us to inherit the equational theory of the meta-language, which can be exploited in proving that the semantics validates the operational semantics of ML5.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。