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

基于Lambda Prolog语言的XML规范动画

A Lambda Prolog Based Animation of Twelf Specifications

Mary Southern, Gopalan Nadathur

摘要:

在ABCIF系统中的规范是基于爱丁堡逻辑框架或LF的逻辑编程解释。我们认为这样的规范使用Lambda Prolog实现动画的方法。该方法基于将依赖类型的LF表达式有损转换为Lambda Prolog的简单类型λ演算(STLC)项,以及随后在由适当子句定义的谓词中对丢失的依赖性信息进行编码。为了在逻辑编程的实现中使用这个想法,还需要将Lambda Prolog查询的结果转换回LF表达式。我们描述了这样一个逆翻译,并表明它具有必要的属性,以方便仿真的Lambda Prolog程序通过我们的翻译LF规范的行为。BASINF的一个特点是它允许查询由具有由元变量表示的未指定部分的类型组成,元变量的值通过计算找到。我们表明,这种能力可以支持我们的翻译为基础的方法来动画的BMPF规格。

英文摘要:

Specifications in the Twelf system are based on a logic programming interpretation of the Edinburgh Logical Framework or LF. We consider an approach to animating such specifications using a Lambda Prolog implementation. This approach is based on a lossy translation of the dependently typed LF expressions into the simply typed lambda calculus (STLC) terms of Lambda Prolog and a subsequent encoding of lost dependency information in predicates that are defined by suitable clauses. To use this idea in an implementation of logic programming a la Twelf, it is also necessary to translate the results found for Lambda Prolog queries back into LF expressions. We describe such an inverse translation and show that it has the necessary properties to facilitate an emulation of Twelf behavior through our translation of LF specifications into Lambda Prolog programs. A characteristic of Twelf is that it permits queries to consist of types which have unspecified parts represented by meta-variables for which values are to be found through computation. We show that this capability can be supported within our translation based approach to animating Twelf specifications.

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

↑