← Latest papers
💬 NLP

VeriSoftBench: Repository-Scale Formal Verification Benchmarks for Lean

This paper introduces VeriSoftBench, a repository-scale benchmark of 500 Lean 4 proof obligations from open-source software verification projects, revealing that current LLMs struggle to transfer from mathematical to code-centric settings and highlighting the critical impact of cross-file dependencies on proof automation success.

Original authors: Yutong Xin, Qiaochu Chen, Greg Durrett, Işil Dillig

Published 2026-02-23
📖 4 min read☕ Coffee break read

Original authors: Yutong Xin, Qiaochu Chen, Greg Durrett, Işil Dillig

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to teach a brilliant but inexperienced apprentice how to fix a complex machine.

The Old Way (Math Benchmarks)
For a long time, researchers tested these AI "apprentices" using Mathlib. Think of Mathlib as a giant, perfectly organized library of universal math facts. It's like giving the apprentice a single, massive textbook where every definition is standard, every chapter is numbered, and the answers to problems are always found in the same predictable places.

  • The Problem: Real-world software isn't like a math textbook. It's more like a messy, sprawling construction site where every building has its own unique blueprints, custom tools, and weird local rules that don't exist anywhere else.

The New Challenge: VeriSoftBench
The authors of this paper realized that AI was getting great at solving math problems but failing miserably at real-world software verification. So, they built VeriSoftBench.

Think of VeriSoftBench as a giant, chaotic warehouse containing 500 different "proof puzzles."

  • Each puzzle is a specific task from a real, open-source software project (like a secure blockchain or a compiler).
  • To solve a puzzle, the AI can't just look up a standard rule. It has to wander through the warehouse, find the specific, custom-made tool the project invented yesterday, understand how it connects to a tool from three files away, and then figure out how to use it to fix the current problem.
  • It's the difference between solving a Sudoku puzzle (standard rules) and trying to fix a car engine where the manual is written in a secret code specific to that one car model.

The Experiment: Two Ways to Help the Apprentice
The researchers tested the AI under two different conditions to see how it handles this chaos:

  1. The "Curated" Box (The Helpful Mentor):
    Imagine a mentor who looks at the puzzle, finds only the exact tools and blueprints the AI needs, and hands them a neat, small box.

    • Result: The AI did okay (about 40% success). It could solve the puzzle when the hard work of finding the right tools was done for it.
  2. The "Full Warehouse" (The Overwhelming Dive):
    Imagine dumping the AI into the entire warehouse with millions of other tools, blueprints, and random parts, telling it, "Good luck, find what you need!"

    • Result: The AI got confused. Success rates dropped significantly. The sheer volume of "noise" made it hard to find the signal.

Key Discoveries (The "Aha!" Moments)

  • Math Experts aren't Software Experts: The AI models that are champions at solving math problems (like the ones trained on Mathlib) completely crashed when faced with these software puzzles. They were like a chess grandmaster trying to play poker; the skills didn't transfer.
  • The "Domino Effect" of Difficulty: The harder the puzzle, the more "transitive dependencies" it had.
    • Analogy: Imagine a recipe. A simple recipe needs flour and eggs. A complex recipe needs flour, but the flour depends on a specific type of wheat, which depends on a specific fertilizer, which depends on a specific rain pattern.
    • In VeriSoftBench, to solve a problem, the AI often had to trace a chain of 10 or 20 custom definitions deep into the code. The longer the chain, the more likely the AI was to get lost.
  • Context is a Double-Edged Sword: Giving the AI too much information (the full warehouse) was worse than giving it just enough (the curated box). However, even with the "perfect" box of tools, the AI still struggled. This means the problem isn't just about finding the right information; it's about reasoning through complex, custom logic that the AI hasn't seen before.

Why This Matters
Currently, AI is great at "textbook" math but terrible at "real-world" engineering. This paper sounds an alarm: if we want AI to help us write safe, bug-free software (like for self-driving cars or medical devices), we can't just train it on math problems. We need to teach it how to navigate messy, custom codebases where the rules are made up on the fly.

In a Nutshell:
The paper says, "We built a new test that mimics real software engineering. We found that current AI is like a student who aced the final exam but can't fix a leaky faucet because the faucet uses a custom part they've never seen. We need to teach them how to navigate the messy workshop, not just the clean classroom."

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →