用布尔矩阵逻辑编程模拟 Petri 网

Lun Ai, Stephen H. Muggleton, Shi-Shun Liang, Geoff S. Baldwin
{"title":"用布尔矩阵逻辑编程模拟 Petri 网","authors":"Lun Ai, Stephen H. Muggleton, Shi-Shun Liang, Geoff S. Baldwin","doi":"arxiv-2405.11412","DOIUrl":null,"url":null,"abstract":"Recent attention to relational knowledge bases has sparked a demand for\nunderstanding how relations change between entities. Petri nets can represent\nknowledge structure and dynamically simulate interactions between entities, and\nthus they are well suited for achieving this goal. However, logic programs\nstruggle to deal with extensive Petri nets due to the limitations of high-level\nsymbol manipulations. To address this challenge, we introduce a novel approach\ncalled Boolean Matrix Logic Programming (BMLP), utilising boolean matrices as\nan alternative computation mechanism for Prolog to evaluate logic programs.\nWithin this framework, we propose two novel BMLP algorithms for simulating a\nclass of Petri nets known as elementary nets. This is done by transforming\nelementary nets into logically equivalent datalog programs. We demonstrate\nempirically that BMLP algorithms can evaluate these programs 40 times faster\nthan tabled B-Prolog, SWI-Prolog, XSB-Prolog and Clingo. Our work enables the\nefficient simulation of elementary nets using Prolog, expanding the scope of\nanalysis, learning and verification of complex systems with logic programming\ntechniques.","PeriodicalId":501033,"journal":{"name":"arXiv - CS - Symbolic Computation","volume":"42 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-05-18","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Simulating Petri nets with Boolean Matrix Logic Programming\",\"authors\":\"Lun Ai, Stephen H. Muggleton, Shi-Shun Liang, Geoff S. Baldwin\",\"doi\":\"arxiv-2405.11412\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Recent attention to relational knowledge bases has sparked a demand for\\nunderstanding how relations change between entities. Petri nets can represent\\nknowledge structure and dynamically simulate interactions between entities, and\\nthus they are well suited for achieving this goal. However, logic programs\\nstruggle to deal with extensive Petri nets due to the limitations of high-level\\nsymbol manipulations. To address this challenge, we introduce a novel approach\\ncalled Boolean Matrix Logic Programming (BMLP), utilising boolean matrices as\\nan alternative computation mechanism for Prolog to evaluate logic programs.\\nWithin this framework, we propose two novel BMLP algorithms for simulating a\\nclass of Petri nets known as elementary nets. This is done by transforming\\nelementary nets into logically equivalent datalog programs. We demonstrate\\nempirically that BMLP algorithms can evaluate these programs 40 times faster\\nthan tabled B-Prolog, SWI-Prolog, XSB-Prolog and Clingo. Our work enables the\\nefficient simulation of elementary nets using Prolog, expanding the scope of\\nanalysis, learning and verification of complex systems with logic programming\\ntechniques.\",\"PeriodicalId\":501033,\"journal\":{\"name\":\"arXiv - CS - Symbolic Computation\",\"volume\":\"42 1\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-05-18\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - CS - Symbolic Computation\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2405.11412\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Symbolic Computation","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2405.11412","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

最近对关系知识库的关注引发了对了解实体间关系如何变化的需求。Petri 网可以表示知识结构并动态模拟实体之间的交互,因此非常适合实现这一目标。然而,由于高级符号操作的限制,逻辑程序在处理庞大的 Petri 网时举步维艰。为了应对这一挑战,我们引入了一种称为布尔矩阵逻辑编程(Boolean Matrix Logic Programming,BMLP)的新方法,利用布尔矩阵作为 Prolog 的替代计算机制来评估逻辑程序。在这个框架内,我们提出了两种新颖的 BMLP 算法,用于模拟一类被称为基本网的 Petri 网,具体做法是将基本网转化为逻辑上等价的 datalog 程序。我们通过经验证明,BMLP 算法评估这些程序的速度比表中的 B-Prolog、SWI-Prolog、XSB-Prolog 和 Clingo 快 40 倍。我们的工作实现了使用 Prolog 对基本网进行高效模拟,扩大了使用逻辑编程技术分析、学习和验证复杂系统的范围。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Simulating Petri nets with Boolean Matrix Logic Programming
Recent attention to relational knowledge bases has sparked a demand for understanding how relations change between entities. Petri nets can represent knowledge structure and dynamically simulate interactions between entities, and thus they are well suited for achieving this goal. However, logic programs struggle to deal with extensive Petri nets due to the limitations of high-level symbol manipulations. To address this challenge, we introduce a novel approach called Boolean Matrix Logic Programming (BMLP), utilising boolean matrices as an alternative computation mechanism for Prolog to evaluate logic programs. Within this framework, we propose two novel BMLP algorithms for simulating a class of Petri nets known as elementary nets. This is done by transforming elementary nets into logically equivalent datalog programs. We demonstrate empirically that BMLP algorithms can evaluate these programs 40 times faster than tabled B-Prolog, SWI-Prolog, XSB-Prolog and Clingo. Our work enables the efficient simulation of elementary nets using Prolog, expanding the scope of analysis, learning and verification of complex systems with logic programming techniques.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
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学术官方微信