Professional Documents
Culture Documents
CH 15
CH 15
EX: Lattice = all real numbers with +1; 1 added, then ((V +
5) (V 0 + 2)) div 4 is a lattice term.
So is (3 + 4).
Satisfaction:
1. I satises a ground atom A : i I (A).
2. I satises (F ^ G) i I satises F and I satises G.
3. I satises (F _ G) i I satises F or I satises G.
4. I satises F G i I satises F or I does not satisfy G.
5. I satises (8x:)F [x] i for all ground terms t from the
domain over which x ranges, I satises F [x=t]. Here,
F [x=t] refers to the simultaneous replacement of all free
occurrences of x in F by t.
6. I satises (9x:)F [x] i for some ground term t from the
domain over which x ranges, I satises F [x=t].
does not satisfy the instance of the third rule whne X = a abd
V = 1.
p(a) : 1 :
p(b) : 0:8 :
q(X ) : V2 p(X ) : V:
Suppose I1; I2 are the interpretations given below:
I1(p(a)) = 1; I1(p(b)) = 0:8; I1(q(a)) = 0:7; I1(q(b)) = 0:4
I2(p(a)) = 1; I2(p(b)) = 0:4; I2(q(a)) = 0:2; I2(q(b)) = 0:4
Then TP (I1 ) is given by
TP (I )(p(a))
1 = 1
TP (I )(p(b))
1 = 0:8
TP (I )(q(a))
1 = 0:5
TP (I )(q(b))
1 = 0:4
However, TP (I2 ) is given by
TP (I )(p(a))
2 = 1
TP (I )(p(b))
2 = 0:8
TP (I )(q(a))
2 = 0:5
TP (I )(q(b))
2 = 0:2
= 0.
Ij = TPj (I0).
Ijomega = tj<! Ij . For example, we can easily see that
I (p(a)) = 0:5; I (q(a)) = 0
1 1
0 1j
Ij (p(a)) = 1 @ 1 A ; Ij (q (a)) = 0
2
I! (p(a)) = 1; I! (q(a)) = 0
I! (p(a)) = 1; I! (q(a)) = 1
+1 +1
I! = I!
+2 +1
logical consequence of P .
Consider the query p(X; Y ) : 0:7. 1 is not an answer to the
query because (8X )p(X; a) : 0:7 is not a logical consequence
of P .
Ai : i ^ : : : ^ An : n) ^ (C ^ iv)
+1 +1
?
Figure 1: The lattice FOUR
p:t :
p:f :
p : > is a logical consequence of this GAP.
But there is no annotated refutation of this query from P .
f " 0 = ?:
f " = f (f " ( 1)) for successor ordinals :
f " = t<f " for limit ordinals :
Fixpoint reachability: We say that a GAP P possesses
the xpoint reachability property if, whenever vlfp(TP )(A),
it is the case that vTP " k(A) for some integer k.
A :
1 1 Body1:
A :
2 2 Body2:
If A ; A are uniable via mgu , then the clause
1 2
(A : t 1 Body1 ^ Body2)
1 2
P:
p:t :
p:f :
Reductant:
p:> :
where:
F ; : : :; Fn are basic formulas,
0
sensor2(a) : [V ; V ]: 2 2
sensor2(a) : [V ; V ]:2 2
h:
h(object(a)) = [0; 0]
h(sensor1(a)) = [0:9; 0:9]
h(sensor2(a)) = [0:8; 0:8]
TP (h):
TP (h)((object(a)) = [0; 0]
TP (h)(sensor1(a)) = [0:6; 0:6]
TP (h)(sensor2(a)) = [0:4; 0:5]
then TP (h ) TP (h ).
1 2
p = 1
4
0:4 p + p 0:6
3 4 p +p +p +p = 1
1 2 3 4
0 pi 1 for i = 1; : : :; 4
Stage 3: For each formula F , we may compute VP (h)(F ) by
nding cF and dF , where cF is the minimal (dF , the maximal)
value of the expression
X
pj
wj j=F
subject to the above constraints. The values of VP (h)(F ) for
some dierent F 's are given below:
EX: Suppose
WP (w ) 1 = 0:4
WP (w ) 2 = 0:1
WP (w ) 3 = 0:2
WP (w ) 4 = 0:3
Then
IWP (a) = 0:4
IWP (b) = 0:5
IWP (a _ b) = 0:6
IWP (a _ :b) = 0:8
I j=p Fj : [cj ; dj ]
I j=p (9V )(C ) i I j=p (C (V=c)) for some c 2 [0; 1], where
V represents an annotation variable
Formula
Function
= fX = c; Z = b; Y = b; W = ag
2
where
F : 0 F : ^ : : : ^ Fn : n
0 1 1
is a constrained p-query.
Clause C :
G : 0 0 G : ^ : : : ^ Gm : m ^ ConC
1 1
SLDp-resolvent:
9((F : V : : : V Fi : Vi VVG : V : : : V Gm : m V Fi :
1 1 1 1 1 1 +1
i : : : Fn : n)
+1
V
ConC V ConQ V i ) 0
max-gu i.
SLDp-Refutation: Finite SLDp-deduction
hQ ; C ; i; : : :; hQn; Cn; ni
1 1 1