arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1305.6052cs.LO
收藏

基于语法的数学算法的形式化引用与求值

The Formalization of Syntax-Based Mathematical Algorithms Using Quotation and Evaluation

William M. Farmer

摘要:

像那些用于区分函数表达式的算法以数学上有意义的方式操纵数学表达式的句法结构。这种算法的形式化应该包括其计算行为的规范,其数学意义的规范,以及将算法应用于实际表达式的机制。要实现这些目标,就需要能够将对表达式语法的推理与对表达式含义的推理结合起来。语法框架是一种数学结构,它是语法推理系统的抽象模型。它包含表达式到表示表达式的语法结构的语法值的映射;用于推理语法值的语言;引用表达式的语法值的引用机制;以及引用由语法值表示的表达式的值的评估机制。我们提出并比较了两种方法,基于语法框架的实例,形式化的语法为基础的数学算法在一个正式的理论T。在第一种方法中,由算法操作的表达式的语法值是T中归纳类型的成员,但引用和求值是T的元理论中定义的函数。在第二种方法中,T中的每个表达式都由一个语法值表示,引用和求值是T本身的运算符。

英文摘要:

Algorithms like those for differentiating functional expressions manipulate the syntactic structure of mathematical expressions in a mathematically meaningful way. A formalization of such an algorithm should include a specification of its computational behavior, a specification of its mathematical meaning, and a mechanism for applying the algorithm to actual expressions. Achieving these goals requires the ability to integrate reasoning about the syntax of the expressions with reasoning about what the expressions mean. A syntax framework is a mathematical structure that is an abstract model for a syntax reasoning system. It contains a mapping of expressions to syntactic values that represent the syntactic structures of the expressions; a language for reasoning about syntactic values; a quotation mechanism to refer to the syntactic value of an expression; and an evaluation mechanism to refer to the value of the expression represented by a syntactic value. We present and compare two approaches, based on instances of a syntax framework, to formalize a syntax-based mathematical algorithm in a formal theory T. In the first approach the syntactic values for the expressions manipulated by the algorithm are members of an inductive type in T, but quotation and evaluation are functions defined in the metatheory of T. In the second approach every expression in T is represented by a syntactic value, and quotation and evaluation are operators in T itself.

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

↑