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.
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.
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].
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 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 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.
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 .
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 .
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.
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.

Pinned article: Introduction to the OurBigBook Project

Welcome to the OurBigBook Project! Our goal is to create the perfect publishing platform for STEM subjects, and get university-level students to write the best free STEM tutorials ever.
Everyone is welcome to create an account and play with the site: ourbigbook.com/go/register. We belive that students themselves can write amazing tutorials, but teachers are welcome too. You can write about anything you want, it doesn't have to be STEM or even educational. Silly test content is very welcome and you won't be penalized in any way. Just keep it legal!
We have two killer features:
  1. topics: topics group articles by different users with the same title, e.g. here is the topic for the "Fundamental Theorem of Calculus" ourbigbook.com/go/topic/fundamental-theorem-of-calculus
    Articles of different users are sorted by upvote within each article page. This feature is a bit like:
    • a Wikipedia where each user can have their own version of each article
    • a Q&A website like Stack Overflow, where multiple people can give their views on a given topic, and the best ones are sorted by upvote. Except you don't need to wait for someone to ask first, and any topic goes, no matter how narrow or broad
    This feature makes it possible for readers to find better explanations of any topic created by other writers. And it allows writers to create an explanation in a place that readers might actually find it.
    Figure 1.
    Screenshot of the "Derivative" topic page
    . View it live at: ourbigbook.com/go/topic/derivative
  2. local editing: you can store all your personal knowledge base content locally in a plaintext markup format that can be edited locally and published either:
    This way you can be sure that even if OurBigBook.com were to go down one day (which we have no plans to do as it is quite cheap to host!), your content will still be perfectly readable as a static site.
    Figure 5. . You can also edit articles on the Web editor without installing anything locally.
    Video 3.
    Edit locally and publish demo
    . Source. This shows editing OurBigBook Markup and publishing it using the Visual Studio Code extension.
  3. https://raw.githubusercontent.com/ourbigbook/ourbigbook-media/master/feature/x/hilbert-space-arrow.png
  4. Infinitely deep tables of contents:
    Figure 6.
    Dynamic article tree with infinitely deep table of contents
    .
    Descendant pages can also show up as toplevel e.g.: ourbigbook.com/cirosantilli/chordate-subclade
All our software is open source and hosted at: github.com/ourbigbook/ourbigbook
Further documentation can be found at: docs.ourbigbook.com
Feel free to reach our to us for any help or suggestions: docs.ourbigbook.com/#contact