RocqStar: Leveraging Similarity-driven Retrieval and Agentic Systems for Rocq generation
Abstract
Interactive Theorem Proving was repeatedly shown to be fruitful when combined with Generative Artificial Intelligence. This paper assesses multiple approaches to Rocq generation and illuminates potential avenues for improvement. We identify retrieval-based premise selection as a central component of effective Rocq proof generation and propose a novel approach based on a self-attentive embedder model. The evaluation of the designed approach shows up to 28% relative increase of the generator's performance. We tackle the problem of writing Rocq proofs using a multi-stage agentic system, tailored for formal verification, and demonstrate its high effectiveness. We conduct an ablation study and demonstrate that incorporating multi-agent debate during the planning stage increases the proof success rate by 20% overall and nearly doubles it for complex theorems, while the reflection mechanism further enhances stability and consistency.
Fields of Study & Subjects
Logic
programming
and type systems
Model-Driven Software Engineering Techniques
Scientific Computing and Data Management
Publication details
- Journal / source
- Proceedings of the 25th International Conference on Autonomous Agents and Multiagent Systems
- Publisher
- International Foundation for Autonomous Agents and Multiagent Systems
- Publication date
- 24 May 2026
- Language
- EN