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 条
  • [31] EXPRESSING PROGRAM LOOPING IN REGULAR DYNAMIC LOGIC
    MEYER, AR
    WINKLMANN, K
    THEORETICAL COMPUTER SCIENCE, 1982, 18 (03) : 301 - 323
  • [32] Abstraction as a Program
    Reust, Hans Rudolf
    ARTFORUM INTERNATIONAL, 2017, 55 (09): : 348 - 348
  • [33] Induction of Interpretable Possibilistic Logic Theories from Relational Data
    Kuzelka, Ondrej
    Davis, Jesse
    Schockaert, Steven
    PROCEEDINGS OF THE TWENTY-SIXTH INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE, 2017, : 1153 - 1159
  • [34] LOGIC FOR IMPROVING INTEGRITY CHECKING IN RELATIONAL DATA-BASES
    NICOLAS, JM
    ACTA INFORMATICA, 1982, 18 (03) : 227 - 253
  • [35] Relational Framing Theory and Coming-Out Narratives: A Data Analysis Activity
    Helens-Hart, Rose
    COMMUNICATION TEACHER, 2015, 29 (04) : 196 - 200
  • [36] Dynamic data envelopment analysis: A relational analysis
    Kao, Chiang
    EUROPEAN JOURNAL OF OPERATIONAL RESEARCH, 2013, 227 (02) : 325 - 330
  • [37] Nonparametric Bayes dynamic modelling of relational data
    Durante, Daniele
    Dunson, David B.
    BIOMETRIKA, 2014, 101 (04) : 883 - 898
  • [38] Effects of Training in Conditional Relational Framing on the Deictic Relational Responding
    Quiroga-Baquero, Luis A.
    Isabel Rendon, Maria
    Montoya-Rodriguez, Maria M.
    Salas-Cuervo, Daniel C.
    DIVERSITAS-PERSPECTIVAS EN PSICOLOGIA, 2022, 18 (01):
  • [39] Defining capitalism: The case for (relational) abstraction
    Potts, Shaina
    ENVIRONMENT AND PLANNING A-ECONOMY AND SPACE, 2019, 51 (05): : 1197 - 1200
  • [40] Predicate Pairing with Abstraction for Relational Verification
    De Angelis, Emanuele
    Fioravanti, Fabio
    Pettorossi, Alberto
    Proietti, Maurizio
    LOGIC-BASED PROGRAM SYNTHESIS AND TRANSFORMATION (LOPSTR 2017), 2018, 10855 : 289 - 305