Compositional Soundness Proofs of Abstract Interpreters

被引:8
|
作者
Keidel, Sven [1 ]
Poulsen, Casper Bach [1 ]
Erdweg, Sebastian [1 ]
机构
[1] Delft Univ Technol, Delft, Netherlands
来源
PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES | 2018年
关键词
Abstract Interpretation; Soundness;
D O I
10.1145/3236767
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The Abstract interpretation is a technique for developing static analyses. Yet, proving abstract interpreters sound is challenging for interesting analyses, because of the high proof complexity and proof effort. To reduce complexity and effort, we propose a framework for abstract interpreters that makes their soundness proof compositional. Key to our approach is to capture the similarities between concrete and abstract interpreters in a single shared interpreter, parameterized over an arrow-based interface. In our framework, a soundness proof is reduced to proving reusable soundness lemmas over the concrete and abstract instances of this interface; the soundness of the overall interpreters follows from a generic theorem. To further reduce proof effort, we explore the relationship between soundness and parametricity. Parametricity not only provides us with useful guidelines for how to design non-leaky interfaces for shared interpreters, but also provides us soundness of shared pure functions as free theorems. We implemented our framework in Haskell and developed a k-CFA analysis for PCF and a tree-shape analysis for Stratego. We were able to prove both analyses sound compositionally with manageable complexity and effort, compared to a conventional soundness proof.
引用
收藏
页数:26
相关论文
共 50 条
  • [21] Compositional proofs for concurrent objects
    James, J
    Singh, A
    COMPOSITIONALITY: THE SIGNIFICANT DIFFERENCE, 1998, 1536 : 301 - 326
  • [22] ABSTRACT IMPLEMENTATIONS AND CORRECTNESS PROOFS
    BERNOT, G
    BIDOIT, M
    CHOPPY, C
    LECTURE NOTES IN COMPUTER SCIENCE, 1986, 210 : 236 - 251
  • [23] ABSTRACT IMPLEMENTATIONS AND THEIR CORRECTNESS PROOFS
    NOURANI, CF
    JOURNAL OF THE ACM, 1983, 30 (02) : 343 - 359
  • [24] AN ABSTRACT SETTING FOR HENKIN PROOFS
    GOLDBLATT, R
    TOPOI-AN INTERNATIONAL REVIEW OF PHILOSOPHY, 1984, 3 (01): : 37 - 41
  • [25] CORRECTNESS PROOFS FOR ABSTRACT IMPLEMENTATIONS
    BERNOT, G
    INFORMATION AND COMPUTATION, 1989, 80 (02) : 121 - 151
  • [26] Proofs, programs and abstract complexity
    Beckmann, Arnold
    Computer Science Logic, Proceedings, 2007, 4646 : 4 - 5
  • [27] TVLA: A system for generating abstract interpreters
    Lev-Ami, T
    Manevich, R
    Sagiv, M
    BUILDING THE INFORMATION SOCIETY, 2004, 156 : 367 - 375
  • [28] Generalized Special-Sound Interactive Proofs and Their Knowledge Soundness
    Attema, Thomas
    Fehr, Serge
    Resch, Nicolas
    THEORY OF CRYPTOGRAPHY, TCC 2023, PT III, 2023, 14371 : 424 - 454
  • [29] COMPOSITIONAL PROOFS BY PARTIAL SPECIFICATION OF PROCESSES
    LARSEN, KG
    THOMSEN, B
    LECTURE NOTES IN COMPUTER SCIENCE, 1988, 324 : 414 - 423
  • [30] Schematic Program Proofs with Abstract Execution
    Steinhoefel, Dominic
    Haehnle, Reiner
    JOURNAL OF AUTOMATED REASONING, 2024, 68 (02)