# s2n-bignum-bench: A practical benchmark for evaluating low-level code reasoning of LLMs

*Balaji Rao, Soonho Kong, Juneyoung Lee, Carlo Lipizzi*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/139651) · [OpenReview](https://openreview.net/forum?id=DGdoYdqNs1) · [Open on the map](../papers.html#p139651)

Category: [LLM Agents, Evals & Benchmarks](../pcat/17.md) › [Verified Code Synthesis and Testing](../pgroup/302.md) · Type: benchmark or dataset · Keywords: neural theorem proving, HOL Light, low-level code verification, benchmark, LLM reasoning

Areas: [LLM Reasoning](../areas/reasoning.md) › Language Model Reasoning › Reasoning Benchmarks; [Code & Coding Agents](../areas/codegen.md) › Code Verification › Verification benchmarks; [Evaluation & Benchmarks](../areas/evaluation.md) › Language Model and Agent Benchmarks › Formal Verification Benchmarks; [Benchmarks for LLMs & Agents](../areas/bench-llm-agents.md) › Cross-Domain Agent Evaluation › Formal Verification Benchmarks

## Summary
s2n-bignum-bench is a practical benchmark that packages 2,301 HOL Light proof obligations from low-level big-integer assembly code to evaluate LLMs' ability to synthesize machine-checkable proofs.

## Explained to a 5-year-old
We made a big set of puzzles that ask a computer to prove small pieces of code work correctly. Each puzzle is like a tiny math problem about how numbers are handled in computer language. The puzzles come from real code used in secure software. We give the puzzles to big language models and see if they can figure out how to prove each one. The models mostly solve only a few of the puzzles, showing it’s still hard for them to do this kind of reasoning.

## Explained to a 5-year-old, longer
Imagine you have a super-smart robot that can read and write short stories in a special language called HOL Light. To test this robot, we give it many tiny stories that describe how to add big numbers, how to do secret math for encryption, how to hash data, and how the computer’s basic instructions work. Each story comes with a little setup file and a question file, and the robot must write a short proof that answers the question. We also give the robot two versions of each question: one that looks normal and one that is a bit hidden, so we can see if the robot really understands the idea or just copies the answer. After the robot tries to answer all the stories, we count how many it got right. The robot only got a few right, which tells us that solving these kinds of low-level code puzzles is still a hard problem for today’s language models. We also built tools to make more puzzles, check the robot’s answers, and keep track of progress so we can improve the models over time.

## For a technical reader
The paper introduces a benchmark that extracts 2,301 HOL Light proof obligations from the AWS s2n-bignum library, covering arithmetic, elliptic curves, ML-KEM, SHA-3, and ISA infrastructure. Each obligation is packaged with setup and query files, and an evaluator validates tactic expressions within a timeout, supporting both verbatim and obfuscated queries. The benchmark includes integrity checks and a checkpointed workflow for pass@K evaluation. Initial zero-shot tests with GPT-5.3 and other frontier models achieve only ~6% success, indicating significant challenges in low-level code reasoning for LLMs.

## Problem
Existing neural theorem-proving benchmarks focus on mathematics or verification conditions, but they do not test whether models can generate proofs for concrete low-level code implementations under an industrial proof-engineering stack. This leaves a gap in evaluating LLMs' reasoning about assembly-level verification tasks.

## Method
The approach extracts proof obligations from the AWS s2n-bignum library, packages each as a standalone HOL Light task with setup and query files, and provides an evaluator that checks tactic expressions against HOL Light within a timeout. It includes multiple categories, verbatim and obfuscated query variants, and integrity checks to separate generic theorem proving from ISA-specific reasoning.

## Results
Zero-shot baselines using GPT-5.3 and other frontier models solved at most 6.35% of the problem set when given only the goal term, highlighting the difficulty of HOL Light tactic synthesis for low-level verification.

## Contributions
The work provides a benchmark of 2,301 HOL Light proof obligations covering low-level code, an extraction pipeline, retrieval utilities, an offline evaluator with integrity checks, and a checkpointed assessment workflow for iterative evaluation, along with paired verbatim and obfuscated query variants and support for pass@K studies.

## Research questions this paper is counted under

- [How can we evaluate language models' ability to design, implement, and verify complex systems across software and hardware domains?](../q/204.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/139651)
