{ "id": "2010.10503", "version": "v1", "published": "2020-10-20T17:55:36.000Z", "updated": "2020-10-20T17:55:36.000Z", "title": "Evaluation of Logic Programs with Built-Ins and Aggregation: A Calculus for Bag Relations", "authors": [ "Matthew Francis-Landau", "Tim Vieira", "Jason Eisner" ], "comment": "An earlier version of this paper appeared at WRLA 2020", "categories": [ "cs.PL", "cs.SC" ], "abstract": "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.", "revisions": [ { "version": "v1", "updated": "2020-10-20T17:55:36.000Z" } ], "analyses": { "keywords": [ "aggregation", "algebraic expressions", "evaluation", "denote bag relations", "exploit arithmetic identities" ], "note": { "typesetting": "TeX", "pages": 0, "language": "en", "license": "arXiv", "status": "editable" } } }