论文标题

运算符优先语言的基质性,恒星柔性和一阶逻辑确定性

Aperiodicity, Star-freeness, and First-order Logic Definability of Operator Precedence Languages

论文作者

Mandrioli, Dino, Pradella, Matteo, Reghizzi, Stefano Crespi

论文摘要

正式语言理论的一个经典结果是非规范,普通语言和通过无星正则表达式定义或一阶逻辑定义的语言之间的等效性。过去将这种结果扩展到普通语言领域的尝试遇到了困难:例如,已知无恒星的树语可能违反了非计数属性,并且有无法通过一阶逻辑来定义的高等树语言。我们将这种经典的等价结果扩展到重要的确定性无上下文语言,即操作员预言语言(OPL),严格包括经过广泛研究的明显下降,别名输入驱动的,家庭和其他结构化上下文的无上下文无上下文的语言。 OP模型起源于60年代定义编程语言,并且仍由高性能编译器使用;最初研究了其丰富的代数属性与语法学习有关,最近以进一步的闭合属性和Monadic的二阶逻辑定义完成。我们介绍了定义OPL的OP表达(OPE)的正则表达式的扩展,并在无星假设下定义了一阶可定义和非计数OPL。然后,通过相当明确的语法转换,我们证明了Aperiodic OPL是一阶的定义。因此,为大而强大的OPL类建立了恒星柔性,多个和一阶确定性的经典等效性。我们认为,可以利用相同的方法来获得明显的下降语言的类似结果。

A classic result in formal language theory is the equivalence among non-counting, or aperiodic, regular languages, and languages defined through star-free regular expressions, or first-order logic. Past attempts to extend this result beyond the realm of regular languages have met with difficulties: for instance it is known that star-free tree languages may violate the non-counting property and there are aperiodic tree languages that cannot be defined through first-order logic. We extend such classic equivalence results to a significant family of deterministic context-free languages, the operator-precedence languages (OPL), which strictly includes the widely investigated visibly pushdown, alias input-driven, family and other structured context-free languages. The OP model originated in the '60s for defining programming languages and is still used by high performance compilers; its rich algebraic properties have been investigated initially in connection with grammar learning and recently completed with further closure properties and with monadic second order logic definition. We introduce an extension of regular expressions, the OP-expressions (OPE) which define the OPLs and, under the star-free hypothesis, define first-order definable and non-counting OPLs. Then, we prove, through a fairly articulated grammar transformation, that aperiodic OPLs are first-order definable. Thus, the classic equivalence of star-freeness, aperiodicity, and first-order definability is established for the large and powerful class of OPLs. We argue that the same approach can be exploited to obtain analogous results for visibly pushdown languages too.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源