# ProofCoder: Continuous Reasoning for Automated Software Verification

ProofCoder: 자동화된 소프트웨어 검증을 위한 연속 추론

Martim Afonso, Inês Lynce, Maurizio Morisio, João F. Ferreira · arXiv · 2026년 11월 10일

- **연구 문제** 기존 LLM 기반 증명 합성은 고정된 tactic 생성 루프에 의존해 탐색과 수리의 자율성이 제한됩니다.
- **연구 방법** ProofCoder는 증명 스크립트를 편집 가능한 산출물로 다루며, 각 도구 호출 전에 자연어 추론으로 상태를 진단하고 접두사를 보존한 국소 수리를 수행합니다.
- **주요 결과** SV-COMP 200개 부분 집합에서 gpt-6-sol 기준 ProofCoder-WP는 120개, AutoRocq는 94개를 증명했으며 연속 추론과 국소 수리의 제거는 성공률을 낮췄습니다.

## 기존 LLM 증명 합성의 한계

대화형 정리 증명기로 소프트웨어를 검증하면 강한 정확성 보장을 얻을 수 있지만, 증명 스크립트를 만드는 일은 여전히 많은 노력과 전문성을 요구합니다. 최근 대규모 언어 모델을 활용한 증명 합성이 유망하지만, 많은 기존 방법은 모델을 고정된 tactic 생성 루프 안에 두고 주변 시스템이 전제 검색, 증명 상태 관리, 백트래킹을 통제합니다. 이 논문은 이러한 제약을 줄여 모델이 증명 탐색 전반에서 연속적으로 추론하도록 하는 것이 어떤 효과를 내는지 묻습니다.

## ProofCoder의 작업 방식과 연속 추론

ProofCoder는 Rocq 증명 세션 안에서 증명 스크립트를 편집 가능한 산출물로 다룹니다. 에이전트는 check\_state, call\_command, read\_proof\_file 같은 읽기 전용 도구로 상태와 맥락을 얻고, edit\_proof 하나로만 스크립트를 수정합니다. edit\_proof는 조각을 끝에 덧붙이거나, 지정한 인덱스 n까지의 접두사를 보존하고 그 뒤 접미사를 버린 뒤 새 조각을 추가합니다. 각 도구 호출 전에 모델은 현재 증명 상태, 목표, 의도한 행동, 이전 실패에 대한 진단을 자연어로 기록합니다. 이 연속 추론은 다음 tactic을 고르는 것뿐 아니라 어느 접두사를 유지하고 어디서 수정할지를 정하는 역할을 합니다.

![Figure 1: Overview of ProofCoder’s workflow](https://refivu.com/papers/48a440da-6a56-490b-ab75-1e1ff5df8362/figures/figure-1e0507abaee37673769c4e7a16ae4373.png?thumb=512)

**Fig. 1** . Overview of ProofCoder’s workflow.

[원문](https://arxiv.org/abs/2611.14106v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Martim Afonso, Inês Lynce, Maurizio Morisio, João F. Ferreira · ProofCoder: Continuous Reasoning for Automated Software Verification · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

## SV-COMP와 Verker에서의 주요 비교

SV-COMP 200개 보조정리에서 claude-sonnet-4.5를 사용할 때 ProofCoder-WP는 113개를 증명해 AutoRocq의 86개보다 27개 많았습니다. gpt-6-sol에서는 ProofCoder-WP가 120개, ProofCoder-TL이 119개를 증명해 AutoRocq의 94개보다 각각 26개, 25개 많았습니다. Verker 80개 보조정리에서도 gpt-6-sol 기준 ProofCoder-WP는 48개로 AutoRocq의 38개보다 많았습니다. 이 결과는 SV-COMP 부분 집합의 선택 조건과 두 모델에서 얻은 것이며, 전체 AutoRocq 벤치마크에 대한 결론으로 확대되지 않습니다.

![Table 1: Pass rates, average cost, and average time on 200 SV-COMP lemmas. The last three columns are solved lemmas of each obligation type (49 assert reachabi…](https://refivu.com/papers/48a440da-6a56-490b-ab75-1e1ff5df8362/figures/figure-8f8d5360b30816ab5642c8e5c38e95ef.png?thumb=512)

**Table 1** . Pass rates, average cost, and average time on 200 SV-COMP lemmas. The last three columns are solved lemmas of each obligation type (49 assert reachability, 30 signed int overflow, and 121 loop invariant).

[원문](https://arxiv.org/abs/2611.14106v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Martim Afonso, Inês Lynce, Maurizio Morisio, João F. Ferreira · ProofCoder: Continuous Reasoning for Automated Software Verification · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

## 연속 추론과 국소 수리의 절제 결과

gpt-6-sol 기준 절제 실험에서 연속 추론을 제거한 ProofCoder-TL-NoCR은 SV-COMP 성공 보조정리를 119에서 115로 줄였고, Verker에서는 46에서 40으로 줄였습니다. ProofCoder-WP에서 국소 수리를 실패 시 처음부터 다시 시작하는 방식으로 바꾼 ProofCoder-WP-Reset은 SV-COMP에서 120에서 81로, Verker에서 48에서 24로 떨어졌습니다. 이 결과는 제거한 구성요소를 유지하는 것이 이 설정에서 도움이 되었다는 관찰이며, 모든 조건에서 보편적 인과를 증명하지 않습니다.

![Table 3: ProofCoder ablations withgpt-6-sol: proof success, cost, and time on SV-COMP and Verker](https://refivu.com/papers/48a440da-6a56-490b-ab75-1e1ff5df8362/figures/figure-c786bf9d25fb9bfa8de24bda5989b6f8.png?thumb=512)

**Table 3** . ProofCoder ablations withgpt-6-sol: proof success, cost, and time on SV-COMP and Verker.

[원문](https://arxiv.org/abs/2611.14106v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Martim Afonso, Inês Lynce, Maurizio Morisio, João F. Ferreira · ProofCoder: Continuous Reasoning for Automated Software Verification · 원문 그림 인용 · 원본 PDF 11쪽에서 그림 영역을 추출했습니다.

## 백트래킹 빈도와 깊이

백트래킹 분석에서 백트래킹 깊이는 현재 증명 중 폐기된 비율로 정의됩니다. gpt-6-sol 구성에서 ProofCoder-TL은 SV-COMP에서 평균 0.45회 백트래킹하여 연속 추론을 제거한 두 절제 변형보다 약 4~6배 적게 백트래킹합니다. 제거 변형은 실패한 실행에서 백트래킹이 더 자주 나타나는 경향을 보였습니다. 이 관찰은 gpt-6-sol 설정의 도구 호출 행태에 대한 것입니다.

![Figure 3: Comparison of backtrack depth and frequency across tactic-level approaches](https://refivu.com/papers/48a440da-6a56-490b-ab75-1e1ff5df8362/figures/figure-27cc06cd892ba86ffac80fd7034f6ff6.png?thumb=512)

**Fig. 3** . Comparison of backtrack depth and frequency across tactic-level approaches.

[원문](https://arxiv.org/abs/2611.14106v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Martim Afonso, Inês Lynce, Maurizio Morisio, João F. Ferreira · ProofCoder: Continuous Reasoning for Automated Software Verification · 원문 그림 인용 · 원본 PDF 12쪽에서 그림 영역을 추출했습니다.

## Whole-proof와 tactic-level 생성 세분성

두 생성 세분성은 SV-COMP와 Verker에서 성공률이 최대 3개 보조정리 차이로 비슷하게 나타났습니다. Whole-proof 구성은 비용이 더 낮았지만, 같은 증명 목표에서도 증명 스크립트의 유사도는 중간 수준이었습니다. 이 결과는 세분성이 성공률보다 탐색과 수리 방식에 더 큰 영향을 준다는 저자 해석을 지지하며, 다른 모델이나 과제로 일반화하지는 않습니다.

## 적용 범위와 한계

ground-truth 증명이 없어 일부 목표는 증명 불가능하거나 현재 자동화의 능력 밖일 수 있습니다. ProofCoder와 AutoRocq는 서로 다른 에이전트 프레임워크를 사용하므로 프레임워크 차이도 성능 비교에 영향을 줄 수 있습니다.

## 논문 정보

- **저자**: Martim Afonso, Inês Lynce, Maurizio Morisio, João F. Ferreira
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 11월 10일
- **등록일**: 2026년 11월 11일
- **수정일**: 2026년 11월 10일
- **버전**: v1
- **arXiv**: 2611.14106
- **분류**: cs.SE · cs.AI
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2611.14106v1) · [원문 PDF ↗](https://arxiv.org/pdf/2611.14106v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Formal verification using proof assistants provides strong correctness guarantees for software, but constructing proofs remains labor-intensive and requires significant expertise. Recent approaches based on large language models (LLMs) have shown promise in automating proof synthesis. However, these approaches typically constrain the model to a rigid tactic-generation loop, in which the surrounding system controls premise retrieval, proof-state management, and backtracking. We introduce ProofCoder, an agentic proof-synthesis system for Rocq that approaches theorem proving from a coding-agent perspective. Rather than generating tactics within a fixed loop, ProofCoder reasons continuously throughout proof search and uses proof-assistant feedback to decide when to gather additional information, inspect proof states, revise previously generated proof fragments, or backtrack to an earlier point in the proof. This allows it to iteratively construct, repair, and refine proofs, at either tactic-level or whole-proof granularity. We evaluate ProofCoder on 280 challenging verification tasks from the AutoRocq Benchmark. On the best-performing configurations, ProofCoder increases proof success from 47% to 60% over the state-of-theart AutoRocq system, corresponding to a 27.7% relative improvement at approximately half the cost. Our ablations identify continuous reasoning as a key design choice: without it, the agent solves fewer lemmas at substantially higher cost, backtracks four to six times more often, and more frequently discards its own revisions. Whole-proof and tactic-level generation achieve similar success rates but follow distinct search and repair strategies. These results suggest that effective automated software verification requires more than improved tactic selection: continuous reasoning and feedback-guided proof revision are critical ingredients for robust proof synthesis.

## 원문 인용

Martim Afonso, Inês Lynce, Maurizio Morisio, João F. Ferreira (2026). ProofCoder: Continuous Reasoning for Automated Software Verification. arXiv:2611.14106v1. https://arxiv.org/abs/2611.14106v1

**BibTeX**

```
@misc{afonso2026proofcoder,
  title = {{ProofCoder: Continuous Reasoning for Automated Software Verification}},
  author = {Martim Afonso and Inês Lynce and Maurizio Morisio and João F. Ferreira},
  year = {2026},
  eprint = {2611.14106},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.14106v1}
}
```

## 이 논문의 용어

- [Jaccard Similarity](https://refivu.com/terms/bbcb74c02bac-jaccard-similarity)
- [Model Context Protocol](https://refivu.com/terms/ea3bda424741-model-context-protocol)
- [PaLM](https://refivu.com/terms/366d69ef11ed-palm)

## 다른 논문 해설

- [Sable: A Small-Field Sumcheck Argument for Bit-Exact Inference of Large Language Models](https://refivu.com/papers/c9634c12-f842-44ee-beb7-6b7a10ebcb75-sable-a-small-field-sumcheck-argument-for-bit.md)
- [Linear Probes to Bayesian Manifolds: Geometry of Arithmetic in Large Language Models](https://refivu.com/papers/3a9ec079-bad6-4e92-972e-4cfe8b21529a-linear-probes-to-bayesian-manifolds-geometry-of-arithmetic.md)
- [FedVP: Federated Learning across Heterogeneous Models by Pooling Locally Trained Verifiers](https://refivu.com/papers/38096ded-32b2-4574-a910-368d1783f98b-fedvp-federated-learning-across-heterogeneous-models-by.md)
- [Do Language Models Feel the Sentiment? Investigating Emotion Vectors](https://refivu.com/papers/05521fd6-229d-4930-b596-67bd22b32904-do-language-models-feel-the-sentiment-investigating-emotion.md)
- [Benchmarking LLM Next-Step Recommendations with Knowledge Space Theory](https://refivu.com/papers/c00fbc04-958e-425f-ab35-8f16a51c4a0a-benchmarking-llm-next-step-recommendations-with-knowledge.md)
- [Closing the BF16-FP16 Convergence Speed Gap in RL Post-Training with Stochastic Rounding](https://refivu.com/papers/f9fb9b28-f396-4ff4-ba93-e6dfad9e0f45-closing-the-bf16-fp16-convergence-speed-gap-in.md)
- [Rich feature hierarchies for accurate object detection and semantic segmentation](https://refivu.com/papers/0abb1ab7-a65a-475d-b57e-af628d8620f3-rich-feature-hierarchies-for-accurate-object-detection-and.md)
- [GloVe: Global Vectors for Word Representation](https://refivu.com/papers/d4308808-78ba-4fc7-a70c-6e67f906e337-glove-global-vectors-for-word-representation.md)
- [BODYinTRANSIT-Lab: A Multimodal Dataset for Investigating Sensory-Driven Transformations in Body Perception and Affective Experiences](https://refivu.com/papers/aa190fab-619f-4eb2-bb78-ffd749a9597e-bodyintransit-lab-a-multimodal-dataset-for-investigating.md)
- [HaiRuo: Forecasting Ocean Eddies as Fields and Objects with a Satellite-Altimetry Foundation Model](https://refivu.com/papers/b59cba67-c44a-47fa-8544-c0f453b737b4-hairuo-forecasting-ocean-eddies-as-fields-and-objects.md)
- [Maze Runner: Autonomous Maze Navigation with Line-Based Localization and Control Barrier Functions](https://refivu.com/papers/cbf2ea63-56ec-4c73-b583-028435947e11-maze-runner-autonomous-maze-navigation-with-line-based.md)
- [Explanation-Aware Fairness Beyond Output Parity: Joint Output-Attribution Regularization for Medical Image Classification](https://refivu.com/papers/28689396-85eb-481f-b57c-b63e3705d854-explanation-aware-fairness-beyond-output-parity-joint-output.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/48a440da-6a56-490b-ab75-1e1ff5df8362-proofcoder-continuous-reasoning-for-automated-software)
