From: AAAI-88 Proceedings. Copyright ©1988, AAAI (www.aaai.org). All rights reserved. 2 The Circumscription Existent ial Formulae of and distributing the existential quantifiers junction, this formula is transformed to Let 4(P) be a first-order or a second-order formula with equality, involving the sequence P = (Pi, . . . , Ph) of predicate symbols and possibly other predicate symbols from Following McCarthy a fixed underlying vocabulary u. [Li85], we define the cir[McC80, McC86] and Lifschitz cumscription ofP in 4(P) to be the following second-order formula 4*(P): 3~13~2(f@1,~2) V Theorem 1. Suppose that d(P) is an existential firstorder sentence of the form 3x$, where x = (xi, . ..x~) is a sequence of variables and $ is quantifier-free formula. Then the circumscription qS+(P) of P in #(P) is equivalent to a first-order formula. 0 The proof of Theorem 1 constructs a first-order formula equivalent to the circumscription. We start by bringing $ in its complete disjunctive normal form, that is, $ is written as the disjunction of several formulae Bi, where each Bi is the conjunction of literals, where a literal can be either an atomic formula, or its negation, or an equality between two variables, or an inequality (#) between two variables; moreover, ‘each disju.nct contains at least one of the literals xi = Xj or xi #.-Xj for any two variables xi, xj (that is, it determines an equality type). Next, we distribute the existential quantifiers over the disjunction, and thus we have to show that each disjunct of the form 3~6iA(‘v’P’)[(P < P),--+ -(V~=, 3xoj)] is first order. However, since only existential. quantifiers occur in this disjunct and Bi has a fixed equality type (in other words, the mapping from variables to constants is fixed up to renamings), the assertion concerning. P above can be replaced by a first-order formula stating that P is a cert.ain finite set and no proper subset of it satisfies Vj”=, 3x6j (the’ latter statement can be expressed by an exponentially long first-order formula, ranging over subsets of the set. of constants determined by the equality type). This completes the construction. 3Xl3X2(fqXl, using the procedure quantifier-free part 466 Knowledge the circumscription x2) A P(Xl) Representation of P in the A P(x2)) described above. After in complete disjunctive x2) bringing the normal form A p(x2) A P(n) A (xl A p(x2) = A (XI of P in the above formula dis- ~2)) # x2)). is equiva.lent to h(f+l, xl) A P(Q) A ((VY)(~(Y) [3xdx2(R(xl, where P’ = (Pi, . . . , Pi) is a sequence of predicates and P’ < P means that Pi c Pi, 1 2 i < k, and there is a j 5 E such that Pi is a proper subset of Pj. Several interesting cases have been pointed out in the recent past, in which the circumscription of a first-order formula collapses to a first-order formula. Lifschitz [Li85] showed that this holds for the class of separable formula.e, a natural and fairly wide class that includes all quantifierfree formulae. Such results, reducing the logical complexity of circumscription from second-order to first-order, are potentially valuable, in view of the intractability of secondorder logic on the one hand and the completeness theorem for first-order logic on the other. We show below that the same holds for all exktential formulae. We compute 3~13~2(R(x1, The circumscription 4(P) A (‘dP’)[(P’ < w + ~w% Example: formuia A P(w) over the x2) A P(xI) ((VY>(~(Y> (-(xl, c-) xl)) (Y = A (+(x2, ++ Y = x:l)>V A P(x2) ~1 V Y = x2)))]. A (xl # x2)A 22)))A 0 We notice that computing a first-order sentence equivalent to the circumscription of P in an existential first-order formula I#( P) seems to increase the size of 4(P) exponentially, a phenomenon not observed in the other known cases of first-order circumscription studied in [Li85]. It would be interesting to determine whether this is inherent to existential first-order formulae, or a particular creation of our proof. In the full paper we shall also prove that Theorem 1 can be extended in several directions: It holds for formulae containing not only relation symbols, but also function a.nd with constant symbols. Also, it holds for circumscription variables (a more general variant). Finally, it is also true of existential second-order formulae, tl1a.t is, second-order formulae whose second-order and first-order qua.ntifiers are all existential. 3 Circumscription Boundedness and The positive results for the existential formulae in the preceding section suggest that one should examine next the class of universal first-order formulae. Other properties of the circumscription of universal formulae have been studied before and it is known, for example, that this cla.ss of formulae behaves nicely with respect to the satisfiability of circumscription (cf. [BSSS], [EMR$5], [LiSG]). As mentioned in the introduction, however, Lifschitz [Li$5] observed that there are universal formulae (actually conjunctions of function-free Horn clauses) whose circumscription is not first-order expressible. In view of this, the best possible result one could hope for is a computationally useful characterization of the universal sentences that have a first-order circumscription. In this section we establish a connection between the circumscription of a conjunction of function-free Horn clauses and the convergence of the corresponding logic program. More specifically, we show that the circumscription of a conjunction of Horn clauses is first-order if and only if the corresponding progra.m is bounded. Boundedness is a property of logic programs that has been showed recently by Gaifman et al. [GMSV87] to be an undecidable problem. Thus, it is not possible to give a computationally usehi characterization of which universa.i first-order forIn spite of mulae possess a first-order circumscription. these negative consequences, our result suggests that it may be possible to identify wide subcla.sses of universal formulae on which there are algorithms that detect when there a different formalization of common-sense reasoning, which on the one hand is computationally more tract,ahle than circumscription, and on the other retains most salient features of it ? We are grateful to Vladimir Lifschitz for several useful comments and suggestions on an earlier version of this paper. The research of the second author was partially supported by a NSF grant Acknowledgments. 6 References . [BSSS] Bossu, G , Siegel, P.: Saturation, non monotonic reasoning and the closed world assumption.Ar2ificinl Intelligence 25 (19S5), pp. 13-63 [CGI<V%] Cosmadaltis, S.S , Qaifman, 1-I , Kanellaltis P.C , Vardi, M.Y : Decidable optimization problems for database logic programs Proc 2011~ACil4 ,Symposiunz on Theory of Compxhg, Chicago, 19SS, pp 477-490. n [CK73] Chang, C C , Keisler, Noith-Holland, 1973 n . [NaSG] Naughton, J.F : Data independent recursion in deductive databses Proc. 5th ACM Symposium 071 Principles of Database Systems, 1986, pp. 2G7-279. . [NS87] Naughton, J.F., Sagiv, Y : A decidable class of bounded recursions. Proc 6th ACM Symposium 071 Principles of Database Syst&ns, 1987, pp. 227-236. n [AU791 Aho, A V., Ullman, J D.: Universality of data retrieval languages Proc. litlb ACM Symposium on Priciples of Programming Languages, 1979, pp 110117. n . [McC8G] McCarthy, J.: Applications of circumscrip$on in formalizing common sense knowledge Arlijkial Intelligence 28 (lSSG), pp 89-11G II J : Model TIleory, . [Da801 Davis, M : The mathemat.ics of non-monotonic reasoning Artificial Intelligence 13 (19SO), pp 73-SO [PSS2] Papadimitriou, C.H., Steiglitz, I< : Combinatorial Optimization, Prentice-Hall, 1952. fl [SaS5] Sagiv, Y.: On computing restricted projections of representative instances.Proc. &IL ACM Synaposinm on Principles of Database Systems, 1985, pp. 171-180. . [ScSG] Schlipf, J S.: How uncomputable is general circumscription Proc. 1st IEI3E Conference 011Logic in Conapxter Science, 1986, pp 92-95. . [VaSG] Vardi, M.Y.: Quering Logical Databases J Conapnter and System Sciences 33, No. 2 (19SG), pp. 142-160 . [VaSS] Vardi, M Y : Decidability and undecidability results for boundedness of linear iecuisive queries!Proc. 7th ACM Symposium on Principles of Daiabase Systems, 19S8 [EMRS5] Etherington, D , RiIercer, R , Reiter, R : On the adequacy of predicate circumscription for closedworld reasoning Computational Infelligence 1 (1985), pp. 11-15 n m [Pa741 Fagin, R : Generalized first-order spectra. and Complexity of polynomial-time recognizable sets. Conapufnfions, ed by R Karp, SIAhI-AMS Proc 7 (1974), pp 43-74 m [ChISVS7] Caifman, I-1 , RIairson, II , Sagiv, Y , Vardi, hII Y : Undecidable optimization problems for database logic programs Proc 2nd IEEE Symposium 011 Logic in Computer Science, 19S7, pp lOG-115 n [GNS7] Genesereth, hil., Nilsson, N.J.: Logical Fowldalions of Arfificial I&elligence, Morgan-I(aufmann, 19s7 . [IoS5] Ioannides, Y E : A time bound on the materializat,ion of some recursively defined views Proc. 1111~ International Conference 071 Very Large Data Bases, 1985, pp 219-226 n [KrSS] Kiislmaprasacl, T : On the computability of circumscription Information Processing Letters Volume 27, Number 5 (19SS), pp. 237-243 . [LiS5] Lifscliitz, V.: Computing circumscription 9th Iniernatioaal Joint Conference on Artificial ligence 19S5, pp 121-127. n n Proc. Intel- [LiS6] Lifscbitz, V.: On the satisfiability of circumscription Art,ijcial I7ltelligen,ce 28 (19SG), pp. 17-27 [McCSO] hIcCartby, J : Circumscript,ion - a foim of non-monotonic reasoning Artificial Intelligence 13 (19SO), pp 27-39 Kolaitis and Papadimitriou 4.69