paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Sharing proofs with predicative theories through universe-polymorphic elaboration

通过宇宙多态精化与直谓理论共享证明
LMCS vol.Volume 20, Issue 32024匹配度 3/10 · 论文属于形式化验证与类型系统中的证明翻译/证明工程,与用户关注的形式化验证方向有边缘关联;但其核心是宇宙多态精化与证明助手间翻译,不涉及 LLM/Agent、静态分析、浮点程序分析或贝叶斯程序分析,因此与当前研究画像匹配度较低。引用 0 inbox
Thiago Felicissimo, Frédéric Blanqui
crossref: 2026-09-10

AI 速览

一句话:提出宇宙多态精化方法,将非本质非直谓的证明翻译到直谓证明助手,并实现 Predicativize 工具。

形式证明开发耗时,共享已有证明可避免重复劳动。本文研究在非直谓性并非本质使用时,把基于非直谓逻辑的证明助手证明迁移到直谓逻辑的证明助手。作者提出一种精化变换,尽量将项精化为最一般的直谓宇宙多态项,因此需在宇宙层级的等式理论中求解合一问题。文中完整刻画了单个方程何时存在最一般合一子,并据此实现带约束推迟策略的部分合一算法。该翻译在 Predicativize 中实现,已半自动地把 Matita 库中多个非平凡开发翻译到 Agda,包括 Bertrand 假设和 Fermat 小定理,这些此前(据作者所知)尚不可用于 Agda。

问题
跨证明助手共享证明,特别是把非本质使用非直谓性的证明从非直谓系统翻译到直谓系统。
方法
通过宇宙多态精化,将项尽量泛化为直谓宇宙多态项,并求解宇宙层级等式合一;给出最一般合一子刻画与带约束推迟策略的部分算法。
评估
实现 Predicativize,从 Matita 半自动翻译多个非平凡开发到 Agda,包括 Bertrand 假设与 Fermat 小定理。
原文摘要(Abstract)

As the development of formal proofs is a time-consuming task, it is important to devise ways of sharing the already written proofs to prevent wasting time redoing them. One of the challenges in this domain is to translate proofs written in proof assistants based on impredicative logics to proof assistants based on predicative logics, whenever impredicativity is not used in an essential way. In this paper we present a transformation for sharing proofs with a core predicative system supporting prenex universe polymorphism. It consists in trying to elaborate each term into a predicative universe-polymorphic term as general as possible. The use of universe polymorphism is justified by the fact that mapping each universe to a fixed one in the target theory is not sufficient in most cases. During the elaboration, we need to solve unification problems in the equational theory of universe levels. In order to do this, we give a complete characterization of when a single equation admits a most general unifier. This characterization is then employed in a partial algorithm which uses a constraint-postponement strategy for trying to solve unification problems. The proposed translation is of course partial, but in practice allows one to translate many proofs that do not use impredicativity in an essential way. Indeed, it was implemented in the tool Predicativize and then used to translate semi-automatically many non-trivial developments from Matita's library to Agda, including proofs of Bertrand's Postulate and Fermat's Little Theorem, which (as far as we know) were not available in Agda yet.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@article{paperbot2726,
  title = {Sharing proofs with predicative theories through universe-polymorphic elaboration},
  author = {Thiago Felicissimo and Frédéric Blanqui},
  journal = {Logical Methods in Computer Science},
  volume = {Volume 20, Issue 3},
  year = {2024},
  doi = {10.46298/lmcs-20(3:23)2024}
}