Denotational Semantics with Nominal Scott Domains

被引:3
|
作者
Loesch, Steffen [1 ]
Pitts, Andrew M. [1 ]
机构
[1] Univ Cambridge, Comp Lab, Cambridge CB2 1TN, England
关键词
Languages; Theory; Metaprogramming; denotational semantics; domain theory; full abstraction; nominal sets; symmetry; FULL ABSTRACTION; STRUCTURAL RECURSION; NAMES;
D O I
10.1145/2629529
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
When defining computations over syntax as data, one often runs into tedious issues concerning alpha-equivalence and semantically correct manipulations of binding constructs. Here we study a semantic framework in which these issues can be dealt with automatically by the programming language. We take the user-friendly "nominal" approach in which bound objects are named. In particular, we develop a version of Scott domains within nominal sets and define two programming languages whose denotational semantics are based on those domains. The first language, lambda nu-PCF, is an extension of Plotkin's PCF with names that can be swapped, tested for equality and locally scoped; although simple, it already exposes most of the semantic subtleties of our approach. The second language, PNA, extends the first with name abstraction and concretion so that it can be used for metaprogramming over syntax with binders. For both languages, we prove a full abstraction result for nominal Scott domains analogous to Plotkin's classic result about PCF and conventional Scott domains: two program phrases have the same observable operational behaviour in all contexts if and only if they denote equal elements of the nominal Scott domain model. This is the first full abstraction result we know of for languages combining higher-order functions with some form of locally scoped names which uses a domain theory based on ordinary extensional functions, rather than using the more intensional approach of game semantics. To obtain full abstraction, we need to add two functionals, one for existential quantification over names and one for "definite description" over names. Only adding one of them is not enough, as we give counter-examples to full abstraction in both cases.
引用
收藏
页数:46
相关论文
共 50 条
  • [31] OPERATIONAL AND DENOTATIONAL SEMANTICS OF PROLOG
    ARBAB, B
    BERRY, DM
    JOURNAL OF LOGIC PROGRAMMING, 1987, 4 (04): : 309 - 329
  • [32] A modular approach to denotational semantics
    Power, J
    Rosolini, G
    AUTOMATA, LANGUAGES AND PROGRAMMING, 1998, 1443 : 351 - 362
  • [33] ON INFINITE COMPUTATIONS IN DENOTATIONAL SEMANTICS
    DEBAKKER, JW
    MEYER, JJC
    ZUCKER, JI
    THEORETICAL COMPUTER SCIENCE, 1983, 26 (1-2) : 53 - 82
  • [34] Denotational semantics for timed testing
    Diaz, LFL
    Escrig, DD
    TRANSFORMATION-BASED REACTIVE SYSTEMS DEVELOPMENT, 1997, 1231 : 368 - 382
  • [35] A MODULAR APPROACH TO DENOTATIONAL SEMANTICS
    MOGGI, E
    LECTURE NOTES IN COMPUTER SCIENCE, 1991, 530 : 138 - 139
  • [36] Denotational semantics of hybrid automata
    Edalat, Abbas
    Pattinson, Dirk
    JOURNAL OF LOGIC AND ALGEBRAIC PROGRAMMING, 2007, 73 (1-2): : 3 - 21
  • [37] LOGICAL SEMANTICS AND DENOTATIONAL SEMANTICS OF PROLOG INTERPRETERS
    DELAHAYE, JP
    RAIRO-INFORMATIQUE THEORIQUE ET APPLICATIONS-THEORETICAL INFORMATICS AND APPLICATIONS, 1988, 22 (01): : 3 - 42
  • [38] Denotational Semantics for Symbolic Execution
    Voogd, Erik
    Klovstad, Asmund Aqissiaq Arild
    Johnsen, Einar Broch
    THEORETICAL ASPECTS OF COMPUTING, ICTAC 2023, 2023, 14446 : 370 - 387
  • [39] FROM OPERATIONAL TO DENOTATIONAL SEMANTICS
    SMITH, SF
    LECTURE NOTES IN COMPUTER SCIENCE, 1992, 598 : 54 - 76
  • [40] Denotational semantics of object specification
    Sernadas, A
    Sernadas, C
    Caleiro, C
    ACTA INFORMATICA, 1998, 35 (09) : 729 - 773