一句话:提出基于 Coq 的目标自适应神经定理证明器 Gpass,显著提升自动形式验证中的定理证明性能。
形式验证依赖人工编写证明脚本,耗时且费力;现有自动定理证明器难以处理长证明步骤、对齐 Coq 程序组件与证明目标,且效率不足。作者提出基于深度学习的目标自适应神经定理证明器 Gpass:用多滑动窗口序列编码器扫描历史策略并提供当前步骤信息,用目标自适应特征融合模块对齐推理与目标约束,并基于损失值与斜率选择多样参数集以探索证明策略。在 CoqGym 基准上,Gpass 比最相关工作多证明 11.03%–96.37% 的定理;与 CoqHammer 互补合计证明 3,774 个定理,达到当时最佳,效率优化还以六分之一参数集超过 Diva。
Formal verification is a crucial means to assure software quality. Regrettably, the manual composition of verification scripts proves to be both laborious and time-consuming. In response, researchers have put forth automated theorem prover approaches; however, these approaches still grapple with several limitations. These limitations encompass insufficient handling of lengthy proof steps, difficulty in aligning the various components of a Coq program with the requirements and constraints of the proof goal, and inefficiencies. To surmount these limitations, we present Gpass, a goal-adaptive neural theorem prover based on deep learning technology. Firstly, we design a unique sequence encoder for Gpass that completely scans previous proof tactics through multiple sliding windows and provides information related to the current proof step. Secondly, Gpass incorporates a goal-adaptive feature integration module to align the reasoning process with the requirements of the proof goal. Finally, we devise a parameter selection method based on loss values and loss slopes to procure parameter sets with diverse distributions, thereby facilitating the exploration of various proof tactics. Experimental results demonstrate that Gpass attains better performance on the extensive CoqGym benchmark and proves 11.03%-96.37% more theorems than the prior work most closely related to ours. We find that the orthogonality between Gpass and CoqHammer proves their complementary capabilities, and together they prove a total of 3,774 theorems, which is state-of-the-art performance. In addition, we propose an efficiency optimisation approach that allows Gpass to achieve performance beyond Diva at one-sixth of the parameter sets.
DOI 原文 ·
@inproceedings{paperbot8876,
title = {Gpass: A Goal-Adaptive Neural Theorem Prover Based on Coq for Automated Formal Verification},
author = {Yizhou Chen and Zeyu Sun and Guoqing Wang and Dan Hao},
booktitle = {ICSE},
year = {2025},
doi = {10.1109/icse55347.2025.00116}
}