The Next 700 Relational Program Logics

被引:19
|
作者
Maillard, Kenji [1 ,2 ]
Hritcu, Catalin [1 ]
Rivas, Exequiel [1 ]
Van Muylder, Antoine [1 ,3 ]
机构
[1] Inria Paris, Paris, France
[2] ENS Paris, Paris, France
[3] Univ Paris, Paris, France
基金
欧洲研究理事会;
关键词
program verification; relational program logics; side-effects; monads; state; I/O; nondeterrninism; probabilities; exceptions; dependent types; semantics; relative monads; foundations; INFORMATION-FLOW; DEPENDENT TYPES; SAFETY; VERIFICATION; MONADS; STATE;
D O I
10.1145/3371072
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We propose the first framework for defining relational program logics for arbitrary monadic effects. The framework is embedded within a relational dependent type theory and is highly expressive. At the semantic level, we provide an algebraic presentation of relational specifications as a class of relative monads, and link computations and specifications by introducing relational effect observations, which map pairs of monadic computations to relational specifications in a way that respects the algebraic structure. For an arbitrary relational effect observation, we generically define the core of a sound relational program logic, and explain how to complete it to a full-fledged logic for the monadic effect at hand. We show that this generic framework can be used to define relational program logics for effects as diverse as state, input-output, nondeterminism, and discrete probabilities. We, moreover, show that by instantiating our framework with state and unbounded iteration we can embed a variant of Benton's Relational Hoare Logic, and also sketch how to reconstruct Relational Hoare Type Theory. Finally, we identify and overcome conceptual challenges that prevented previous relational program logics from properly dealing with control effects, and are the first to provide a relational program logic for exceptions.
引用
收藏
页数:33
相关论文
共 50 条
  • [31] Fixpoint logics, relational machines, and computational complexity
    Abiteboul, S
    Vardi, MY
    Vianu, V
    JOURNAL OF THE ACM, 1997, 44 (01) : 30 - 56
  • [32] RELATIONAL PROOF SYSTEMS FOR SOME AI LOGICS
    ORLOWSKA, E
    LECTURE NOTES IN ARTIFICIAL INTELLIGENCE, 1991, 535 : 33 - 47
  • [33] Reasoning about relational granulation in modal logics
    Liau, CJ
    Lin, TY
    2005 IEEE INTERNATIONAL CONFERENCE ON GRANULAR COMPUTING, VOLS 1 AND 2, 2005, : 530 - 534
  • [34] Synthesising Terminating Tableau Calculi for Relational Logics
    Schmidt, Renate A.
    RELATIONAL AND ALGEBRAIC METHODS IN COMPUTER SCIENCE, 2011, 6663 : 40 - 49
  • [35] ALGEBRAIC RELATIONAL SEMANTICS FOR BASIC SUBSTRUCTURAL LOGICS
    Yang, Eunsuk
    LOGIQUE ET ANALYSE, 2020, (252) : 415 - 441
  • [36] Implicational Tonoid Logics: Algebraic and Relational Semantics
    Yang, Eunsuk
    Dunn, J. Michael
    LOGICA UNIVERSALIS, 2021, 15 (04) : 435 - 456
  • [37] Implicational Partial Galois Logics: Relational Semantics
    Eunsuk Yang
    J. Michael Dunn
    Logica Universalis, 2021, 15 : 457 - 476
  • [38] CONCURRENT PROGRAM SCHEMES AND THEIR LOGICS
    PELEG, D
    THEORETICAL COMPUTER SCIENCE, 1987, 55 (01) : 1 - 45
  • [39] Beyond the Next 700 IoT Platforms
    Taivalsaari, Antero
    Mikkonen, Tommi
    2017 IEEE INTERNATIONAL CONFERENCE ON SYSTEMS, MAN, AND CYBERNETICS (SMC), 2017, : 3529 - 3534
  • [40] ISABELLE - THE NEXT 700 THEOREM PROVERS
    PAULSON, LC
    LECTURE NOTES IN COMPUTER SCIENCE, 1988, 310 : 772 - 773