Detecting and explaining (in)equivalence of context-free grammars

Marko Schmellenkamp, Thomas Zeume, Sven Argo, Sandra Kiefer, Cedric Siems, Fynn Stebel
{"title":"Detecting and explaining (in)equivalence of context-free grammars","authors":"Marko Schmellenkamp, Thomas Zeume, Sven Argo, Sandra Kiefer, Cedric Siems, Fynn Stebel","doi":"arxiv-2407.18220","DOIUrl":null,"url":null,"abstract":"We propose a scalable framework for deciding, proving, and explaining\n(in)equivalence of context-free grammars. We present an implementation of the\nframework and evaluate it on large data sets collected within educational\nsupport systems. Even though the equivalence problem for context-free languages\nis undecidable in general, the framework is able to handle a large portion of\nthese datasets. It introduces and combines techniques from several areas, such\nas an abstract grammar transformation language to identify equivalent grammars\nas well as sufficiently similar inequivalent grammars, theory-based comparison\nalgorithms for a large class of context-free languages, and a\ngraph-theory-inspired grammar canonization that allows to efficiently identify\nisomorphic grammars.","PeriodicalId":501197,"journal":{"name":"arXiv - CS - Programming Languages","volume":null,"pages":null},"PeriodicalIF":0.0000,"publicationDate":"2024-07-25","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Programming Languages","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2407.18220","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

We propose a scalable framework for deciding, proving, and explaining (in)equivalence of context-free grammars. We present an implementation of the framework and evaluate it on large data sets collected within educational support systems. Even though the equivalence problem for context-free languages is undecidable in general, the framework is able to handle a large portion of these datasets. It introduces and combines techniques from several areas, such as an abstract grammar transformation language to identify equivalent grammars as well as sufficiently similar inequivalent grammars, theory-based comparison algorithms for a large class of context-free languages, and a graph-theory-inspired grammar canonization that allows to efficiently identify isomorphic grammars.
检测和解释无上下文语法的(不)等价性
我们提出了一个可扩展的框架,用于决定、证明和解释无上下文语法的(不)等价性。我们介绍了该框架的实现,并在教育支持系统中收集的大型数据集上对其进行了评估。尽管无上下文语言的等价性问题在一般情况下是不可判定的,但该框架能够处理这些数据集的大部分内容。该框架引入并结合了多个领域的技术,如用于识别等价语法和足够相似的不等价语法的抽象语法转换语言、用于一大类无上下文语言的基于理论的比较算法,以及可高效识别同构语法的图论启发的语法规范化。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信