arXiv:2609.11509cs.AISep 2026

Manuscript Offprint

arXiv:2609.11509

Extending SMT Solving with Non-Ground Clause Learning

Yasmine Briefs, Christoph Weidenbach

Yasmine Briefs 1,2^{1,2}

Christoph Weidenbach 1^{1}

Max Planck Institute for Informatics, Saarbrücken, Germany

{ybriefs,weidenbach}@mpi-inf.mpg.de

Graduate School of Computer Science,

Saarland Informatics Campus, Saarbrücken, Germany

Quantifier instantiation is currently the main approach to non-ground SMT solving: solvers generate ground instances and solve the resulting ground SMT problems with CDCL(T)-style reasoning. When a conflict is found, conflict analysis learns only a ground clause, even though the conflict comes from instances of non-ground clauses. Yet non-ground reasoning can give exponentially shorter proofs than purely ground reasoning. We propose a calculus that consists of ground instantiations, CDCL(T)-style rules, and non-ground conflict analysis. The solver reasons on ground instances, but the resolution steps of conflict analysis are performed on their original non-ground clauses. This produces learned clauses that are typically more general than the ground conflict. With a suitable strategy, the learned clauses are even non-redundant. We also show how chronological backtracking can be included in SMT solving. Our calculus gives a common setting for CDCL(T)-style SMT solving, a range of instantiation-based procedures, and non-ground clause learning, and we prove that it simulates CDCL, SCL(FOL), SCL(T), and even Resolution.

1. Introduction

Satisfiability Modulo Theories (SMT) has become a central tool in automated reasoning, both in its ground form and in the presence of quantifiers. At the ground level, much of this success is due to CDCL(T) [30, 4], which combines conflict-driven clause learning (CDCL) [26] with dedicated theory reasoning. To handle non-ground problems, this architecture is commonly extended by quantifier instantiation [15, 19, 20, 35, 6]: quantified formulas are instantiated, and the resulting ground problems are solved by CDCL(T). Treating solver components, such as CDCL(T), as black boxes is a powerful design principle in automated reasoning. At the same time, many advances in solver efficiency come from integrating these components more tightly with the surrounding search procedure. This observation also motivates a closer integration of quantifier instantiation with CDCL(T). In current SMT solving, quantified clauses are instantiated and the resulting ground conflicts are analyzed by CDCL(T), yielding learned ground clauses. Our goal is to lift this learning step to the non-ground clauses from which the conflicting instances originate. The motivation is not only conceptual: non-ground learning can yield exponentially shorter refutations than purely ground learning [32].

To formalize this idea, we introduce the calculus ICLF (Instantiation-based Clause Learning Framework). The input to ICLF is a first-order clause set modulo theories. A state consists of three main components: a set N of possibly non-ground clauses, initially containing the input clauses; a set G of ground instances of clauses in N, initially empty; and a ground partial model Γ\Gamma, called the trail, also initially empty. The rules of ICLF fall into four groups. Instantiation rules create and delete ground instances of clauses in N. Ground rules build a partial model for G in the style of CDCL, by decisions and propagations. Theory rules, such as T-Propagate and T-Conflict, connect this ground search to a theory solver. Here ICLF abstracts from the concrete theory, or combination of theories, and from the complications involved in theory combination [29, 39, 33, 22]. Finally, conflict analysis rules derive learned clauses. The key point is that, although the clauses in G are ground, they remain linked to their non-ground origins in N. During conflict analysis, resolution is therefore performed on these original clauses, not only on their ground instances.

For example, assume that the trail contains, among others, the literals h(a)=g(a)h(a) = g(a), h(a)=ah(a) = a, and g(a)≠ag(a) \neq a. These literals are inconsistent in the theory of equality, since they contradict transitivity. In ICLF, this can be detected by applying T-Conflict with the closure x2≠x3∨x2≠x4∨x3=x4⋅{x2↦h(a),x3↦g(a),x4↦a}x_2 \neq x_3 \lor x_2 \neq x_4 \lor x_3 = x_4 \cdot \{x_2 \mapsto h(a), x_3 \mapsto g(a), x_4 \mapsto a\}, a theory lemma expressing transitivity of equality. We write C⋅σC \cdot \sigma for a clause CC together with a grounding substitution σ\sigma. The instantiated clause CσC\sigma is used for the ground search, while the associated non-ground clause CC is retained for conflict analysis and resolution. Now assume that h(a)=g(a)h(a) = g(a) was propagated from the closure c≠d∨h(x1)=g(x1)⋅{x1↦a}c \neq d \lor h(x_1) = g(x_1) \cdot \{x_1 \mapsto a\}. An ICLF resolution step unifies the contradictory literals h(x1)=g(x1)h(x_1) = g(x_1) and x2≠x3x_2 \neq x_3, for instance using the most general unifier {x2↦h(x1),x3↦g(x1)}\{x_2 \mapsto h(x_1), x_3 \mapsto g(x_1)\}, and derives the clause c≠d∨h(x1)≠x4∨g(x1)=x4c \neq d \lor h(x_1) \neq x_4 \lor g(x_1) = x_4. Thus, conflict analysis derives a non-ground clause from a ground conflict.

For first-order clause learning, redundancy is a central issue: a learned clause should ideally not be implied by smaller clauses that are already available. In superposition-based theorem proving [1, 31], redundancy elimination is essential for controlling the search space, but tests such as forward subsumption can be expensive. Simple Clause Learning (SCL) [16, 13], a recent approach that lifts ideas from CDCL to first-order logic by guiding non-ground resolution with a ground partial model, avoids this problem in a different way: its learned clauses are non-redundant by construction. This makes SCL an important starting point for our work. At the same time, SCL is designed around direct reasoning with non-ground clauses; all non-ground clauses have to be considered for propagations and conflicts and conflict analysis leaves little freedom. The goal of ICLF is to keep the useful non-redundancy guarantees of SCL while allowing the ground search to remain close to CDCL(T). Our basic strategy [Definition 2] restricts the rules only enough to ensure that learned clauses are non-redundant with respect to the current set G of ground instances [Theorem 11]. Thus, implementations can focus propagation and conflict search on G and use efficient techniques for ground reasoning, without constantly inspecting the full non-ground clause set N. We also define a stronger, first-order aware strategy [Definition 17], which additionally takes N into account and guarantees non-redundancy with respect to N [Theorem 18]. This strategy is closer in spirit to SCL, but still leaves more freedom in conflict analysis. Finally, ICLF contains multiple backtracking rules. They capture CDCL/CDCL(T)-style backtracking, first-order backtracking in the spirit of SCL, and a way to incorporate chronological backtracking [28, 27] into SMT solving.

This flexibility makes ICLF a common setting for several forms of model-based reasoning. In the propositional case, it simulates CDCL. For first-order logic, it simulates SCL and Resolution. Moreover, it simulates clause learning in SCL(T) [11], an adaptation of SCL to the fragment of first-order logic modulo theories without uninterpreted functions and constants. It also captures CDCL(T)-style reasoning on ground clauses modulo theories. Finally, ICLF can be seen as a formal setting for studying a range of instantiation-based SMT procedures: although quantifier instantiation is a standard practical approach, it is usually presented through concrete algorithms and solver architectures rather than as one fixed calculus. In this sense, ICLF is intended as a foundational framework: it identifies which rule restrictions are needed for soundness, non-redundant learning, and termination under suitable restrictions, and which choices can instead be left to strategies and implementations.

The paper is organized as follows. In Section 3, we present the calculus ICLF and establish, among other properties, soundness [Theorem 6], termination under suitable restrictions [Theorem 14], and completeness under suitable restrictions [Corollary 16]. In Section 4, we show that ICLF simulates the other calculi mentioned above. This is an extended version of a paper accepted at LPAR 2026 [9]. It contains further examples, lemmas, and explanations in the appendix, as well as all proofs that were omitted from the LPAR paper.

References (37)