Data-Driven Abductive Inference of Library Specifications
Zhe Zhou, Robert Dickerson, Benjamin Delaware, Suresh Jagannathan

TL;DR
This paper introduces a novel data-driven abductive inference method that automatically infers precise library specifications to enable safe client verification, especially when source code is unavailable.
Contribution
It presents a new multi-abduction approach combining learning and SMT counterexamples to infer minimal, accurate specifications for data structure libraries without source code.
Findings
Effective in inferring specifications for OCaml data structures
Reduces overfitting through counterexample-guided refinement
Enables verification of client programs using inferred specs
Abstract
Programmers often leverage data structure libraries that provide useful and reusable abstractions. Modular verification of programs that make use of these libraries naturally rely on specifications that capture important properties about how the library expects these data structures to be accessed and manipulated. However, these specifications are often missing or incomplete, making it hard for clients to be confident they are using the library safely. When library source code is also unavailable, as is often the case, the challenge to infer meaningful specifications is further exacerbated. In this paper, we present a novel data-driven abductive inference mechanism that infers specifications for library methods sufficient to enable verification of the library's clients. Our technique combines a data-driven learning-based framework to postulate candidate specifications, along with…
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.
