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

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

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

arXiv:2502.20496 (cs)
[提交于 2025年2月27日 (v1),最后修订于 2025年12月2日 (此版本, v4)]

标题:Abstraction Functions as Types

作者:Harrison Grodin, Runming Li, Robert Harper
查看论文《Abstraction Functions as Types》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Software development depends on the use of libraries whose public specifications inform client code and impose obligations on private implementations; it follows that verification at scale must also be modular, preserving such abstraction. Hoare's influential methodology uses abstraction functions to demonstrate the coherence between such concrete implementations and their abstract specifications. However, the Hoare methodology relies on a conventional separation between implementation and specification, providing no linguistic support for ensuring that this convention is obeyed. This paper proposes a synthetic account of Hoare's methodology within univalent dependent type theory by encoding the data of abstraction functions within types themselves. This is achieved via a phase distinction, which gives rise to a gluing construction that renders an abstraction function as a type and a pair of modalities that fracture a type into its concrete and abstract parts. A noninterference theorem governing the phase distinction characterizes the modularity guarantees provided by the theory. This approach scales to verification of cost, allowing the analysis of client cost relative to a cost-aware specification. A monadic sealing effect facilitates modularity of cost, permitting an implementation to be upper-bounded by its specification in cases where private details influence observable cost. The resulting theory supports modular development of programs and proofs in a manner that hides private details of no concern to clients while permitting precise specifications of both the cost and behavior of programs.
主题: 程序设计语言 (cs.PL)
引用方式: arXiv:2502.20496 [cs.PL]
  (或者 arXiv:2502.20496v4 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.2502.20496
相关 DOI: https://doi.org/10.1145/3776673

提交历史

来自:Harrison Grodin
[v1] 2025年2月27日 星期四 20:02:17 UTC
[v2] 2025年7月11日 星期五 01:51:12 UTC
[v3] 2025年10月23日 星期四 22:14:12 UTC
[v4] 2025年12月2日 星期二 04:35:17 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

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

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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