“…As a logical foundation for answer set programming we use the nonclassical logic of here-and-there, denoted here by N 3 , and its nonmonotonic extension, equilibrium logic [18], which generalises answer set semantics for logic programs to arbitrary propositional theories (see eg [14]). We give only a very brief overview here, for more details the reader is referred to [18,14,20] and the logic texts cited below. 4 Given a propositional signature V we define the corresponding propositional language L V as the set of formulas built from atoms in V with the usual connectives , ⊥, ¬, ∧, ∨, →.…”