























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
























H. A. Blair^1 J. B. Remmel^2 V. W. Marek^3 (^1) Syracuse University, EECS Dept. [email protected] (^2) UCSD, Mathematics Dept. [email protected] (^3) University of Kentucky, CS Dept. [email protected]
February 19, 2008
What I: Answer set programs. Stable models of datalog programs provide answers to combinatorial search and decision problems. What II: Set-based answer set programs. Set-based stable models of set-based datalog programs provide answers to combinatorial search and decision problems in special problem ‘domains’. How: By spatially constrained predicate logic - this is applied logic. It is not, at this stage of development, intended to address foundational questions. ——————- Terms to be defined are in dark green.
(^1) Some problems (^2) Some results (^3) Datalog programs - We start in with technical details here (^4) Validity, stable models and answer-set programming (^5) The basic move (^6) Set-based datalog programs (^7) Set-based validity, stable models and set-based answer-set programming (^8) Examples (^9) Representing continuous structure (^10) Relation to intuitionistic propositional logic.
How does the already understood ”model theory” of answer set programs compare to the set-based setup? Interfacing logic with domain-specific knowledge: how? What can we do with set-based answer set programs? Relationships to all the rest of logic?
The underlying language is that of predicate logic - constant symbols but no other function symbols. A datalog program is a finite set of program clauses partitioned into two subsets: (1) the EDP (extensional database) and (2) the IDB (intensional database). The partition satisfies several constraints. A program clause is a formula
A ← L 1 ∧... ∧ Ln
where A is an atomic formula (atom), and each Li , called a literal, is either an atomic formula or the negation of an atom. A is the head of the clause and L 1 ∧... Ln is the body of the clause. If Li is an atom it is called a positive literal; otherwise it is a negative literal.
A formula is called ground iff has no free variable occurrences. A fact is a ground atom. The EDB consists of facts.
The Herbrand base of a language L for predicate logic is the set of all ground atoms of the language. An Herbrand interpretation for L is a subset of the Herbrand base. Remark: An Herbrand interpretation I is a structure in the usual sense: its universe is the set of constants of the language and the true instances of the interpretation of a predicate symbol p are the tuples of constants (a 1 ,... , ak ) for which the corresponding ground atom p(a 1 ,... , ak ) is in I. This determines the ground atoms A valid in I (I |= A). Validity of formulas is extended to all formulas in a standard way. A model of a set of formulas, and, a fortiori, a program, therefore has the usual definition.
The notion of a stable model depends on a property of Horn programs; i.e. programs without negations in their clause bodies: They have a least Herbrand model. (Think of Horn programs as inductive definitions.) An Herbrand model I of a program is supported iff for every ground atom A in I, there is a ground instance A ← L 1 ∧... ∧ Ln of a clause in the program for whose body L 1 ∧... ∧ Ln is valid in I. The least Herbrand model of a Horn program is supported.
I is a stable model of P iff I is the least Herbrand model of the Gelfond-Lifschitz transform of P with respect to I.
The idea is to use I to evaluate the negative literals in ground clause bodies to obtain a Horn program. I is a stable model of P iff I is the least model of the resulting Horn program. That a stable model of P is in fact a model requires (an easy) proof. Stable models are minimal supported models. Hence the collection of stable models of P forms an antichain with respect to set inclusion.
p ← ¬q q ← q
{p} and {q}
are the minimal supported models. Only {p} is stable.
Graph coloring: Can a directed graph’s vertices be colored such that no two adjacent vertices have the same color?
A ← color_of(X,C) ∧ color_of(Y,C) ∧ color(C) ∧ vertex(X) ∧ vertex(Y) ∧ edge(X,Y) ∧ ¬A
Assuming A is not used differently elsewhere in the program, any stable model of a program containing this clause must falsify
color_of(X,C) ∧ color_of(Y,C) ∧ color(C) ∧ vertex(X) ∧ vertex(Y) ∧ edge(X,Y)
color(red) color(green) color(blue) vertex(a) vertex(b) vertex(c) edge(a,b) edge(b,c) color_of(X,red) ← ¬color_of(X,green) ∧ ¬color_of(X,blue) color_of(X,green) ← ¬color_of(X,red) ∧ ¬color_of(X,blue) color_of(X,blue) ← ¬color_of(X,green) ∧ ¬color_of(X,red) A ← color_of(X,red) ∧ color_of(X,green) ∧ ¬A A ← color_of(X,red) ∧ color_of(X,blue) ∧ ¬A A ← color_of(X,green) ∧ color_of(X,blue) ∧ ¬A
The difference between ordinary programs and set-based programs is that the underlying language is spatially augmented. A spatially augmented first-order language ( spatial language , for short) L is a triple (L, X , [[·]]), where (^1) L is a language for predicate logic (^2) X is a nonempty (possibly infinite) set, called the interpretation space , and (^3) [[·]] is a mapping from the ground atoms of L to the power set of X , called the sense assignment. If A is a ground atom, then [[A]] is called the sense of A.
Y |= A iff [[A ]] ⊆ Y , for each member Y of the powerset of X. (strong negation, 3-valued) Y |=s^ ¬A iff Y ∩ [[A ]] = ∅. (weak negation, 2-valued) Y |=w^ ¬A iff [[A ]] 6 ⊆ Y.