arXiv Analytics

Sign in

arXiv:2010.10503 [cs.PL]AbstractReferencesReviewsResources

Evaluation of Logic Programs with Built-Ins and Aggregation: A Calculus for Bag Relations

Matthew Francis-Landau, Tim Vieira, Jason Eisner

Published 2020-10-20Version 1

We present a scheme for translating logic programs, which may use aggregation and arithmetic, into algebraic expressions that denote bag relations over ground terms of the Herbrand universe. To evaluate queries against these relations, we develop an operational semantics based on term rewriting of the algebraic expressions. This approach can exploit arithmetic identities and recovers a range of useful strategies, including lazy strategies that defer work until it becomes possible or necessary.

Comments: An earlier version of this paper appeared at WRLA 2020
Categories: cs.PL, cs.SC
Related articles: Most relevant | Search more
arXiv:2012.09155 [cs.PL] (Published 2020-12-11)
On the Generation of Disassembly Ground Truth and the Evaluation of Disassemblers
arXiv:2310.13413 [cs.PL] (Published 2023-10-20)
Scoped and Typed Staging by Evaluation
arXiv:1902.06097 [cs.PL] (Published 2019-02-16)
Normalization by Evaluation for Call-by-Push-Value and Polarized Lambda-Calculus