s2n-bignum-bench: A practical benchmark for evaluating low-level code reasoning of LLMs
Balaji Rao ⋅ Soonho Kong ⋅ Juneyoung Lee ⋅ Carlo Lipizzi
Abstract
Recent progress in neural theorem proving has been driven largely by mathematics-oriented and, more recently, by verification-condition and repository-scale benchmarks. These settings are valuable, but they do not directly test whether a model can synthesize machine-checkable proofs about concrete low-level implementations under an industrial proof-engineering stack. We address this gap with *s2n-bignum-bench*, a benchmark derived from AWS *s2n-bignum*, a formally verified library of hand-tuned big-integer assembly routines for ARM and x86. The original v1.0 corpus packages $\mathbf{2{,}301}$ HOL Light proof obligations as standalone `setup.ml`/`query.txt` tasks spanning big-integer arithmetic, elliptic-curve routines, and shared ISA infrastructure. Each task reproduces the relevant proving environment, exposes the theorem statement to be proved, and expects a tactic expression that is accepted by HOL Light within a per-problem timeout. The benchmark spans five categories so that one can separate generic HOL Light fluency from ISA-specific reasoning. We release the extraction pipeline, retrieval utilities, an offline evaluator with syntax/type pre-checking and integrity checks based on changes to HOL Light's axiom list, paired verbatim and obfuscated query variants, and a checkpointed assessment workflow to support iterative proof attempts with execution feedback and future step-level proof construction workflows. Under query-only prompting, GPT-5.3-Codex (xhigh reasoning effort) solves $\mathbf{6.35}$% of the original 2,301 tasks in a single attempt, while GPT-5.3-Codex (high effort) solves $\mathbf{10.26}$% within five sequential attempts with execution feedback. None of the original baselines solves any of the 864 functional-correctness tasks. A later evaluation on the refreshed v1.1 snapshot (2,622 tasks) records the first *five functional-correctness successes* (Grok 4.6), all among the smallest tasks, leaving substantial headroom. The code to set up and use the benchmark is available at [s2n-bignum-bench](https://github.com/kings-crown/s2n-bignum-bench).
Successful Page Load