Title
Automatic induction proofs of data-structures in imperative programs
Abstract
We consider the problem of automated reasoning about dynamically manipulated data structures. Essential properties are encoded as predicates whose definitions are formalized via user-defined recursive rules. Traditionally, proving relationships between such properties is limited to the unfold-and-match (U+M) paradigm which employs systematic transformation steps of folding/unfolding the rules. A proof, using U+M, succeeds when we find a sequence of transformations that produces a final formula which is obviously provable by simply matching terms. Our contribution here is the addition of the fundamental principle of induction to this automated process. We first show that some proof obligations that are dynamically generated in the process can be used as induction hypotheses in the future, and then we show how to use these hypotheses in an induction step which generates a new proof obligation aside from those obtained by using the fold/unfold operations. While the adding of induction is an obvious need in general, no automated method has managed to include this in a systematic and general way. The main reason for this is the problem of avoiding circular reasoning. We overcome this with a novel checking condition. In summary, our contribution is a proof method which – beyond U+M – performs automatic formula re-writing by treating previously encountered obligations in each proof path as possible induction hypotheses. In the practical evaluation part of this paper, we show how the commonly used technique of using unproven lemmas can be avoided, using realistic benchmarks. This not only removes the current burden of coming up with the appropriate lemmas, but also significantly boosts up the verification process, since lemma applications, coupled with unfolding, often induce a large search space. In the end, our method can automatically reason about a new class of formulas arising from practical program verification.
Year
DOI
Venue
2015
10.1145/2737924.2737984
PLDI
Keywords
Field
DocType
Data-structures,Induction Proofs,Separation
Automated reasoning,Data structure,Computer science,Mathematical induction,Automated proof checking,Theoretical computer science,Mathematical proof,Circular reasoning,Recursion,Lemma (mathematics)
Conference
Volume
Issue
ISSN
50
6
0362-1340
Citations 
PageRank 
References 
7
0.44
30
Authors
3
Name
Order
Citations
PageRank
Duc-Hiep Chu132917.31
Joxan Jaffar22350283.50
Minh-Thai Trinh3723.49