<?xml version="1.0" encoding="UTF-8"?>
<TEI xml:space="preserve" xmlns="http://www.tei-c.org/ns/1.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.tei-c.org/ns/1.0 https://raw.githubusercontent.com/kermitt2/grobid/master/grobid-home/schemas/xsd/Grobid.xsd"
 xmlns:xlink="http://www.w3.org/1999/xlink">
	<teiHeader xml:lang="en">
		<fileDesc>
			<titleStmt>
				<title level="a" type="main">Nested Logic Programs with Ordered Disjunction</title>
			</titleStmt>
			<publicationStmt>
				<publisher/>
				<availability status="unknown"><licence/></availability>
			</publicationStmt>
			<sourceDesc>
				<biblStruct>
					<analytic>
						<author>
							<persName><forename type="first">Roberto</forename><surname>Confalonieri</surname></persName>
							<email>confalonieri@lsi.upc.edu</email>
							<affiliation key="aff0">
								<orgName type="department">Dept. Llenguatges i</orgName>
								<orgName type="institution" key="instit1">Universitat Politècnica de Catalunya</orgName>
								<orgName type="institution" key="instit2">Sistemes Informàtics C</orgName>
								<address>
									<addrLine>Jordi Girona Salgado 1-3</addrLine>
									<postCode>E -08034</postCode>
									<settlement>Barcelona</settlement>
								</address>
							</affiliation>
						</author>
						<author>
							<persName><forename type="first">Juan</forename><forename type="middle">Carlos</forename><surname>Nieves</surname></persName>
							<email>jcnieves@lsi.upc.edu</email>
							<affiliation key="aff0">
								<orgName type="department">Dept. Llenguatges i</orgName>
								<orgName type="institution" key="instit1">Universitat Politècnica de Catalunya</orgName>
								<orgName type="institution" key="instit2">Sistemes Informàtics C</orgName>
								<address>
									<addrLine>Jordi Girona Salgado 1-3</addrLine>
									<postCode>E -08034</postCode>
									<settlement>Barcelona</settlement>
								</address>
							</affiliation>
						</author>
						<title level="a" type="main">Nested Logic Programs with Ordered Disjunction</title>
					</analytic>
					<monogr>
						<imprint>
							<date/>
						</imprint>
					</monogr>
					<idno type="MD5">935C0CF789FE1DD5DE0C246A554A3782</idno>
				</biblStruct>
			</sourceDesc>
		</fileDesc>
		<encodingDesc>
			<appInfo>
				<application version="0.7.2" ident="GROBID" when="2023-03-25T07:12+0000">
					<desc>GROBID - A machine learning software for extracting information from scholarly documents</desc>
					<ref target="https://github.com/kermitt2/grobid"/>
				</application>
			</appInfo>
		</encodingDesc>
		<profileDesc>
			<abstract>
<div xmlns="http://www.tei-c.org/ns/1.0"><p>In this paper we define a class of nested logic programs, nested logic programs with ordered disjunction (LP ODs + ), which allows to specify qualitative preferences by means of nested preference expressions. For doing this we extend the syntax of logic programs with ordered disjunction (LPODs) to capture more general expressions. We define the LP ODs + semantics in a simple way and we extend most of the results of logic programs with ordered disjunction showing how our approach effectively is a proper generalisation of LPODs.</p></div>
			</abstract>
		</profileDesc>
	</teiHeader>
	<text xml:lang="en">
		<body>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>Logic programs with ordered disjunction (LPODs) <ref type="bibr" target="#b1">[2]</ref> are extended logic programs based on answer set semantics which combine some of the ideas underlying Qualitative Choice Logic <ref type="bibr" target="#b2">[3]</ref> with logic programming. Indeed LPODs augment the traditional syntax of logic programs with a new ordered disjunction logic connective × to express preferences among literals in rules head. One distinctive characteristic of the × connective is its ability to induce an order among the answer sets of a logic program since each answer set is associated with a rule satisfaction degree which can be used to specify preference relations for answer sets selection <ref type="bibr" target="#b1">[2]</ref>. In this ways LPODs represent a good candidate for the specification of problem solving methods targeting applications where preferences and conflicts between problem solutions are involved, such as configuration management, policy monitoring and user preference representation and reasoning <ref type="bibr" target="#b1">[2]</ref>.</p><p>The syntax of an LPOD allows the writing of rules of the kind A 1 ×. . .×A k ← B 1 , . . . , B m , not B m+1 , . . . , not B m+n , where each of the A i (with 1 ≤ i ≤ k) and B j 's (with 1 ≤ j ≤ m + n) are literals (elementary formulas), to express context-dependent preferences. Hence, they can encode simple preferences such as: In the night I prefer going to a pub over going to a cinema over watching tv (encoded as pub × cinema × tv ← night <ref type="bibr" target="#b1">[2]</ref>), but their syntax is limited when other type of preference statements have to be formulated. For example, the preference concerning the activities for a night may want to express that in case pub is not possible, both cinema and tv are equally preferred. This case of preference indifference has been covered by <ref type="bibr">Kärger et al.</ref> by means of logic programs with ordered and unordered disjunction (DLPODs) <ref type="bibr" target="#b7">[8]</ref>. DLPODs extend LPODs combining the semantics of the ordered disjunction to express preferences and the disjunction to express indifferences. In this way their syntax allows to express preference equalities in ordered disjunction rules by means of combinations of literals connected by ∨. For example the indifference preference statement about cinema and tv in the night scenario can be encoded as pub × (cinema ∨ tv) ← night <ref type="bibr" target="#b7">[8]</ref>.</p><p>However, they may exist more complex preference statements that neither LPODs nor DLPODs are able to express. For instance, in the night preferences above, we can be instead concerned of having both options at the same time, expressing that in case pub is not possible we do mind watching a movie in the cinema and not in the tv, i.e. expressions such as pub × (cinema ∧ ¬tv) ← night, or that we even want to have equality and indifferences at the same time, i.e. expressions such as (pub ∨ bar) × (cinema ∧ ¬tv) ← night, or even more complex preference expression such as (pub ∧ (expensive × cheap)) × bar × (not pub ∧ not bar) ← night ∨ (not busy ∧ af ternoon). These examples suggest to explore for a less restricted syntax language.</p><p>For this reason, in this paper we present a more general syntax which allows the writing of nested (or non-flat) preferences expressions built by means of connectives {∨, ∧, ¬, not, ×}. To represent these formulas and to capture their semantics we define an extension of logic programs with ordered disjunction called nested logic programs with ordered disjunction (LP ODs + ).</p><p>The syntax of LP ODs + is based on a language which allows nested formulas that can provide a richer syntax at the moment of writing conditional preferences. The language we use is constructed using as a basis the propositional language of Qualitative Choice Logic <ref type="bibr" target="#b2">[3]</ref>, extended to consider negation as failure not, a typical connective which characterises non-monotonic reasoning in Answer Set Programming (ASP) <ref type="bibr" target="#b0">[1]</ref>.</p><p>To define the semantics of our LP ODs + we consider and extend some of the results in <ref type="bibr" target="#b8">[9]</ref> where the semantics for nested logic programs is presented. In this way we can capture the semantics of an LP ODs + in a simple way and we show how when the formulas in an LP OD + are × free, the LP ODs + semantics and the semantics of nested logic programs coincide. Moreover, when an LP OD + syntactically corresponds to an LPOD the two semantics coincide as well.</p><p>In the presence of nested expression in the head of preference rules, the determination of the degree of satisfaction of an answer set of an LP OD + can be sometimes more involved in our approach. For this reason we propose a recursive function to calculate the optionality of complex preference formulas in order to determine the rule satisfaction degree. The optionality function is a generalisation of the rule satisfaction degree in LPODs, as a consequence, we can directly use the preference relations in <ref type="bibr" target="#b1">[2]</ref> for comparing the answer sets of an LP OD + .</p><p>Our paper is structured as follows: after introducing the language we adopt to define our logic programs (Section 2), in Section 3 we present the syntax and the semantics of LP ODs + , and the optionality function for answer sets selec-tion. Finally Section 4 provides some prelimary discussions about related works, LP OD + complexity and sketches an implementation design of an LP OD + solver. Along the paper we present a running example which exemplifies the definitions of our approach. Due to space reasons we are not able to provide an extensive comparison with related approaches and we leave proofs' results out of the paper. It is our intention to cover these missings in an extended version.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Language Considered</head><p>The language we will consider to define the syntax of our logic programs is based on the language of Qualitative Choice Logic (QCL) extended with negation as failure not.</p><p>QCL is a propositional logic for representing alternatives for problem solutions defined by Brewka et al. in <ref type="bibr" target="#b2">[3]</ref> which adds to classical propositional logic <ref type="bibr" target="#b5">[6]</ref> a new connective × called ordered disjunction. <ref type="foot" target="#foot_0">1</ref>The language we consider consists with: (i) an enumerable set L of elements called atoms (denoted a, b, c, . . .), (ii) connectives ∧, ∨, ×, ¬, not, ⊥, where {∧, ∨, ×}, {not, ¬}, { ,⊥} are 2-place, 1-place and 0-place connectives respectively and (iii) auxiliary symbols "(", ")", ".". If an atom a is negated by ¬ is known as negative literal, and a is known as positive literal if it is not preceded by ¬.</p><p>Literals, ⊥ and are considered elementary formulas, while formulas (denoted A, B, C) are constructed from elementary formula using the connectives {∨, ∧, ¬, not, ×} arbitrarily nested. <ref type="foot" target="#foot_1">2</ref>A theory is a set of formulas and a logic program corresponds to a finite theory, i.e. a finite set of formula.</p><p>Based on this language we will define in Section 3 the syntax of nested logic programs with ordered disjunction. In the tradition of logic programming we write conditional expressions as the formula B ← A. We will consider two types of negation in our logic programs: strong negation ¬ and negation as failure not. Intuitively not a is true whenever there is no reason to believe a, whereas ¬a requires a proof of the negated atom. In this paper we assume that L is a finite set and we restrict our attention to finite propositional theories, since the semantics can be extended to programs with variables by grounding. Function symbols are, however, not allowed to ensure the ground program to be finite. This is a standard procedure in ASP.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">LP ODs +</head><p>This section presents the syntax of nested logic programs with ordered disjunction (LP OD + ) and their semantics which is characterised in terms of a recursive </p><formula xml:id="formula_0">(a ∧ (b × c)) × (d ∨ e) ← g ∨ (not i ∧ f ). Nested Ordered Disjunction rule a ∨ (b × ¬c) ← d ∨ (e ∧ f ). Definite Nested Ordered Disjunction rule a ∧ b ← p ∧ (¬q ∨ r). Definite Nested rule [9] a × (b ∨ c) ← d ∧ not e. Ordered Disjunctive rule [8] a × b ← c ∧ not d. Ordered Disjunction rule [2] a ∨ b ← c ∧ not ¬e. Disjunctive rule [7] a ∧ not b ← p ∧ not (¬q ∨ r).</formula><p>Nested rule <ref type="bibr" target="#b8">[9]</ref> reduction. We also define a recursive function for calculating the rule satisfaction degree of an answer set of an LP OD + for comparing answer sets.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Syntax</head><p>Earlier in the paper we have pointed out how the syntax of existent logic programming approaches able to express qualitative preferences is usually quite restricted and for this reason we define a more expressive syntax. Let L be a set of atoms, then a nested ordered disjunction rule (rule for short) is an expression of the form H ← B., where H is either an elementary formula or a {∨, ∧, ¬, not, ×} formula (known as the head) and B is either an elementary formula or a {∨, ∧, ¬, not} formula (known as the body) built using the atoms in L. Some particular cases are facts, of the form H ← (written as H) and constraints, ⊥ ← B (written as ← B.). If no occurrences of not appear in a rule, the rule is a definite nested ordered disjunction rule (similarly a definite nested ordered disjunction formula). If no occurrences of × appear in a rule, the rule is a nested rule (similarly a nested formula). If no occurrences of × and not appear in a rule, then the rule is known as a definite nested rule (similarly a definite nested formula). Different formulas combinations can lead to different rules (some of them already defined in the literature) as shown in Table <ref type="table" target="#tab_0">1</ref>.</p><p>A nested logic program with ordered disjunction (LP OD + ) is a finite set of nested ordered disjunction rules and/or constraints and/or facts. If the program does not contain not the program is called a definite LP OD + . The set of all the atoms which appear in an LP OD + P is denoted by L P .</p><p>In our logic programs we will manage the strong negation ¬ as it is done in ASP <ref type="bibr" target="#b0">[1]</ref>. Basically, each negative literal ¬a is replaced by a new atom symbol a which does not appear in L P and we add the constraint ← a, a to the program. For managing the constraints in our logic programs, we will replace each rule of the form ← B by a new rule of the from f ← B, not f such that f is a new atom symbol which does not appear in L P .</p><p>The use of {∨, ∧, ¬, not, ×} formulas in the head of nested ordered disjunction rules, rather than elementary formulas or disjunctive formulas only (as in <ref type="bibr" target="#b1">[2,</ref><ref type="bibr" target="#b7">8]</ref>), provides a richer expressiveness in specifying qualitative preferences in our logic programs. Using ∨, and ∧ we can express for instance that certain options are equally preferred or that certain combinations are preferred over other combinations. The following program exemplifies some preference statements we can express by means of an LP OD + .</p><p>Example 1. Let P be an LP OD + representing the user preferences of the form:</p><formula xml:id="formula_1">r 1 = italian × peruvian × (not italian ∧ not peruvian) . r 2 = (pub ∨ bar) × (cinema ∧ ¬tv) ← night. r 3 = night.</formula><p>Briefly, the intuitive reading of each of the rules of the program P is the following: r 1 expresses that we generally prefer to have italian over peruvian food and we prefer to have one of the options over not having any of them; r 2 tells that in the night we prefer to go to a pub or a bar, but if it not possible then we wish to see a movie in the cinema and not in the tv and r 3 just tells that we imperatively want to do something in the night time.</p><p>In the next section we define the semantics for inferring the answer set of an LP OD + .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">Semantics</head><p>Keeping in mind that the definition of answer sets semantics <ref type="bibr" target="#b6">[7]</ref> consists of two parts (a syntactic reduction and a semantics for definite programs), the extension of this definition to LP OD + follows the same strategy. Thus, to define the semantics of our LP ODs + we consider and extend some of the results in <ref type="bibr" target="#b8">[9]</ref> where a semantics for nested logic programs is presented. The first definitions are simply reported as they represent some basic results we reuse for achieving our scope. Instead, Definition 4 and 5 extend the original ones for nested programs to consider the × connective which characterizes our approach. Definition 1. <ref type="bibr" target="#b8">[9]</ref> Let M be a set of atoms. M satisfies a definite nested formula A (denoted by M |= A), recursively as follows: M is called an answer set for P if M is minimal among the sets of atoms closed under P . Definition 4. The reduct of a nested ordered disjunction formula with respect a set of atoms M is defined recursively as follows:</p><formula xml:id="formula_2">-for elementary A, M |= A if A ∈ M ∨ A = -M |= A ∧ B if M |= A ∧ M |= B -M |= A ∨ B if M |= A ∨ M |= B Definition 2.</formula><formula xml:id="formula_3">-for elementary A, A M = A -(A ∧ B) M = A M ∧ B M -(A ∨ B) M = A M ∨ B M -(not A) M ⊥, if M |= A M , otherwise -(A × B) M      A M , if M |= A M B M , if M |= A M ∧ M |= B M ⊥, otherwise</formula><p>Definition 5. The reduct P M × + of a nested logic program with ordered disjunction with respect to a set of atoms M is defined recursively as follows: </p><formula xml:id="formula_4">-(H ← B) M = H M ← B M -P M × + = {(H ← B) M | H ← B ∈ P } Please notice that P M × + is</formula><formula xml:id="formula_5">(a × b × (not a ∧ not b)) {b,d,g} . b {b,d,g} . b. (c ∨ d) × (e ∧ f ) ← g) {b,d,g} . (c ∨ d) {b,d,g} ← g {b,d,g} . c ∨ d ← g. (g) {b,d,g} . g. g. (← f ∧ f .) {b,d,g} . ← f {b,d,g} ∧ f {b,d,g} . ← f ∧ f .<label>(2) (3)</label></formula><p>Clearly, M is an answer set of P {b,d,g} × + and so M is an answer set of P . Similarly, it can be proved that the sets of atoms {a, c, g}, {a, d, g}, {a, e, f , g}, {b, c, g}, {b, e, f , g}, {c, g}, {d, g} and {e, f , g} are valid answer sets of P as well.</p><p>It can be noticed that there is an interesting property of our LP OD + semantics. Besides the fact that LP OD + has a richer syntax they show to have a richer semantics as well. When all the rules of an LP OD + P are ordered disjunction rules (according to the syntax of LPODs in <ref type="bibr" target="#b1">[2]</ref>), the LP OD + semantics and the LPODs semantics in fact coincide.</p><p>Proposition 1. Let P be an LP OD + such that ∀r ∈ P , r = A 1 × . . . × A k ← B 1 , . . . , B m , not B m+1 , . . . , not B m+n each A i (with 1 ≤ i ≤ k) and B j 'a (with 1 ≤ j ≤ m + n) are literals (or elementary formulas), and M be a set of atoms. M is answer set of P M × + if and only if M is answer set of P M × . 4</p><p>3 Due to representation issues we have changed the signature of the program from {italian, peruvian, pub, bar, cinema, tv, tv night} to {a, b, c, d, e, f, f g} respectively. 4 The P M × reduction is defined as S r∈P r M × , where r M × := {Ai ← B1, . . . , Bm|Ai ∈ M and M ∩ ({A1, . . . , Ai−1} ∪ {Bm+1, . . . , Bm+n}) = ∅} (see <ref type="bibr" target="#b1">[2]</ref> for details).</p><p>Another interesting property is that when the formulas in our LP ODs + are formulas without the × connective, then the LP ODs + semantics and the semantics for nested logic programs defined in <ref type="bibr" target="#b8">[9]</ref> coincide.</p><p>Proposition 2. Let P be an LP OD + such that ∀r ∈ P , r = H ← B, H and B are well-formed formulas × free, and M be a set of atoms. M is answer set of P M × + if and only if M is answer set of Π M .<ref type="foot" target="#foot_2">5</ref> </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3">Answer Sets Selection</head><p>At the beginning of the paper we have pointed out how an LP OD + is a specification to express preferences about certain conditions inducing a preference order among its answer sets. Thus, the key question now is how such ordering can be achieved. In the simplest case where each rule of an LP OD + corresponds to an ordered disjunction rule, a satisfaction degree k (with 1 ≤ i ≤ k) can be associated to an answer set M w.r.t. a rule (deg M (r)) which corresponds to the position of the best satisfied literal <ref type="bibr" target="#b1">[2]</ref>. However, when we consider a nested ordered disjunction rule r = H × B where H and B can be formulas built from {∨, ∧, ¬, not, ×} and {∨, ∧, ¬, not} respectively, the assignation of a satisfaction degree is not so trivial. Let us assume in fact that M is an answer set of an LP OD + P . How is possible to determine the satisfaction degree of M w.r.t. each rule r in P ? This degree may depend on how many options H admits. For this reason we first define the optionality of an answer set M w.r.t. a nested ordered disjunction formula H as follows:</p><p>Definition 7. Let H be a {∨, ∧, ¬, not, ×} formula, and M be an answer set of an LP OD + P . Then the optionality of M w.r.t. H, denoted by opt M (H) is recursively defined as follows:</p><formula xml:id="formula_6">opt M (H)                    1, if H = A and A is an elementary formula k                if H = (not P ) then k = opt M (P ) if H = (P ∧ Q) then k = max{opt M (P ), opt M (Q)} if H = (P ∨ Q) then k = max{opt M (P ), opt M (Q)} if H = (P × Q) then k = opt M (P ), if M |= P M k = opt M (P ) + opt M (Q), otherwise</formula><p>Based on this function, the satisfaction degree of an answer set M w.r.t. a nested ordered disjunction rule r = H ← B can be defined as: Definition 8. Let M be an answer set of an LP OD + P . Then the satisfaction degree M w.r.t. a rule r = H ← B, denoted by deg + M (r) is:</p><formula xml:id="formula_7">deg + M (r) 1, if M |= B M opt M (H), otherwise</formula><p>The degrees can be viewed as penalties, in fact a higher degree expresses a lesser satisfaction. Thus, if the body of a rule is not satisfied, then there is no reason to be dissatisfied and the best possible degree 1 is obtained <ref type="bibr" target="#b1">[2,</ref><ref type="bibr" target="#b2">3]</ref>.</p><p>We can observe that there is a direct property w.r.t. the optionality function we defined for the answer sets of an LP OD + . The optionality function clearly generalises the satisfaction degree of answer sets of an LPOD. Proposition 3. Let P be an LP OD + such that ∀r ∈ P , r = A 1 × . . . × A k ← B 1 , . . . , B m , not B m+1 , . . . , not B m+n each A i (with 1 ≤ i ≤ k) and B j 's (with 1 ≤ j ≤ m + n) are literals (or elementary formulas), and M be an answer set of P . Then deg + M (r) = deg M (r). <ref type="foot" target="#foot_3">6</ref>Therefore our approach also generalises in a consistent way the preference relation between answer sets of LPODs. </p><formula xml:id="formula_8">Definition 9. [2] M 1 is preferred to M 2 (denoted by M 1 &gt; M 2 ) iff ∃ r ∈ P such that deg + M1 (r) &lt; deg + M2 (</formula><formula xml:id="formula_9">opt M1 (a × b × (not a ∧ not b)) = 1 opt M1 (a × b) = 1 opt M1 (a) 1 opt M1 ((c ∨ d) × (e ∧ f )) = 1 opt M1 (c ∨ b) = 1 1</formula><p>The case of M 2 looks more interesting as it shows how determining the degree of satisfaction can be sometimes more involved. As M 2 satisfies only the third condition in the head of rule r 1 , its optionality w.r.t. this rule has to take into account that the first two conditions are not satisfied, i.e. </p><formula xml:id="formula_10">opt M2 ((c ∨ d) × (e ∧ f )) = 2 . . . (c ∨ d) = 1 1 opt M2 (e ∧ f ) = 1 opt M2 (e) 1 opt M2 (f )<label>1</label></formula><p>The simplest case of r 3 is not represented as r 3 is clearly satisfied by degree 1 by both answer sets. Once the degrees are calculated the preference relation can be used to compare M 1 and M 2 . It is easy to see how M 1 is preferred to M 2 since M 1 satisfies the rules of the program in a better way (M 2 ≯ M 1 from Definition 9 as well).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Conclusions, Discussions and Future Research</head><p>The main scope of this paper has been to define the syntax and the semantics for nested logic programs with ordered disjunction. The syntax of an LP OD + is based on well-formed formulas built from connectives {∨, ∧, ¬, not} plus an ordered disjunction connective × which was first introduced in QCL and then used in logic programs with ordered disjunction. As a result, rules in LP ODs + are more general than rules which can be specified in related approaches of qualitative context-dependent preferences between literals such as LPODs <ref type="bibr" target="#b1">[2]</ref> and DLPODs <ref type="bibr" target="#b7">[8]</ref>. In fact compared to LPODs and DLPODs, the LP OD + syntax allows the specification of more complex formulas built by means of {∨, ∧, ¬, not, ×} formulas in the head of the rules and {∧, ∨, ¬, not} formulas in the body. In this respect we extend the syntax of LPODs and DLPODs rules where × and ×, ∨ literals' combinations are allowed. Among quantitative approaches to preference specification, it is worth to mention the work of Costantini et al. <ref type="bibr" target="#b4">[5]</ref>, where an extension of ASP is designed to model quantitative resources and enabling the specification of non-linear preferences (both in the heads and in the bodies).</p><p>We have shown how the LP OD + semantics can be defined in a lighter way (Definition 4, 5 and 6) than then LPODs semantics (which is based on split programs <ref type="bibr" target="#b1">[2]</ref>) reusing and extending some definitions related to the semantics of nested logic programs <ref type="bibr" target="#b8">[9]</ref>. We have also seen how when an LP OD + syntactically corresponds to an LPOD the two semantics coincide (Proposition 1) and when the formulas of an LP ODs + are × free, the LP OD + semantics coincide with the semantics of nested logic programs (Proposition 2). As LP ODs + allow complex formulas in their rules head, we have characterised the degree of satisfaction of an answer set w.r.t. a nested ordered disjunction rule (Definition 8) by means of a recursive optionality function (Definition 7). As the optionality function generalises the satisfaction degree defined for LPODs (Proposition 3) we have been able to reuse the preference relation criteria specified in <ref type="bibr" target="#b1">[2]</ref> for comparing the answer sets of an LP OD + .</p><p>As far the complexity of reasoning is concerned, we have reasons to believe that the complexity of computing the answer sets of an LP OD + corresponds to the complexity of disjunctive logic programs. This can be informally motivated by the fact that by means of a transformation, we are currently investigating, which is able to convert nested ordered disjunction rules to × free ones (i.e. nested rules), we can reuse the polynomial translation for nested logic programs into disjunctive ones presented by Sarsakov et al. in <ref type="bibr" target="#b9">[10]</ref>. Therefore, the implementation of an LP OD + solver can be sketched as follows: after extending the compiler for nested logic programming (nlp 7 ) to treat the × connector, the answer sets of an LP ODs + are computable by a disjunctive logic programming system such as DLV 8 . These results are preliminary and we need to explore them in a more precise way in an extended version of this paper.</p><p>Beside these extensions, as future work we are considering to extend the LP OD + formalism to be able to reason under incomplete evidence and partially inconsistent knowledge associating to each rule of an LP OD + a certainty degree following the same spirit as in our framework of logic programs with possibilistic ordered disjunction (LPPODs) we presented in <ref type="bibr" target="#b3">[4]</ref>. The work in this paper represents in fact the first step towards an extension of the LPPODs framework. Last but not least, we aim to look for several possible applications we can target with our specification. So far, LP ODs + seem prominent to model application domains such as qualitative decision making with preferences and preference queries to databases.</p></div><figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_0"><head>[ 9 ]</head><label>9</label><figDesc>Let P be a definite nested logic program. A set of atoms M is closed under P if, ∀r ∈ P , M |= H whenever M |= B. Definition 3. [9] Let M be a set of atoms and P a definite nested logic program.</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_1"><head>2 opt M1 (a) 1 opt M2 (b) 1 . 1 .</head><label>2111</label><figDesc>deg + M2 (r 1 ) = 2 + opt M1 (not a ∧ not b). As shown below the degrees of M 2 w.r.t. r 1 and r 2 correspond to deg + M2 (r 1 ) = 3 and deg + M2 (r 2 ) = 2 respectively since: opt M2 (a × b × (not a ∧ not b)) = 3 opt M2 (a × b) = . . (not a ∧ not b) =</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" type="table" xml:id="tab_0"><head>Table 1 .</head><label>1</label><figDesc>Example of rules captured by LP OD + syntax</figDesc><table><row><cell>Syntax</cell><cell>Rule Type</cell></row></table></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" type="table" xml:id="tab_1"><head></head><label></label><figDesc>a definite nested logic program, i.e. × and not free. Hence, the following definition follows in a straightforward way from the answer set definition for definite nested logic programs. Definition 6. Let P be an LP OD + and M a set of atoms. M is answer set of P if it is an answer set of P M ×</figDesc><table><row><cell>{b,d,g} × +</cell><cell>can be obtained in three recursive steps applying</cell></row><row><cell>Definition 4 and 5:</cell><cell></cell></row><row><cell>(1)</cell><cell></cell></row></table><note>+ . Example 2. Let us consider the LP OD + P in Example 1 3 and the set of atoms M = {b, d, g}. Then P</note></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" type="table" xml:id="tab_2"><head></head><label></label><figDesc>r), and r ∈ P such that deg + M2 (r ) &lt; deg + M1 (r ). Example 3. Let P be the LP OD + in Example 1 and M 1 = {a, c, g}, M 2 = {e, f , g} be two of the answer sets of P in Example 2. We want to show that M 1 &gt; M 2 . For doing this, we first have to calculate the satisfaction degrees of M 1 and M 2 w.r.t. all the rules in P . Applying Definition 7 and 8 we can see how the degrees of M 1 w.r.t. r 1 and r 2 correspond to deg + M1 (r 1 ) = 1 and deg + M1 (r 2 ) = 1 respectively since:</figDesc><table /></figure>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_0">The original connective is denoted by − → × , however we write × for consistent notation with ordered disjunction used in Answer Set Programming<ref type="bibr" target="#b1">[2,</ref><ref type="bibr" target="#b3">4]</ref>.</note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_1">In the following we assume that the connectives ∧, ∨, and not have stronger bindings than ×. We also assume that × is associative.</note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="5" xml:id="foot_2">The Π M reduction is defined as the P M × + without the × case (see<ref type="bibr" target="#b8">[9]</ref> for details).</note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="6" xml:id="foot_3">We refer to<ref type="bibr" target="#b1">[2]</ref> for the definition of degM (r).</note>
		</body>
		<back>

			<div type="acknowledgement">
<div xmlns="http://www.tei-c.org/ns/1.0"><p>Acknowledgements The authors would like to thank the anonymous referees for their useful suggestions and comments. This research has been partially supported by ICT-ALIVE (FP7-215890).</p></div>
			</div>

			<div type="references">

				<listBibl>

<biblStruct xml:id="b0">
	<monogr>
		<title level="m" type="main">Knowledge Representation, Reasoning and Declarative Problem Solving</title>
		<author>
			<persName><forename type="first">C</forename><surname>Baral</surname></persName>
		</author>
		<imprint>
			<date type="published" when="2003">2003</date>
			<publisher>Cambridge University Press</publisher>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b1">
	<analytic>
		<title level="a" type="main">Logic Programs with Ordered Disjunction</title>
		<author>
			<persName><forename type="first">G</forename><surname>Brewka</surname></persName>
		</author>
		<author>
			<persName><forename type="first">I</forename><surname>Niemelä</surname></persName>
		</author>
		<author>
			<persName><forename type="first">T</forename><surname>Syrjänen</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Computational Intelligence</title>
		<imprint>
			<biblScope unit="volume">20</biblScope>
			<biblScope unit="issue">2</biblScope>
			<biblScope unit="page" from="333" to="357" />
			<date type="published" when="2004">2004</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b2">
	<analytic>
		<title level="a" type="main">Qualitative Choice Logic</title>
		<author>
			<persName><forename type="first">G</forename><surname>Brewka</surname></persName>
		</author>
		<author>
			<persName><forename type="first">S</forename><surname>Benferhat</surname></persName>
		</author>
		<author>
			<persName><forename type="first">D</forename><surname>Le Berre</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Artificial Intelligence</title>
		<imprint>
			<biblScope unit="volume">157</biblScope>
			<biblScope unit="issue">1-2</biblScope>
			<biblScope unit="page" from="203" to="237" />
			<date type="published" when="2004">2004</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b3">
	<analytic>
		<title level="a" type="main">Possibilistic Semantics for Logic Programs with Ordered Disjunction</title>
		<author>
			<persName><forename type="first">R</forename><surname>Confalonieri</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><forename type="middle">C</forename><surname>Nieves</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Osorio</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Vázquez-Salceda</surname></persName>
		</author>
		<ptr target="http://www.cs.uni-potsdam.de/~torsten/nlp/" />
	</analytic>
	<monogr>
		<title level="m">FoIKS</title>
		<title level="s">LNCS</title>
		<editor>
			<persName><forename type="first">S</forename><surname>Link</surname></persName>
		</editor>
		<editor>
			<persName><forename type="first">H</forename><surname>Prade</surname></persName>
		</editor>
		<meeting><address><addrLine>Berlin,Heidelberg</addrLine></address></meeting>
		<imprint>
			<publisher>Springer-Verlag</publisher>
			<date type="published" when="2010">2010. 2010</date>
			<biblScope unit="volume">5956</biblScope>
			<biblScope unit="page">7</biblScope>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b4">
	<analytic>
		<title level="a" type="main">Modeling preferences and conditional preferences on resource consumption and production in ASP</title>
		<author>
			<persName><forename type="first">S</forename><surname>Costantini</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>Formisano</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Journal of Algorithms</title>
		<imprint>
			<biblScope unit="volume">64</biblScope>
			<biblScope unit="issue">1</biblScope>
			<biblScope unit="page" from="3" to="15" />
			<date type="published" when="2009">2009</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b5">
	<monogr>
		<title level="m" type="main">Logic and Structure. Third</title>
		<author>
			<persName><forename type="first">D</forename><surname>Van Dalen</surname></persName>
		</author>
		<imprint>
			<date type="published" when="1994">1994</date>
			<publisher>Springer-Verlag</publisher>
			<pubPlace>Berlin</pubPlace>
		</imprint>
	</monogr>
	<note>augmented edition edn</note>
</biblStruct>

<biblStruct xml:id="b6">
	<analytic>
		<title level="a" type="main">Classical Negation in Logic Programs and Disjunctive Databases</title>
		<author>
			<persName><forename type="first">M</forename><surname>Gelfond</surname></persName>
		</author>
		<author>
			<persName><forename type="first">V</forename><surname>Lifschitz</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">New Generation Computing</title>
		<imprint>
			<biblScope unit="volume">9</biblScope>
			<biblScope unit="issue">3/4</biblScope>
			<biblScope unit="page" from="365" to="386" />
			<date type="published" when="1991">1991</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b7">
	<analytic>
		<title level="a" type="main">Towards Logic Programs with Ordered and Unordered Disjunction</title>
		<author>
			<persName><forename type="first">P</forename><surname>Kärger</surname></persName>
		</author>
		<author>
			<persName><forename type="first">N</forename><surname>Lopes</surname></persName>
		</author>
		<author>
			<persName><forename type="first">D</forename><surname>Olmedilla</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>Polleres</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Workshop on Answer Set Programming and Other Computing Paradigms (ASPOCP)</title>
				<imprint>
			<date type="published" when="2008">2008. 2008</date>
			<biblScope unit="page" from="46" to="60" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b8">
	<analytic>
		<title level="a" type="main">Nested expressions in logic programs</title>
		<author>
			<persName><forename type="first">V</forename><surname>Lifschitz</surname></persName>
		</author>
		<author>
			<persName><forename type="first">L</forename><forename type="middle">R</forename><surname>Tang</surname></persName>
		</author>
		<author>
			<persName><forename type="first">H</forename><surname>Turner</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Annals of Mathematics and Artificial Intelligence</title>
		<imprint>
			<biblScope unit="volume">25</biblScope>
			<biblScope unit="issue">3-4</biblScope>
			<biblScope unit="page" from="369" to="389" />
			<date type="published" when="1999">1999</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b9">
	<analytic>
		<title level="a" type="main">nlp: A Compiler for Nested Logic Programming</title>
		<author>
			<persName><forename type="first">V</forename><surname>Sarsakov</surname></persName>
		</author>
		<author>
			<persName><forename type="first">T</forename><surname>Schaub</surname></persName>
		</author>
		<author>
			<persName><forename type="first">H</forename><surname>Tompits</surname></persName>
		</author>
		<author>
			<persName><forename type="first">S</forename><surname>Woltran</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">LPNMR04. Volume 2923 of LNCS</title>
				<editor>
			<persName><forename type="first">V</forename><surname>Lifschitz</surname></persName>
		</editor>
		<editor>
			<persName><forename type="first">I</forename><surname>Niemelä</surname></persName>
		</editor>
		<imprint>
			<publisher>Springer</publisher>
			<date type="published" when="2004">2004</date>
			<biblScope unit="page" from="361" to="364" />
		</imprint>
	</monogr>
</biblStruct>

				</listBibl>
			</div>
		</back>
	</text>
</TEI>
