Logic for Computer Scientists/Predicate Logic/SATCHMO
Contents |
[edit] SATCHMO
The SATCHMO Theorem Prover was one of the first systems which used model generation, i.e. a bottom-up proof procedure. The prover was given by a small Prolog-program, which implements a tableau proof procedure. One restriction is that it requires range restricted formulae.
[edit] Definition 30
A first order clause
is called range restricted if every variable which occurs in the head
occurs in the body
as well.
- Convert clauses to range restricted form:

- assert range-restricted clauses and dom clauses in Prolog database.
- Call satisfiable:
kill satisfiable :- assume(X) :- asserta(X).
(Head <- Body) assume(X) :-
Body, not Head, !, retract(X), !, fail.
component(HLit, Head), component(E, (E ; _)).
assume(HLit), component(E, (_ ; R)) :-
not false, !, component(E, R).
satisfiable. component(E, E).
satisfiable.
First-Order completeness via Level-Saturation modification. This proof procedure implements Hyper Tableaux in the ground case.
[edit] Hyper Tableau - Ground Case

All open branches consist of positive literals only Take the following clause set as an example 

[edit] Definition 31 (Literal tree, Clausal Tableau)
A literal tree is a pair (t,λ) consisting of a finite, ordered tree t and a labeling function λ that assigns a literal to every non-root node of t.
The successor sequence of a node N in an ordered tree t is the sequence of nodes with immediate predecessor N, in the order given by t.
A (clausal) tableau T of a set of clauses
is a literal tree (t,λ) in which, for every successor sequence
in t labeled with literals
, respectively, there is a substitution σ and a clause
with Ki = Liσ for every
.
is called a tableau clause and the elements of a tableau clause are called tableau literals.
[edit] Definition 32 (Branch, Open and Closed Tableau, Selection Function)
A branch of a tableau T is a sequence
(
) of nodes in T such that N0 is the root of T, Ni is the immediate predecessor of Ni + 1 for
, and Nn is a leaf of T. We say branch
is a prefix of branch c, written as
or
, iff
for some nodes
,
. The branch literals of branch
are the set
. We find it convenient to use a branch in place where a literal set is required, and mean its branch literals. For instance, we will write expressions like
instead of
.
In order to memorize the fact that a branch contains a contradiction, we allow to label a branch as either open or em closed. A tableau is closed if each of its branches is closed, otherwise it is open.
A selection function is a total function f which maps an open tableau to one of its open branches. If f(T) = b we also say that b is selected in T by f.
Note that branches are always finite, as tableaux are finite. Fortunately, there is no restriction on which selection function to use. For instance, one can use a selection function which always selects the "leftmost" branch.
[edit] Definition 33 (Hyper Tableau - Ground Case)
Let S be a finite set of clauses and f be a selection function. Hyper tableaux for S are inductively defined as follows:
Initialization step: A one node literal tree is a hyper tableau for S. Its single branch is marked as "open".
Hyper extension step: If
- T is an open hyper tableau for S, f(T) = b (i.e. b is selected in T by f) with open leaf node N, and
is a clause from S (
,
), called extending clause in this context, and- such that
(referred to as hyper condition)
then the literal tree T' is a hyper tableau for S, where T' is obtained from T by attaching m + n child nodes
to b with respective labels

and marking every new branch
with positive leaf as "open", and marking every new branch
with negative leaf as "closed".
[edit] Minimal Model Reasoning
The clause set
obviously has two different models:
and {B}. Under set inclusion these models can be compared and there are some tasks where it is appropriate to compute the (or in general a) smallest one. This is for example the case with
- Knowledge Representation, Circumscription
- Basis for default negation (GCWA)
- Applications: Deductive database updates, Diagnosis
There are basically two different methods to compute minimal models.
[edit] Minimal Model Reasoning – Niemel¨a’s Approach
Given a set of ground clauses M the methods applies a model generating procedure, e.g. hyper tableau, which is able to generate all models.
Lemma 1: For every minimal model p for M there is a branch with literals p.
Assume that Σ is the set of atoms, which occur in the head of a clause from M, than the following Lemma holds.
Lemma 2: p is a minimal model for M iff 
This offers a general method: Generate model candidates, and test with Lemma 2.
is not a minimal model in our example from above, because
iff
is unsatisfiable, which is not the case, hence p does not correspond to a minimal model and hence the branch is closed.
p = {B} is minimal because
iff
is unsatisfiable. This is the case and hence p is minimal and the branch remains open.
Properties: Soundness (by Lemma 2) Completeness (by Lemma 1), space efficiency.
[edit] Minimal Model Reasoning – Bry& Yayha‘s Approach
As an example we have the set 

Lemma: With complement splitting, the leftmost open branch is a minimal model for M.
General method: Repeat: generate minimal model p, add
to M. Properties: Soundness (by Lemma) Completeness as before, possibly exponentially many new clauses
.
This page may need to be 
is a clause from
,
(referred to as hyper condition)