arXiv(opens in a new tab)cs.AISep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.00728

SOVER: Formal Certification of Optimization Reformulations via LLM-Assisted SMT Verification

Swapnil Bhattacharyya, Mayank Baranwal

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large Language Models (LLMs) have shown remarkable promise in translating and reformulating complex mathematical optimization problems across modeling languages. However, validating such transformations through empirical solver executions alone is unreliable, as solver outcomes may be affected by local minima, structural timeouts, numerical artifacts, and subtle semantic divergence between formulations. We introduce SOVER, an LLM-assisted SMT framework that separates semantic mapping from formal certification: Z3 checks domain cross-feasibility and global objective-order preservation for mixed-integer linear formulations, while dReal provides tolerance-aware feasibility/range and ε-argmin checks for continuous nonlinear formulations. We also introduce NLEQUIV-150, a public benchmark of 100 equivalent and 50 deliberately hard non-equivalent nonlinear reformulation pairs. With LLM-extracted mappings, SOVER classifies 149/150 pairs (99.33%) correctly, including all 50 hard negatives; the sole error is an incomplete mapping extraction.

1 Introduction

Optimization is central to scientific and engineering decision-making, with applications in energy-cost reduction, supply-chain planning, and profit maximization (Singh, 2012). Combinatorial optimization (Le, 2024) further underpins core problems in operations research and computer science, from network routing (Christofides et al., 1981) to machine learning system design (Sun et al., 2019). Understanding when two optimization problems are equivalent, or when one reduces to another (Karp, 2009), is therefore fundamental: it enables structurally related NP-complete problems (Aaronson, 2005), such as SAT and the Traveling Salesperson problem (Pop et al., 2024), to be organized into equivalence classes (Paulson, 2006) and solved using transferable algorithmic ideas (Liu et al., 2022).

LLMs are increasingly used as optimization copilots, translating natural language specifications into formal models (Huang et al., 2025) and assisting in solution workflows (Zhang et al., 2025). However, LLM-generated formulations remain unreliable (Ma et al., 2026), often containing ambiguous terminology, missing assumptions, inconsistent variables, or structural errors (AhmadiTeshnizi et al., 2024). Rigorous equivalence checking is therefore essential (Wang and Li, 2025), especially when AI-generated models (Yao et al., 2025) must be validated against trusted ground-truth formulations (Zhou and Zhang, 2025) while preserving intended mathematical semantics (Xiao et al., 2025).

A central challenge is that reformulation equivalence is not captured by equality of solver outputs. As shown in Figure 1, different formulations may share the same optimizer and optimal value when constraints are inactive, while equivalent formulations can differ when objectives are scaled. Robust verification must also handle symbolic parameters and recognize equivalence across heterogeneous representations, such as an LP becoming an NLP under a variable transformation. Thus, optimal-value comparison, sampled solutions, and syntactic similarity produce both false positives/negatives.

Recent work has begun to study LLM-assisted equivalence checking. In particular, EquivaMap (Zhai et al., 2025) uses LLMs to infer transformations between decision variables and then verifies that the mapped formulations preserve feasibility and optimality. While this is an important step toward automated reformulation analysis, the broader challenges in Figure 1 require verification that is robust to inactive constraints, scaled or monotone objectives, symbolic parameters, and heterogeneous linear/nonlinear representations. Traditional testing cannot exhaustively cover these semantic boundaries (Mahmoud et al., 2024), and the brittleness of generative modeling further motivates provable validation mechanisms (Chen et al.,

Figure

(c) Symbolic formulations

(d) Nonlinear transformation

Figure 1: Challenges in assessing optimization reformulations. (a) Existing methods may fail to distinguish genuinely different problems when inactive constraints yield the same optimizer and objective value. (b) Conversely, they may incorrectly flag equivalent formulations with scaled objectives as different. (c) Robust reformulation analysis should also be parameter-agnostic, and (d) capable of recognizing equivalence across nonlinear representations.

  1. that separate structural interpretation from logical verification (Pei et al., 2025).

We propose SOVER, a hybrid framework for provably correct optimization reformulation. SOVER uses LLMs to parse optimization statements, align variables and parameters, and propose symbolic correspondences. It then discharges verification obligations using SMT solvers under a shared logical representation. Instead of relying on agreement over finitely many solver executions, SOVER checks domain cross-feasibility and global objective-order preservation, thereby establishing arg min equivalence. Moreover, SOVER solves only the trusted source optimization problem and verifies reformulation correctness through SMT-based feasibility and ordering checks, enabling efficient validation across mixed-integer linear, continuous nonlinear, and non-convex settings.

This paper makes the following contributions:

  • Formal reformulation verification. We intro-

duce SOVER, an LLM-assisted SMT framework that encodes reformulation correctness as logical verification conditions over symbolic domains.

  • Equivalence beyond objective-value matching. SOVER verifies domain cross-feasibility & global objective-order preservation, avoiding failures from inactive constraints or scaled objectives.

  • Parameter-agnostic and heterogeneous checking. SOVER supports symbolic parameters and verifies equivalence across different mathematical representations, including LP-to-NLP reformulations induced by variable transformations.

  • Solver-efficient verification. SOVER requires solving only the trusted source problem and uses SMT queries to verify feasibility and ordering obligations, rather than validating reformulations through independent optimal-value comparisons. On EquivaFormulation, Z3 verification averages 0.03 s per pair; end-to-end latency is dominated by LLM-assisted mapping.

  • Support for mixed-integer and nonlinear settings. The framework integrates Z3 for mixed-integer linear formulations and dReal for continuous nonlinear formulations via δ\delta-satisfiability.

  • NLEQUIV-150 benchmark. We release 100 equivalent and 50 hard non-equivalent application-grounded nonlinear pairs spanning objective, constraint, equality/direction/coefficient, and transformation-range failures.

References (18)