Janus is a paradigmatic example of reversible programming language. Indeed, Janus programs can be executed backwards as well as forwards. However, its 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 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.


翻译:Janus是可逆编程语言的典型范例。实际上,Janus程序既可正向执行,也可反向执行。然而,其小步语义(例如用于调试或作为并发原语扩展的基础)并非可逆,因为在正向计算过程中会丢失信息。例如,它不满足"循环引理"——该引理声明任何规约都存在逆规约,这是进程演算中可逆性的核心性质,而小步语义在进程演算中被广泛使用。本文提出了一种真正可逆的新型小步语义,同时保持与原有语义的等价性。这涉及为高级编程语言定义基于"程序计数器"的语义这一非平凡挑战。

0
下载
关闭预览

相关内容

从图像去噪到成像逆问题的正则化:综述
专知会员服务
13+阅读 · 2025年9月4日
【牛津大学博士论文】可微分编程的结构基础,176页pdf
专知会员服务
26+阅读 · 2023年8月20日
专知会员服务
10+阅读 · 2021年10月17日
逆优化: 理论与应用
专知会员服务
38+阅读 · 2021年9月13日
最新《生成式对抗网络GAN逆转》综述论文,22页pdf
专知会员服务
40+阅读 · 2021年1月19日
【机器推理可解释性】Machine Reasoning Explainability
专知会员服务
35+阅读 · 2020年9月3日
「强化学习可解释性」最新2022综述
专知
12+阅读 · 2022年1月16日
一文搞懂反向传播
机器学习与推荐算法
18+阅读 · 2020年3月12日
DL | 语义分割综述
机器学习算法与Python学习
58+阅读 · 2019年3月13日
可视化理解四元数,愿你不再掉头发
计算机视觉life
31+阅读 · 2019年1月2日
换个角度看GAN:另一种损失函数
机器之心
16+阅读 · 2019年1月1日
LibRec 精选:推荐的可解释性[综述]
LibRec智能推荐
10+阅读 · 2018年5月4日
一文简述ResNet及其多种变体
机器之心
23+阅读 · 2018年4月22日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
VIP会员
相关资讯
「强化学习可解释性」最新2022综述
专知
12+阅读 · 2022年1月16日
一文搞懂反向传播
机器学习与推荐算法
18+阅读 · 2020年3月12日
DL | 语义分割综述
机器学习算法与Python学习
58+阅读 · 2019年3月13日
可视化理解四元数,愿你不再掉头发
计算机视觉life
31+阅读 · 2019年1月2日
换个角度看GAN:另一种损失函数
机器之心
16+阅读 · 2019年1月1日
LibRec 精选:推荐的可解释性[综述]
LibRec智能推荐
10+阅读 · 2018年5月4日
一文简述ResNet及其多种变体
机器之心
23+阅读 · 2018年4月22日
相关基金
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员