Python utilities for loading and working with the FormulationBench dataset. FormulationBench is a collection of 20 optimization problems with 109 mixed-integer linear programming (MILP) formulations. Each formulation has a natural language description, LaTeX formulation, GurobiPy implementation, and Lean representation. Furthermore, there are 89 pairs of formulations consisting of 63 positive reformulation examples and 26 negative examples. Each positive example has a machine-checked Lean 4 reformulation proof. See the documentation for details.
pip install formulation-benchDownload the dataset:
from formulation_bench import Dataset
ds = Dataset.load()Access a problem's formulations:
p1 = ds.problems[1]
p1a = p1.formulations["a"]Access reformulation pairs:
pos = [r for r in ds.reformulations if r.is_reformulation]
neg = [r for r in ds.reformulations if not r.is_reformulation]See AGENTS.md for development information.
FormulationBench was introduced by FLARE: Verifying MILP Reformulations with LLM-Based Theorem Proving. If you use the dataset or the formulation-bench package, please cite:
@misc{robbins2026flare,
title={{{FLARE}}: Verifying {{MILP}} Reformulations with {{LLM}}-Based Theorem Proving},
author={Henry Robbins and Connor Lawless and Madeleine Udell and Ellen Vitercik},
year={2026},
eprint={2608.25220},
archivePrefix={arXiv},
primaryClass={cs.AI},
url={https://arxiv.org/abs/2608.25220},
}