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

通用文法闭包性质的形式化验证

Closure Properties of General Grammars -- Formally Verified

Martin Dvorak, Jasmin Blanchette

AI总结:

本文在Lean 3中形式化0型文法,证明0型语言对并、反转、连接和Kleene星封闭,并为Kleene星提出了新的基于文法的构造。

摘要:

我们使用Lean 3证明助手形式化了通用(即0型)文法。我们定义了重写规则和由文法推导出的字的基本概念,并使用文法证明了0型语言类在四种运算下的封闭性:并、反转、连接和Kleene星。文献大多侧重于图灵机论证,这些论证可能更难形式化。对于Kleene星,我们无法沿用文献中的做法,因此提出了自己的基于文法的构造。

英文摘要:

We formalized general (i.e., type-0) grammars using the Lean 3 proof assistant. We defined basic notions of rewrite rules and of words derived by a grammar, and used grammars to show closure of the class of type-0 languages under four operations: union, reversal, concatenation, and the Kleene star. The literature mostly focuses on Turing machine arguments, which are possibly more difficult to formalize. For the Kleene star, we could not follow the literature and came up with our own grammar-based construction.

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

↑