Encoding Abstract Syntax Without Fresh Names

被引:1
|
作者
Lakin, Matthew R. [1 ]
Pitts, Andrew M. [1 ]
机构
[1] Univ Cambridge, Comp Lab, Cambridge CB2 3QG, England
基金
英国工程与自然科学研究理事会;
关键词
Meta-programming; Alpha-equivalence; Nominal abstract syntax; SEMANTICS;
D O I
10.1007/s10817-011-9220-7
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
This paper introduces a variant of nominal abstract syntax in which bindable names are represented by normal meta-variables as opposed to a separate class of globally fresh names. Distinct meta-variables can be instantiated with the same concrete name, which we call aliasing. The possible aliasing patterns are controlled by explicit constraints on the distinctness (freshness) of names. This approach has already been used in the nominal meta-programming language alpha ML. We recap that language and develop a theory of contextual equivalence for it. The central result of the paper is that abstract syntax trees (ASTs) involving binders can be encoded into alpha ML in such a way that alpha-equivalence of ASTs corresponds with contextual equivalence of their encodings. This is novel because the encoding does not rely on the existence of globally fresh names and fresh name generation, which are fundamental to the correctness of the pre-existing encoding of abstract syntax into FreshML.
引用
收藏
页码:115 / 140
页数:26
相关论文
共 50 条
  • [41] ABSTRACT SYNTAX AND LATIN COMPLEMENTATION - LAKOFF,RT
    KELLY, DH
    GENERAL LINGUISTICS, 1972, 12 (02): : 106 - 112
  • [42] Clone detection using abstract syntax trees
    Baxter, ID
    Yahin, A
    Moura, L
    Sant'Anna, M
    Bier, L
    INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE, PROCEEDINGS, 1998, : 368 - 377
  • [43] Abstract syntax driven approach for language composition
    Chodarev, Sergej
    Lakatos, Dominik
    Porubaen, Jaroslav
    Kollar, Jan
    OPEN COMPUTER SCIENCE, 2014, 4 (03) : 107 - 117
  • [44] A Generic Abstract Syntax Model for Embedded Languages
    Axelsson, Emil
    ACM SIGPLAN NOTICES, 2012, 47 (09) : 323 - 334
  • [45] An EMOF-Compliant Abstract Syntax for Bigraphs
    Kehrer, Timo
    Tsigkanos, Christos
    Ghezzi, Carlo
    ELECTRONIC PROCEEDINGS IN THEORETICAL COMPUTER SCIENCE, 2016, (231): : 16 - 30
  • [46] ABSTRACT SYNTAX AND LATIN COMPLEMENTATION - LAKOFF,RT
    GREEN, GM
    LANGUAGE, 1970, 46 (01) : 149 - 167
  • [47] Equivariant syntax and semantics - (Abstract of invited talk)
    Pitts, AM
    AUTOMATA, LANGUAGES AND PROGRAMMING, 2002, 2380 : 32 - 36
  • [48] Focusing and Higher-Order Abstract Syntax
    Zeilberger, Noam
    POPL'08: PROCEEDINGS OF THE 35TH ANNUAL ACM SIGPLAN-SIGACT SYMPOSIUM ON PRINCIPLES OF PROGRAMMING LANGUAGES, 2008, : 359 - 369
  • [49] A Fast Abstract Syntax Tree Interpreter for R
    Kalibera, Tomas
    Maj, Petr
    Morandat, Floreal
    Vitek, Jan
    ACM SIGPLAN NOTICES, 2014, 49 (07) : 89 - 102
  • [50] fAST: Flattening Abstract Syntax Trees for Efficiency
    Yu, Yijun
    2019 IEEE/ACM 41ST INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: COMPANION PROCEEDINGS (ICSE-COMPANION 2019), 2019, : 278 - 279