Collection analysis for Horn clause programs
Dale Miller (INRIA Futurs)

TL;DR
This paper introduces a method for analyzing Horn clause programs by approximating data structures with collections, enabling partial correctness proofs through a linear logic-based scheme that can be automated.
Contribution
It presents a novel collection analysis framework for Horn clauses using linear logic to facilitate automatic partial correctness verification.
Findings
Allows static analysis of data structure properties in logic programs
Uses linear logic to underpin the analysis scheme
Enables automation of correctness proofs for list and set operations
Abstract
We consider approximating data structures with collections of the items that they contain. For examples, lists, binary trees, tuples, etc, can be approximated by sets or multisets of the items within them. Such approximations can be used to provide partial correctness properties of logic programs. For example, one might wish to specify than whenever the atom is proved then the two lists and contain the same multiset of items (that is, is a permutation of ). If sorting removes duplicates, then one would like to infer that the sets of items underlying and are the same. Such results could be useful to have if they can be determined statically and automatically. We present a scheme by which such collection analysis can be structured and automated. Central to this scheme is the use of linear logic as a omputational logic underlying the logic of Horn clauses.
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.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNatural Language Processing Techniques · Topic Modeling · Logic, programming, and type systems
