BF02573590
BF02573590
BF02573590
25 (1982) 83-110
RESEARCH ARTICLE
J. Siekmann a n d P. Szabb
Communicated b y K. Keimel
V w E B. ww = w
xx ~ x
x ~ xx
xx ~ x
cI' cI
xyz ~ xz if x = z and xy = z.
0037-1912/82/0025-0083 $05.60
9 1982 Springer-Verlag New York Inc.
SIEKMANN AND SZABO
I. M O T I V A T I O N
84
SIEKMANN AND SZAB0
[xyz~=[xz~; x,y,z 6 FA
xx -~ x
85
SIEKMANN AND SZABO
I * *
(I .5.1) W 1 = W 2 iff HV. W 1 ~-~ V and w 2 ~-~ v
I
(I .5.2) wI = w2 iff TER(W 1 ) D T E R ( W 2) #
Counterexample 1:
PROPOSITION 1.1: V U, w 6 FA
w u w ~-~ w if u is a subword of w
proof: W U W = W 1 U W2 U W 1 U W2
~e wl u wI u w2 u wI u w2
uw 2
uw2 =w
86
SIEKMANN AND S Z A B O
I * *
(1.5.3) w I = w2 iff 3v. wlm-~ v and w2= ; v
where = ~ := ~ U m-~
c CC
Counterexample 2:
w = ab abc bac acb abc acb aba
O
ab ab c a c ba abc bac ba
87
SIEKMANN AND SZABO
88
SIEKMANN AND SZABO
sequence: u I ~ u2 ~ u3 ~ ....
A relation ~ is confluent iff
v
/A w
~, lJ
89
SIEKMANN AND SZABO
V u, v, w 6 A~: if u ~ v a n d u ~ w then
3z s A ~ w i t h v ~ z and w ~-~ z.
Diagrammatically: u
w
\ /
and for that reason they are an important basis for the
treatment of T - e q u a l i t y on a computer. Huet and Oppen [7]
present a survey of some general techniques of how a
canonical rewriting system can be obtained for a given T.
Unfortunately none of these general techniques apply for a
set of equational axioms which includes associativity and
idempotence, although these two axioms often occur in
practical applications [8].
9@
SIEKMANN AND SZABO
3. THE PROBLEM
C e
Hence we have:
V u, V 6 A*.
I
(3.1) u = V iff H w 6 A* such that
u e-~ w and v ~ w.
I
wI : W2 iff llw1! 1 : !lw211 for wl, w2 6 A*,
4. RESULTS
cI
(xyz ~ xz if x ~ z and
CC
cI
xy ~ z)}
91
S I E K M A N N AND SZABO
cI
u ----- w iff {u} = {w}.
Hence by (3.1) :
I
wvw = w
(2) Inductionhyp.: Ivl = n, let v = ala 2 ...a n 6 A*.
CI I
If w ~- wv then wvw = w.
92
SIEKMANN AND SZABO
~-~ w u w ua wuwu w
e
I I
= wuwu W since WU WU a WU wu = WUWU
by Ind. base
~-~ w u w
c
I
= w since w ~ wuw by Ind. hypothesis.
LEMMA 4.2: u u, V, W s A ~
If u CI W and uv CI
~- w then uvw =I u w .
cI cI
proof: If u ~ W then u ~ uw
cI
and w = wu.
(i) uwu I= u
(ii) WUW I W
Then :
I
uvw = uwu v wu w using (i) and (ii)
= ~ uvw~ defining ~ := u w
I
= W by lemma 4.1 using ~ uvw c___I
= uw
93
SIEKMANN AND SZABO
LEMMA 4.3: V U, v, w E A ~ .
If U ~-. V a n d u ~-~ w t h e n Bz s A ~
C C
such that v ~ z and w ~ z
LEMMA 4.4: V U, v, W 6 A ~ .
If u ' - ~ V a n d u ~-~ w t h e n Hz 6 A ~
C CC
such that v ~ z and w ~ z.
LEMMA 4.5:
V u, v, W E A ~ .
If u - -C C~ v a n d u ~-~
CC
w then Bz s A ~
e
such that v ~-~ z and w~-.-~ z.
proof: It is o b v i o u s t h a t t h e r e are no i n f i n i t e c h a i n s
u ~'~c vl ~ v2 ~ c "'"
u.-. .-....
CC CC
94
SIEKMANN AND SZABO
11 ml~ I1 I
If u = v then by (3.1) and due to the fact that*--* is
symmetric there exists a chain
(i) u ~ v.
The proof is by induction on n, where n = lu ~ v] i.e.
the number of rewrite steps in (i).
U ~-~ W ~'-~ V .
95
SIEKMANN AND SZABO
COROLLARY: V s, t s TERM:
{(ASS),(ID)} ~ s = t iff ll~(s)II = ll~(t)II .
v ~-~ z and w ~ z.
96
SIEKMANN AND SZABO
^
S ~-~ S, S # S.
Then exists by induction hypothesis A
z with
^ 9 ^ ~ ~ ^
S ~--+ Z and s o-~ z.
Set z = f(zA,t).
THEOREM 4.4:
I
V u, v 6 TERM: is by ~.
{ID} ~ u: v iff llull = !Ivli
where the normal form !lull 9 obtained
5. APPENDIX: PROOFS
The proofs for the three lemmas of section 4.2 are now
collected.
//c
v = u lx 2 u4 = w
97
SIEZ,MANN AND SZAB6
u I x x u2
, ~ L r ~
:x1: ,x2
I i t I
I I
u 3 Y Y u4
u 3 = u I x I, x = x I yy x2 and u4 = x2 x u 2.
Let u~ v = u I x u2 and u~ c w
,
= u 3 y u 4.
Then: Bz. v~--~ z and w'- -" z .
proof: v = u I x u 2 with x = x I yy x2
= u I x I YY x 2 u2
u I x I y x2 u2 = z
w = u3 y u4 with u3 = u I x I
= Ul Xl Y U4 with u 4 = x2 x u 2
= u I x I y x2 x u2 with x = x I yy x2
= u I x I Y x2 x I YY x2 u2
c u I x I y x2 x I y x2 u 2~ u] x I y x2 u 2 = z
Ul| x x u 2
I ~ 9 ~ ~, o I
,x I 'x , x~, ;x4 1
, T 2 ~ ~t I ,
i t I I
l i I t
, I ~ i $, , I
u3 Y Y u4
x = x I x2 = x3 y x 4, y = x2 x 3, u3 = u I x 3, u4 = x 4 u 2.
Let u~ v = u I x u2 and u~ w = u 3 y u 4.
Then 3z. v ~-~ z and w o-~ z .
98
SIEKMANN AND SZABO
proof: w = u I x I y x4 u 2 with y = x 2 x 3
= u I x I x 2 x 3 x4 u 2 with x I x2 = x 3 y x 4
= u I x 3 Y x 4 x 3 x 4 u2 with y = x 2 x3
= u I x 3 x 2 x 3 x 4 x 3 x4 u 2 on x 3 x 4
u I x 3 x2 x 3 x4 u2 with x 2 x 3 = y
= u I x 3 Y x4 u2 with x 3 y x 4 = x
= u I x u 2 = v = z
u I x x u 2
, : J ~ ~ It | J
IU 1 I I i
I 5 IXl I ,x21
I I I I
I t I I
I i t t
,,, L I ~ , j l
u 3 Y Y u 4
Let u~ v = .u I x u2, u~ ~ = u 3 y u 4.
Then 3z. v~ = z and w~ ~ z.
proof: v = u I x u 2 with x = x I y x 2
= u I x I y x2 u 2 with u I = u3 u 5
= u 3 u 5 x I y x 2 u2 with u 5 x I = y
= u 3 yy x 2 u2 on y
= u 3 u 5 x I x2 u2 = u I xI x 2 u 2 = z
w = u 3 y u 4 with y = u 5 x I
= u 3 u 5 x I u 4 with u 4 = x 2 x u 2
= u 3 u 5 x I x 2 x u 2 with x = x I y x2
= u 3 u 5 x I x2 x I y x2 u 2 with y = u 5 x~
= u 3 u5 x I x 2 x I u5 xI x 2 u2~u3u5xlx 2~xlx2~
~-c:U3 u5 x I x 2 u2 with u 3 u 5 = u I
= u I x I x 2 u 2 = ~ 9
u I x x u 2
n p ! ! I
i ' I
',us :xl x2 ,'x3
! ,, 'I r'i i' i II i
u 3 Y Y u4
99
SIEKM~NN AND SZABO
u 4 = x 4 u2 9
Let u~ v = #I x u2 and %~ w = u 3 y u 4.
Then Bz. v~ ~ z and w= ~ z.
Then v = u I x u2 with u I = u 3 u 5
= u 3 u5 x u 2 with x = x I x 2
= u 3 u 5 x I x 2 u 2 with x2 = x 4
= u 3 u5 x I x4 u 2 with y = u 5 xl,u 4 = x 4 u 2
= u 3 y u 4 = w
x 4 = x 5 x 2 9
Then: w = u 3 y u 4 with y = u 5 x I
= u 3 u 5 x I u 4 with u 4 = x 4 u2
= u 3 u 5 x I x~ u2 with u 3 u 5 = u 1
= u I x I x 4 u2 with x 4 = x 5 x 2
= u I x I x 5 x 2 u 2 with x I = x 3 x4
= u I x 3 x 5 x5 x 2 u2 on x 5
Ul x 3 x 5 x 2 u2 with x 3 x5 = x I
= u I x I x 2 u 2 with x I x 2 = x
= u I x u 2 = v
v = u I x u 2 with u I = u 3 u 5
= u 3 u 5 x u 2 with x = x I x 2
= u3 u5 x I x 2 u2 with u 5 x I = y
= u 3 Y x 2 u 2 with y = x 2 x3,x2=x 5 x 4
= u 3 x 2 x 3 x 5 x 4 u 2 with x 3 = x I x 5
= u 3 x 2 x I x 5 x 5 x 4 u 2 on x 5
u3 x 2 x I x 5 x 4 u 2 with x I x 5 = x 3
= u 3 x 2 x 3 x 4 u 2 with x 4 u 2 = u 4
= u 3 x 2 x 3 u 4 with x 2 x 3 = y
= u 3 y u 4 = w
I00
SIEKMANN AND SZABO
ther: u I = u3 u2 = u4
lu1!>lu31 ! u 2 r < l u 4]
luII<lu31 lu21>tu41.
uI x x u2
case I: I
u~ L y 9
y u4 I ~ I~'uI = u 3, u 2 = u 4
Case 2: , u3 i, y . y . u4 , . ..... u I = UB,tU2l<lu41
Case 4: u 3 , iy , y u4 ,.......!uiI>lu31 , u 2 = u 4
Case 5: u 3 ~ iY Y* u4 t--.....! u I l > l u 3 1 ' 1 u 2 1 < l u 4 1
ease 6: u3 9 Y 9 Y.- u4 I- .... ! u 1 1 > l u 3 1 ' l u 2 1 > l u 4 1
Case 7: u3 9 ~ u4 i.......lu I! <!u31, u 2 = u 4
Case 8: u3 "YY"* ii u4 ,~f~.ru11 <lu3!,lu2! <lu41
Case 9: u3 k Y A [, u 4 m .... l u 1 ! < l u 3 ! , l u 2 1 > ! u 4 1
I01
SIEKMANN AND SZABO
PROPOSITION 5.5:
cI cI
Let u = rst with rs : r : t
L
r I
s !
t I
r 1 r 2 r 3 s 1 s 2 t
u = rst ~-~ r t = w
cc
cI cI cI
Proof: S i n c e rlr2r 3 = t and r2 = r2r3: rlr2~-~-t
(5.5.1)
cI cI
Since rlr2r 3 = t : r3t : t
Now w = rt
= rlr2r 3 t
9e-c~ rlr 2 t by (5.5.1)
= p.
= rlr 2 s2 t since r2 = r3 s1
cI
9C-C~ rlr 2 t by (5.5.1) and s2t =t
= p.
PROPOSITION 5.6 :
CI CI
Let u = ss = rxyzt with xy --~- x = z
L S L S ~ = U
r xyz t = u
For u = ss ~ s = v
four cases:
Case 1 : s s = u
I, I I
i i i v v
r x y z t = u
102
SIEKMANN AND SZABO
u = ss ~-* s = p
c
= rx rxy
rxy = s = p.
c
Case 2: s = u
h ! i
Symmetric to case 1.
Case 3: L s ! s i = u
Yl Y2
'r ' x I ~ tz ' t " = u
Now u = ss ~ s = p
c
u = rxyzt--~ rxzt
cc
Y2S'Yl
-- s
= p.
Case 4: l S ~ S j = U
with z = ZlZ 2
CI CI CI
Observe: ZlZ ----- z ~ x ~ ZlX (5.6.2)
u = ss,~ s = p
c
= rxzlrx.y z1
o-~ rx y z
c 1
= s
= p.
103
SIEKMANN AND SZABO
U = u I SS U2~ U1 S U2 = V
CI CI
U = U 3 Xyz u 4 ~6~
c U 3 Xz U4 = W with xy ~ x ~--- z
Case I: u~ s s u~ = u
I I I i !
, D , ! !
(1.1.) u 3 x y z u 4 = u
u I ss u2 ~ uI s u2 = v = p
u 3 xyz u 4 ~c u3 xz u4 with
s=z=xy
= u 3 xxy u4
u 3 xy u4
= u 3 s u 4 = p.
(1.2.) u3 x ,y z
L u4 i
symmetric to (i.i.)
(1.3.) .u 3 x ~zY . ~
, u4 .
Y l Y2
Since xy I = s = Y2 z
we have: s = Y2 ~ Yl = Y2 ~ Yl (1.3.1.)
and hence x =
u I ss u2 ~ uI s u2 = v = p
u 3 xyz u 4 ~c u3 xz u4
= u3 Y2 xz Yl u4 by (1.3.1.)
since x =
c u3 Y2 ~ Yl u4
= u3 s u4 = p.
Case 2: uI s s u2
U ---~ I i i i I
]04
SIEKMANN AND SZABO
u u
Case 3: u = t
1 !
s I
s !
2 I
Case 4: Symmetric to c a s e 3.
Case 7: Symmetric to c a s e 2.
uI s s u2
(9.1) ix,Y,Z~
(9.2) iX t yl Zl
(9.3) ,x 0 y , z ,
(9.4) ~x,y, z L
(9.5) i,
X | y i Z
(9.6) |,,,
X i Y I Z I .
(9.7) I
X
,Y i
Z
I.
(9.8) I
X
I
y , z ,
(9.9) i, x i y , Z ,1'
(9.10) I'x'y i
z
I.
)05
SIEKMANN AND SZABO
y = ylY2
uI s s I xyz u22 ~c Ul s s I xz u22 = w
w = uI s I x Yl Sl xz u22
with s = s I x Yl
e-~cc U l Sl x s I xz u22
CI cI
since y = ylY,Xy= x
uI s I xz u22
= p
v = uI s u2 = uI s I x Yl u2
= uI s I x Yl Y2 z u22
9c-~
c uI s I xz u22
= p
u = uI ss u2 ~ uI s u2 = v
Now v = uI s u2
= uI s I x Yl u2 " s = sI x Yl
= p.
u2 = z2 u22
u = u I ss u2 ~ uI s u2 = uI s I xy I z 2 u22 = v
106
SIEKMANN AND SZAB6
= u I s I xz I z 2 u22 = w
hence v = u I s I x Yl z2 u22
= u I s I x I qq z I z 2 u22
uI sI xI q z I z 2 u22 = w
hence w = uI sI x z I z 2 u22
= Ul Sl Xl qq Yl z2 u 2 2
Ul Sl Xl q Yl z2 u22
= u I s I x Yl z2 u22 = v
cI cI cI cI
x = z = yz and r = t = st.
If u--~ v = u I xz vI and
cc
u ~-~cc w = u 2 rt v2, then there exists p, such that
u = u I x yz v I = u 2 rst v 2 = u 2 rs yy z v1
then p = u2 r y z v I.
,
~ 2 r s t v2
107
SIEKMANN AND SZABO
u = u 2 rst v2 ~ c u 2 rt v2 = u 2 ryy z v I = w
i
i
i Yl Y2
U1 X i Y ~ z v1
i a , ~ ; l o
i
i
s 2 ii s I i.
; i U
| u I I !
r s t
u2 v2
u = u I xyz v I ~c Ul xz vI = v
u = u2 rst v 2 e~c u 2 rt v2 = w
u = uI x Yl Y2 z vI ~ uI x Y2~Vl .-~
cc v and
u = u2 r sI s2 t v 2 "~c u 2 r sI t v 2 ~c w .
u I x Y2 z vI = u2 r sI t v 2.
Acknowledgement: In an e a r l i e r v e r s i o n of this p a p e r we
only p r o p o s e d a specific case of RULE C as a b a s i s for the
second rewrite. We are m o s t g r a t e f u l to H. J H r g e n s e n from
the T e c h n i s c h e Hochschule Darmstadt, w h o d r e w our
attention to the r e l e v a n t literature of s e m i g r o u p theory
which greatly improved the paper 9 Thanks are also due to
P. Grund.
REFERENCES
109
SIEKMANN AND SZABO
J. Siekmann, P. Szab6
Universit~t Karlsruhe
Institut fHr Informatik I
Postfach 6380
7500 Karlsruhe 1
Federal Republic of Germany
110