Abstract Representation of Binders in OCaml using the Bindlib Library

CoRR Pub Date : 2018-07-03 DOI:10.4204/EPTCS.274.4
Rodolphe Lepigre, Christophe Raffalli
{"title":"Abstract Representation of Binders in OCaml using the Bindlib Library","authors":"Rodolphe Lepigre, Christophe Raffalli","doi":"10.4204/EPTCS.274.4","DOIUrl":null,"url":null,"abstract":"The Bindlib library for OCaml provides a set of tools for the manipulation of data structures with variable binding. It is very well suited for the representation of abstract syntax trees, and has already been used for the implementation of half a dozen languages and proof assistants (including a new version of the logical framework Dedukti). Bindlib is optimised for fast substitution, and it supports variable renaming. Since the representation of binders is based on higher-order abstract syntax, variable capture cannot arise during substitution. As a consequence, variable names are not updated at substitution time. They can however be explicitly recomputed to avoid \"visual capture\" (i.e., distinct variables with the same apparent name) when a data structure is displayed.","PeriodicalId":10720,"journal":{"name":"CoRR","volume":"347 1","pages":"42-56"},"PeriodicalIF":0.0000,"publicationDate":"2018-07-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"4","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"CoRR","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.4204/EPTCS.274.4","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 4

Abstract

The Bindlib library for OCaml provides a set of tools for the manipulation of data structures with variable binding. It is very well suited for the representation of abstract syntax trees, and has already been used for the implementation of half a dozen languages and proof assistants (including a new version of the logical framework Dedukti). Bindlib is optimised for fast substitution, and it supports variable renaming. Since the representation of binders is based on higher-order abstract syntax, variable capture cannot arise during substitution. As a consequence, variable names are not updated at substitution time. They can however be explicitly recomputed to avoid "visual capture" (i.e., distinct variables with the same apparent name) when a data structure is displayed.
使用Bindlib库的OCaml中binder的抽象表示
OCaml的Bindlib库提供了一组工具,用于使用变量绑定操作数据结构。它非常适合抽象语法树的表示,并且已经被用于实现六种语言和证明助手(包括逻辑框架Dedukti的新版本)。Bindlib针对快速替换进行了优化,并支持变量重命名。由于绑定的表示基于高阶抽象语法,因此在替换期间不会出现变量捕获。因此,变量名不会在替换时更新。但是,当显示数据结构时,可以显式地重新计算它们,以避免“视觉捕获”(即,具有相同表面名称的不同变量)。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信