Answer Set Programs with Queries over Subprograms
Christoph Redl
redl@kr.tuwien.ac.atJuly 4, 2017
Redl C. (TU Vienna) HEX-Programs July 4, 2017 1 / 26 MotivationOutline
1
Motivation
2
The Saturation Technique and its Restrictions
3
Deciding Inconsistency of Normal Programs in Disjunctive ASP
4
Query Answering over Subprograms
5
Discussion
6
Conclusion
Redl C. (TU Vienna) HEX-Programs July 4, 2017 2 / 26 MotivationMotivation
Answer Set Programming is a well-known declarative problem solving approach.
Redl C. (TU Vienna) HEX-Programs July 4, 2017 3 / 26 MotivationMotivation
Answer Set Programming is a well-known declarative problem solving approach.
Answer Set Programming [Gelfond and Lifschitz, 1991]
An ASP program consists of rules of form a1 ∨ · · · ∨ an ← b1, . . . , bm, not bm+1, . . . , not bn, An interpretation I is a set of ground atoms; it is an answer set of a ground program P, if I is a ⊆-minimal model of the reduct PI = {H(r) ← B+(r) | r ∈ Π, I | = b for all b ∈ B−(r)}. Semantics of non-ground programs is defined via a grounding, i.e., replacement of all variables by all constants in all possible ways.
Redl C. (TU Vienna) HEX-Programs July 4, 2017 3 / 26 MotivationMotivation
Answer Set Programming is a well-known declarative problem solving approach.
Answer Set Programming [Gelfond and Lifschitz, 1991]
An ASP program consists of rules of form a1 ∨ · · · ∨ an ← b1, . . . , bm, not bm+1, . . . , not bn, An interpretation I is a set of ground atoms; it is an answer set of a ground program P, if I is a ⊆-minimal model of the reduct PI = {H(r) ← B+(r) | r ∈ Π, I | = b for all b ∈ B−(r)}. Semantics of non-ground programs is defined via a grounding, i.e., replacement of all variables by all constants in all possible ways.
Two (Related) Restrictions
Meta-reasoning about the answer sets of a (sub)program within another (meta-)program not inherently supported.
Redl C. (TU Vienna) HEX-Programs July 4, 2017 3 / 26 MotivationMotivation
Answer Set Programming is a well-known declarative problem solving approach.
Answer Set Programming [Gelfond and Lifschitz, 1991]
An ASP program consists of rules of form a1 ∨ · · · ∨ an ← b1, . . . , bm, not bm+1, . . . , not bn, An interpretation I is a set of ground atoms; it is an answer set of a ground program P, if I is a ⊆-minimal model of the reduct PI = {H(r) ← B+(r) | r ∈ Π, I | = b for all b ∈ B−(r)}. Semantics of non-ground programs is defined via a grounding, i.e., replacement of all variables by all constants in all possible ways.
Two (Related) Restrictions
Meta-reasoning about the answer sets of a (sub)program within another (meta-)program not inherently supported. Despite ΣP
2-completeness of disjunctive ASP, solving problems from the first level of the polynomial hierarchie is sometimes tricky.
Redl C. (TU Vienna) HEX-Programs July 4, 2017 3 / 26