cs.LOOct 16, 2026

LLM-Assisted Bi-Approximate CHC Solving

Authors: Baiting Jiang

Organizations: Tsinghua University, China

Abstract

Constrained Horn clause (CHC) solvers often struggle to discover deep counterexamples whose derivations may require extensive rule unfolding. Although large language models (LLMs) can propose long-range symbolic relations, prior work on formally checked LLM-assisted verification has mainly focused on generating inductive invariants and concrete traces. We exploit this broader capability through Derivation Power Under-approximations (DPUs). Each DPU is a solver-certified under-approximation of the relation induced by a multi-step CHC derivation. An LLM proposes each DPU with symbolic intermediate-state witnesses that enable SMT validation without introducing additional quantifiers. Validated DPUs can be composed and reused soundly. Building on this mechanism, our LLM-assisted framework HornCraft combines invariant generation for over-approximation with DPU generation for under-approximation in CHC solving. On 260 linear and nonlinear integer-arithmetic CHC-COMP benchmarks left unresolved by a 30-minute Spacer run, HornCraft returns certified verdicts for 228 instances. It certifies 42 instances as unsafe, compared with 22 when DPU construction and reuse are disabled.

Figures & tables

Explore similar work

CardsList
  1. Formalize, Don't Optimize: The Heuristic Trap in LLM-Generated Combinatorial Solvers

    May 12, 2026Haoyu Wang, Yuliang Song, Tao Li +5Large Language Model-Guided OptimizationLLM-Based Program Synthesis

  2. Can LLM Aid in Solving Constraints with Inductive Definitions?

    Mar 4, 2026Weizhi Feng, Shidong Shen, Jiaxiang Liu +3Automated Theorem ProvingNeuro-Symbolic Reasoning

  3. Analyzing the Narration Gap in LLM-Solver Loops

    Jun 17, 2026Zunchen Huang, Songgaojun DengAdversarial Attacks on LLMsFormal Verification