A Relational Program Logic with Data Abstraction and Dynamic Framing

被引:1
|
作者
Banerjee, Anindya [1 ]
Nagasamudram, Ramana [2 ]
Naumann, David A. [2 ]
Nikouei, Mohammad [2 ]
机构
[1] IMDEA Software Inst, Madrid, Spain
[2] Stevens Inst Technol, Hoboken, NJ 07030 USA
基金
美国国家科学基金会;
关键词
Relational properties; relational verification; logics of programs; data abstraction; representation independence; product programs; automated verification; SECURE INFORMATION-FLOW; SEPARATION LOGIC; CORRECTNESS; VALIDATION; PROOFS; FRAMES;
D O I
10.1145/3551497
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In a paper published in 1972, Hoare articulated the fundamental notions of hiding invariants and simulations. Hiding: invariants on encapsulated data representations need not be mentioned in specifications that comprise the API of a module. Simulation: correctness of a new data representation and implementation can be established by proving simulation between the old and new implementations using a coupling relation defined on the encapsulated state. These results were formalized semantically and for a simple model of state, though the paper claimed this could be extended to encompass dynamically allocated objects. In recent years, progress has been made toward formalizing the claim, for simulation, though mainly in semantic developments. In this article, hiding and simulation are combined with the idea in Hoare's 1969 paper: a logic of programs. For an object-based language with dynamic allocation, we introduce a relational Hoare logic with stateful frame conditions that formalizes encapsulation, hiding of invariants, and couplings that relate two implementations. Relations and other assertions are expressed in first-order logic. Specifications can express a wide range of relational properties such as conditional equivalence and noninterference with declassification. The proof rules facilitate relational reasoning by means of convenient alignments and are shown sound with respect to a conventional operational semantics. A derived proof rule for equivalence of linked programs directly embodies representation independence. Applicability to representative examples is demonstrated using an SMT-based implementation.
引用
收藏
页数:136
相关论文
共 50 条
  • [41] Metaphoric extension, relational categories, and abstraction
    Gentner, Dedre
    Asmuth, Jennifer
    LANGUAGE COGNITION AND NEUROSCIENCE, 2019, 34 (10) : 1298 - 1307
  • [42] Video abstraction based on relational graphs
    Zhai, Su-Lan
    Luo, Bin
    Tang, Jin
    Zhang, Chun-Yan
    PROCEEDINGS OF THE FOURTH INTERNATIONAL CONFERENCE ON IMAGE AND GRAPHICS, 2007, : 827 - +
  • [43] ABSTRACTION ALGORITHM FOR COMBINATORY LOGIC
    ABDALI, SK
    JOURNAL OF SYMBOLIC LOGIC, 1976, 41 (01) : 222 - 224
  • [44] Separation Logic, Abstraction and Inheritance
    Parkinson, Matthew J.
    Bierman, Gavin M.
    POPL'08: PROCEEDINGS OF THE 35TH ANNUAL ACM SIGPLAN-SIGACT SYMPOSIUM ON PRINCIPLES OF PROGRAMMING LANGUAGES, 2008, : 75 - 86
  • [45] Abstraction, truth, and free logic
    Assadian, Bahram
    PHILOSOPHICAL QUARTERLY, 2024,
  • [46] Separation logic, abstraction and inheritance
    Parkinson, Matthew J.
    Bierman, Gavin M.
    ACM SIGPLAN NOTICES, 2008, 43 (01) : 75 - 86
  • [47] MODULARIZATION AND ABSTRACTION IN LOGIC PROGRAMMING
    FURUKAWA, K
    NAKAJIMA, R
    YONEZAWA, A
    NEW GENERATION COMPUTING, 1983, 1 (02) : 169 - 177
  • [48] Quotient Dynamics: The Logic of Abstraction
    Baltag, Alexandru
    Bezhanishvili, Nick
    Ilin, Julia
    Ozgun, Aybuke
    LOGIC, RATIONALITY, AND INTERACTION, LORI 2017, 2017, 10455 : 181 - 194
  • [49] GRAPH ABSTRACTION FOR A MODAL LOGIC
    Ehrig, Hartmut
    Boneva, Iovka
    Kreiker, Joerg
    Kurban, Marcos E.
    Rensink, Arend
    BULLETIN OF THE EUROPEAN ASSOCIATION FOR THEORETICAL COMPUTER SCIENCE, 2009, (97): : 106 - 116
  • [50] COPPEL,JEANNE - A LOGIC OF ABSTRACTION
    COPPEL, G
    MANDELBROJT, J
    CIMAISE, 1994, 41 (230): : 5 - 16