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

算子优先语言的正则方法

Regular Methods for Operator Precedence Languages

Thomas A. Henzinger, Pavol Kebis, Nicolas Mazzocchi, N. Ege Saraç

AI总结:

本文首次为算子优先语言给出基于有限句法同余的代数刻画,推广了 Myhill-Nerode 定理,并据此构造出首个在指数时间内求解 ExpTime 难语言包含性问题的反链算法。

摘要:

算子优先语言(OPLs)是上下文无关语言中已知最大的子类,具有所有理想的封闭性和可判定性性质。这包括语言包含性的可判定性,而语言包含性是最根本的验证问题。算子优先文法、自动机和逻辑已经被研究并用于验证带有算术表达式和异常的程序(这两者都是确定性下推的,但超出了可见下推语言的范围)。在本文中,我们补全了这一图景,并首次以句法同余的形式给出了 OPLs 类的代数刻画,该句法同余恰好对算子优先语言具有有限多个等价类。这是著名的正则语言 Myhill-Nerode 定理向 OPLs 的推广。作为推论之一,我们证明了非确定性算子优先自动机的普遍性和语言包含性可以通过反链算法求解。反链算法通过利用词上的拟序,避免了通过显式子集构造进行的确定化和补运算,从而能够在保证完备性的前提下剪枝反例词的搜索空间。反链算法可以符号化实现,这些实现是当今实践中用于有限自动机包含性的性能最好的算法。我们给出了从有限句法同余构造反链算法所需拟序的通用构造。这产生了第一个针对 OPLs 的反链算法,该算法在指数时间内解决了 OPLs 的 \ extsc{ExpTime}-难的语言包含性问题。

英文摘要:

The operator precedence languages (OPLs) represent the largest known subclass of the context-free languages which enjoys all desirable closure and decidability properties. This includes the decidability of language inclusion, which is the ultimate verification problem. Operator precedence grammars, automata, and logics have been investigated and used, for example, to verify programs with arithmetic expressions and exceptions (both of which are deterministic pushdown but lie outside the scope of the visibly pushdown languages). In this paper, we complete the picture and give, for the first time, an algebraic characterization of the class of OPLs in the form of a syntactic congruence that has finitely many equivalence classes exactly for the operator precedence languages. This is a generalization of the celebrated Myhill-Nerode theorem for the regular languages to OPLs. As one of the consequences, we show that universality and language inclusion for nondeterministic operator precedence automata can be solved by an antichain algorithm. Antichain algorithms avoid determinization and complementation through an explicit subset construction, by leveraging a quasi-order on words, which allows the pruning of the search space for counterexample words without sacrificing completeness. Antichain algorithms can be implemented symbolically, and these implementations are today the best-performing algorithms in practice for the inclusion of finite automata. We give a generic construction of the quasi-order needed for antichain algorithms from a finite syntactic congruence. This yields the first antichain algorithm for OPLs, an algorithm that solves the \textsc{ExpTime}-hard language inclusion problem for OPLs in exponential time.

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

↑