RocqStar: Leveraging Similarity-driven Retrieval and Agentic Systems for Rocq generation

πŸ“… 2025-05-28
πŸ“ˆ Citations: 0
✨ Influential: 0
πŸ“„ PDF
πŸ€– AI Summary
To address the low proof-generation efficiency, weak premise selection, and inadequate planning inference in interactive theorem proving with Rocq, this paper proposes a retrieval-augmented multi-agent framework. Methodologically: (1) we introduce the first self-attention-based theorem embedding model for semantic-aware similarity retrieval; (2) we design a multi-agent debate mechanism to collaboratively select proof strategies and premises during planning; and (3) we construct a stage-wise agent architecture tailored to Rocq’s linguistic features, decoupling retrieval, planning, and generation. Experiments demonstrate a 28% performance improvement on Rocq proof generation over baselines; ablation studies confirm significant contributions from each component; and the multi-agent debate mechanism is empirically validated as highly effective for formal proof synthesis.

Technology Category

Application Category

πŸ“ Abstract
Interactive Theorem Proving was repeatedly shown to be fruitful combined with Generative Artificial Intelligence. This paper assesses multiple approaches to Rocq generation and illuminates potential avenues for improvement. We highlight the importance of thorough premise selection for generating Rocq proofs and propose a novel approach, leveraging retrieval via 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 show the use of multi-agent debate on the planning stage of proof synthesis.
Problem

Research questions and friction points this paper is trying to address.

Improving Rocq proof generation via similarity-driven retrieval
Enhancing premise selection for effective Rocq proof synthesis
Multi-agent debate for planning-stage proof optimization
Innovation

Methods, ideas, or system contributions that make the work stand out.

Self-attentive embedder model for retrieval
Multi-stage agentic system design
Multi-agent debate for proof planning
πŸ”Ž Similar Papers
No similar papers found.
N
Nikita Khramov
JetBrains Research, Germany; Constructor University Bremen, Germany
A
Andrei Kozyrev
JetBrains Research, Germany; Constructor University Bremen, Germany
G
Gleb V. Solovev
JetBrains Research, Germany; Constructor University Bremen, Germany
Anton Podkopaev
Anton Podkopaev
JetBrains Research, Constructor University Bremen
Programming languagesfunctional programmingverificationconcurrency