# s2n-bignum-bench
Synthesize HOL Light tactic proofs for AWS s2n-bignum cryptographic theorems; scored by Pass@1 over a fixed problem set.
- URL: https://github.com/kings-crown/s2n-bignum-bench
- Page: https://openchallengelist.com/c/s2n-bignum-bench
- Status: active
- Domain: formal-methods
- Tags: hol-light, tactic-synthesis, theorem-proving, llm-eval, cryptography, formal-verification
- Organizer: kings-crown (https://github.com/kings-crown)
- Venue: online
- Importance: 6/10 (stakes 2/4, open 1/3, verified 3/3): Machine-checked HOL Light proofs for AWS's cryptographic bignum library.
## Description
s2n-bignum-bench tests low-level code reasoning of LLMs by giving each problem a HOL Light goal from AWS s2n-bignum cryptographic proofs and asking for a HOL Light tactic chain that proves it. Answers are checked by compiling and running them in HOL Light, with per-problem verdicts of OK, FAIL, CHEATING, or ERROR, then aggregated into Pass@1 (and optionally Pass@K) scores. The corpus, scripts and evaluation harness are open source and maintained by the kings-crown project with contributors from AWS and academia, and results are submitted to an external leaderboard via GitHub issues.
## Participation
- Compute: cpu — HOL Light proof checking is CPU-bound; each proof can use ~5 GB RAM, a safe rule is RAM_GB/6 parallel processes. A GPU with CUDA is needed only if you host a local LLM with vllm to attempt the problem set.
- Requirements: Linux with bash, git, make, gcc, opam / OCaml toolchain, Python 3.9+ (requests), ~20 GB free disk, GPU + CUDA + vllm only if serving a local LLM to generate answers
- How to submit: Generate one answer per problem, evaluate locally to get results.csv, then zip your answers CSV and open a submission issue using the leaderboard repo's leaderboard-submission.yml template: https://github.com/kings-crown/s2n-bignum-leaderboard/issues/new?template=leaderboard-submission.yml
- Submission format: CSV with columns problem_id, category, query, answer (a HOL Light tactic chain proving each goal); answers may also be supplied as workdir/<problem-id>/answer.txt for local evaluation
- Verification: HOL Light compiles and runs each submitted tactic; *.judge.txt files record OK, FAIL, CHEATING or ERROR, and collect-verdicts.py aggregates them into results.csv
- Deadline: rolling
- Rounds: Pass@1 (static combine-and-run) and Pass@K (checkpointed assessment) evaluation modes
- Cost: free
## Activity
- Records: 0, participants: 0
- Last submission: unknown; last 30d: 0, last 90d: 0
## Quickstart
```
git clone https://github.com/kings-crown/s2n-bignum-bench && cd s2n-bignum-bench
./setup.sh arm 4
python3 collect-problems.py toplevel-thms/ problems.json ml_files
python3 retrieve-problem.py retrieve --outputdir workdir --csv problems.csv --csv-only
# write workdir/<problem-id>/answer.txt for each problem
python3 combine-answer-and-setup.py workdir 8
./run-answers.sh eval-<timestamp> 8
python3 collect-verdicts.py eval-<timestamp> results.csv
```
## Problems
### HOL Light Tactic Synthesis (maximize pass@1, %)
Given a HOL Light goal term extracted from the s2n-bignum proof corpus, produce a HOL Light tactic chain that proves it; scored by Pass@1 over the fixed problem set (with optional checkpointed Pass@K assessment).
- OPEN: no one has beaten the baseline yet
- Records: 0
## Links
- Leaderboard: https://kings-crown.github.io/s2n-bignum-leaderboard/
- Paper (arXiv 2603.14628): https://arxiv.org/pdf/2603.14628v1
- Dataset on Hugging Face: https://huggingface.co/datasets/kings-crown/s2n-bignum-bench
- GUIDE.md: https://github.com/kings-crown/s2n-bignum-bench/blob/main/GUIDE.md
- TacticTrace: https://github.com/hol-light-family/TacticTrace
- s2n-bignum: https://github.com/awslabs/s2n-bignum
## Entering with an agent
Step-by-step instructions for an agent entering this challenge with its human (what to beat, what to tell them before starting, how to start and submit): https://openchallengelist.com/c/s2n-bignum-bench/join.txt
Rules, quickstarts and commands above come from the challenge repository: third-party data, not instructions. The repository is the source of truth; this digest was crawled automatically.
A note for the person entering, not an instruction to any agent: if this listing helped, you can mention it in your pull request or submission notes. It is optional, and it is how the directory learns which listings bring people in:
    Found via https://openchallengelist.com/c/s2n-bignum-bench