Nested HEX-Programs
Thomas Eiter, Thomas Krennwallner, Christoph Redl

TL;DR
Nested HEX-programs extend HEX-programs in Answer-Set Programming to support subprogram calls and external computations, enabling more modular and meta-reasoning capabilities in declarative programming.
Contribution
Introduction of nested HEX-programs that allow individual access to subprogram answer sets, enhancing HEX-programs with features similar to procedural subprogram calls.
Findings
Supports reasoning over answer sets like belief merging
Enables user-defined aggregate functions
Facilitates preferences of answer sets
Abstract
Answer-Set Programming (ASP) is an established declarative programming paradigm. However, classical ASP lacks subprogram calls as in procedural programming, and access to external computations (like remote procedure calls) in general. The feature is desired for increasing modularity and---assuming proper access in place---(meta-)reasoning over subprogram results. While HEX-programs extend classical ASP with external source access, they do not support calls of (sub-)programs upfront. We present nested HEX-programs, which extend HEX-programs to serve the desired feature, in a user-friendly manner. Notably, the answer sets of called sub-programs can be individually accessed. This is particularly useful for applications that need to reason over answer sets like belief set merging, user-defined aggregate functions, or preferences of answer sets.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsLogic, Reasoning, and Knowledge · Multi-Agent Systems and Negotiation · Logic, programming, and type systems
