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

线性上下文中的程序等价性

Program Equivalence in Linear Contexts

Yuxin Deng, Yu Zhang

摘要:

线性环境中的程序等价性是程序设计语言中的一个重要问题。然而,现有的技术,如那些基于互模拟和逻辑关系的目标只在上下文等价在通常的(非线性)功能语言,并未能捕捉非平凡的等价程序在线性上下文中,特别是当非确定性是存在的。我们提出了线性上下文等价的概念,正式表征这样的程序等价,以及一种新的和一般的方法来研究它在高阶语言,标记的过渡系统的基础上专门设计的功能语言。我们证明了线性语境对等确实与痕迹对等相吻合--它是健全的和完整的。我们说明我们的技术在确定性(PCF的线性版本)和非确定性(线性PCF在莫吉的框架)的功能语言。

英文摘要:

Program equivalence in linear contexts, where programs are used or executed exactly once, is an important issue in programming languages. However, existing techniques like those based on bisimulations and logical relations only target at contextual equivalence in the usual (non-linear) functional languages, and fail in capturing non-trivial equivalent programs in linear contexts, particularly when non-determinism is present. We propose the notion of linear contextual equivalence to formally characterize such program equivalence, as well as a novel and general approach to studying it in higher-order languages, based on labeled transition systems specifically designed for functional languages. We show that linear contextual equivalence indeed coincides with trace equivalence - it is sound and complete. We illustrate our technique in both deterministic (a linear version of PCF) and non-deterministic (linear PCF in Moggi's framework) functional languages.

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

↑