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

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

计算机科学 > 计算机科学中的逻辑

arXiv:2403.08173 (cs)
[提交于 2024年3月13日 (v1),最后修订于 2025年8月14日 (此版本, v3)]

标题:A bargain for mergesorts -- How to prove your mergesort correct and stable, almost for free

作者:Cyril Cohen, Kazuhiko Sakaguchi
查看论文《A bargain for mergesorts -- How to prove your mergesort correct and stable, almost for free》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:We present a novel characterization of stable mergesort functions using relational parametricity, and show that it implies the functional correctness of mergesort. As a result, one can prove the correctness of several variations of mergesort (e.g., top-down, bottom-up, tail-recursive, non-tail-recursive, smooth, and non-smooth mergesorts) by proving the characteristic property for each variation. Thanks to our characterization and the parametricity translation, we deduced the correctness results, including stability, of various implementations of mergesort for lists, including highly optimized ones, in the Rocq Prover (formerly the Coq Proof Assistant).
评论: Extended version of the ICFP'25 paper
主题: 计算机科学中的逻辑 (cs.LO); 数据结构与算法 (cs.DS); 程序设计语言 (cs.PL)
引用方式: arXiv:2403.08173 [cs.LO]
  (或者 arXiv:2403.08173v3 [cs.LO] 对于此版本)
  https://doi.org/10.48550/arXiv.2403.08173
期刊参考: Proc. ACM Program. Lang. 9, ICFP, Article 236 (August 2025)
相关 DOI: https://doi.org/10.1145/3747505

提交历史

来自:Kazuhiko Sakaguchi
[v1] 2024年3月13日 星期三 01:54:33 UTC
[v2] 2025年6月13日 星期五 14:02:11 UTC
[v3] 2025年8月14日 星期四 13:16:30 UTC
全文链接:

访问论文:

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

当前浏览上下文:

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

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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