跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 程序设计语言

arXiv:2602.03033 (cs)
[提交于 2026年2月3日 (v1),最后修订于 2026年5月18日 (此版本, v2)]

标题:Contextual MetaML: Syntax and Full Abstraction

作者:Haoxuan Yin, Andrzej S. Murawski, C.-H. Luke Ong
查看论文《Contextual MetaML: Syntax and Full Abstraction》的 PDF
查看中文 PDF 查看原文 PDF EasyResearch 阅读
摘要:MetaML-style metaprogramming languages allow programmers to construct, manipulate and run code. In the presence of higher-order references for code, ensuring type safety is challenging, as free variables can escape their binders. In this paper, we present Contextual MetaML, \textit{the first metaprogramming language that supports storing and running open code under a strong type safety guarantee}. The type system utilises contextual modal types to track and reason about free variables in code explicitly. A crucial concern in metaprogramming-based program optimisations is whether the optimised program preserves the meaning of the original program. Addressing this question requires a notion of program equivalence and techniques to reason about it. In this paper, we provide a semantic model that captures contextual equivalence for Contextual MetaML, establishing \textit{the first full abstraction result for an imperative MetaML-style language}. Our model is based on traces derived via operational game semantics, where the meaning of a program is modelled by its possible interactions with the environment. We also establish a novel closed instances of use theorem that accounts for both call-by-value and call-by-name closing substitutions.
评论: 43 pages, 6 figures
主题: 程序设计语言 (cs.PL)
引用方式: arXiv:2602.03033 [cs.PL]
  (或者 arXiv:2602.03033v2 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.2602.03033

提交历史

来自:Haoxuan Yin
[v1] 2026年2月3日 星期二 03:01:40 UTC (87 KB)
[v2] 2026年5月18日 星期一 10:31:33 UTC (287 KB)
全文链接:

访问论文:

  • 查看中文 PDF
  • 查看原文 PDF
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.PL
< 上一篇   |   下一篇 >
最新 | 近期 | 2026-05
切换浏览方式为:
cs

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站