arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2301.12852cs.PL
收藏

类型论作为一种语言学

Type Theory as a Language Workbench

Jan de Muijnck-Hughes, Guillaume Allais, Edwin Brady

摘要:

语言工作台为语言设计人员提供了一个创建DSL的表达环境。类似地,对机械化元理论的研究表明,依赖类型语言如何提供表达环境来形式化和研究DSL及其元理论属性。但是,我们能说依赖类型的语言有资格作为语言工作台吗?我们说是的!我们已经开发了一个典型的DSL称为Velo,展示不仅依赖类型的技术来实现和操作IR,但依赖类型的语言,使罚款语言工作台。Velo是一种简单的验证语言,具有良好类型的漏洞,并带有完整的编译器管道:解析器,阐述器,REPL,评估器和编译器通道。具体来说,我们描述了我们的设计选择良好类型的IR设计,包括支持良好类型的孔,CSE是如何实现在一个良好类型的设置,以及如何机械化的类型可靠性证明Velo是源的评估。

英文摘要:

Language Workbenches offer language designers an expressive environment in which to create their DSLs. Similarly, research into mechanised meta-theory has shown how dependently typed languages provide expressive environments to formalise and study DSLs and their meta-theoretical properties. But can we claim that dependently typed languages qualify as language workbenches? We argue yes! We have developed an exemplar DSL called Velo that showcases not only dependently typed techniques to realise and manipulate IRs, but that dependently typed languages make fine language workbenches. Velo is a simple verified language with well-typed holes and comes with a complete compiler pipeline: parser, elaborator, REPL, evaluator, and compiler passes. Specifically, we describe our design choices for well-typed IRs design that includes support for well-typed holes, how CSE is achieved in a well-typed setting, and how the mechanised type-soundness proof for Velo is the source of the evaluator.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑