LLM-Guided Quantified SMT Solving over Uninterpreted Functions

Authors

  • Kunhang Lv Institute of Software, Chinese Academy of Sciences University of the Chinese Academy of Sciences
  • Yuhang Dong Institute of Software, Chinese Academy of Sciences University of the Chinese Academy of Sciences
  • Rui Han Institute of Software, Chinese Academy of Sciences University of the Chinese Academy of Sciences
  • Fuqi Jia Institute of Software, Chinese Academy of Sciences University of the Chinese Academy of Sciences
  • Feifei Ma Institute of Software, Chinese Academy of Sciences University of the Chinese Academy of Sciences
  • Jian Zhang Institute of Software, Chinese Academy of Sciences University of the Chinese Academy of Sciences

DOI:

https://doi.org/10.1609/aaai.v40i17.38445

Abstract

Quantified formulas with Uninterpreted Functions (UFs) over non-linear real arithmetic pose fundamental challenges for Satisfiability Modulo Theories (SMT) solving. Traditional quantifier instantiation methods struggle because they lack semantic understanding of UF constraints, forcing them to search through unbounded solution spaces with limited guidance. We present AquaForte, a framework that leverages Large Language Models to provide semantic guidance for UF instantiation by generating instantiated candidates for function definitions that satisfy the constraints, thereby significantly reducing the search space and complexity for solvers. Our approach preprocesses formulas through constraint separation, uses structured prompts to extract mathematical reasoning from LLMs, and integrates the results with traditional SMT algorithms through adaptive instantiation. AquaForte maintains soundness through systematic validation: LLM-guided instantiations yielding SAT solve the original problem, while UNSAT results generate exclusion clauses for iterative refinement. Completeness is preserved by fallback to traditional solvers augmented with learned constraints. Experimental evaluation on SMT-COMP benchmarks demonstrates that AquaForte solves numerous instances where state-of-the-art solvers like Z3 and CVC5 timeout, with particular effectiveness on satisfiable formulas. Our work shows that LLMs can provide valuable mathematical intuition for symbolic reasoning, establishing a new paradigm for SMT constraint solving.

Downloads

Published

2026-03-14

How to Cite

Lv, K., Dong, Y., Han, R., Jia, F., Ma, F., & Zhang, J. (2026). LLM-Guided Quantified SMT Solving over Uninterpreted Functions. Proceedings of the AAAI Conference on Artificial Intelligence, 40(17), 14304–14312. https://doi.org/10.1609/aaai.v40i17.38445

Issue

Section

AAAI Technical Track on Constraint Satisfaction and Optimization