Logo image
Gpass: A Goal-Adaptive Neural Theorem Prover Based on Coq for Automated Formal Verification
Conference proceeding

Gpass: A Goal-Adaptive Neural Theorem Prover Based on Coq for Automated Formal Verification

Yizhou Chen, Zeyu Sun, Guoqing Wang, Dan Hao and IEEE COMPUTER SOC
Proceedings of the IEEE/ACM 47th International Conference on Software Engineering, pp.29-41
ACM Conferences
ICSE '25: IEEE/ACM 47th International Conference on Software Engineering
27/04/2025

Abstract

Software and its engineering Software and its engineering -- Software creation and management Software and its engineering -- Software creation and management -- Software verification and validation Software and its engineering -- Software creation and management -- Software verification and validation -- Formal software verification Software and its engineering -- Software organization and properties Software and its engineering -- Software organization and properties -- Software functional properties Software and its engineering -- Software organization and properties -- Software functional properties -- Formal methods Software and its engineering -- Software organization and properties -- Software functional properties -- Formal methods -- Software verification Theory of computation Theory of computation -- Logic Theory of computation -- Logic -- Logic and verification Theory of computation -- Semantics and reasoning Theory of computation -- Semantics and reasoning -- Program reasoning Theory of computation -- Semantics and reasoning -- Program reasoning -- Program verification
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.

Metrics

1 Record Views

Details

Logo image