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

Janus的可逆语义

A Reversible Semantics for Janus

Olas Team, University of Bologna \& Inria - Université Côte d’Azur, Bologna, Italy VRAIN, Universitat Polit\`ecnica de Val\`encia, Valencia, Spain

Ivan Lanese, Germán Vidal

AI总结:

本文提出了一种可逆的小步语义,用于Janus编程语言,解决了原有语义不可逆的问题,同时保持等价性。

摘要:

Janus是可逆编程语言的典范。确实,Janus程序可以正向和反向执行。然而,其当前的小步语义(例如用于调试或作为并发原语扩展的基础)不可逆,因为在正向计算时会丢失信息。例如,它不满足循环引理,即任何减少都有逆,这是进程演算中可逆性的一个主要属性,其中小步语义通常被使用。本文提出了一种新的小步语义,它实际上是可逆的,同时与之前的语义等价。它涉及定义基于“程序计数器”的高阶编程语言语义的非平凡挑战。

英文摘要:

Janus is a paradigmatic example of a reversible programming language. Indeed, Janus programs can be executed backwards as well as forwards. However, its current small-step semantics (useful, e.g., for debugging or as a basis for extensions with concurrency primitives) is not reversible, since it loses information while computing forwards. E.g., it does not satisfy the Loop Lemma, stating that any reduction has an inverse, a main property of reversibility in process calculi, where a small-step semantics is commonly used. We present here a novel small-step semantics which is actually reversible, while remaining equivalent to the previous one. It involves the non-trivial challenge of defining a semantics based on a "program counter" for a high-level programming language.

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

↑