arXiv:2610.03345cs.LOOct 2026

Manuscript Offprint

arXiv:2610.03345

Symbolic Execution of Constrained Horn Clauses

Johannes Weiser, Zafer Esen, Philipp Rümmer

Abstract

Constrained Horn clauses (CHCs) are a fragment of first-order logic widely used as an intermediate language for verification. We study constrained resolution as a calculus for reasoning about the satisfiability of sets of CHCs. Constrained resolution forms a simple alternative to model checking algorithms such as CEGAR and IC3 and is here shown to exhibit complementary features. We show that, when CHCs encode programs, forward symbolic execution corresponds to positive unit hyper-resolution, and backward symbolic execution to SLD resolution, which are special cases of constrained resolution. We formalize forward and backward reasoning for linear and non-linear CHCs and transition systems, prove refutational completeness under fair strategies, and develop subsumption criteria for pruning redundant derivations. We moreover show that backward resolution with subsumption generalizes k-induction to non-linear CHCs, and that forward constrained resolution is related to the problem of constructing proofs in incorrectness logic. Lastly, we provide an experimental evaluation in the ELDARICA CHC solver on benchmarks from CHC-COMP.

Keywords: Constrained Horn clauses, Symbolic execution, Software verification, Resolution, SLD, k-induction, Incorrectness logic

1 Introduction

Constrained Horn clauses (CHCs) are a fragment of first-order logic that has found wide use as an intermediate language for verification, with applications ranging from security analysis for smart contracts to the verification of programs in various languages [1−9][1-9]. CHCs enable the modular construction of verification tools by decoupling the development of verification front-ends, which take care of parsing and processing programs, applying the rules of some program logic, from CHC solvers as verification back-ends that carry out the required semantic program analysis. When encoding a program using CHCs, predicates typically represent the required annotations, such as state invariants, loop invariants, or function contracts, while CHCs encode program transitions as well as all further constraints on the annotations. A program is safe when the corresponding set of CHCs is satisfiable.

To analyze CHCs, CHC solvers such as ELDARICA [10], GOLEM [11], Z3/SPACER [12], and LOAT [13] implement a variety of model checking algorithms, for instance IC3 [14], CEGAR [15], loop acceleration [16], bounded model checking [17], or transition power abstraction [18]. As a simple alternative to those algorithms, in this article we study constrained resolution [19], a logical proof rule that enables solvers to derive new clauses from a set of existing clauses in forward or backward direction. As our first insight, we show that strategies to apply constrained resolution correspond to symbolic execution, a widely used approach in program analysis in which some program variables are initialized with symbols that represent arbitrary values, rather than concrete ones [20, 21]. Although more limited for proving the correctness of programs than algorithms used in software model checking, for instance IC3 or CEGAR, constrained resolution inherits the feature of symbolic execution of being very effective at discovering bugs in programs, which here corresponds to proving the unsatisfiability of CHCs. Since constrained resolution does not rely on relatively expensive steps such as Craig interpolation [22, 23], it can be implemented easily even in the context of complex theories like arrays or bit-vectors. We show that constrained resolution is also surprisingly effective at proving programs correct, reflecting experiences in software model checking [24].

As our second insight, we show that there is a correspondence between different resolution strategies and known forms of symbolic execution: forward symbolic execution corresponds to constrained positive unit hyper-resolution, whereas backward symbolic execution [25, 26] corresponds to SLD resolution [27] known from logic programming [28]. Discussion of this correspondence goes back to the work of Kowalski, who observed that resolution steps over Horn clauses can be interpreted as procedure invocations [29], and to work in constraint logic programming [30]. We extend this view to constrained resolution with background theories and make the connection to symbolic execution explicit. We formalize both forward and backward resolution strategies over linear and non-linear CHCs, prove their correctness, and study subsumption for pruning redundant derivations.

Our third insight is that backward resolution combined with subsumption generalizes k-induction, a proof rule for invariants in which the consecution condition assumes k correct iterations of a loop [31]. It is known that k-induction is a very effective rule for proving safety properties in both hardware and software verification (e.g., [31–33]). We show that backward reasoning through constrained resolution has the effect of implicitly constructing the conditions that need to be checked when applying k-induction. A similar observation was made for the relationship between k-induction and backward symbolic execution in [34]. Constrained resolution is more general than k-induction, however, since it applies also in the case of non-linear clauses.

As our fourth insight, we study the relationship between constrained resolution and incorrectness logic, which is a logic that is dual to Hoare logic for reasoning about failing executions of programs [35]. We show that forward resolution proofs for CHCs encoding a program naturally translate to proofs in incorrectness logic, making it possible, in particular, to automatically construct non-ground incorrectness proofs automatically. The relationship between CHC proofs and incorrectness reasoning also makes it possible to translate bespoke incorrectness proof rules, for instance for loop acceleration, to the CHC world.

The main contributions of this article are:

(1) A formalization of symbolic execution as constrained resolution over CHCs, including subsumption criteria for CHCs (Section 3 and Section 7).

(2) A study of forward and backward exploration strategies over both linear and non-linear CHCs (Section 4 and Section 5).

(3) Discussion how the k-induction proof rule can be reduced to backward resolution with clause subsumption (Section 6) and of the connection between constrained resolution and incorrectness logic (Section 8).

(4) An experimental evaluation on CHC-COMP benchmarks (Section 9).

References (22)