A Relational Modal Logic for Higher-Order Stateful ADTs

被引:1
|
作者
Dreyer, Derek [1 ]
Neis, Georg [1 ]
Rossberg, Andreas [1 ]
Birkedal, Lars [1 ]
机构
[1] ITU Copenhagen, Copenhagen, Denmark
关键词
Languages; Theory; Verification; Abstract data types; step-indexed logical relations; modal logic; separation logic; Plotkin-Abadi logic; local state;
D O I
10.1145/1707801.1706323
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The method of logical relations is a classic technique for proving the equivalence of higher-order programs that implement the same observable behavior but employ different internal data representations. Although it was originally studied for pure, strongly normalizing languages like System F, it has been extended over the past two decades to reason about increasingly realistic languages. In particular, Appel and McAllester's idea of step-indexing has been used recently to develop syntactic Kripke logical relations for ML-like languages that mix functional and imperative forms of data abstraction. However, while step-indexed models are powerful tools, reasoning with them directly is quite painful, as one is forced to engage in tedious step-index arithmetic to derive even simple results. In this paper, we propose a logic LADR for equational reasoning about higher-order programs in the presence of existential type abstraction, general recursive types, and higher-order mutable state. LADR exhibits a novel synthesis of features from Plotkin-Abadi logic, Godel-Lob logic, S4 modal logic, and relational separation logic. Our model of LADR is based on Ahmed, Dreyer, and Rossberg's state-of-the-art step-indexed Kripke logical relation, which was designed to facilitate proofs of representation independence for "state-dependent" ADTs. LADR enables one to express such proofs at a much higher level, without counting steps or reasoning about the subtle, step-stratified construction of possible worlds.
引用
收藏
页码:185 / 198
页数:14
相关论文
共 50 条
  • [1] A Relational Modal Logic for Higher-Order Stateful ADTs
    Dreyer, Derek
    Neis, Georg
    Rossberg, Andreas
    Birkedal, Lars
    [J]. POPL'10: PROCEEDINGS OF THE 37TH ANNUAL ACM SIGPLAN-SIGACT SYMPOSIUM ON PRINCIPLES OF PROGRAMMING LANGUAGES, 2010, : 185 - 198
  • [2] A relational realizability model for higher-order stateful ADTs
    Birkedal, Lars
    Stovring, Kristian
    Thamsborg, Jacob
    [J]. JOURNAL OF LOGIC AND ALGEBRAIC PROGRAMMING, 2012, 81 (04): : 491 - 521
  • [4] 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
  • [5] HAUPTSATZ FOR HIGHER-ORDER MODAL LOGIC
    NISHIMURA, H
    [J]. JOURNAL OF SYMBOLIC LOGIC, 1983, 48 (03) : 744 - 751
  • [6] Higher-order modal logic - A sketch
    Fitting, H
    [J]. AUTOMATED DEDUCTION IN CLASSICAL AND NON-CLASSICAL LOGICS, 2000, 1761 : 23 - 38
  • [7] REMARKS ON HIGHER-ORDER MODAL LOGIC
    DACOSTA, NCA
    DEALCANTARA, LP
    [J]. ACTA CIENTIFICA VENEZOLANA, 1987, 38 (02): : 282 - 284
  • [8] Modal Pluralism and Higher-Order Logic
    Clarke-Doane, Justin
    McCarthy, William
    [J]. PHILOSOPHICAL PERSPECTIVES, 2022, 36 (01) : 31 - 58
  • [9] RESULTS IN HIGHER-ORDER MODAL LOGIC
    GALLIN, D
    [J]. JOURNAL OF SYMBOLIC LOGIC, 1974, 39 (01) : 197 - 198
  • [10] TOPOS SEMANTICS FOR HIGHER-ORDER MODAL LOGIC
    Awodey, Steve
    Kishida, Kohei
    Kotzsch, Hans-Christoph
    [J]. LOGIQUE ET ANALYSE, 2014, (228) : 591 - 636