Solutions cover all three questions.[ref] Throughout, the vocabulary in question 1 is interpreted as specified in the paper; in particular, the intended meaning of supplies the number of supervised students. Question 2 distinguishes EL from EL with bottom explicitly, since the convention about changes two answers.
The condition about taking the course restricts which students the first-order sentence talks about. Within that condition we need both an inclusive logical disjunction and a prohibition on satisfying both alternatives:
The logical conjunction on the right expresses exactly one of the two categories. It does not prohibit unrelated individuals from belonging to both categories: the restriction applies to the students in the antecedent.
The supervisor can depend on the student, so the existential quantification belongs inside the universal quantification:
The first-order sentence permits different students to share a supervisor. It requires neither that the supervisor be different from the student nor that the supervisor be a faculty member, since neither additional condition was given.
Using the supplied counting function, an appropriate first-order sentence is
Here the counting comparison expresses the threshold and the existential quantification expresses teaching at least one course. The word “if” supplies this direction of logical implication; it does not assert that these are the only reasons a faculty member can be busy. With the intended meanings of the nonlogical symbols, no further counting axioms are needed for this translation. If those meanings were unspecified, the displayed first-order sentence alone would not define arithmetic or connect the counting function to the supervision relation.
Write for the atomic formulas , , , , , , and , respectively. These are abbreviations for formulas, not new symbols in the vocabulary. In clausal normal form, with all remaining variables implicitly universally quantified, the three translations become:
For (ii), Skolemization introduces the fresh Skolem function . One supervisor suffices even when both categories hold, so the same can be used in both first-order clauses. For (iii), moving the existentially quantified course out of an antecedent produces a universally quantified variable in the resulting first-order clause:
The resolution with free selection calculus for first-order Horn clauses is sound and refutationally complete for the clause sets from . For example, select the unique positive first-order literal in every definite first-order Horn clause, and select one negative first-order literal in every nonempty clause without a positive one. On the displayed definite first-order Horn clauses, this selects or . A fair saturation must still consider all permitted inferences. Functions do not invalidate this completeness theorem, although they can prevent termination. [ref]
The first first-order clause of (i) has two positive first-order literals, so the Horn resolution with free selection theorem does not apply to that sentence. General first-order resolution, with its usual completeness requirements, can handle it. Soundness of an individual resolution inference is not the issue; the issue is applicability and completeness of this particular restricted calculus.
With existential rules understood as function-free tuple-generating dependencies, belongs to the fragment. Split its antecedent to obtain
These two existential rules have exactly the same meaning as (ii): either category requires a supervisor, and when both hold the same supervisor may witness both requirements.
Sentence (i) requires a genuine choice between two positive alternatives and also an exclusion condition. Positive existential rules cannot enforce that exclusion: interpreting all their relations as full relations on a one-element domain always satisfies them, whereas that interpretation violates (i). Sentence (iii), in the supplied vocabulary, uses the nonconstant function and is therefore outside the function-free fragment. Introducing a new relation for the counting comparison would change the representation and require additional axioms; it is not an equivalent sentence in the stated vocabulary.
For ordinary function-free Datalog, has the required form. Sentence (i) is not a definite first-order Horn clause: the category choice gives two positive alternatives, and its second clause is a negative constraint. Even allowing constraints would not remove the positive choice. Semantically, the category-choice condition fails closure under intersection of interpretations with fixed domain and functions: one model can choose only the undergraduate category, another only the masters category, and their intersection chooses neither.
Sentence (ii) needs an existentially supplied supervisor. Function-free Datalog cannot demand such a witness without naming or otherwise fixing it in the rule. Its Skolemized form is a first-order Horn clause with a function, rather than a Datalog rule. Sentence (iii) also contains a nonconstant function. Being Horn is therefore insufficient for membership in Datalog.
The standard relational guarded fragment contains . In (i), guards the only quantified variable:
The constants in the course-taking relation do not introduce additional free variables that need guarding.
For (ii), use the two implications from part (c)(i). Each outer universal quantification is guarded by its unary category predicate. The inner existential quantification can be written
whose guard contains both and . Sentence (iii) uses a nonconstant function and so is outside the standard relational guarded fragment. This conclusion uses the original vocabulary; it does not silently replace the counting term by a fresh relation.
In ALC, is representable over the given symbols. It is the general concept inclusion
Equivalently, use one general concept inclusion for each category. Unary predicates become description logic concepts and the supervision predicate becomes a description logic role.
Sentence (i) depends on a ternary predicate evaluated at two named constants. Basic ALC has unary description logic concepts and binary description logic roles, with no constructor for that course-and-year slice of a ternary predicate. Sentence (iii) uses a counting function and a comparison relation that basic ALC cannot express. Replacing these conditions by freshly named description logic concepts would give an informal encoding, but would not define their meanings or establish equivalence in the supplied vocabulary.
For resolution, a first-order sentence is in clausal normal form when it is a universally quantified logical conjunction of first-order clauses:
where every is a first-order literal, meaning an atomic formula or the logical negation of an atomic formula. The quantifiers are often left implicit and the first-order clauses treated as a set. The empty first-order clause represents falsity; an empty set of first-order clauses represents truth.
A convention that allows an arbitrary quantifier prefix followed by a conjunctive matrix is weaker: that is a prenex normal form with a conjunctive matrix. The elimination of existential quantifiers by Skolemization is the extra step relevant to resolution and to part (ii).
The usual transformation to clausal normal form preserves . Removing implications and distributing logical conjunction and logical disjunction preserve logical equivalence. Skolemization introduces new symbols and chooses witnesses as functions of preceding universally quantified variables.
For example,
On the domain , let be equality. Then is true. Expand this same first-order structure by interpreting as the constant function with value . The resulting first-order structure falsifies at . Interpreting as the identity instead satisfies .
Thus every model of has a reduct satisfying , and a model of can be expanded with suitable witnesses to satisfy . That model-expansion property gives equisatisfiability, not logical equivalence for every interpretation of the added function. If “CNF” means a conjunctive matrix with existential quantifiers retained, Skolemization has not yet happened and an equivalent form is possible; this is why the convention must be specified.
An exponential increase is unavoidable for an equivalent conjunctive normal form over the original variables. Consider the linear-size Boolean formula
Distributing gives the Boolean clauses
To prove that the growth is necessary, fix one choice . Let make every false and its partner true. Each pair then contains a false variable, so is false. Any equivalent conjunctive normal form must contain a Boolean clause falsified by and entailed by .
Every individual term entails , because that term implies . After tautological Boolean clauses are discarded, this forces to contain a positive or positive for every : otherwise set both variables in that pair true and independently falsify all Boolean literals of , contradicting the entailment. Since is false at , it must contain the false member , never its true partner. Consequently the same cannot be false at any different . The different assignments therefore require at least different Boolean clauses.
Writing the answer already takes . This obstruction applies to first-order logic as well, since the example can be expressed using ground unary atomic formulas. It concerns exact equivalence without auxiliary symbols. A Tseytin transformation can produce a polynomial-size equisatisfiable conjunctive normal form with auxiliary variables, so the statement must not be extended to that different task.
The algorithm is . Its recursive calls return only Booleans. They do not return and propagate the first-order substitutions obtained while satisfying earlier rule premises.
Take distinct constants , facts
and the single Datalog rule
Ask for . The head matches the goal without binding . In line 15, the recursive call for succeeds by first-order unification with , but returns only true. The next recursive call still receives with unbound, and succeeds by first-order unification with . Neither subgoal is the visited head , so the visited test does not stop these calls. Both recursive results are true, and the algorithm returns true for .
However, the least Herbrand model is just . No single constant makes both and true, so the rule cannot derive . The two individually successful premises need one consistent first-order substitution. A correct backward chaining procedure must thread answer first-order substitutions through the remaining premises and backtrack when they cannot be extended; forward chaining on ground Datalog instances is another way to avoid this error.
A fragment has the finite model property if . This does not mean that every model is finite, nor that there is one uniform bound on model size for the entire fragment.
ALC has the finite model property, including satisfiability with respect to finite TBoxes. A tableau algorithm for ALC uses finitely many possible labels and direct blocking in description logic to obtain a finite representation of a model. The resulting finite-model claim is a property of the logic; termination alone, for an arbitrary procedure, would not establish it.
Full first-order logic does not have the finite model property. For example, the first-order sentence
requires an irreflexive transitive relation with a successor for every element. It is satisfied by the usual strict order on the natural numbers. In a nonempty finite domain, repeatedly taking successors eventually repeats an element; transitivity would then force , contradicting irreflexivity. Hence this satisfiable first-order sentence has no finite model.
An initial split into an acyclic definition and the remaining general concept inclusions is
The definition of is suitable for TBox unfolding: its right-hand side does not depend on , and has only this defining left-hand side. The other displayed general concept inclusions do not initially have an atomic defined left-hand side. In particular, can be rewritten for TBox absorption, but is not already an atomic definition.
Absorb (4) using the equivalence
Thus we can take
Here is a primitive inclusion, handled by adding whenever labels a node. For literal substitution-based TBox unfolding, introduce a fresh description logic concept and replace the primitive inclusion by
This preserves the original models after forgetting : any model of the primitive inclusion extends by taking , and any model of the new definition satisfies the primitive inclusion. The fresh name is important. Replacing by alone would incorrectly assert that every non- element is an element.
Use the substitution version of TBox unfolding from part (a), and abbreviate
The notation is the negation normal form of . The unfolded input description logic concept is
For the remaining TBox, turn each general concept inclusion into , and unfold all defined names. The global description logic concept to add at every generated node is
In the last line, negating gives . Both levels of universal restriction are needed.
Start the tableau algorithm for ALC with a root labelled and . Expand the logical conjunctions. For the disjunction from (2), choose . For the disjunction from (3), choose . Apart from the compound formulas already processed, the root label is
There is no existential restriction at , so no successor needs to be generated. In particular, creates a -successor only at an existing -successor; it creates no -successor itself. The branch is complete and has no tableau clash. There is : the open completion graph has only its root. The universal restrictions can have incompatible fillers without creating a tableau clash when there are no successors.
For comparison, choosing the other alternative from (2) creates an -successor . The root restriction puts in , giving a tableau clash immediately. That branch closes before direct blocking in description logic is needed. The figure records the processed formulas through the label and displays the decisive labels explicitly.
Figure 1.
An open one-node completion and the closed alternative; neither branch contains a directly blocked node
. Details.
A concrete model confirms the open branch:
All three remaining general concept inclusions hold because their relevant -successor requirements are vacuous. The definition of and the disjointness condition hold as well. Thus .
Using the absorbed TBox with its primitive inclusion, translate description logic concepts as unary predicates and description logic roles as binary predicates. Concept satisfiability means that some element belongs to , while every element satisfies the TBox axioms. The required first-order sentence is
Only is included here, as requested. There is no requirement to satisfy (1), (2) or (3). For instance, one element with , and satisfies this first-order sentence.
Alternatively, unfolding the absorbed TBox first gives the existential first-order sentence . The interpretation of the eliminated names is then recovered by and .
For EL with bottom, the eligible axioms are . Axioms (1) and (3) contain universal restrictions, and (3) also contains a disjunction, so they are outside its syntax. For plain EL, whose constructors are , atomic names, conjunction and existential restriction, the eligible axioms are ; (4) is excluded because it uses . These conventions should not be conflated.
Here is a normalized TBox for the bottom-inclusive version. Introduce one fresh description logic concept for , and use
These are the usual normalized forms: an existential restriction on the left with an atomic right-hand side, an atomic left-hand side with an existential restriction on the right, or a conjunction of atomic names implying . Here is permitted as a filler.
The first two general concept inclusions force . The third then says , exactly (2). Conversely, any model of (2) extends by to satisfy all three normalized general concept inclusions. The last two are the two directions of (5). For plain EL, delete just from this normalized TBox.
The standard semantics of ALC and EL do not impose the unique name assumption. Therefore the two individual names may denote the same element. A minimum-size model of either normalized TBox from part (d), together with the ABox, is
The self-loop supplies the ABox fact and makes both and true at . The self-loop supplies exactly the existential restriction defining . Disjointness holds because is empty. Hence every normalized general concept inclusion is satisfied. A domain must be nonempty, so is minimal.
If a separate unique name assumption were imposed, the minimum would instead be two. One can take , , , , and . There is then no -edge ending at an element, so the normalized requirements involving hold vacuously. That additional convention is not part of standard description logic semantics.
For plain EL, . On a one-element domain, interpret every atomic description logic concept as the whole domain and every description logic role as the full binary relation. A structural induction makes every EL description logic concept denote that element. Every general concept inclusion is consequently true, including cyclic ones. The decision procedure can therefore always answer yes on well-formed inputs.
For EL with bottom, concept satisfiability with respect to general TBoxes is under the usual logarithmic-space reductions. Polynomial-time completion propagates atomic inclusions, conjunction consequences and existential requirements; deriving for the queried description logic concept detects unsatisfiability. There are polynomially many such labels and normalized relationships to propagate.
For the lower bound, encode a monotone Boolean circuit with a starting description logic concept . Give each input gate labelled one an inclusion . Encode an AND gate by , and an OR gate by and . Finally add . Then is unsatisfiable exactly when the circuit output is one. The complement version is also P-complete, since P is closed under complement. Thus allowing changes a trivial satisfiability problem into a nontrivial polynomial-time one. The bottom-inclusive convention is also reflected in the [ref].
The complete numbered axioms in the rule fragment RL description logic are . Their translations to Datalog with constraints are
The first rule is (1). For (3), its existential antecedent needs a two-edge path ending at an or element. Split that disjunction into two Datalog rules, and use a separate variable for an arbitrary immediate -successor of . The conclusion applies to every such successor, not merely the path witness .
The last rule is a constraint: a ground instance with both premises true makes the knowledge base inconsistent. If an implementation permits only positive Datalog heads, replace by a fresh nullary predicate and separately check that it is never derived. Merely deriving without that check would not express disjointness.
Axiom (2) requires an existential witness in its head and is outside RL description logic. Axiom (5), considered as the whole equivalence, is outside for the same reason in the direction . If definitions are split before selecting eligible general concept inclusions, its reverse direction is eligible and adds . Keep the difference between selecting the complete equivalence and retaining its rule-expressible half explicit. The permitted positions of existential and universal restrictions are specified in the [ref].
Fix a signature, adding a fresh constant if it otherwise has no ground terms. Its Herbrand universe is the set of all ground terms, and its Herbrand base is the set of all ground atoms over . A Herbrand interpretation is identified with a subset : precisely its members are true. Function symbols and constants have their term interpretations.
A least Herbrand model of a knowledge base is a Herbrand model satisfying
If it exists, it is unique. This is stronger than being minimal: a minimal model merely has no strictly smaller model contained in it.
For a positive definite Datalog program with facts, let add every fact and the head of every ground rule whose body is already true. Starting from the empty set and repeatedly adding consequences yields
where is taken inflationary, so it also retains its input. Every added ground atom belongs to every model, and the union is closed under every finite rule body. These two facts establish that it is the least Herbrand model. The intersection assertion is guaranteed here by the definite Horn form, not for arbitrary knowledge bases.
A disjunctive Datalog knowledge base can have several incomparable minimal Herbrand models without a least Herbrand model. Take the single disjunctive fact
Both and are Herbrand models. Any least Herbrand model would have to be contained in both, hence contained in . But the empty Herbrand interpretation falsifies the disjunctive fact. This is a contradiction. Taking the intersection of all models therefore fails because that intersection need not itself be a model.
Use not for negation as failure, rather than classical logical negation. The disjunctive condition is expressed by two separate Datalog with negation rules:
The positive premise restricts the rule to years and makes the variable explicitly safe. The divisibility relation is input data; the integer-looking constants do not make arbitrary arithmetic facts true automatically.
The remaining classification rule is
The positive premise restricts the rule to years. Its negation as failure premise is evaluated by stable model semantics; it does not assert a separately stored negative fact. This gives a stratified Datalog program: divisibility and year facts are inputs, leap status is computed next, and common status last.
Add the ground atom
Together with the three rules above, this is the Datalog with negation knowledge base . There are no supplied divisibility facts and no other year facts. In particular, nothing in this knowledge base asserts or .
A Herbrand interpretation is a stable model when it is the least Herbrand model of its stable model reduct . To form the reduct, ground the rules, delete each rule with a premise for which , and remove the remaining occurrences of not and their atoms.
For , the rules concerning in the reduct are
together with . No rule has a divisibility atom in its head, so forward chaining produces no divisibility facts and no leap fact. Ground rules for the other constants cannot fire because their year premises are absent. Thus
Therefore .
For , the rule using is deleted. The common-year rule is retained without its negative premise, since is absent. Crucially, the reduct does not convert atoms already in into facts. Its least Herbrand model is again . The two divisibility atoms in have no support. Hence
Inspecting these two interpretations alone is not sufficient for skeptical entailment. That requires every stable model to contain . Here we can finish the argument: every reduct has no rule deriving divisibility atoms, so every stable model has empty divisibility relation. Its leap relation must then be empty as well. The common-year rule consequently derives , and the only year fact is . Thus is the unique stable model, and
This final uniqueness argument, rather than the examination of just two candidate interpretations, establishes the required universal claim.
A safe one-rule Datalog with negation example with no stable model is
There are no variables, so no safety condition is violated. If is absent from a proposed stable model, its reduct contains the fact , whose least Herbrand model contains . If is present, the rule is deleted, and the reduct has empty least Herbrand model. Either choice disagrees with its reduct's least Herbrand model. Additional unsupported atoms cannot repair the disagreement. Hence there is no stable model.
For polynomial-time many-one reductions, an unconditional example is the empty language:
A procedure that rejects every input decides it in constant time, so it belongs to P and hence NP. It is not NP-hard: the nonempty formal language belongs to NP, but no many-one reduction can satisfy
The right-hand side is always false. Thus the hardness condition fails without assuming . Giving an ordinary nontrivial problem in P would not establish the requested separation unconditionally, because that would require excluding the possibility .
The halting problem is an unconditional example:
Reduce SAT to it as follows. Given a Boolean formula , construct a Turing machine that ignores its input, enumerates all Boolean valuations of , and halts if it finds a satisfying one. If none satisfies , it enters an infinite loop after the enumeration. Then
The construction of the machine description takes polynomial time; the potentially exponential running time of the constructed machine is irrelevant to the time needed to compute the polynomial-time reduction. Since SAT is NP-complete, this proves NP-hardness of the halting problem.
Every problem in NP is decidable, by enumerating the finitely many polynomial-length certificates and running the verifier. The halting problem is undecidable, so it is outside NP and therefore cannot be NP-complete.
The satisfiability problem is . Partition the positive facts according to their predicate symbols. Let contain those using description logic concepts or description logic roles from . Run an ordinary ALC knowledge base consistency procedure on . Return no if it is inconsistent, and yes otherwise.
The no answer is sound because any model of the whole knowledge base would restrict to a model of . For the converse, take a model of that ALC part. Keep its domain, individual interpretations and TBox predicates. Interpret every predicate used by the positive Datalog rules as the full relation of its arity on this same domain. This is possible because those predicates are disjoint from the TBox predicates. Every Datalog rule head is then true under every variable assignment, so every positive rule and every remaining positive fact is satisfied. Predicates occurring only in facts can likewise be interpreted as full relations. Any individual name not already interpreted can denote an arbitrary domain element.
Consequently,
The argument depends on both restrictions in the question: disjoint predicate vocabularies and positive rule heads. A rule concluding would not be made true by filling all relations. Sharing constants alone causes no problem, since the expansion uses the same domain and the same interpretations of those constants.

Articles by others on the same topic (0)

There are currently no matching articles.