# FLARE: Verifying MILP Reformulations with LLM-Based Formal Proof Synthesis

*Henry Robbins, Connor Lawless, Madeleine Udell, Ellen Vitercik*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/149137) · [OpenReview](https://openreview.net/forum?id=sZLQvatATh) · [alphaXiv](https://www.alphaxiv.org/abs/2608.25220) · [Open on the map](../papers.html#p149137)

Category: [LLM Agents, Evals & Benchmarks](../pcat/17.md) › [LLM-Driven Code Synthesis and Verification](../pgroup/32.md) · Type: new method · Keywords: formal verification, LLM-based proof synthesis, Lean proof assistant, optimization reformulation, benchmark dataset, machine-checked correctness

Areas: [Evaluation & Benchmarks](../areas/evaluation.md) › Language Model and Agent Benchmarks › Coding Agent Benchmarks

## Summary
FLARE uses an LLM-based agent and the Lean proof assistant to verify MILP reformulations, achieving 96.9% accuracy on a new benchmark.

## Explained to a 5-year-old
We have a smart robot that helps check if two math puzzles are the same. It talks to a language buddy to think up steps and then uses a special math checker to make sure the steps are correct. This robot can tell if a new puzzle matches the old one, and it works really well, almost always right.

## Explained to a 5-year-old, longer
Imagine you have two LEGO models that are supposed to build the same thing, but you’re not sure. You ask a friendly chatbot to help you figure out how to change one model into the other. Then you use a super-careful math program that checks every step to make sure the two models are truly identical. This whole process is called FLARE, and it’s used to verify math formulations. It’s like having a double-check buddy that ensures the math is correct, and it works on a collection of many math problems called FormulationBench. The system is very accurate, getting right about 97% of the time, and even a simpler version that doesn’t need the strict math check is about 99% accurate. This helps people trust the math they use in many real-world problems, like scheduling, planning, and resource allocation.

## For a technical reader
The system uses an LLM to draft proof steps and Lean to formally verify equivalence of optimization reformulations. It evaluates on a benchmark of 20 problems with 116 formulations, achieving 96.9% accuracy. A lightweight proxy variant reaches 99.3% accuracy without formal proof checking.

## Problem
Ensuring that reformulated optimization models preserve the original problem's solution is difficult, as current approaches rely on numerical comparisons that may miss subtle differences.

## Method
The approach uses a language model agent to generate proof steps and leverages the Lean proof assistant to construct and check formal proofs that a proposed reformulation is equivalent to a reference formulation.

## Results
The approach achieves 96.9% accuracy on the benchmark, surpassing existing methods, while a non-formal variant reaches 99.3% accuracy.

## Contributions
A formal definition of reformulation enabling machine-checked proofs, a verification framework that combines an LLM agent with Lean to check equivalence, and a benchmark dataset of 20 problems and 116 formulations.

## Practical relevance
The methods enable reliable verification in automated optimization modeling, supporting trustworthy formulation generation.

## Research questions this paper is counted under

- [How can we automatically generate accurate optimization models from natural-language problem descriptions?](../q/222.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/149137)
