RELOC RELOADED: A MECHANIZED RELATIONAL LOGIC FOR FINE-GRAINED CONCURRENCY AND LOGICAL ATOMICITY

被引:13
作者
Frumin, Dan [1 ,2 ]
Krebbers, Robbert [2 ,3 ]
Birkedal, Lars [4 ]
机构
[1] Univ Groningen, Groningen, Netherlands
[2] Radboud Univ Nijmegen, Nijmegen, Netherlands
[3] Delft Univ Technol, Delft, Netherlands
[4] Aarhus Univ, Aarhus, Denmark
基金
荷兰研究理事会;
关键词
separation logic; concurrency; program refinement; Iris; Coq; MODEL CHECKING; LINEARIZABILITY; ABSTRACTION; SEMANTICS; REFINEMENT; PROOFS; STATE;
D O I
10.46298/LMCS-17(3:9)2021
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We present a new version of ReLoC: a relational separation logic for proving refinements of programs with higher-order state, fine-grained concurrency, polymorphism and recursive types. The core of ReLoC is its refinement judgment e e' :T, which states that a program e refines a program e' at type T. ReLoC provides type-directed structural rules and symbolic execution rules in separation-logic style for manipulating the judgment, whereas in prior work on refinements for languages with higher-order state and concurrency, such proofs were carried out by unfolding the judgment into its definition in the model. ReLoC's abstract proof rules make it simpler to carry out refinement proofs, and enable us to generalize the notion of logically atomic specifications to the relational case, which we call logically atomic relational specifications. We build ReLoC on top of the Iris framework for separation logic in Coq, allowing us to leverage features of Iris to prove soundness of ReLoC, and to carry out refinement proofs in ReLoC. We implement tactics for interactive proofs in ReLoC, allowing us to mechanize several case studies in Coq, and thereby demonstrate the practicality of ReLoC. ReLoC Reloaded extends ReLoC (LICS'18) with various technical improvements, a new Coq mechanization, and support for Iris's prophecy variables. The latter allows us to carry out refinement proofs that involve reasoning about the program's future. We also expand ReLoC's notion of logically atomic relational specifications with a new flavor based on the HOCAP pattern by Svendsen et al.
引用
收藏
页数:59
相关论文
共 104 条
  • [1] THE EXISTENCE OF REFINEMENT MAPPINGS
    ABADI, M
    LAMPORT, L
    [J]. THEORETICAL COMPUTER SCIENCE, 1991, 82 (02) : 253 - 284
  • [2] A relational logic for higher-order programs
    Aguirre, Alejandro
    Barthe, Gilles
    Gaboardi, Marco
    Garg, Deepak
    Strub, Pierre-Yves
    [J]. JOURNAL OF FUNCTIONAL PROGRAMMING, 2019, 29
  • [3] Ahmed A, 2006, LECT NOTES COMPUT SC, V3924, P69
  • [4] Ahmed A.J., 2004, Semantics of types for mutable state
  • [5] A stratified semantics of general references embeddable in higher-order logic
    Ahmed, AJ
    Appel, AW
    Virga, R
    [J]. 17TH ANNUAL IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE, PROCEEDINGS, 2002, : 75 - 86
  • [6] State-Dependent Representation Independence
    Ahmed, Amal
    Dreyer, Derek
    Rossberg, Andreas
    [J]. ACM SIGPLAN NOTICES, 2009, 44 (01) : 340 - 353
  • [7] Ahmed A, 2008, ICFP'08: PROCEEDINGS OF THE 2008 SIGPLAN INTERNATIONAL CONFERENCE ON FUNCTIONAL PROGRAMMING, P157
  • [8] Amit D, 2007, LECT NOTES COMPUT SC, V4590, P477
  • [9] Appel AW, 2007, CONFERENCE RECORD OF POPL 2007: THE 34TH ACM SIGPLAN SIGACT SYMPOSIUM ON PRINCIPLES OF PROGAMMING LANGUAGES, P109
  • [10] An indexed model of recursive types for foundational proof-carrying code
    Appel, AW
    McAllester, D
    [J]. ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 2001, 23 (05): : 657 - 683