Denotational and operational semantics for interaction languages: Application to trace analysis

被引:1
|
作者
Mahe, Erwan [1 ]
Gaston, Christophe [1 ]
Le Gall, Pascale [2 ]
机构
[1] Univ Paris Saclay, CEA, List, F-91120 Palaiseau, France
[2] Univ Paris Saclay, Cent Supelec, F-91192 Gif Sur Yvette, France
关键词
Interactions; Sequence diagrams; Formal language; Denotational semantics; Operational semantics; SEQUENCE DIAGRAMS;
D O I
10.1016/j.scico.2023.103034
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Graphical depictions of distributed systems' behaviors in the form of Sequence Diagrams (SD) are widely used, with formalisms such as Message Sequence Charts (MSC) or UML-SD. Yet, only restricted subsets of these languages are associated to formal semantics, most of which are given by translation towards other formalisms. These translational approaches are the only ones enabling formal verification thanks to the ecosystem and tools associated to the target formalism. However, traceability of SD concepts is lost and the translation of some operators, in particular the weakly sequential loop, is problematic. In this paper, we define an Interaction Language to encode SD and ground it formally by associating it to three different semantics which we prove to be equivalent. A "denotational" semantics, relying on composing operators over sets of traces (sequences of atomic actions) allows one to reason on algebraic properties of SD. A structural "operational" semantics apprehends SD as executable objects which can express traces one action after the other. It also bridges the gap between the two other semantics and enables proving their equivalence. A functional style "execution" semantics separates two concerns intertwined in the operational semantics that is: identifying immediately executable actions (frontier actions) and computing follow-up SD which specify continuations of behaviors. The use of positions to identify frontier actions resolves non determinism as every distinct occurrence of these actions have unique positions and are associated to a unique follow-up SD. Additionally, this enables visualizing frontier actions in SD as well as the execution of SD.These three semantics constitute a framework which enable using SD directly for formal verification. Traceability of SD concepts and executed actions is preserved and the weakly sequential loops are treated as any other operator.
引用
收藏
页数:31
相关论文
共 50 条
  • [1] Equivalence of Denotational and Operational Semantics for Interaction Languages
    Mahe, Erwan
    Gaston, Christophe
    Le Gall, Pascale
    [J]. THEORETICAL ASPECTS OF SOFTWARE ENGINEERING, TASE 2022, 2022, 13299 : 113 - 130
  • [2] DENOTATIONAL AND OPERATIONAL SEMANTICS FOR PROLOG
    DEBRAY, SK
    MISHRA, P
    [J]. JOURNAL OF LOGIC PROGRAMMING, 1988, 5 (01): : 61 - 91
  • [3] DENOTATIONAL SEMANTICS OF QUERY LANGUAGES
    SUBIETA, K
    [J]. INFORMATION SYSTEMS, 1987, 12 (01) : 69 - 82
  • [4] An Introduction to metric semantics: operational and denotational models for programming and specification languages
    van Breugel, F
    [J]. THEORETICAL COMPUTER SCIENCE, 2001, 258 (1-2) : 1 - 98
  • [5] DENOTATIONAL SEMANTICS OF PROGRAMMING LANGUAGES
    TENNENT, RD
    [J]. COMMUNICATIONS OF THE ACM, 1976, 19 (08) : 437 - 453
  • [6] OPERATIONAL AND DENOTATIONAL SEMANTICS OF PROLOG
    ARBAB, B
    BERRY, DM
    [J]. JOURNAL OF LOGIC PROGRAMMING, 1987, 4 (04): : 309 - 329
  • [7] Trace Types and Denotational Semantics for Sound Programmable Inference in Probabilistic Languages
    Lew, Alexander K.
    Cusumano-Towner, Marco F.
    Sherman, Benjamin
    Carbin, Michael
    Mansinghka, Vikash K.
    [J]. PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2020, 4
  • [8] FROM OPERATIONAL TO DENOTATIONAL SEMANTICS
    SMITH, SF
    [J]. LECTURE NOTES IN COMPUTER SCIENCE, 1992, 598 : 54 - 76
  • [9] FROM DENOTATIONAL TO OPERATIONAL AND AXIOMATIC SEMANTICS FOR ALGOL-LIKE LANGUAGES - AN OVERVIEW
    TRAKHTENBROT, BA
    HALPERN, JY
    MEYER, AR
    [J]. LECTURE NOTES IN COMPUTER SCIENCE, 1984, 164 : 474 - 500
  • [10] Operational and denotational semantics for the box algebra
    Koutny, M
    Best, E
    [J]. THEORETICAL COMPUTER SCIENCE, 1999, 211 (1-2) : 1 - 83