The representational adequacy of HYBRID

被引:4
作者
Crole, R. L. [1 ]
机构
[1] Univ Leicester, Dept Comp Sci, Leicester LE1 7RH, Leics, England
关键词
DE-BRUIJN INDEXES; NOMINAL TECHNIQUES; RECURSION; CALCULUS;
D O I
10.1017/S0960129511000041
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
The HYBRID system (Ambler et al. 2002b), implemented within Isabelle/HOL, allows object logics to be represented using higher order abstract syntax (HOAS), and reasoned about using tactical theorem proving in general, and principles of (co)induction in particular. The form of HOAS provided by HYBRID is essentially a lambda calculus with constants. Of fundamental interest is the form of the lambda abstractions provided by HYBRID. The user has the convenience of writing lambda abstractions using names for the binding variables. However, each abstraction is actually a definition of a de Bruijn expression, and HYBRID can unwind the user's abstractions (written with names) to machine friendly de Bruijn expressions (without names). In this sense the formal system contains a hybrid of named and nameless bound variable notation. In this paper, we present a formal theory in a logical framework, which can be viewed as a model of core HYBRID, and state and prove that the model is representationally adequate for HOAS. In particular, it is the canonical translation function from lambda-expressions to HYBRID that witnesses adequacy. We also prove two results that characterise how HYBRID represents certain classes of lambda-expression. We provide the first detailed proof to be published that proper locally nameless de Bruijn expressions and alpha-equivalence classes of lambda-expressions are in bijective correspondence. This result is presented as a form of de Bruijn representational adequacy, and is a key component of the proof of HYBRID adequacy. The HYBRID system contains a number of different syntactic classes of expression, and associated abstraction mechanisms. Hence, this paper also aims to provide a self-contained theoretical introduction to both the syntax and key ideas of the system. Although this paper will be of considerable interest to those who wish to work with Hybrid in Isabelle/HOL, a background in automated theorem proving is not essential.
引用
收藏
页码:585 / 646
页数:62
相关论文
共 75 条
[1]  
Aczel P, 1977, HDB MATH LOGIC
[2]  
AMBLER SJ, 2002, SPRINGER VERLAG LECT, V2410, P13
[3]  
AMBLER SJ, 2002, ELECT NOTES THEORETI, V70
[4]  
AMBLER SJ, 2004, COMP SCI LOG 8 KURT, P83
[5]  
ANDERSON P, 2004, SPRINGER VERLAG LECT, V3223
[6]  
[Anonymous], 1972, INDAGATIONES MATHEMA, DOI DOI 10.1016/1385-7258(72)90034-0
[7]   Engineering formal metatheory [J].
Aydemir, Brian ;
Chargueraud, Arthur ;
Pierce, Benjamin C. ;
Pollack, Randy ;
Weirich, Stephanie .
ACM SIGPLAN NOTICES, 2008, 43 (01) :3-15
[8]  
BERGHOFER S, 2008, P 23 IEEE S LOG COMP, P45
[9]  
BERGHOFER S, 2010, MECH METATHEORY LF
[10]   A Head-to-Head Comparison of de Bruijn Indices and Names [J].
Berghofer, Stefan ;
Urban, Christian .
ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2007, 174 (05) :53-67