Simulating Petri nets with Boolean Matrix Logic Programming
Lun Ai
Stephen H. MuggletonShi-Shun Liang
Geoff S. Baldwin Lun Ai

Stephen H. Muggleton
Shi-Shun Liang

Geoff S. Baldwin
+4
Boolean Matrix Logic Programming (BMLP) uses boolean matrices as an alternative computation mechanism for Prolog to evaluate logic programs. The paper introduces two BMLP algorithms that simulate elementary nets, a class of Petri nets, by transforming them into logically equivalent datalog programs. Empirically, the BMLP algorithms evaluate these programs 40 times faster than tabled B-Prolog, SWI-Prolog, XSB-Prolog, and Clingo, enabling efficient simulation of elementary nets and expanding the scope of logic programming for complex systems.

arXiv ·
· May 18, 2024