1. Trang chủ
  2. » Luận Văn - Báo Cáo

Báo cáo khoa học: "An Attributive Logic of Set Descriptions Set Operations" doc

8 226 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 8
Dung lượng 759,11 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

A sound, complete and terminating consistency checking proce- dure is provided to determine the consistency of any given term in the logic.. However the descriptive machinery employed by

Trang 1

A n A t t r i b u t i v e L o g i c o f S e t D e s c r i p t i o n s

S e t O p e r a t i o n s

S u r e s h M a n a n d h a r

H C R C L a n g u a g e T e c h n o l o g y G r o u p

The University of Edinburgh

2 B u c c l e u c h P l a c e

E d i n b u r g h E H 8 9 L W , U K

I n t e r n e t : S u r e s h M a n a n d h a r @ e d a c u k

a n d

A b s t r a c t This paper provides a model theoretic semantics to fea-

ture terms augmented with set descriptions We pro-

vide constraints to specify HPSG style set descriptions,

fixed cardinality set descriptions, set-membership con-

straints, restricted universal role quantifications, set

union, intersection, subset and disjointness A sound,

complete and terminating consistency checking proce-

dure is provided to determine the consistency of any

given term in the logic It is shown that determining

consistency of terms is a NP-complete problem

S u b j e c t A r e a s : feature logic, constraint-based gram-

mars, HPSG

1 I n t r o d u c t i o n

[Pollard and Sag, 1987] [Pollard and Sag, 1992] and

LFG [Kaplan and Bresnan, 1982] employ feature de-

scriptions [Kasper and Rounds, 1986] [Smolka, 1992]

as the primary means for stating linguistic theories

However the descriptive machinery employed by these

formalisms easily exceed the descriptive machinery

available in feature logic [Smolka, 1992] Furthermore

the descriptive machinery employed by both HPSG

and LFG is difficult (if not impossible) to state in fea-

ture based formalisms such as ALE [Carpenter, 1993],

TFS [Zajac, 1992] and CUF [D6rre and Dorna, 1993]

which augment feature logic with a type system

One such expressive device employed both within

LFG [Kaplan and Bresnan, 1982] and HPSG but is

unavailable in feature logic is that of set descriptions

Although various researchers have studied set de-

scriptions (with different semantics) [Rounds, 1988]

[Pollard and Moshier, 1990] two issues remain unad-

dressed Firstly there has not been any work on consi-

stency checking techniques for feature terms augmen-

ted with set descriptions Secondly, for applications

within grammatical theories such as the HPSG forma-

lism, set descriptions alone are not enough since de-

scriptions involving set union are also needed Thus

to adequately address the knowledge representation

needs of current linguistic theories one needs to provide

set descriptions as well as mechanisms to manipulate

these

lism [Pollard and Sag, 1987], set descriptions are em-

ployed for the modelling of so called semantic indices

([Pollard and Sag, 1987] pp 104) The attribute INDS

in the example in (1) is a multi-valued attribute whose value models a set consisting of (at most) 2 objects However multi-valued attributes cannot be descri- bed within feature logic [Kasper and Rounds, 1986] [Smolka, 1992]

(1)

Io DREL 4 °~TIs~R[] / Ls'~E~ w J

[NDS IRESTINAME ~andy ]['IRESTINAME kim I I ¢

A further complication arises since to be able to deal with anaphoric dependencies we think that set mem- berships will be needed to resolve pronoun dependen- cies Equally, set unions may be called for to incremen- tally construct discourse referents Thus set-valued extension to feature logic is insufficient on its own Similarly, set valued subcategorisation frames (see (2)) has been considered as a possibility within the HPSG formalism

(2)

b e l i e v e s = IYNILOCISUBCAT~

[[SYN~LOOIHEADICAT v] But once set valued subeategorisation frames are em- ployed, a set valued analog of the HPSG subcategorisa- tion principle too is needed In section 2 we show that the set valued analog of the subcategorisation principle can be adequately described by employing a disjoint union operation over set descriptions as available wit- hin the logic described in this paper

2 T h e l o g i c o f S e t d e s c r i p t i o n s

In this section we provide the semantics of feature terms augmented with set descriptions and various constraints over set descriptions We assume an al- phabet consisting of x, y, z , 6 )2 the set of variables;

f , g , E Y: the set of relation symbols; el, c2, E C the set of constant symbols; A , B , C , 6 7 ) the set

of primitive concept symbols and a , b , 6 At the set of atomic symbols Furthermore, we require that / , T E T'

2 5 5

Trang 2

T h e s y n t a x of our t e r m language defined by the follo-

wing B N F definition:

P > x I a t c I C [ -~x I -~a [ -~c [ -~C

S , T - >

P

f : { T 1 , , T n } set description

f { T 1 , , Tn}= fixed cardinality set description

f : g(x) U h(y) union

f : g(x) rq h(y) intersection

f(x) # g(y) disjointness

where S, T, T 1 , , Tn are terms; a is an atom; c is a

constant; C is a primitive concept and f is a relation

symbol

T h e interpretation of relation symbols and atoms is

provided by an interpretation Z = < / 4 I I > where/41

is an a r b i t r a r y n o n - e m p t y set and I is an interpretation

function t h a t maps :

1 every relation symbol f • ~" to a binary relation

f l C_/4I x / 4 I

2 every a t o m a • At to an element a I • bl x

N o t a t i o n :

• Let i f ( e ) denote the set { e ' [ (e,e') • i f }

• Let fI(e) T mean f l ( e ) = 0

Z is required to satisfy the following properties :

1 if al ~ a2 then all # hi2 (distinctness)

2 for any a t o m a • A t and for any relation f • ~" there

exists no e • U 1 such t h a t (a, e) • f l (atomicity)

For a given interpretation Z an Z - a s s i g n m e n t a is a

function t h a t maps :

1 every variable x • ]2 to an element a ( x ) • 141

2 every constant c • C to an element a(c) • / 4 1 such

t h a t for distinct constants Cl, c2 : a ( c l ) # a(c2)

3 every primitive concept C • 7 ) to a subset a ( C ) C

/41 such that:

~(_L) = 0

a(T) =/41

T h e interpretation of terms is provided by a denotation

function [[.]]z,a t h a t given an interpretation Z and an

Z-assignment a maps terms to subsets of/41

T h e function [.]]z,a is defined as follows :

~x~z," = {,~(x)}

[[a]]Z, ~ = {a I}

[ c K ' " = {a(e)}

I v ] z,~ = ~ ( c )

I f : T] z'" =

{e •/411 he' •/4i: fZ(e ) = { e ' } A e' • ~T] z ' e }

[3f : T~ :r'a =

{ e • / 4 l l q e ' • / 4 ( l : ( e , e ' ) • f ! A e' • IT] z'"}

IV f : T]] z'~ =

{e • W' lye' • / 4 1 : (e, e') • f1 =~ e' • IfT] z'"}

U : { T , , , T ~ } K , " = {e E U I [ 9 e l , , g e ~ e U I :

f 1 ( e ) = {el, ,e,}^

el e IT1] z'a A A e,~ • [T,~] z'~}

I f : { T 1 , , Tn}=] z'a = {e • / 4 I I 9 e l , , g e ~ • / 4 I :

I f l ( e ) l = n A fI(e) = { e l , ,en}A

el • [Tx]Z'a A A e~ • [T,] z'"}

I f : g(x) U h(y)]] z'a = {e • LI I I fl(e) = gl(a(x)) U h I ( a ( y ) ) }

I f : g(x) N h(y)] z'a = {e •/41 [ f i (e ) = gi (c~(x) ) rq hl (c~(y) ) }

I f :~_ g ( x ) l z , ~' =

{e • u ~ I f ( e ) ~ g1(~(x))}

i f ( x ) # g(y)]]z,c~ =

• 0 if f l ( a ( x ) ) n gl(a(y)) # O

• U I if f1(a(x)) A g1(a(y)) = 0

IS rl T]] z,a = [[S]] z,a N [T]] z,a

[-~T~ ~," = U ' - [T~ z,"

T h e above definitions fix the syntax and semantics of every term

It follows from the above definitions that:

I : T - / : { T } - I : { T } =

Figure 1 Although disjoint union is not a primitive in the logic

it can easily be defined by employing set disjointness and set union operations:

f : g(x) eJ h(y) =de/ g(x) # h(y) ~q f : g(x) U h(y)

Thus disjoint set union is exactly like set union except

t h a t it additionally requires the sets denoted by g(x)

and h(y) to be disjoint

T h e set-valued description of the subcategorisation principle can now be stated as given in example (3) (3) S u b c a t e g o r i s a t i o n P r i n c i p l e

TRS X n [HL-DTR[SYN[LOC[SUBCAT c-dtrs(X) ~ subcat(Y) The description in (3) simply states that the subcat value of the H-DTR is the disjoint union of the subcat value of the mother and the values of C-DTRS Note that the disjoint union operation is the right operation

to be specified to split the set into two disjoint subsets Employing just union operation would not work since

Trang 3

D e c o m p o s i t i o n r u l e s

x = F : T A C ~

( D F e a t ) x = F : y A y = T A C s

if y is new and T is not a variable and F ranges over Sf, f

x = Vf : ~ A C~

( D F o r a l l ) x = V f : y A y = ~ A C s

if y is new and ~ ranges over a, c

( D S e t ) x = f : { T i , , T ~ } A C~

x = I : { x l , , x ~ } ^ x l = T 1 ^ i x ~ =T~ACs

if x i , , xn are new and at least one of Ti : 1 < i < n is not a variable

x = f : { T i , , T , } = A Cs

( D S e t F ) x = f : { X l , , x n } A X = f : { X l , , X n } = A X 1 = T 1 ^ i x n = T n i C s

if x i , , x~ are new and at least one of Ti : 1 < i < n is not a variable

x = S N T A C , ~

( D C o n j ) x = S i x = T A gs

Figure 2: Decomposition rules

it would permit repetition between members of the

SUBCAT attribute and C-DTRS attribute

Alternatively, we can assume that N is the only multi-

valued relation symbol while both SUBCAT and C-DTRS

are single-valued and then employ the intuitively ap-

pealing subcategorisation principle given in (4)

(4) S u b c a t e g o r i s a t i o n P r i n c i p l e

TRS [H-DTRISYNILOCISUBCATIN N(X) ~ N(Y)

With the availability of set operations, multi-valued

structures can be incrementally built For instance, by

employing union operations, semantic indices can be

incrementally constructed and by employing members-

hip constraints on the set of semantic indices pronoun

resolution may be carried out

The set difference operation f : g(y) - h(z) is not avai-

lable from the constructs described so far However,

assume t h a t we are given the term x R f : g(y) - h(z)

and it is known that hZ(~(z)) C_ gZ(a(y)) for every in-

terpretation 27, (~ such t h a t [x R f : g ( y ) - h(z)~ z,~ ¢ 0

Then the term x N f : g(y) - h(z) (assuming the ob-

vious interpretation for the set difference operation) is

consistent iff the term y [] g : f ( x ) t~ h(z) is consistent

This is so since for s e t s G , F , H : G - F = H A F C G

i]:f G = F W H See figure 1 for verification

3 C o n s i s t e n c y c h e c k i n g

To employ a term language for knowledge representa-

tion tasks or in constraint programming languages the

minimal operation t h a t needs to be supported is that

of consistency checking of terms

A term T is c o n s i s t e n t if there exists an interpreta-

tion 2: and a n / : - a s s i g n m e n t (~ such t h a t [T] z'a ~ 0

In order to develop constraint solving algorithms for

consistency testing of terms we follow the approaches

in [Smolka, 1992] [Hollunder and Nutt, 1990]

A c o n t a i n m e n t c o n s t r a i n t is a constraint of the

form x = T where x is a variable and T is an term

C o n s t r a i n t s i m p l i f i c a t i o n r u l e s - I

x = y A C s

( S E q u a l s ) x = y A [x/y]Cs

if x ~ y and x occurs in Cs ( S C o n s t ) x = ~ A y = ~ A C s

x = y A x = ~ A C s

where ~ ranges over a, c

( S F e a t ) x = f : y A x = F :zZACs

where F ranges over f , 3 f , Vf ( S E x i s t s ) x = g f : y A x = V f : z A C ~

x = f : y A y = z A C s

( S F o r a l l E ) x = V ] : C A x = 9 f : y A C~_

x = V / : C A x = 3 / : y A y = C A C ~

if C ranges over C, -~C, -~a, c, -~z and

Cs V y = C

Figure 3: Constraint simplification rules - I

In addition, for the purposes of consistency checking

we need to introduce d i s j u n c t i v e c o n s t r a i n t s which are of the form x Xl U U x,~

We say t h a t an interpretation Z and a n / - a s s i g n m e n t

a satisfies a constraint K written 27, a ~ K if

• Z , a ~ x = T v = ~ a ( x ) E [ T ~ z'a

• Z , a ~ x = x l U U x n : ~ a ( x ) = a ( x i ) f o r s o m e

x i : l < i < n

A c o n s t r a i n t s y s t e m Cs is a conjunction of con- straints

We say that an interpretation 27 and an Z-assignment

a s a t i s f y a constraint system Cs iffZ, a satisfies every constraint in Cs

The following lemma demonstrates the usefulness of constraint systems for the purposes of consistency checking

L e m m a 1 An term T is consistent iff there exists a variable x, an interpretation Z and an Z-assignment a such that Z, a satisfies the constraint system x = T

Now we are ready to t u r n our attention to constraint solving rules t h a t will allow us to determine the con- sistency of a given constraint system

2 5 7

Trang 4

C o n s t r a i n t s i m p l i f i c a t i o n r u l e s - I I ( S S e t F ) x = F : y A x = f : { X l , , x n } A C 8

x = f : y A y = x l A A y = x n A C s

where F ranges over f , Vf ( S S e t ) x = f : {y} A C8

x = f : y A C 8

( S D u p ) x = f : { X l , , x i , , x j , , x , ~ } A C 8

x = f : { Z l , , x , , , x , } ^ C8

if xi x i

(SForaU) x = V f : C A x = f : { x l , , x n } A C8

if C ranges over C, -~C, -~a, -~c, -~z and there exists x i : 1 < i < n such t h a t Cs ~1 x i = C

x = B f : y A x = f : { X l , , x , ~ } A C8

( S S e t E ) x = f : { X l , , x , ~ } A y = x l U U x n A C 8 ( S S e t S e t ) X = f : { X l , , X n } A X = f : { y l , , y m } A C 8

x = I :

Xl = Yl I I II Ym ^ • ^ Xn = Yl I I II y m A

Yl xz [J • II x n A A Ym = Xl I I II x n A 68

where n _< m

x = x I I I U x n A C s

i f l < i < n a n d there is no x j , 1 < j < n such t h a t C8 F x = x:

Figure 4: Constraint

We say t h a t a constraint system C8 is b a s i c if n o n e of

the decomposition rules (see figure 2) are applicable to

c8

T h e purpose of the decomposition rules is to break

down a complex constraint into possibly a number of

simpler constraints upon which the constraint simpli-

fication rules (see figures 3, 4 and 5 ) can apply by

possibly introducing new variables

The first phase of consistency checking of a term T

consists of exhaustively applying the decomposition

rules to an initial constraint of the form x = T (where

x does not occur in T) until no rules are applicable

This transforms any given constraint system into basic

form

The constraint simplification rules (see figures 3, 4 and

5 ) either eliminate variable equalities of the form x =

y or generate them from existing constraints However,

they do not introduce new variables

T h e constraint simplification rules given in figure 3 are

the analog of the feature simplification rules provided

in [Smolka, 1991] T h e main difference being t h a t our

simplification rules have been modified to deal with

relation symbols as opposed to just feature symbols

T h e constraint simplification rules given in figure 4

simplify constraints involving set descriptions when

they interact with other constraints such as feature

constraints - rule ( S S e t F ) , singleton sets - rule ( S S e t ) ,

duplicate elements in a set - rule ( S D u p ) , universally

quantified constraint - rule ( S F o r a l l ) , another set de-

scription - rule ( S S e t S e t ) Rule (SDis) on the other

hand simplifies disjunctive constraints Amongst all

simplification rules - II the constraint simplification rules in figures 3 and 4 only rule (SDis) is non-deterministic and creates a n- ary choice point

Rules ( S S e t ) and ( S D u p ) are redundant as comple- teness (see section below) is not affected by these rules However these rules result in a simpler normal form

T h e following syntactic notion of entailment is em- ployed to render a slightly compact presentation of the constraint solving rules for dealing with set operations given in figure 5

A constraint system Cs syntactically entails the (con- junction of) constraint(s) ¢ if Cs F ¢ is derivable from the following deduction rules:

1 ¢ A C 8 F ¢

2 C ~ F x = x

3 C s F x = y > C s F y = x

4 C s F x = y A C s F y = z > C s F x = z

5 Cs F x = -~y > C~ F y = -~x

6 C s F x = f : y > C s F x = 3 f : y

7 C s F x = f : y > C s F x = V f : y

8 C s F x = I : { , x i , } > C ~ F z = 3 I : z i

Note t h a t the above definitions are an incomplete list

of deduction rules However C~ I- ¢ implies C~ ~ ¢ where ~ is the semantic entailment relation defined as for predicate logic

We write C8 t / ¢ if it is not the case t h a t C~ I- ¢ The constraint simplification rules given in figure 5 deal with constraints involving set operations Rule (C_) propagates g-values of y into I-values of x in the presence of the constraint x = f :_D g(y) Rule

Trang 5

E x t e n d e d

if:

( U L e f t ) x =

if Cs

C o n s t r a i n t s i m p l i f i c a t i o n r u l e s

x = f :D g(y) A C~

f :D g(y) A z = 3 f : Yi A Cs

F / x = 3 f : yi a n d

F y = 3g : yi

x = I : g(y) u h(z) A

f : g(y) W h(z) A x = f :D g(y) A Cs

~/ x = f :D g(y)

x = f : g(y) U h(z) A x = f :D h(z) A Cs

if Cs V z = f : D h(z)

(UDown)

x = f : g(y) U h(z) A Cs

x = f : g(y) U h(z) A y = 3g : xi I z = 3h : xi A Cs

if:

• C ~ / y = 3 g : x i a n d

C s t / z = 3 h : x i a n d

• C ~ l - x = 3 f : x i

( n D o w n )

= f : g(y) n h(z) A

x = f : g(y) n h(z) A y = 3g : xi A z = 3h : xi A C

if:

• ( C s [ / y = 3 g : x i o r C s V z = 3 h : x i ) a n d

• C ~ F x = 3 f : x ~

x = f : g(y) n h(z) A Cs

( n U p ) x = f : g(y) n h(z) A x = 3 f : xi A Cs

if:

• Cs ~ x = 3 f : x i a n d

• C s F y = 3 g : x i a n d

• C ~ F z = 3 h : x i

F i g u r e 5: C o n s t r a i n t s o l v i n g w i t h set o p e r a t i o n s

( U L e f t ) ( c o r r e s p o n d i n g l y R u l e (URight)) a d d s t h e

c o n s t r a i n t x = f :_D g(y) ( c o r r e s p o n d i n g l y x = f :D

h(z)) in t h e p r e s e n c e of t h e c o n s t r a i n t x = f : g(y) U

h(z) A l s o in t h e p r e s e n c e o f x = f : g(y) U h(z) r u l e

( U D o w n ) n o n - d e t e r m i n i s t i c a l l y p r o p a g a t e s a n I - v a l u e

of x t o e i t h e r a n g - v a l u e of y or a n h - v a l u e o f z (if

n e i t h e r a l r e a d y h o l d s ) T h e n o t a t i o n y = 3g : xi ] z =

3h : xi d e n o t e s a n o n - d e t e r m i n i s t i c choice b e t w e e n

y = 3g : x~ a n d z = 3 h : xi R u l e ( n D o w n ) p r o p a g a -

tes a n f - v a l u e o f x b o t h as a g - v a l u e of y a n d h - v a l u e of

z in t h e p r e s e n c e of t h e c o n s t r a i n t x = f : g(y) n h(z)

F i n a l l y , rule ( n U p ) p r o p a g a t e s a c o m m o n g - v a l u e of y

a n d h - v a l u e of z a s a n f - v a l u e of x in t h e p r e s e n c e o f

t h e c o n s t r a i n t x = f : g(y) n h(z)

4 I n v a r i a n c e , C o m p l e t e n e s s a n d

T e r m i n a t i o n

I n t h i s s e c t i o n we e s t a b l i s h t h e m a i n r e s u l t s o f t h i s

p a p e r - n a m e l y t h a t o u r c o n s i s t e n c y c h e c k i n g p r o c e -

d u r e for set d e s c r i p t i o n s a n d set o p e r a t i o n s is invari-

a n t , c o m p l e t e a n d t e r m i n a t i n g I n o t h e r words, we

h a v e a d e c i s i o n p r o c e d u r e for d e t e r m i n i n g t h e consi-

s t e n c y o f t e r m s in o u r e x t e n d e d f e a t u r e logic

F o r t h e p u r p o s e of s h o w i n g invariance o f o u r ru- les we d i s t i n g u i s h b e t w e e n deterministic a n d non- deterministic rules A m o n g s t all o u r r u l e s o n l y r u l e ( S D i s ) given in figure 4 a n d r u l e (UDown) a r e n o n -

d e t e r m i n i s t i c while all t h e o t h e r rules a r e d e t e r m i n i - stic

T h e o r e m 2 ( I n v a r i a n c e ) 1 I f a decomposition rule transforms Cs to C~s then Cs is consistent iff C~ is consistent

2 Let Z , a be any interpretation, assignment pair and let Cs be any constraint system

• I f a deterministic simplification rule transforms

Cs to C' s then:

iff p c"

• I f a non-deterministic simplification rule applies

to Cs then there is at least one non-deterministic choice which transforms Cs to C' s such that:

z , a p iffz, a p c ;

A c o n s t r a i n t s y s t e m Cs is in n o r m a l f o r m if n o rules

a r e a p p l i c a b l e t o Cs

L e t succ(x, f ) d e n o t e t h e set:

succ(x, f ) = { y I c 8 x = 3 f : y }

A c o n s t r a i n t s y s t e m Cs in n o r m a l f o r m c o n t a i n s a

c l a s h if t h e r e e x i s t s a v a r i a b l e x in C8 s u c h t h a t any

of t h e following c o n d i t i o n s a r e s a t i s f i e d :

1 C ~ F x = a l a n d C ~ F x = a 2 s u c h t h a t a l ~ a 2

2 Cs F x = cl and Cs F x = c2 s u c h t h a t c l ~ c 2

3 Cs F x = S and Cs F x = - , S

w h e r e S r a n g e s o v e r x, a, c, C

4 C s F x = 3 f : y a n d C s F x = a

5 C~ F f ( x ) ¢ g(y) a n d succ(x, f ) n succ(y, g) 7~

6 C~ F x = f : { x z , , x n } = and I s u c c ( x , f ) I < n

If Cs d o e s n o t c o n t a i n a c l a s h t h e n C~ is c a l l e d c l a s h -

f r e e

T h e c o n s t r a i n t s o l v i n g p r o c e s s c a n t e r m i n a t e as soon

as a clash-free c o n s t r a i n t s y s t e m in n o r m a l f o r m is fo-

u n d o r a l t e r n a t i v e l y all t h e choice p o i n t s a r e e x h a u -

s t e d

T h e p u r p o s e of t h e clash d e f i n i t i o n is h i g h l i g h t e d in

t h e completeness t h e o r e m g i v e n below

F o r a c o n s t r a i n t s y s t e m Cs in n o r m a l f o r m a n equiva- lence relation ~_ on v a r i a b l e s o c c u r r i n g in Cs is d e f i n e d

as follows:

x - ~ y i f C ~ F x = y

F o r a v a r i a b l e x we r e p r e s e n t its e q u i v a l e n c e class b y

T h e o r e m 3 ( C o m p l e t e n e s s ) A constraint system

Cs in normal f o r m is consistent iff Cs is clash-free Proof Sketch: F o r t h e first p a r t , let C~ b e a c o n s t r a i n t

s y s t e m c o n t a i n i n g a c l a s h t h e n i t is c l e a r f r o m t h e de- finition of c l a s h t h a t t h e r e is n o i n t e r p r e t a t i o n Z a n d

Z - a s s i g n m e n t a w h i c h satisfies Cs

L e t C~ b e a clash-free c o n s t r a i n t s y s t e m in n o r m a l form

W e shall c o n s t r u c t a n i n t e r p r e t a t i o n 7~ = < L/R, R >

259

Trang 6

and a variable assignment a such t h a t T~, a ~ Cs

Let U R = V U ,4t UC

T h e assignment function a is defined as follows:

1 For every variable x in )2

(a) if C8 }- x = a t h e n ~(x) = a

(b) if the previous condition does not apply then

~(x) = choose(Ix]) where choose([x]) denotes a

unique representative (chosen arbitrarily) from

the equivalence class [x]

2 For every constant c in C:

(a) if Cs F x = c t h e n a(c) = (~(x)

(b) if c is a constant such t h a t the previous condition

does not a p p l y t h e n (~(c) c

3 For every primitive concept C in P:

= I C 8 x =

T h e i n t e r p r e t a t i o n function n is defined as follows:

• a R = a

It can be shown by a case by case analysis t h a t for

every constraint K in C~:

7 ~ , a ~ K

Hence we have t h e theorem

T h e o r e m 4 ( T e r m i n a t i o n )

The consistency checking procedure terminates in a fi-

nite number of steps

Proof Sketch: T e r m i n a t i o n is obvious if we observe the

following properties:

1 Since decomposition rules breakdown t e r m s into

smaller ones these rules m u s t terminate

2 None of the simplification rules introduce new va-

riables a n d hence there is an u p p e r bound on the

n u m b e r of variables

3 E v e r y simplification rule does either of the following:

(a) reduces the 'effective' n u m b e r of variables

A variable x is considered to be ineffective if it

occurs only once in Cs within the constraint x =

y such t h a t rule ( S E q u a l s ) does not apply A

variable t h a t is not ineffective is considered to be

effective

(b) adds a constraint of the form x = C where C

ranges over y, a, c, C, -~y, -~a, -~c, -~C which means

there is an u p p e r bound on the n u m b e r of con-

straints of the form x = C t h a t the simplification

rules can add This is so since the n u m b e r of va-

riables, a t o m s , constants and primitive concepts

are b o u n d e d for every constraint system in basic

form

(c) increases the size of succ(x,f) But the size of

succ(x, f ) is b o u n d e d by the n u m b e r of variables

in Cs which remains constant during the applica-

tion of the simplification rules Hence our con-

straint solving rules cannot indefinitely increase

the size of succ(x, f)

5 N P - c o m p l e t e n e s s

In this section, we show t h a t consistency checking

of t e r m s within the logic described in this p a p e r is

NP-complete This result holds even if the t e r m s involving set operations are excluded We prove this result by providing a polynomial t i m e transla- tion of the well-known N P - c o m p l e t e p r o b l e m of de- termining the satisfiability of propositional formulas [Garey and Johnson, 1979]

T h e o r e m 5 ( N P - C o m p l e t e n e s s ) Determining consistency of terms is NP-Complete

Proof: Let ¢ be any given propositional f o r m u l a for which consistency is to be determined We split our translation into two intuitive p a r t s : truth assignment

denoted by A ( ¢ ) and evaluation denoted by r ( ¢ ) Let a, b , be the set of propositional variables occur- ring in ¢ We translate every propositional variable a

by a variable xa in our logic Let f be some relation symbol Let true, false be two atoms

Furthermore, let x l , x 2 , , be a finite set of variables distinct from the ones introduced above

We define the translation function A(¢) by:

A(¢) = f : {true, f a l s e } n

3 f :xa n S f : x b n n

3 f : xl n 3 f : x2 n

T h e above description forces each of the variable

Xa,Xb, and each of the variables x l , x 2 , , to be either equivalent to true or false

We define the evaluation function T(¢) by:

= x o

T ( S & T ) = T(S) n r(T)

T ( S V T ) = xi n 3f : ( ] : { ~ ( S ) , r ( T ) } n 3 f : xi) where xi 6 { x l , x 2 , } is a new variable r(~S) = xi n 3 f : (r(S) n ~z~)

where xi 6 { x l , x 2 , } is a new variable Intuitively speaking T can be u n d e r s t o o d as follows Evaluation of a propositional variable is just its value; evaluating a conjunction a m o u n t s to evaluating each

of the conjuncts; evaluating a disjunction a m o u n t s to evaluating either of the disjuncts and finally evaluating

a negation involves choosing something other t h a n the value of the term

Determining satisfiability of ¢ then a m o u n t s to deter- mining the consistency of the following term:

3 f : A ( ¢ ) n 3 f : (true n r ( ¢ ) ) Note t h a t the t e r m truenT(¢) forces the value of T(¢)

to be true This translation d e m o n s t r a t e s t h a t deter- mining consistency of t e r m s is N P - h a r d

On the other hand, every deterministic completion of our constraint solving rules t e r m i n a t e in polynomial time since they do not generate new variables and the

n u m b e r of new constraints are polynomially bounded This means determining consistency of t e r m s is NP- easy Hence, we conclude t h a t determining consistency

of t e r m s is NP-complete

6 T r a n s l a t i o n t o S c h 6 n f i n k e l - B e r n a y s

c l a s s

T h e Schhnfinkel-Bernays class (see [Lewis, 1980]) con- sists of function-free first-order formulae which have

Trang 7

the form:

3 x t x n V y l • ym6

In this section we show t h a t the attributive logic

developed in this paper can be encoded within the

SchSnfinkel-Bernays subclass of first-order formulae by

extending the approach developed in [Johnson, 1991]

However formulae such as V f : (3 f : (Vf : T)) which

involve an embedded existential quantification cannot

be translated into the SchSnfinkel-Bernays class This

means t h a t an unrestricted variant of our logic which

does not restrict the universal role quantification can-

not be expressed within the SchSnfinkel-Bernays class

In order to put things more concretely, we provide

a translation of every construct in our logic into the

SchSnfinkel-Bernays class

Let T be any extended feature term Let x be a va-

riable free in T T h e n T is consistent iff the formula

(x = T) 6 is consistent where 6 is a translation function

from our extended feature logic into the SchSnfinkel-

Bernays class Here we provide only the essential de-

finitions of 6:

• = x # a

• (x = f : T ) ~ =

f ( x , y) & (y = T ) ~ ~ V y ' ( f ( x , y') -+ y = y')

where y is a new variable

where y is a new variable

• (x = V f : a) ~ = V y ( f ( x , y ) + y = a)

• (x = V f : ~a) ~ = V y ( f ( x , y ) .-+ y # a)

• (x = f : { T 1 , , T n } ) ~

f ( X , Xl) & ~ f ( X , Xn),~

V y ( f ( x , y ) ~ y = Xl V V y = x n ) &

( x l = T 1 ) & & ( z l =

where Xl , , Xn are new variables

• (x = f : g ( y ) U h ( z ) ) ~ =

Vxi(f(x, xi) -'+ g(y, xi) V h(z, xi)) ~:

Vy,(g(y, Yi) -4 f ( x , Yi)) &

V z i ( h ( z , zi) -+ f ( x , zi))

• (x = f : (y) # g ( z ) ) ~ =

V y i z j ( f ( y , yi) & g(z, zi) + Yi # zi)

These translation rules essentially mimic the decom-

position rules given in figure 2

Furthermore for every atom a and every feature f in

T we need the following axiom:

For every distinct atoms a, b in T we need the axiom:

• a # b

Taking into account the NP-completeness result

established earlier this translation identifies a NP-

complete subclass of formulae within the SchSnfinkel-

Bernays class which is suited for NL applications

7 R e l a t e d W o r k

Feature logics and concept languages s u c h a s

K L - O N E are closely related family of languages

[Nebel and Smolka, 1991] The principal difference being that feature logics interpret attributive labels

as functional binary relations while concept langua- ges interpret them as just binary relations However the integration of concept languages with feature lo- gics has been problematic due to the fact the while path equations do not lead to increased computatio- nal complexity in feature logic the addition of role- value-maps (which are the relational analog of path equations) in concept languages causes undecidabi- lity [Schmidt-Schant3, 1989] This blocks a straight- forward integration of a variable-free concept language such as ALC [Schmidt-SchanB and Smolka, 1991] with

a variable-free feature logic [Smolka, 1991]

In [Manandhax, 1993] the addition of variables, fea- ture symbols and set descriptions to ALC is investi- gated providing an alternative m e t h o d for integrating concept languages and feature logics It is shown that set descriptions can be translated into the so called

"number restrictions" available within concept langu-

ages such as BACK [yon Luck et al., 1987] However,

the propositionally complete languages ALV and ALS investigated in [Manandhar, 1993] are P S P A C E - h a r d languages which do not support set operations

T h e work described in this paper describes yet another unexplored dimension for concept languages - that of

a restricted concept language with variables, feature symbols, set descriptions and set operations for which the consistency checking problem is within the com- plexity class NP

8 S u m m a r y a n d C o n c l u s i o n s

In this paper we have provided an extended feature lo- gic (excluding disjunctions and negations) with a range

of constraints involving set descriptions These con- straints are set descriptions, fixed cardinality "set de- scriptions, set-membership constraints, restricted uni- versal role quantifications, set union, set intersection, subset and disjointness We have given a model theo- retic semantics to our extended logic which shows that

a simple and elegant formalisation of set descriptions

is possible if we add relational attributes to our logic

as opposed to just functional attributes available in feature logic

For realistic implementation of the logic described in this paper, further investigation is needed to develop concrete algorithms t h a t are reasonably efficient in the average case The consistency checking procedure de- scribed in this paper abstracts away from algorithmic considerations and clearly modest improvements to the basic algorithm suggested in this paper are feasible However, a report on such improvements is beyond the scope of this paper

For applications within constraint based g r a m m a r formalisms such as HPSG, minimally a type sy- stem [Carpenter, 1992] a n d / o r a Horn-like extension [HShfeld and Smolka, 1988] will be necessary

We believe t h a t the logic described in this p a p e r pro- vides both a b e t t e r picture of the formal aspects of

261

Trang 8

current constraint based g r a m m a r formalisms which

employ set descriptions and at the same time gives

a basis for building knowledge representation tools in

order to s u p p o r t g r a m m a r development within these

formalisms

9 A c k n o w l e d g m e n t s

T h e work described here has been carried out as p a r t

of the EC-funded project LRE-61-061 R G R (Reusa-

bility of G r a m m a t i c a l Resources) A longer version

of the p a p e r is available in [Erbach et al., 1993] T h e

work described is a further development of the aut-

hor's P h D thesis carried out at the D e p a r t m e n t of Ar-

tificial Intelligence, University of Edinburgh I t h a n k

my supervisors Chris Mellish and Alan Smaill for their

guidance I have also benefited from c o m m e n t s by an

a n o n y m o u s reviewer and discussions with Chris Brew,

Bob Carpenter, Jochen DSrre and H e r b e r t Ruessink

T h e H u m a n C o m m u n i c a t i o n Research Centre (HCRC)

is s u p p o r t e d by the Economic a n d Social Research

Council (UK)

R e f e r e n c e s

[Carpenter, 1992] Bob Carpenter The Logic of Typed Fea-

ture Structures Cambridge University Press, 1992

[Carpenter, 1993] Bob Carpenter ALE:Attribute Logic

Engine Users Guide, Version/~ Technical report, Car-

negie Mellon University, Pittsburgh, PA 15213, 1993

[DSrre and Dorna, 1993] Jochen DSrre and Michael

Dorna CUF: A Formalism for Linguistic Knowledge

Representation Dyana-2 deliverable, IMS, Stuttgart,

Germany, August 1993

[Erbach et al., 1993] Gregor Erbach, Mark van der Kraan,

Suresh Manandhar, M Andrew Moshier, Herbert Rues-

sink, and Craig Thiersch Specification of Datatypes

In Deliverable D.B of LRE-61-061 "The Reusability of

Grammatical Resources" 1993

[Garey and Johnson, 1979] M R Garey and D S John-

son Computers and Intractability : A Guide to the

Theory of NP-Completeness Freeman, San Francisco,

1979

[HShfeld and Smolka, 1988] Markus HShfeld and Gert

Smolka Definite relations over constraint languages LI-

LOG Report 53, IBM Deutschland, Stuttgart, Germany,

October 1988

[Hollunder and Nutt, 1990] B Hollunder and W Nutt

Subsumption Algorithms for Concept Languages Rese-

arch Report RR-90-04, German Research Center for Ar-

tificial Intelligence (DFKI), Stuhlsatzenhausweg 3, 6600

Saarbr/icken 11, Germany, 1990

[Johnson, 1991] Mark Johnson Features and Formulae

Computational Linguistics, 17(2):131-151, June 1991

[Kaplan and Bresnan, 1982] Ronald M Kaplan and Joan

Bresnan Lexical-Functional Grammar: A formal system

for grammatical representation In Joan Bresnan, editor,

The Mental Representation of Grammatical Relations,

pages 173 - 281 MIT Press, Cambridge, Massachussets,

1982

[Kasper and Rounds, 1986] Robert Kasper and William

Rounds A logical semantics for feature structures In

24th Annual Meeting of the Association for Computatio-

nal Linguistics, Columbia University, New York, pages

257-265, 1986

[Lewis, 1980] Harry R Lewis Complexity Results for

Classes of Quantificational Formulae Journal of Com- puter and System Sciences, 21:317-353, 1980

[Manandhar, 1993] Suresh Manandhar Relational Exten- sions to Feature Logic: Applications to Constraint Based Grammars PhD thesis, Department of Artificial Intel-

ligence, University of Edinburgh, 1993

Gert Smolka Attributive description formalisms and the rest of the world Research Report RR-91-15, Ger- man Research Center for Artificial Intelligence (DFKI), Saarbr/icken, Germany, May 1991

[Pollard and Moshier, 1990] Carl J Pollard and M Drew Moshier Unifying partial descriptions of sets In Phi-

lip P Hanson, editor, Information, Language and Cogni- tion University of British Columbia Press, Vancouver,

Canada, 1990 Vancouver Studies in Cognitive Science,

no 1

[Pollard and Sag, 1987] Carl Pollard and Ivan Andrew

Sag Information-Based Syntax and Semantics: Volume

1 Fundamentals, volume 13 of Lecture Notes Center for

the Study of Language and Information, Stanford, CA,

1987

[Pollard and Sag, 1992] Carl Pollard and Ivan Andrew

Sag Head-driven Phrase Structure Grammar: Volume

2 MIT Press, 1992 Forthcoming

[Rounds, 1988] William C Rounds Set values for unification-based grammar formalisms and logic pro- gramming Technical report, Center for the Study of Language and Information, Stanford, CA, 1988 [Schmidt-SchauB and Smolka, 1991] Manfred Schmidt-Schaufl and Gert Smolka Attributive Concept

Descriptions with Unions and Complements Artificial Intelligence, 48:1-26, 1991 Also available as IWBS Re-

port 68, IBM Germany, Scientific Center, IWBS, Stutt- gart, Germary, June 1989

[Schmidt-Schaufl, 1989] Manfred Schmidt-Schaufl Sub-

sumption in KL-ONE is undecidable In First Interna- tional Conference on Principles of Knowledge Represen- tation and Reasoning, K R ' 89, Toronto, Canada, pages

421-431, May 1989

[Smolka, 1991] Gert Smolka A feature logic with subsorts

In Jfirgen Wedekind and C Rohrer (eds.), editors, Uni- fication in Grammar MIT Press, 1991 Also appeared

as LILOG Report no 33, IWBS, IBM Deutschland [Smolka, 1992] Gert Smolka Feature constraint logics for

unification grammars Journal of Logic Programming,

12:51-87, 1992

[von Luck et al., 1987] K von Luck, B Nebel, C Pelta-

son, and A Schmiedel The Anatomy of the BACK Sy- stem KIT Report 41, Department of Computer Science, Technische Universit~t Berlin, Berlin, Germany, 1987 [Zajac, 1992] R~mi Zajac Inheritance and Constraint- Based Grammar Formalisms Computational Lingui- stics, 18(2):159-182, 1992

Ngày đăng: 31/03/2014, 06:20

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

🧩 Sản phẩm bạn có thể quan tâm