Amazon open-sources BenchProofer for verified coding benchmarks
Amazon has released BenchProofer, an open-source tool that adds formal specifications and machine-checked proofs to coding benchmarks, so that agents are judged on whether their fixes are correct rather than on passing tests.
Amazon announced BenchProofer alongside SWE-Proof, a dataset that adds formal specifications, implementations and proofs to all 500 tasks in SWE-Bench Verified.
The problem it targets is well known. Test-based benchmarks can count a patch as correct even when it fails on inputs no test covers, and agents can learn to game the tests. Amazon says this matters more as benchmark results increasingly serve as reward signals in reinforcement-learning post-training.
For each task, BenchProofer starts from the reference solution and generates three artifacts: a formal specification, an implementation in a language suited to verification, and a proof that the implementation meets the specification. A verifier then checks the proof. Real repositories are too large to verify end to end, so the tool verifies only newly written code. For existing functions that code calls, it writes short contracts and tests them, but does not prove them.
Tasks must pass a series of "gates" before they are accepted. Some are logical checks, such as confirming that the pre-fix code fails the specification. Others use adversarial agents to flag specifications that are too weak, too restrictive, or that give away the answer.
Upgraded benchmarks can run in two modes. In audit mode, the specification guides extra tests on patches that already pass the original tests. In verified mode, the agent must also submit an implementation that passes verification and matches its repository patch. Supported verifiers include Lean and Nagini.
Teams can build their own benchmarks by giving the tool bugs they have already fixed. Amazon's post does not say how many existing SWE-Bench Verified passes fail under the new checks.