Constrained Horn clauses
Constrained Horn clauses model a fragment of first-order logic with applications to program verification and synthesis. They are named after the general Horn clause, which in turn is named after logician Alfred Horn. Constrained Horn clauses, specifically, can be seen as a form of constraint logic programming.
Definition
A constrained Horn clause is a formula of the formwhere is a constraint in some first-order theory, are predicates, and are universally-quantified variables. The addition of constraint makes it a generalization of the plain Horn clause.
Decidability
The satisfiability of constrained Horn clauses with constraints from linear integer arithmetic is undecidable.Solvers
There are several automated solvers for CHCs, including the SPACER engine of Z3.CHC-COMP is an annual competition of CHC solvers. CHC-COMP has run every year since 2018.