English

Can LLM Aid in Solving Constraints with Inductive Definitions?

Logic in Computer Science 2026-03-13 v2 Artificial Intelligence

Abstract

Solving constraints involving inductive (aka recursive) definitions is challenging. State-of-the-art SMT/CHC solvers and first-order logic provers provide only limited support for solving such constraints, especially when they involve, e.g., abstract data types. In this work, we leverage structured prompts to elicit Large Language Models (LLMs) to generate auxiliary lemmas that are necessary for reasoning about these inductive definitions. We further propose a neuro-symbolic approach, which synergistically integrates LLMs with constraint solvers: the LLM iteratively generates conjectures, while the solver checks their validity and usefulness for proving the goal. We evaluate our approach on a diverse benchmark suite comprising constraints originating from algebrai data types and recurrence relations. The experimental results show that our approach can improve the state-of-the-art SMT and CHC solvers, solving considerably more (around 25%) proof tasks involving inductive definitions, demonstrating its efficacy.

Keywords

Cite

@article{arxiv.2603.03668,
  title  = {Can LLM Aid in Solving Constraints with Inductive Definitions?},
  author = {Weizhi Feng and Shidong Shen and Jiaxiang Liu and Taolue Chen and Fu Song and Zhilin Wu},
  journal= {arXiv preprint arXiv:2603.03668},
  year   = {2026}
}

Comments

Accepted by the 27th Symposium on Formal Methods (FM 2026)

R2 v1 2026-07-01T11:02:22.328Z