Defunctionalization of Higher-Order Constrained Horn Clauses
Long Pham, Steven J. Ramsay, C.-H. Luke Ong

TL;DR
This paper introduces a novel defunctionalization algorithm that reduces higher-order constrained Horn clauses to first-order ones, enabling efficient SMT solving and verified for soundness and completeness.
Contribution
The paper presents the first sound and complete defunctionalization algorithm for higher-order constrained Horn clauses, along with a prototype implementation and empirical evaluation.
Findings
DefMono successfully defunctionalizes higher-order Horn clauses.
The defunctionalization preserves solvability in both directions.
Empirical results show competitive performance with existing tools.
Abstract
Building on the successes of satisfiability modulo theories (SMT), Bj{\o}rner et al. initiated a research programme advocating Horn constraints as a suitable basis for automatic program verification. The notion of first-order constrained Horn clauses has recently been extended to higher-order logic by Cathcart Burn et al. To exploit the remarkable efficiency of SMT solving, a natural approach to solve systems of higher-order Horn constraints is to reduce them to systems of first-order Horn constraints. This paper presents a defunctionalization algorithm to achieve the reduction. Given a well-sorted higher-order constrained Horn clause (HoCHC) problem instance, the defunctionalization algorithm constructs a first-order well-sorted constrained Horn clause problem. In addition to well-sortedness of the algorithm's output, we prove that if an input HoCHC is solvable, then the result of…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsLogic, programming, and type systems · Formal Methods in Verification · Model-Driven Software Engineering Techniques
