This content was uploaded by our users and we assume good faith they have the permission to share this book. If you own the copyright to this book and it is wrongfully on our website, we offer a simple DMCA procedure to remove your content from our site. Start by pressing the button below!
; (2) VsEQifPC<s>,then P=<s> .
Theorem 6.9.2 (Decomposition Theorem) Let M = (Q, X, /t) be a ffsm . Let p = {P1, P2 , . . . , P,,} be the set of all distinct primary submachines of M. Then (1) M = Uz 1 Pi ; (2) M :?~ U' l, Z0jPZ for any j E {1, 2, . . . , n} . Proof. (1) Let qo E Q. Now b'q2 E Q, either (a) < qZ >E p or (b) 3qZ+1 E Q\S(g2) such that < qZ > C < qZ+1 >. Since Q is finite, either < qo > E p or there exists a positive integer k such that < qo > C < qk > E p. Thus Q = UZ 1S(pi) where Pi = < pi >, i = 1, 2 . . . . , n . Hence M = U2 1PZ . (2) Let N = UZ 1, Zo,pi and let pi _ < pj > . If pj E UZ 1, Z0jS(p2), then pj E S(pi) for some i :?~ j. Hence Pj _ < pj > C Pi . However this contradicts the maximality of Pj since Pj Pi . Thus pj ~ ~ UZ 1, Z0jS(p2) . Hence M :?~ N. Corollary 6.9.3 Let M = (Q, X, /t) be a ffsm . Then every singly generated submachine of M :?~ 0 is a submachine of a primary submachine of M.
© 2002 by Chapman & Hall/CRC
6.9 . Decomposition of Fuzzy Finite State Machines
Corollary 6.9 .4 Let M = Theorem 6.9 .2 are unique .
m
(Q, X, p)
be a
275 Then P1 , P2 , . . . , P. in
Definition 6.9.5 Let M =
(Q, X, /t) be a ffsm. Then rank of M, rank(M), is the number of distinct primary submachines of M.
Theorem 6.9.6 Let M =
(Q, X, /t) be a ffsm . The following assertions are equivalent. (1) M is retrievable . (2) Every primary submachine of M is strongly connected.
Proof. (1)x(2) : Let P be a primary submachine of M. Then P = < p > for some p E Q. Then as in the proof of (3)x(2) of Theorem 6.8 .6, < p > is strongly connected. (2)x(1) : Now M = UZ 1 P2 where Pi are primary submachines of M. Then the Pi are strongly connected . Thus M is the union of strongly connected submachines . By Theorem 6.8 .6, (1) holds . m Lemma 6.9.7 Let M = nected submachine .
(Q,
X, y) be a ffsm. Then M has a strongly con-
Proof. We prove the result by induction on ~Q1 = n. If n = 1, then the result is obvious . Suppose the result is true for all ffsms N = (T, X, v) such that ~Tj < n, n > 1 . Let q E Q. Then M' = (S(q),X,yjS(q)XXXS(q)) is a submachine of M. If M' is strongly connected, then the result follows. Suppose that M' is not strongly connected . Then 3p E S(q) such that q ~ S(p) and hence S(p) C S(q) . Now ~S(p)j < n. Hence by the induction hypothesis the ffsm M" = (S(p),X,ltjS(p)XXXS(p)) has a strongly connected submachine. Since M" is a submachine of M, M has a strongly connected submachine. Theorem 6.9.8 Let M =
(Q, X, /t) be a ffsm . The following assertions are equivalent. (1) M is retrievable . (2) Every singly generated submachine of M is primary. (3) Every nonempty connected submachine of M is primary.
Proof. (1)x(2) : Now M = UZ 1 P2 where the Pi are primary submachines of M. By Theorem 6.7.11, the Pi are strongly connected . Let N = < q > be a singly generated submachine of M. Then < q > C_ Pi for some i . Hence < q > = Pi by Theorem 6.7 .11. Thus N is primary. (2)x(1) : Since every singly generated submachine of M is primary, every singly generated submachine of M is strongly connected . Thus every primary submachine of M is strongly connected. By Theorem 6.9 .6, (1) holds. (2) x(3) : Let N = (T, X, v) be a nonempty connected submachine of M. Let q E T. Suppose S(q) :?~ T. Since N is connected, S(T\S(q))nS(q) :?~ © 2002 by Chapman & Hall/CRC
276
6. Algebraic Fuzzy Automata Theory
0. Let r E S(T\S(q)) n S(q) . Then r E S(t) for some t E T\S(q) and rES(q) .NowC_ and C .Sinceisprimary, < t > = < r > = < q > . Hence t E S(q), which is a contradiction. Hence N = < q > and so N is primary. (3)x(2) : Let N = < s > be a singly generated submachine. By Lemma 6.9.7, N has a strongly connected submachine B = < r >, say. Then B is connected and hence primary. Thus < r > _ < s > = N. Hence N is primary. m Lemma 6.9.9 Let M = (Q, X, p) be a ffsm and let N = (T, X, v) be a separated submachine of M. Then every primary submachine of N is also a primary submachine of M. Proof. Let < q > be a primary submachine of N. Suppose < q > is not a primary submachine of M. Then 3p E Q\S(q) such that < q > C < p > . Clearly p ~ T. Thus p E Q\T . Since q E S(p), q E S(Q\T). Thus q E S(Q\T) n T, which is a contradiction since N is separated . Hence < q > is a primary submachine of M. m Theorem 6.9.10 Let M = (Q, X, y) be a ffsm and let Ni = (Ti , X, vi ), i = 1, 2, . . . , n, be the primary submachines of M. Then a proper submachine N = (T, X, v) of M is separated if and only if for some J C {1, 2, . . . , n}, J zA 0, Q\T = UiEJT,,. Proof. Suppose N = (T, X, v) be a proper separated submachine of M . Then S(Q\T) = Q\T. Since N is proper, the submachine < Q\T > is nonempty. Thus < Q\T > is the union of all its primary submachines . Since < Q\T > is separated every primary submachine of < Q\T > is a primary submachine of M . Thus S(Q\T) = UiEJTi for some J C_ {1, 2, . . . , n}, J :?~ 01 . Since Q\T = S(Q\T), Q\T = UjEJTj for some J C_ {1,2, . . . , n}, J :?~ 01. Conversely, let N = (T, X, v) be a proper submachine of M such that Q\T = UiEJTi for some J C {1,2, . . . , n}, J :?~ 01. Then S(Q\T) _ S(UiEJTi) = UiEJS(Ti) = UiEJTi = Q\T. Hence N is separated. m Corollary 6.9.11 Let M = (Q, X, ft) be a ffsm . Then M is connected if and only if M has no proper submachine N = (T, X, v) such that Q\T is the union of the sets of states of all primary submachines of M. m Definition 6.9.12 Let M = (Q, X, y) be a ffsm and let N = (T, X, v) be a submachine of M. A subset R C_ Q is called a generating set of N, and is said to generate N if N = < R > . Lemma 6.9.13 Let M = (Q, X, y) be a ffsm and let Ni = (Ti, X, vi), i = 1, 2, . . ., n be the primary submachines of M. Let R C Q . Then R generates M if and only if b'i, l < i < n, Sri E R such that Ni = < ri > . © 2002 by Chapman & Hall/CRC
6.10. Subsystems ofFuzzy Finite State Machines
277
Proof. Suppose that R generates M. Then M = < R > = U TE R < r > . Let qZ E TZ be such that TZ = < qZ >, i = 1, 2, . . . , n . Then qZ E U,ER < r > and so qZ Efor some r E R. Thus < qZ > C_ . Since < qZ > is primary, < qZ > = < r > . The converse is immediate. m Definition 6.9.14 Let M = (Q, X, /t) be a ffsm. Let R C_ Q be a generating set of M. Then R is said to be a minimal generating set of M if (1)M= , and (2) Vr E R, < R\{r} > 7~ M. Theorem 6.9.15 Let M = (Q, X, p) be a ffsm. Let R C_ Q be a generating set of M. Then R is a minimal generating set of M if and only if ~R1 =rank(M) . Proof. Let n = rank(M) and let Ni = (Ti, X, v2) be a primary submachine of M, i = 1, 2, . . . , n . By Lemma 6.9 .13, since R is a generating set of M, 3r2 E R such that < r2 > = Ti, i = 1, 2, . . . , n. Since the TZ are distinct, the r2 are distinct. Thus ~R1 >_ rank(M) . Now assume that R is a minimal generating set . Suppose ~R1 > rank(M) . Then 3r E R such that r ~ {rl, r2, . . . , rn}. Thus < R\{r} > = Q. Hence R is not minimal, a contradiction . Thus ~R1 = rank(M) . Conversely suppose that ~R1 = rank(M) . Then R = {rl, r2, . . . , rn} . Hence < R\{r2} > = UjOZNj z,4 M. Thus R is minimal. Theorem 6.9.16 Let M = (Q, X, /t) be a ffsm. Then M is not connected if and only if 3 a generating set R of M with nonempty subsets Rl and R2 such that n =01 and M= U . Proof. Suppose that M is not connected . Then 3 a proper submachine N = (T, X, v) of M that is separated ., i.e., S(Q\T) n T = 0. Let Rl be a generating set of < S(Q\T) > and let R2 be a generating set of N. Then < Rl > n < R2 > = 01 and M = < Rl > U < R2 > . Conversely, suppose that Rl and R2 exists . Let N = < R2 > . Then < S(Q\T) > = < Rl > . Hence N = (T, X, /tjTXXXT) is a proper submachine of M that is separated.
6 .10
Subsystems of Fuzzy Finite State Machines
In this and the next section, we introduce the notion of subsystems and strong subsystems of a ffsm in order to consider state membership as fuzzy . Definition 6.10 .1 Let M = (Q, X, /t) be a ffsm. Let S be a fuzzy subset of Q. Then (Q, S, X, /t) is called a subsystem of M if b'p, q E Q, b'a E X, b(q)
© 2002 by Chapman & Hall/CRC
>
b(p)
n ft(p, a, q) .
27 8
6. Algebraic Fuzzy Automata Theory
If (Q, S, X, ft) is a subsystem of M, then we simply write S for (Q, S, X, ft) . Theorem 6.10 .2 Let M = (Q, X, p) be a ffsm and let S be a fuzzy subset of Q . Then S is a subsystem of M if and only if Vp, q E Q, Vx E X*, 6(q) > 6(p) n ft * (p, x, q) .
Proof. Suppose S is a subsystem . Let q, p E Q, and x E X* . We prove the result by induction on IxI = n. If n = 0, then x = A. Now if p = q, then 6(q) A [t* (q, A, q) = 6(q) . If q p, then 6(p) A [t* (p, A, q) = 0 < 6(q) . Thus the result is true if n = 0. Suppose the result is true Vy E X* such that lyl=n -1 ,n>O . Letx = ya,Iyl = n -1 ,y EX*, aEX. Then b(p) A w* (p, x, q)
= = = < <
6(p) A w* (p, ya, q) b(p) A (V{ft* (p, y, r) A ft(r, a, q) I r E Q}) V{6(p) nw*(p,y,r) nft(r,a,q)Ir E Q} V{6(r) Aft(r,a,q)Ir E Q} 6(q) .
Hence S(q) > S(p) A ft * (p, x, q) . The converse is trivial. m Theorem 6.10 .3 Let M = (Q, X, y) be a ffsm. Let S, 61, and 62 be subsystems of M. Then the following assertions hold. (1) 6, n62 is a subsystem of M. (2) 61 U 62 is a subsystem of M. (3) N = (Supp(S), X, v) is a submachine of M, where v = ft I SUPP(S) xX x SUPP(S) (4) Let Nt = (St, X, v( t)) where v(t) = ftl6, xxxst , t E [0,1] . If Vt E [0,1], Nt is a submachine of M, then S is a subsystem of M.
Proof. The proofs of (1) and (2) are straightforward . (3) Let p E S(Supp(S)) . Then p E S(q) for some q E Supp(S) . Then 6(q) > 0 . Since p E S(q), 3x E X* such that /t* (q, x, p) > 0. Hence since S is a subsystem, S(p) >_ S(q) A /t* (q, x, p) > 0. Thus p E Supp(S) . Hence S(Supp(S)) C Supp(S) . Thus N is a submachine of M. (4) Let q, p E Q, x E X* . If S(p) = 0 or y,* (p, x, q) = 0, then S(q) > 0 = S(p) A tt* (p, x, q) . Suppose S(p) > 0 and y,* (p, x, q) > 0. Let S(p) A /t* (p, x, q) = t. Then p E St . Since Nt is a submachine of M, S(St) = St . Hence q E S(p) C S(St) = St . Hence S(q) > t = S(p) Aft* (p, x, q) . Thus S is a subsystem . m Example 6.10 .4 Let Q = {p, q}, X = {a}, ft(r, a, t) = z Vr, t E Q . Let S(q) = 4 and S(p) = 1 . Then
b(q) n ft(q, a, p) = 2 = b(p) © 2002 by Chapman & Hall/CRC
6.10. Subsystems of Fuzzy Finite State Machines
279
and b(p) n ft(p, a, q) = 2 < 4 = 6(q) . Thus S is a subsystem. Let z < t <_ 4 . Let Nt = (St, X, v(t)) where v(t) _ [tJstxxxst . Now S(q) >_ t. Thus q E St . Also ft(q,a,p) = 2 > 0. Hence p E S(q) . Thus p E S(St) . But S(p) = 2 < t. Hence p ~ St . Thus Nt is not a submachine of M.
Definition 6.10 .5 Let M = (Q, X, ft) be a ffsm and let S be a fuzzy subset of Q. For all x E X*, define the fuzzy subset Sx of Q by (6x)(q) = V{b(p) Att* (p,x,q)Ip E Q} Vq E Q .
Proposition 6.10 .6 Let M = (Q, X, ft) be a ffsm. Then V fuzzy subsets S of Q and Vx, y E X*,
(sx)y = 6(xy) . Proof. Let S be a fuzzy subset of Q and let x, y E X* . We prove the result by induction on Iy1 = n. If n = 0, then y = A . Let q E Q. Now ((bx)A)(q)
=
V{(bx)(P) nft* (p,A,q) I p E Q} (sx) (q) .
Hence (Sx)A = Sx = S(xA) . Suppose now the result is true for all u E X* such that Jul = n-1, n > 0 and for all S . Let y = ua, where a E X, u E X*, and Jul = n - 1. Let q E Q. Then (b(xy))(q)
= = = = = = =
(6(xua))(q) (b((xu)a))(q) V{(S(xu))(r) A/t*(r,a,q)Ir E Q} V{(V{(&)(p) Aw * (p,u,r)Ip E Q}) Aw*(r,a,q)Ir E Q} V{(&)(p) A (V{ft*(p,u, r) Aw*(r,a,q)Ir E Q})Ip E Q} V{ (bx) (p) n ft * (p, ua, q) I p E Q} ((bx)y)(q) .
Hence S(xy) = (6x)y. The result now follows by induction . 0 Theorem 6.10 .7 Let M = (Q, X, y) be a ffsm and let S be a fuzzy subset of Q. Then S is a subsystem of M if and only if Sx C S Vx E X* .
Proof. Let S be a subsystem of M. Let x E X* and q E Q . Then (6x) (q) = V{6(p) A ft * (p, x, q) Ip E Q} < 6(q) . Hence Sx C S. Conversely, suppose Sx C S Vx E X* . Let q E Q and x E X* . Now 6(q) > (6x) (q) = V {6 (P) n ft * (p, x, q) I P E Q} > 6(P) n ft * (p, x, q) Vp E Q . Hence 6 is a subsystem of M.
© 2002 by Chapman & Hall/CRC
280
6.
Algebraic Fuzzy Automata Theory
Definition 6.10 .8 Let M = (Q, X, p) be a ffsm. Let t E (0,1] and q E Q . Define the fuzzy subset qtX of Q by
(qtX) (p) = V{t h ft (q, a, p) l a E X VP E Q.
Definition 6.10 .9 Let M = (Q, X, y) be a ffsm. Let t E (0,1] and q E Q . Define the fuzzy subset qtX* of Q by
(qtX*) (p) =V{t n ft* (q, y, p) ly E X*} VP E Q.
Theorem 6.10 .10 Let M = (Q, X, y) be a ffsm. Let t E (0,1], q E Q . Then the following assertions hold. (1) qtX* is a subsystem of M. (2) Supp(gtX * ) = S(q) .
Proof. (1) Let r, s E Q and x E X* . Now ((qtX*)x)(r)
= = = = < =
V{(qtX * ) (P) nft* (p,x,r)lP E Q} V{(V{ft*(q, y, P) Atly E X*}) Aw* (p,x,r)IP E Q} V{ft*(q,y,P) A[t*(p,x,r) Atly E X* , p E Q} V{ft* (q,yx,r) Atly E X* } {ft* (q,u,r) lulu E X*} (qtX*)(r) .
Hence (qtX*)x C qtX* . Thus qtX* is a subsystem by Theorem 6.10.7. (2) p E S(q) 3x E X* such that ,t* (q, x, p) > 0 V{t n tt * (q,x,p)lx E X*} > 0
(qtX*)(p) > 0
p E Supp(gtX*) . .
Theorem 6.10 .11 Let M = (Q, X, y) be a ffsm and let S be a fuzzy subset of Q . The following assertions are equivalent. (1) S is a subsystem of M. (2)gtX*C6,Vgt C6,qEQ,tE(0,1] . (3)gtXC6,Vqt C6,qEQ,tE(0,1] .
Proof. (1) x(2) : Let qt C S, q E Q, t E (0,1]. Let p E Q and y E X* . Then ft* (q, y, p) h t = ft* (q, y, p) h qt (q) < y,* (q, y, p) h S(q) < S(p) since S is a subsystem . Hence qtX* C_ S. (2) ===>(3): Obvious. (3) x(1): Let p, q E Q and a E X. If 6(q) = 0 or ft (q, a, p) = 0 then 6(p) > 0 = 6(q) h ft (q, a, p) . Suppose 6(q) :?~ 0 and ft (q, a, p) 0. Let S(q) = t. Then qt C_ S. Thus by the hypothesis, qtX C_ S. Thus S(p) >_ (qtX) (p) = V {t h ft(q, y, p) l y E X} > t u ft(q, a, p) = b(q) n ft(q, a, p) . Hence 6 is a subsystem of M. m © 2002 by Chapman & Hall/CRC
6.10. Subsystems of Fuzzy Finite State Machines
281
Definition 6.10 .12 Let Ml = (Q1, Xl , fq) and M2 = (Q2, X2, ft2) be two ffsms. Let (f , g) : Ml ----> M2 be a homomorphism. Let S be a fuzzy subset of Ql . Define the fuzzy subset f(S) of Q2 by f (b) (q) _ dq/
V{6(q) I q E Q1, f (q) = q~} if f -1 (q~) zA 0 0iff - (q) - 01
E Q2 -
Theorem 6.10 .13 Let Ml = (Q1, X, gl) and M2 = (Q2, X, g2 ) be two ffsms. Let f : Ml ---> M2 be an onto strong homomorphism. If S is a subsystem of Ql , then f(S) is a subsystem of Q2 . Proof. Let p', q' E Q2 and a E X. Then f(b)(p') nft2(p',a,q')
= =
(V{b(p)Ip E Q1, f (p) = p'}) nft2(p',a,q') V{6(p) Aw2(p',a,q')Ip E Qj, f(p)=j'} .
Let p, q E Q1 be such that f(p) = p' and f(q) = q' . Then 6(p) A w2 (p', a, q')
= = = <
b(p) A w2 (f (p), a, f (q)) b(p) n (V {fti (p, a, r) r E Q1, f (r) = f (q) = q~}) V{6(p) n ft, (p, a, r) r E Q1, f(r) = f (q) = q~} V{6(r) I r E Q1, f (r) = q'}
f(6)(q') .
Hence f(b)(p') Aw2(p',a,q')
<_ =
V{f(b)(q') I p E Q1, f (p) =p'} f(6)(q') .
Thus f (S) is a subsystem of M2 . m The following example shows that the above result need not be true if f is not onto. Example 6.10 .14 Let Q = {p, q} = Q1 = Q2, X = {a}, and ft = ft, = ft2,
where g (r, a, s) = 1 b'r, s E Q. Then M = (Q, X, ft) is a fuzzy finite state machine. Let f : Q ---> Q be a mapping such that f(p) = f(q) = p. Then f is not onto . Clearly, f is a strong homomorphism . Let S be a fuzzy subset of Q such that S(p) = S(q) = z . Then S(r) = z = S(s) Ag(s, a, r) b'r, s E Q. Thus S is a subsystem of M. Now f(S) (p) A tt(p, a, q) = 2 > 0 = f (S) (q). Thus f (S) is not a subsystem of Q .
Definition 6.10 .15 Let M = (Q, X, ft) be a ffsm and let S be a subsystem of M. Then S is called cyclic if 3qt C_ S, q E Q, t E (0,1] such that S = qtX* . In this case we call qt a generator of S .
© 2002 by Chapman & Hall/CRC
282
6. Algebraic Fuzzy Automata Theory
Theorem 6.10 .16 Let M = (Q, X, p) be a ffsm and let S be a subsystem of M. Suppose 3q E Q, t E (0,1] such that S = qtX* . Then (1) S(q) = t, (2) d p E Q, b(q) > b(p), (3) b' subsystems S' of M such that S' C S, if S'(q) > S'(p) Vp E Q, then 61 = gs'(q) X*
Proof.
Now
b(q) _ (qtX*) (q) = (V {w* (q, x, q) I x E X*}) A t =1 n t = t . (2) Let p E Q. Then b(p) _ (gs(q)X*)(p) = (V{w*(q,x,p)Ix E X*}) Ab(q) <_ b(q) . (3) Let p E Q. Then b'(p)
= = _
<
_
b~(p) n 6(p) V{b'(p)nb(q)n[t*(q,x,p)IxEX*} V{b'(p) n w* (q, x,p)I x E X*} v{s'(q) Aw*(q,x,p)Ix E X*} (gs,(q)X*)(p)-
Hence S' C gs,( q)X* . Thus S' = gs,(q)X* . 0 Definition 6.10 .17 Let M = (Q, X, /t) be a ffsm and let S be a subsystem of M. Then S is called super cyclic if and only if S = gs(q)X * b'q E Q.
By Theorem 6.10.16, if S is super cyclic, then S is constant . Example 6.10 .18 Let Q = {p, q}, X = {a}, S(q) = S(p) = 1 and ft(q, a, q) = ft (p, a, p) = 1 and ft (q, a, p) = ft (p, a, q) = 2 . Then S is a subsystem of M = (Q, X, /t) and S is constant. Now
(q,X*) (p) = V{1 A [t* (q, x, p) I x E X*}
= 2 < 1= 6(p) .
Similarly (p 1 X*)(q) < S(q) . Hence S is not cyclic .
Theorem 6.10 .19 Let M = (Q, X, y) be a ffsm and let S be a subsystem of M. Suppose Supp(S) = Q. If S is super cyclic, then M is strongly connected.
Proof. Let p, q E Q. Then (gs(q)X*)(p) =V{b(q) Aw * (q,x,p)Ix E X*} > 0
since S = gs(q)X * and Supp(S) = Q. Hence /t* (q, x, p) > 0 for some x E X* . Thus p E S(q) . Hence M is strongly connected. m © 2002 by Chapman & Hall/CRC
6.11 . Strong Subsystems
283
Theorem 6.10 .20 Let M = (Q, X, p) be a ffsm and let S be a subsystem of M. Then S is super cyclic if and only if b'p, q E Q, 3x E X* such that [t * (p, x, q) > 6(p) .
Proof. Suppose that S is super cyclic . Then S is constant by Theorem 6.10.16. Suppose 3p, q E Q such that V'x E X*, y* (p, x, q) < t, where t = S(r) b'r E Q. Then (ps(P)X*)(q) =V{b(p) Aw*(p,x,q) I x E X*} < t=6(q) .
Hence ps(P)X * :?~ S. Thus S is not super cyclic, a contradiction . Conversely, suppose that b'p, q E Q, 3x E X* such that y* (p, x, q) > S(p) . Then b'p, q E Q, 3x E X* such that S(q) > S(p) Aft* (p, x, q) = S(p) . Similarly S(p) > S(q). Hence S is constant . Now (ps(P)X*)(q) = V{6(p) A w*(p, x, q) I x E X*} = 6(p) = b(q) .
Thus ps(P)X* = S. Hence S is super cyclic. 6 .11
m
Strong Subsystems
Definition 6.11 .1 Let M = (Q, X, /t) be a ffsm. Let S be a fuzzy subset
of Q. Then (Q, S, X, /t) is called a strong subsystem of M if and only if b'p, q E Q, if 3a E X such that ft(p, a, q) > 0, then S(q) > S(p) . If (Q, S, X, ft) is a strong subsystem of M, then we simply write S for
(Q, 6, X,
w)
Theorem 6.11 .2 Let M = (Q, X, y) be a ffsm and let S be a fuzzy subset of Q. Then S is a strong subsystem of M if and only if b'p, q E Q, if 3x E X* such that [t* (p, x, q) > 0, then S(q) > S(p) .
Proof. Suppose S is a subsystem. We prove the result by induction Ixj =n . If n =0, then x =A. Now if p = q, then /t*(q, A, q) = 1 and S(q) = S(q) . If q zA p, then ft * (q, A, p) = 0. Thus the result is true if n = 0. Suppose the result is true b'y E X* such that IyI = n-1, n > 0. Let x = ya, I y I = n - 1, y E X*, a E X. Suppose that /t* (p, x, q) > 0. Then on
V{w* (p, y, r) A w(r, a, q) I r E Q}
=
_ >
ya, q) [t * (p, x, q) 0. w* (p,
Thus 3r E Q such that y,* (p, y, r) > 0 and y,(r, a, q) > 0. Hence S(q) > S(r) and S(r) > S(p) . Thus S(q) > S(p) . The converse is trivial . m Theorem 6.11 .3 Let M = (Q, X, y) be a ffsm and let S be a fuzzy subset of Q. If 6 is a strong subsystem of M, then 6 is a subsystem of M. m
© 2002 by Chapman & Hall/CRC
28 4
6. Algebraic Fuzzy Automata Theory
The following example shows that in general, the converse of the above theorem is not true. Example 6.11 .4 Let 6, Q, X, /t be defined as in Example 6.10.4 .
Then a, p) = > 0, but 6(q) = > = Thus 6 is subsystem of M, 6(p) . ft(q, 2 1 2 which is not a strong subsystem.
Theorem 6.11 .5 Let M = (Q, X, y) be a ffsm . Let 6 1 and 62 be strong
subsystems of M. Then the following assertions hold. (1) 6, n62 is a strong subsystem of M. (2) 61 U 62 is a strong subsystem of M. (3) Let 6 be a strong subsystem of M. Then N = (Supp(6), X, v) is a submachine of M, where v = ftjSupp(s)XxxSupp(s) . (4) Let 6 be a strong subsystem of M. Let Nt = (6t, X, v( t)) where v(t) = ft IbtXXXbt, t E [0,1] . Then b't E [0,1], Nt is a submachine of M. (5) Let 6 be fuzzy subset of Q. Let Nt = (6t, X, v( t)) where v( t) _ ft Ibt xxxb t , t E [0,1] . If b't E [0,1], Nt is a submachine of M, then 6 is a strong subsystem of M.
Proof. The proofs of (1) and (2) are straightforward . (3) Let p E S(Supp(6)) . Then p E S(q) for some q E Supp(6) . Then 6(q) > 0. Since p E S(q), 3x E X* such that /t* (q, x, p) > 0. Hence since 6 is a strong subsystem, 6(p) > 6(q) > 0. Thus p E Supp(6) . Hence S(Supp(6)) C Supp(6) . Thus N is a submachine of M. (4) Let q E S(6t) . Then q E S (p) for some p E St . Thus 6(p) > t . Now 3x E X* such that y* (p, x, q) > 0. Then 6(q) >_ 6(p) >_ t. Thus q E 6t . Hence Nt is a submachine of M. (5) Let q, p E Q, x E X* be such that y* (p, x, q) > 0. Suppose 6(p) > 0 . Let 6(p) = t. Then p E St . Since Nt is a submachine of M, S(6t) = St . Thus q E S(p) C S(6t) = St . Hence 6(q) > t. Thus 6 is a strong subsystem . 0 Theorem 6 .11 .6 Let M = (Q, X, y) be a ffsm . Let N = (T, X, v) be a submachine of M. Then XT is a strong subsystem of M.
Proof. Let p, q E Q, a E X, and ft(p, a, q) > 0. Then q E S(p) . If p E T, then q E S(p) C_ S(T) C_ T. Hence XT(q) = 1 = XT(p) . If p ~ T, then XT(p) = 0 < XT(q) . Thus XT is a strong subsystem of M. Theorem 6 .11 .7 Let M = (Q, X, /t) be a ffsm. Then M is strongly connected if and only if every strong subsystem of M is constant .
Proof. Suppose M is strongly connected . Let 6 be a strong subsystem of M. Let p, q E Q . Then p E S(q) and q E S(p) . Hence 6(p) > 6(q) and 6(q) >_ 6(p) . Thus 6(p) = 6(q) . Hence 6 is constant. Conversely, suppose that every strong subsystem is constant . Let p, q E Q . Suppose q ~ S(p) . Then Ql z,4 S(p) z,4 Q. Let 6 be a fuzzy subset of Q such that 6(r) = 1 if r E S(p) and 6(r) = 0 if r ~ S(p) . Let r, s E Q be such that lt* (r, x, s) > 0 © 2002 by Chapman & Hall/CRC
6.11 . Strong Subsystems
285
for some x E X* . If S(r) = 0, then S(s) >_ 0 = S(r) . Let S(r) = 1 . Then r E S(p) . Hence s E S(r) C S(p) . Thus S(s) = 1 = S(r) . Hence S is a strong subsystem . Now S(p) = 1 and S(q) = 0. Thus S is not constant, which is a contradiction. Hence q E S(p) . Thus M is strongly connected . m Definition 6.11 .8 Let M = (Q, X,
/t) be a ffsm and let S be a strong subsystem of M. Suppose Q has at least two elements . Then S is called simple if (1) S is not constant, and (2) for all strong subsystems Q of M, X0 :?~ Q C S ==~, Supp(Q) _ Supp(S) .
Theorem 6.11 .9 Let M = (Q, X, y) be a ffsm and let S be a strong subsystem of M. Suppose ~Q1 > 2 . If S is simple, then Im(S) = {0, t}, where 0
Proof. Since S is not constant, ~Im(S) j >_ 2 . Suppose ~Im(S) j > 2 . Then
3 tl , t2 , t3 E [0 ,1], 0 < tl < t2 < t3 < 1, and 3 rl , r2, r3 E Q such that S(r2) = t2 , i = 1, 2, 3 . Let m E [0,1] be such that t2 < m <_ t3. Let Q be a fuzzy subset of Q such that b'r E Q, Q(r)
_~ mif6r >m 0 if S(r) < m.
Let p, q E Q be such that y* (p, x, q) > 0 for some x E X* . Then S(q) > S(p) since S is a strong subsystem. If S(p) >_ m, then S(q) >_ m. Hence a(q) = m = a(p) . Suppose s(p) < m . Then a(q) > 0 = a(p) . Thus Q is a strong subsystem. Clearly, Q C_ S. Now S(r2) = t2 z,4 0 and a(r2) = 0 . Thus X0 :?~ Q C_ S and Supp(Q) :?~ Supp(S), which is a contradiction since S is simple. Hence ~Im(S) j = 2 . Let Im(S) = {t2, t3}, 0 <_ t2 < t3 < 1. Suppose t2 :?~ 0. Let Q be as defined previously. Then X0 :?~ Q C_ S and Supp(Q) 7~ Supp(S), which is a contradiction . Hence t2 = 0. 0 Theorem 6.11 .10 Let M = (Q, X, y) be a ffsm and let S be a fuzzy subset
of Q . Suppose Im(S) = {0, t}, 0 < t <_ 1. Then S is a simple strong subsystem if and only if N = (Supp(S),X,v), where v = ltjSupp(s)XxxSupp(s), is a strongly connected submachine of M.
Proof. Suppose N is strongly connected . Let p, q E Q be such that tt* (p, x, q) > 0. If S(p) = 0, then S(q) > 0 = S(p) . Suppose S(p) > 0. Then p E Supp(S) . Now q E S(p) C_ S(Supp(S)) = Supp(S), since N is a submachine. Hence S(q) = t = S(p) . Thus S is a strong subsystem . Let Q be a strong subsystem of M such that X0 :?~ Q C S. Then by Theorem 6.11 .5(3), K = (Supp(c,),X,ltlsupp(a)Xxxsupp(a)) is a submachine. Now K C_ N. Since N is strongly connected, N has no proper submachine. Hence K = N. Thus Supp(Q) = Supp(S) . Hence 6 is simple. Conversely, © 2002 by Chapman & Hall/CRC
28 6
6. Algebraic Fuzzy Automata Theory
suppose S is simple. Let K = (T, X, 97) C N, Ql :?~ T C_ Supp(6) C Q, be a submachine. Let Q be a fuzzy subset of Q such that b'r E Q, Q(r)
-
S(r) if r E T Oifr~T.
Then Q C S. Let p, q E Q be such that p* (p, x, q) > 0 . Then q E S(p) . If a(p) = 0, then a(q) >_ 0 = a(p) . Let a(p) > 0 . Then p E T. Thus q E S(p) C S(T) = T . Hence a(q) = S(q) > S(p) > a(p) . Thus Q is a strong subsystem . By the definition of Q, Q z,4 XO . Since S is simple, Supp(Q) = Supp(S) . Hence Supp(Q) C_ T C_ Supp(S) = Supp(Q) . Thus T = Supp(S) . Hence K = N. Thus N has no proper submachine. Hence N is strongly connected . Theorem 6.11 .11 Let Ml = (Q1, X, pl) and M2 = (Q2, X, p2) be two ffsms. Let f : Ml -----> M2 be an onto strong homomorphism. If S is a strong subsystem of Q1, then f (S) is a strong subsystem of Q2 . Proof. Let p, q Now
E Ql
and a
E
X be such that y,2 (f (p), a,
f (b) (f (q)) = V{b(r)
f (q)) > 0 .
r E Q1, f (r) = f (q)
and f (b) (f (p)) = V
Let s
E Q1
V(s)
be such that S(s) > 0 and
s E Q1' f (s) = f (p* f (s) = f (p) .
Now
ft2 (f (s), a, f (q)) = ft2 (f (p), a, f (q)) > 0.
Hence V {ftl (s,
a, r) jr
E Qj, f (r) = f (q) } >0 .
Thus 3 r E Q1 such that ft, (s, a, r) > 0 and f (r) subsystem, 6(r) > 6(s) > 0. Hence f (S) (f (q)) > strong subsystem.
= f (q) .
Since S is a strong Thus f (S) is a
f (S) (f (p)) .
The following example shows that the above result need not be true if not onto.
f is
Example 6.11 .12 Let Q, X, y, S, and f be defined as in Example 6.10.14.
Then S is a strong subsystem and f is a strong homomorphism such that f is not onto . Now ft(p, a, q) = 1 > 0, but f (S) (p) = 2 > 0 = f (S) (q) . Hence f (S) is not a strong subsystem.
© 2002 by Chapman & Hall/CRC
6.12. Cartesian Composition of Fuzzy Finite State Machines
6 .12
287
Cartesian Composition of Fuzzy Finite State Machines
Here and the next section, we study a new product of two fuzzy finite state machines Ml and M2 , written Ml - M2 , and called the Cartesian composition of Ml and M2, as in [48] . We show that Ml, M2, and Ml - M2 share many similar structural properties, e.g., those of singly generated, retrievability, connectedness, strongly connectedness, commutativity, perfectness, and state independence . This is important since a fuzzy finite state machine, which is a Cartesian composition of submachines can thus be studied in terms of smaller machines . Definition 6.12 .1
Let M = (Q, X, /t) be a ffsm . Then M is said to be connected if and only if M has no separated proper submachine .
Theorem 6.12 .2
Let M = (Q, X, /t) be a ffsm . Then M is connected if and only if b' proper submachines N = (T, X, v) 3 s E Q\T and t E T such that s(s) n S(t) z,4 0 .
Proof. Suppose M is connected. Let N = (T, X, v) be a proper submachine. Then S(Q\T) n T :?~ 01 since M has no separated proper submachine. Thus 3 r E S(Q\T) n T . Now T = S(T) . Hence r E S(s) for some s E Q\T and r E S(t) for some t E T. Thus s(s) n S(t) z,4 0 . Conversely, let N = (T, X, v) be a proper submachine. Then 3 s E Q\T and t E T such that s(s) ns(t) :?~ 0 . Hence 0 :?~ s(s) ns(t) C s(Q\T) ns(T) = s(Q\T) nT. Thus N is not separated. Hence M has no proper separated submachine. Thus M is connected . m Definition 6.12 .3 Let M = (Q, X, /t) be a ffsm . Let p, q E Q . Then q and p are called connected if either q = p or 3 qo, q l , . . . , qk E Q, q = qo, p = qk and 3 al, a2 . . . . , ak E X such that b' i = 1, 2, . . . , k either ft(gi-1, a2, qZ) > 0 or ft (gj, aZ, qZ-1) > 0 . r
Clearly, if q and p are connected and p and are connected .
Definition 6 .12 .4
r
are connected, then
Let M = (Q, X, /t) be a ffsm. For all q E Q, let
C(q) = {p E Q
Ip
and q are connected}
Vq E Q .
Clearly, Let
b'q, p E Q
M = (Q, X, y)
if p
E C(q),
then C(p) = C(q) .
be a ffsm. For all T C
Q,
C(T) = UpETC(p) " © 2002 by Chapman & Hall/CRC
let
q
and
28 8
6. Algebraic Fuzzy Automata Theory
Lemma 6.12 .5 Let M = (Q, X, p) be a ffsm . Let U, V C_ Q. Then the following properties hold. (1) If U C V then C(U) C C(V) . (2) U C C(U) . (3) C(C(U)) = C(U) . (4) C(U U V) = C(U) U C(V) . (5) C(U n V) c C(U) n C(V) . (6) Let q, p E Q. If q E C(U U {p}) and q ~ C(U), then p E C(U U {q}) .
SM C- C(Q) . (8) S(C(U)) = C(U) . ('7)
Proof. The proofs of (1), (2), (4), (5), and (7) are straightforward. Consider (3) . Now C(U) C C(C(U)) by (2) . Let q E C(C(U)) . Then 3 p E C(U) such that q E C(p) . Hence q E C(r) for some r E U. Thus q E C(r) C C(U) . Consider (6) . Suppose that q E C(UU{p}) and q ~ C(U) . Since C(U U {p}) = C(U) U C(p), q E C(p) . Thus p E C(q) C C(U U {q}) . Consider (8) . Let p E S(C(U)) . Then p E S(q) for some q E C(U) . Now q E C(r) for some r E U. Hence p E C(r) C C(U) . Thus S(C(U)) C C(U) and so S(C(U)) = C(U) . m Since Q is a finite set, it is clear that b' q E Q and U C_ Q, if q E C(U), then q E C(U) for some finite subset U' of U. This fact together with properties (1), (2), (3), and (6) give C the basic spanning properties in [264, p. 50] that are used for various algebraic structures to obtain the existence of bases and the uniqueness of their cardinalities. Definition 6 .12 .6 Let M = (Q, X, /t) be a ffsm and let T C_ Q . Then T is
called a connected component if b' s, t E T, s and t are connected. T is called a maximal connected component when b' p E Q, if p is connected to t for some t E T, then p E T.
Theorem 6.12 .7 Let M = (Q, X, p) be a ffsm and let q E Q. Then C(q) is a maximal connected component of Q.
Proof. The proof is obvious . m Theorem 6.12 .8 Let M = (Q, X, p) be a ffsm and let q E Q. Let N = (C(q),X, ltja(q)XXXC(q)) . Then N is a submachine of M. m Theorem 6 .12 .9 Let M = (Q, X, /t) be a ffsm. Then M is connected if and only if b'q E Q, C(q) = Q.
Proof. Suppose M is connected and let q E Q . Suppose 3p E Q such that p ~ C(q) . Then N = (C(q),X, /tjc(q)XXXC(q)) is a proper submachine of M. Hence by Theorem 6.12.2, 3s E Q\C(q) and t E C(q) such that S(s) nS(t) z,4 0. Let r E S(s) nS(t) . Then s and r are connected and r and t are connected . Hence s and t are connected . Thus s E C(t) = C(q), which is a contradiction . Hence C(q) = Q . Conversely, suppose that b'q E Q, © 2002 by Chapman & Hall/CRC
6.13. Cartesian Composition
289
= Q. Let N = (T, X, v) be a proper submachine of M. Suppose that N is separated. Then S(Q\T) n T = Ql and S(Q\T) = Q\T. Let q E Q\T and t E T. Then C(t) = Q = C(q) . Hence q and t are connected . Thus 3 qo, ql, . . . , qk E Q, q = qo, t = qk, and 3 al , a2 , . . . , ak E X such that C(q)
b' i = 1, 2, . . . , k either ft(gi_1, a2, qZ) > 0 or tt(q a qZ-1) >O .Now3 i such that q2_1 E Q\T and qZ E T. Hence either qZ E S(g2_1) C_ S(Q\T) or q2_1 E S(qi) C_ T, which is a contradiction . Thus N is not separated. Hence M is connected . m
Corollary 6.12 .10 Let M = (Q, X, ft) be a ffsm. Then M is connected if and only if b' p, q E Q, p and q are connected. m
6 .13
Cartesian Composition
Definition 6.13 .1 Let MZ = (QZ, XZ, pi) be a ffsm, i = 1, 2 and let Xl n X2
= 01 . Let
M1 -
M2 = (Ql X Q2,
X1 U X2, w1
'
w2),
where
(Nt1 ' ft2)((pl,p2), a, (ql, q2))
=
ft, (pl, a, ql) Nt2(p2, a, q2)
0 otherwise,
if a E Xl and p2 = q2 if a E X2 and pl = ql
E Q1 X Q2, a E Xl U X2 . Then Ml the Cartesian composition of Ml and M2 .
d(pl,p2), (ql, q2)
M2
is a ffsm, called
Theorem 6.13 .2 Let MZ = (QZ, XZ , p2 ) be a ffsm, i = 1, 2 and let Xl rl = 0. Let Ml - M2= (Ql X Q2, XI U X2, ftl,ft2) be the Cartesian composition of Ml and M2 . Then V'x E Xl U X2, x z,4 A, X2
(ftl ' ft2)*((pl,p2),
d(pl,p2), (ql, q2)
E
x,
(ql, g2))
=
fti (pl, x, ql)
if x E Xl and p2 = q2 x, g2) if x E X2 and pl = gl It * (P2, 0 otherwise,
Q1 X Q2-
Proof. Let x E Xl U X2, x z,4 A and let Ix I = n . Suppose that x E Xl . Clearly the result is true if n = 1. Suppose the result is true b'y E X*, © 2002 by Chapman & Hall/CRC
290
6. Algebraic Fuzzy Automata Theory
yI =n-1, n > 1 . Let x = ay where a E X1 and y E Xl . Now (ftl ' w2)*((P1,P2), ay, (qj, q2))
= =
V{(ftl ' w2)((Pl,P2), a, (rl, r2)) n(ftl ' ft2) * ((rl, r2), y, (ql, q2)) l (rl, r2) E Q1 X Q2} V{ftl(pl,a,rl) n (ft, ' ft2)*((rl,P2),y, (gl,q2))l r l E Q1}
V {ftl(pl, a, rl) n fti (rl, y, r l E Q1} if P2 = q2 0 otherwise fti (pl, ay, ql) if P2 = q2 0 otherwise .
= __
The result now follows by induction. The proof is similar if x
ql)
E X2 . m
Theorem 6.13 .3 Let MZ = (QZ, XZ, pi) be a ffsm, i = 1, 2 and let Xl X2 = 0. Then V'x E X*, b'y E X2 (pl'p2)*((P1,P2),xy,(gl,q2))
= _
rl
fti(pl,x,gl)np2(P2,y,q2) (pl ' p2)*((P1,P2), yx, (qj, q2))
V(Pl,P2), (gl,q2) E Q1 X Q2-
Proof. Let x E Xl, y E X2, (PI, P2), (qj, q2) E Q1 X Q2 . If x = A = y, then xy = A. Suppose (PI, P2) _ (qj, q2) . Then pl = ql and P2 = q2 . Hence (pl ' p2) * 01,P2),xy, (gl,q2)) = 1 = 1 n 1 = fti(pl,x,gl) n ft2(P2,y,g2) " If (pl, p2) 7~ (qj, q2), then either pl ql or P2 :?~ q2 . Thus pi (pl , x, ql) n . Hence 0 ' p2 (P2, y, q2) = (It, p2) * 011 P2), xy (ql, q2)) = 0 = pi (PI, x, q1) n If x = A and y :?~ A or x :?~ A and y = A, then the result [t2* (P2, y, q2) . follows by Theorem 6.13.2 . Suppose x :?~ A and y :?~ A. Now I
(pl '
p2) * 01,P2), xy, (qj, q2))
=
V{(pl '
=
p2)*((P1,P2), x, (rl, r2))n (pl ' ft2) * ((rl, r2), y, (qj, q2)) l h, r2) E Q1 X Q2} V {V{(ftl ' p2)*((P1,P2), x, (rl, r2))n (pl ' ft2) * (h, r2), y, (qj, q2))
=
Similarly
I r2EQ21 I r1EQ1I
V{(pl '
p2)*((P1,P2), x, (rl,P2))n (pl ' p2)*((r1,P2), y, (qj, q2)) l rl E Q1} pi (pl, x, gl) n p2 (P2, y, q2) .
(ftl ' p2) * 011P2), yx, (qj, q2)) = pi(pl, x, ql) n [t* (P2, y, q2) .
Theorem 6.13 .4 Let MZ X2 = 01. Then b'w E (XI U (pl '
= (QZ, XZ, pi) be a ffsm, i = 1, 2 X2 )* 3 u E X*, v E X2 such that
p2)TP1,P2), w, (qj, q2)) =
V(Pl,P2), (gl,q2) E Q1 X Q2-
© 2002 by Chapman & Hall/CRC
(pl '
and let Xl
p2)TP1,P2), UV, (qj, q2))
rl
6.13. Cartesian Composition
291
Proof. Let w E (X1 U X2)* and (pl, p2), (ql, q2) E Q1 X Q2 . If w =A, then we can choose u = A = v. In this case the result is trivially true. Suppose w :?~ A. If w E Xl or w E X2*, then again the result is trivially true. Suppose w ~ Xl and w ~ X2 . Case 1: If w = xy, x E X+, y E X2+ , then the result follows by Theorem 6.13.3. Case 2: Suppose w = xlyx2, X1, X2 E Xl and y E X2, x2 and y are nonempty strings, i = 1, 2. Let u = xlx2 E Xl and v = y . Now by Theorem 6.13.3, (ftl ' ft2) *((rl, r2), x2y, (ql, q2)) = (ftl ' ft2) * ((rl, r2), yx2, (ql, q2)) E Q1 X Q2 . Thus (ftl ' ft2) * ((pl,p2),xlyx2,(gl,q2)) _ n (ftl'ft2) * ((r1Ir2),yx2,(gl,q2)) I (rl,r2) E ((pl,p2),xl,(rl,r2)) V{(ftl'ft2) * Q1 XQ2} = V{(ftl'ft2)*((pl,p2),xl, (rl,r2)) n (ftl'ft2) * ((rl,r2),x2y, (gl,q2))
V(rl,r2),(gl,q2)
(rl,r2) E Ql X Q2} = (ftl ' ft2) * ((pl,p2),xlx2y, (gl,q2))-
Case 3: Suppose w = ylxy2, yl, y2 E X2 and x E X*, yZ and x are nonempty strings, i = 1, 2. Let v = yly2 E X2 and u = x . The proof of this case is similar to Case 2. Case 4: Suppose w = xlylx2y2, X1, X2 E Xl, Y1, Y2 E X2, xZ and yZ are nonempty strings . Let u = xlx2 E Xl and v = yly2 E X2 . Then (ft, ft2) * ((pl,p2),xlylx2y2,(gl,q2)) = VWtl ' ft2) * ((pl,p2),xl,(rl,r2))A (ft, '
ft2) * ((rl~r2),ylx2y2,(gl,q2))I (rl,r2) EQ1XQ2}=VWtl'ft2) * ((pl,p2),xl, (rl, r2)) A (ftl ' ft2) * ((rl, r2), x2yly2, (ql, q2))
I
(rl, r2) E Ql X Q2}
(by Case
3) = (ftl ' ft2)*((pl,p2), xlx2yly2, (ql, q2)) = (ftl ' ft2)*((pl,p2), uv, (ql, q2)) . Case 5: Suppose w = ylxly2x2, X1, X2 E Xl , Y1, Y2 E X2* . Let u = xl x2 E Xl and v = yly2 E X2 . The proof of this case is similar to Case 4. Case 6: Let w E (XI U X2)* . Then w = xlylx2y2 . . . xnyn or w = ylxly2x2 . . . ynxn, xZ E Xl, yZ E X2, x2 and yZ are nonempty strings, i = 1, 2, . . . , n - 2. To be specific, let w = xlylx2y2 . . . xnyn . The proof of the second case is similar. If n = 0, 1, or 2, then the result is true by the previous cases . Suppose the result for all z = xlylx2y2 . . . xn-lyn-1 E (XI U X2)*, n > 2 . Let ul = xlx2 . . . x n-1, vl = yly2 . . . yn-1, u = ulxn, and v = vlyn . Now (ftl ' ft2)*((pl,p2), xlylx2y2 . . . xnyn, (ql, q2)) _ V{(ftl ' ft2) * ((pl,p2),xlylx2y2 . . . xn -1 yn-1, (rl,r2))n (ftl ' ft2) * ((rl1 r2), xnyn (ql, q2)) I (rl, r2) E Q1 XQ2} = V{(ftl ' ft2) * ((pl1 p2), ulvl, (rl, r2))n
(ftl ' ft2) * ((rl, r2), xnyn, (ql, q2)) (rl, r2) E Q1 X Q2} = (ftl ' ft2)*((pl, p2), ulvlxnyn, (ql, q2)) = (ftl ' ft2) * ((PI, P2), UV, (gl, q2)) . The result now
follows by induction. m
In Theorem 6.13.4, u consists of all the elements from w that are in X l (in the given order) and v consists of all the elements from w that are in X2 (in the given order) . We write w* = uv and call w* the standard form of w.
© 2002 by Chapman & Hall/CRC
29 2
6. Algebraic Fuzzy Automata Theory
Theorem 6.13 .5 Let
MZ = (QZ, XZ, pi) be a ffsm, i = 1, 2 and let Xl rl X2 = 0. Then the Cartesian composition Ml - M2 is cyclic if and only if Ml and M2 are cyclic.
Proof. Suppose Ml and M2 are cyclic, say Ql = S(qo) and Q2 = S(po) for some qo E Q1, PO E Q2 . Let (q, p) E Q1 x Q2 . Then 3 x E Xl and y E X2 such that pi (qo, x, q) > 0 and p2 (po, y, p) > 0. Thus (pl ' p2) * ((qo,po), xy, (q, p)) = pi (qo, x, q) n p2 (POI y, p) > 0 . Hence (q, p) E S((go,po)) . Thus Q1 x Q2 = S((go,po)) . Hence Ml - M2 is cyclic . Conversely, suppose Ml - M2 is cyclic . Let Q1 x Q2 = S((qo, po)) for some (qo, po) E Q1 x Q2 . Let q E Q1 and p E Q2 . Then 3 w E (XI U X2)* such that (pl'p2N(go,po), w, (q,p)) > 0 . By Theorem 6.13.4, 3u E X1 and v E X2 such that pi(go,u,q)np2(po,v,p) _ (pl'p2)*((go,po),w, (g,p)) > 0 . Hence 3u E X1 and v E X2 such that pi (qo, u, q) > 0 and p2 (po, v, p) > 0 . Thus q E S(qo) and p E S(po) . Hence Q1 = S(qo) and Q2 = S(po) . Thus Ml and M2 are cyclic . m Theorem 6.13 .6 Let
MZ = (QZ, XZ, pi) be a ffsm, i = 1, 2 and let Xl rl X2 = 0. Then the Cartesian composition Ml - M2 is retrievable if and only if Ml and M2 are retrievable.
Proof. Suppose that Ml and M2 are retrievable . Let (q, p), (t, s) E Q1 x Q2, and w E (XI U X2)* be such that (pl ' p2)*((q, p), w, (t, s)) > 0 . Let w* = uv be the standard form of w, u E X*, v E X2* . Then (ft, p2)*((q,p), w, (t, s)) = (pl ' p2)*((q,p), uv, (t, s)) = pi(q, u, t) n p2 (p, v, s) . Thus pi (q, u, t) > 0 and p2 (p, v, s) > 0. Since Ml and M2 are retrievable, El u' E X * ' v' E X2 such that pi (t, u', q) > 0 and p2 (s, v', p) > 0. Thus (pl ' p2)*((t, s), u'v', (q, p)) > 0 . Hence Ml - M2 is retrievable. Conversely, suppose that M1-M2 is retrievable. Let q, t E Q1 and y E Xl be such that pi (q, y, t) > 0. Then b' s E Q2, (pl ' p2)* ((q, s), y, (t, s)) = pi (q, y, t) > 0. Thus 3 w E (XI UX2)* such that (It, ' p2)*((t, s), w, (q, s)) > 0. Let w* = uv be the standard form of w, u E X*, v E X2 . Then 0 < (pl ' p2)* ((t, s), w, (q, s)) = pi (t, u, q) np2 (s, v, s) . Thus pi (t, u, q) > 0. Hence Ml is retrievable . Similarly M2 is retrievable . m The following corollaries follow from Theorems 6.8 .6 and 6.13.6. Corollary 6.13 .7 Let MZ
= (QZ, Xi, pi) be a ffsm, i = 1, 2, and let Xl rl X2 = 0. Then the Cartesian composition Ml - M2 is the union of strongly connected submachines if and only if Ml and M2 are the union of strongly connected submachines.
Corollary 6.13 .8 Let MZ
= (QZ, XZ, pi) be a ffsm, i = 1, 2, and let Xl rl X2 = 0. Then the Cartesian composition Ml - M2 satisfies the Exchange Property if and only if Ml and M2 satisfies the Exchange Property . m
© 2002 by Chapman & Hall/CRC
6.13. Cartesian Composition
293
Theorem 6.13 .9 Let MZ = (QZ, XZ, pi) be a ffsm, i = 1, 2, and let X1 rl
X2 = 0 . Then the Cartesian composition Ml - M2 is connected if and only if Ml and M2 are connected.
Proof. Suppose that Ml and M2 are connected. Let (q,q'),(p,p') E Q1XQ2 " NowElg0,q1, " . . ,qn EQ1,q - q0,p=gnand3a,,a2, " . . ,an E X1 such that b' i = 1, 2, . . . , n either p1 (qZ-1, aZ, gZ ) > 0 or ft, (gZ, aZ, gZ-1) > 0 and 3 qo, q. . . . . . gm E Q2, q' = q9, p~ = qm and 3 b1, b2, " . . , bm E X2 such that d i = 1, 2, . . . , m either p2(gZ-1, bZ, qZ) > 0 or pz(gZ, b2, qZ-1) > 0. Consider the sequence of states (g, q) _ (g0, g0), (g1, g0), . . . , (gn, g0), (gn, gl), . . , (gn, gm) _ (p,p ' ) E Ql X Q2 and the sequence a 1, a2, " . . , a n, bl1,, 2, bm E X1 U X2 . Then Vi = 1,2, . . . , neither (It,' p2) ((qj-1, q0), a2, (q2, qo)) > 0 or (p1 ' p2) ((qi, q0), a2 , (qZ-1, qo)) > 0 and b' j = 1, 2, . . . , m either (p1 ' p2)((gn, '-1), bj, (qn, g;)) > 0 or (p1 ' p2)((gn, g;), bi, (gn, g;-1)) > 0. Hence (q, q) and (p, p) are connected. Conversely, suppose that M1 - M2 is connected . Let q, p E Q1 and let r E Q2- If p = q then p and q are connected. Suppose p :?~ q.Then 3 (q, r) = (g0,p0), (gl,pl), " . . , (gn,pn) = (p, r) E Q1 X Q2 and a1, a2, " . . , an E X1 U X2 such that Vi = 1, 2, . . . , n either (p1 ' p2 ) ((g2-1, pj-1), aZ, (qi, p2)) > 0 or (p1 ' p2)((gi,pi),aj, (qZ-1, pi-1)) > 0. Clearly, if qZ-1 :?~ qZ, then pi- 1 = pi and if pi- 1 :?~ pi, then qZ-1 = qj d i = 1, 2, . . . , n. Let {q = qz l , qz . . . . . . qj,, = p} be the set of all distinct qj E {qo, q1, . . , qn} and let a21, a22 , . . . , a2,, be the corresponding a2's . Then a21, ail , . . . , a2, E XI and b' j = 1, 2, . . . , k either ft, (gi, 1 , a 2j , qi;) > 0 or ft, (gi, , a2j , qZ, ,) > 0. Thus q and p are connected. Hence M1 is connected . Similarly, M2 is connected . 0 The following theorem follows from Theorems 6.8 .11, 6.13.6, and 6.13.9. Theorem 6.13 .10 Let MZ = (QZ, XZ, pi) be a ffsm, i = 1, 2, and let X1 rl
X2 = 0 . Then the Cartesian composition M1 - M2 is strongly connected if and only if M1 and M2 are strongly connected. m
Definition 6.13 .11 Let M = (Q, X, p) be a ffsm. Then M is said to be commutative if b'a, b E X and b'q, p E Q,
p* (q, ab, p) = p* (q, ba, p) .
The following result is immediate from Theorem 6.13.4. Theorem 6.13 .12 Let MZ = (QZ, XZ, pi) be a ffsm, i = 1, 2, and let X1 rl
X2 = 0. Then the Cartesian composition M1 - M2 is commutative if and only if M1 and M2 are commutative. 0
Definition 6.13 .13 Let M = (Q, X, p) be a ffsm. If M is commutative and strongly connected, then M is said to be perfect.
Theorem 6.13 .14 Let MZ = (QZ, XZ, pi) be a ffsm, i = 1, 2, and let X1 rl
X2 = 0 . Then the Cartesian composition M1 - M2 is perfect if and only if M1 and M2 are perfect. m
© 2002 by Chapman & Hall/CRC
294
6. Algebraic Fuzzy Automata Theory
Definition 6.13 .15 Let M = (Q, X, /t) be a ffsm. Then M is said to be state independent if Vq',p' E Q, Vx,y E X+, (/t*(q',x,p') > 0 and p* (q', y, p') > 0) ==~, (dq, p E Q, p* (q, x, p) > 0 ~ /t* (q, y, p) > 0) .
Theorem 6.13 .16 Let MZ = (QZ, XZ, pi) be a ffsm, i = 1, 2, and let Xl rl X2 = 0 . Then the Cartesian composition Ml - M2 is state independent if and only if Ml and M2 are state independent. Proof. Suppose that Ml and M2 are state independent . Suppose that
(pl ' p2)*((gi,q2),wl,(pi,p2)) > 0 and (pl ' p2)* ((gi,q2),w2,(piIp2)) > 0, where (gi, q2), (pi,p2) E Q1 x Q2, and WI, w2 E (XI U X2)* . Now 3 ul, u2 E Xi and VI, v2 E X2 such that (pl p2)* ((qi, q2), wl, (pi, p2)) ~ ~ = * pi(gi,ul,pi)np2(q2,vl,p2) and (pl'p2 * ((gl~g)~ q2), W2, 2~ (P, P2)) p1 1 u2~ [t* (q' ) . Thus [t* (q, u 0 ' ) l~ > V2, p' g1 ~ 1 ~ 1p') vi, p1 p2 g21 2 1 1 p2 (g2, p2) > 0, pi(gi, u2~ and 0. Hence E 0, p2(g2,v2,p2) > dgl,pl Q1, pi(gl,ul,pl) >0 pi) > pi(gl,u2,p1) > 0 and dg2,p2 E Q2, p2(g2,vl,p2) > 0 p2(g2,v2,p2) > 0. Hence pi(gi, ui, pi)n [t2* (q2, VI, p2) > 0 U2,pi)A p2 (g2, v2, p2) pi( > 0, dql, pl E Q1, dq2, p2 E Q2 . Thus (pl ' p2)*((gl,q2),wl, (PI, P2)) > 0 (pl'p2)*((gl,q2),w2, (PI, P2)) > 0, dgl,pl E Q1, dg2,p2 E Q2 . Hence Ml - M2 is state independent.
Conversely, suppose that Ml - M2 is state independent . Suppose that pi(gi,ul,pi) > 0 and pi(gi,u2,pi) > 0 where U1, U2 E Xl and q', p' E Q1 Then VS E Q2, (pl ' p2)*((gi"s),ul,(pi,s)) = p1 1 ul,pi) > 0 and (pl ' p2)*((gi,8),u2,(pi,s)) = pi(gi,u2,pi) > 0. Thus dq,p E Ql, s E Q2, (pl ' p2) * ((q, s), ul, (p, s)) > 0 (pl ' p2)* ((q, 8), u2, (A s)) > 0 . Hence b'q, p E Q1, pi (q, ul, p) > 0 pi (q, u2, p) > 0. Thus Ml is state independent . Similarly M2 is state independent. m
Theorem 6.13 .17 Let MZ = (QZ, XZ, pi) be a ffsm, i = 1, 2, and let Xl rl X2 = 01 . Let Ni = (Ti, XZ, v2) be a submachine of MZ, i = 1, 2 . Then Nl - N2 is a submachine of Ml - M2 . Conversely, if N = (TI x T2 , Xl U X1 , v) is a
submachine of Ml - M2 , then there exist submachines Nl of Ml and N2 of M2 such that N = Nl - N2 .
Proof. Let Ni = (Ti , XZ , v2) be a submachine of MZ , i = 1, 2 . Now N1-N2 = (TI XT2, XI UX2, VI 'V2) . Let (r, s) E S(TI xT2) . Then 3 w E (XI U X2)* , (p, q) E Tl x T2 such that (pl ' p2)*((p, q), w, (r, s)) > 0. Let w* = uv be the standard form of w, u E XI* , v E X2* . Now [t* (p, u, r) A [t*(q, v, s) (pl'p2) * ((p, q), w, (r, s)) > 0. Thus pi (p, u, r) > 0 and p2 (q, v, s) > 0. Hence rES(p)CS(Tl)=TlandsES(q)CS(T2)=T2 .Thus (r,s)ET1 xT2 .
© 2002 by Chapman & Hall/CRC
6.13. Cartesian Composition Hence S(Tj x T2 )
C Tl x T2 .
295 Let (p, q), (r, s)
E Tl x T2 , a E X l U X2 . Now
(VI - V2) ((p, q), a, (r, s) )
v l (p,a,r) if a E X1, q =s v2 (q, a, s) i£ a E X2, p=r
0 otherwise
P1 (PI a, r) if a E X1, q =s p,2 (q, a, s) if a E X2, p=r
0 otherwise
(P1 ' P2) ((p, q), a, (r, s)) .
Hence (PI 'N2)I(T1xT2)x(XIUX2)x(T1xT2) =vl-v2 . Thus Nl -N2 is asubmachine of Ml - M2 . Conversely, let N = (TI x T2 , Xl U X1 , v) be a submachine of Ml - M2 . Let vl = /t1IT1 xX 1 xT1 , v2 = /t2lT2XX2XT2, N1 = (TI IX1IV1)1 and N2 = (T2, X2, v2) . Let p E T1, x E Xl , r E Q1 be such that pl (p, x, r) > 0. Let t E T2 . Then (p,l'Nt2)*((p, t), x, (r, t)) = p,l(p, x, r) >0. Thus (r, t) E S(Tj x T2) = Tl x T2 . Hence r E Tl and so S(TI ) C_ T1 . Thus Nl is a submachine of Ml . Similarly N2 is a submachine of M2 . Let (p, q), (r, s) E Tl x T2 , aEXIUX2 .Now
v((p, q), a, (r, s))
=
Gt1 ' ft2)((p, q), a, (r, s)) P 1 (p, a, r) if a E X 1 , q = s N'2 (q, a, s) if a E X2, p = r
0 otherwise
vi (p,a,r)ifaEX1, q=s v2 (q, a, s) if a E X2, p = r
0 otherwise
(VI - v2) ((p, q), a, (r, s)) .
Hence N = Nl - N2 . m Let M = (Q, X, ft) be a ffsm and let - be an equivalence relation on Q . Recall from Definition 6.4 .1 that - is called an admissible relation if and only if b' p, q, r E Q, b'a EX, if p - q and lt(p, a, r) > 0, then 3 t E Q such that ft(q, a, t) >_ ft(p, a, r) and t - r . Let M = (Q, X, ft) be a ffsm and let - be an equivalence relation on Q . By Theorem 6.4.2, - is an admissible relation if and only if d p, q, r E Q, V'x E X*, if p - q and /t* (p, x, r) > 0, then 3 t E Q such that /t* (q, x, t) >_ p,* (p, x, r) and t - r . Let Ml = (Q1, X1, p l ) and M2 = (Q2, X2, p 2 ) be two ffsms and let Xl n X2 = Ql . Let p i be an admissible relation on MZ, i = 1, 2. Define a relation p l ' P2 on Ml - M2 by (PI IP2)P l ' P2(gl,q2) if
and only
if p1Plg1
and
p2P2g2
d(pl,p2), (ql, q2) E Q1 x Q2Clearly pl'P2 is an equivalence relation on Ml .M2 . Let (PI, p2), (ql, q2) E Q 1 x Q2 be such that (pl,p2)Pl ' P2(gl,g2) . Let a E Xl U X2 and (ft,
© 2002 by Chapman & Hall/CRC
29 6
6. Algebraic Fuzzy Automata Theory
p2)((pl,p2), a, (r l , r 2 )) > 0 for some (r l , r2 ) E Q1 x Q2 . Suppose that a E X1 . Then ft, (PI,a,rl) = (ftl' P2)((pl,p2),a,(rl,r2)) > 0 . Thus p2 = r2 . Now plplgl and ft, (PI, a, rl) > 0 . Since p l is admissible, 3 t l E Q1 such that ftl(gl, a, tl) >_ ft, (pl, a, rl) and tlplrl . Hence (It, ' P2)((gl, q2), a, (tl, q2)) = ftl(gl,a,tl) >_ ft, (pl,a,rl) = (ftl'ft2)((pl,p2),a, (rl,p2)) . Also, since tj p, r, and g2p2p2, (tl,g2)pl ' p2(rl,p2) . Thus p l ' p2 is an admissible relation on Ml - M2 . We have thus proved the following theorem . Theorem 6 .13 .18 Let MZ = (QZ, XZ, p 2 ) be a ffsm, i = 1, 2, and let Xl rl X2 = 0 . Let Pi be an admissible relation on MZ, i = 1, 2 . Then pl 'P2 is an admissible relation on Ml - M2 . 6 .14
Admissible Partitions
In this section, we introduce the concept of a covering of a ffsm by another, admissible partitions and relations of a ffsm, ft-orthogonality of admissible partitions, irreducible ffsm, and the quotient of a ffsm induced by an admissible partition of the state set . We derive results concerning ft-orthogonality and covering, Theorems 6.14 .14 and 6 .14 .15 . We show that an admissible partition 7r of Q is maximal if and only if the quotient M17r is irreducible, Theorem 6 .14 .20 . The paper culminates with a result showing that a ffsm can be covered by irreducible ffsms, Theorem 6 .14 .21 . These results allow us to study fuzzy finite state machines via coverings of products of simpler machines . Irreducible finite state machines seem to arise naturally in some applications, e .g ., biology. An example is given in [92] of a finite state machine arising from a metabolic pathway. Recall from Definition 6 .6 .1 that (9, ~) is a covering of Ml by M2, written Ml <_ M2 , if and only if b' q2 E Q2, ql E Q1, and x E Xl, fri(97(g2), x, ql) > tt2(g2, ~ * (x), r2) d r2 E Q2 such that 9(r2) = ql and 3 r 2 E Q2 such that 9(r2 ) = ql and frl*(?7(q2), x, ql) = ft2 * (q2, ~ * (x), r2)Let Ml = (Q1, Xl, ftl) and M2 = (Q 2 , X2, ft2) be fuzzy finite state machines . Let w be a function of Q2 x X2 into X1 . Let Q = Q1 x Q2 . Define ft' :QXX2XQ----> [0,1] as follows : d((ql, q2), b, (PI, P2)) E Q x X2 x Q, ft' ((gl, q2), b, (PI, P2)) = ft, (gl,w(q2, b), PI) n P2 (q2, b,p2) . Then M = (Q, X2, ft') is a ffsm . M is called the cascade product of Ml and M2 and we write M = M1wM2 . Let M = (Q, X, ft) be a ffsm and let - be an equivalence relation on Q . Recall that ti is called an admissible relation on Q if and only if d p, q, r E Q, b'a E X, if p - q and ft (p, a, r) > 0, then 3 t E Q such that ft(q, a, t) > ft(p, a, r) and t - r .
© 2002 by Chapman & Hall/CRC
6.14. Admissible Partitions
297
Theorem 6.14 .1 [3] Let M = (Q, X, /t) be a ffsm and let - be an equiv-
alence relation on Q . Then - is an admissible relation on Q if and only if V p, q, r E Q, Vx EX*, if p - q and /t* (p, x, r) >0, then 3 t E Q such that * * ft (q, x, t) > ft (p, x, r) and t - r. m
Definition 6.14 .2 Let M = (Q, X, /t) be affsm and P = ~Q1, Q2, . . . , QkI
be a partition of Q . Then P is called an admissible partition of Q if the following holds: Let a E X, then Vi, 3j, 1 <_ i, j <_ k such that VPl, P2 E QZ, if ft(P,, a, r) > 0 for some r E Q, then 3 t E Q such that ft(P2, a, t) > ft(Pl, a, r) and t, r E Qj .
Proposition 6 .14 .3 Let M = (Q, X, ft) be a ffsm.
(1) Let 1Q = {{q} I q E Q} . Then 1Q is an admissible partition of Q . (2) {Q} is an admissible partition of Q . m
Theorem 6.14 .4 Let M = (Q, X, ft) be a ffsm and P = {Q1, Q2, . . . , Qk}
be a partition of Q . The following are equivalent: (1) P is an admissible partition of Q . (2) Let x E X* . Then Vi, 3j, 1 <_ i, j < k such that VP1,P2 E QZ, if y* (pl, x, r) > 0 for some r E Q, then 3 t E Q such that y* (P2, x, t) >_ y*(PI,x,r) and t, r E Qj .
Proof. (1)x(2) : Let x E X* and Ixj = n. Let pl, p2 E QZ and y * (pl, x, r) > 0 for some r E Q. If n = 0, then x = A and ft*(pl, x, r) > 0 implies that pl = r. Thus [t* (P2, x, P2) = 1 = ft*(pl, x, pl) . In this case i = j. Hence the result is true for n = 0. Suppose the result is true for all y E X* such that I y I = n -1, where n > 0. Let x = ya, where a E X. Now y* (p l , x, r) = * * ft (pl, ya, r) = V{ft* (pl, y, s) A ft (s, a, r) I s E Q} > 0. Since Q is finite, * there exists t E Q such that ft (PI , y, t) A ft * (t, a, r) = ft* (p l , ya, r) . Thus * * ft (pl, y, t) > 0 and y,(t, a, r) = ft (t, a, r) > 0 . By the induction hypothesis, there exists j and there exists s E Q such that ft * (P2, y, s) >_ y* (PI, y, t) and s, t E Qj . Now s, t E Qj and ft(t, a, r) > 0 . Hence by (1), there exists l and there exists q E Q such that y (s, a, q) >_ y(t, a, r) and r, q E Qi . Now /t* (P2, x, q) = ft* (P2, ya, q) >_ ft * (P2, y, s) n ft(s, a, q) > ft * (Pl, y, t) n ft (t, a, r) = y* (pl, ya, r) = y* (pl, x, r) and q, r E Ql . The result now follows by induction .
m
Corollary 6.14.5 Let M = (Q, X, ft) be a ffsm. Then every admissible partition P of Q induces an admissible relation - on Q such that the set of all equivalence classes of - is P. Conversely, the set of all equivalence classes of an admissible relation on Q is an admissible partition of Q. 0 Lemma 6.14 .6 Let M = (Q, X, ft) be a ffsm and
7r = {HZ i E 11 be an admissible partition of Q . Let i, j E I. Then Vq, q' E HZ, Va E X,
V{ft(q,a,r)
© 2002 by Chapman & Hall/CRC
I
r E Hj } = V{ft(q ,a,r)
I
r E Hj }.
29 8
6. Algebraic Fuzzy Automata Theory
Proof. Let q, q' E HZ , a E X, A = {ft(q, a, r) I r E Hj}, and B = ft(q, a, r) I r E Hj }. Suppose ft(q, a, r) > 0 for some r E Hj . Since 7r is an admissible partition, there exists r' E Q such that N(q', a, r') >_ ft(q, a, r) . Again by the admissibility of 7r, r' E Hj . Similarly if ft (q, a, p) > 0 for some p E Hj,then there exists p' E Hj such that ft(q,a,p') > N(q',a,p) . Also, by the admissibility of 7r, it follows that ft(q, a, r) = 0 b'r E Hj if and only if N(q', a, r) = 0 b'r E Hj . Hence V{ft(q,a,r) I r E Hj }=V{ft(q,a,r) I r E Hj } . Theorem 6.14 .7 Let M = (Q, X, /t) be a ffsm . Let it = an admissible partition of Q . Define
{HZ I i
E 11 be
y" : 7r X X x 7r ~ [0,1] by
ft' (Hi,a,Hj) = V{ft(q,a,r) I r E Hj I VHZ , Hj E 7r and a E X, where q E HZ . Then M17r = (7r, X, ft") is a ffsm, called the quotient fuzzy finite state machine with respect to 7r .
Proof. By Lemma 6 .14 .6, ft" is well defined . m Proposition 6 .14 .8 Let M = (Q, X, ft) be a ffsm. Let 7r = be an admissible partition of Q. Then for q E HZ ft'*
{HZ I i
E 11
(Hz, x, Hj) < V{ft * (q, x, r) I r E H;
VHZ , Hj E 7r and x E X* .
Proof. Let HZ, Hj E 7r and x E X*. Let Ixj = n . If n = 0, then x = A. If HZ = Hj then y"* (HZ , x, Hj ) = 1 and V{y* (q, x, r) I r E Hj } = V{ft*(q,x,r) I r E HZ} = y*(q,x,q) = 1, where q E HZ . If HZ Hj, then ft'* (Hi, x, Hj) = 0 and HZ n Hj = 0 . Since HZ n Hj = Ql and q E HZ, V{/t*(q,x,r) I r E Hj I =0. Hence ft'* (Hi,x,Hj) = V{/t*(q, x, r) I r E Hj } . Suppose that the result is true b'y E X* such that I yI = n - 1, n > 0. Let n>0andx=ya,whereyEX*,aEX,andjyl=n-1 .NowforgEHi © 2002 by Chapman & Hall/CRC
6.14. Admissible Partitions
299
ands E Hk, [t"*(HZ x H;)
= = = <
p,"*(HZ,ya,Hj) V{ft"* (HZ, y, Hk) A ft"* (Hk a Hj) I Hk E 7rf V{(V{ft*(q,y, r) I r E Hkf) A (V{ft*(s,a,p) pEHjf)IHkE7f V{V {ft* (q, y, r) n w* (s, a, p) I r E Hk , p E H; f I Hk E 7r f VfV{ft* (q, y, r) n ,a* (r, a, p) I r E Hk , p E H; f I Hk E 7r f Vf V{ft* (q, y, r) A tt* (r, a, p) I r E Hk, Hk E 7rf
IpEH;f V{V {ft* (q, y, r) A w* (r, a, p) I r E Qf I p E H; f V{ft* (q, ya, p) I p E H;f V{ft* (q, x, p) I p E H; f . m
Proposition 6.14.9 Let M = (Q, X, ft) be a ffsm . Let 7r = fH2 I i E If be an admissible partition of Q. Then for all x E X* ;), ft * (q, x, p) < ft"* (Hi , x, H where gEHZ,pEHj . Proof. Let q E HZ , p E Hj . Let x E X* and Ixj = n. If n = 0,
then x = A. If q = p, then HZ = Hj and p* (q, x, p) = 1 = ft" * (HZ, x, HZ) . Suppose q :?~ p. Then p* (q, x, p) = 0 <_ ft"* (Hi, x, Hj) . Suppose n = 1. Then x= aEXand
ft * (q, a, p)
= < = =
ft (q, a, p) V{ft(q,a,r) I r E H;f ft' (Hi, a, Hj) ft"* (HZ a Hj) .
Hence the result is true for n = 0 and n = 1. Suppose that the result is true b'y E X* such that Iyj = n - 1, n > 0. Let n > 0 and x = ya, where y E X*, a E X, and Iyj =n-1 . Then ft * (q, x, p)
= = = <_ = =
ft* (q, ya, p) V{[t* (q, y, r) A ft(r, a, p) I r E Q} VfV{/t* (q, y, r) A y,(r, a, p) I r E Hkf Hk E 7rf Vfv{ft"*(Hi, y,Hk) Aft"(Hk,a,H;) r E Hk f Hk E 7f (by induction and n = 1 case) V{ft"*(HZ,y,Hk) A ft"(Hk ,a,H;) I Hk E 7rf ft"* (HZ x Hj) .
The result now follows by induction . m
© 2002 by Chapman & Hall/CRC
30 0
6. Algebraic Fuzzy Automata Theory
{HZ I i E 11 be an admissible partition of Q . Then for all x E X*, for all HZ , Hj E 7r,
Corollary 6.14 .10 Let M = (Q, X, p) be a ffsm . Let 7r = (Hi ,x,Hj V{ft*(q,x,p) I p E Hj I < ft'* ), where q E
HZ . 0
Theorem 6.14 .11 Let M = (Q, X, p) be a ffsm. Let 7r = Hi I i E 11 be an admissible partition of Q . Then for q E Hi ft"*
(Hz, x, Hj) = V{ft* (q, x, r) I r E Hj
VHZ ,Hj E7randxEX* .m
Definition 6 .14 .12 Let M = (Q, X, /t) be a ffsm. Let 7r and T be admissible partitions of Q. 7r and T are called /t-orthogonal if (1) 7r n T = 1Q, and
(2) VHZ, H E 7r, VK3 , K, E T, b'a E X, if HZr1Kj = {qo} and H r1K, _ {po}, then ft (go,a,po) = V{ft(go,a,p) Aft(go,a,p) I p E H., p' E K, 1 .
Theorem 6 .14 .13 Let M = (Q, X, ft) be a ffsm. Let 7r and T be admissible partitions of Q . Then 7r and T are ft-orthogonal if and only if (1) 7r n T = 1Q, and (2) VHZ,H E 7r, VK3 ,K, E H rl K, = {po}, then
T,
V'x E X*, if
HZ
rl K. = {qo} and
ft * (go,x,po) =V{ft* (qo, x, p) nft*(go,x,p) I p E H., p' E K, }.
Proof. Suppose 7r and T are called ft-orthogonal. Then clearly (1) holds. (2) Let HZ, H. E 7r, Kj, K, E T, x E X*, HZr1Kj = {qo}, and H r1K, _ {po} . Suppose Ixj = n. If n = 0, then x = A. Now ft*(go ,x,p o ) = 0 if po . Then either qo 7~ po and /r* (qo, x, po) = 1 if qo = po . Suppose qo H and qo ~ K, HZ rl H. = Ql or K, rl K, = 0, say, HZ n H = 0 . Thus qo Hence V{/t*(go,x,p) oft* (go,x,p~) I P E H.,1~ E K, } = V{0A/t*(go,x,p') I p E H., p' E K, } = 0. Suppose qo = po . Then Hi = H and Kj = K, Thus V{/t*(go,x,p) n ft*(go,x,p~) I P E H.,p' E Kv } = ft * (go,x,po) n * ft * (qo, x, po) = 1 . Hence if n = 0, then ft (qo, x, po) = V{ft* (qo, x, p) A y*(go,x,p') I p E H.,p' E Kv}. Suppose that the result is true b'y E X* suchthat I y l=n-1,n>O.Letn>Oandx=ya,whereyEX*,aEX, © 2002 by Chapman & Hall/CRC
6.14. Admissible Partitions
301
and I y I = n - 1 . Then ft * (qo, x, po)
ft * (qo, ya, po) V {ft*(qo, y, r) n ft(r, a, po) I r E Q} = V{w*(qo, y, r) A (V{ft(r, a, p) A ft(r, a,p) I p E H~, p'EKv}) I rEQ} = V{(V(ft*(go,y,r) Aft(r,a,p))) A (V(ft*(go,y,r)A ft(r, a, p))) I p E H., p' E K, r E Q} = V {(V {ft* (qo, y, r) A w(r, a,p) I r E Q}) A (V{w*(go,y,r) Aft(r,a,p') I r E Q}) I p E H.,p' E Kv} V{ft* (go,ya,p) nft * (go,ya,p') p E H., p' E K, } = V{ft* (go,x,p) nft* (go,x,p') I p E H., p' E K, }. =
The result now follows by induction . The converse is trivial . Let M = (Q, X, ft) be a ffsm. Let 7r and T be admissible partitions of Q. Consider the ffsms M/7r = (7r, X, ft") and MIT = (T, X, ft') . Define It ^ : (7r x T) x X x (7r x T) ----> [0,1] by It A ((HZ, Kj), a, (H., K,)) = ft' (Hi, a, H.) n ft' (Kj, a, VHZ, H. E 7r, Kj , K, E T, and a E X. Then a fuzzy finite state machine. Note that VHZ ,H
E
7r,Kj ,K,
M17r n MIT = (7r x T, X,
(H., Kv)) =,t"*(Hz, X, H.)
It ^*((H,,Kj), X, E
T,
Kv)
[r^) is
Aft' * (Kj,x, Kv)
and x E X* .
Theorem 6.14 .14 Let M = (Q, X, ft) be a f'sm . Let 7r and T be admissible partitions of Q that are ft-orthogonal. Then M < M17r n MIT. Proof. Define 97 : 7r xT ----> Q by 97((HZ, Kj)) = qo, where Hi nKj = {qo} . Since 7r and T are ft-orthogonal, 97 is one-to-one. Let C be the identity map on X. Let HZ, H. E 7r, Kj , K, E T, and x E X* . Suppose HZ n Ki = {qo} and H n K, = {po } . Then w* (97 ((Hi, Kj)), x, 97((H., K,))) = w* (qo, x,po) .
Also, It ^ * ((HZ, K;), x,
(H.,
Kv))
n ft' (Kjx Kv) = (V{ft* (qo, x, p) p E H })n (V{ft* (qo, x, p) p' E K, }) V{ft * (go,x,p)nft * (go,x,p') I pEH., p' EKvj = ft*(go,x,po), =
ft"* (HZ a
where the last inequality holds since [t* (97((H,,
7r
and
T
H.)
are ft-orthogonal . Thus
Kj)), x, 97((H., K,))) = w^ * ((HZ,
© 2002 by Chapman & Hall/CRC
K;), x, (H., K,)) .
30 2
6. Algebraic Fuzzy Automata Theory
Now ItA*((H,,Kj),X, (H., K')) =V{Nn*((H,,Kj),x, (H" K')) 197((H"KS)) = r7((H., K,)), (H,, Ks) E 7rxTj since 97 is one-to-one. Hence /t*(97((Hi, Kj)), x, 97((H.,Kv))) = V{ft^*((Hi, Kj), X, (HT, Ks)) 197((H" Ks)) = 97((H., K,)), (H,, Ks) E 7r x T} . Consequently, M < M17r n MIT . 0
Theorem 6.14 .15 Let M = (Q, X, /t) be a ffsm . Let 7r be an admissible partition of Q. If there exists a partition T of Q such that 7r and T are ft-orthogonal, then there exists a ffsm N such that M < NwM17r . Proof. Let
7r = {Hj}jEI and T = {Kj}jEj be ft-orthogonal partitions Let N of Q. = (T, 7r x X, ft'), where
ft'(Kj, (Hi, a), Kv) = V{ft(go, a, p) I p E K, }, and {qo} = Hi n Kj . Since T is admissible, ft' is well defined. Define w : 7r x X 7r x X to be the identity map. Define 97 : T x 7r ----> Q by r7((Kj, Hi)) = qo, where {qo} = Hi n Kj . Then 97 is one-to-one and onto. Let C be the identity map on X. Then for {po} = H n K, l~(n7((K7 Hi)), a, n7((Kv, Hv)))
_ ft (qo, a, po) V{ft(go, a, p) n ft (go, a, p) (p' ,p) E Kv x Hv } (V{ft(go,a,p') I p' E K, })n (V{ft(go, a,p) I p E H.}) ft'(Kj, w(Hi, a), K,) n ft"(Hi, a, H.) pW((Kj, Hi), a, (Kv, H.)).
Thus 97 N'* (97((Kj, Hi)) , x, ((K,, H.))) = ft'* (( Kj , Hi) , x, (Kv, H.))
(6.3)
for x E X* such that IxI = 1. Suppose that (6.3) is true if IxI = n-1, n > 0, where x E X* . Now p,*(97((Kj,Hi)),xa,97((Kv,H.))) = V{(97((Kj, Hi)), x, 97 ((K, H))) A ft (97((K, H)), a, 97 ((K,, H.))) I 97 (K, H) E 97 (Tx7r)I (since 97
is onto) =V{ft-*((Kj, Hi), x, (K, H))Apw((K, H), a, (K, H.)) I (K, H) E (T x 7r)} = ttw*((Kj,Hj), xa, (Kv, H.)) . Now ,t*(?7((Kj, Hi)), A, 97((Kv, H.))) = 1 if and only if 97((Kj, Hi)) = r7((K, H.)) if and only if (Kj , Hi) _ (K, H ) (since 97 is one-to-one) if and only if f rW * ((Kj , Hi), A, (K, H")) _ 1. From this, it follows that (6 .3) holds for x = A. Hence (6 .3) holds b'x E X* . Thus by induction, (r7, C) is a covering of M by NwMl7r . m
Definition 6.14 .16 Let Q be a nonempty set and 7r and T be partitions of Q. Then 7r < T if VA E 7r, there exists B E T such that A C B. The proof of the following lemma is straightforward.
Lemma 6.14 .17 Let Q be a finite nonempty set. Let
7r = {Hi}Z i and T = {Kj},T=1 be partitions of Q such that 7r <_ T . Then Vj, 1 <_ j <_ m, Kj = Hjl U Hj2 U . . . U Hj,,,, for some Hj l , Hj . . . . . . Hj,, j E 7r and m <_ n . If m = n, then 7r = T . m
© 2002 by Chapman & Hall/CRC
6.14. Admissible Partitions
303
Definition 6.14 .18 Let M = (Q, X, /t) be a ffsm. Let 7r be an admissible partition of Q. Then 7r is called maximal if 7r is nontrivial and if T is any admissible partition of Q with 7r < T < {Q}, then either T = 7r or T = {Q} . Definition 6 .14 .19 Let M
= (Q, X, /r) be a ffsm. Then M is called irreducible if IQI > 1 and 1Q and {Q} are the only admissible partitions of Q.
Theorem 6.14 .20 Let
M = (Q, X, y) be a ffsm . Let 7r_ {HZ}Z 1 be an admissible partition of Q . Then 7r is maximal if and only if M17r is irreducible .
Proof. Suppose 7r is maximal . Now M/7r = (7r, X, ft") where ft" (HZ, a, Hj) = V{ft(q, a, r) I r E Hj }VHZ, Hj E 7r and a E X, where q E HZ. Since
is maximal, 7r {Q} . Thus I7rl > 1 . Let 7r be an admissible partition 7r . Suppose 7r 1" . Then there exists T C_ 7r such that T E 7r and ITI > 1 . Suppose that T z/4 7r . Without loss of generality, we may assume that T = {Hl, . , H, }, where 1 < m < n. Let 7r' = {Hl U . . . UH,, H,+1 U . . . U H }. Then 7r < 7r' and 7r' is a partition of Q . We now show that 7r' is admissible. It suffices to consider q, p E Hl U . . . U Hm with q E Hl and p E H2 . Suppose ft (p, a, r) > 0 where r E HZ . Then ft" (H2, a, HZ) = V{ft(p, a, r') I r' E HZ} > 0 . Since 7r is admissible, there exists K E 7r such that ft" (Hl, a, K) > ft" (H2, a, HZ) and K and HZ belong to the same element of 7r . Hence V{ft(q, a, t') I t' E K} >_ V{ft(p, a, r') I r' E HZ}. This implies that there exists t E K such that ft(q, a, t) >_ ft(p, a, r) > 0. Now HZ E T if and only if K E T since K and HZ belong to the same element of 7r . If K, HZ E T, then t, r E Hl U . . . U H, and if K, HZ ~ T, then t, r E Hm+1 U . . . U Hn , i.e ., t and r belong to the same element of 7r' . Hence 7r' is admissible. Since 7r is maximal, it follows that 7r' = {Q} and so T = {Q} . This implies that 7r = {7r} . Thus M17r is irreducible . Conversely, suppose that M17r is irreducible . Let T be an admissible partition of Q such that 7r <_ T <_ {Q} . Suppose that 7r :?~ T . By Lemma 6.14.17, there is no loss of generality in assuming that T = {Hl U . . . U Hm, Hm+1, . . . , Hn }, 1 < m < n. Since T :?~ 7r, 7r
of
T=. {{Hl, Hm }, {Hm+1}, . . . , {Hn }f 7~ 1" .
We now show that T is admissible. It suffices to consider Hl, H2 . Suppose y"(H j , a, HZ ) > 0 for some HZ E 7r . Then V{ft(q, a, r') I r' E HZ } > 0 where q E Hl . Let r E HZ be such that ft(q, a, r) = V{ft(q, a, r') I r' E HZ } > 0 . Since T is admissible, Vp E H2, there exists tp E Q such that ft(p, a, tp) >_ ft(q, a, r) and r, tp are in the same element of T Vp E H2 . Now if HZ ~ {Hl, . , Hm}, then r, tp E HZ Vp E H2 and ft" (H2, a, HZ) > ft (p, a, tP) > ft (q, a, r) = ft"(Hl, a, HZ) . Suppose HZ E {Hl, . . . , Hm} . Then r, tp E Hl U . . . U Hm for all p E H2 . Let ft (p, a, tp,) = V{ft(p, a, tp) I p E H2} . Since tp, E Hl U . . . U Hm , tp, E Hk for some k, 1 < k < m. © 2002 by Chapman & Hall/CRC
30 4
6. Algebraic Fuzzy Automata Theory
Hence /t" (H2 , a, Hk) = V{ft(q, a, r')~ r' E HkI > ft (p, a, tp,) > ft (q, a, r) = ft" (H1, a, HZ ) and Hk, HZ E {H1, . . . , H, } . Consequently T is an admissible partition of 7r . Since M17r is irreducible, T = {7r} and so T = {Q}. Hence 7r is maximal . m Theorem 6 .14 .21 Let M = (Q, X, p) be a ffsm and IQ I = n > 2 . Then M < N1w1N2w2 . . .w ._1N., where N1 , N2 , . . . , N, are irreducible ffsms and the state sets Qj of Ni are such that I Qj I < n.
Proof. Since Qj >_ 2, we can choose a maximal admissible partition 7r of Q. Clearly I7rI < IQI . By Theorem 6.14.15, there exists a ffsm N such that M <_ NwMl7r for some suitable w . Since 7r is maximal, M17r is irreducible . Also 7r is the state set of M17r and I7rI < I QI . If R is the state set of N, then IRI < Qj by the construction of N. We can now apply Theorem 6.14.15 to N, to obtain N <_ NV N17' such that N17r' is irreducible and the number of states in N' is less than the number of states in N. Thus, we have M < N'wN/7r wM/7r .
Continue this process and apply Theorem 6 .14.15 to N'. Since Qj is finite, this process must stop after a finite number of steps . Hence M <_ N1w1N2w2 . . . W.-IN., where N1, N2 , . . . , N, are irreducible ffsms and the state sets Qj of Ni are such that I Qj I < n.
6 .15
Coverings of Products of Fuzzy Finite State Machines
We are now interested in the notion of a covering that is more in line with the crisp notion. The next three sections are based on [119] . We present several ways of constructing products of fuzzy finite state machines and their relationship through isomorphisms and coverings . We prove that the wreath product of two fuzzy finite state machines covers their cascade product . Similar relationships hold for the direct sum and sum of two fuzzy finite state machines . A distributive property of the cascade product over the sum of fuzzy finite state machines in relation to coverings of fuzzy finite state machines is established . Let M1 = (Q1, X1, fq) and M2 = (Q 2 , X2 , /r 2 ) be fuzzy finite state machines . Let cx : Q1 ~ Q2 and,3 : X1 ~ X2 be functions . The homomorphism (a,,3) : M1 ~ M2 (Definition 6.3 .1) is called a monomorphism (epimorphism, isomorphism), if both the functions a,,3 are injective (surjective, bijective, respectively) . If (a,,3) is an isomorphism, we write M1 -- M2 . © 2002 by Chapman & Hall/CRC
6.15. Coverings of Products of Fuzzy Finite State Machines
305
Definition 6.15 .1 Let Ml = (Q1, X1, fq) and M2 = (Q 2 , X2, ft2) be fuzzy finite state machines . Let 97 : Q2 ~ Ql be a surjective partial function and ~ : Xl ~ X2 be a function. Then the pair (rl, ~) is called a strong covering of Ml by M2 , written Ml ~ M2, if ( 97(p~), x, 97(q~)) < ft' (1~, ~+ (x), q~) for all x E Xl and p', q' belong to the domain of 77, where + : Xl X2 is defined by ~ + (xlx2 . . . xn) = ~( xl)~(x2) . . . S(xn) for x l, X2 . . . . , x n E X1-
Clearly, the strong covering relation is reflexive and transitive, but not symmetric. Definition 6.15 .2 Let M = (Q, X, ft) be a fuzzy finite state machine. A fuzzy finite state machine MS = (Q s , Xs, fps) is called a subfuzzy finite state machine of M, written MS C_ M, if (1) QS C Q, XS C X, and (2) fts =ftJQ .Xx.XN.. We point out that a subfuzzy finite state machine of M and a submachine of M (Definition 6.7.7) differ in that for the latter, the set of input symbols remains X. Identifying X with the diagonal elements of X x X, the restricted direct product of M and M' may be considered as the subfuzzy finite state machine of the direct product of M and M' . The restricted direct product of M and M' is a special case of their cascade product, where X = X' and w : Q' x X ~ X is a projection mapping . We now introduce two more ways of connecting fuzzy finite state machines . Definition 6.15 .3 Let M = (Q, X, ft) and M' = (Q', X', ft') be fuzzy finite
state machines such that Q n Q' = 01 and X n X' = 0. Then the fuzzy finite state machine M() M' _ (Q U Q', X U X', ft () ft') is called the direct sum of M and M', where ft ft' : (Q U Q') x ( X U X') x (Q U Q') ~ [0,1] is defined as follows:
(ft () f') (p, x, q) =
ft(p, x, q) N'' (p, x, q) 1 0
if p, q E Q and x E X if p, q E Q' and x E X' if either (p, x) E Q x X and q E Q' or (p, x)EQ'xX'andgEQ otherwise.
Definition 6.15 .4 Let M = (Q, X, ft) and M' = (Q', X', ft') be fuzzy finite
state machines such that Q n Q' = 01 and X n X' = 0. Then the fuzzy finite state machine M + M' = (Q U Q', X U X', ft + ft') is called the sum of M © 2002 by Chapman & Hall/CRC
30 6
6. Algebraic Fuzzy Automata Theory
and M', where p + /t' : (Q U Q') x ( X U X') x (Q U Q') ----> [0,1] is defined as follows: (/t + /t') (p, x,
6 .16
q) _
ft(p, x, q) /t' (p, x, q) 0
if p, q E Q and x E X if p, q E Q' and x E X' otherwise.
Associative Properties of Products
The direct and restricted direct products of fuzzy finite state machines are associative. As proved in the following theorem, the wreath product, sum, and cascade products of fuzzy finite state machines are also associative . However, it can easily be shown that the direct sum of fuzzy finite state machines is not associative . Theorem 6.16 .1 Let M, M', and M" be fuzzy finite state machines. Then
the following properties hold: (1) (M0M')0M"- M0(M'0M") (2) (M+M~)+M"-M+(M' +M") and (Mw1M')w2M" - Mw3(M'w4M"), where (3) W3 and W4 are defined naturally in terms of wl and w2 .
Proof. Let M = (Q, X, /t,), M' = (Q', X', /t,'), and M" = (Q", X", W") . (1) Then (MoM')oM"= ((QxQ') xQ",(XQ,
and M o (M' o M") = (Q x (Q' x
xX,)Q"
x X", (it oit')oN," )
X,Q11 Qii), (XQ x Q11) It//)) . x x X", /t o (N,' o I
Let cx : (Q x Q') x Q" - Q x (Q' x Q") be the natural map . Let pl XQ , x X' , XQ' and p2 : XQ' x X' -, X' be the natural projection mappings . Given XQ ' x X', let fi = pl o f and f2 = P2 o f . _ a function f : Q" ~_ Q" Q' x Define : X by ft fi ((q',q")) = fi(q")(q') . Define 3 : (XQ' x X,)Q x X , XQ , XQ x (X,Q x X by x")) = (TI, x 1 l)) . Now )
l3((f,
(f2,
13((fIx")) =,3((9,y")) _(T (f2, x")) = (9i, (92, y")) ft = 9i, f2 = 92, and x" = y" .
Thus fi (q") (q') = gl (q") (q'), f2 = g2, and x" = y" . This implies that fi = 91, f2 = 92, and x" = y", which implies that pl o f = PI 0 9, P2 o f = P2 0 9, and x" = y" . Therefore, f = g and x" = y" and so (f, x) = (g, y) . Thus /3 is injective.
© 2002 by Chapman & Hall/CRC
6.16. Associative Properties of Products
307
XQ"Q" Let (g, (h, x")) E x (X'Q" x X") . Define f : Q" ----> XQ' )) X' by f (q") = (gq , h(q")), where gq (q') = g(q', q") . Then,3((f, x (g, (h, x")) . Thus 3 is surjective.
x
It follows that (a,,3) is a required isomorphism. (2) Let cx and,3 be identity mappings on Q U Q' U Q" and X U X' U X", respectively. (3) Consider
and
wwIft
/
Mw 1 M' =
(Q x Q', X',
pwIft'),
where w 1
((p,p ), x', (q, q)) = ft (p, w1 (p, x), q) n ft (p, x', q)
and (Mw1M')w2M" X" ----> X' and
=
((Q x Q') x Q", X",
(ftWIft')w2ft"(((P,P'),P"),x ,((q,q'),q"))
(ftw1ft')w2ft"),
= =
It follows immediately that
M'w4M" =
=
w1 (P'
(Q' x Q", X",
w2 (P" x"))
It 'w4ft")
and
q1) A ft // (P // , X // , q11) .
(Q x (Q' x Q"), X", gw3(g,'w4g,")) and
Ntw3(ft'w4ft")((P,(p',p")),x",(q,(q',q")))
© 2002 by Chapman & Hall/CRC
w2
ft(P,w1(P',w2(P",x")),q) Aft' (P', w2 (P", x"), q) Aft// (P'/x//q11) .
It'w4N-"((p',p"),xii (q', q " )) =ft'(PI,w4(P",x"),
Mw3(M'w4M") =
where
ftWIft'((P,P'),w2(P",x"), (P " , x " , q") (q, q')) n N'"
Define w3 : (Q' x Q") x X" - X by w3((P',P"),x11) and set w4 = w2 .
Moreover,
'xX'----> X
=
ft(P,w3((P',P"),x ),q)A (ft'w4ft"((p', p"), x~~ (q', q"))) ft (P, w3((P',P"), x"), q) A (It'(P', w4(P", x"), q') Aft// (pii x// q11)) .
30 8
6. Algebraic Fuzzy Automata Theory
Let cx : (Q x Q') x Q" - Q x (Q' x Q") be the natural mapping and 3 be the identity mapping on X" . Then (f~wif~')w2f~")(((p,p'),p"),~ ,((q,q'),q"))
Thus (Mw1M')w2M" - Mw3(M'w4M") . 6 .17
=
ft(p,wi(p',w2(p",x")), q) Aft/(p',w2(p",x q') A ft"(p", X", q") ft (p, wi (p~, w2 (p", X // )), q) n (W (p, w2 (p", X q1) n ftii(pii, xii, q11)) ft (p, w3((p~,p"), x"), q) n(ft /(p/ , w4(p// , x// ), q1) Aft// (p ii X // q11) ftw3(ft'w4ft")((p, (p~, er p )), x", (q, (q~, q"))) ftw3 (ft'w4ft") (gy(((p, p') , per)),,3(x"), o(((q, q~),
0
Covering Properties of Products
The following theorem is a direct consequence of the definition of the direct sum and sum of two fuzzy finite state machines . Theorem 6.17 .1 Let M and M' be fuzzy finite state machines. following properties hold: (1)M~M+M', (2)M'~M+M', (3)M~M+M', (4)M'~M+M' .
Then the
Proof. We only prove (1) . Let 97 : Q U Q' ~ Q be a partial surjective function defined by n(q) = q for all q E Q and let ~ : X ~ X U X' be the inclusion function . Clearly, (r7, ~) is a required strong covering of M by M+M' .
Theorem 6.17 .2 Let M = (Q, X, ft) and M' = (Q', X', ft') be fuzzy finite state machines. Then the following properties hold: (1) MWM' ~ M o M', (2) M+M' ~ M+M' .
Proof. (1) Let w x, : Q' ~ X be the function defined by wx, (p') = w(p', x') for all p' E Q' and x' E X' . Define ~ : X' ~ XQ' x X' by ~(x') = (wx,, x') and let 97 be the identity map on Q x Q'. © 2002 by Chapman & Hall/CRC
6.17. Covering Properties of Products
309
(2) Let 97 and ~ be the identity mappings on Q U Q' and X U X', respectively. If p, q E Q and x E X, then (/t+ft~)(97(p), x, 97(q)) _ (ft (@ft~)(p, (x), q) = ft (p, x, q) . If p, q E Q' and x E X', then (/t+/t') (97(p), x, 97(q)) _ (ftoft') (p, (x), q) = ft'(p, x, q) . If (p, x) E Q x X and q E Q' or (p, x) E Q' x X' and q E Q, then (ft + ft') (97(p), x, 97(q)) = 0 < 1 = (ft () ft') (p, ~(x), q) . In all other cases, the values of ft + ft' and ft ft' are 0. Theorem 6.17 .3 Let M = (Q, X, p), M' = (Q', X', p'), and M" = (Q", X", ft") be fuzzy finite state machines such that M ~_ M'. Then the following assertions hold: (1)MXM"~M'XM" ; (2)M"xM~M"xM' ; (3) Given wl : Q" x X" ~ X, there exists co t : Q" x X" ~ X' such that Mw1M" _< M'w2M" ; (4) If (97, ) is a covering of M by M' and is surjective, then for all X", there exists co t : Q' x X' ~ X" such that M"w1M wl : Q x ;X M W2M (5) M0M"~M'0M" ; (6) M + M11 MI + Mii ; (7) M// +M M"+M' ; (8) M+M" M'+M"; (9) M" + M M" o M/ . Moreover, if X = X' = X", then (10) M AM" M' AM"; (11) M" A M ~ M" A MI . Proof. Since M --< _ M', there exists a partial surjective function 97 Q' ----> Q and a function ~ : X ----> X' such that ft+(?7(p), x, r7(p')) <_ y,'+(p,~(x),p'), where x E X+ . (1) Define 97' : Q' x Q" ----> Q x Q" by 97i (p~,p") = (97(p~),p") and ' X x X' ----> X' x X" by ~'(x, x") _ ( (x), x") . Clearly (97', ') is the required covering . (2) The proof is similar to that of (1) . (3) Given wl : Q" x X" X, set W2 = o wl and let ' be the identity map on X". (4) Given w l : Q x X X", let cot : Q' x X' ----> X" be such that Since ~ is surjective and X is finite, such W2 w2(p',~(x)) = wi(?7(p'),x) . exists . Clearly, W2 is not unique . Define 97' : Q" x Q' - Q" x Q by ?Ap",p~) = (p", 97(p)) and set ~' = ~ . 97' : Q' x Q" ~ Q x Q" by 97i (p~,p") = (97(p~),p") and ' XQ~~(5)x Define X ----> (XI)Q" x X 11 by ~/(f, x") = (~ o f I x") .
© 2002 by Chapman & Hall/CRC
310
6. Algebraic Fuzzy Automata Theory (6) Recall that M + M" = (Q U Q", X U X", ft + ft"), where
(ft + ft") (p, x, q) =
ft(p, x, q) ft" (p, x, q) 0
if p, q E Q and x E X Q" and x E X" if p, q E
otherwise
and M' + M" = (Q' U Q", X' U X", p' + p"), where (ft' + ft ") (p, x, q) _
ff' (p, x, q) /t" (p, x, q) 0
if p, q E Q' and x E X' if p, q E Q" and x E X"
otherwise.
Define 9' :Q'UQ"----> QUQ"by i7/ (p~)
if p'EQ'
otherwise
and ~' :XUX"~X'UX"by (x) -
(x)
x
otherwise .
Since 9 is a partial surjective function, so is 9' . we now note that (,~+w")+(~'(p'), x, ~'(q')) <_ (w'+,t )+(p~, (~')+(x), q') . If p', q' E Q' and x E X or p', q' E Q" and x E X", then clearly (ft + ft") +(n'(p), x, 97(q)) <_ (ft' + ft") +(p , (C')+(x), q) . In all other cases, (ft + ft") +(i7'(p'), x, 9'(q')) = 0 . The proofs of (7), (8), and (9) are now obvious. (10) Define 97' : Q' X Q" - Q X Q" by 97'(P/' p") = (97(p'), p") and set ' = ~ the identity map on X. Then (9', ~') is the required strong covering . (11) Follows easily. It follows that M" o M', in general, does not strongly cover M" o M, even though M --< M' . Hence we introduce a weaker notion of covering . Definition 6.17 .4 Let M = (Q, X, ft) and M' = (Q', X', ft') be fuzzy finite
state machines . Let 9 : Q ~ Q' be a partial surjective function and ~ : X ~ X' be a partial function. The ordered pair (9, ~) is called a weak coveving of M by M', urritten M --<w M, if
ft(97(p), x, 97(q)) << ft (p, ~(x), q) for all p', q' in the domain of 9 and x in the domain of ~.
A weak covering differs from a strong covering only in that ~ in Definition 6.17.4 is a partial function, while ~ in Definition 6.15.1 is a function. Thus every strong covering is a weak covering . © 2002 by Chapman & Hall/CRC
6.17. Covering Properties of Products
311
Theorem 6.17 .5 Let M, M', and M" be fuzzy finite state machines and MOM" . Then M"oM~,M"0 M' . Proof. Since M --< _ M', there exists a partial surjective function 97
Q' ----> Q and a function ~ : X ----> X' such that /t+(?7(p'), x, ?7(q')) <_ It '+ (p', ~+ (x), q') . We have M" o M = (Q" X Q, (X")Q X X, /t" o N-) and M//OM' = (Q" X Q', (X")Q' X X', /t" o N') . Define 97' : Q" X Q' ----> Qii X pi) = (p" ,97(p)) and ' : (X")Q X X ----> (X")Q' X X' Q by 97'(p"
by ~'(f, x) = (f o 97, ~(x)) . Clearly, 97' is a partial surjective function and ~' is a partial function. Now (ft" 0 tt)(97(p",p'), (f, x), r7'(q", q')) = (ft" o ft)((p", 9J(p')), (f, x), (q",?J(q'))) = ft"(p", f (9J(p')), q") n ft(9J(p'), x, 9J(q')) . However, since [t+ (97(p), x, r7(q')) < ft'+(p', ~+(x), q'), it follows that (w" o ft)+(97(p",
p'), (f, x), 97'(q", q'))
<_
(w")+(p", f (?7(p')), q")n ft/+ (1 ~, ~+ (x), q~) ii 0 ii, (ft Iti)+0 pi), (f o 97, ~+ (x)), (q", q~)) ii 0 (ft It') +o", pi), ~I+ (f, x), W1 ,gl ))
The following theorems are easy consequences of the transitive property of strong coverings of fuzzy finite state machines and Theorem 6.17.3. Theorem 6.17 .6 Let M, M', and M" be fuzzy finite state machines and M ~_ M" . Then (1)MAM"~M'AM", (2) M" n M M" n M', (3) MWM" M' o M", M" o M', (4+) M"WM (5) M + M" M' o M", (6) M11 +M M"+M' . We next prove a distributive property for strong coverings . Theorem 6.17 .7 Let M, M', and M" be fuzzy finite state machines and M ~ M" . Then MO (M/ +M//) ~ Mom'+Mom". Proof. Let M = (Q, X, /t,), M' = (Q', X', W), and M" _ (Q", X", /t,"). Define 97 : (QXQ')U(QXQ")-QX(Q'UQ") by 97 (p, p~) _ (p, p~) and XQ' UQ" X (X' U X") ----> (XQ' X X') U © 2002 by Chapman & Hall/CRC
(XQ"
X X")
31 2
6. Algebraic Fuzzy Automata Theory
by (91 Q" X,) (91 Q" , X,)
(9~ X') _
if X' E X' if x' E X" .
In the case of finite state machines, different types of products and their coverings play a crucial role in their decomposition. We have established fuzzy analogs of different products and their coverings . Therefore, these results may be useful in the decomposition of fuzzy finite state machines .
6 .18
Fuzzy Semiautomaton over Group
a Finite
In the remainder of the chapter, we assume that the reader is familiar with the basic results of group theory. The group semiautomaton has been studied extensively in [90] and [60] . We now consider fuzzy semiautomata over a finite group, [41]. A group semiautomaton is a quadruple (Q, *, X, S) such that (Q, *) is a finite group, where Q is called the set of states, X is a finite set, called the set of inputs, and S is a function from Q x X into Q. We present the notion of a fuzzy semiautomaton over a finite group. The fuzzy kernel and fuzzy subsemiautomaton of a fuzzy semiautomaton over a finite group are defined using the notions of a fuzzy normal subgroup and a fuzzy subgroup [184] of a group. We let (G, *) denote a group. We sometimes write G for (G, *) when the operation * is understood. Definition 6.18 .1 A fuzzy subset A of G is called a fuzzy subgroup of G
if the following properties hold: (1) A(x * y) > A(x) A A(y), (2) A(x) = A(x_1) for all x, y E G.
Definition 6.18 .2 A subgroup of G if
fuzzy
subgroup A of G is called a fuzzy normal
A(x * y * x-1 ) > A(y) for all x, y E G.
Definition 6.18 .3 Let A and /t be fuzzy subsets of G. The product of A and /t is defined by
(A * ,t) (x) = v{a(y) for all x E G.
© 2002 by Chapman & Hall/CRC
n ,t(z) I y, z E
G such that x = y * z}
6.18. Fuzzy Semiautomaton over a Finite Group
313
Definition 6.18 .4 Let A and ft be fuzzy subgroups of G such that A C_ ft . Then A is called a fuzzy normal subgroup of ft if A(x * y * x-1 ) > A(y) n ft(x) for all x, y E G.
Let A and ft be fuzzy subgroups of G such that A is a fuzzy normal subgroup of ft . Then Supp(A) is a normal subgroup of the group Supp(p). Define the fuzzy subset ft/A of the quotient group Supp(y)/Supp(A) by b' cosets gSupp(A) E Supp(y,)/Supp(A), ft/A(q Supp(A)) = V{ft(p) I p E q Supp(A)} . Then ft/A is a fuzzy subgroup of Supp(tt)/ Supp(A) . Definition 6.18 .5 Let A and ft be fuzzy subsets of the groups G and H,
respectively . Let f : G ~ H be a group homomorphism . The fuzzy subsets f(A) of H and f-1 (ft) of G are defined as follows: f (A) (h)
-
V {A(g) I g E G such that f(g) = h} 0
if f-1 (H)
Ql
if f-1 (H) _ 0,
for all h E H, and f ` (it) (g) = it (f W) for all g E G .
Definition 6.18 .6 Let A and ft be fuzzy subgroups of the groups G and H,
respectively . A function f : G ~ H is called a weak homomorphism from A into ft if the following conditions hold: (1) f is an epimorphism, (2) f(A) C ft . If f is an isomorphism from G onto H, then f is called a weak isomorphism from A into ft .
Definition 6.18 .7 A fuzzy semiautomaton (fsa) over a finite group
(Q, *) is a triple (Q, X, ft), where X is a finite set and ft is a fuzzy subset of QXX XQ.
Let ft* be the extension of ft to Q x X* x Q as defined in Definition 6.2.1 . Definition 6.18 .8 Let S = (Q, X, ft) and T = (Q 1 , X1, ft1) be fsa's over a finite group. A pair of functions (f, g), where f : Q ~ Q1, g : X ~ X1, is called a homomorphism from S into T, written (f, g) : S ----> T if the following conditions hold: (1) f is a group homomorphism, (2) ft (p, x, q) <_ ft, (f (p), g (x), f (q)) for all p, q E Q, x E X. © 2002 by Chapman & Hall/CRC
31 4
6. Algebraic Fuzzy Automata Theory
The pair (f , g) is called a strong homomorphism from S into T if it satisfies (1) of Definition 6.18.8 and the added condition, ft1(f (p), g(x), f (q)) = V{ft(p, x, r) I r E Q, f (r) = f (q)}
for all p,gEQ,xEX. In Definition 6.18.8, if X = X1 and g is the identity map of X, then we write f : S ~ T and say that f is a homomorphism or strong homomorphism from S into T.
Let S = (Q, X, ft) be a fsa over a finite group in the remainder of the chapter .
Definition 6.18 .9 A fuzzy subset A of Q is called a fuzzy kennel of S if the following conditions hold :
(1) A is a fuzzy normal subgroup of Q, (2) A(p * r -1 ) > ft(q *_ k, x, p) n ft(q, x, r) n A(k) for all p, q, k, r E xEX.
Definition 6.18 .10 A fuzzy subset A of Q is called a fuzzy subsemiautomaton of S if the following conditions hold: (1) A is a fuzzy subgroup of Q, (2) A(p) >- ft(q, x,p) A A(q) for all p, q E Q, x E X.
Theorem 6.18 .11 A fuzzy normal subgroup A of Q is a fuzzy kernel of S if and only if
A(p * r-1 ) > ft * (q * k, x, p) n ft * (q, x, r) n A(k) for allp,q,k,rEQ,xEX* .
Proof. Let A be a fuzzy kernel of S. We prove the theorem by induction . Then x =A. Let p, q, k, r E Q. If p = q * k, r =q, on Ixl =n . Let n=0 then ft*(q*k, x, p) Aft* (q, x, r) AA(k) = A(k) <_ A(q*k*q-1 ) since A is a fuzzy normal subgroup. Ifp :?~ q*k or r :?~ q, then g* (q*k, x, p) ntt* (q, x, r) AA(k) = 0 <_ A(p * r-1 ) . Thus the result holds for n = 0. Suppose that the result holds for all y E X*, where jy j = n - 1, n > 0. Let x E X* be such that © 2002 by Chapman & Hall/CRC
6.18. Fuzzy Semiautomaton over a Finite Group
315
x=ya,yEX*,aEX, lyl=n-l,n>O.Then w* (q * k, x, p) A w* (q, x, r) A A(k)
_
(V {w* (q * k, y, u) A w(u, a, p) l u E Q}) n (V {ft * (q, y, v)n
ft(v, a, r) l v E Q}}) n A(k) V{V{,t* (q * k, y, u) n ft(u, a, p)n * ft (q, y, v) n ft(v, a, r) n A(k) <_ <_
<
IUEQ} I VEQ} V{V{a(u * v -1 ) A y,(u, a, p) nft(v, a, r) l u E Q} l v E Q} V{V{a(v -1 * u) A y(v * v -1 * u, a, p) A y,(v, a, r) l u E Q} l v E Q} (since A is a normal fuzzy subgroup) A(p * r-1) .
Hence the desired condition holds. The converse follows easily. Theorem 6.18 .12 A fuzzy subgroup of S if and only if
A of Q is a fuzzy subsemiautomaton
A (p) > ft * (q, x, p) n A (q)
for all p,gEQ,xEX* .
Proof. The proof is similar to that of Theorem 6.18.11 . Theorem 6.18 .13 Let T = (Q 1 , X, [t1) be an fsa over a finite group and let f be a homomorphism from S into T. If A is a fuzzy subsemiautomaton (fuzzy kernel of T, then f -1 (A) is a fuzzy subsemiautomaton (fuzzy kernel of S.
Proof. The proof follows easily. Theorem 6.18 .14 Let T = (Q1, X, [t1) be an fsa over a finite group and let f be a strong homomorphism from S onto T. If A is a fuzzy subsemiautomaton (fuzzy kernel of S, then f (A) is a fuzzy subsemiautomaton (fuzzy kernel of T.
Proof. Let A be a fuzzy kernel of S. Then A is a fuzzy normal subgroup of Q. Since f is an epimorphism from Q onto Q1, f (A) is a fuzzy normal subgroup of Q1 . Let p1, q1, r1, k1 E Q1, x E X. Then ft1(g1 * k1,x,p1) nft1(g1,x,r1) n f(A)(k1)
© 2002 by Chapman & Hall/CRC
=
ft, (q, * k1, x,p1)A
ft1(g1,x,r1) n (V{A(k) l k E Q, f (k) = k1}) V{ft1(g1 * k1,x,p1)A ft1(g1,x,r1) n A(k) l k E Q, f (k) = k1} .
316
6. Algebraic Fuzzy Automata Theory
Now let p, q, r, k E Q be such that f (p) = pl, f (q) = q1, f (r) = r 1 , and f (k) = k 1 . Then fti(q1*k1,x,p1)nft1(g1,x,r1)nA(k)
= =
<
ft, (f(q*k),x,f(p))A fti (f (q), x, f (r)) n A (k) (V {ft (q * k, x, a) I a E Q, f (a) = f (p)}) n (V {ft(q, x, b) j b E Q, f (b) = f (r)}) A A(k) V {V {ft (q * k, x, a) n ft (q, x, b) A A(k) I a E Q, f (a) = f (p)} bEQ,f(b)=f(r)} V{V{a(a * b -1 ) I a E Q, f (a) =f(p)} I bEQ,f(b)=f(r)} f (A) (p1 * r1 1 ) .
Hence f (A) (p1 * ri 1 )
>_ =
V{ft1(g1 * k1,x,p1) n ft1(g1,x,r1) n A(k) I k E Q, f (k) = ki} fti(q1*k1,x,p1)nft1(g1,x,r1)nf(A)(k1) .
Thus f (A) is a fuzzy kernel of T. As in Theorem 6 .18 .14, it can be shown that f (A) is a fuzzy subsemiautomaton of T if A is a fuzzy subsemiautomaton of S. For the remainder of the chapter, unless otherwise stated, S = (Q, X, ft) denotes an fsa over a finite group Q for which the following condition is satisfied : ft (p * q, x, r) < ft (p, x, k) n ft (q, x, k) for all p, q, r,kEQ,xEX . Also, e will denote the identity element of the group (Q, *) . Theorem 6 .18 .15 Let A be a fuzzy kernel of S. Then A is a fuzzy subsemiautomaton of S if and only if A (p) > ft (e, x, p) n A (e) for all pEQ,xEX . Proof. Suppose that the given condition is satisfied . p,q,rEQ,xEX, A(p)
= >
=
Then for all
A(p * r -1 * r) A(p * r -1 ) A A(r) ft(q, x,p) n ft(e, x, r) n A(q) n A(r) ft(q, x,p) n ft(e, x, r) n A(e) A A(q) (by the given condition) ft(q, x,p) n A (q) (since A (e) > A (q) and ft (e, x, r) > ft (e * q, x, p)) .
Thus A is a fuzzy subsemiautomaton of S. The converse is immediate .
© 2002 by Chapman & Hall/CRC
m
6.18. Fuzzy Semiautomaton over a Finite Group
317
Corollary 6.18 .16 If A is a fuzzy kernel and v is a fuzzy subsemiautoma-
ton of S such that v C_ A and A(e) = v(e), then A is a fuzzy subsemiautomaton of S. m
Theorem 6.18 .17 Let A be a fuzzy kernel and v be a fuzzy subsemiautomaton of S. Then A * v is a fuzzy subsemiautomaton of S.
Proof. Since A is a fuzzy normal subgroup and v is a fuzzy subgroup of Q, it follows that A * v is a fuzzy subgroup of Q and A * v = v * A. Now
(A
v) (p)
> =
A(p * r -1 ) A v(r) (ft(a * b, x, p) n ft(a, x, r) n A(b)) A (ft (a, x, r) A v (a)) ft(a * b, x, p) A A(b) A v(a) (since y (a * b, x, p) < y (a, x, r) )
for all a, b, p E Q, x E X. Thus for all p, q E Q, x E X, V~ft(a*b,x,p)AA(b)Av(a) I a,bEQ, a*b=q} ft(q, x, p) A (V{A(b) A v(a) I a, b E Q, a * b = q}) ft (q, x, p) n (v * A) (q) ft (q, x, p) n (A * v) (q) .
Hence A * v is a fuzzy subsemiautomaton of S. Theorem 6.18 .18 If A and v are fuzzy kernels of S, then A * v is a fuzzy kernel of S.
Proof. Since A and v are fuzzy normal subgroups of Q, it follows that A * v is a fuzzy normal subgroup of Q and A * v = v * A . Now (A * v)(p * r-1 )
> > =
A(p * q-1 ) A v(q * r-1) (y(a * b * c, x, p) n ft(a * b, x, q) n A(c))n (ft (a * b, x, p) A y, (a, x, r) A v (b)) ft(a * b * c, x, p) A y(a, x, r) A A(c) A v(b) (since ft (a * b * c, x, p) < ft (a * b, x, p))
for all a, b, c, p, r E Q, x E X. Thus for all p, q, r, k E Q, x E X, (A * v)(p * r-1 )
>_
_
V{ft(q * b * C, x,P) A ft(q, x, r) A A(c) n v(b) I b,cEQ, b*c=k} (ft(q * k, x, P) n ft (q, x, r)) A (V{A(c) n v(b) I b, c E Q, b * c = k}) ft(q * k, x, P) n ft(q, x, r) n (A * v) (k) .
Thus A * v is a fuzzy kernel of S. Let A be a fuzzy kernel of S. Let C(A) = {v I v is a fuzzy kernel of S . such that A(e) = v(e)f © 2002 by Chapman & Hall/CRC
318
6. Algebraic Fuzzy Automata Theory
Theorem 6.18 .19 (C(A), C) is a lattice. Proof. Let v, S E C(A) . Then v n S E C(A) and so v n S is the glb of v and S for the inclusion relation " C_ ." By Theorem 6.18.18, v * S E C(A), and so v * S is the lub of v and S for the inclusion relation " C_ ." Thus (C(A), C) is a lattice . Definition 6.18 .20 Let A be a fuzzy subsemiautomaton of S. A fuzzy sub-
set v of Q is called a fuzzy kennel of A if (1) v C_ A and v is a fuzzy normal subgroup of A and (2) v(p r-1 ) > ft(q * k, x, p) A ft(q, x, r) A v(k) for all p, r, k E Q, q E Supp(A), x E X.
Theorem 6.18 .21 Let A be a fuzzy subsemiautomaton of S and let v be a fuzzy kernel of S such that A(e) = v(e) . Then A * v is a fuzzy subsemiautomaton of S, v is a fuzzy kernel of A * v, and A n v is a fuzzy kernel of A . Moreover, the weak isomorphism from A/A n v into A * v1 v gives an into homomorphism from the fsa over a finite group (G, X, fq) into the fsa over a finite group (H, X, ft2), where G = Supp(A/An v) and H = Supp(A*vlv) . Proof. By Theorem 6.18.17, A * v is a fuzzy subsemiautomaton of S. Since A(e) = v (e), it follows that v C_ A* v and v is a fuzzy normal subgroup of A * v. It also follows that A is a fuzzy kernel of A * v since A is a fuzzy kernel of S. In addition, A n v C_ A and A n v is a fuzzy normal subgroup of A. Now for p, r, k E Q, q E Supp(A), x E X, (an v)(p * r-1 )
>
(w(q * k, x,p) A w(q, x, r) A v(k))n (ft(k, x, p * r-1 ) A A(k)) ft(q * k, x, p) n ft(q, x, r) n (A n v) (k) (since ft(q * k, x, p) < y,(k, x, p * r-1)) .
Thus A n v is a fuzzy kernel of A. Now, since A and v are, respectively, a fuzzy subgroup and a fuzzy normal subgroup of Q, Supp(A) and Supp(v) are, respectively, a subgroup and a normal subgroup of Q . Also Supp(A n v) = Supp(A) n Supp(v) and Supp(A* v) = Supp(A)* Supp(v) . Thus by the second isomorphism theorem of groups, there is an isomorphism f : Supp(A)/Supp(A n v) ~ Supp(A * v)lSupp(v)
given by f(gSupp(A n v)) = gSupp(v)
for all gSupp(A n v) E Supp(A)/Supp(A n v) . Define A/A n v : Supp(A)/Supp(A n v) ~ [0,1]
© 2002 by Chapman & Hall/CRC
6.18. Fuzzy Semiautomaton over a Finite Group
319
by (A/A n v)( g Supp(A n v)) = V{a(p) I p E
for all gSupp(A n v)
E Supp(A)/Supp(A n v)
g Supp(A
n v)}
and
A * v/v : Supp(A * v)/Supp(v) ~ [0,1]
by (A* v/v)(gSupp(v)) =V{(A* v)(p) I p E gSupp(v)}
for all gSupp(v) E Supp(A*v)/Supp(v) . Then A/Anv and A*v/v are fuzzy subgroups of Supp(A)/Supp(A n v) and Supp(A * v)/Supp(v), respectively. Also, f is a weak isomorphism from A/A n v into A * v/v. Now, let G = Supp(A)/Supp(Anv) and H = Supp(A*v)/Supp(v) . Then G and H are subgroups of Supp(A)/Supp(A n v) and Supp(A * v)/Supp(v), respectively. Define ft, : G x X x G ~ [0,1] by p, l (gSupp(A n v), x,pSupp(A n v))
=
V{ft(a, x, b) I a E gSupp(A n v), b E pSupp(A n v)}
for all gSupp(Anv),pSupp(Anv) E G, and x E X. Clearly, ft, is well defined and (G, X, fq) is an fsa over a finite group. Define N2 : H x X x H ~ [0,1] by p, 2 (gSupp(v), x,pSupp(v))
=
V{ft(a, x, b) I a E gSupp(v), b E
pSupp(v) I
for all gSupp(v), pSupp(v) E H, and x E X. Then (H, X, P2) is an fsa over a finite group. Since f is a weak isomorphism from A/A n v into A * v/v, f (A/A n v) C A * v/v. Let gSupp(A n v) E G. Then (A * v/v)(gSupp(v))
>
= >
f (A/A n v)(gSupp(v))
(A/A n v)(gSupp(A n v)) 0.
Hence gSupp(v) = f (gSupp(A n v)) E H . Thus f induces a monomorphism g : G ----> H given by g(gSupp(A n v)) = gSupp(v) for all gSupp(A n v) E G. It follows that g is a homomorphism from (G, X, fq) into (H, X, P2). Theorem 6 .18 .22 Let T = (Q, X, S) be an fsa over a finite group and let A be a fuzzy kernel of T with Supp(A) = Q. Then there is an onto homomorphism from T into the fsa over a finite group (G, X, a), where
G = Supp(Q/A) .
© 2002 by Chapman & Hall/CRC
32 0
6. Algebraic Fuzzy Automata Theory
Proof. Now A is a fuzzy normal subgroup of Q. Define AP : Q ~ [0,1] by Ap(q) = A(p * q-1 ) for all q E Q . Let H = {Ap I p E Q} . Then H is a group with respect to the binary operation AP *A, = Ap*q for all AP, A q E H. Define Q/A : H ~ [0,1] by (Q/A)(Ap) = A(p)
for all AP E H. Then Q/A is a fuzzy subgroup of H, called the quotient subgroup of Q by A. Let G = Supp(Q/A) . Define a : G x X x G ~ [0,1] by a(Ap, x, Aq) = V{6(a, x, b) I a, b E Q, Aa = Ap, Ab = Aq}
for all AP, A q E G, x E X. Clearly, a is well defined and (G, X, a) is an fsa over a finite group. Define f : Q ----> G by f(q) = A q for all q E Q. Then it follows that f is an onto homomorphism from T into (G, X, a) . Let T = (Q, X, S) be an fsa over a finite group. An element xo E X is called an e-input if S(e, xo , e) > 0. Definition 6.18 .23 An fsa T = (Q, X, S) over a finite group is called mul-
tiplicative if there exists an e-input xo E X having the following properties: (1) S(q, x, p * r) = S(q, xo,p) A S(e, x, r) for all p, q, r E Q, x E X . (2) 6(p1 *p2 1 , xo, q1 * q2 1) = 6(p1, xo, q1) Ab(p2, xo, q2) for all p1, p2, q1, q2 E Q.
Theorem 6.18 .24 Let T = (Q, X, S) be a multiplicative fsa over a finite
group with e-input xo E X . Let A be a fuzzy subsemiautomaton of T and let v be a fuzzy kernel of A . If v is a fuzzy normal subgroup of Q, then v is a fuzzy kernel of T.
Proof. Since T is multiplicative, for all p, q, r, k b(q * k, x,p) n b(q, x, r)
Now for any q we have
=
(6(q * k, xo,p) n 6(e, x, e))n (S(q, xo , r) A S(e, x, e)) 6(q, xo,p) n 6(k -1 , xo, e)n S(e, x, e) A S(q, xo, r) .
E Q, b E Supp(A), q = b * (b * q' -1 ) -1
b(q * k, x,p) n b(q, x, r)
=
> = =
for some q'
Thus (6.4)
E Supp(A), x E X,
S(b * k, x, p) A S(b, x, r) A v(k) S(b * k, xo , p) A S(b, xo , r) A S(e, x, e) A v(k) 6(b, xo,p) n 6(k -1 , xo, e) n 6(b, xo, r)n 6(e, x, e) A v(k) .
© 2002 by Chapman & Hall/CRC
E Q.
6(b, lo,p) n 6(b * q' -1 , xo, e)A S6(k - ', xo, e) A S(e, x, e) A S(b, xo, r) .
Since v is a fuzzy kernel of A, for all p, r, k E Q, b v(p * r -1 )
E Q, x E X,
(6.5)
6.18. Fuzzy Semiautomaton over a Finite Group
321
From (6.4) and (6.5), it follows that v(p * r-1 ) > 6(q * k, x, p) n 6(g, x, r) n v(k)
for all p, q, r, k E Q, x E X. Since by assumption, v is a fuzzy normal subgroup of Q, v is a fuzzy kernel of T. Theorem 6.18 .25 Let T = (Q, X, 6) be a multiplicative fsa over a finite
group with e-input xo E X . Then the following statements are equivalent : (1) A is a fuzzy kernel of T. (2) A is a fuzzy normal subgroup of Q and A (q) > 6(p, xo, q) A A (p) for p,gEQ all .
Proof. (1)x(2) . Since A is a fuzzy kernel of T, A(q)
= > =
A(q * e-1) 6(e * p, xo, q) n 6(e, xo, e) n A(p) 6(p, xo, q) n A(p) (since 6(p, xo , q) < 6(e, xo, e))
for all p, q E Q . (2)x(1) . Since T is multiplicative, for all p, q, r, k E Q, x E X, 6(q * k, x, p * r) A 6(g, x, p) n A(k)
=
< < <
6(q * k, xo, p * r) A 6(g, xo, p) n 6(e, x, e), A(k) (6(q, xo,p) n 6(k-1 , xo, r-1 )n 6(e, x, e)) A A(k) 6(q, xo, P) A 6(k, xo, r) A 6(e, x, e) AA(k) (since 6(k-1 , xo, r-1 ) _ 6(e, xo, e) A 6(k, xo, r) = 6(k, xo, r)) 6(k, xo, r) A A(k) (by (6.5)) A (r) A(p * r * p- 1 ) (by (6 .5)) .
(6.6)
Now let PI ,P2, q, k E Q, x E X. Since Q is a group, there exists a unique element r E Q such that p1 = P2 * r. Thus A(p1 * p2 1 )
= > >
A(p2 * r * P21) 6(q * k, x, p2 * r) A 6(q, x, p2) n A(k) 6(q * k, x,p1) A 6(q, x,p2) A A(k) .
(by (6 .6)
Hence A is a fuzzy kernel of T. Theorem 6.18 .26 Let T = (Q, X, 6) be a multiplicative fsa over a finite group with e-input xo E X. There exists a semigroup homomorphism f Q ~ .FP (Q) and a function g : X ~ FP (Q) such that 6(q,x,p) = f(q)(p) n 9(x)(e) for all p,gEQ,xEX.
© 2002 by Chapman & Hall/CRC
32 2
6. Algebraic Fuzzy Automata Theory
Proof. Define f : Q ----> .FP(Q) by f(q) = Sq for all q E Q, where Sq : Q ----> [0,1] is defined by 6q (P) = S(q, xo , p) for all p E Q . Since T is multiplicative,
bq,*qz (pi * p2)
=
= =
b(qi * q2, xo,pi * p2) b(qi, xo,pi) n b(q2 1 , xo,p2 1 ) b(qi, xo,pi) A S(q2, xo,p2) bq, (PI) n Sgz(p2)
for all P1, P2, ql, q2 E Q . Hence (bq, * bqZ) (p)
=
V{6q, (q) S qi*q2(p)
n bqz (r) I
q, r E Q, q * r = p}
for all p E Q. Thus f (qi) * f (q2) = f (qi * q2) .
(6.7)
It is well known that,F'P(Q) is a semigroup with respect to the product of fuzzy subsets of Q. Hence, it follows from (6.7) that f is a semigroup homomorphism from Q into .FP(Q) . For x E X, define the fuzzy subset Ax of Q by Ax (q) = 6(e, x, q) for all q E Q. Define g : X ----> .FP(Q) by g(x) = Ax for all x E X. Since T is multiplicative, it follows that S(q, x,p) = f(q) (p) A g(x) (e) for all p,gEQ,xEX. 6 .19
Exercises
1. Let M = (Q, X, ft) be the ffsm, where Q = {ql, q2}, X = {a}, and ft is defined by ft(ql , a, qi) = s, ft(ql , a, q2) = 0, ft(g2, a, qi) = 0, and ft(g2, a, q2) = 3. Determine E(M) and E(M) . 2 . Let M = (Q, X, ft) be the ffsm, where Q = {ql , q2 }, X = {a}, and
ft is defined by ft(ql , a, gi) = 0, ft(gi a, g2) = 3, ft(g2, a, qi) = 0, and ft(g2, a, q2) = 3. Determine E(M) and E(M) .
3. Let M = (Q, X, ft) be the ffsm, where Q = {ql , q2 }, X = {a}, and
ft is defined by ft(ql , a, qi) = 0, ft(ql , a, q2) = 3, ft(q2 , a, qi) = 3, and ft(g2, a, q2 ) = 0. Determine E(M) and E(M) .
4. In Example 6.6.4, determine E(MI), E(M2), E(MI xM2), and E(MIA M2) when cl :A c2 and/or dl :?~ d2 . 5. Prove (2), (3), and (4) of Theorem 6.17.1. 6. Let A and ft be fuzzy subgroups of G such that A is a fuzzy normal subgroup of ft . Prove that ft/A is a fuzzy subgroup of Supp(ft)/ Supp(A) . © 2002 by Chapman & Hall/CRC
6.19. Exercises
323
7. Prove Theorems 6.18.12 and 6.18.13. 8. (113) Let (Q, X, T) be a T-generalized state machine. Prove that T + (p, xy, q) = V {T+ (p, x, r) T
T+(r,
y, q) I r E Q},
for all p, q E Q and x, y E X+ . 9. (113) Let (Q, X, T) be a T-generalized state machine . Define - on X+ by Vx, y E X+, x - y if T+ (p, x, q) = T+ (p, y, q) Vp, q E Q. Prove that - is a congruence relation on X+ . 10. (113) Let M = (Q, X, T) be a T-generalized state machine . Let -be a congruence relation defined in Exercise 6. Let [x] = {y E X+ x - y} Vx E X+ and S(M) = {[x] I x E X+} . Prove that S(M) is a semigroup, where the binary operation on S(M) is defined by [x] [y] = [xy] V [x], [y] E S(M) . 11. (113) Let M = (Q, X, T) be a T-generalized state machine, where T is the ordinary product on [0,1] . Show by example that S(M) need not be finite, where S(M) is defined in Exercise 10 . 12. (113) Let M = (Q, X, T) be a T-generalized state machine. Prove that since Q is finite, S(M) is finite if and only if Im(T+) is finite . 13. (113) Construct an example of a T-generalized state machine (Q, X, T) such that EgEQ T+ (p, x, q) > 1 and x E X+ . 14. (113) A T-generalized state machine (Q, S, p) is called a T-generalized transformation semigroup if S is a finite semigroup such that (a) p(p, uv, q) = V{p(p, u, r) T p(r, v, q) I r E Q} Vp, q E Q and Vu, v E S and (b) Vu, v E S, p(p, u, q) = p(p, v, q) Vp, q E Q implies u = v . A t-norm T is said to be T-generalized transformation semigroup inducible if S(M) is finite and EgEQ T+ (p, x, q) <_ 1 Vp E Q and x E X+ for every T-generalized state machine (Q, X, T) . Prove that there exists a T-generalized transformation semigroup inducible tnorm T.
© 2002 by Chapman & Hall/CRC
Chapter 7
More on Fuzzy Languages 7.1
Fuzzy Regular Languages
In this chapter, we study the concepts of max-min (FLv (M)) and min-max (FL A (M)) fuzzy languages recognized by a type of fuzzy automaton M. We show that if Ai and A2 are Fv-regular languages, then so are Ai U A2 and Ai rl A2 .We prove a type of fuzzy pumping lemma. We use this result to give a necessary and sufficient condition for FLv (M) to be nonconstant . In this section, fuzziness is introduced through the initial and final states. Definition 7.1.1 A partial fuzzy automaton (pfa) is a 5-tuple M = (Q, X, S, t, T), where (1) Q is a finite nonempty set of states,
(2) X is a finite nonempty set of input symbols, (3) S : Q x X ~ Q is a function, called the transition function, (4) t is a fuzzy subset of Q, i.e., t : Q ~ [0,1], called the initial fuzzy
state, (5)
T is a fuzzy subset of Q, called the
fuzzy subset of final states .
The transition function S can be extended to S* : Q x X* ----> Q by 6* (q, A) S* (q, ua)
= =
q S(S* (q, u), a)
b' q E Q, b' u E X*, b' a E X. It can be easily verified that S* (q, uv) _ S*(S*(q,u),v) Vu, v E X* . Definition 7.1.2 Let M = (Q, X, S, t, T) be a pfa. The max-min fuzzy language recognized by M is the fuzzy subset FL v (M) of X* defined by FL v (M) (u) = VaEQ (t(q) 325 © 2002 by Chapman & Hall/CRC
n T(6* (q, u)))
7. More on Fuzzy Languages
32 6
and the min-max fuzzy language recognized by M is the fuzzy subset FLA (M) of X* defined by FLA(M)(u) = AIEQ(t(q) V T(6*(q,u))) .
Definition 7.1.3 Let X be a nonempty finite set. A fuzzy subset A of X* is called F v -regular (F A -regular if there exists a pfa, M = (Q, X, S, t, T), such that A = FL v (M) (A = FLA(M)) .
Theorem 7.1.4 Let L be a regular language on a nonempty finite set X. Then the characteristic function XL of L is a Fv -regular language .
Proof. Since L is a regular language on X, there exists a deterministic partial finite automata (dpfa), M' = (Q, X, S, qo, F), such that the language L(M') recognized by M' is L. Consider the pfa, M = (Q, X, S, t, T), where t : Q ~ [0,1] is defined by t(qo) = 1 and t(q) = 0 if q z,4 qo and T : Q ~ [0,1] is defined by T(q) = 1 if q E F and T(q) = 0 if q ~ F. Let u E X*. Then FL v(M) (u)
Thus FL v (M) = XL .
VgEQ(t(q) AT(6*(q,u))) T ((S* (qo, u)) 1 if S* (qo , u) E F F 0 if S* (qo , u)
0
Theorem 7.1.5 Let L C_ X* . Suppose the characteristic function is a Fv -regular language . Then L is a regular language on X.
XL of L
Proof. Since XL is a Fv -regular language, there exists a pfa, M = (Q, X, S, t, T), such that FL v (M) = XL . Thus V4EQ( L(q) nT(6*(q,u))) _ { 0 if u
L.
Now u E L if and only if there exist q' E Q such that T(S * (q', u)) = 1 . Let
1 and
Qo = {q E Qjt(q) = 1}
and F = {S * (q, u) E QIT(S* (q, u)) = 1 for some u E L} .
Then Qo :?~ Ql and F :?~ 0. Let Mq = (Q, X, S, q, F), q E Qo . Let Lq be the language recognized by Mq. Then Lq C_ L . Hence U gEQo Lq C_ L. Let u E L. Then VgEQ(t(q) AT(S*(q,u))) = 1. Hence there exists q E Qo such that t (q) AT(S*(q,u)) = 1. Then T(S*(q,u)) = 1 and so S* (q, u) E F. Thus u E Lq. Hence U gEQ,,Lq = L. Since each Lq is regular, L is regular . m © 2002 by Chapman & Hall/CRC
7.1 . Fuzzy Regular Languages
327
Theorem 7.1.6 Let L be a regular language on a nonempty finite set X. Then the characteristic function XL of L is a FA-regular language.
Proof. Since L is a regular language on X, there exists a dpfa, M' = (Q, X, S, qo, F), such that the language L(M) recognized by M' is L. Consider the pfa, M = (Q, X, S, t,T), where t : Q ~ [0,1] defined by t(qo) = 0 and s(q) = 1 if q :?~ qo and T : Q ~ [0,1] defined by T(q) = 1 if q E F and T(q)=0 if q~F.Now FLA(M)(u)
= ngEQ(t(q) V T(6*(q,u))) .
Let u ~ L. Then XL(u) = 0 and 6*(qo,u) ~ F. Hence t(qo) = 0 and T(6* (qo, u)) = 0. Thus FL A (M) (u) = 0. Suppose u E L. Then 6* (qo, u) E F and hence T(6*(qo,u)) = 1 . Thus t(qo) V T(6*(qo,u)) = 1 . If q :?~ qo, then t (q) = 1 . Thus t (q) V T(6* (q,u)) = 1 . Hence FL A(M)(u) = 1 . Thus FLA (M) = XL . 0 Theorem 7.1.7 Let L C_ X* . Suppose the characteristic function XL of L in X* is a FA-regular language. Then L is a regular language.
Proof. Since XL is a FA -regular language, there exists a pfa, M = (Q, X, 6, t, T), such that FL A (M) = XL . Thus for all u E X*,
=
XL(u)
ngEQ(t(q) V T(6*(q,u))) ~ 1ifuEL 0ifa~L .
Now u E L if and only if for all q E Q, either t (q) = 1 or T(6*(q, u)) = 1.
Let
Qo = {q E Q I t(q) = 1} and for all q E Q\QO, F'q = U.EX*{6* (q, x) I T( 6 *(q,u)) = 1} .
For all q E Q\QO, let Mq = (Q, X, 6, q, Fq ) and let Lq denote the language recognized by Mq. Then y E ngEQ\QoLq if and only if for all q E Q\QO, y E Lq if and only if for all q E Q\QO, 6* (q, y) E Fq if and only if for all q E Q\QO, T(6*(q, y)) = 1 if and only if y E L . Hence L = ngEQ\QoLq and XL(u)
= ngEQ\QoT(6*(q,u)) . 0
Example 7.1.8 Let Q = {qi, q2}, X = {0,1}, 6(qi, 0) = qi = 6(q2, 0), 6(qj,1) = q2 = 6(g2,1) , t(qi) = 0 = t(q2), T (qi) = 0, and T(q2) = 1 . Thus in the proof of Theorem 7.1 .7, Qo = 01 and Fq2 = {1,11,111, . . . } . Theorem 7.1.9 Let A be a Fv -regular language on X. Im(A), A, is a regular language on X.
© 2002 by Chapman & Hall/CRC
Then for all c E
328
7. More on Fuzzy Languages
Proof. Since A is Fv-regular, there exists M = FLv (M) = A. Thus A(u)
(Q, X, S, t, T)
such that
=VgEQ(t(q) AT(6*(q,u)))
for all u E X* . Let c E Im(A) . Let u E Ac . Then A(u) = VgE Q(L(q) A T(S*(q,u))) >_ c. Since Q is finite, there exists qv E Q, such that t(qv) A T(S*(qv,u)) > c. Hence for all u E Ac there exists qv E Q such that t(qv) A T(S*(qv,u)) > c. For all u E A,, let Mq . = (Q, X, S, q., Tc.) where T, _ {q E Q T(q) >_ c} . Let L(Mq.) be the language of Mq . . Let x E L(Mq.) . Then S * (q.,x) E T c and so T(S*(qv,x)) >_ c. Since t(qv) >_ c, t(qv) AT(S*(q.,x)) >_ c. Hence VgE Q(L(q) A T(S*(q, x))) >_ t (q.) A T(S* (q., x)) >_ c. Thus x E A, . Hence L(Mq.) C_ A c . Conversely, let x E A, . Then there exists qx E Q such that t(qx) AT(S*(qx,x)) > c. Thus T(S*(qx,x)) > c and so S * (qx,x) E T, . Hence x E L(Mq,) . Thus A, C UL(Mq,) . Hence A, = UL(Mq,) . Since each L(Mq,) is regular, A, is regular . Theorem 7.1.10 Let A be a finite valued fuzzy subset ofX* . If A, is regular for all c EIm(A), then A is a Fv -regular language on X* . Proof. Let Im(A) =
{CI,
C, . . . ,
A,, C
x`12
ck}
where cl > C > . . . >
ck .
Then
C . . . C Alk .
Let us denote AZ = Ac j , i = 1, 2, . . . , k. Let Mi = (QZ, X, SZ , qZ, FZ) be the dfa for Ai - AZ_ 1, i = 1, 2, . . . , k where Ao = 01 . Let TZ be the characteristic function of FZ U {d} in QZ U {d}, where d is a state such that d ~ QZ, i = 1, 2, . . . , k. Let M = (Q, X, S, t,T), where ~
Q = (Q1 U {d}) X (Q2 U {d}) X . . . b((pl,p2,
x
(Qk U {d}),
. . . , Pk),a) = (61(pl,a), 62(p2,a),
where we set 6i (pi, a) T(pl,p2,
= d
if pi
. . . , Sk(Pk,a)),
2, . . . , k,
=d, i = 1,
. . . , Pk) = T , (pl) AT2(p2) n . . . ATk(pk)
and t(pl, p2,
. . . , Pk) = ~
Ci
. .
if (PI, " 0 otherwise .
,
Pk) = (d,
Let u E X* and A(u) = c2. Then u E Ai VgEQ(t(q) AT(6* (q, u)))
© 2002 by Chapman & Hall/CRC
AZ_1 .
. . . , d, qi, d, . . . , d)
Now
= ci n 1 =
c2
7.1 . Fuzzy Regular Languages
329
since t (q) AT(6* (q u)) _ '
Hence A(u) X* . 0
cZ if q = (d,
~ 0 otherwise.
=VaEQ(t(q) AT(6*(q,u))) .
. . . , d, qZ, d, . . . , d)
Thus A is a Fv-regular language on
We illustrate Theorems 7.1 .9 and 7.1 .10 in the next two examples . Example 7.1.11 Let G = (N, T, P, s) be the grammar of Example 1.8.4 .
Then L(G) = L bm abn I m = 0,1. . . . ; n = 1,2. . . . } (see Example 1.8.6 . Define A : {a, b}* ~ [0,1] by Vbmabn E L(G), A(bn'abn) _ .5 if m > 0, A(bmabn) = .9 if m = 0, and A(x) = 0 for all other x E {a, b}* . Then A.5 = L(G) is regular. Now A.9 = {ab n I n = 1, 2. . . . } is regular since it is generated by the productions s aS, S ~ bS, and S ~ b.
Example 7.1.12 Let A be the fuzzy language of Example 7.1 .11.
Then A.9 = {abn I n = 1,2 . . . . } and A .5\A .9 = {bm abn I m, n = 1,2. . . . f . Let M1 = (Q1, X, 61, s, F) and M2 = (Q2, X, 62, s, F), where Q1 = {s, S, 01, F}, Q2 = {s, Sl, S2, 0, F}, X = {a, b}, and Sl and 62 are defined as follows. 61 (s, a)
6 1 (s, b) 61 (S, a) 6 1 (S, b) 61(01, a) 6 1 (0, b)
61 (F, a) 61 (F, b)
= S _
_ = F _ = 01 - 01 = F
62 (s, a)
S1 S2 S1 01
62 62 (SL, a) 62 (SL, b) 62 (S2, a) 6 2(S2, b) 62 (0, a)
F 01
2(0,b) 62 (F, a) 62 (F, b)
01
F.
Then Ml accepts A.9 and M2 accepts A.5\A .9 . Now (Ml U {d}) x (M2 U {d}) has 30 elements . Hence we list only a few of the images of S, T, and t . 6((s, d), a) 6((S, d), b) 6((d, s), a) b ((d, 0), b)
= = = =
(61 (s, a), 62 (d, a)) (61 (S, b), 62 (d, b)) (61 (d, a), 62 (s, a)) (6 1 (d, b), 62 (0, b))
T(F, d) T(d, F) ~(s, d)
(d, s)
© 2002 by Chapman & Hall/CRC
=
= _ _
1
1 .9 .5 .
= = =
(S, d) (F, d) (d, 01)
=
(d, 0)
and is=Then a(Ql, FLv by Fv-regular FLv(M2) A1 Theorems 7(M) X, Now Since Ubl,A2= =ti, AT(S*(q,bab))) (A1 A1 = AT(6*(q,ab))) is language A1 Let (Ql Tl) A2and 7aUrl(P,q)EQI (u) A1 A1 Fv-regular XXA2), A2 and Let n (S2 T2((bi(A Q2, A2 and A2)(u)nand and (q, 0A2 M2 on = are X, XQ2 XQ2(tl(p) u)) A2 (u) A2 7Al, X* =Fv-regular b1 be )(tl ATl(6i(p,u))))n AT2(62(q,u)))) AFLv(M2)(u) be language u), (Q2, XU(p) Fv-regular finite A2, Xb2, b2 m(nt2)(p,q) X, (q, tl (s, (d, t2(q)n t2(q) for AT(6*((d, AT(S*((0, AT(O, A0)V( nT(S*((d, AT(F, A1)V( 62, Xvalued u))) d) s) ATS*((d, s) on languages all t2, t2, AT(6*((s,d),ab))V AT(S*((s,d),bab))V AT(S*((d, AT1(61(Au)) X* languages AT((S1 TT2) More F)) cb)) =Fv-regular E T1 Vsuch Sl), S2), 0), V S2), [0,1] (on (on Xb)) Xs), s), ab)) b)) T2) Fuzzy AT(d, b)) on that AT(d, b2)*((p,q),u))) VThe X*, ab)) bab)) V X* languages FLv(MI) there 0)) Languages F)) result Thenexists now A1 on _ rl
330
7.
Now
-
VgEQ(t(q)
_ _ _ Then
_
VgEQ(t(q)
_ _ _ _ _ Theorem X* .
.1.13
Proof. follows Theorem A2 Ml A1
(t(s,d) (t(d, ( .9 ( .5 ( .9 ( .9
.5 .5A0)
(t (t .9AT(S*((O1,S1),ab))V ( .5 ( .9 V( .5 .5 ( .9 .5A1) ( .9 .5 . .
.1.9
.1 .10 .
.1.14
. .
.
Proof. . M
Now FLv(M)(u)
. -
V(p,q)EQ,XQ2((tl V Tl V(P,q)EQ, AT2 (VPEQ,(tl(p) (VgEQz(t2(q) FLv(MI)(u) At (al
Hence © 2002 by Chapman & Hall/CRC
.
7.1 . Fuzzy Regular Languages
331
Theorem 7.1.15 Let A be a Fv -regular language on X* . Then is a FA -regular language on X* . (Q,
Proof.
= 1 -A
Since A is a Fv-regular language on X*, there exists M = = A . Let M' = (Q, X, 6, t', T) where T =
X, 6, t, T) such that FLv(M) 1-T and T=1-t . Now
=
FL A(MC)(u)
= = for all u X* . 0
E
ngEQ(T (q) V T(6*(q,u))) ngEQ(( 1 - t (q)) V ( 1 - T(6* (q, u)))) 1 - VgEQ(t(q) AT(6 * (q, u)))
1_ A(u) A(u)
X* . Hence FLA (MC)
Thus _X is a FA-regular language on
Let M = (Q, X, 6, t,T) be a pfa. Let Q = {ql, g2, - . . , qnj and for all 1 < i < n. For all p E Q define p-1 T : X* ----> [0,1] by (P-1 T) ( x) for all x
E
X* . For all pi
E
(PI,
t(qi) =
ti
= T(6*(p,x))
Q, 1 < i < n define
P2, " . . ,Pn) -1 T :
X* ----> [0, 1]
by 01, P2,
" . . ,Pn)-1T)(x)
=Vi--1(Ci
n (Pi
1T)(x))
for all x E X* . Let/C= {(p1, p2, . . . , Pn) -1 T lpi E Q, 1 <_ i <_ n} . Since Q is finite, K is finite. Let A be a fuzzy subset of X* . Let u E X* . Define u-1A : X* ----> [0,1] by (u-1A)(v) = A(uv) for all v
E
X* . Let p
E
Q. Then (P -1 T)(v)
for all v
E
=T(6*(p,v))
X* . Suppose that A = FLv (M) . Let x
(u-1A)(x)
= =
E
X* . Then
A(ux) VgEQ(t(q) AT(6*(q,ux))) (t(ql) AT(6*(6*(gl,u),x))) V . . . V (t(gn)A T(6*(6*(qn, U), X))) (C1 n T ( 6* ( 6* (ql, u), x))) V . . . V (Cn n T(6*(6*(gn,U),x)))-
© 2002 by Chapman & Hall/CRC
332
7. More on Fuzzy Languages
Let S* (qj, u) = pi for all 1 < i < n. Thus (U'-1A)(x)
= = =
(cl AT(6*(pl, x))) V . (cl n (P1 'T) (x)) V . . .
. . V (Cn AT(6*(pn, x))) V (c n A (Pn1T)(x)) . ((pl~p2~ . .~pn)-1 T)(x) .
Hence u-1 A = (pl,p2, . . . ,pn) -1 T E K . Thus the set contains only a finite number of distinct elements .
F= {u -1A
I
u E X*}
Theorem 7.1.16 Let A be a fuzzy subset of X* . The following are equiv-
alent. (1) A is a Fv -regular language of X* . (2) 1Z = {(u,v) E X* x X* I u-1 A = v-1 A} is a right congruence of finite index. (3) P = {(u, v) E X* x X* I A(xuy) _ A(xvy) for all x, y E X*} is a right congruence of finite index.
Proof. (1)x(2) : Clearly 1Z is an equivalence relation on X* . Since I u E X* } is a finite set, the index of 1Z is finite . Let u, v, x E X and uRv . Then u-1 A = v-1A. Hence A(uw) = A(vw) for all w E X* . Thus A(uxy) = A(vxy) for all y E X* . Hence (ux)-1 A = (vx)-1A. Thus R is a right congruence. (2) x(1): Let A denote the empty word in X* . Let M = (Q, X, S, t, T) be a pfa, where Q is the set of all distinct R-equivalence classes and S, t, and T are defined as follows : ,F = {u -1 A
6 :QXX----> S([x], a) = [xa]
for all [x]
E Q, a E X, t :Q----> [0,1]
tQxD
for all [x]
E Q
1 if [x] _ [A] 0 if [x] [A]
and T :Q----> [0,1] T([x]) = A(x)
for all [x] E Q . The function S can be extended to S* : [xy] for all [x] E Q, y E X* . © 2002 by Chapman & Hall/CRC
Q x X* ~ Q,
where S* ([x], y) _
7.1 . Fuzzy Regular Languages
333
Let [x], [y] E Q and a E X. Suppose [x] = [y] . Then xRy . Since 1Z is a right congruence, xaRya . Thus [xa] = [ya] and so 6([x], a) = 6([y], a) . Hence 6 is well defined . Now if [x] = [y], then x -1 A = y-1A . Thus (x -1 A)(A) = (y-1A)(A) and so A(x) = A(y) . This implies that T([x]) = T([y]) . Hence T is well defined . Let x E X* . Then FLv(M)(x)
= =
VgEQ(t(q) AT(6*(q,x))) T(6*([A],x))
Hence FL v(M) = A. Thus A is a Fv -regular language of X* . (1)x(3) : The proof of this part is similar to (1)x(2).
m
Lemma 7.1.17 (Pumping Lemma) Let M = (Q, X, 6, t, T) be a pfa. Suppose IQ I = n. Then for all x E X*, I x I >_ n, there exist u, v, w E X such that x =uvw, Iuv I0 and
FL v (M) (uv'w) = FL v (M) (x) for all m>0.
Proof. Let x = al a2 . . . aP , ai E X, 1 < i < p, p > n. Now FLv(M)(x) = VgEQ(t(q) AT(6*(q,x))) .
Let q E Q . Let 6(q, al) = ql, 6(ql, a2) = q2, . . . , 6(gp_1, aP) = qP . Since j, 0 < i < j <_ n such that qi = qj, where I QI = n, there exist i qo = q. Let u = ala2 . . . a2_1, v = alai +1 . . . aj_1, w = ajaj+l . . . aP. Then x =uvw, IuvI < n, IvI >0. Consider uv2 w . Now uv 2w = ala2 . . . a2_laiai+1 . . . aj_laiai + 1 . . . aj _ l ajaj+l . . . aP .
Clearly 6* (q, u) = q2, 6* (q2, v) = qj = q2, and 6* (qj, w) = qP . Now 6* (q2, v2) _ 6* (6 * (qj, v), v) = 6* (qj , v) = qj = qi . By induction it follows that 6 * (qj, vm) = 6* (6* (qj, vm-1 ), v) = 6 * (qj, v) = qj = qa
for all m > 1. Hence 6* (q2, uv mw)
= = =
6* (6* (q, u), vmw) 6* (qi , vmw) 6* (6* (qj, vm), w) 6* (qj, w) qP 6* (qj, uvw)
© 2002 by Chapman & Hall/CRC
334
7. More on Fuzzy Languages
for all m > 0. Thus FLv (M)(uv -w)
= =
=
VaEQ(t(q) AT(S*(q,uv-w))) VgEQ(t(q) AT(6*(q,uvw)))
FLv (M) (uvw) FLv(M)(x) . m
Theorem 7.1 .18 Let M = (Q, X, S, t, T) be a pfa. Suppose IQ I = n . Then FLv (M) is nonconstant if and only if there exist W1, W2 E X* such that Iw1I < n and FLv (M)(w2) < FLv(M)(wl) . Proof. Suppose that FLv (M) is nonconstant . Then there exist u, v E X* such that FLv (M) (u) :?~ FLv (M) (v) . Let w E X* be such that Iw I >_ n . Now either FLv (M) (w) zA FLv (M) (u) or FLv (M) (w) zA FLv (M) (v) . Suppose FLv (M) (w) zA FLv (M) (u) . Case 1 : FLv (M) (w) > FLv (M) (u) . Let S= {x E X*I IxI > n and FLv (M)(x) > FLv(M)(u)}. Since w E S, S z,4 0. By the well ordering principle there exists wo E S such that Iwol is smallest. Now Iwol > n and FLv (M)(wo ) > FLv (M)(u) . By the pumping lemma, there exist x, y, z E X* such that wo = xyz, I xy I < n, Iy I > 0, and FLv (M) (xy'z) > FLv(M) (wo) for all i >_ 0. Let wl = xz. Since Iw1I < IwoI , wi ~ S. Since FLv (M)(xz) >_ FLv (M)(wo) > FLv (M)(u) it follows that Iw1I < n. Hence wl and u are the required words . Case 2: FLv (M) (w) < FLv (M) (u) . In this case if Jul < n, then u and w are the required words. Suppose that Jul >_ n. Then proceeding as in Case 1, we can show that there exists words wl and w2 such that Iw1I < n and FLv (M)(w2) < FLv(M)(wl) . The converse is immediate. m
7 .2
On Fuzzy Recognizers
In this section, we define and examine the concept of a fuzzy recognizer . If L(M) is the language recognized by an incomplete fuzzy recognizer M, we show that there is a completion M' of M such that L(M') = L(M), Theorem 7.2.14. We also show that if A is a recognizable set of words, then there is a complete accessible fuzzy recognizer MA such that L(MA) = A, Theorem 7.2.20. Our long-term goal is to determine rational decompositions of recognizable sets. In fact, we wish to determine a decomposition that gives a constructive characterization of a recognizable set . We lay groundwork for this determination by proving Theorems 7.2.28 and 7.2.29 . © 2002 by Chapman & Hall/CRC
7.2. On Fuzzy Recognizers
335
Let M = (Q, X, /t) be a fuzzy finite state machine, where Q and X are nonempty sets and /t is a fuzzy subset of Q x X x Q . Q is called the set of states and X is called the set of input symbols. Let X* denote the set of all strings of finite length over X. Let A, B C_ X* . Then AB = {uv I u E A, v E B} . For x E X*, xA = {x}A and Ax = A{x} . Definition 7.2 .1 Let M = (Q, X, /t) be a ffsm . Let q E Q, x E X*, and ACX* . Define q*x :Q~[0,1] and q*A :Q----> [0,1] by * (q * x) (p) = [t (q, x, p) b'p E Q and q*A = UxEAq*x .
Definition 7.2 .2 Let M = (Q, X, /t) be a ffsm. Let a : Q ----> [0,1], x E X*, and A C X* . Define (1) a * x : Q ----> [0,1] by
(a * x) (p) = V{a(q) A [t * (q, x, p) I q E Q} dpEQ, (2)cx*A :Q~[0,1] a*A = UxEAa*x, (3) a * x-1 : Q ~ [0,1] by (a * x -1 ) (p) = V{o(q) n tt* (p, x, q) I q E Q} dpEQ, A-1 : Q ----> [0,1] (4) a *
(k * A-1 = UxEAC' * x-1
Lemma 7.2 .3 Let M = (Q, X, y) be a ffsm. Let a be a fuzzy subset of Q and A C X* . Then
(a * A) (p) = V{V {a(q) A w* (q, x, p) I q E Q} I x E A},
(a * A- 1) (p) = V {V {a(q) A w* (p, x, q) I q E Q} I x E A} vpEQ .0
Lemma 7.2 .4 Let M = (Q, X, y) be a ffsm and let a : Q ~ [0,1] . Let S = {a * x I x E X*}. Then S is a finite set.
© 2002 by Chapman & Hall/CRC
7. More on Fuzzy Languages
336
Proof. Let x E X* . Then (a*x)(p) = V{a(q)nft* (q, x, p) I q E Q} . Since ft* is finite valued . Also, a is finite valued. is ft finite valued, it follows that It now follows that the number of mappings of the form a * x : Q ~ [0,1] is finite. Hence S is finite . m
Theorem 7.2.5 Let a be a fuzzy subset of Q, x, y E X* and A, B C_ X* . Then
(1) (a * x) * y = a * (xy), (2)(a*A)*y=a*(Ay), (3) (a*A) *B=a* (AB), (4) (a (5) (a (6) (a
x -1 ) y -1 = a (yx) -1 , A-1 )
y-1 = a
A-1 )
B-1 = a
(yA) -1 , (BA) -1 .
Proof. (1) Let p E Q . Then ((a * x) * y) (p) _ = _
V~(a*x)(q) nw * (q,y,p) I qE Qj V{VQa(r) Aw*(r,x,q) I r E Q}) Aw*(q,y,p) gEQI V{a(r) A (V {[t* (r, x, q) A w* (q, y, p) I q E Q}) I rEQ} V{a(r) n ft * (r, xy, p) I r E Q} (a * (xy))(p)-
Hence (a * x) * y = a * (xy) . (2) Let p E Q. Then ((a * A) * y) (p)
V~(a*A)(q) nft* (q,y,p) I qE Qj V{(V{(a* x) (q) I x E A}) A[t*(q,y,p) I qEQ} V{V{(a * x) (q) A w* (q, y, p) I q E Q} I xEA} V{((a * x) * y)(p) I x E A} V{(a * (xy))(p) I x E A} (UxEACI * (xy))(p) (a * (Ay)) (p).
Thus (a*A)*y=a*(Ay) . (3) (a * A) * B = UVEB((a * A) * y) = UVEBa * (Ay) = a * (AB) . © 2002 by Chapman & Hall/CRC
7.2 . On Fuzzy Recognizers
337
(4) Let p E Q. Then
((a * x-1) * y -1 )(p)
_
V{(a * x-1)(q) n ft * (p, y, q) I q E Q} V{(V{a(r) Aw*(q,x,r) I r E Q}) Aft* (p, y, q) I q E Q} V {a(r) A (V {ft* (q, X, r) A w* (p, y, q) IgEQ}) I rEQ} V {a(r) A (V {ft* (p, y, q) A w* (q, x, r) IgEQ}) I rEQ} V {a(r) n ft * (p, yx, r) I r E Q} (a * (yx)-1)(p)
Hence (a * x-1) * y-1 = a * (yx)-1 . (5) Let p E Q. Then ((a * A-1) * y - 1) (p)
=
A-1) V{(a * (q) A w* (p, y, q) I q E Q} x-1) * V {(V{(a (q) I x E A}) (p, y, q E Aft* q) I Q} V{V{(a * x -1 ) (q) A w* (p, y, q) I q E Q} I xEAl V {((a * x-1 ) * y -1 )(p) I x E A} V {(a * (yx) -1 )(p) I x E A} (UxEAOI * (Jx)-1)(p) (a * (yA) -1 ) (p) .
Hence (a * A-1) * y-1 = a * (yA)-1 .
A-1) * B-1 = A-1) * UVEB((a * (6) (a * y-1) = UVEB(a * (yA)-1) -1 . a * (BA) m
Definition 7.2.6 M = (Q, X, ft) be a ffsm. Let a : Q ----> [0,1] and T Q ----> [0,1] . Define
a-1 o T = {x E X* Ia(q) A /t*(q, x, p) A T(p) > 0 for some q, p E Q} .
Definition 7.2.7 Let Q and X be finite subsets. A fuzzy recognizes is a five tuple M = (Q, X, ft, t, C), where
(1) Q is a finite nonempty set of states, (2) X is a finite nonempty set of input symbols, (3) ft : Q x X x Q ~ [0,1] is a function, called the fuzzy transition function, (4) t is a fuzzy subset of Q, i.e ., t : Q [0,1], called the initial fuzzy state, and (5) C is a fuzzy subset of Q, i.e ., C : Q [0,1], called the fuzzy subset of final states .
Clearly, if M = (Q, X, ft, t, C) is a fuzzy recognizer, then N = (Q, X, ft) is a fuzzy finite state machine . We call N the fuzzy finite state machine associated with the fuzzy recognizer M. © 2002 by Chapman & Hall/CRC
338
7. More on Fuzzy Languages
Definition 7.2 .8 Let M = (Q, X, /t, t, C) be a fuzzy recognizer. Let x E X* . Then x is said to be recognized by M if VgEQ(t(q) A(VPEQ{w * (q,x,p) AC(p)})) > 0. Lemma 7.2 .9 Let M = (Q, X, /t, t, C) be a fuzzy recognizer. Let x E X* . Then x is recognized if and only if there exists p, q E Q such that t(q) A ft * (q, x, p) n C(p) > 0 . 0 Definition 7.2 .10 Let M = (Q, X, /t, t, C) be a fuzzy recognizer . Let L(M) = {x E X* I x is recognized by M} . L(M) is called the language recognized by the fuzzy recognizer M. Lemma 7.2 .11 Let M = (Q, X, /t, t, C) be a fuzzy recognizer. Then L(M) = {x E X* I t(q) A /t*(q, x, p) A C(p) > 0 for some q, p E Q} . m Definition 7.2 .12 Let M = (Q, X, /t) be a fuzzy finite state machine. M is called complete if for all q E Q, a E X, there exists p E Q such that ft (q, a, p) > 0. Definition 7.2 .13 Let M = (Q, X, ft, t, C) be a fuzzy recognizer. Then M is called complete if the fuzzy finite state machine associated with M is complete . Let M = (Q, X, ft, t, C) be a fuzzy recognizer such that M is not complete. Let Qc = Q U {t}, where t is an element such that t Q. For all qEQ,let0<mg <1 .Let0<m<1.Define yc :QxXxQ~[0,1]by for all p, q E Q, a E X, such that ft(p, a, q) :?~ 0, ftc(p, a, q) = ft (p, a, q), for all pEQ,aEX ,t c(p, a, t)
-~ m
if V {ft(p, a, q) I q E Q} = 0 if V {ft(p, a, q) I q E Q} > 0
and m if t=p 0 if t :?~ p.
ftc (t, a, p) _ Define ,c : Qc ----> [0, 1] by ~c
© 2002 by Chapman & Hall/CRC
(p) -
t (p) 0
if p t if p=t .
7.2. On Fuzzy Recognizers
339
Define C' : Qc ----> [0,1] by OP) _
C(p) if p 0
EQ
otherwise .
It is easy to see that the fuzzy recognizer Mc = (Qc, complete. Qc is called a completion of M.
X, /tc, T, Cc)
is
Theorem 7.2.14 Let M = (Q, X,
/t, t, C) be an incomplete fuzzy recognizer. Let Mc be a completion of M. Then L(M) = L(Mc) .
Proof. Let x E L(M) . Then 3q, p E Q such that t (p) A /t* (q, x, p) A ~(p) > 0. This implies that tc (p) A ft* (q, x, p) AC(p) > 0. Hence x E L(Mc). Thus L(M) C_ L(Mc) . Now let x E L(Mc). There exists q, p E_ Q such that tc(p) A ft* (q, x, p) A C(p) > 0. This implies that tc(p) > 0. Thus p E Q and so t(p) = tc(p) . Suppose /t* (q, x, p) = 0. Since f,* (q, x, p) > 0 and /t* (q, x, p) = 0, we must have p = t . This is a contradiction since p E Q. Hence /t* (q, x, p) > 0. Since p E Q, C(p) = ~(p) > 0 . Thus t(p) A/t* (q, x, p) A C(p) > 0 and so x E L(M) . Consequently, L(M) = L(Mc) . m Definition 7.2.15 Let M = (Q, X,
/t, t,
C)
be a fuzzy recognizer. Let
S = {q E Q I V {V{L(p) Aw*(p,x, q) I p E Q} I x E X*} > 0}.
Definition 7.2.16 Let M = (Q, X, is called accessible if S = Q.
/t, t, C) be a fuzzy recognizer . Then M
Theorem 7.2.17 Let M = (Q, X, /t, t, C) be a fuzzy recognizer. Then M is accessible if and only if (t * X*) (q) > 0 b'q E Q . m
Theorem 7.2.18 Let M = (Q, X,
/t, t, C) be a fuzzy recognizer. Then = 1 t1 o . C ( ) L(M) (2) Let x E X* . Let A = L(M) . Then
x-'A = (t * x) -1 0 ~, where x-'A = {y E X* I xy E A} .
Proof. (1) The proof is straightforward . (2) Let y E (t * x) -1 o C. Then (t * x) (q) A /t* (q, y, p) A C(p) > 0 for some q, p E Q. This implies that (t * x) (q) > 0 and ft * (q, y, p) A C (p) > 0. Now (t * x) (q) = VTEQ{t(r) A /t* (r, x, q) } > 0 and so t(r) A /t* (r, x, q) > 0 for some r E Q . Thus we have t(r) A /t* (r, x, q) A /t* (q, y, p) A C (p) > 0 for some q, p, r E Q . This implies that t(r) A ft * (r, xy, p) A C (p) > 0 for some p, r E Q. Thus xy E A and so y E x- 'A . Now let y E x-'A . Then xy E A and so there exists p, r E Q such that t(r) n[t* (r, xy, p) AC(p) > 0. This implies that [t*(r,xy,p) > 0. Now y,*(r,xy,p) =VaEQ{[t*(r,x,q)nft*(q,y,p)} > 0. Thus there exists q E Q such that /t* (r, x, q) A /t* (q, y, p) > 0, i.e ., /t* (r, x, q) > 0 and ,t* (q, y, p) > 0 . Now (t * x) (q) = v,EQ{t(s) n w* (s, x, q)} >_ t (r) n y,* (r, x, q) > 0. Hence (t * x) (q) A /t* (q, y, p) A C (p) > 0 for some q, p E Q. Thus y E (t * x) -1 o C. Hence x -'A = (t * x) -1 o C. m © 2002 by Chapman & Hall/CRC
complete Now a=is Let Lemma MA complete QA {(L let well LA(A) =(xa)-'A and xEy-'A (x-'A, *= xXX A QA Ex)-1 defined M Esuch x, 7(QA, aaccessible A A There 77L(MA) Let x-'A) XQA~ = [t* Esuch accessible Define oT Then a,that QA, QA X, = by-'A) (A, IS exists Now y-'A that Let By ltA, xx, Let L(MA) = aThere C(x-'A) Cfuzzy =a, E x-1A) E[0,1] Theorem A {x-1A LA, A X*} A n y-'A) recognizer QA = X (xa)-'A {L ifabe 0mAAmAA Na C =C)(u-'A, recognizer *and fuzzy exist by Define = ~ L(M) ais X* (y-1A, x= AC(x-1A) _ Next AIrecognizable = finite = [0,1] Ixonly 7al, CA {y-1A, Let xThen recognizer = Eb,LA 0a1 >E we X*} x, v-'A) by a-1(x-'A) x-'A, if Hence 0MA 1A) an-1)-'A, X*} z-1A) Ax-'A QA show (ua)-'A z-1A >Let otherwise isLet otherwise, nsuch 0a3, x-1A xsubset ~ y-'A, called is Then (xa)-'A QA NA(al xM This En that E=(a,a2a3)-'A) 0[0,1] finite = A C(z-1A) QA that = < (L* More = = is = aja2 an, recognizable u-'A, of implies MA, MA x-'A a1A, (Q, b-1(u-'A) v-'A A by x)-1 such X* L(MA) finite (a1a2 =on X, It a2, isnA, y-'A v-1A > oT =now an, that aFuzzy Then /t, that (a1a2)-1A) This set 0u-'A, complete CA t,=a2an) for A T) A follows xEClearly = <E there shows all Languages if3 QA, E such AX -'A) 1(ub)-'A xy-'A L(MA) aDefine Ea, for exists fuzzy fuzzy that that X* MA ballE
340
7.
Definition .2.19 recognizer Theorem a
.
.
.2.20
.
Proof. L(M) . : NA
. MA 0
ItA(X-'A, b'x-'A,
.
.
nA
.
if otherwise,
CA
if
.
.
~O .
.
.2 .18,
.2.4,
.
. >_ = > . LA(y- 1A)
© 2002 by Chapman & Hall/CRC
= .
.
.
ftA(A,
Thus Now
if
: C(x_1A)
Set recognizer X. v-1A, Hence ltA By D is Let i.
.
:
LA(X_'A) b'x-'A
.
.
.
. .
. .. .
[tA(A, ANA((a,a2)-1A, NA((aia2 . . . . . .AmA mA .
. ..
.
. ..
. .
and p [t* general, and finite (u-1A, EX*, u,[x] all all Erelations on xso On if(u-'A, xvQ) so x, Thus LA(y-'A) uyv x, denote x-'A A M only u-'A, X*1 is Eto EX* with Now Fuzzy on yyxyX*) index is finite i=1,2, Then is of y, L(M) = constructed the if7 EEX* Ethe E(1)x(2) by the y, v-1A) recognizable -A respect LA, by and if A = A (QA, X*, Suppose X*, Since A v-lA relation the v-'A) Recognizers converse for Then uyv = z-'A by -Clearly, for the union itis Consequently, and ifx, only x>xis *U{ X, follows Theorem equivalence all finite, and Let all > X*1 -A y(A, 0, definition to aEEV'x, ft, -A [x] Since by ,0> congruence ifn} Ex, of yu, lta(y-'A, A in -A A -A x, QA, yA t,Hence only 0may (ft* for yif I-A is vthe X* congruence be C_ z-'A) C) the if are where xfor that Eaand Let EThus A X* aall and (q, 6(ux)-'A E definition X*, is congruence The if X*) not proof X*, and equivalent recognizable all is of Q x, A}, class y-1A xyA finite, x, only only X*1 recognizable, = The p) ltA, x, xu-'A, = Erelation be yrelation (ux)-'A xxIt X*1 [t* of where yz-1A) EL(M) X*I L(MA) > true, if with -A is-A following classes if = ltA(u-'A, -A y-A (y-'A, X*, = The 0(ft* Theorem of easily (uxv -A A v-'A if ifof yv-'A laA yrespect denotes iby subset and is Thus and if [x] > (u-'A, Thus if converse Let finite = =aof is 0E defined xThen x, Theorem and 0, seen is Hence Econgruence for finite {[x] ifonly A only (uy)-'A aassertions z-'A) 7A x, QA) if and X*1 the xof congruence index y,the if x, v-'A) only the to C_Iand that -A X* Vu, and if then ifv-'A) xis on C(x-'A) equivalence C(z-'A) X* --A= xDefine fuzzy ft* Eset y, 6>von trivial X* if -A Let Define only -A only X*} (q, Vu 0> xLet then Eof Define (uxv are X* relation -A MA by is > 0yy,X*, recognizer X*1 all Eif if relation Also, -A = 0ap) if m A equivalent Sincexfor >uyv For y(uy)-'A Eand congruence be X* C(z-'A) if congruence = > class a0uxv tion However, all A the and yxifU{[aj] 0EBy relation of only xEfor if X* Hence x,Since of A fuzzy finite Eis with MA, only X*, and yX* the for all y, by of >Eif A =
7.2.
341
Hence definition
.
. [
and 0
.
.
Let X*, . q, then -A only relation in
.2 .7. .
. .
.
Theorem recognizer for if for all
.2.21
Proof. if for v-'A . [t*
Let
Theorem (1) (2) classes (3) of
.2.22
Proof. the X*1 (2)x(3) : index . respect (3)x(1) : let ai
.
.
.
.e., .2.20.
.
.
. .
. .
. .
.
.
.
.
.
.
. . : .2 .8,
.
.
.
. .. .
.
© 2002 by Chapman & Hall/CRC
.
. .
7. More on Fuzzy Languages
342
finite index, Q is a finite set. Let 0 < m, n, c <_ 1. Define ft : Q x X x Q [0,1] by m
ft([x], a, [y]) _
0
b'[x], [y] E Q, a E X. Define t : Q L
x
-
if [xa] = [y]
otherwise,
[0,1] by n
if [x] =[A]
0
otherwise,
V[x] E Q. Define C : Q ----> [0,1] by if xEA
otherwise, V[x] E Q. Set M = (Q, X, ft, t, C) . Then M is a fuzzy recognizer . Let x E A. Now t([A]) = n > 0 and C([x]) = c > 0. Let x = aja2 . . . an, a2 E X for all i . Now ft*([A], x, [x]) > ft([A], a1, [al])A ft([a1], a2 , [a la2])A ft([aja2], a3, [aja2a3])n . . . A ft([ala2 . . . an-111 any [aja2 . . . an-Ian]) = m A . . . A m = m > 0. Thus i([A]) A [t* QA], x, [x]) A C ([x]) > 0. This implies that x E L(M) . Now let x E L(M) . There exist [y], [z] E Q such that t([y]) A [t * ([y],x, [z]) n C([z]) > 0 . Thus t([y]) > 0, ft * ([y],x, [z] > 0, and C([z]) > 0. By the definition of t, it follows that [y] = [A] . Thus [t* QA], x, [z]) = [t* ([y], x, [z]) > 0 and so [x] = [z] by the definition of ft* . Hence C ([x]) = C([z]) > 0 and so x E A. Consequently, A=L(M) . m
Definition 7.2 .23 Let M1 = (Q1, X,
p1, t1, CI) and M2 = (Q2, X, ft2, t2, C2) be fuzzy recognizers . Then M = M1 UM2 = (Q 1 x Q2, X, ft, nft2, t1 nt2, C1 V
Theorem 7.2.24 Let M1 = (Q1, X, be fuzzy recognizers . Then
p1,
t1, CI) and M2 = (Q2, X, ft2, t2, C2)
(ft, nft2) * ((g1,q2),x,(PI,p2)) =fti(g1,x,PI) nft2(g2,x,p2)
V((g1,q2),x, (PI, P2)) E (Q1 x Q2) x X x (Q1 x Q2) .
Proof. Let ((q1, q2), x, (p1, p2)) E (Q1 x Q2) x X x (Q1 x Q2) and xI = n. If n = 0 or n = 1, then the result is true by definition. Assume it is true for xI =n . Let a E X. Now (ftLnft2) * ((gL,q2),xa,(P1,p2))
= V~(ftLn ft2)*((gL,q2), x, (rL, r2)) A (ft, n ft2) ((r1 , r2), a, (PI, p2)) (r1, r2) E Q1 x Q2} V{fti (q1 , x , r1) n ft2 (q2 , x , r2) n ft1(r1,a,p1) AIt2(r2,a,p2) (r1, r2) E Q1 x Q2} V {fti(g1, x, r1) n ft1(r1, a,p1) I r1 E Q1} n {ft2(g2,x,r2)A ft1(r2,a,p2) I r2 E Q1} fti(g1,xa,p1) nft2(g2,xa,p2) .
© 2002 by Chapman & Hall/CRC
0
7.2 . On Fuzzy Recognizers
34 3
Theorem 7.2 .25 Let Ml = (Q1, X, pl, t i , C1) and M2 = (Q 2 , X, ft2, L2, C2) be complete fuzzy recognizers . Then L(MI U M2 ) = L(MI) U L(M2) . Proof. Let x E L(MI U M2 ) . Then 3(ql, q2), (PI, P2) E Q1 X Q2 such that (LI AL2)(gl,g2) n (ft, A w2)*((gl,q2),x, (PI, P2)) A (C1 V C2)(P1,P2) > 0 . Thus El (ql, q2), (pl, p2) E Q1 X Q2 such that n ft2(g2, x,P2) n (C I (PI) V C2(P2)) > 0tl(gl) n L2(g2) n ft(gl,x,pl) 1 This implies that 3(gl,q2), (PI, P2) E Q1 X Q2 such that (tl(gl)
o ft(gl,x,pl) 1
n C1(Pl)) V (t2(g2) n ft2(g2,x,P2) n C2(P2)) > 0-
Hence EI(gl, q2), (P1,P2) E Q1 X Q2 such that either (t1(gl) n fti(gl, x, pl) n ~1(pl)) > 0 or (t2(g2)nft2(q2,x,P2)AC2(P2)) > 0 . Thus x E L(MI) UL(M2 ) . Hence L(MI U M2 ) C_ L(MI) U L(M2 ) . Now let x E L(MI) U L(M2 ) . Then x E L(MI) or x E L(M2) . Suppose x E L(MI) . Then 3gl,pl E Q1 such that tl(gl) nfti(gl,x,pl) nC 1 (pl) > 0 . Now 3q2 E Q2 such that L2(g2) > 0 . Since M2 is complete, 3P2 E Q2 such that ft2 (q2, x, p2 ) > 0 . Thus we have tl(gl) nL2(g2) > 0, fti(gl,x,pl) nft2(g2 X, P2) > 0, and CI (PI) V C2 (P2) > 0 . Hence (tl n L2)(gl,q2) n (ft l n ft2)*((gl,q2),x, (PI, P2)) n (C1 V C2)(P1,P2) > 0 and sox E L(MIUM2) . Thus L(Ml)UL(M2) C_ L(MIUM2) . Consequently, L(MI U M2 ) = L(MI) U L(M2) . m Definition 7.2 .26 Let Ml = (Q1, X, pl, t i , C1) and M2 = (Q 2 , X, ft2, L2, C2) be fuzzy recognizers. Then M = Ml n M2= (Ql X Q2, X, ft, A ft2, t j n Theorem 7.2 .27 Let Ml = (Q1, X, pl, t i , C1) and M2 = (Q 2 , X, y 2 , t2, C2) be fuzzy recognizers . Then L(M, Proof. Now x E L(M, such that
n
M2) = L(MI)
n m2)
n
L(M2) .
if and only if 3(gl,q2), (PI , P2) E Q1 X Q2
(LI n L2)(gl,g2) n (ft, n ft2)*((gl,q2),x, (P1,P2)) n (C1 n C2)(p1,P2) > 0 if and only if 3(gl,q2), (PI, P2) E Ql X Q2 such that tl(gl) n L2(g2)
o fti(gl, x,pl) n ft2(g2, x,P2)
© 2002 by Chapman & Hall/CRC
n (C I (pl) n C2(P2)) > 0
344
7. More on Fuzzy Languages
if and only if 3(qi, q2), (PI, P2) E Qi X Q2 such that (ti(gi)
o fti(gi,x,PI)
n C,(Pj)) n (L2 (q2) n ft2(g2,x,P2) n C2 (P2)) > 0
if and only if x E L(Mi) n L(M2) . Hence L(MI n M2) = L(MI) n L(M2) . In the proofs of the next two theorems, we use the fact that if M = (Q, X, p) is a ffsm, q, p E Q, and x = xix2 . . . xn, where xi E X, 2 = 1,2 . . . . n, then ft* (q, x,p)
=
V {ft(q, xi, ri) n ft(ri, x2, r2) A . . . nft(rn-1, xn,P) I ri E Q, i = 1, 2 . . . . n - 1} .
The above fact follows from Lemma 6 .2 .2 . Theorem 7.2 .28 Let A, B C_ X* . If A and B are recognizable, then A - B is recognizable. Proof. Let Mi = (Qi, X, pi, ti, C I ) and M2 = (Q2, X, [t2, L2, C2) be recognizers of A and B, respectively. Let Ii = {q E QS I ti(q) > 0 } and TZ = {q E Q2 I Ci (q) >
for i = 1, 2 . Define t ° : Qi x P(Q2) ~ [0,1] by V (q, P) E Q i o
)-~ 0
(gP
ti (q)
P(Q2),
if P~0 if P = Ql .
Define C ° : Qi X P(Q2) ----> [0,1] by V(q, P) E Qi X P(Q2) C'~'(q, P) = V {C2 (P) I P E P} . Define p l Ap 2 : (Q i X P(Q2)) X X X (Q i X P(Q2)) ----> [0,1] as follows :
wiAw2((q, P), c, (q', s2 (P)) _
fti (q~ c, q') n V {ft2 (P1 c1 P') I if q' P E Pp' E s2 (P)} fti (q, c, q')
w1Aw2((q,P),c,(q',s2(P)UI2))
=
Ti, P z,4 0
if q' ~ Ti, P = 0; wi(q,c,q')AV{ft2(P,C,P') IPEP,p'Es2(P)UI2}
if q E Ti, where s2 (P) = {P' E Q2 I lt2(p, C, P) > 0, p E P} ; and fti0ft2 is 0 elsewhere .
© 2002 by Chapman & Hall/CRC
7.2 . On Fuzzy Recognizers
34 5
Let aEAandbEB.Then 3gE11,q'ET1,pE12,p'ET2such that lti (q, a, q~) > 0 and Nt2 (p, b, p~) > 0 . Now ab = ul . . . u21 u2 1 +1
. . .
UZ2 . . . u2j u 2j +1
. . .
u2,k v
where ul E X, v E X*, ij is the smallest such that ij > . . . > il > io and ul . . . u2j E A for j = 1, . . . , k, io = 1 and there does not exist ik+1 such that ul . . . u2,k+1 E A. Let o = ul . . . u2 1 and uj = u2j +1 . . . u2j+1, j = 1, . . . , k - 1 . For all x E X* and VP E P(Q2), let sx (P) = {p E Q2
I
N2(AX,p) > 0,P E P} .
Let Rab
=
s2 (s2
-1 (s2 -2 (. . . s2° (I2) . . . )))U s2 (s2'°-1( s2b-2 ( . . . . .. . . . U s2 (12) . SU1(12) ))) U
(7.1)
Let q" E Q1 be such that [ti (q', b, q") > 0. Now a = ul . . . u2 j for some ij. Let (12)a = s2j-1 (s2j-2( . . .s2°(12) . . .)) . Then (wIAw2)* ((q, 0), ab, (q",Rab))
=
>
V{(wIAw2)*((q, 0), a, (v, R)) n(N'1AN'2)*((v, R), b, (q",Rab)) (v, R) E Q1 X 'P(Q2)1 (wlow2)*((q, 0), a, (q' , (12) a)) n(N'10N'2)*((q~, (12)a), b, (q", Rab)) 0
by the definition of (12)a and since Rab is a continuation of (12)a, i.e ., Rab = ((12)a)b " Conversely, let x E L(M10M2) . Then L ° (q,
O) n (wlow2)*((q, 0), x, (q ", (12)x)) > 0,
where fti(q, x, q") > 0 and (12)x is defined as follows: we have that x = uv, where u = i o . . . ukll and where the uj and v are defined as above (k exists since x E L(M1 0M2 )) . Then (12)x is the right-hand side of equation (7 .1) . Since x E L(M10M2), (ft1 0ft2) * ((q, 0), x, (q", (12)x)) > 0 and so 3j, EIP E 12, s2 2 Thus
~+1 . . .U1~+1v'Tj+1 . . .v,mv(p)
u2j+ 1 . . . u2j+1 u2j+1
. ..
ukv
E (12 ) x
nT2 "
E B . Since ul . . . u2 , E A, x E A " B.
m
Theorem 7.2 .29 Let A C X* be recognizable . Then A* is recognizable.
© 2002 by Chapman & Hall/CRC
34 6
7. More
Proof. Let
M = (Q, X, /t, t,
X x P(Q) ----> [0,1]
,t'(P, ,t'(P,
as follows :
on Fuzzy Languages
C) be a recognizer of A. Define
/t' : P(Q) x
c, s'(P)) = V{w(p, c, q)
I p E
P,
q E s'(P) I if s , (P) n T = 0
c, q)
I p E
P,
q E
c, sc(P) U I)
= v{w(p, It'(P,
sc(P)
U I} if
sc(P)
n T z,4
0
c, P') = 0 otherwise,
where c E X, P, P E P(Q), T = {q E Q I C(q) > 0}, I = {q E Q I t(q) > 0}, and sc(P) = {q E Q I ft(p, c, q) > 0, p E P} . Define C' : P(Q) ----> [0,1] by C'(P) = V{C(p) I p E P} and t' : P(Q) [0,1] by t'(I) = V{ t(q) I q E I}, L' is 0 otherwise, T' = {P E P(Q) I C(P) > o} = {P E P(Q) I P n T :A 0} . Let M' = (P(Q), X, ft', t', C') . Let x E A* . Then x = al a2 . . . a , where a2 E A and if a2 = a21 . . . ail,, for a2,, . , ail,, E X, 3" m2 < n2 such that . . . . . . , n. Let Ix = sa,, ( . . . sae (sal (I) U I) U . . . ) U I . = a21 a2-E A, i 1, 2, > l,s a l ( Now p' (I, x, Ix) ft* (I,a I)UI)A N'*(,a , (I)UI,a2 ,sa2(sal(I)UI)U I)n . . . n t'* (8 a,,-1 (. . . sae (,a1 (I) U I) U . . . ) U I, an , Ia) > 0 since 3i E I, 3p E sat (I) n T such that /t* (i, al, p) > 0 (because al E L(M)), 3i' E I, 3p' E sae (sal (I) U I) n T such that /t* (i', a2,p') > 0 (because a2 E L(M)) and so on. Thus x E L(M) . Hence A* C_ L(M) . Let y E L(M) . Then 3P E T' such that y'* (I, y, P) > 0. Now suppose 3k such that y = ul . . . UZ1UZ1+1 . . . UZj u2j +1 . . . UZkv,
where ul . . . uz1 E A with i l smallest and the ii are the smallest such that u2j-1+1 . . . u2j A, j = 2, . . . , k. Let ul = ul . . . uz1 and uj E u2j-1+1 . . . u2j, j = 2, . . . , k. Then ul . . . u2j-1 E A* and P = (I) ., where (I)~ = 81 (8'k( . . . s -2 ( 8 -1 (1) U I) U . . . I) U I) U I . There exists j, 3q E I such that /t* (q, uj . . . ukv, p) > 0 for some p E (i) y nT . Thus ft'*((I)~1 .. .~--1, uj . . . ukv, (I) y) > 0. Hence uj . . . ukv E A* . If no such k exists, then a similar argument shows that y E A. Thus y E A* . Hence L(M') C A* . Consequently L(M) = A* . m If L(M) is the language recognized by an incomplete fuzzy recognizer, we showed that there is a completion Mc of M such that L(Mc) = L(M) . We also showed that if A is a recognizable set of words, then there is a complete accessible fuzzy recognizer MA such that L(MA) = A. If A and B are recognizable sets of words, then A - B and A* are recognizable . These results are significant in that they lay the groundwork for determining methods of decomposing recognizable sets and thus for giving a constructive characterization of recognizable sets. In particular, we hope to show an analog of Kleene's result for fuzzy finite state machines, namely, that the class of recognizable subsets of X* equals the class of all regular subsets of X* . © 2002 by Chapman & Hall/CRC
7.3 . Minimal Fuzzy Recognizers 7 .3
34 7
Minimal Fuzzy Recognizers
In this section, we show that for any fuzzy recognizer M there is a deterministic fuzzy recognizer Md with the same behavior, Theorem 7.3 .8 . Then we show that there is complete accessible deterministic fuzzy recognizer MdA with the same behavior as M and Md and that is minimal, Theorem 7.3.11. Our long term goal is to develop methods of decomposing a recognizable set of a fuzzy finite state machine . One method would be to follow along the lines of Kleene to give a constructive characterization of a recognizable set . In this section, we lay the foundation for the accomplishment of our goal . Clearly, if M = (Q, X, ft, t, C) is a fuzzy recognizer, then N = (Q, X, ft) is a fuzzy finite state machine . We call N the fuzzy finite state machine associated with the fuzzy recognizer M. Definition 7.3 .1 Let M = (Q, X, /t, t, C) be a fuzzy recognizer. Let
S = {q E Q I V {V{L(p) n [t * (p, x, q) I p E Q} I x E X*} > 0} . Definition 7.3 .2 Let M = (Q, X, /t, t, C) be a fuzzy recognizer. Then M
is called accessible if S = Q.
Definition 7.3 .3 Let M = (Q, X, /t) be a ffsm. Let a : Q ----> [0,1], x E X*,
and A C X* . Define (1) a * x : Q ----> [0,1] by
* (a * x) (p) = V{a(q) n ft (q, x, p) I q E Q} VP E Q, (2)a*A :Q----> [0,1] a*A=UxEAa*x. Let M = (Q, X, /t, t, C) be a fuzzy recognizer. Then by Theorem 7.2 .17, M is accessible if and only if (t * X*) (q) > 0 b'q E Q . Definition 7.3 .4 Let A C_ X* . Then A is called recognizable if 3 a fuzzy
recognizer M such that A = L(M) .
Let Q and X be finite nonempty sets and let /t : Q x X x Q ---> [0,1]. /t is called a fuzzy function of Q x X into Q if for all q E Q, a E X, if ft(q, a, p) > 0 and ft(q, a,p~) > 0 for some p, p' E Q, then p = p~ . Theorem 7.3 .5 Let M = (Q, X, /t, t, T) be a fuzzy recognizer. Then /t is
a fuzzy function of Q x X into Q if and only if /t* is a fuzzy function of Q x X* into Q.
© 2002 by Chapman & Hall/CRC
7. More on Fuzzy Languages
34 8
Proof. Suppose ft is a fuzzy function. Let q E Q and x E X*. Suppose p* (q, x, p) > 0 and /t* (q, x, p') > 0 for some p, p' E Q. If x = A, then p = q = p' . Suppose x z,4 A. Let x = ala2 . . . an E X*, a2 E X. There exists gi~g2~ . . . ,qn-l~gi~q2, . . . q'n -1 E Q such that ft(g, al, gl) nft(gl, a2, g2) n . . .A /t(gn-l, an,p) >Oand/ (g, ai, gi)nft(gi, a2, g2)n . . .h/t (gn-1, an, p~) > 0. This implies that ft(q, al, ql) > 0, ft(gi, a2+1, qZ+1) > 0, i = 1, 2, . . . , n-2, 1, 2, . . . , n - 2, ft(gn-1, an,p) > 0, ft(q, a,, qi) > 0, ft(q', ai+l, q2+1) > 0, i 0. Now 0 and ft (q, 0. Since ft is a ft(gn_1, an,p') > P(q, al, ql) > al, qi) > fuzzy function, ql = ql . Suppose qj = qj , j = 1, 2, . . . , i, i < n - 2. Now ft(gi, a2+1, qZ+1) > 0 and ft(gi, a2+,, q2+1) > 0 implies that qZ+1 = qZ+1 since ft is a fuzzy function . Hence by induction qj = qj , j = 1, 2, . . . , n-1 . Hence * f (qn-1, an,p) > 0 and f (qn-1, an, P') > 0 implies that p = p' . Thus ft is a fuzzy function . The converse is trivial. m
Definition 7.3.6 A deterministic fuzzy necognizen is a fuzzy recog-
nizer Md = (Qd, X, ft, t, T) such that (1) there exists a unique so E Qd such that t(so) > 0 ; so is called the initial state, (2) ft is a fuzzy function of Q x X into Q, and * (3) for all x E X*, there exists a unique qx E Qd such that ft (so, x, qx ) > 0.
Let Md = (Qd, X, ft, t, T) be a deterministic fuzzy recognizer. Let Cd = I T(d) > 0} . Cd is called the set of final states of Md .
{q E Qd
Theorem 7.3.7 Let M = (Q, X, ft, t, T) be a fuzzy recognizer. Suppose M is complete and ft is a fuzzy function of Q x X into Q. Let so E Q. Then the following are equivalent. (1) For all a E X, there exists a unique qa E Q such that ft(so, a, qa) > 0 . (2) For all x E X*, there exists a unique qx E Q such that ft * (so, x, qx) > 0.
Proof. (1)x(2) : Let x E X* and Ixl = n. If x = A, i .e., n = 0, then * * ft (s o , A, s o ) = 1 > 0 and if ft (s o , A, p) > 0, then by the definition of ft * , so = p. Suppose the result is true for all y E X* such that jyj < Ixl , where Ixl = n >_ 1 . Let x = ya, where y E X*, a E X, jyj = n - 1. By the induction hypothesis, there exists a unique q. E Q such that ft * (so, y, q,) > 0. Since M is complete, there exists p E Q such that ft (q., a, p) > 0. Thus * * ft (s o , x, p) >_ ft (s o , y, q,) A ft (q., a, p) > 0. Since ft is a fuzzy function of Q x X into Q, ft * is a fuzzy function of Q x X* into Q by Theorem 7.3.5 . Thus if ft * (so, x, p) > 0 and ft * (so, x, p') > 0 for some p,p' E Q, then p = p' . It now follows that there exists a unique qx E Q such that ft* (so, x, qx) > 0 . (2)x(1) : Immediate . m
Theorem 7.3.8 For each fuzzy recognizer Mn = (Q, X, ft, t,
one can construct a deterministic fuzzy recognizer Md = (Qd, X, ft, t, ~) such that L(Md) = L(M.) .
© 2002 by Chapman & Hall/CRC
7.3 . Minimal Fuzzy Recognizers
34 9
Proof. For all x E X*, set Qx =
{q'
E Q I Elq E Q such that t(q) A /t* (q, x, q') > 0} .
Then QA = {q E Q I t(q) > 0} .
Let Qd
= LQx I x E X*} .
2 l`wx) _
Define i : Qd ~ [0,1] by VQx E Qd, V{t(q) I q E QA}
0
if x = A if x :?~ A
Let Cd = {Qx E Qd I C(q) > 0 for some q E Qx }. Define T : Cd VQx E Cd, T(Qx) = V{C(q) I q E Qx} . Define v : Qd X X X Qd d(Q,, a, Qx) E Qd X X X Qd, v(Q,, a, Qx) =
[0,1] by [0,1] by
V{ft* (q, y, q') A ft(q', a, r) I q E Qy, q' E Q, r E Qya} if x = ya
0
otherwise .
Let Md = (Qd, X, v, i,T) . We now show that L (M.) = L(Md) . Now x E L(Mn) if and only if t(q)nft* (q, x, q')AC(q') > 0 for some q, q' E Q if and only if C (q') > 0 for some q' E Qx if and only if T(Qx) > 0. It suffices to show that v* (QA, x, Qx) > 0 for then x E L(Md) if and only if i(QA) A v*(QA,x,Qx) AT(Qx ) > 0 if and only if T(Qx) > 0 (since i(QA) > 0 and v* (QA, x, Qx) > 0) if and only if x E L(Mn) . We show v* (QA, x, Qx ) > 0 by induction on Ix I . Suppose Ix I = 0 . Then x = A and v* (QA, A, QA) = 1 > 0. Suppose Ixj > 1 and the result is true for all y E X* such that Iyj < Ixj . Let x = ya, where a E X. Then v* (QA, x, Qx) = V{v* (QA, y, r) A v(r, a, Qx) I r E Qd } and v* (QA, y, Qv) > 0 by the induction hypothesis. Hence it suffices to show that v(QV, a, Qx) > 0, but the latter inequality is true by the definition of v since x = ya . m Let Md = (Qd, X, ft, t, T) be a complete accessible deterministic fuzzy recognizer and let so denote the initial state of Md . For x E X*, we let qx E Qd denote the unique state such that ft* (so , x, qx) > 0 . Theorem 7.3.9 Let Md = (Qd, X, ft, t, T) be a complete accessible deter-
ministic fuzzy recognizer. Let so be the initial state of Md . For all q E Qd, let q-1 o T = {y E X* I y,* (q, y, p) A T(p) > 0 for some p E Qd}. Let A= L(Md) . (1) For all x E X*, x-1 A= qx 1 oT . (2) Let q E Qd . Then there exists x E X* such that q-1 oT = x-1 A and q=qx (3) Let q E Qd be such that T(q) > 0. Then q-1 o T = x -1 A for some xEA . (4) A=A-1 A=so 1 o T . (5) Let x = a1a2 . . . an E X*, where a2 E X, i = 1, 2, . . . , n. Then
/a'*(so,x,gx) = ft(so,a,,gal) Aft(gal,a2,qalaz) A . . . Aft(ga l . . .a,,_l ,an,qx) .
© 2002 by Chapman & Hall/CRC
7. More on Fuzzy Languages
35 0
Proof. (1) Let y E x-1A . Then xy E A and so t(so) A /t* (so , xy, p) A > 0 for some p E Qd . This implies that ft * (so, xy, p) > 0. Thus there exists q E Qd such that /t* (so, x, q) A /t* (q, y, p) > 0. Hence /t* (so , x, q) > 0 . Since Md is deterministic, q = qx . Hence t(so) A/t*(so, x, qx)A /t*(qx , y, p) A 1 1 1 T(p) > 0. Thus y E qx o T. Hence x-1A C_ qx o T. Now let y E qx o T . Then ft * (gx,y,p) AT(p) > 0 for some p E Qd. This implies that t(so)A la' * (qx, y, p) n T (p) > 0. Now [t* (so, x, qx) > 0. Hence t(so)A [t* (80, x, qx) A y,* (qx , y, p) AT(p) > 0 for some p E Qd. Thus t(so) A /t* (so , xy,p) AT(p) > 0 for some p E Qd. Hence xy E A or y E x-1A . It now follows that x-1A = qx 1 o T. (2) Let q E Qd . Since Md is accessible, there exists x E X* such that * (so, x, q) > 0. Since Md is deterministic, it follows that q = qx . By (1), ft x-1A = qx 1 o T = q-1 o T . (3) By (2), q-1 oT = x -1A for some x E X* . Since T(q) > 0, /t* (q, A, q) A T(q) >0andsoAEq-1 oT . Thus AEx-1A and so xEA . (4) Let y E A. Then t(so) A/t*(so, y, q) AT(q) > 0 for some q E Qd. This implies that ft* (so , y, q) A T(q) > 0 for some q E Qd and so y E so1 o T . Thus A C sot o T. Now let y E sot oT. Then W (so, y, q) AT(q) > 0 for some q E Qd. Thus t(so) A [t* (so, y, q) AT(q) > 0 for some q E Qd and so y E A . It now follows that A = so t o T. (5) Now N'* (s0, x, qx) = V {ft(s0, al, ql) n ft(gl, a2, q2) . . . Aft (qn-1, an, qx) ql ~ q2, . . . ~ qn-1 E Qd} . Since Qd is finite, there exists q1, q2, . . . , qn-1 E Qd such that y,*(so, x, qx ) = y,(so, al, ql)n ft(gl, a2, q2) . . . n ft (gn-1, an, qx) . Since /t*(so, x, qx) > 0, ft(so, al, ql) n ft(gl, a2, q2) n ft(g2, a3, q3)n . . . A N(qn-1, an, qx) > 0. This implies that ft(so, a1, ql) > 0 and so q1 = qal since Md is deterministic . Now ft(so, a1, qa l )A f (qal, a2, q2) > 0 implies that [t* (so, a1a2 , q2 ) > 0 and since Md is deterministic q2 = gala, . We see that an argument by induction will yield qZ = gal ...ai for all i = 1, 2, . . . , n - 1 . T(p)
Theorem 7.3.10 Let A be a recognizable subset of X* . Then there exists a complete accessible deterministic fuzzy recognizer MdA such that L(MdA) _ A. Proof. Let Md = (Qd, X, ft, t, T) be a deterministic fuzzy recognizer such that A = L(Md) . Since Md is deterministic, there exists a unique so E Qd such that t(so) > 0. Let QdA = {x-1 A I x E X*}. Let MA =V{ft(q,a,p) I q,p E Q, a E X} . Then 1 >_ MA > 0. Let 0 < to <_ 1. Define ydA : QdA x X x QdA ~ [0,1] by ma ftda(x-1A, a, y-'A) _ ~ 0
© 2002 by Chapman & Hall/CRC
if (xa) -1A = y-1A otherwise,
7.3. Minimal Fuzzy Recognizers
351
V'x - IA, y - IA E QdA, a E X. Define QdA : QA ~ [0,1] by l A) _ t(so) - { 0
LdA(x
if x-'A = A
otherwise,
V'x- 'A E QA . Define TdA : QA ~ [0,1] by TdA(x-'A)
_
CA
0
if x E A
otherwise .
Set MdA = (QdA, X, NdA, tdA, TdA) . Next we show that MdA is a complete accessible fuzzy deterministic recognizer such that L(MdA) = A. Clearly QA(A) = t(so) > 0 and LdA(x- 'A) = 0 if A :?~ x- 'A . Thus MdA has a unique initial state. Let x- 'A, y-'A, u- 'A, v-l A E QdA, a, b E X. Let (x- 'A, a, y- 'A) _ (u -'A, b, v-'A) . Then x- 'A = u-'A, y- 'A = v-'A, and a = b. Now (xa) -'A = a-'(x- 'A) = b- '(u -'A) = (ub) -'A . Hence (xa) - 'A = y-'A if and only if (ua) -l A = v - 'A . This shows that PdA is well defined . Let x -I A, y - IA, z-IA E QdA and ltdA(x-'A, a, y- 'A) > 0 and PdA(x-' A, a, z-'A) > 0 .
Then y- 'A = (xa) - 'A = z-'A . Hence MdA is deterministic . By Theorem 7.3.9, QdA is a finite set . Clearly MdA is a complete accessible fuzzy recognizer. Let x E A. Then TdA(x-'A) = CA > 0. Let x = ala2 . . . an, a2 E X for all i . Now ltdA(A, x, x -' A)
>_ = = >
ladA(A, al, al'A) A ttdA(al 1A , a2, (ala2) -'A)A PdA((a,a2)`A, a2, (a,a2a3)`A) A . . . nltdA((ala2 . . . an_l) -l A,an,(ala2 . . . an) - 'A) mAAmAA . . .AmA mA 0.
Thus LdA(A) A ltdA(A, x, x -1 A) A TdA(x -1 A) > 0. This implies that x E L(MdA) . Now let x E L(MdA) . There exists z- 'A E QdA such that LdA(A) A ltdA(A, x, z- I A) ATdA(z -'A) > 0 . Thus LdA(A) > 0, ttdA(A, x, z- 'A) > 0, and TdA(z-'A) > 0. Now ltdA(A, x, z- 'A) > 0 implies that x - IA = z-IA by the definition of ltdA . Hence TdA(x-'A) = TdA(z -'A) > 0 and so x E A. Consequently, A = L(MdA) . 0 Theorem 7.3.11 Let A C X* be recognizable . Suppose Md = (Qd, X, ft,
t, T) is a complete accessible deterministic fuzzy recognizer with behavior A. Let MdA be the complete accessible deterministic fuzzy recognizer as constructed in the proof of Theorem 7.3.10. Then 3 a function f : Qd ~ QdA such that
© 2002 by Chapman & Hall/CRC
352
7. More on Fuzzy Languages (1)
(2) {X - ' A (3) (4)
f (so) = A ; f -' (FdA) = Fd, where Fd = {q E Qd I T(q) > 0} E QdA I TdA(x - 'A) > 0} ; ltdA(f (q), a, f (p)) >_ ft (q, a, p) for all p, q E Qd, a E X ; f is surjective .
and
FdA =
Proof. Define f : Qd ~ QdA by b'q E Qd, f (q) = q -1 o T . By Theorem 7.3.9(3), f maps Qd into QdA . (1) f (s o) = so' o T = A by Theorem 7.3.9(4) . (2) Let q E Fd . Then T(q) > 0. There exists t E A such that q-' o T = t - 'A by Theorem 7.3 .9(3) . Now t E A = L(MdA ) . Hence wdA(A, t, y 'A) A TdA(y 'A) > 0 for some y-1 A . This implies that wdA(A, t, y - 1 A) > 0 and TdA(y - 'A) > 0. Now wdA(A, t, y - 'A) > 0 implies that t -1 A = y-1A and TdA(y 'A) > 0 implies that y-1 A E FdA . Hence f (q) = q-' o T = t - 'A = y - 'A E FdA, i .e ., q E f - '(FdA) . Suppose q E f - '(FdA) . Then TdA(q - ' o T) = TdA(f (q)) > 0. Now q - ' o T = t- 'A for some t E X* . Thus TdA(t - 'A) > 0 and by the definition of TdA it follows that t E A . Since t E A, A E t - 'A = q -1 o T . Hence /t* (q, A, r) A T (r) > 0 for some r E Qd . This implies that q = r . Thus T(q) > 0 and so q E Fd . Consequently f _' (FdA) = Fd . (3) Let q, p E Qd . Now f (q) = q -1 o T and f (q) = p -1 o T . By Theorem 7.3.9, there exists x, y E X* such that q -1 oT = x - 'A and p-' oT = y-'A . Let a E X. Suppose lltdA(f (q), a, f (p)) = 0. Then ltdA(x-'A, a, y - 1 A) = 0 and so (xa) - 'A z,4 y -1 A . We claim that ft (q, a, p) = 0. Suppose ft(q, a, p) > 0. Either there exists t E (xa) - 'A such that t y - 'A or there exists t E y - 'A such that t ~ (xa) - 'A . First suppose that there exists t E (xa) - 'A such that t ~ y - 'A. Since xat E A, /t* (so, xat, r) A T (r) > 0 for some r E Qd . Thus ft* (so, xat, r) > 0. This implies that there exists q', p' E Qd such that /t* (so, x, q') A N (q', a, p') A /t* (p', t, r) > 0 . Since Md is deterministic, q' = q (note this follows from the proof of Theorem 7.3.9 by the choice of x) . Thus ft (q, a, p') > 0 and since Md is deterministic, it follows that p = p' . Hence ft * (p, t, r) > 0 . By the choice of y (as in the proof of Theorem 7.3.9), ft* (so , y, p) > 0. It now follows that ft* (so , y, p) A y* (p, t, r) A T(r) > 0 and so t E y - 1 A, a contradiction. Now suppose there exists t E y - 'A such that t ~ (xa) -'A . Then xat ~ A . Now yt E A . Thus /t* (so, yt, r) A T (r) > 0 for some r E Qd . Thus there exists p" E Qd such that ft * (so, y, p") A ft * (p", t, r) > 0. From this it follows that p = p" . Thus /t* (p, t, r) > 0. Hence y,* (so, x, q) A ft (q, a, p) A /t* (p, t, r) A T (r) > 0 and so xat E A, a contradiction. Hence ft (q, a, p) = 0 . From the definition of /tdA, it now follows that lltdA(f (q), a, f (p)) > ft (q, a, p) . (4) Let x- ' A E QdA . By Theorem 7.3 .9, x-' A = qx' o T . Thus f is surjective. We regard the recognizer MdA as being a minimal complete recognizer of the recognizable subset A, where the term "minimal" refers to © 2002 by Chapman & Hall/CRC
7.4 . Fuzzy Recognizers and Recognizable Sets
353
the properties described in Theorem 7.3 .11 ; in particular, (4) implies that IQdAI <_ IQdj
7.4
Fuzzy Recognizers and Recognizable Sets
In the next five sections, we present the work of [118] . In [118], the definitions of a fuzzy recognizer, Definition 7.4 .1, the recognition of a word, Definition 7.6 .9, accessibility, Definition 7.7.1, and so on are equivalent to the ones given above, i .e., Definition 7.2 .8, Definition 7.2 .10, and Definition 7.2 .16, respectively. However the approach differs and additional results are obtained. Hence we use notation that is compatible with that of [118]. The idea of a reversal, inverse image, accessible part, coaccessible part, and trim part regarding fuzzy recognizers are introduced and their properties are discussed . We characterize the words recognized by a fuzzy recognizer and prove fuzzy recognizability of several crisp sets. We prove that if a set of words is recognized by a fuzzy recognizer, then it is also recognized by its accessible and coaccessible parts . We prove similar results for a complete fuzzy recognizer. We also give a procedure to construct a complete fuzzy recognizer from a given fuzzy recognizer with the property that they recognize the same subset . Let M = (Q, X, /t) denote a fuzzy finite state machine and f : (X')* X* be a monoid homomorphism, where X' is a nonempty set. If f (X') C X U {A}, then f is called a fine homomorphism. Definition 7.4.1 A fuzzy X-recognizes of a fuzzy finite state machine M = (Q, X, /t) is a triple .M = (M, t, T), where t and T are fuzzy subsets of Q. t is called a fuzzy set of initial states and T is called a fuzzy set of final states . A fuzzy X-recognizes will be called a recognizer when the set of input symbols X is understood. Let M = (Q, X, /t) and M' = (Q', X', /t') be fuzzy finite state machines . Define ft x~ :(QxQ')x(XxX')x(QxQ')~[0,1] as follows :
w x ,a ((p, p), (a, a), (q, q)) = ft (p, a, q) A ,a (p, a, q) .
Recall that the fuzzy finite state machine Mx M' = (Q x Q', X x X', ft x /t') is called the direct product of M and M' . Let M = (Q, X, /t) and M' = (Q', X', /t') be fuzzy finite state machines . Define ,tn,a :(QxQ')xXx(QxQ')----> [0,1] © 2002 by Chapman & Hall/CRC
354
7.
More
on Fuzzy Languages
as follows : (w n w) ((p, p), a, (q, q))
= ft (p, a, q)
n la'(p, a, q) .
Recall that the fuzzy finite state machine M n M' = (Q is called the restricted direct product of M and M' . Definition 7.4.2 Let M state machines such that
and M' = 01 . Define
= (Q, X, /t)
Q n Q'
= (Q', X, /t')
x Q', X, /t
n /t')
be fuzzy finite
/tu/t' :(QUQ')XXX(QUQ'),[0,1]
as follows:
(w
U w) (p, a, q)
=
The fuzzy finite state machine and M' .
join of M
f0, a, q)
if p, q E Q
0
otherwise.
w' (p, a, q)
if p, q E Q'
M V M' = (Q U Q', X, /t U /t') is
called the
We recall the definition of a sub-fuzzy finite state machine . Let M = finite state machine . A fuzzy finite state machine called a sub-fuzzy finite state machine of M, written
(Q, X, /t) be a fuzzy MS = (Q s , Xs , ft') is Ms CM,if
(i) QS C Q, XS C X, (n) its = ItIQ .XX.XQ. .
and
Note again that the definition differs from that of a submachine is not required.
7.5
of
a sub-fuzzy finite state machine of M Definition 6.7.7, in that X s = X
of M,
Operations on (Fuzzy) Subsets
Next, we introduce some notation that will simplify the proofs of some of the theorems . Let A C_ X*, B C_ X*, and a, b E X* . Then N1. AB -1 = {x E X* xb E A, for some b E B} . N2. A-1 B = {x E X* ax E B, for some a E A} . N3. Ab-1 = {x E X* I xb E A} . N4. a -1 B = {x E X* I ax E B} . N5. AB = {xy I x E A, y E B} . N6. Ab = {xb I x E A} . N7. aB = {ay I y E B} . Clearly, AB -1 = UbEBAb -1 , A-1 B = UaEAa -1 B, and AB = UbEBAb = UaEAaB .
Let
s : Q ~ [0,1], -y : Q ~ [0,1], x E X*, p E Q, and A C X* .
© 2002 by Chapman & Hall/CRC
Then
7.5. Operations on (Fuzzy) Subsets
355
N8. p * x : Q ----> [0,1] is defined by b'q E Q, p * x (q) = ft * (p, x, q) .
N9. p * A : Q ----> [0,1] is defined by b'q E Q, p * A(q) = V {ft*(p, y, q)
I y
E A} .
N10 . 6 * x : Q ----> [0,1] is defined by b'q E Q, 6 * x(q) = V{6(p) n ft* (p, x, q)
I p
E Q} .
N11 . 6 * A : Q ----> [0,1] is defined by b'q E Q, 6 * A(q) = V{6(p) A w* (p, x, q) I p E Q, x E A} .
N12 . 6 * x-1 : Q ----> [0,1] is defined by b'q E Q, 6*
x-1(q)
= V{6(p)
n ft * (q, x, p) I p
E Q} .
N13 . 6 * A-1 : Q ----> [0,1] is defined by b'q E Q, 6 * A-1 (q) = V{6(p) A w*(q, x,p)
Ip
E Q, x E A} .
Clearly p*A= U,EAP*Y, 6*A= UyEA6*y, and 6*A-1 = UvEA6*Y-1 . The following results are easily proven . Theorem 7.5.1 Let 6 : Q ----> [0,1], x, y E X*, and A, B C X* . Then (1) (6 * x) * y = 6 * (xy) ; (2) (6*A)*y=6*(Ay) ; (3) (6 * x) * B = 6 * (xB) ; (4) (6*A)*B=6*(AB) ; ; (5) (6 * x-1) * y -1 = 6 * (yx)-1 A-1) y-1 * = 6 * (yA)-1 ; (6) (6 * x-1) -1 * B = 6 * (Bx)-1 ; (7) (6 * A-1) * B-1 = 6 * (BA)-1 . (8) (6 *
Theorem 7.5.2 Let 6, 61, 62 be fuzzy subsets of Q and let x, y E X* . Then the following properties hold: (1) 6*A=6; (2) (61U62)*x=(61* x)U(6 2 *x) ; (3) (61n 62)*x=( 6 1* x)n(62*x) ; (4) ( 6 1 U 62) * x -1 = ( 6 1 * x -1 ) U (62 * x (5) (61 n 62) * x -1 = (61 * x -1 ) n (62 * x (6) x0 * x = x0, where x0 is the characteristic function of 01 in Q; (7) xQ * x = UpEQp * x, where xQ is the characteristic function of Q. 0 © 2002 by Chapman & Hall/CRC
356
7. More on Fuzzy Languages Let S : Q ----> [0,1], 'Y : Q ----> [0,1] . N14 . Define 6#-y : X* ----> [0,1] by b'x E X*, 6#y(x) = V {6(p) A y(q) A ft* (p, x, q) I p, q E Q}. N15 . S-1 o/-, ,y = {x E X* I S * y(x) > 0} . When ft is understood, we sometimes write S -1 o 'Y for S -1
oN 'Y .
Theorem 7.5.3 Let S : Q ---> [0,1] and x E X* . Then S * XQ(x) > 0 if and only if 3q E Q such that S * x(q) > 0. Proof. 6 * XQ (x) > 0 ~ V{6(p) A XQ(q) A ft*(p, x, q) I p, q E Q} > 0 ~ V{6(p) A w* (p, x, q) I p, q E Q} > 0 ~ V{6(p) A w* (p, x, q) I p E Q} > 0 for somegEQ~6*x(q)>0. Theorem 7.5.4 Let S and 'Y be fuzzy subsets of Q, q E Q, A, B C_ X*, and x, y E X* . Then the following properties hold: -1 ; (1/ b-1 o ('y * A-1) _ (b -1 o'y)A (2) b -1 o ('y * x-1) _ (b -1 o y)x -1 i (3) (6 A) -t o -y A -'(6-1 o -y) ; (4) (b * x) -1 o r}' = x -1 (b -1 o r}') ; (5) (q * A) -1 o 'y = A -1 (q -1 o ry) ; (6)
(q * x) -1
o 'y = x-1 (q -1 o -y) .
Proof. We prove (1), (3), and (5) . We ask the reader to verify (2), (4), and (6) . (1) z E S -1 o ('Y* A -1 ) ~ S#('Y* A -1 )(z) > 0 ~ 6(po) n ('y* A -1 )(qo) n ft * (po, z, qo) > 0 for some po, qo E Q ~ 6(po) n -y (to) n ft * (qo, xo, to) n ft * (po, z, qo) > 0 for some po, qo, to E Q, xo E A ~ S(po)n'y(to)n[ft * (po, z, qo) Aft* (qo, xo, to)] > 0 for some po, qo, to E Q, xo E A ~ 6(po) n 'y(to) n /t* (po, zxo, to) > 0 for some po, to E Q, xo E A ~ zxo E S -1 o 'Y for some xo E A ~ z E (S-1 o y)A -1 . (3) z E (S * A) -1 o y ~ ((6 * A)-1#-y)(z) > 0 ~ (S * A) (po) A y(go)A ft * (po, z, qo) > 0 for some po, qo E Q ~ 6(to) n [t* (to, xo,po) n'y(go) n 6 t o ) n 'y(go) n ft * (po, z, qo) > 0 for some po, qo, to E Q, xo E A o y for some y* (t o , xoz, qo ) > 0 for some qo, t o E Q, xo E A ~ xoz E S xo E A ~ z E A -1 (S -1 o y) . (5) y E (q * A) -1 o y ~ (q * A) -'#y(y) > 0 ~ q * A(po) A y(qo) A ft * (po, y, qo) > 0 for some po, qo E Q ~ ft* (q, x,po) A y(go) n ft * (po, y, qo) > 0 for some po, qo E Q, y E A ~ 'y(qo) n [ft* (q, x,Po) n ft* (po, y, qo)] > 0 for some po, qo E Q, y E A y(qo) A /t* (q, xy, qo ) > 0 for some qo E Q, yEA~?yEA -1 (q -1 oy) . N16 . Let 61 : Q ----> [0,1] and 62 : Q' ----> [0,1] . Then define 61 n62 QxQ'-[0,1] by d(q,q')EQxQ', (b1 n62) (q, q) = 61 (q) n 62 (q) . © 2002 by Chapman & Hall/CRC
7.5 . Operations on (Fuzzy) Subsets
357
N17. Let 6 1 : Q ~ [0,1], 62 : Q' ~ [0,1] be such that Q n Q' _ 0 . Then define 6 1 U 62 : Q U Q' ~ [0,1] by b'q E Q, 61(q) (61 U 62) (q) - { 62(q)
if q E Q . if q E Q
Theorem 7.5 .5 Let M = (Q, X, /t) and M' = (Q', X, /t') be fuzzy finite state machines. Let 61,ryi be fuzzy subsets of Q and 62, 'Y2 be fuzzy subsets of Q' . Then the following properties hold. (1) (61 U 62) -1 0 NUN' ('Y1 U -Y2) = (6 1 1 o N 'Yi) U (62 1 Off' 'Y2) ; (2) (61 n 62) -1 0 /"n/a , (-yj n -Y2) = (6 1 1 of" 'Yl) n (62 1 0/1' -Y2)Proof. (1) Let x E (61U62)-10('YJU'Y2) . Then (61U62)*(-YJU-Y2)(x) > 0. Thus (61U62)(p)A(ylUy2)(q)A(ftUft')*(p,x,q) > 0 for somep,q E QUQ' . It follows that both p, q belong to either Q or Q' . For, if p E Q and q E Q'and vice versa, then by definition (ft U ft') * (p, x, q) = 0 and consequently (61 U 62) (p) A (-yj U'Y2)(q) A (/t U ft) *(p, x, q) = 0, a contradiction. If p, q E Q, then clearly 61 (p) A yl (q) A ft* (p, x, q) = (61 U 62) (p) A ('Y1 U '2) (q) A (/t U /t')* (p, x, q) > 0. Therefore, 61 #yl (x) > 0 and hence x E 61 1 o ,yl . Similarly, if p, q E Q' , then x E 62 1 0 'Y2 * On the other hand, let x E 6 -1 1 o yl . Then 61 (p) Ayl (q) A ft (p, x, q) > 0 for some p, q E Q, i.e., (61 U 62) (p) n (-yj U 'f2) (q) n (ft U ft') * (p, x, q) > 0. A similar situation holds if x E 62 1 0 y2 . (2) x E (6 1 n 62 ) -1 0 ('Y, n -Y2) (6 1 n 62 )#(-y, n y2)(x) > 0 (6i n 62)(pl,p2) A (yl n'Y2)(gl,q2) A (ft U ft) *((PI,p2),x, (gl,q2)) > 0 for some (PI, P2), (gl,q2) E Q x Q' ~ [61(pl) n'f1(gl) n[t* (pl, x,ql)]n [62(p2) A 'Y2 (q2) n [t * (P2, x, q2)] > 0 for some pl, ql E Q, p2, q2 E Q' ~ [61#'f1(x)] n [62# -Y2 (X)1 > 0 ~ [61#'Yj(x)] > 0 and [6 2#-Y2 (X)1 > 0 ~ x E 61 1 o yl and XE6210-Y2~XE(611o'yl)n(621o-Y2) . Theorem 7.5 .6 Let M = (Q, X, ft) and M' = (Q', X, ft') be fuzzy finite state machines. Let 61, y 1 be fuzzy subsets of Q and 62, 'Y2 be fuzzy subsets of Q' . Then (61 n 62) -1 0wxw' (-yj n -Y2) = (611 0w 'YJ x (62 1 0w' 'Y2) Proof. (x, y) E (61 n 6 2) -1 o (-yj n -Y2) <#~ (61 n62) * ('Y, n-Y2) (x, y) > 0 <#~ (61 n 62)(pl,p2) A (yl n'Y2)(gl,q2) A (ft x ft)*((PI,p2), (x, y), (gl,q2)) > 0 for some (p1, p2), (gl,g2) E Q x Q' <#~ [61(pl) n'f1(gi) n [t*(pl,x,gl)]n [62(p2) A -Y2 (q2) A ft *(P2, y, q2)] > 0 for some pl, ql E Q, p2, q2 E Q' <#~ [61#'f1(x)] n [6_ 2#'Y_ (y)] > 0 <#~ x E 61 1 o '1'1 and y E 62 1 0 'Y2 <#~ (x, y) E x (6 1 1 0'Y1) (62 1 0-Y2)The proof of the following theorem is similar to the proof of Theorem 7.5 .6 . Theorem 7.5 .7 Let 61 : Q ----> [0,1], 62 : Q' [0,1] and x E X* . Then (61n62)*x=(61* x)n(62*x) ; (1) (2) (61n 62)*x -1= (6 1*x -1 )n (62*x -1) .~
© 2002 by Chapman & Hall/CRC
358
7 .6
7. More on Fuzzy Languages
Construction of Recognizers and Recognizable Sets
Definition 7.6 .1 Let M = (M, t, T) and M' = (M', t, T) be fuzzy Xrecognizers of M = (Q, X, /t) and M' = (Q', X, /t'), respectively . Then the fuzzy X-recognizer .M n.M' = (M n M, t n t', T n T') is called the restricted direct product of M and M' . Definition 7.6 .2 Let M = (M,t,T) be a fuzzy X-recognizer of a fuzzy finite state machine M = (Q, X, /t), and M' = (M', t', T') be a fuzzy X'recognizer of a fuzzy finite state machine M' = (Q ', X', /t') . Then the fuzzy X x X'-recognizer .M x .M' = (M x M, t n t', T n T') is called the direct product of M and M' . Definition 7.6 .3 Let M = (M, t, T) and M' = (M', t, T) be fuzzy Xrecognizers of M = (Q, X, /t) and M' = (Q', X, /t'), respectively, where Q n Q' = 01 . Then the fuzzy X-recognizer .M U AT = (M U M, t U t', T U T') is called the join of M and M' . Definition 7.6 .4 The mapping p : X* ~ X* is called a reversal of X* if the following conditions hold : (1) p(A) = A, (2) p(a) = a, (3) P(xa) = P(a)P(x), and (4) P(P(x)) = X, VaEX and xEX* .
It follows by induction that p(xy) = P(y)P(x) b'x, y E X* . Let p be a reversal of X* . Define the fuzzy subset ftp :QxX xQ----> [0,1] by ftP (p, a, q) = ft(q, p(a), p) b'a E X, dp, q E Q. Definition 7.6 .5 If M = (Q, X, ft) is a fuzzy finite state machine, then the fuzzy finite state machine MP = (Q, X, ftP) is called the reversal of M. Theorem 7.6 .6 Let MP = (Q, X, pP) be the reversal of M = (Q, X, p) . Then (wP)*(p,xy,q)
= w* (q,P(y)P(x),p)
Vx, y E X* . 0 Let A C X* and p : X* ----> X* be the reversal mapping. Let AP = {p(x)
© 2002 by Chapman & Hall/CRC
I x E Al .
7.6. Construction of Recognizers and Recognizable Sets
359
Theorem 7.6.7 Let S and 'y be fuzzy subsets of Q. Then (S -1 o ,y)P = ,Y -1 06. Proof. p(x) E (6 -1 o y)P x E 6 -1 o y ~ 6# y (x) > 0 ~ 6(p) n y ( q) n p,* (p, x, q) > 0 for some p, q E Q S(p) A y(q) A ([tP) * (q, p(x),p) > 0 for some p, q E Q -y (q) A 6(p) A ([tP ) * (q, p(x), p) > 0 for some p, q E Q p(x) E 'Y-1 O S . 'Y#b(p(x)) > 0 Definition 7.6.8 Let .M = (M, t, T) be a fuzzy X-recognizer. Let p : X* ~ X* be the reversal mapping. Then the fuzzy X-recognizer .MP = (MP, T, t) of MP is called the reversal of M.
Definition 7.6.9 Let .M = (M, t, T) be a fuzzy X-recognizer . Then x E X is said to be recognized by .M if t#T(x) > 0.
Let B(M) denote the set of all words that are recognized by .M. B(M) is called the behavior of .M . Theorem 7.6.10 Let M be a fuzzy recognizer and x E X* . Then the following (1) (2) (3)
conditions are equivalent . x E B( .M); x E t -1 o T; t#T(x) > 0; (4) 3po E Q such that t n T * x-1(Po) > 0; (5) 3qo E Q such that t * x n T(qo) > 0.
Proof. Clearly (1), (2), and (3) are equivalent . (3)x(4) : t#T(x) > 0 ~ V{t(p) AT(q) A w*(p, x, q) I p, q E Q} > 0 3po, qo E Q such that t(po) n T(qo) n [t * (po, x, qo) > 0 ~ 3po, qo E Q such that t(po) > 0 and T(qo) A /t* (po, x, qo) > 0 ~ Elpo E Q such that t(po) > 0 and V {T (q) A /t* (po, x, q) I q E Q} > 0 ~ 3po E Q such that t(po) > 0 and T * x-, (PO) > 0 ~? 3po E Q such that t n (T * x-1) (PO) > 0. (3)x(5) : This can be proved by interchanging the roles of po and qo and using the definition of t * x. Definition 7.6.11 A subset A of X* is called X-recognizable, if there exists an X-recognizer .M such that B(M) = A.
Theorem 7.6.12 Let X be a nonempty finite set. Then the following sets are X-recognizable: (1) {a}, where a E X. (2) A. (3) A*, where A C X. (4) X. 0
Theorems 7.5 .5, 7.6.7, and 7.6 .10 immediately lead to the following theorem. © 2002 by Chapman & Hall/CRC
7. More on Fuzzy Languages
36 0
Theorem 7.6.13 Let M and .M' be fuzzy recognizers . Then the following assertions hold. (1) B( .M U .A4) = B( .M)UB(.M') . (2) B( .M n .A41) = B( .M)nB(.M') . (3) B( .MP) =B(.M)P .
Proof. (3) We have B(M)P = (t -1 o T)P = T -l o t = B( .MP) . The following corollary is immediate from Theorem 7.6 .13. Corollary 7.6.14 Let A and B be recognizable subsets of X* . Then the following sets are recognizable . (1) A U B . (2) A n B . (3) AP . Corollary 7.6.15 A subset A of X* is recognizable if and only if AP is recognizable .
Proof. (AP)P =A . m In view of Theorems 7.5 .6 and 7.6 .10, we obtain the following theorem. Theorem 7.6.16 Let M be a X-recognizer and .M' be a X'-recognizer. Then B(.M x .M') = B(M) x B(.M') . m Corollary 7.6.17 If A is X-recognizable and B is X'-recognizable, then A x B is X x X'-recognizable. m Theorem 7.6.18 Let A be X-recognizable and B be any subset if X* . Then the following sets are X-recognizable . (1) AB -1 . (2) Ax-' . (3) B-1 A. (4) X -1 A.
Proof. We prove (1) and (3) only. Since A is X-recognizable, there exists a fuzzy recognizer .M = (M, t, T) of a fuzzy finite state machine M = (Q, X, /t) such that B(M) = A. (1) Consider a fuzzy recognizer .M' = (M, t,T*B -1 ) . Then by Theorem 7.5.4(1), t-1 o (T * B-1 ) = (t - 'o T)B-1 = B(A4)B -' = AB -1 . Thus AB -1 is recognizable . (3) Consider the fuzzy recognizer .M' = (M, t, B-1 * T) . Then by Theorem 7.5.4(3), (t * B) -1 o T = B-1 (t -1 o T) = B -1 B(M) = B- 'A . Hence B-'A is recognizable . Let X and X' be sets and let f : (X')* X* be a fine homomorphism. If M = (Q, X, /t) is a fuzzy finite state machine, then define /t' : Q x X' x Q ----> [0, 1] by fft'(p,a,q)=ft(p,f(a),q)
© 2002 by Chapman & Hall/CRC
7.6. Construction of Recognizers and Recognizable Sets
361
b'p, q E Q, a' E X' . This defines a fuzzy finite state machine M' _ (Q, X, /t') and a fuzzy X'-recognizer .M' = (M', t, T) . Definition 7.6.19 The fuzzy X'-recognizer .M' defined immediately above is called the inverse image of M and is denoted by f-1 (.M) .
Theorem 7.6.20 Let S : Q ~ [0,1] and y : Q ~ [0,1] . Then S-1 f-1(S-1 o w 'Y) .
oN , ,y =
Proof. x E S-1 oN,, y ~ 6#-y(x) > 0 ~ S(p) n -y(q) n ft~(p, x, q) > 0 for some p, q E Q ~ S(p) A y(q) A /t* (p, f (x), q) > 0 for some p, q E Q f (X) E 6-1 0/"Y. The following corollaries are easily shown to hold. Corollary ?.6 .21 B(f -1 (.M)) = f-1 (B( .M)) . m Corollary 7.6 .22 If A is X-recognizable, then f-1 (A) is X'-recognizable. Let .M = (M, t, T) be a fuzzy recognizer of a fuzzy finite state machine M = (Q, X, p) and let a E X. Consider Q' = Q U {t'}, where t' ~ Q. Define fl a :Q'XXXQ'~[0,1]by ft(p, b, q)
f'a(p, b, q) =
1 0
if p, q E Q, if p E Q, T(p)>O, b = a and q = t', otherwise .
Clearly, Ma = (Q', X, f a) is a fuzzy finite state machine. Define to [0,1] as follows : __
to(p) - { 0
p))
if p E Q, otherwise .
Let Ta be the characteristic function of {t'} . Then Ma = (Ma, ta,Ta) is the fuzzy recognizer of Ma. Let X be a nonempty finite set, A C X*, and u E X. Recall that An = {xu I
x E A} .
Theorem 7.6.23 Let Ma = (Ma , ta ,Ta) be a fuzzy recognizer of Ma. Then to 1 0Ma Ta = t 1 0A T)a .
Proof. Let x
E to 1 0Aa Ta .
Then (ta#Ta) (x) > 0 . Thus
ta(po) ATa(go)
for some po, q'
E Q' .
n fta(P' , x, qo) > 0
Hence q' = t' and p'
© 2002 by Chapman & Hall/CRC
E
Q.
7. More on Fuzzy Languages
36 2
Now fta(po,x,go) > 0 is possible only if either T(p0 ) > 0 and x = a or there exists y E X* such that /ta(p'o , ya, t') > 0. We consider these two cases . Suppose T(p0) > 0 and x = a. Now t(po) > 0, T(po), and /t*(po,A,po) > 0. Hence t(po) n T(po) n [t* (po, A, po) > 0, i.e., A E L -1 Of,, T. Therefore, x = Aa E (L -1 Off, T) a. Suppose now that y E X* such that ya(po, ya, t') > 0. Then there exists t'o E Q' such that laa(po, y, to) Alta(to, a, qo) > 0. This is true only when T (to) > 0, i.e., to E Q . Thus t(po) AT(to) Aft*(po, y, to) > 0 . Therefore, L#T(y) > 0. Hence x = ya E (L -1 OA, T)a . Thus tat OA, Ta C(6- 1
oA T)a.
We now show inclusion in the other direction . Let x = ya E (t -1 OA T)a . Then y E (L -1 ON, T) . Therefore, t(po) A T(qo) A ft*(po, y, qo) > 0 for some lta (go, a, t') = 1 po, qo E Q . Thus t(po) > 0 and T(qo) > 0 . Now T(qo) > 0 and fta(POI yI qo) = [t * (po, y, qo) > 0 . Hence fta(po, ya, t~) = V{[ta (po, y, r~) A lta(r', a, t') I r' E Q'} > lta(po, y, qo) n fta(go, a, t~) > 0 . Therefore, t(po) A ' Ta(t PO ) AN'a(po, ya, t') > 0 and hence ta(po) ATa(t') Alta(po, ya, t') > 0 since E Q, l.e., x = ya E La 1 OV-a Ta . Thus (t -1 ON, T)a C La 1 ON,a Ta' Hence tat O V- a Ta - (L-1 OAT)a . Corollary 7.6 .24 B( .M a) = B(A4)a .
m
Corollary 7.6 .25 If a subset A of X* is recognizable and u is recognizable. m
7 .7
E
X, then An
Accessible and Coaccessible Recognizers
Definition 7.7 .1 Let M = (M,t,T) be a fuzzy X-recognizer of a fuzzy finite state machine M = (Q, X, ft) and R = {q E Q I * X* (q) > 01 . If Q = R, then M is called accessible. Let .M = (M, t, T) be a fuzzy recognizer of M = (Q, X, lt) . Let R = {q E X* (q) > 01. Consider to = wI RXXXR, La = tIR, and Ta = TI R . Then Ma = (R, X, ta) is a fuzzy finite state machine and .Ma = (Ma, 6a, Ta) is a fuzzy recognizer of Ma . Q
I
T) be a fuzzy X-recognizer of M. Then .Ma = (Ma' ta,Ta) is called the accessible part of M.
Definition 7.7 .2 Let M = (M, t,
Definition 7.7 .3 Let M = (M,6,T) be a fuzzy X-recognizer of a fuzzy finite state machine M = (Q, X, ft) . Let S = {p E Q I T * (X*) -'(p) > 01 . If Q = S, then M is called coaccessible. Consider ftb = wI sXXXs' tb = t1 s, and Tb = TI s. Then Mb = (S, X, ftb) is a fuzzy finite state machine and Mb = (Mb, tb, Tb) is a fuzzy recognizer of Mb . © 2002 by Chapman & Hall/CRC
7.7. Accessible and Coaccessible Recognizers
363
Definition 7.7.4 Let .M b = (Mb, Lb , Tb )
M = (M, t, T) be a fuzzy X-recognizer of is called the coaccessible part of M.
M.
Then
If t(q) > 0, then q E R. Thus whenever t is crisp, so is ta and La = t as sets. If T(q) > 0, then q E S. Hence whenever T is crisp, so is Ta and Ta = T as sets. Theorem 7.7.5 Let .M be a fuzzy recognizer. Then the following properties hold : (1) L-1
O T = (La)-1 O Ta ; L-1 O (2) T = (Lb)-1 O Tb.
Proof. (1) Let x E
L-1 O T .
Then
L(po) AT(go)
L#T(x)
> 0. Therefore,
n [t* (po, x, qo)
>
0
for some po, q0 E Q. Clearly, q0 E R since L(po) A ft * (po, x, L(po) > 0 and y* (po, A,po) = 1 > 0 and so po E R. Hence Ta(go)
But then (La)-1
La#Ta(x) O Ta .
qo) >
0. Also,
n La(po) n [ta*(po' x, qo) > 0.
> 0 and thus x E
(La)-1
O Ta .
Therefore,
L-1 O T
C_
We now show inclusion in the other direction . Let x E (La)-1 OT a . Then a La #T (x) > 0, i .e., La (p0) AT a (go) All' a* (p0,x,g0) > 0 for some p0, go E R. Therefore, L° (p0 ) > 0, Ta (qo) > 0, and ta* (po, x, qo) > 0. Thus L(p0) = La (p0),T(g0) = Ta(g0)
and * (po,x,go) = ta*(po,x,go) .
Therefore, L(p0) AT(go)
Hence L#T(x) > 0 and so x E L-1 quently, L-1 O T = (La)-1 O Ta . (2) The proof is similar to (1) .
At* O T.
0 x,qo)
Thus
> 0.
(L a) -1 O Ta
C_
L-1 O T.
Conse-
Corollary 7.7.6 Let .M be a fuzzy recognizer. Then (1) B(.M) = B(.Ma) ; (2) B(.M) = B(.Mb) .
Theorem 7.7.7 Let .M be an X-fuzzy recognizer. Then if and only if .MP is accessible .
© 2002 by Chapman & Hall/CRC
.M
is coaccessible
7. More on Fuzzy Languages
36 4
Proof. .M is a coaccessible fuzzy recognizer ~ Q = {p E Q I T (X*) -1 (p) > 0} ~? b'p E Q, 3xo E X*, and qo E Q such that T(qo) A b'p E Q, 3xo namely p(xo) E X* and qo E Q such that ft * (po, xo, qo) > 0 n T(qo) [t P* (po, p(xo), qo) > 0 ~ Q = {p E Q I T * X* (p) > 0} ~ .MP is an accessible fuzzy recognizer. Definition 7.7.8 A fuzzy X-recognizer .M is called trim if it is both an accessible and coaccessible fuzzy X-recognizer.
Theorem 7.7.9 Let M = (M, t, T) be the fuzzy recognizer of the fuzzy
finite state machine M = (Q, X, /t) and let W = {p E Q I t * X* n T (X*) -1 (p) > 0} . Then .M is trim if and only if Q = W. m
Consider pt = ftjw .x .w, tt = t1 w, and Tt = Tjw . Then Mt = (W X, [tt) is a fuzzy finite state machine and Mt = (M t , tt, Tt) is a fuzzy X-recognizer . Definition 7.7.10 Let .M be a fuzzy X-recognizer. Then .M t = (M t , tt ,Tt) is called the trim part of M.
The following theorem is immediate from Corollary 7.7 .6 . Theorem 7.7.11 If M = (M, t, T) is a fuzzy recognizer, then B(M) _ B(.Mt) . .
Corollary 7.7.12 If .M is trim, then ( .Ma) b = .Mt = (.Mb)a . 0 If .M is an accessible (coaccessible, trim) fuzzy X-recognizer, then Ma = M .Mb = M, Mt = M, respectively) . (
7 .8
Complete Fuzzy Machines
Recall that a fuzzy finite state machine M = (Q, X, ft) is called complete if for all (p, u) E Q x X, there exists q E Q such that ft(p, u, q) > 0. As in Definition 7.2 .13, if M = (Q, X, ft) is a complete fuzzy finite state machine, then the fuzzy X-recognizer .M = (M, t, T) of .M is called complete. Theorem 7.8.1 If M is a complete fuzzy recognizer, then so is .M a . Proof. Let (pa, u) E R x X. Then (pa, u) E Q x X. Since .M is complete, there exists q E Q such that ft (pa, u, q) > 0. Now pa E R ==> t * X* (pa) > 0 . Therefore, 3qo E Q and xo E X* such that t(qo) A /t* (qo, xo , pa) > 0 . This implies that t(qo) > 0 and lt* (qo, xo, pa) > 0. Hence lt* (qo, xo , pa) A ft(pa ' u, q) > 0. Thus /t* (qo, xou, q) = V {ft* (qo, xo' t) nft(t, u, q) I t E Q} > 0 . Hence t(qo) A ft*(go,xou,q) > 0, i.e ., t * X* (q) > 0 and so q E R. Since ,ta(pa , u q) = t(pa u q) Ma is complete. The following definition of completion and the following construction of a completion differs somewhat from that in Section 7.2 . © 2002 by Chapman & Hall/CRC
7.8 . Complete Fuzzy Machines
365
Definition 7.8.2 Let M = (Q, X, /t) be a fuzzy finite state machine. A fuzzy finite state machine Mc = (Q c , Xc, ftc) is called a completion of M, if the following conditions hold: (1) Mc is a complete fuzzy finite machine, and (2) M is a subfuzzy finite state machine of Mc . Let M = (Q, X, ft) be a fuzzy finite state machine that is incomplete. Consider M' = (Q', X, /t'), where Q' = Q U {z}, z ~ Q and
f~ (p, u, q) =
ft(p, u, q) 1
0
if p, q E Q and ft(p, u, q) :A0, if either ft(p, u, r) = 0 b'r E Q and q = z or p = q = z,
otherwise.
Then M' = (Q', X, ft') is called the smallest completion of M. Definition 7.8.3 Let M = (M,t,T) be a fuzzy X-recognizer of a fuzzy finite state machine M = (Q, X, /t) and Mc = (Q c, X, /tc) be a completion of M. Then the fuzzy X-recognizer .Mc = (Mc, tc, Tc) of Mc is called the completion of M, where tc : Qc ~ [0,1] and Tc : Qc ~ [0,1] are such that t(q) 0
if q E Q if q Q.
T(q) 0
if q E Q if q Q.
If Mc is the smallest completion of M, then .Mc is called the smallest completion of .M .
Theorem 7.8.4 Let .M = (M, t, T) be a fuzzy recognizer and .Mc is the smallest completion of .M . Then B(A4) = B( .Mc) . 0
Theorem 7.8.5 If M is an accessible fuzzy recognizer, then so is Mc . Proof. Let .M be accessible. Then Q = {q E Q I t * X*(q) > 0} . Let qc E Qc . If qc E Q, then the desired result holds . Let qc = z. Since M is incomplete, there exists (po, no) E Q x X such that ft(po, no, t) = 0 for all t E Q. But then (ftc) (po, no, z) = 1 > 0. Since M is accessible and po E Q, there exists r E Q and yo E X* such that t(r) A /t* (r, yo, po) > 0. Now (ftc)* (r, youo, z) = V{(ft c)* (r, yo, s) n (ftc) (s, uo, z) I s E Q} > * (ft c ) (r, yo, po) n (ftc) (po, no, z) = (ftc) * (r, yo,po) = ft * (r, yo, po) > 0. Thus t(r) A (ftc) * (r, youo, z) > 0, i.e., t * X*(qc) > 0. Hence Mc is accessible. m Let .M = (M, t, T) be a fuzzy recognizer of a fuzzy finite state machine M = (Q, X, ft) . Recall that P(Q) is the power set of Q . © 2002 by Chapman & Hall/CRC
7. More on Fuzzy Languages
36 6
Define p,^' : P(Q) x X x P(Q) ----> [0,1] by p - (P, u, R
-
1
1
V{ft(p, u, r)
P(Q) ----> [0 , 1] by
Ip
E P, r E
0{L(p) I p E
P}
R}
if P4 QlorR~01 otherwise,
otherwise,
and T^' : P(Q) ----> [0,1] by T-(P)
_
0{T(p) I p E P}
if P otherwise.
Then M^' = (P(Q), X, /t -) is a fuzzy finite state machine and .M^' _ (M^', t- , T- ) is a complete fuzzy X-recognizer of M^' = (P(Q), X, ft-) . Theorem 7.8.6 Let M = (M, t, T) be a fuzzy recognizer of a state machine M = (Q, X, /t) . Then B(M) = B( .M-) .
fuzzy finite
Proof. Let x
E B( .M - ) . Now x E B(M-) =~> x E t- oA- TL-#T- ( x) > 0 =~- t- (P) AT - (R) A /t - (P, x, R) > 0 for some P, R E P(Q) .
Clearly, by the definition of t- and T- , both P and R are nonempty. Thus [A{L(p) I p E P}] n [n{T(r) I r E R}] n [V{,t* (p, x, r) I p E P, r E R}] > 0 for some P, R E P(Q) and so t(p) > 0 Vp E P, T(r) > 0 Vr E R and there 3t o E P, ro E R such that [t* (to, x, ro) > 0 for some P, R E P(Q) . Hence t(to) > 0, T(ro) > 0, and y,* (to, x, ro) > 0 for some to, ro E Q . Thus t(to) A T(ro) A ft * (to, x, ro) > 0 for some to, ro E Q. This implies that t#T(x) > 0 and so x E t oN T . Hence x E B(M) . Thus B(M- ) C B(M) . Conversely, suppose x E B( .M) . Then x E t oN, T and so t * T(x) > 0 . This implies that t (p) A T (q) A ft * (p, x, q) > 0 for some p, q E Q. Choose P = {p} and R = {q} . It then follows that B(M) C B( .M - ) . m
Theorem 7.8.7 Every fuzzy X-recognizable subset A of X* is the behavior of a complete fuzzy recognizer. m
7 .9
Fuzzy Languages on a Free Monoid
The study of fuzzy grammars, the rules of fuzzy syntaxes, and the recognition ability of fuzzy automata extends the application area of fuzzy set theory. One goal is to reduce the difference between formal languages and natural languages . In this section, we examine fuzzy regular languages, adjunctive languages, and dense languages . We present their algebraic properties. The results are from [217] . In this and the next section, we let X denote a finite alphabet with at least one element . Recall that,F'P(X) denotes the set of all fuzzy subsets of X. We use the superscript T to denote the transpose of a matrix. © 2002 by Chapman & Hall/CRC
7.9 . Fuzzy Languages on a Free Monoid
367
Definition 7.9.1 [160] A finite fuzzy automaton on an alphabet X is a 5-tuple M = (Q, Y, {Tn I u E Xj, ao, al ) such that (1) Q = {ql, q2, . . . , qn} is the set of states, (2) Y = {yl, y2, . . . , yn J C Q is the set of output symbols, (3) {Tn u E X} is the set of fuzzy transition matrices, where Sgiq, : X ----> [0,1] and T _ [S qiqj (u)], qZ, qj E Q, i, j = 1, 2, . . . , n, (4) Qo = [ i l i2 . . . i n ] , ik E [0,1] for k = 1, 2. . . . , n, (5) CI = [ ji
j2
.. .
in
]T'
jk E [ 0 , 1 ] for k = 1, 2. . . . , n.
ao determines the fuzzy subset of initial states and al determines the fuzzy subset of final subsets . Let M = (Q, Y, {T I u E Xf, ao, al ) be a finite fuzzy automaton. Define S : Q x X x Q ~ [0,1] by b(qj, u, qj) = bqiqj (u)
for i, j = 1, 2, . . . , n and Vu E X. Then S is a fuzzy transition function. Let S* be defined as usual. Then S* (q, A, q') = 1 if q = q' and 0 otherwise. Also for all x = ulu2 . . . uk E X*, x :?~ A, 6* (q, x, q') or
=
V {b(q, ul, qi) A S(ql , u2, q2) A . . . A S(qk-1, uk, q~) I qi ~ q2 ~ . . . , qk-i E Q}
0 , TX = Tnl 0 Tn2 0 . . . Tn,
where o is the sup-min composition of fuzzy matrices. Definition 7.9.2 [160] Any member of ,F'P(X*) is called a fuzzy language on the free monoid X* . For all u E X, let x n denote the characteristic function of {u} in X* . Then xn is called the basic fuzzy language generated by u. Let E = {x,, I u E
X} U {A} .
Definition 7.9.3 [160] Let U C_ ,F'P(X*) be such that the following conditions hold: (1) Vc E[0,1], ft EU==> cnyEU,
(2)Ni,N2EU ==> /t l UN 2 EU (3) fti, P2 E U =~> fti o y 2 E U, where (Pi 0 ft2)(x) = V {fti(u) n [t 2(V) I uv = x}, b'x E X*, (4) ft EU==> ,t E U, where ft' is the Kleene's closure of ft, i .e ., = [toUftUft2 U . . .
where [t o (x) = 0 V'x E X* . Then U is called a closed family of fuzzy languages on X* .
© 2002 by Chapman & Hall/CRC
7. More on Fuzzy Languages
368
Let .F = {U I U is a closed family of fuzzy languages on X*} .
Clearly,,F'P(X*) E T Definition 7.9.4 [160] Let FR(X*)
= nEC MC .-M .
FR(X*) is called the family of fuzzy regular languages on X* . If f E FR(X*), then ft is called a fuzzy regular language on X* . Clearly, FR(X*) is a subalgebra of ,F'P(X*) generated by E with the four operations in Definition 7.9 .3 . Definition 7.9.5 [160] Let M = (Q, Y, Tn, ao, al ) be a finite fuzzy automaton on X. Define fm : X* ~ [0,1] by Vu E X*, fm(u) = ao o Tn o al . Then fm is called the fuzzy language determined by the fuzzy automaton M.
Example 7.9.6 Let Q = {s, S, F}, X = {a, b}, and S : Q x X x Q ~ [0,1] be defined as follows:
6(s, a, S) S(s, b, s) S(S, b, S) S(S, b, F)
_ _ _ _
.9 .5 .9 .9
and S(q, x, q~) = 0 for any other (q, x, q~) E Q x X x Q. Let ao = (1, 0, 0) and al = (0, 0,1)T. Then
Ta
_
s S F
0 0 0
s
.9 0 0
S
0 0 0
F Tb
_
s S F
.5 0 0
s
0 .9 0
S
0 .9 0
F
Let M = (Q, Y, ~Ta, Tb}, ao, al ), where Y = Q . Then fm (bab)=ao oTboTa oTboal =[ 1
0
0 0 0
0 ]
.5 0 0
.5 0 0
0 0 1
= .5
and fm(ab)=ao oTa oTb oa l =[ 1
0
0 ]
0 0 0
.9 0 0
.9 0 0
0 0 1
= .9 .
It follows that fm (b mabn ) = .5 if m > 0 and fm (b-abn ) = .9 if m = 0. We see that fm = A, where A is the fuzzy language of Example 7.1 .11.
© 2002 by Chapman & Hall/CRC
7.9 . Fuzzy Languages on a Free Monoid
369
From [160], /t E FR(X*) if and only if there exists a finite fuzzy automaton M such that fm = /t . Definition 7.9.7 [160] We call PL a main congruence if b'x, y E X*, x - y(PL) if and only if Vu, v E X*, uxv E L ~ uyv E L . Example 7.9.8 Let X = {a, b} and L = Jan I n = 0,1 . . . . } . Let x, y E
X* . Then Vu, v E X*, uxv E L if and only if u = az, x = ai, and v = ak for some i, j, k E hY U {0}. Thus x - y(PL ) if and only if either x E L, y E L or x ~ L, y ~ L . Hence the equivalence classes corresponding to - are L and X*\L . Thus the index of PL is 2.
Example 7.9.9 Let X = {a, b} and L = {b'abn I m = 0,1 . . . . ; n =
1. . . . } . Let x, y E X* . Then Vu, v E X*, uxv E L if and only if either u= b', x=b~abk,v=bl (not both k=0,1=0) oru=b'abi,x=bk ,v=b l (j, k, l not all 0) or u = b2, x = bi, v = bkabi (1 z,4 0) for i, j, k, l E hY U {0}. Thus x - y (PL ) if and only if either x, y E L U {b le a k = 0,1, 1 . . . . I or { bk I k = 0,1 . . . . } or x, y E X*\(L U {bka I k = 0,1. . . . } U {bk X' y E .}) . Thus the index of PL is 3. k=0,1
Proposition 7.9 .10 [218] An ordinary language L C_ X* is regular if and only if the index of
PL
is finite . 0
Proposition 7.9 .11 [218] An ordinary language L C_ X* is adjunctive if and only if b'x, y E X*, x - y(PL) =~' x = y . 0
Example 7.9.12 Let X = {a, b} and L = fanbn I n = 0,1. . . . } . Let
x, y E X* . Then Vu, v E X*, uxv E L if and only if either u = anbn , x = V, v = bn -Z-j or u = a2 , x = a n-Z b', v = bn- j where n, i, j E hY U {0} . Thus x - y(PL) implies x = y . Hence L is adjunctive . The index of PL is not finite and L is not regular.
Definition 7.9.13 Let /t E .PP(X*). Then FN is called a fuzzy main congruence with respect to /t on X* if
b'x, y E X*, x - y(FN,) ~ Vu, v E X*, y,(uxv) = y,(uyv) .
Proposition 7.9 .14 Let x, y E X* . Then x - y(FN ) if and only if b'c E [0,1], x - y(PN ), where y c = {x E X* I y(x) > c } . Proof. Suppose that x - y(FN ) . Then Vu,v E X*, y(uxv) = y(uyv) . Thus b'c E [0,1], y(uxv) > c if and only if y(uyv) > c. Hence Vu, v E X*, b'c E [0,1], uxv E /t c if and only if uyv E 1t c . This implies that x - y(PI") . Conversely, suppose that b'c E [0,1], x - y(PN ) . Then Vu, v E *, y(uxv) > c r y(uyv) > c b'c E [0,1] . Thus x - y(FN ) . 0 Proposition 7.9 .15 Let x, y E X* . Then x - y(FN ) if and only if b'c E [0,1], x - y(PN +), where y c+ _ {x E X* I y(x) > c }. © 2002 by Chapman & Hall/CRC
7. More on Fuzzy Languages
370
Proof. Suppose that b'c E [0,1], x - y(PN ) . Then Vu, v E X*, p,(uxv) > c ~ p,(uyv) > c. Let p,(uxv) = d. Now for any E > 0, we have p,(uxv) > d - E . Therefore, p,(uyv) > d - E for all E > 0. Thus p,(uyv) > d = p,(uxv) . Similarly, p,(uxv) > p,(uyv) . Hence, x - y(FN,) . The converse is easily shown . m Corollary 7.9.16
7 .10
N = OCEfo,11Pw = OCE[o,l]Pw'+ .
F
Algebraic Character and Properties of Fuzzy Regular Languages
Proposition 7.10 .1 Let ft E .FP(X*) . Then ft E FR(X*) if and only if the index of FN is finite . Proof. Suppose that ft E FR(X*) . Then there exists a finite fuzzy automaton M = (Q, Y, T., ao, al ) such that fm = ft . Clearly, fm = ao o T o al . Define a relation p on X* as follows: b'x, y E X*, x - y(p) ~ TX = T. . Clearly, p is an equivalence relation . Let x, y E X* . Then x - y(P)
TX = TV
Vu, vEX*,T,, oTx oT,=T,, oT.oT, du,v E X* ,Tuxv = Tvyv Vu, v E X*, ao o Tuxv o al = ao o Tuyv o al VU, v E X* ' p(uxv) = p (uyv) x - y(FN,) .
Hence p C FN . Since X and Q are finite, {Tu, I w E X*} is a finite set . Therefore, since the index of p is finite, the index of FN is also finite . Conversely, suppose that the index of FN is finite . Let [A], [xl], . . . , [x .] be the distinct congruence classes of FN , where x2 E X*, i = 1, 2, . . . , m. Let M = (Q, Y, {Tu I u E Xj, ao, al) be a finite fuzzy automaton, where .]}, Q = Y = {[A], [xl], . . . , [x
the fuzzy transition matrix is defined as a[w] o Tu = a[wu], and a[A] = [10 . . . 0],aIx il =[0 . . . 010 . . . 0],i=1,2, . . .,Tn . Set ao = a[A], a l = (ftQA]), ft Qxl]), . . . , ft([X.])) T . . Also Since V'x E X*, x E [x], p(x) = p&]) f (x) = ao o Tx
o 01
= a[A] o Tx o al
= Cr[x]
o al = ft([x]) .
Thus b'x E X*, ft(x) = fm(x) . Hence ft = fm and so p, E FR(X*) . © 2002 by Chapman & Hall/CRC
7.10. Algebraic Character and Properties of Fuzzy Regular Languages 371
Proposition 7.10 .2 Let ft E .FP(X*). Then ft E FR(X*) if and only if Vc E [0,1], /tc is regular, and I Im(y) I < oo. Proof. Suppose that ft E FR(X*) . Then the index of FN is finite. By Corollary 7.9 .16, Pt,, D FN , Vc E [0,1] . Let c E [0,1] . Hence the index of PN is finite and so p c is regular . We may assume that the congruence classes of FN are [XI], [x2], . . . , [x,] since the index of F, is finite . Clearly, Vi, i = 1, 2, . . . , m, Vu, v E X*, if u, v E [x2], then y(u) = ft(v). Therefore, IM(ft) = {ft(xl), ft(x2), - . . , ft(xm)I and so I Im(ft) I < oo. Conversely, suppose that Vc E [0,1], ftc is regular, and IIm(ft)I < oo . Then the characteristic function Xw of ftc is a fuzzy regular language. By the resolution theorem of fuzzy sets (see [160]), ft = Uc.E[o,l] c X w , . Let IM(ft) = {Cl, c2, . . . , ck} . Then ft = c1Xw , , U c2X w 2 U . . . U ckXw'k . Hence by Definition 7.9 .4, yE FR(X*) . m Proposition 7.10 .3 (FR(X*), n, U, -) is a de Morgan algebra, where denotes complement of fuzzy subsets.
Proof. Since FR(X*) C .FP(X*) and (.F'P(X*), U, n, - ) is a de Morgan algebra, it suffices to show that (FR(X*), U, n, - ) is a subalgebra of (.FP(X*), U, rl, - ) . By Definition 7.9 .4, it follows that Vtt,v E FR(X*), ft U v E FR(X*) . Also, since y,,v E FR(X*), Vc E [0,1], ft c , V c are regular, and I Im(ft) I and I Im(v) I are finite. Thus Vc E [0,1], (ft n v) c = ftc rl vc is regular, and I Im(y, n v) I < I Im(y,) I + I Im(v) I is finite . Hence by Proposition 7.10.3, ft rl v E FR(X*) . Let x, y E X* . Then x--y(FN)
b'u, v E X*, y(uxv) = y(uyv) b'u, v E X*,1 - y,(uxv) = 1 - y,(uyv) Vu, v E X*, !(uxv) = -(uyv) x - y(Fw) .
Thus since the index of FN is finite, the index of FA is finite . Hence, FR(X*) . m
Proposition 7.10 .4 Let y,v E FR(X*) . Then (1) /t, o v E FR(X*), (2) v - ly, (or y,v -1 ) E FR(X*), where v -ift (or yv -1 ) is called the fuzzy left (right, respectively) quotient of ft with respect to v and is defined as follows: (V -I [t)(y)
=V{ft(xy) n v(x) I x E E*),
(ftv-1) (y) = V{ft(yx) nv(x) I x E E* },
b'y E X*, b'y E X* .
Proof. (1) Let c E [0,1] . Since (ft o v) c = y cvc and ft and v are fuzzy regular, y c and vc are regular . Also since (yov) c = y cvc is an adjoin of two © 2002 by Chapman & Hall/CRC
7. More on Fuzzy Languages
37 2
regular languages, (ft o v), is regular . Now the degrees of membership of elements of pov are obtained from the degrees of membership of elements of /t and v with the operations max and min. Thus Im(y o v) C Im(y) U Im(v) and so Im(y o v) is finite . Hence /t o v E FR(X*) . (2) For all s, t E X*, s - t(FN,) Vu, v E X* ' y(usv) = y (utv)
Vu, v, x E X*, y,(xusv) = y,(xutv)
Vu, v, x E X*, y(xusv) A v(x) = y(xutv) A v(x)
Vu, v E X * , V XE x=(y(xusv) A v(x)) = VxEx* (y(xutv) A v(x)) Vu, v E X*, (v -l y)(usv) = (v -l p)(utv) s - t(F-,I,) .
Thus, FN C F -i /, . Since /t E FR(X*), the index of FN is finite and so the index of F-i N is also finite . Consequently, v -l y E FR(X*) . m Note that v in Proposition 7.10 .4(2) may be any fuzzy language. Proposition 7.10 .5 Let
f be a homomorphism from X* onto Xl, where Xl is a nonempty set. Then (1) ,t E FR(X*) f(w) E FR(X*) ;
(2) v E FR(X*)
f-1 (v)
E FR(X*) .
Proof. (1) Let y E FR(X*) . Let c E [0,1] and xl E Xl . Now xl E if and only if (f (ft)) (xl ) > c if and only if V{ft(x) I f (x) = xl } > c if and only if 3x', f(x') = xl and ft(x) > c (since I Im(y,) I < oo) if and only if f(x') = xl , x' E /tc if and only if xl E f(ft c ) . Hence (f (ft)), = f(ft c ) . Since /tc is regular, f (ftc ) is regular and so (f (ft)), is regular . Since Im(y,) is finite, it follows that Im(f (ft)) C Im(y,) and so Im(f (ft)) is finite . Hence f(ft) E FR(X*) . (2) Let v E FR(X*) and x, y E X* . Then (f (ft)),
x-y(Ff-,( ))
(f-1(v))(uxv) = (f-1(v))(uyv) Vu,v E X* v(f (uxv)) = v(f (uyv)) vu, v E X* v(f(u)f(x)f(v)) = v(f(u)f(y)f(v)) vu,v E X* v(ul f (x)vl) = v(ulf(y)vi) vul, vi E X1 f(x) -- f(y) (F,) .
Consequently, the index of Ff-i ( ) in X* equals the index of F in X* . Since the index of F is finite, the index of Ff-,( ) is finite and so f-1 (v) E FR(X*). m Definition 7.10 .6 Let y, E .FP(X*) and let h(ft) = V{ft(u)I u E X*}. (1) Then h(y) is called the height of ft . (2) If there exists no E X* such that h(ft) = ft(uo), then no is called a saddle point of ft . © 2002 by Chapman & Hall/CRC
7.10. Algebraic Character and Properties of Fuzzy Regular Languages 373 Proposition 7.10 .7 Let /t E FR(X*) . Then there exists n E N such that /t has a saddle point with length less than or equal to n - 1 . Proof. Since /t E FR(X*), there exists a finite fuzzy automaton M = (Q, Y, Tn , ao, a l ) such that p = fm = ao o T o al, where IQ I = n, ao = ]T c2 d ] I cl cn , and Q I = [ d l 2 . .. do . Clearly, .. . h(ft)
= VxEX*w(x)
=
V
~VxEU1"-1X1N'(x), VxEX*\U11-1Xbp,(x)},
where Xo = {A} . We now show that V XEU 1k-oX k[t(x)
>
VxEX*\Uk-oxklt(x)
.
Let v E X* \ Uk-o X k be such that wl >_ n. Let v = vI V2 v2 E X, i = 1, . . . , m. Then ft(v)
=
= =
where Tvk
. . .V m ,
m >_ n,
Qo o T,t, o Ql QooT2,1oT12o . . .oT2,,,zoal m VI
~7
k = 1, 2, . . . , m . Consider the term d = c 2 n r~~) n r~2~2 n . . . n r(m)
lz,n
A dz,n
The number of different elements in the indices of d is less than or equal to n. Since m > n, there exists p, q with p < q and ip = i q . Now d
c2nr2~2)n . .
.nr~P)12'Ar"9+)
n . . .nr (m-) 1Z,n Ad2m .
If the number m+p-q+1 of indices i, i1, . . . , iP, iq+1, . . . , im is still greater than n, then we repeat the above process and eliminate a part of r until the number of indices is not greater than n . Thus we may assume that m+p-q+l
< -
VI
i
e
i9+1, . . .,
-
+1
TvP+1
Let v' = vlv2 . . . VpVq+ l . . . Vm. Clearly, I V' I = m + p - q < n - 1 . Furthermore, d < ao oTv / oa l = ft(v) < VxeU;k-oxkft(x) . Since d was an arbitrary term in ft(v), it follows that p(v) < VxEUk-oxkft(x) . Thus V xEX* \Uk-oX k[t(x) < VXEU1k-oxklt(x) .
This implies that h(p) = VxEx*tt(x) = VXEU ;k-oxkft(x) . Since Uk=OX k is a finite set, there exists no E X* such that I n o l < n - 1 and h(p) = ft(n o ) .
© 2002 by Chapman & Hall/CRC
7. More on Fuzzy Languages
37 4
Example 7.10 .8 Let A be the fuzzy language of Example 7.1 .11. Then
is regular, h(A) = .9, and ab is a saddle point of A with length not greater than n - 1, where n = 3. If ftE FR(X*), then there exists a number n such that for any u E X*, u = xyw with Ixyl < n, Iyj > 1, and Vi > 0, ft(xyjw) > ft(u) provided Jul > n.
Proposition 7.10 .9 (Action lemma of the fuzzy pump
Proof. As the proof of Proposition 7.10.7, let ft
u E X* and let u
= VI V2 . . .
m > n. Now
V~ ,
It( U ) =v 1
and n
= IQ I .
Let
nrl)n . . .nr) 221 2,n-lien nd 2~n)'
Since m and n are finite, there exists a term that ft(u) = d =
= fm
d
in the above equality such
ci n r~~) n . . . n r~n') li,n n di,n
Since the number of indices i, il, . . . , i n is greater than n, there exist, as in the proof of Proposition 7.10.7, p, q with p < q, i p = i q , and r(P) r(q+1) r(m) c2 A r~l) > 221 A . . . A iP-12y n 2giq+1 n . . . /~ 2--12m /~ d2m -
ft(u) )
where m + p - q < n. Furthermore, Vi
Ar1,n-1i,n n di ,n -
w (u)
n
1'(i)
n
n
rip)1ip
n
r2991+l
n. . .
That is, ft(vi . . . Vpvq . . . v m ) > ft(u) . Let x = v l . . . vp , y = Vp+1 . w=vq+1 . . . Vm . Clearly, Ixyl < n, Iyj > 1, and ft(xy °w) > y,(u) . Also, d(i)
=
. . Vq ,
and
ci A r~ l) n . . . . . . n r(p ) li P n r(p+1) r(p+1) n A r(q) n. . . A 2 i n . . . A r(q) 2P i p+ 1 2q - 1 2 q 2q-12q P p+1 (
(P+p+1 1) , .. (q) .eTZ q 1,ig Ti p i
nr~q+ l ) n . . . n r(m) n din 2giq+1 inn-12m
j -times
where (i) stands for the set of all indices in the above formula . Thus 101 . . . vp(vp+i . . . Vq) j Vq+i . . . V.) = V{ d(i) I 1 < (i) < n} > ft(u), i.e., tt(xyjw) > ft(u), b'j > 1 . Consequently, b'j > 0, ft(xyjw) > ft(u) . 0 © 2002 by Chapman & Hall/CRC
7.10. Algebraic Character and Properties of Fuzzy Regular Languages 375 Corollary 7.10 .10 Let ft E FR(X*) . Then V'c E [0,1] there exists a pos-
itive integer n such that for any u E /t c, u = xyw with lxyl < n, lyl >_ 1, and b'j > 0, xy3 w E /t c provided Jul > n . m
If A is an ordinary regular language, then its characteristic function xA E FR(X*) and Corollary 7.10.10 becomes the ordinary action lemma of the pump (see [122]) . Hence Proposition 7.10.9 is a generalization of the ordinary action lemma of the pump and for this reason is called the action lemma of the fuzzy pump. We now consider fuzzy adjunctive languages . Definition 7.10 .11 Let A E .FP(X*) . If V'x, y E X*, x - y(Fa) =~, x = y, then A is called a fuzzy adjunctive language .
Example 7.10 .12 Let X = {a, b} and L = {anbn l n = 0,1. . . . } . Define A : X* ~ [0,1] by A(azb z ) _ .9 for i = 0,1, . . . , n, A(az b z ) = .5 for i =
n + l, n + 2, . . . , and A(x) = 0 if x E X*\L . By Example 7.9 .12, L is adjunctive . Let x, y E X* . Then Vu, v E X*, A(uxv) = A(uyv) implies uxv, uyv E L or uxv, uyv E X*\L . Hence it follows that x - y(Fa) implies x = y . Thus A is a fuzzy adjunctive language .
Proposition 7.10 .13 The following statements are equivalent: (1) A E .FP(X*) is a fuzzy adjunctive language. (2) Fa is the identity relation. (3) b'x E X*, [x]F, _ {x} . (4) b'x, y E X*, if x y, then there exist u, v E X* such that A(uxv) A(uyv) . m
Proposition 7.10 .14 Let A E .FP(X*) . Then A is a fuzzy adjunctive lan-
guage if there exist c E [0,1] such that A, is an ordinary adjunctive language.
Proposition 7.10 .15 Let A E .FP(X*) . Then A is a fuzzy adjunctive language ~ V'x, y E X*, {x = y(ncE(o,i) Pa,) =~> x = y} . 0
Lemma 7.10 .16 Let f be a homomorphism from X* onto Xl . Then the following properties hold: (1) dw E .FP(X*), (f(w))c = f(w)c, do E [0,1] . (2) Vv E .F'P(X*), (f -1 (v)) , = f-1 (v),, do E [0,1] . m Proposition 7.10 .17 Let f be a homomorphism from X* onto Xl . Let A E .FP(X*) be a fuzzy adjunctive language . Then f (A) E .FP(Xl) is fuzzy adjunctive .
© 2002 by Chapman & Hall/CRC
7. More on Fuzzy Languages
37 6
Proof. Since A is fuzzy adjunctive, b'x, y E X*, x - y(nc Pa,) =~, x = y . That is, Vc E (0, 1), Vu, v E X*, uxv E A, ~ uyv E A, implies that x = y . Let f(x), f(y) E f(X*) = Xi and f(x) - f (y)(ncP(f(a) >) . Then Vc E (0, 1), Vu, v E X*, f(u)f (x) f(v) E (f (A)), ~ f(u)f(y) f(v) E (f (A)), . This implies that f(uxv) E (f (A)) c ~~ f (uyv) E (f (A)) c, b'c, Vu, v E X*, which in turn implies that f (uxv) E f(A c) ~ f(uyv) E f (A,), b'c, Vu, v E X* . Hence uxv E A, ~ uyv E A,, Vc,Vu,v E X* . Thus x - y(Pa ,),Vc and so x - y (n,Pa, ) . Hence x = y and so f (x) = f (y) . Therefore, f(A) is fuzzy adjunctive. Proposition 7.10 .18 Let
f : X* ~ Xl be an isomorphism. Suppose that v E .FP(Xl) is a fuzzy adjunctive language . Then f -1 (v) E .FP(X*) is fuzzy adjunctive .
Proof. Let x, y E X* and x - y(n c P(f-, Then uxv E (f -1 (v)) , v X* and so uxv E E f -1 (v c ) ~? uyv E f-1 (v,) (f -1(v))C b'c, Vu, v X* . Thus f (uxv) v, (uyv) b'c, Vu, E E ~ f E v. b'c, Vu, v E X* . Hence f(x) - f(y) (P,,) Vc and so f(x) - f(y) (n c p,) . Thus f (x) = f(y). Since f is one-one, x = y. Therefore, f-1 (v) is fuzzy adjunctive. uyv E
Proposition 7.10 .19 Let A E .FP(X*) . If there exists v E .FP(X*) such that v 1A is adjunctive, then A is fuzzy adjunctive.
Proof. Since v-1 A is adjunctive, Vs,t E X*, s - t(F -la) =~> s = t. Suppose that s - t(Fa) . Then Vu, v E X*, A(usv) = A(utv) . Thus A(xusv) = A(xutv) V'x, u, v E X* . This implies that A(xusv) A v(x) _ A(xutv) A v(x) b'x, u, v E X* and so V{A(xusv) A V(X) I x E X*} = V{A(xuyv) A V(X) I x E X* } Vu,v E X* . Thus (v-1 A)(usv) = (v-1A)(utv), Vu,v E X* and so s t(F -la) . Hence s = t. Therefore, A is fuzzy adjunctive. m
Proposition 7.10 .20 Let A E .FP({z}*) . Then A is fuzzy adjunctive if and only if A is not fuzzy regular.
Proof. Suppose A is fuzzy adjunctive. If A is fuzzy regular, then the index of Fa is finite . This contradicts the fact that A is fuzzy adjunctive and z* is divided into infinite classes that contain only one element by Fa . Conversely, if A is not fuzzy adjunctive, then there exist i, j with i :?~ j and z2 - zj(Fa) . Now {z}* is divided into at most j classes, [A], [z], [z2], . . . ,
[zj-1] .
Hence the index of Fa is finite, i.e., A is fuzzy regular . m © 2002 by Chapman & Hall/CRC
7.10. Algebraic Character and Properties of Fuzzy Regular Languages 377 Proposition 7.10 .21 Let A E F({z}*). If there exists c E [0,1] such that (1) b'm > 1, 3n E N, A(zm+n) > c , (2)Vm>1,31EN,A(z'+l )1, b't E N, 3s > t, (A(zs+Z) < c 1,2, . . . ,m), then A is a fuzzy adjunctive language.
or A(zs +Z) > c , Vi =
Proof. It suffices to show that b'r > 0, k >_ 1, zr * zr+k (Fa) . In fact, if k + 1 = m >_ 1, then sets >_ 1 when r = 0 and sets >_ r when r > 1 . From (3), it follows that Vi = 1, 2, . . . , m, A(z s +Z) < c or A(z s +1) >_ c_ Suppose that A(zs+Z) < c , i = 1, 2, . . . , k + 1 . From (1), there exists ml, the smallest integer such that A(z s +k+l+ml) > c . Thus A(z s-r+l z
r zmi
) < c,
A(zs-r+l z r+k z mi ) > c,
i.e ., there exist z' - '+ I, zml E z* such that A(zs-r+lzrzmi)
7~ A(zs_r+lzr+kzml) .
Hence zr * zr+k(Fa) . Suppose that A(z s +z) > c , i = 1, 2, . . . , k + 1 . From (2), there exists s +l+m2) < c . Similarly, it follows m2, the smallest integer such that A(z +k easily that zr * zr+k(Fa) . Definition 7.10 .22 Let A E .FP(X*) and c E [0,1] . Then A is called a c-discrete language if b'x, y E X*, x :?~ y, A(x) >_ c and A(y) > c implies that lxl :A lyl .
Example 7.10 .23 Let X = {a, b} and L = fanbn I n = 0,1. . . . } . Define l
the fuzzy subset A of X*by A(x) = 0 if x E X*\L and A(x) > 0 if x E L. The A is c-discrete for c E (0,1] since no two distinct elements of L have the same length.
Lemma 7.10 .24 Let JXl > 2 and A E .FP(X*) . Then A is a fuzzy adjunc-
tive language if and only if Vu,v E X*, Jul = lvl and u - v(Fa) implies that u = v. 0
Proposition 7.10 .25 Let A E .FP(X*) . Suppose that A is c-discrete and b'w E X*, there exist u, v E X* such that A(uwv) >_ c . Then A is a fuzzy adjunctive language . Conversely, if A is a fuzzy adjunctive language, then b'w E X* there exist u, v E X* such that A(uwv) > 0. Proof. If u - v(Fa) and Jul = lvl , then by the hypothesis there exist x, y E X* such that A(xuy) > c . Since u - v(Fa), A(xuy) = A(xvy) and so A(xvy) > c . Now, since l xuy l = l xvy l and A is c-discrete, it follows that xuy = xvy and so u = v. Hence A is fuzzy adjunctive. © 2002 by Chapman & Hall/CRC
7. More on Fuzzy Languages
37 8
Conversely, if there exists w E X* such that Vu, v E X*, A(uwv) = 0, then Vu, v E X*, A(uwv) = A(uw 2 v) = 0, i.e., w - W2 (F,\), which contradicts the fact that A is a fuzzy adjunctive language. m Proposition 7.10 .26 If A E .FP(X*) is a fuzzy adjunctive language, then b'w E X*, IA' I = oo, where A' = {x I x E X*wX*, A(x) > 0} . Proof. Since A is fuzzy adjunctive, b'w E X*, IA'l z,4 0. Suppose that IA'l < oo . Let u E A' be such that Jul = V{lvI I v E A'J. Clearly, I AwnI = 0. This contradicts the fact that A is a fuzzy adjunctive language. Proposition 7.10 .27 Let I X I > 2 . Then A is an 0-discrete fuzzy adjunctive language if and only if Supp(A) is an ordinary discrete adjunctive language.
Proof. If Supp(A) is an ordinary discrete adjunctive language, then A is clearly a 0-discrete fuzzy adjunctive language. Conversely, suppose that A is a 0-discrete fuzzy adjunctive language and Supp(A) is not adjunctive. By Lemma 7.10.24, there exist x, y E X* such that x :?~ y, Ixl = lyl, and x - y(Psupp(a) ) . Hence Vu,v E X*, uxv E Supp(A) ~ uyv E Supp(A) . Consequently, Vu, v E X*, A(uxv) > 0 A(uyv) > 0. Since A is a fuzzy adjunctive language, by Proposition 7.10.25, it follows that b'x E X* there exist no, vo E X* with A(uoxvo) > 0. Thus A(uoyvo) > 0 . Since luoxvol = luoyvol and A is 0-discrete, uoxvo = uoyvo and so x = y, a contradiction . Hence Supp(A) must be an adjunctive language. If V'x, y E X* with x :?~ y, x, y E Supp(A), then clearly A(x) > 0 and A(y) > 0. Since A is 0-discrete, Ixl :?~ lyl . Therefore, Supp(A) is discrete . m We now consider fuzzy dense languages . Definition ?.10 .28 Let y E .FP(X*) and w E X* . Let yW =
{x I x E X*wX*, y(x) > c},
c E [0,1] .
If b'w E X*, Ip~ 0, then /t is called a c-dense language . In particular, a 0-dense language is called a fuzzy dense language and we write , Itw
po =
Example 7.10 .29 Let X = {a}. Define the fuzzy subset y of X* by la(an) = n+l
, n = 0, 1, 2, . . . , where ao = A. Then tt is a 0-dense language . Now /t
is not c-dense for any c E (0,1] since there exists n such that n+il < c and for w = an and x E X*anX*, y(x) < n+il < c .
Proposition 7.10 .30 Let w E .FP(X*). Then the following statements are equivalent. (1) w is a fuzzy dense language. (2)VwEX*, lw w I =oo . (3) There exists a fuzzy adjunctive language A with w D A.
© 2002 by Chapman & Hall/CRC
7.10. Algebraic Character and Properties of Fuzzy Regular Languages 379 Proof. (1) ==> (2) Immediate from Proposition 7 .10 .26 . (2) ==> (3) Define an ordering relation on X * as follows : if Ix I < ly l, then x < y ; if IxI = IyI , then x < y means that x, y is in the lexicographic ordering of elements of X. Now X* = {A<w1<w2< . . .<wn< . . .} . Since Iww I = oo, b'w E X*, ISupp(w) _ and the number of elements in {[x] W} is greater than 1 . Let x1, x2, . . . , x, . be the representative elements from these classes. Define A E .PP (X*) as follows : if x = xi for some i if x :?~ xiforalli . Clearly, A C w . Now b'x, y E X*, x z,4 y, if A(x) > 0, A(y) > 0, then IxJ z,4 and so A is 0-discrete . Since Iwwl I = oo, there exists an element ulwlvl IyI with the shortest length in wwl . We select u l wl v l as the representative element . Then A(u l w l v l ) = w(u l wl v l ) > 0. Similarly, since Iww2 1 = oo, we can choose u2w2v2 E ww2 such that `(u2w2v2) = w(u2w2v2) > 0 and Iww~ I = oo, there exists u2w2v2 E wwa I u1w1v1 I < I u2w2v2I . Hence since Vi such that A(uiwivi) = w(uiwivi) > 0 and ui_1wi_1vi_1 I < I uiwivil . Thus IA' I z,4 0, Vi . By Proposition 7 .10 .25, A is a fuzzy adjunctive language and w D A. (3) ==> (1) Now w D A implies that I ww I > IA w I b'w E X* . Since A is fuzzy adjunctive, IAw I :?~ 0 b'w E X* by Proposition 7 .10.25 . Thus ww I :?~ 0 b'w E X* . Consequently, w is a fuzzy dense language. m Proposition 7 .10 .31 Let /t E .FP(X*) .
fuzzy dense language.
Then either /t or 7 must be a
Proof. If b'w E X*, IftwI = oo, then /t is fuzzy dense . Suppose that there exists w E X* such that Iftwl < oo . Then l{x I x E X*wX*, y(x) > 0}I < oo . Thus {x I x E X*wuX*, y(x) > 0}I < oo Vu E X* and so {x I x E X * wuX * ,ft(x) = 0}I = oo Vu E X* . This implies that I {x I x E X*wuX*, T(x) = 1 > 0}I = oo .Hence (N)w'I = oo Vu E X* . Since X*wuX* C_ X*uX*, VU E X*, I (N)wul < I (p)ul = oo . Therefore, p is fuzzy dense . Proposition 7 .10 .32 Let w = / t U v and c E [0,1] . Then w is c-dense if and only if either /t or v is c-dense. Proof. Suppose that w is c-dense and v is not c-dense . exists wo E X* such that I {x I x E X*WO X*, v(x) > c} I <
© 2002 by Chapman & Hall/CRC
Then there
38 0
7. More
on Fuzzy Languages
This implies that Vu E X*, I{x I x E X*wo uX*, v(x) > c c oo . Since w is c-dense, b'w E X*, J {x I x E X*wX*, w(x) > c }I = oo, i.e., J {x I x E X*wX*, (ltUv)(x) > c}I = oo Vw E X* . This is equivalent to I{x I x E X*wX*, y(x) V v(x) > c}I = oo Vw E X* . Consequently, J {x I x E X*wouX*, y(x) V v(x) > c}I = oo Vu E X*. From this, it follows that J {x I x E X*w ouX*, y(x) > c}I = oo Vu E X* . Hence VU E X* ' I tt'o' I = oo and so I pu = oo Vu E X* . Thus tt is c-dense . Conversely, suppose that /t is c-dense . Now b'w E X*, I {x
I
x E X*wX*, ft(x)
> 0}I =
and so I {x I x E X*wX*, y(x) V v(x) > c}I = oo Vw E X* . This implies that I{x I x E X*wX*, w(x) > c} I = oo Vw E X* . Hence w is c-dense . m Proposition 7.10 .33 Let w
E .FP(X*) . Then w is c-dense if and only if is c-dense, where wl x*,,x* wl x*,,x* denotes the restriction of w to X*wX*, wEX* .
Proof. Suppose that w is c-dense . Then b'w, u E X*, I {x I x E X*wuX*, w(x) > c}I :?~ 0. Thus there exists x E X*wuX* C_ X*wx* rl X*uX* such that w(x) > c. Hence Vu E X*, there exists x E X*uX* such that wlx*,,x* (x) > c. This implies that Vu E X*, {x I
x E X*uX*,wlx .,x " (x) > c} I :?~
0.
Hence wlx*,,x* is c-dense b'w E X* . Conversely, suppose that b'w E X*, wl x*,,x* is c-dense . Then b'w X*, I{x I x E X*wX*, wlx*,,x*(x) > c }I :?~ 0. Thus b'w E X*, I{x I x X*wX*, w(x) > c} I :?~ 0. Hence w is c-dense .
E E
Proposition 7 .10 .34 Let I X I > 2, w = /t U v, and w be a fuzzy adjunctive language . Then one of the following statements hold. (1) /t or v is a fuzzy adjunctive language . (2) /t and v are fuzzy dense languages.
Proof. Suppose that /t, v are not fuzzy adjunctive and v is not fuzzy dense . Then there exists w E X* such that J {x I
x E X*wX*, v(x)
> 0 }I <
Since /t is not fuzzy adjunctive, there exist u, v E X* such that u :?~ v, Jul = IvJ, and u - v(FN) . Now Iv- 1 < oo and so there exists u such that Jul > V{IzI I z E vw} . Since uw -- vw(FN ), Vx,y E X*, lt(xuwy) = © 2002 by Chapman & Hall/CRC
7.10. Algebraic Character and Properties of Fuzzy Regular Languages 381 ft(xvwy), and Ixuwyl = lxvwyl > Jul . Thus xuwy, xuvy ~ v' and so v(xuwy) = v(xvwy) = 0. Now V'x, y E X*, co(xuwy)
= = = = =
ft(xuwy) V v(xuwy) ft(xuwy) ft(xvwy) ft(xvwy) V v(xvwy) W(xvwy) .
Hence uw - vw(F,) . Since w is a fuzzy adjunctive language, uw = vw, which contradicts the fact that u :?~ v. Thus v is fuzzy dense. Similarly, it can be shown that ft is fuzzy dense. m Proposition 7.10 .35 Let A be a fuzzy adjunctive Then AIx*wX* is a fuzzy adjunctive language .
language and w
E X*.
Proof. Clearly, A = Alx*wx* U Al x*wx* . Let x E X* . Then SI X*wx*
(x)
_ _
A(x) 0 A(x) 0
x E X*wX* x X*WX* x X*wX* x E X*wX* .
Clearly, (AI x*wX*)' is the empty set and so AI x*wX* is not fuzzy dense. By Proposition 7.10 .34, Alx*wX* is a fuzzy adjunctive language. Proposition 7.10 .36 Let I X I > 2, A be a 0-discrete fuzzy adjunction guage and A = ft U v . Then ft or v is a fuzzy adjunctive language .
lan-
Proof. If ft and v are not fuzzy adjunctive, then there exist xl, x2, yl, y2 X* such that xl :A x2, Y1 54 y2, Ixl I = Ix2I , Iyl I = IY2I , and x, -- X2 (Ft,), E = Y1 y2(F ) . Clearly, x 1 yl - x2y1(FN ) and x 1 y l - xly2(F ) . Since A is fuzzy adjunctive, there exist u, v E X* such that A(uxlylv) = y(uxlylv) V v(uxlylv) > 0 by Proposition 7.10.25 . If y(uxlylv) > v(uxlylv), then A(uxlylv) = ft(uxlylv) = ft(ux2ylv) > 0 and furthermore A(ux2ylv) = ft(ux2ylv) V v(ux2ylv) > 0. Since A is 0discrete, IUXIYIVI = lux2y1vl implies that uxlyly = ux2ylv, which contradicts that xl :A x2 . Similarly, if y(uxlyl v) <_ v(uxlyl v), then we can show that yl = y2, a contradiction . Hence ft or v is a fuzzy adjunctive language . Proposition 7.10 .37
Every 0-discrete fuzzy adjunctive language may be written as the disjoint union of two 0-discrete fuzzy adjunctive languages .
© 2002 by Chapman & Hall/CRC
382
7. More on Fuzzy Languages
Proof. Let w be a 0-discrete fuzzy adjunctive language. Let L C_ X* be an adjunctive language and let Bl
= Supp(w)
n
X*LX*,
B2
= Supp(w)
n
X*LX* .
Then B,UB2 = Supp(w), B 1 nB 2 = 01, and w = WIB,UWIB,, WIB l nwlB, = 0 . Now since w is 0-discrete, w I B I and W I B2 are also 0-discrete. Since L is an adjunctive language, b'w E X* there exist u, v E X* such that uwv E L . Also since w is fuzzy adjunctive and uwv E X*, there exist s, t E X* with w(suwvt) > 0. This implies that x = suwvt E Supp(w) r1X*LX* = B1 . Thus b'w E X*, I (WJ Bi ) w J 7~ 0 . Hence WJ B, is fuzzy dense. By Proposition 7.10.25, W J B, is fuzzy dense. _ Similarly, w 1 B 2 is also fuzzy dense since the adjunctivity of L implies that L is adjunctive. m Proposition 7.10 .38
Every fuzzy dense language may be written as the disjoint union of a fuzzy adjunctive language and an 0-discrete fuzzy adjunctive language .
Proof. Let w be a fuzzy dense language. First suppose that w is not fuzzy adjunctive. Suppose that IXI > 2. We consider the case IXI = 1 later. Let X* _ {ul, u2, . . . , un, . . . } . Since w is fuzzy dense, Vu 2 , I {x I x E X*u i X*, w(x) > 0}I = oo. Let x2 = s j ui t 2 E w n `, i = 1, 2. . . . be such that Ix1I
. . .
Let B = {XI, x2, . . . , xn, . WIB is an 0-discrete fuzzy
,
. . } . By Definition 7.10.22 and Proposition 7.10.25, adjunctive language . Next, we show that wIa is fuzzy adjunctive. Suppose that wIa is not fuzzy adjunctive. Since w is not fuzzy adjunctive, there exist V1, V2 such that vl :?~ v2, Iv1I = Iv2I, and vl - v2 (F,) . Also, since w17T is not fuzzy adjunctive, there exist W1, W2 such that wl :A w2, Iw1I = Iw2I , and w l - W2 (F, 17,) . Clearly, v l w l - vlw2(F,, B ) . Since WIB is fuzzy adjunctive, v 1 wl * vlw2(FWIB) . Thus there exist s,t E X* such that wJB(svlwlt) :A WIB(svlw2t) . Now either wJB(svlwlt) > WIB(svlw2t) or WIB(svlwlt) < WIB(svlw2t) . To be specific, suppose that wJB(svlwlt) > WIB(svlw2t) . Clearly, svlwlt E B . If WIB(svlw2t) > 0, then w(svlwlt) > w(svlw2t) > 0, i.e., v1wl - vlw2(F,) . If wI B(svlw2t) = 0 and svlwl t E B, then w(svlw 2 t) = 0 and w(sv 1 w 1 t) > w(sv l w2 t), i .e ., v 1 w l * v l w2 (F,) . If wI B(svlw2t) = 0 and svl wl t ~ B, then svlwlt E B . From v1wl - vlw2(F,1B) and svlwlt ~ B we have that w(sv l w2 t) = WI B (sv l w 2 t) = wlB(sv l w l t) = 0. Hence v 1 w l * vlw2(F,) . Therefore, it always holds that v1wl * vlw 2 (F,), i.e., w(sv l w l t) > w(svlw2t) .
© 2002 by Chapman & Hall/CRC
7.11 . Deterministic Acceptors of Regular Fuzzy Languages
383
However, vl - v2 (F,), v l w l - v 2 w 1 (F,), v l w2 (F,), and furthermore, w(sv 2 w l t) > w(sv2 w 2 t) . Since sv l w l t 7~ sv 2 w lt, I svl w ltI = I sv2witI , svlwlt E B, and by the definition of B, sv2 wl t ~ B, i .e ., sv2 w lt E B . Consequently, w(sv 2 w l t) =WI T(sv2 w lt) > w(sv2 w2t)
>
WIT(sv2w2t),
wl * w 2 (F,1 B), a contradiction . Hence w1 77 is a fuzzy adjunctive language, w = w I B U w I T, and w I B n w 1a = xO . Suppose that IXI = 1. Since w is not fuzzy adjunctive, by Definition 7.9.7, w is a fuzzy regular language . If wIa is not fuzzy adjunctive, then wIa is fuzzy regular . Since w = WIa U WIB, w, = (w I B), U (WIT) , VC E [0,1] . Clearly, w, and (wIa), are regular languages b'c E [0,1] . Since (WI B) c n (w I T)c = Ql b'c E [0,1], (WIB), is a regular language. Also since w is fuzzy regular, I {w(x) I x E X * } I < oo and { (W I B) (x) I x E X * } I < oo. By Proposition 7.10 .2, W I B is a fuzzy regular language . This contradicts that WIB is a fuzzy adjunctive language . Hence wIa is also a fuzzy adjunctive language . Suppose that w is a fuzzy adjunctive language. Now w = wIB U WIT, where W IB is a 0-discrete fuzzy adjunctive language. By Proposition 7.10.15, WI B = WI B, U WIB2 and WIBI n WIB2 = x0, where wIB. and WIB2 are two 0-discrete fuzzy adjunctive languages . Thus i.e .,
w=WI B,
UWIB 2 UWIB .
If WIB2 UwlB is a fuzzy adjunctive language, then the result is true. Suppose that wIB2 U WIBI is not fuzzy adjunctive. Then WIB2 is fuzzy adjunctive. By Proposition 7.10.30, w I B2 U w I a is a fuzzy dense language. From the preceding arguments, it follows that wIa is a fuzzy adjunctive language. Since w = W I B U WIT, the desired result follows . m
7.11
Deterministic Acceptors of Regular Fuzzy Languages
The results in this section are from [228] . It is well known that there is a oneto-one relationship between finite automata, regular (type-3) languages, and regular expressions . This relationship demonstrates the use of regular expressions for describing deterministic finite fuzzy automata and regular fuzzy languages . It introduces a normal form for the production of a regular fuzzy grammar when the max-min rule is used. Specific fuzzy system models based on fuzzy set theory include a description of decision making in a fuzzy environment [14], finite fuzzy automata as learning systems [250], and fuzzy grammars and languages [122, 123]. © 2002 by Chapman & Hall/CRC
38 4
7. More on Fuzzy Languages
Fuzzy automata, grammars, and languages lead to a better understanding of nondeterministic algorithms and of pattern recognition tasks using syntactic pattern recognition techniques. In this section, an algorithm is developed for constructing a deterministic finite automaton that classifies the strings of a language with a regular fuzzy grammar . The derivations of the grammar are governed by the maxmin rule [122, 123] . An equivalent unambiguous regular fuzzy grammar with productions in a normal form is developed from an extension of this algorithm . Definition 7.11 .1 A regular fuzzy grammar is a four-tuple G = (N, T, S, P), where N is a finite set of nonterminals, T is a finite set of terminals, S E N is the starting symbol, P is a finite set of productions, N n T = 0, and the elements in P are of the form A aET, 0
~ aB or A -
k
k
->
a, A, B E N,
Definition 7.11 .2 A finite quasi-fuzzy automaton (fgfa) is a six-tuple
M = (Q, X, Y, S, w, qo), where Q is a finite set of states, X is a finite input alphabet, Y is a finite output alphabet, S : Q x X x [0,1] ----> Q is the fuzzy state transition map, w : Q ----> Y is the output map, and qo E Q is the starting state.
Definition 7 .11.2 differs from the fuzzy machines defined previously in two important ways. First, the interval [0,1] determines the third component of the ordered triple appearing in S's domain rather than containing the image of S. Second the output map is crisp and has Q as its domain rather than Q x X. A regular fuzzy grammar reduces to a conventional grammar when production weights are all equal to 1. Similarly, a finite quasi-fuzzy automaton reduces to a conventional finite-state Moore machine by restricting the transition weights to the value 1. A fuzzy subset of T* is called a fuzzy language in the alphabet T. Given a regular fuzzy grammar G, the membership grade of a string x of T* in the regular fuzzy language L(G) is the maximum value of any derivation of x, where the value of a specific derivation of x is equal to the minimum weight of the productions used. From the max-min rule for a fuzzy language, every string of T* has its highest computable membership grade. It is known [123] that given a regular fuzzy grammar G, a corresponding finite quasi-fuzzy automaton can be constructed that "accepts" the language L(G). The following theorem describes the construction of a deterministic nonfuzzy, finite automaton that computes the membership function of LG) . Unless otherwise specified, we use the symbol X to denote both the automaton input alphabet and the language terminals, i.e., X = T.
© 2002 by Chapman & Hall/CRC
7.11 . Deterministic Acceptors of Regular Fuzzy Languages
38 5
Theorem 7.11 .3 Let G be a regular fuzzy grammar. Then there exists a deterministic Moore sequential machine dfa, with output alphabet Y C_ {c c is a production weight} U {0}, which computes the membership function y: X* ~ [0,1] of the language L(G) .
Proof. We give a five-step algorithm for constructing the dfa. Step 1 : Given the regular fuzzy grammar, obtain the corresponding fqfa. The fqfa is obtained in the same way that a nonfuzzy finite automaton is obtained from a nonfuzzy regular grammar [22], with the exception that a production weight is assigned to the corresponding transition [123] . Step 2 : Obtain the set W of possible nonzero membership grades of strings in the language L(G) . W is taken to be the finite set of distinct production weights or, equivalently, the weights of the transitions of the fqfa. (The reasoning is as follows : (a) the max and min operations do not introduce a weight not al ready assigned to some production and (b) each production weight initially may be the membership grade of some string (or strings) in the language L(G).) Step 3 : For all c E W obtain the regular expression P(c) describing those x E X* such that y(x) > c. (It is known that given a regular fuzzy language and a threshold c, 0 < c < 1, the nonfuzzy "threshold language" L(c) = {x I x E X*, ft(x) > c}
is regular .) The regular expression P(c) can be found in the following method . Examine the transition diagram of the fqfa and retain without weight only those transitions whose weight is equal to or greater than c. This yields a nondeterministic nonfuzzy machine that recognizes the language L(c) and from which the regular expression P(c) can be obtained directly by standard techniques for nondeterministic transition graphs or by conversion to a deterministic finite automaton and solution of the descriptive equations [22] . Step 4: For all c E W obtain the regular expression F(c) describing those strings x of X* such that y(x) = c. (It is known that if F'(cl) and F'(c2) are regular expressions, then so are the Boolean functions of F'(c l ) and F(C2) . Specifically, if F'(cl) and F(C2) define two threshold languages, then the new regular expression F(c2) = F(C2) n F'(cl)
defines the regular language consisting of those strings that are in L(c2) and not in L(cl) .) Consider the finite set W of possible nonzero membership grades in L(G) . Let cl, c2 E W be such that cl > c2 . Then the regular expression © 2002 by Chapman & Hall/CRC
7. More on Fuzzy Languages
38 6
F(c2) = F(C2) n F'(cl)
defines the set of strings {x I
x E X*,x E
L(c2),x
E L(cl)}
_ _
{x I
x E X*,
p(x) > c2, clI 10) < {x I x E X*, 1t(x) = c2}
F(c2) is an equivalence class of the equivalence relation E on X* defined by (x, y) E E if and only if 1t(x) = ft(y) . This procedure, applied to all pairs of
adjacent membership grades in W beginning with the lowest value, yields the disjoint regular expressions defining the dfa . Step 5: Use the regular expressions F(c) to obtain the state transition diagram of the dfa, where c E W. m The procedure for obtaining a state transition diagram by taking derivations of a regular expression is discussed in [22] . Another method of decomposing a fuzzy grammar into nonfuzzy grammars using the concept of level set can be found in [258] .
Corollary 7.11 .4 Let Gl be a regular fuzzy grammar. Then there is an equivalent unambiguous regular fuzzy grammar G2 in which productions have the form A - aB or A -c -> a, where A, B E N, a E T, and 0 < c < 1 .
Construct the dfa as described in proof of Theorem 7.11 .3 . Then there is in P a production A - I --> aB (or A ~ aB, with weight 1 understood) for each transition S(qA, a) = qB . If w(qB) = c :?~ 0, then there is in P a production A -c -> a for each transition S(gA,a) = qB . The starting symbol S of G2 corresponds to the starting state qs of the dfa. Suppose the terminal string x = ab . . . de causes the dfa started in state qs to halt in a state with output k. Then there is a derivation Proof.
S----> aA----> abB----> -------> ab . . .dD__c___> ab . . .de in G2 . Conversely, such a derivation in G2 yields a string that causes the dfa to terminate in a state with output c. G2 is unambiguous since it is obtained from a deterministic finite automaton. 0 The following example illustrates Theorem 7.11.3 and Corollary 7.11 .4 . If x, y E T* in the following example, then we use the notation x + y to denote {x, y} . © 2002 by Chapman & Hall/CRC
7.11 . Deterministic Acceptors of Regular Fuzzy Languages
Example 7.11 .5 (216) Consider the regular fuzzy grammar
387 GI = (N, T,
S, P), where N = {S, A, B}, T = {a, b}, and the productions are as follows: 0 .3
S-
0 .3
S-
-> bS
Bib.
0.5 S0.2 S- -> bA
S~aB 0.5 A -> b
Step 1 : The corresponding fuzzy machine is shown in Figure 7.1 . Step 2: W = {0 .7, 0.5, 0.4, 0.3, 0.2} . Step 3: c = 0.2, c = 0.3, c = 0.4, c = 0.5, c = 0.7,
F'(0 .2) F'(0 .3) F' (0 .4) F' (0 .5) F' (0 .7)
= (a + b)*(ab + bb) = (a + b)*ab = ab = ab = 01 .
Step 4: F(0 .2) F(0 .3) F(0 .4) F(0 .5) F(0 .7)
= F'(0 .2) n F'(0.3) = (a+ b) (a+ b)*ab = Ql = ab = 01 .
= (a + b)*bb
Step 5: The deterministic classifier of strings in the regular fuzzy language L(G) is shown in Figure 7.2. Using the method of Corollary 7.11.4, the productions of the equivalent grammar G2 are as follows: S~aA~bB
0.5
A~aC~bD
A
-> b
B~aC~bE
Bib
a/0 .5
Figure 7.1 1 : fqfa obtained from Gl
© 2002 by Chapman & Hall/CRC
7. More on Fuzzy Languages
388
C
aC
bF
D~aC~bE
Cab
E~aC~bE
Deb 0.2 E b
F
Fib.
aC
bE
b
Figure 7.2 2 : dfa obtained from G1
Example 7.11 .6 [28] Consider the string ab . Using G1, S-
0 .5
->
0 .5 ->
aA-
0 .7 ->
abandS-
aB
0.4
->
ab .
We have that ft (ab) = (0 .5 A O .5) V (0 .7/x, 0 .4) = 0 .5 . Using G2, we have that 0.5 S~aA -> ab.
7 .12
Exercises
1. Let .M = (M, t, T) be a fuzzy recognizer of a fuzzy finite state machine M = (Q, X, [t) . Let A = L(M) . If q E Q and t(q) n ft(p, x, q) > 0 for some p E Q and x E X*, then show that x-1 A = X{e} o T, where X{e} is the characteristic function of {q} . 'Figure 7 .1 is from [228], reprinted with permission by Copyright 1974 IEEE . FFggure 7 .2 is from [228], reprinted with permission by Copyright 1974 IEEE .
© 2002 by Chapman & Hall/CRC
7.12. Exercises
389
2. (121) Let .M = (M, t, T) be a fuzzy X-recognizer of M = (Q, X, /t) and let .M' = (M', t', T') be a fuzzy X'-recognizer of M' = (Q', X', ft') . Let f : Q ----> Q' and g : X ----> X' . Then (f, g) is called a homomorphism of .M into AT if b'p, q E Q and Vu E X, (1) ft(p, u, q) <_ w'(f (p), g(u), f(q)), (2) t(q) <_ t'(f (p)), and (3) T(p) <_ T'(f (p)) . If (f, g) is a homomorphism of .M into .M' prove that b'p, q E Q and x E X* , ft * (p, x, q) < ft* (f(p),9(ui) . . .g(u,),f(q)), where x = ul . . .un and u2 E X, i = 1, 2, . . . , n. 3. (121) Suppose that (f, g) is a homomorphism of .M into .M' and (h, k) is a homomorphism of .M' into .M" . Prove that (h o f, k o g) is a homomorphism of .M into .M" . 4. (121) Suppose that M = (M,t,T) is a complete accessible fuzzy Xrecognizer of the ffsm M = (Q, X, ft) . Let A = L(M) . Show that there exists a homomorphism of MA into .M, where MA is the fuzzy X-recognizer of MA . Show that if Supp(t) z,4 0, then MA is a homomorphic image of .M . 5. (121) Let M = (M, t, T) be a complete accessible fuzzy X-recognizer of a ffsm M = (Q, X, [t) . Then .M is called reduced if ql 1 oT = q2 1 OT implies ql = q2 . Let A = L(M) . Prove that .M is reduced if and only if f is injective, where (f, g) : .M ----> MA is a homomorphism and g is the identity map . If, in addition, Supp(t) z,4 0, prove that .M is reduced if and only if .M = .M A. 6. Prove Theorems 7.5.1 and 7.5 .2. 7. Prove (2), (4), and (6) of Theorem 7.5 .4. 8. Prove Theorem 7.6 .6. 9. Prove (2) and (4) of Theorem 7.6.18. 10. Prove (2) of Theorem 7.7.5. 11. Prove Theorem 7.8 .4. 12. Prove that x - y(FL) implies x = y in Example 7.10.12 . 13. Compare the fuzzy state transition map S : Q x X x [0,1] ----> Q in Definition 7 .11 .2 with a function ft : Q x X x Q ----> [0,1] . Show for example that S(q, a, 2) = ql and S(q, a, 2) = q2 is not possible, while ft(q, a, ql) = z and ft(q, a, q2) = z is possible. Show also that S(q, a, 2) = ql and S(q, a, 4) = ql is possible, while ft(q, a, qi) = 2 and ft(q, a, ql) = 4 is not possible.
© 2002 by Chapman & Hall/CRC
Chapter 8 Minimization of Fuzzy Automata 8 .1
Equivalence, Reduction, and Minimization of Finite Fuzzy Automata
The problem of equivalence, reduction, and minimization is completely solved for deterministic automata. For stochastic automata, the problem is studied in detail in [29, 58, 168] . The case for some types of fuzzy automata is given in Chapters 2 and 3. In this and the following three sections, we present an algebraic approach concerning the minimization of fuzzy automata as developed in [231] . The theoretical foundation [169] of the algorithm of Even [58] and the analogies between some aspects of the theory of rings (resp., modules) and the theory of semirings (resp., semimodules) indicate the way for determining a general solution in the case of fuzzy automata. Using the notion of a noetherian semimodule, we present an algorithm for the equivalence of some kinds of fuzzy automata. We recall the definitions of semiring and semimodule [27, 56, 59] and some ideas from the theory of fuzzy automata from Chapters 2 and 3 and [262] . Let S be a set and let *1 and *2 be two binary operations on S, i.e., *Z : S x S ~ S, i = 1, 2 . In this chapter, we call the triple (S, *1, *2) a (commutative) semiring if (S, *1) and (S, *2) are (commutative) semigroups with identity and *2 is distributive over *1, i .e ., b'a, b, c E S, a *2 (b *1 c) (b *1 c) *2 a
_ =
(a *2 b) (b *2 a)
*1 *1
(a *2 c) (c *2 a) .
Let E be a set, S be a semiring and let *'1 : E x E ~ E and *'2 S x E ----> E. The triple (E, *i, *z) is called a left semimodule over S if © 2002 by Chapman & Hall/CRC
391
392
8. Minimization of Fuzzy Automata
for all a, b E S and x, y E E the following conditions hold: (SM.1) (E, *''I ) is a commutative semigroup with identity ; (SM.2) a *2 (x *' y) (a * 1 b) *2 x
_ =
(a *2 x) *' (a *2 y) (a *2 x) *' (b *2 x)
(SM.3) a *2 (b *2 x) = (a *2 b) *2 x .
A function h : (E, *i, *z) ----> (E, *i, *z) is called a morphism of semimodules if the following properties hold: b'a E S, b'x, y E E, h(x *' y) = h(x) *i h(y) and h(a *'2 x) = a *z h(x) .
We sometimes either use - for the operation *'2 or suppress it all together and we replace *'i with +. We also simply call E a semimodule over S or an S-semimodule. The notion of a right semimodule is defined similarly. If S is a commutative semiring, we call E a semimodule. Let M be an S-semimodule. A set X C_ M is called a system of generators for M if X generates M, i.e ., if every element of M is expressible in the form E', aix2, a2 E S, x2 E X, i = 1, 2, . . . , n for some n E N. A quasi-base is a minimal system of generators for M. If the quasi-base is finite, the dimension of M (denoted dim M) is the cardinality of X. Let X be a set, not necessarily finite, and let S be a semiring. Let VX =
XEX
ax - x, ax
E
S, x
E X,
where ax = 0 except for a finite number of elements x E X. Then it follows that VX is an S-semimodule, called a free semimodule . It also follows that the set X is a minimal system of generators for VX. Proposition 8 .1 .1 Let M be a semimodule over S. Then the following conditions are equivalent . (1) Every increasing sequence of sub-S-semimodules of M, i.e., Ml C_ M2 C_ . . . C_ Mk C . . . , such that MZ :?~ MZ_1, is finite. (2) For every sub-S-semimodule of M, there exists a finite minimal system of generators . (3) Every nonempty set G of sub-S-semimodules of M contains a maximal element.
A semimodule that satisfies any of the properties of Proposition 8.1.1 is called noetherian. Proposition 8 .1 .2 If X is a nonempty finite set, then the free semimodule VX is noetherian.
0
© 2002 by Chapman & Hall/CRC
8.1 . Equivalence, Reduction, and Minimization ofFinite Fuzzy Automata393 (1) Let I = [0,1] . Consider the binary operations *1 = max and *2 = min on I. Then the triple (I, *1, *2) = ([0,1], max, min) is a commutative semiring . (2) Let L be a distributive lattice. Then the triple (L, max, min) is a commutative semiring . (3) Let X be a finite set and VX be the free semimodule generated by X over the semiring from (1). The operations on the free semimodule are as follows : Example 8.1 .3
=+ :VXXVX~VX, Lax x+Lbx x=L(ax Vbx)-x, XEX
XVX ----> VX,
=- : [0,1]
XEX
XEX
XEX
XEX
If X is finite, then VX is a noetherian semimodule (see Proposition 8.1 .2) . fuzzy automaton is a quadruple A = are finite sets and /t : Q x X x Y x Q ~ [0,1] .
Definition 8.1 .4 A
where
Q, X, Y
(Q, X, Y, /t),
(The definition of a fuzzy automaton in Definition 8.1 .4 is the same as that of a max-min sequential-like machine in Definition 2.9.1 . We use the differing terminology partially to be consistent with the original papers, but also due to the different approach.) As usual Q is the set of states, X is the input alphabet, and Y is the output alphabet for the fuzzy automaton A. Let y(qj , x2 , yr, qk) = a~ E [0,1] . If the interval [0,1] is replaced by the distributive lattice L (see Example 8.1 .3(2)), we obtain the more general notion of L-automaton, closely related to fuzzy automaton. Every fuzzy automaton A defines the free semimodules V(Q x X) and V(Y x Q) over the semiring [0,1] . Define the function ~ :V(QXX)----> by Vqj E
Q,
Vx 2 E X, r, k
The
V(YXQ)
a; (yr, qk)
array MN = [a~] describes the fuzzy automaton . the words x = xl - X2 2. . . . x1, E X*, y = Y1 ' y2 . . . ' Yp E Y' and the matrices M(x 2 , yr) = [mjk(x2, yr)], where mj k(x 2 , yr) = a~. Denote the max-min product of matrices by o . Then we obtain the expression corresponding
Consider
M(x, y)
=
M(xl, yl) 0 M(x2, y2) 0 . . . 0 M(xP, yP)-
© 2002 by Chapman & Hall/CRC
394
8. Minimization of Fuzzy Automata
If P = P(A,A) is a column matrix with IQ I rows and whose elements are equal to 1, let P(x, y) = M(x, y) o P. Let A = (Q, X, Y, p) be a fuzzy automaton . We call (Q, E) the fuzzy set of initial states, i .e., E is a fuzzy subset of Q. Let q E Q and a E [0,1] . Define Eq : Q [0,1] and Eq : Q ~ [0,1] by dq' E Q, 1
Eq(q) = ~ 0
if q=q' if q4 q'
0 o , Eq(q) = ~ aE[01]
if q=q' if qz,4 q'
with the condition that EgEQ Eq(q) 0 for Eq . The fuzzy automaton A, denoted in this case (A, Eq) (resp. (A, E)), is called initial (resp . weakly initial) . For the fuzzy automaton A, define SE (x, y) = E o P(x, y) . An entry of SE (x, y) indicates the maximal degree of membership for the input word x and the output word y, where (Q, E) is fixed. Let A = (X, Q, Y, y) and A' = (X', Q', Y', y') be fuzzy automata and let E and E' be fuzzy subsets of Q and Q' respectively. Definition 8.1.5 The initial automata (A, E) and (A', E') are said to be equivalent, written (A, E) - (A', E'), if SE (x, y)A = SE' (x, y)A' for all
and yEY* . Let A = A' = (X, Q, Y, /t) . If (A, E) - (A', E'), then E and E' are said to be equivalent on Q, written E - E' . (2) If (A, Eq) - (A', E`), then the states q E Q and q' E Q' are said to be equivalent, written q - q' . (3) A = (X, Q, Y, ft) is said to be equivalently embedded into A' _ (X', Q', Y', /t'), written A ;~ A', if for each q E Q, there exists an equivalent state q' E Q' of A' . (4) A is said to be weakly equivalently embedded into A', written A ;~ A', if for all E : Q ~ [0,1] there exists E' : Q' ~ [0,1] such that (A, E) - (A', E') . (5) A and A' are said to be equivalent, written A - A', if A ;~ A' and xEX* (1)
A'~ A. (6) A and A' are called weakly equivalent, written A s: A' , if A ;~ A' and A' ;~ A . Definition 8.1.6 Let A be a fuzzy automaton. (1) A is said to be in reduced form if for all q, q'
E
Q, q - q' implies
q=q' . (2) A' is called a reduct of A if A' is in reduced form and is equivalent to A . (3) A is said to be in minimal form if for each Eq y (i <_ QI ), there does not exist Eqy (i <_ IQ 1) such that (A, Eq y ) - (A', Eq y ) . (4) A' is called a minimal of A if it is in minimal form and A ; A'.
© 2002 by Chapman & Hall/CRC
8.1 . Equivalence, Reduction, and Minimization ofFinite Fuzzy Automata395
Example 8.1.7 Let X = {u} and Y = {1} . Let Q1 {sl, s 2 } . Define ft, : Q1 x X x Y x Q1 [0,1] and P2 [0,1]
as in Example 2.10.2 . Let El 2
Ml (u,1) = 2
1
1 3
2
3
i
i
3
2 3
and
0
: Q1 ----> [0,1]
M2 (u,
l) _
for n = 2,3= , . . . . For n
and for n = 3,5,7, . . . ,
SE ' (u,1)A,
_
M2 (U
[
2 3
and E2
. In fact, Ml(un, in) _
2,4,6. . . . 1
0
0
n ' in) _ ~ 1
2
2
,
M2(un ,
1n ) =
2 0
0 1
2
~ . We also have that 3
° ~ 11
0
s n z) V (E l (q2) n 3)
(E l (gi)
: Q2 ---->
Y x
1
E, (q2) ] °
[ E1(gi)
i 2 0
0
and Q2 = Q2 [0,1] . Then
= {qi, q2} : Q2 x X x
(E l (gi)
n 3) ] ° [ 1
n z) V (El (q2) n 3) V (Ei(gi) n s) n z) V (El (q2) n 3)
(E l (gi) (E l (gi)
and SE2 (u,l)A 2
=
_ _
~ E2(si)
~
(E2(s2)
(E2 (82)
A
0
E2(s2) ~ 0
n 3)
3)
V
(E2(sl) (E2(sl)
0
0 n
2)
A 2) .
]
°
1
[
1 1
In fact, SE l (un,1n)A,
_
, (E1(q ) (Ei(gi)
n 2) v n z) V
n 2) v (EI(q,) n 3) v (Ei(g2) n z), (Ei(q2)
(Ei(q2)
A
3)
for n=2,3,4, . . . . For n=2,4,6, . . . , SE2 (un,1n)Az
=
(E2(sl)
A z) V
(E2(s2)
A z),
=
(E2(82)
A z) V
(E2(sl)
A 2) .
and for n = 3,5,7, . . . , SEZ (un,1n)Az
We see that if E, (q2) > 3 < E2 (82) and El(gi) > z < E2 (81), then (Al, El) ti (A2, E2). We also have that for appropriate choices of rh and 972 in Example 2.10 .2 and of El and E2 here, rh (un, 1n) = SEl (Un' in )A, and rIz (Un, 1n) _ SEZ (U n' in )A2 b'n E ICY. © 2002 by Chapman & Hall/CRC
396
8. Minimization of Fuzzy Automata
Example 8.1 .8 Let X = {u} and Y = {0,11. Define ft : Q x Xx Y x Q [0,1] as in Example 2.10.3, i.e ., ft(gi, u,1, q2) = 2 and tt(g2, u, 0, qi) = 23 with ft of any other element equal to 0 . Let E : Q ~ [0,1] . Then M(u,1) = 0
M(uu,10) = I 0 0 ~ ,
1010) =
i
0
M(uuu, 010)
0
~
, M(uuu,101) =
0 ] , . . . , and M(u, 0) _
=
0
I
,
0 ] ,
02
3
and M(uuuu, 0101)
_
1
0
0
], M(uuuu,
M(uu, 01) =
0
0
2
] ,
0 ] , . . . . It follows
that r' (X, y) = SE (x, y) A V'x E X* and b'y E Y* . Now SE91(u'1)=[
1
0 ] °
1 0
0 1 0 1 1 1
2
and
Hence it is not the case that qi - q2 . Thus A is in reduced fo 8 .2
Equivalence of Fuzzy Automata :
An Al-
gebraic Approach Let A = (Q, X, Y, /t) be a fuzzy automaton. Define a function t : V (X Y*) ----> VQ as follows: t(A, A) = 1: g, qEQ
t(x,y) -
EgjEQpj(xly)gj 0
if Ix1 = lyl if Ix1 z"~ Iy1,
where pj : X* x Y* ----> [0,1] . It follows that t is a morphism of semimodules. We denote its corresponding matrix by Mt . Construct the sequence Eo C El C . . . C_ E of subsets of E = X* x Y* as follows: Eo =EZ
Ei-i U {(x, y) I x E X*, y E Y* , Ix1 = Iy1 = i} .
© 2002 by Chapman & Hall/CRC
8.2 . Equivalence of Fuzzy Automata: An Algebraic Approach
397
Proposition 8.2 .1 The following assertions hold: (1) VEZ is a sub-semimodule of VEZ+1 for i = 0,1, . . . . (2) tVE2 is a sub-semimodule of tVE2+1 for i = 0,1, . . . . (3) If tV EZ = tV EZ+1, then tV EZ = tV EZ+ k for k = 0,1, . . . . (4) tVEk = tVEk + 1 for some k E N. Proof. (1) Since EZ is a set of generators (quasi-basis) for the semimodule VEZ, i = 0,1, . . . , and Eo C El C . . . C_ E, we have VEo C VEl C
. . .CVE . (2) The result follows here since t is a morphism. (3) See [176] . (4) The result follows here since VQ is a semimodule that is noetherian and VtE C VQ . m
Theorem 8.2.2 Let (A, E) and (A', E') be weakly initial fuzzy automata. Then (A, E) - (A', E') if and only if E o t = E' o t' .
Proof. If
IxI = I yI
for (x, y) E X* x Y*, then by Definition 8.1 .5, SE (x
and since SE(x, y)
2Y) A
I
= SE' (x, Y) A'
= E o (M (x, y) o P),
we have that
E o (M(x, y) o P) = E' o (M' (x, y) o P) .
This expression is equivalent to E o t(x, y) = E' o t' (x, y) for each (x, y) E X* x Y* such that Ixl = lyl . If Ixl :A jyj , then by the definition of t, t(x, y) = t'(x, y) = 0, i.e ., E o t = E' o t' . Conversely, suppose that E o t = E' o t' . Clearly, E o t(x, y) = E' o t' (x, y) for all (x, y) E X* x Y* . Hence E o t(x, y) = E' o t'(x, y) . However,
Mt(x, y) =
0
(x, y) o P
jjyj if ixi = yj
It follows that E o (M(x, y) o P) = E' o (M'(x, y) o P), i.e ., SE (x, y) A SE'(x, y) A' for all (x, y) E X* x Y* such that IxI = Iyl . A similar result is given in Chapters 2 and 3.
=
Corollary 8.2 .3 Let A be a fuzzy automaton. Then E - E' if and only if SE (x, y)A = SE' (x, y)A for all (x, y) E X* x Y* such that Ixl = lyl < n - 1. Proof. If (A, E) ti (A, E'), then SE(x, y)A = SE' (x, y)A for Ixl = jyj 0,1, . . . . Hence Ixl = lyl < n. If SE (x, y)A = SE' (x, y)A for all (x, y) E X* x Y* such that Ixl = Iyl < n-1, then by Proposition 8.2.1(4), it follows that E o (M(x, y) o P) = E' o (M(x, y) o P) . Thus (A, E) - (A, E') . m This is the fuzzy interpretation of the well-known Carlyle theorem [29] for equivalence of stochastic automata . © 2002 by Chapman & Hall/CRC
8. Minimization of Fuzzy Automata
398
Corollary 8.2.4 Let A be a fuzzy automaton. Then the following statements are equivalent:
(2) e0Mt =e'0Mt .0
Corollary 8.2.5 Let A be a fuzzy automaton. Then the following statements are equivalent: (1~ (2)
El q-a
-
e'1 . qj
The i-th and j-th rows in the matrix Mt are identical.
Proof. (1)x(2) Suppose that el . - e' 1 . By Corollary 8 .2 .4, el, o Mt eq, o Mt . However, by the construction of eq,, the i-th and j-th rows in Mt are identical . q-~
qj
q-~
(2)x(1) The proof is straightforward.
Lemma 8.2.6 If (A, e) - (A, e'), then dim(Im(t)) = dim (Im(t')) .
Proof. By Theorem 8 .2 .2, e o t - e' o t' ~ e o Mt - e' o Mt , . Thus it follows that dim(Im(t)) = dim(Im(t')) .
Theorem 8.2.7 Let A and A' be fuzzy automata. If e is given, then the problem of finding e', if it exists, such that (A, e) - (A', e'), is algorithmically decidable. m
© 2002 by Chapman & Hall/CRC
8.2. Equivalence of Fuzzy Automata: An Algebraic Approach
399
For a proof of Theorem 8.2 .7, see the algorithm in Figure 8.1 .
PRINT: NO EXISTS e" SUCH THAT (A, e) IS EQUIVALENT TO (A",6")
Figure 8.1 1 It is stated in [231] that the computing program is not easy to realize since useful standard programs are missing . 'Figure 8. 1 is reprinted from [231] with permission by Academic Press.
© 2002 by Chapman & Hall/CRC
8. Minimization of Fuzzy Automata
400
8.3
Reduction and Minimization of Fuzzy Automata
The reduction and minimization of fuzzy automata are a consequence of the theory of equivalence of fuzzy automata. They are of importance in applications. In this section, we give a completion of the ideas of Santos, which were presented in Chapters 2 and 3. The next result is closely connected with the problem of reduction of fuzzy automata.
Theorem 8.3.1 Let Mt be the matrix associated with the fuzzy automaton A. If Mt contains two identical rows, then there exist fuzzy automata A' and A", with IQI - 1 states each, such that A A' and A A".
-
-
Proof. Suppose that the rows corresponding to the states qi and qj are identical in Mt. Let Q' = Q\{qi) and Q" = Q\{qj). Then the corresponding matrix Mt, (resp. Mt,,) for the fuzzy automaton A' (resp. A") is obtained from Mt by eliminating the i-th (resp. j-th) row. We show that A A' (resp. A A").
-
-
The equivalent state to q E Q, qi # q # qj is q E Q' (resp. q E Q") and vice versa since E: o Mt = E: o Mtr (resp. E: o Mt = o M p ) . The equivalent state to q = qi, qj E Q, respectively, is the state qi E Q' (resp. qj E Q"). The state equivalent to qi E Q' (resp. qj E Q") is qi E Q (resp. qj E Q). The proof of these conditions is a consequence of the definition of E:, of the construction of Mt.
Corollary 8.3.2 For every fuzzy automaton, there exists a reduced fuzzy automaton. All reduced fuzzy automata associated to a given fuzzy automaton have sets of states of the same cardinality. rn
Theorem 8.3.3 For finite fuzzy automata, the relation of equivalence is decidable. rn
The block-scheme (Figure 8.2) of the algorithm proving the equivalence
© 2002 by Chapman & Hall/CRC
8.3. Reduction and Minimization of Fuzzy Automata of two fuzzy automata A and A' is in fact the proof of Theorem 8.3.3.
Figure 8.22
2 Figure
8 .2 is reprinted from [231] with permission by Academic Press .
© 2002 by Chapman & Hall/CRC
401
402
8. Minimization of Fuzzy Automata
PRINT : A" IS NOT EQUIVALENTLY EMBEDDED INTO
A"
Figure 8 .2 (Continued) The following result pertains to the existence and explicit construction of a minimal fuzzy automaton of a given fuzzy automaton . q
Theorem 8 .3.4 Let A = (Q, X, Y, p) be a fuzzy automaton . If E l n En and E0 n contains a fuzzy _ _ 1 E [0,1] as a component, then there exists _ automaton A = (Q, X, Y, y), with ~ Q1 - 1 states such that A ; A. Proof. Suppose =
El
E2
. . .
E .-1
0
Ern+l
. . .
satisfies the condition of the theorem and = [ 0 © 2002 by Chapman & Hall/CRC
0
. ..
0
1
0
. ..
0 1
En
8.3. Reduction and Minimization of Fuzzy Automata
403
. We construct the fuzzy automaton A = (Q, X, Y, 7) _ as follows: Let Q = Q\{qr } and define 7 : V(Q x X) V(Y x Q) as follows : is equivalent to Eq_
n
g(gj, xi) = Lr -a" (y,, qk), r, k
where
at = a~ V (EO M A a~) . We
now show that the states qj, j z,4 m,
with the same indices in A and A are equivalent . For the words with length l = 1, we have
az7. = Vk
farkl = V { V/ O f a rkl k ml ij ml a~
V O
k m
(EO k
= V f a rkl n arm ii ) f kl ij
= ar . ij
In the last equality, recall that Eq~ contains 1 E [0,1] as a component, i.e ., VkO .(Eo A j) j since
a =a Vk
.(E00
rm
n arm))
f0 - (Vk m LE k )
n arm aaj - arm azj .
Suppose the states qj , j :?~ m, are 1-equivalent, i.e ., for every x E X*, y E Y* such that IxI = I yI = l, the following holds: pj (x, y)a = Pi (x, y) A . By the hypothesis, VkO m (EO A pk (x, y)) = pm (x, y) . Thus we have Pi (xix, yry)
n pk (x, 2J))
=
VkOm (aj
=
Pj(xix,yry)
=
(VkOm(aj APk(x,Y)))V O (arj n (VkOm{(E APk(x,y))})) Vk(aj APk(x,y))
That is, the states with the same indices for automata A and A are (l + 1)equivalent and thus equivalent . For each El
E2
.. .
Em-1
Em+1
...
En
for A, there exists an equivalent E =
E2
E1
. ..
Em-1
0
Em+1
. ..
En
for the automaton A. For a given E = (El, E2, . . . , En ) for the automaton A, the corresponding equivalent 7 = (71, 72, . . . , Vin) for A is defined by the equation 7i = Ei V (Em A E°), i z,4 m, where E° is the i-th component of the vector E ° . Thus 9-
SE(x, y)A
=
E
o P(x, y)
vi (Ei n pi (x, y))
(E° (Viom{(Ei APi(x, y))}) V (Em A APi(x, y))) Viom{(Ei V (Em n E9)) n pi (x, y)} V iom{ (Ei n pi (x, Y)) SE(x,y)a-
© 2002 by Chapman & Hall/CRC
404
8. Minimization of Fuzzy Automata
8 .4
Minimal Fuzzy Finite State Automata
Fuzzy finite automata are used to design complex systems. For example, they are useful for a knowledge-based system designer since a knowledgebased system should solve a problem from fuzzy knowledge and should also provide the user with reasons for arriving at certain conclusions . A design tool is more valuable if there exist guidelines to assist the designer to come up with the best possible design. One of the major criteria for a best design is that it be minimal. In this section, we show that a fuzzy finite automaton Ml has an equivalent minimal fuzzy finite automaton M. We also show that M can be chosen so that if M2 is equivalent to Ml, then M is a homomorphic image of M2 . In Sections 8.1-8 .4, we considered fuzzy automata (Q, X, Y, /t), where /t : Q x X x Y x Q ~ [0,1] . Hence /t served both as the state transition function and the output function. In this section, we consider fuzzy automata such that the state transition function and the output function are distinct. We ask the reader to compare the two approaches in the Exercises . A fuzzy finite automaton (ffa) is a five-tuple M = (Q, X, Y, /t, w), where Q, X, and Y are finite nonempty sets, /t is a fuzzy subset of Q x X x Q, and w is a fuzzy subset of Q x X x Y such that the following conditions hold: (1) for all p, q E Q if there exists a E X such that ft(p, a, q) > 0, then there exists b E Y such that w (p, a, b) > 0, (2) for all p E Q, for all a E X if there exists b E Y such that w (p, a, b) > 0, then there exists q E Q such that ft(p, a, q) > 0, (3) for all p E Q, a E X, V{ft(p, a, q) I q E Q} > V{w(p, a, b) I b E Y} . The elements of Q are called states, and the elements of X and Y are called input and output symbols, respectively. /t is called the fuzzy transition function and w is called the fuzzy output function . The approach in this section differs from that of the previous sections in that the fuzzy transition function and fuzzy output functions are distinct in this section . Definition 8.4.1 Let M = (Q, X, Y, /t, w) be a ffa.
(1) Define the fuzzy subset p* of Q x X* x Q as follows: It * (p, A, q)
1 ifp=q
w* (p, xa, q) = V{w(p^ r) A w* (r, x, q) I r E Q}, for allp,gEQ,xEX*, and aEX. (2) Define the fuzzy subsets w* of Q x X* x Y* as follows: _ 1 ifx=y=A w* (p, x, y) - ~ 0 if either x :?~ A and y = A or x = A and y :?~ A ,
© 2002 by Chapman & Hall/CRC
8.4 . Minimal Fuzzy Finite State Automata
40 5
w* (p, xa, yb) = V{w(p, a, b) A ft(p, a, r) A w* (r, x, y) I r E Q}, for allpEQ,xEX*, aEX,yEY*, and bEY.
Let M = (Q, X, Y, y, w) be a ffa . Let p, q E Q, a E X, b E Y. Then * ft (p, a, q) = ft* (p, Aa, q) = V {ft(p, a, r) n ft * (r, A, q) I r E Q} = ft(p, a, q) n * * ft (q, A, q) (since ft (r, A, q) = 0 if r :?~ q) = ft(p, a, q) . Also w* (p, a, b) = w* (p, Aa, Ab) = V{w (p, a, b) Aft(p, a, r) A w* (r, A, A) I r E Q} = V{w(p, a, b) n ft(p, a, r) I r E Q} (since w* (r, A, A) = 1) = w(p, a, b) A (V{ft(p, a, r) I r E Q}) = W(P, a, b), where the latter equality holds by condition (3) . We have thus proved the following result.
Theorem 8.4.2 Let M = (Q, X, Y, ft, w) be a ffa. Then (1) ft =w*IQXXXQ, (2)w
= w* IQXXXY~
Lemma 8.4.3 Let M = (Q, X, Y, ft, w) be a ffa. Then for all p, q E Q, x,uEX*,
* ft (p, xu, q) = V{ft* (P, x, r)
n ft * (r,
u, q)
I
r E Q} . .
Lemma 8.4.4 Let M = (Q, X, Y, ft, w) be a ffa. For all p E Q, x E X*, y E Y*, of Ix1 z,4 Iyl, then w* (p, x, y) = 0.
Proof. Let p E Q, x E X*, y E Y*, and Ix1 :?~ Iyl . Suppose Ix1 > Iy1 and let I y1 = n. We prove the result by induction on n. If n = 0, then y = A and x :?~ A. Hence by definition w* (p, x, y) = 0. Suppose the result is true for all u E X*, v E Y* such that Jul > Iv1 and I v1 = n - 1 . Suppose n >_ 1. Write x = ua, y = vb where u E X*, a E X, v E Y*, and b E Y. Then Jul > Iv1 and Iv1 = n - 1. Now by the induction hypothesis, for all r E Q, w* (r, u, v) = 0. Thus w* (p, x, y) = w* (p, ua, vb) = V{w(p, a, b) A ft(p, a, r)A w*(r,u,v)I r E Q} = 0. Hence for all p E Q, x E X*, y E Y*, if Ix1 > Iyl, then w* (p, x, y) = 0. Similarly, by induction, we can show that for all p E Q, x E X*, y E Y*, if Ix1 < Iyl, then w*(p, x, y) = 0. m Theorem 8.4.5 Let M = (Q, X, Y, ft, w) be a ffa. Then statements 1(a)
and 2(a) are equivalent as are 1(b) and 2(b) . (1) (a) for all p, q E Q if there exists a E X such that ft(p, a, q) > 0, then there exists b E Y such that w(p, a, b) > 0; (b) for all p E Q, for all a E X if there exists b E Y such that w (p, a, b) > 0, then there exists q E Q such that ft(P, a, q) > 0. (2) (a) for all p, q E Q if there exists x E X* such that ft * (p, x, q) > 0, then there exists y E Y* such that w* (p, x, y) > 0; (b) for all p E Q, for all x E X* if there exists y E Y* such that w* (p, x, y) > 0, then there exists q E Q such that ft * (p, x, q) > 0.
© 2002 by Chapman & Hall/CRC
406
8. Minimization of Fuzzy Automata
Proof. (1)x(2) : (a) Let p, q E Q, and x E X* be such that p* (p, x, q) > 0. Let l xl =n . If n = 0, then x = A and so p = q . Also A E Y* and w* (p, A, A) > 0. Suppose the result is true for all u E X* such that Jul = n1. Let x = ua, where a E X and u E X*. Then Jul = n-1 . Now p* (p, x, q) = np* (r, u, q) l r E Q} > O implies that p* (p, a, r) A p* (p, ua, q) = V{p* (p, a, r) (r, u, q) > 0 for some r E Q. Hence p(p, a, r) = p* (p, a, r) > 0 and p* /t* (r, u, q) > 0 . Hence by 1(a), there exists b E Y such that w(p, a, b) > 0 . Also by the induction hypothesis, there exists v E Y* such that w* (r, u, v) > 0. Let y = vb . Then w* (p, x, y) = w* (p, ua, vb) >_ w (p, a, b) A p(p, a, r) A w* (r, u, v) > 0. The result now follows by induction . (b) Let p E Q, x E X*, and suppose there exists y E Y* such that w*(p,x,y) > 0. Then by Lemma 8 .4 .3, lxl = lyl = n, say. If n = 0, then x = y = A. Also p* (p, A,p) > 0. If n = 1, then x E X and y E Y and w(p, x, y) = w* (p, x, y) > 0. Thus by 1(b), there exists r E Q such that p(p, x, r) > 0. Hence p* (p, x, r) = p(p, x, r) > 0. Thus the result is true if n = 0 or n = 1 . Suppose the result is true for all u E X*, v E Y* such that Jul = lvl = n - 1. Suppose n > 1 . Let x = ua, y = vb, where a E X, bEY,uEX*,andvEY* . Then Jul =lvl =n-1 .Noww*(p,x,y)= w* (p, ua, vb) > 0 implies w(p, a, b) > 0 and there exists r E Q such that ft (p, a, r) > 0 and w* (p, u, v) > 0. By the induction hypothesis, there exists q E Q such that p* (r, u, q) > 0 . Hence p* (p, x, q) = p* (p, ua, q) > ft (p, a, r) A p* (r, u, q) > 0. (2)x(1): Straightforward. m
Definition 8.4.6 Let MZ =
(QZ, X, Y, pi, w 2) be a ffa, i = 1, 2. Let qZ E QZ, i = 1, 2 . Then q l and q2 are called equivalent, written ql =Q 1 Q2 q2,
if and only if for all x E X*, y E Y* (wl (ql, x, y) > 0 if and only if w2(g2,x,y) > 0) . Ml and M2 are said to be equivalent, written Ml ; M2, if for all ql E Ql there exists q2 E Q2 such that ql =Q,Q2 q2 and for all q2 E Q2 there exists ql E Q1 such that q2 ~: QIQ2 ql . If Ml = M2 = M, say, then we denote the relation JQ~Q2 by Clearly, JQ, is an equivalence relation .
~Ql .
Lemma 8.4.7 Let M = (Q, X, Y, p, w) be a ffa. Let p, q E Q, x E X*, y E Y*, a E X, b E Y. Suppose p(q, a, p) > 0, w* (p, x, y) > 0, and w(q, a, b) > 0 . Then w* (q, xa, yb) > 0.
Proof. Now w* (q, xa, yb) > w(q, a, b) A p(q, a, p) A w* (p, x, y) > 0. 0 Remark 8.4.8 Let M = (Q, X, Y, p, w) be a ffa. Let p, q E Q, x E X*, y E Y*, a E X, b E Y. We assume for the rest of this section that w* (q, xa, yb) > 0, p(q, a, p) > 0, and w (q, a, b) > 0 implies w* (p, x, y) > 0 .
Proposition 8 .4.9 Let MZ = (QZ, X, Y, pi, w2) be a ffa i = 1, 2 . Let gj,p2 E QZ, i = 1,2 . Suppose ql ~:QIQ2 q2 and there exists a E X such that ft, (gl,a,pl) > 0 and p2(g2,a,p2) > 0 . Then pl ^QIQ2 p2© 2002 by Chapman & Hall/CRC
8.4 . Minimal Fuzzy Finite State Automata
40 7
Proof. Let x E X*, y E Y* . Suppose w*1 (p l , x, y) > 0. By hypothesis, there exists a E X such that ft, (gl,a,pl) > 0 and p2(g2,a,p2) > 0. Since Ml is a ffa, there exists b E Y such that wI(gl, a, b) > 0. Thus by Lemma 8.4 .7, wl (ql, xa, yb) > 0. Hence w2 (q2 , xa, yb) > 0 and w 2 (q2 , a, b) > 0 since ql ~Ql Q2 q2 . Now w2* (q2, xa, yb) > 0, p2 (g2, a, p2) > 0, and W2 (q2, a, b) > 0. Hence by Remark 8.4 .8, w2 (p2, x, y) > 0. Similarly we can show that w2 (p2, x, y) > 0 implies w*1 (pl, x, y) > 0. Thus pl ~QlQ2 p2 . 0 Remark 8.4.10 Let MZ =
(QZ, X, Y, pi, w2) be ffa, i = 1, 2, 3. Let qZ, pi E i = 1, 2,3. (1) Suppose ql ^QIQ2 q2 and q2 ~Q2Q3 q3 . Then for all x E X*, y E Y*, w* (ql, x, y) > 0 if and only if w2 (q2, x, y) > 0 if and only if w3 (q3, x, y) > 0. Hence ql ~QIQ3 q3(2) Let pl ^Q, ql and ql ^QIQ2 q2 . Then for all x E X*, y E Y*, wl (pl, x, y) > 0 if and only if wl (ql, x, y) > 0 if and only if w2 (q2, x, y) > 0. Hence pl ^Ql Q2 q2 . (3) Let pl ^QIQ2 q2 and ql ^QIQ2 q2 . Then for all x E X*, y E Y*, wl (pl, x, y) > 0 if and only if w2 (q2, x, y) > 0 if and only if wl (ql, x, y) > 0. Hence pl ,~Ql ql . QZ,
From Remark 8.4 .10, it follows that we can use the same symbol ,~ for states to be equivalent, whether states are in the same set or different sets. (QZ, X, Y, pi, w2 ) be ffa, i = 1, 2. Let f : Q1 be a function . f is called a homomorphism of Ml into M2 if (1) for all ql E Q1, a E X, b E Y, wl (ql, a, b) > 0 if and only if w2 (f (ql), a, b) > 0, (2) (a) for all pl, ql E Q1, a E X if ft, (gl, a, pl) > 0, then
Definition 8.4.11 Let MZ = Q2
p2 (f(gl),a,f(pl))
> 0,
(b) for all pl, ql E Q1, a E X if p2 (f (ql), a, f(p l )) > 0, then there exists rl E Q1 such that ft, (ql, a, rl) > 0 and f(pl) = f (rl) . M2
phism
is called a homomorphic image of Ml , if there exists a homomorMl ~ M2 such that f is onto.
f :
Definition 8.4.12 Let M = (Q, X, Y, p, w) be a ffa. M is said to be minimal if for all p, q E Q, p = q implies p = q. Theorem 8.4.13 Let Ml =
(Q, X, Y, p l , wl) be a ffa. Then there exists a minimal ffa M such that Ml ~ M. Furthermore, M can be chosen so that if M2 is any ffa such that M2 ~ Ml , then M is a homomorphic image of M2 .
© 2002 by Chapman & Hall/CRC
408
8. Minimization of Fuzzy Automata
Proof. Set Q = {[q] I q E Q, I, where [q] is the equivalence class containing q and is induced by the equivalence relation ;Q1 . Define /t QxXxQ~[0,1]andw :QxXxY~[0,1]by w([q], a, [p]) = V{wl(s, a, t) I s, t E Q1, s ~ q, t ~ p}, and w([q], a, b) =V{wl(s, a, b)
I s E Q1, s ~ q}
for all [q], [p] E Q, a E X, and b E Y. Let ([q], a, [p]) = ([q], a, [p]) . Then q ,~ q' and p ,~ p' . Hence V{ftl(s, a, t) s, t E Q1, s ,~ q, t ,~ p} = V{ftl(s', a, t') I s', t' E Q1, s' ,~ q', t ,~ p'} since is an equivalence relation on Q1 . Thus /t is well defined. Similarly w is well defined . Let [q], [p] E Q. Suppose that there exists a E X such that /t([q], a, [p]) > 0. Then there exists s, t E Q1, s ; q, t s: p such that ft, (s, a, t) > 0. Since Ml is a ffa, there exists b E Y such that wl (s, a, b) > 0. Hence w([q], a, b) >_ wl (s, a, b) > 0. Now suppose [q] E Q, a E X, and there exists b E Y such that w([q], a, b) > 0. This implies wl (s, a, b) > 0 for some s E Q1, s ; q. Since Ml is a ffa, there exists t E Q1 such that ft, (s, a, t) > 0 . Now ft([q], a, [t]) > ft, (s, a, t) > 0. Let [q] E Q, a E X. Since ; is an equivalence relation on Q1, we can write Q1 = Uk 1 [pi], where Q = [PI 1, [p2], . . . , [pk]} and the [pi] are distinct . Now V{w([q], a, [p]) I [p] E Q} =Vklw([q], a, [p2]) =Vk1(V LN1(s,a,t) . Also, V{w([q], a, b) I b E Y} = V{V{wl(s, a, b) I s ~ q} I s ~ q, t ~ pi} b E Y} = V{V{wl (s, a, b) I b E Y} I s ~ q} < V{V{wl (s, a, r) I r E Q 1 }
I[p2]j) s ~ q} = V(V {wl (s, a, r) I s ~ q, r E Uk = Vk 1(V LN'1(s, a, r) s ~ q, r E [pi]}) = Vk1(V{ftl(s, a, r) I s ~ q, r ~ pi}) = V{w([q], a, [p]) [p] E Q} . Consequently, M = (Q, X, Y, ft, w) is a ffa. First we show that for all [q] E Q, x E X*, y E Y*, w* ([q], x, y) > 0 if and only if wl (q, x, y) > 0. Let [q] E Q, x E X*, y E Y*, and wl (q, x, y) > 0 . Then IxJ = Iyj = n, say. If n = 0, then x = y = A. Thus w*([q], x, y) = w* ([q], A, A) = 1 > 0. If n = 1, then x E X and y E Y. Hence wl (q, x, y) = wi(q,x,y) > 0 . Hence w * ([q], x, y) = w([q],x,y) = V{wl(s,x,y) I s E Q1, s ~ q} >_ wl (q, x, y) > 0. Thus if n = 0 or n = 1, then wl(q, x, y) > 0 implies w* ([q], x, y) > 0. Suppose the result is true for all u E X*, v E Y* such that Jul = Iv1 = n - 1 . Let n > 1 . Now x = ua, y = vb for some aEX,bEY,uEX*,vEY* . Then Jul=lvl=n-1.Thuswl(q,x,y)= wl (q, ua, vb) = V{wl (q, a, b) A ft, (q, a, r) A wl (r, u, v) r E Q1 } > 0 implies that there exists r E Q such that wl(q, a, b) > 0, ft, (q, a, r) > 0, w* (r, u, v) > 0. By the n = 1 case and the induction hypothesis, w([q], a, b) > 0 and w* ([r], u, v) > 0. Also ft([q], a, [r]) > ft, (q,a,r) > 0 . Hence w* ([q], x, y) = w*([q],ua,vb) > w([q], a, b) /alt([q], a, [r]) Aw*([r], u, v) > 0. The result now follows by induction . Now suppose w* ([q], x, y) > 0 for some [q] E Q, x E X*, y E Y* . Then Ix1 = Iy1 = n, say. If n = 0, then x = y = A and so wi(q,x,y) = 1 > 0 . If n = 1, then x E X and y E Y and so w([q], x, y) = w*([q], x, y) > 0 .
© 2002 by Chapman & Hall/CRC
8.4. Minimal Fuzzy Finite State Automata
409
Thus there exists s E Q1, s ; q such that w l (s, x, y) > 0. Since s s: q and w l (s, X, y) > 0, we must have w l (q, x, y) > 0, i.e., wl (q, x, y) > 0. Thus the result is true for n = 0 and n = 1 . Make the induction hypothesis that the result is true for all u E X*, v E Y* such that Jul = lvl = n - 1. Let n > 1 . Now x = ua, y = vb for some a E X, b E Y, u E X*, v E Y* . Hence Jul = lvl = n - 1 . Thus w*([q],x,y) = w*([q],ua,vb) = V{w([q],a,b) A ft([q], a, [r]) Aw*([r], u, v) l [r] E Q} > 0. This implies that there exists [r] E Q such that w([q], a, b) > 0, ft ([q], a, [r]) > 0, w*([r], u, v) > 0. Now ft([q], a, [r]) > 0 implies ft, (s, a, t) > 0 for some s, t E Q1, s s: q, t s: r. Since Ml is a ffa, there exists d E Y such that wl (s, a, d) > 0 . Thus wl (q, a, d) > 0 since s ; q . This implies that there exists t' E Q1 such that ft, (q, a, t') > 0 since Ml is a ffa . Now since s ; q, ft, (s, a, t) > 0 and ft, (q, a, t') > 0, we have that t ,~ t' by Proposition 8.4.9 . Thus t' ,~ r. Now w ([q], a, b) > 0 implies w l (q, a, b) > 0 by the n = 1 case and w* Qr], u, v) > 0 implies wl (r, u, v) > 0 by the induction hypothesis. Since r ; t', w*1 (t', u, v) > 0. Hence wl (q, x, y) = wl (q, ua, vb) >_ wl (q, a, b) A ft, (q, a, t') A wl (t', u, v) > 0. This proves our claim . Let [q], [p] E Q and [q] ,~ [p] . Let x E X* and y E Y* . Now wl (q, x, y) > 0 if and only if w* ([q], x, y) > 0 if and only if w*([p], x, y) > 0 (since [q] ; [p]) if and only if wl (p, x, y) > 0. Thus q ; p and so [q] = [p] . Hence M is minimal. Since for all q E Q1, x E X*, y E Y*, w*1(q,x,y) > 0 if and only if w* ([q], x, y) > 0, q ~ [q] . Thus Ml ,~ M. Let M2 = (Q2, X, Y, ft2, w2) be a ffa such that M2 ; MI . Define f Q2 ~ Q as follows : for all q2 E Q2 there exists ql E Q1 such that q2 ~ ql . Define f (q2) = [ql] . Suppose q2, p2 E Q2 and q2 = p2 . Then there exists gl,pl E Ql such that q2 ,~ ql and p2 ,~ pl . Thus by Remark 8.4 .10, ql = pl and so [ql] = [pl] . Hence f is well defined . Now for all [ql] E Q, ql = [ql] . There exists q2 E Q2 such that q2 ,~ ql . Now f (q2) = [ql] . Hence f is onto. We now show that f is a homomorphism . (1) Let q2 E Q2, a E X, b E Y. Suppose w2 (q2, a, b) > 0. Since M2 ,: Ml, there exists ql E Q1 such that q2 ; ql . Then wI(gl, a, b) > 0 . Thus w (f (q2), a, b) = w([ql] , a, b) > wl (ql, a, b) > 0. Now suppose w (f (q2), a, b) > 0. Let f (q2) = [ql] . Then q2 = ql . Since w([ql], a, b) = w (f (q2 ), a, b) > 0, w l (s, a, b) > 0 for some s E Q1, s ~ ql . Since s ~ ql, w l (ql, a, b) > 0 . This implies that w2 (q2, a, b) > 0 since q2 ,~ ql . Hence w2 (q2, a, b) > 0 if and only if w(f (q2), a, b) > 0 for all q2 E Q2, a E X, b E Y. (2) First suppose ft2 (q2, a, p2) > 0 for some q2, p2 E Q2 and a E X. There exists gl,pl E Q1 such that q2 s: ql and p2 s: pl . Thus f (q2) = [ql] and f (p2) = [PI I . Since ft2(g2,a,p2) > 0 and M2 is a ffa, there exists b E Y such that w 2 (q2 , a, b) > 0. This implies that w l (ql, a, b) > 0 since q2 ~ ql . Since Ml is a ffa, there exists tl E Q1 such that ft, (ql, a, ti) > 0 . Since q2 ^ ql, ft, (gl, a, tl) > 0 and ft2 (q2, a, p2) > 0, we have that tl ~ p2 by Proposition 8.4 .9. By Remark 8 .4.10, tl ~ pl. Hence ft(f (q2), a, f (p2)) = [t([gl], a, [pl]) > ft, (ql, a, tl) > 0. Now suppose ft(f (q2), a, f (p2)) > 0 for some q2 , p2 E Q2 and a E X. There exists gl,pl E Q1 such that q2 ; ql and © 2002 by Chapman & Hall/CRC
410
8. Minimization of Fuzzy Automata
p2 ^ P1, f (q2) = [q,] and f (p2) = [p,] . Thus ft([q,], a, [p,]) > 0. This implies /t l (s l , a, tl) > 0 for some sl, tl E Q1, s, s: ql, and tl s: p l . Since M, is a ffa, there exists b E Y such that w, (sl, a, b) > 0 . This implies w, (ql, a, b) > 0 and so W2 (q2, a, b) > 0 since q2 ; ql . Since M2 is a ffa, there exists r2 E Q2 such that fI2(g2, a, r2) > 0. Finally we show that f (r2) = f (P2) . Since s, q, and q2 ,~ ql, s, ,'= q2 by Remark 8.4.10. Hence by Proposition 8.4.9, tl ,: r2 . Once again by Remark 8.4 .10, p, ~ r2 . Hence f (r 2 ) = [PI ] = f (p2) .
8 .5
Behavior, Reduction, and Minimization of Finite L-Automata
In the remainder of the chapter, we consider [174] . Issues concerning the behavior, equivalence, reduction, and minimization have been completely studied for deterministic, non-deterministic, and stochastic automata [220] . The approach given in Chapter 2 and Sections 8.1-8.3 Q203, 231] also) for fuzzy automata is useful if it is known how to solve systems of linear equations over the bounded chain ([0,1], max, min). It is established in [203] that if the system is compatible, the solution is among the m-fold variations with repetitions over n elements . Since the number of these variations is Mn' the time complexity function of a search manner algorithm is exponential . Following [170], a polynomial time algorithm for solving systems of linear equations over IL is given. This result is purely algebraic . It allows one to compute the behavior matrix, to study approximate (E-) equivalence, E-reduction, E-minimization, and to prove their algorithmical decidability for each finite L-automaton. Moreover, the concept of computational complexity and algorithmical decidability as described in [220] and the properties of the chain according to [125] are used here. The terminology for automata theory is as in Sections 8.1-8.3.
8 .6
Matrices over a Bounded Chain
We write IL for the bounded chain IL = (L, V, A, 0,1) over the linearly ordered set L with upper and lower bounds 1 and 0, respectively. Let I, J be index sets and K a finite index set. Let MIXJ denote the matrix [mid], where mid E L for each (i, j) E I x J. Then MIXJ is referred to as a matrix over IL. The matrix MIXJ = [mid] is the product of AI X K = [aik ] and BK X J = [bkj], if mid =Vk E K(aik Abk j ) for each i E I and each j E J. Let f : L ---> [0,1] be an injective function such that x - y ===> f (x) f (y) . The distance with respect to f between x and y for x, y E L is © 2002 by Chapman & Hall/CRC
8.6. Matrices over a Bounded Chain
411
defined as follows : df(x,y) = If (x) -f(y)1 .
Let Ix - yI = df(x,y) for x,y E L . In the remainder of the chapter, we assume f to be fixed. Let AIX J = [aij] and B IX J = [bij] be matrices over IL and E E [0,1] be fixed. We say that the i-th row in A is E-close to the k-th row in B if I ais - bks I S E for each s E J. We also say that A and B are E-close, written d(A, B) S E, if I aij - bij I S E for each i E I and each j E J. Proposition 8.6 .1
If A,, X i = [a i] and IV{ai I
i E I}
Bnx l =
-V{bi I
[bi] are E-close, then
i E III <-
E.
Proof. Let V{ai I i E I} = ak and V{bi I i E I} = b,.. Then ak - E S S b,. S a,.+E S ak+E and so ak-E S b,. S ak+E . Thus -E 5 b,.-ak S E and I ak - b, I - E. Hence I V {a i I i E I} - V{ bi I i E III = I ak - b, . I <- E. The result in Proposition 8.6.1 is valid for the transposed matrices AT and BT. bk
If the products below make sense, then for A, x J,
Proposition 8.6 .2
the following statements hold : (1) (2) (3)
Let
B) 5 E B) , E d(A, B) , E d(A,
d(A,
CB) 5 E; BT) , E; d(CAT, CBT) , E. d(CA,
d(AT,
Proof. Let A = [aij], B = [bij], Cp x j = h and u denote, respectively, the vectors h
where
= h(a, j)
B, X J
= (hk(i, j)), kEI ;
hk(i, j) = Cik Aakj
and
[cij], CA = [hij],
u = u(i, j)
= (uk(i, j)),
uk(i, j) = Cik n bkj .
CB =
[uij].
kEI,
Then
hij = Vk(eik Aakj) = Vkhk(i,j), uij = Vk(eik Abkj) =Vkuk(i, .j)-
From I aij
I hk (i, j)
- bij I
S E, it follows that I h
- uI
S
- uk (i, j) I = I Cik n akj - Cik A bkj I =
E
since I eik - Cik I = 0 or E or Iakj - bkjl Cik - bkj or Iakj - eik I .
If Ih k (i, j) - uk (i, j) I = I Cik - bkj I , then Cik / akj = Cik implies Cik - akj and Cik n bkj = bkj implies bkj 5 cik, i.e ., in this case bkj S Cik S akj and I cik - bkj I <- Iakj - bkj I <- E . If hk (i, .j) - uk (i, .j) I = Iakj - cik I the proof is similar. © 2002 by Chapman & Hall/CRC
412
8. Minimization of Fuzzy Automata
By Proposition 8 .6 .1, d(h,u) 5 E implies IVk(hk) -Vk(uk)I S E, which is equivalent to ~h(i, j) - u(i, j) S E and I hij - uij 5 E for each i E I, j E J. The last inequality means d(CA, CB) E. (2) The proof is similar to that of (1) . (3) The proof follows from (1) and (2) . We now see that the relation E-closeness of matrices over IL is invariant .
8.7
Systems of Linear Equivalences over a Bounded Chain
We now review the main results in [170] on computing a solution of a system of linear equations over IL. We assume all matrices are over the bounded chain IL. Let I and J be finite sets with III = m E hY and IJI = n E N. By A o X = B, we mean the system : (ail (aml
n xl ) V (ail n x2) V . . . V (aln n xn)
n xl) V (am2 n x2) V . . . V (amn n xn)
=
=
bl bm
(8 .1)
with coefficients AIXJ = [aij], unknowns XJX{1} = [xj], and constants B, X{1} = [b2] . We assume that bl >, b2 >, --- >, bm . A matrix X° = [x°] is called a (point) solution of (8.1) if A o X° = B holds. The system (8.1) is said to be solvable if it possesses at least one solution; otherwise it is said to be unsolvable. In order to propose a polynomial time algorithm for solving the system (8.1), we introduce the following symbolic matrix 13 = [bij]: bij =
S
E G
if if if
aij < b2, a ij = b2, aij > b2 .
We are interested in determining if there exists xj E L such that aij A xj - b2 . We mark the i-th equation in (8.1) in a marker vector IND if aij A xj = bi holds. Theorem 8.7.1 [170] Consider the system AoX = B. Then the following statements hold . (1) If k is the greatest number of the row with a G-type coefficient in the jth column of 13, then x j = bk implies aij A xj = bi for i = k and for each i > k with aij = bi as well as for each i' < k with ai,j >, b2, = b2 . (2) If the j-th column in 13 does not contain a G-type coefficient and r is the smallest number of the row with E-type coefficient in the j-th column, then xj = bT means aij A xj = bi for each i > r with aij = b2 . (3) If the j-th column in 13 does not contain either a G-type or an E-type coefficient, then aij A xj < bi for each xj E L . m
© 2002 by Chapman & Hall/CRC
8.7. Systems of Linear Equivalences over a Bounded Chain The implementation of Theorem
8 .7 .1
413
gives the following.
Algorithm 8.7 .2 [170] For computing a solution of the system (8.1): 1. Enter the matrices A, B. Form the matrix 13 . Erase IND . j=0. 3. j=j+1. 4. If j>ngoto8 . 5. If the j-th column in 13 does not contain a G-type coefficient, then go to 6. Otherwise xj = bk, put marks in IND for i = k, for each i > k with aij = bi and for each i < k if aij >, bi = bk . Go to 3. 6. If the j-th column does not contain an E-type coefficient then go to 7. Otherwise xj = b,., put marks in IND for i = r and for each i > r with aij = b2 . Go to 3. 7. xj = 1 . Go to 3. 8. If there exists at least one unmarked row in IND then the system is unsolvable . If all rows in IND are marked, then the system is solvable and the point solution is determined in steps 5,6, and 7. Theorem 8.7.3 [170] The following problems are algorithmically decidable in polynomial time for the system (8 .1) : (1) whether the system is solvable or not; (2) computing a point solution if the system is solvable; (3) obtaining the numbers of the contradictory equations if the system is unsolvable . 0 An n-tuple (X,, .Xn ) with Xi C L for i = 1, . . . , n is an interval solution of (8 .1) if each (XI, . . . , xn) with xi E Xi is a point solution of (8 .1) and (XI , . . . , Xn) is maximal with respect to this property. Using Algorithm 8 .7 .2, the interval solutions of (8 .1) can be found . For j, j' E J, define j - j' if bij = bij , for each i E I. Then - is an equivalence relation on J. Let [j] = {j' j' E J and j - j'} . Algorithm 8.7 .4 [170] For obtaining the interval solutions of the system (8 .1), if (8 .1) is solvable : 1. Compute the point solution by Algorithm 8 .7 .2 . Obtain the equivalence classes [j] for J. 3. For each j E J (i) if the j-th column in 13 does not contain a G-type coefficient, then go to 3(iv); (ii) of I [j] I = 1 then Xj = {bk} ; go to 3 for the next j ; (iii) for each j' E [j] form Xj, as follows: X, _ go to 3 for the next j ;
© 2002 by Chapman & Hall/CRC
{bk} bk]
ifj=j if j 7~Y~[0, ;
414
8. Minimization of Fuzzy Automata
(iv) if the j-th column does not contain an E-type coefficient, then go to 3(vii), (v) of I [j] = 1, then Xj = [b,,1] ; go to 3 for the next j; (vi) for each j' E [j] form Xj, according to the rule Xj,
= ~ [b,,1]
if j = if j jjL l ;
go to 3 for the next j ; (vii) if the j-th column contains only S-type coefficients, then Xj = L for each j E [j] ; go to 3 for the next j .
Theorem 8.7.5 [170] The time complexity function of each algorithmical realization for finding all interval solutions of (8 .1) is exponential. 0
The column matrix B IX{1} _ [bi] is called a convex linear combination of Aj = [a2j]IX{i}, j E J, with coefficients x j E L if B = (Al A x l ) V . . . V (A n A xn ), i.e ., bi = VjE j(aij A x j ) for each i E I. The next result follows from Theorem 8.7 .3 and Algorithm 8.7 .2 . Corollary 8.7.6 Let Aj, j
E J, and B be as above. It is algorithmically decidable whether B is a convex linear combination of Aj, j E J. m
.9 .7 .1 .7 1 .3 .2 .5 .6 G S S E G S = S E G .8 and 0 are .5
Example 8.7.7 Consider the system AoX = B, where A = X=
xl x2 x3
, and B =
.8 .7 .5
. It can be seen that 13
.8 .7 is a maximal solution and that .5 minimal solutions. and that
8 .8
.8 .5 0
Finite IL-Automata-Behavior Matrix
An IL-automaton is a quintuple A = (Q, X, Y, M, IL), where (1) Q, X, Y are nonempty sets of states, input letters, and output symbols, respectively; (2) IL = (L, V, A, 0,1) is a bounded chain ; (3) M = {M(x, y) = [mqq' (x, y)] I x E X, y E Y, q, q 1 E Q, mqq ' (x, y) E L} is the transition-output matrices (the stepwise behavior) of A. If Q, X, Y are finite, then A is called finite IL-automaton . We denote by AO the class of all finite IL-automata. The membership degree mqq ' (x, y) determines the stepwise transitionoutput behavior of A as follows : in step k the automaton is in state q and © 2002 by Chapman & Hall/CRC
8.8. Finite IL-Automata-Behavior Matrix
415
receives the input letter x. It outputs letter y in step k and reaches the state q' in step k + 1 . In order to define and consider the complete input-output behavior of A = (Q, X, Y, M, IL) E Ao, we introduce the following notation: As usual, X* (resp. Y*) is the free monoid over X (resp . Y) with the empty word A as the identity ; U = [u2j] is the square unit matrix: u 2j = 0 if i z,4 j; u2j = 1 if i = j; E=[ 1 1 . .. 1 ] is the column matrix with all elements 1 ; QXt1} (X x Y)* = {(x, y) I x E X*, y E Y*, Ixl = y1} . The matrix M(x, y) defines the transition-output behavior of A E AO for (x, y) = (x1 . . . xk, y1 . . . yk) E (X x Y)* if M(x, y)
_
M (x1, yl) o . . .
o M(xk, yk)
for (x, y) :?~ (A, A), if (x, y) = (A, A) .
The input-output behavior of A for (x, y) E (X x Y)* is defined by the matrix T(x, y) T(x, y)
= ~ E (x, y)
oE
if (x, y) (A, A), if (x, y) _ (A, A) .
Every element mqq ~ (x, y) in M(x, y) defines the operation of A under the input word x beginning at state q, outputting the word y and reaching the state q' . Every element t,, (x, y) in T(x, y) defines the operation of A when it receives the word x beginning at state q and outputs the word y. From the matrices T (X1 y) I we shall construct the semi-infinite matrix T of the complete input-output behavior of A and the finite submatrix B of the behavior of A. Suppose that a lexicographic order on (X x Y)* is given . Let T(i) be a finite matrix with columns T(x, y) ordered according to the lexicographic order on (X x Y)* and such that Ix1 = lyl _ i. By definition, T(0) = T(A,A) = E. Let T be the semi-infinite matrix of the complete inputoutput behavior of A with columns T(x, y) indexed according to the above order. Let B(i) be the finite matrix obtained from T(i) by omitting all columns that are convex linear combinations of the previous columns . Let B be the matrix constructed from T by omitting the columns that are convex linear combinations of the previous columns. The matrix B is called the behavior matrix for the IL-automaton A. For arbitrary matrices C', C" we write C' C_ C" if each column of C' is a column in C" . If C' C_ C" and C" C_ C', then we write C' - C" . Clearly, B(i) C_ T(i) C_ T(i + 1) C_ T for each i = 0,1, . . . . Let .M = {mee, (u, v) I u E X, v E Y, q, q' E Q} and .F = {tq (x, y) I (x, y) E (X x Y)*, q E Q} be the sets of the distinct entries for the matrices M(u, v) E M and T, respectively. For any A E Ao, we have ,F C .M U {1}, I A41 = r and ICI = s are finite, and s _ r + 1 . These properties follow from the chain properties and the algebraic operations for matrices over IL. © 2002 by Chapman & Hall/CRC
416
8. Minimization of Fuzzy Automata
The following result is proven in Chapter 2 and Sections 8.1-8 .3. For IL = ([0,1], V, A, 0, 1), the generalization to the next result is easy. Theorem 8.8.1 Let A E Ao . Then the following statements hold:
(1) If there exists iE hY such that T(i) - T(i + 1), then T(i) - T(i + l) for all l = 0, 1, 2, . . . . (2) If there exists iE hY such that B(i) = B(i + 1), then B(i) = B(i + l) for all l = 0,1, . . . . (3) There exists an integer k S s1Q1 - 1 such that T(k) - T(k+ 1) and B(k) = B. m
Corollary 8.8.2 The behavior matrix of any AEAO is finite . m For equivalence, reduction, and minimization of automata, the main question is how to compute B. Thus for any column in T, we must determine whether it is a convex linear combination of the previous columns in order to select B from T. Recalling Algorithm 8.7.2, Theorem 8.7.3, and Theorem 8.8 .1(3), we propose the following algorithm for completing the behavior matrix . Algorithm 8 .8.3 Computation of the behavior matrix: 1. Enter M, s, Q1_ 2. Obtain k S s1Q1 - 1 such that T(k) - T(k + 1) . 3. Use Algorithm 8.7.2 to select B(k) from T(k) . 4. B = B(k) .
8 .9
E-Equivalence
Let A = (Q, X, Y, M, IL) E Ao be given. Let E E [0,1] . The states q, q' E Q are called E-equivalent, written qEq' if for all (x, y) E (X x Y) *, tq (x, y) - tq(x, y) I <_ E, written qEq' . In particular, for E = 0 we have tq (x, y) = tq ' (x, y) for all (x, y) E (X x Y) * and the states q, q' are called equivalent, written q - q' . Theorem 8.9.1 Let A E Ao be given. Let q,
q' E Q . and q' are E-equivalent if and only if their corresponding rows in T(k) - T(k + 1) for k S s1Q1 - 1 are E-close; (2) q and q' are equivalent if and only if their corresponding rows in B are equal.
(1)
q
Proof. (1) The proof follows from Theorem 8.8.1. (2) The necessity is clear. Conversely, let bqj = bqlj for each j in B = [b2j] . An arbitrary column t(x, y) in T is a convex linear combination of the columns of B, i.e ., t(x, y) = B o X . For tq (x, y) and tq' (x, y), we have tq (x , y) = V7 (bg7 A x7) = V7 (bq'7 A x7) = tq' (x, y)-
© 2002 by Chapman & Hall/CRC
8.9. E-Equivalence
417
The next algorithm determines whether two states in a given finite ILautomaton are E-equivalent, resp. equivalent. Algorithm 8.9.2 1. Enter E, M, IQ I , s. Construct T(k) for the smallest k S s1Q1 - 1 with T(k) - T(k + 1) . 3. If E :?~ 0 check whether the rows corresponding to q and q' are E-close in T(k) and go to 6. 4. Use Algorithm 8.8.3 to select B from T(k) . 5. Check whether the rows corresponding to q and q' are equal in B. Go to 7. 6. Print whether q E q' . Go to 8. 7. Print whether q - q' . 8. End.
Corollary 8.9 .3 For any A algorithmically decidable. m
E
Ao, the relation E-equivalence of states is
We can define an E-partition over Q for a given A E Ao from the relation E-equivalence of states . A subset QZ C Q is an E-class with center qZ E QZ if giEq holds for each q E QZ and giEq does not hold for each q E Q\QZ . If every state q E Q belongs to exactly one E-class, then the family Ni i S IQI} defines an E-partition over Q . E-equivalence of states is not an equivalence relation, but E-partition as its analogue is a sufficient tool for our purposes. Algorithm 8.9.4 Construction of an E-partition over 1. Enter Q, E. 3.
Q=Q .
Denote by qE Q the element with the smallest index. 4. Form the E-class QZ = {q2 I gEg2, qZ E Q} using Algorithm 8.9 .2.
5.
n Write QZ as the i-th E-class with the center q .
6. Q =_ Q\QZ . 7. If Q = Ql go to 9. 8. Go to 3.
9. End.
For E = 0, we obtain the factor set Q/ - under the equivalence relation equivalence of states . Corollary 8.9 .5 For all A E Ao, the construction of an E-partition of the set of the states Q is algorithmically decidable. m
© 2002 by Chapman & Hall/CRC
418 8 .10
8. Minimization of Fuzzy Automata E-Irreducibility
Let A = (Q, X, Y, M, IL) and A' = (Q', X, Y, M', IL) be finite IL.-automata with the same X, Y, L and f . Let E E [0,1] . The state q E Q is said to be E-equivalent to the state q' E Q', written qEq', if It,, (X, y) - tq, (~, y) E for all (x, y) E (X x Y) * . A is E-equivalent to A', written AEA', if for all q E Q there exists q' E Q' such that qEq' and vice versa . For E = 0, A is called equivalent to A' . Theorem 8.10 .1 Let A = (Q, X, Y, M, IL) and A' = (Q', X, Y, M', IL) be finite IL-automata. The states q E Q and q' E Q' are E-equivalent if and only if I tq (x, y) - tq, (x, y) I <_ E for all (x, y) E X* x Y* with xI = Iyl cIQI+IQ'I - 1 , where c = LF U PI . Proof. Consider the automaton A 0 A' = (Q U Q', X, Y, M 0 M', IL), where Q n Q' _ 01 and M (@ M' = {M" (u, v) = [m"q, (u, v)], u E X, v E Y, q, q' E Q U Q'} is defined as follows : mqq ' (u, v) if q, q' E Q, mqq , (u, v) _ mq q, (u, v) if q, q' E Q', 0 otherwise . By Theorem 8.9 .1, two states in A() A' are E-equivalent if and only if the corresponding rows in T(k) - TA®A, are E-close, where k = cIQI+IQ'I - 1, c = I~F U P I (the number of distinct entries in T and T') . Corollary 8.10 .2 The relation E-equivalence of finite IL-automata is algorithmically decidable in the class Ao . 0
The proof of Corollary 8.10.2 follows from Theorem 8.10.1 and Algorithm 8.9 .2 . An automaton A E Ao is called E-irreducible if for each qZ, qj E Q, i :?~ j, giEqj implies qZ = qj. The next result follows directly from Corollary 8 .9.3. Corollary 8.10 .3 For any A A is E-irreducible or not. m
E Ao, it is algorithmically decidable whether
An automaton A T is an E-reduct of a given automaton A if A T is Eirreducible and AEA, For E = 0, A T is called a reduct of A. Theorem 8.10 .4 For all automaton A automaton A T .
E
Ao, there exists an E-reduced
Proof. The construction of A T = (X, QT, Y, MT , IL) as an E-reduct of A = (X, Q, Y, M, IL) contains the following steps : 1 . Take X, Y, IL for AT the same as for A. 2. Obtain MT from M as follows : if M = {M(u, v) I M(u, v) = [m2j (u, v)], uEX, vEY, i, j < IQI}, then M,. contains the square matrices of order IQTI , © 2002 by Chapman & Hall/CRC
8.11 . Minimization
419
MT = {M'(u, v) I u E X, v E Y{ . Here M(u, v) = [mg,,, .(u, v)], where and qj are the centers of the E-classes and Qj, respectively. EvqZ QZ
mg,,, (u, v) is calculated from the elements of the i-th row of ery element . M(u,v) E M, belonging to the E-class with center qjEQj according to the rule m eiej
(u' v)
- V4TEQj
(mi,(u,
v)) .
The automaton AT is E-irreducible by construction. AEA,
Consequently,
The automaton AT constructed as in the proof of Theorem 8 .10 .4 is called a natural E-reduct of A E Ao. Corollary 8.10 .5 For every A E Ao, there are a finite number of natural reducts. m
It follows from Corollary 8.10.5 that all natural E-reducts can be constructed for any A E Ao . A method for obtaining all E-reducts for A E Ao is as follows : 1. Compute the behavior matrix B for A using Algorithm 8.8 .3. 2. Construct all natural E-reducts AT for A (cf. Theorem 8 .10 .4) . 3. Compute the behavior matrix B,. for each A, 4. For each natural E-reduct AT = (X, QT, Y, MT , IL) obtain all E-reducts {A,, _ (X, QT, Y, M,., IL){,where M, _ {M'(u, v) u E X, v E Y{ and each M(u, v) is a solution of the system M(u, v) o BT = MT (u, v) o BT for M' (u, v) .
We are interested not only in a point solution of these systems but in each solution. According to Algorithm 8.7.4 and Theorem 8.7.5, there is a continuum of E-reducts for A E Ao. The above results allow for the selection of a suitable reduced automaton having behavior E-equivalent with the original one . Using fuzzy acceptors as recognizing systems and the appropriate E-equivalence and E-reduction, feature extraction can be carried out in order to exhibit properties from primary data and to make reduction of the features characterizing a class of objects . 8 .11
Minimization
Let Oq = [CZ]Q,{1} be the column matrix with c2 = 0 if qZ = q. Let l q = [d2]QX{1} be the column matrix with d2 = 1 if qZ =q, d2 = 0 otherwise. The automaton A E AO is said to be state minimal (resp . E-state minimal) if there does not exist q E Q such that 1q o T = Oq o T (resp. l q o TA o T) for some column matrix Oq . © 2002 by Chapman & Hall/CRC
420
8. Minimization of Fuzzy Automata
Theorem 8.11 .1 The automaton A E AO is state minimal (resp. E-state minimal if and only if there does not exist q E Q such that 1q o B = Oq o B (resp. 1q o BEOq o B) for some column matrix Oq. Proof. Since B is a submatrix of T, the first part of the proof follows easily. Conversely, suppose 1 q o B = Oq o B holds, i.e., the q-th row in B is a Oq -convex linear combination of the other rows in B, b qj = Vq'EQ\Iql (bq'j A Cq ') for each j. Then we obtain for the state minimization
Vj(bgj n xj) Vi ((Vq'EQ\{gl(bq'j n Cq')) n xj) Vq'EQ\{q}(Vj(bgj n xj) n Cq') Vq'EQ\Igl(tq'(u,v) ACq') . The E-state minimization follows from Proposition 8.6 .2 and Theorem 8.10.1. tq(u , v )
=
Corollary 8.11 .2 For all A E A, it is algorithmically decidable whether A is state (resp. E-state minimal or not. Proof. The algorithm for the state minimal part consists of the following steps : 1 . Compute the behavior matrix B for A. 2. For all q E Q, solve the system 1q o B = Oq o B for Oq. 3. If there does not exist q E Q with 1q o B = Oq o B, then A is state minimal. For the E-state minimization, we must change the meaning of the matrix in Algorithm 8.7 .4 as follows : 13 13 = (bij),
bij=
S E G
if aZj - E < b2, if aZj -E-bi -aij +E if aij + E > bi,
for suitable E E [0,1] . Then as a result of Algorithm 8.7.4 (or Algorithm 8.7 .2), we obtain A o XEB. Thus, 1q o BEO q o B can be solved for Oq in steps 2, 3 above. In [104], E-equivalence for stochastic automata is examined . The main result is that there is a need to consider E-equivalence only for a subclass SSo of the class of all finite stochastic automata (A E SSo if and only if any column in T is a substochastic linear combination of the columns in B) . The reason for this restriction is that Proposition 8.6 .2 and Theorem 8.9.1 and the related statements are not valid for the stochastic case. The results show that all results given in Sections 8.10, 8.11, 8.12 above are true again only in SSo (for k = IQ I - 1) . For E = 0, we have now obtained the results of Sections 2.6 and Sections 8.1-8.3 as a particular case. © 2002 by Chapman & Hall/CRC
8.12. Exercises
8 .12
421
Exercises
1. Prove Proposition 8.1 .1 . 2. Prove Proposition 8.1 .2 . Let M = (Q, X, Y, S) be a fuzzy automaton (Definition 8.1.5) and let M' = (Q, X, Y, ft, w) be a fuzzy finite state automaton (Section 8.5) . Call M and M' (1) strongly equivalent if V(q, x, y, q') E Q x X xY x Q, S(q, x, y, q') _ (q, x, q~) = w(q, x, y) ; ft (2) equivalent if V(q, x, y, q') E QxXxYxQ, S(q, x, y, q') = ft(q, x, q')A w(q, x, y) ; (3) weakly equivalent if V(q, x, y, q') E Q x X x Y x Q, S(q, x, y, q') > 0 if and only if ft (q, x, q') A w(q, x, y) > 0. 3. Prove (3) of Proposition 8.2 .1 . 4. If M and M' are strongly equivalent, prove that V(q, x, y, q') E Q x X* x Y* x Q, S* (q, x, y, q') = ft* (q, x, q') = w*(q, x, y) .
5. If M and M' are equivalent, prove that V(q, x, y, q') E Q xX* xY* 6 * (q, x, y, q~) = ft * (q, x, q~)
n w* (q, x, y) .
6. If M and M' are weakly equivalent, prove that V(q, x, y, q') E Q x X* x Y* x Q, S* (q, x, y, q') > 0 if and only if ft* (q, x, q') A w* (q, x, y) > 0. 7. Compare minimality requirements of M and M' under various equivalence assumptions . 8. Consider the system AoX = B of Example 8.7 .7. Use the algorithms .8 .8 of Section 8.7 to show that .7 is a maximal solution and .5 .5 0 .8 d 0 are minimal solutions . .5
© 2002 by Chapman & Hall/CRC
Chapter 9 L-Fuzzy Automata, Grammars, and Languages 9 .1
Fuzzy Recognition of Fuzzy Languages
In this chapter, we consider fuzzy automata, grammars, and languages, where the interval [0,1] is replaced by a lattice . We begin our study by considering the work of [94]. We give an application of the theory of fuzzy recognition to the theory of probabilistic automata and discuss the closure properties of some fuzzy language classes corresponding to machine classes. In formal language theory, languages are classified by the complexities of machines that recognize them. Typically, the machines are finite automata, push-down automata, linear bounded automata, and Turing machines . It is also of interest to develop the theory of recognition of fuzzy languages by machines and their classification by the complexities of machines that recognize them. The theory should be a reasonable extension of the ordinary language recognition theory. In ordinary language recognition theory, a machine is said to recognize a language L if and only if for every word in L, the machine decides that it is a member of L and for a word not in L, the machine either decides that it is not a member of L or loops forever . That is, a machine may be said to recognize a language if and only if the machine computes the characteristic function of the language. Thus it is natural to define a machine to recognize a fuzzy language if and only if the machine computes its fuzzy membership function . The question arises concerning the meaning for a machine to have a fuzzy membership function. In ordinary language theory, it is defined that for a given input word a machine computes the characteristic function value at 1 if and only if it takes one of special memory-configurations, such as configurations with a © 2002 by Chapman & Hall/CRC
423
424
9. L-Fuzzy Automata, Grammars, and Languages
final state and configurations with the empty stack for cases where the machine has pushdown stacks . Hence a straightforward extension is to define each fuzzy membership function value to be represented by some memory configuration of the machine. In other words, the memory configuration, which the machine moves into after a sequence of moves for a given word, should be uniquely associated with the membership function value of the word. Even if the machine obtains a configuration uniquely associated with the membership function value of the word, we must have that the machine computes the membership function value of the word. We can be sure that the machine knows the value if it is to be able to answer exactly any question about the value . Furthermore, it is also felt in [94] that it is essential that the values represented by memory configurations of the machine are lattice elements . Thus, we require that the machine should be able to compare the fuzzy membership function value of a given word, which is stored in its memory, with any lattice element that is given to the machine as a question. Such a lattice element will be called a cutpoint . We assume that a cutpoint is represented by an infinite sequence of symbols in a finite alphabet, following the infinite expansions of decimals . For any cutpoint c, the machine having the memory configuration associated with the fuzzy membership function value ft(x) of a given input word x should be able to read, as a subsequent input, the infinite sequence corresponding to the cutpoint c sequentially, and after a finite step of deterministic moves, it can determine which of the following four cases is valid, (1) ft(x) > c, (2) p(x) < c, (3) p(x) = c, and (4) p(x) and c are incomparable.
9 .2
Fuzzy Languages
Let X be a finite set of symbols called an alphabet . Let L be a lattice with minimum element 0. An L-fuzzy language over X is defined to be a function from X* into L. At times, we omit the symbol L if its presence is clear . If /t is an L-fuzzy language over X and x E X*, then p(x) represents the membership grade for x to be in the L-fuzzy language . We consider languages associated with an L-fuzzy language /t and a cutpoint c, namely LG(w,
C) =
{x E X* I w(x) > C},
LGE(w,C) = {x E X* I w(x) > C} . We call such languages cutpoint languages for /t and c. Let A be a finite alphabet . Let 0°° be the set of all infinite sequences of symbols in A extending infinitely to the right. A one-to-one function r from L into 0°° is called a representation of L over A if there exists © 2002 by Chapman & Hall/CRC
9.2. Fuzzy Languages
425
a function d : r(L) x r(L) , N U {0} that assigns to any distinct two elements r(l) and r(m) in r(L) a positive integer d(r(l), r(m)) such that d(r(l), r(m)) = d(r(m), r(l)), d(r(l), r(l)) = 0 and conditions (1) and (2) below are satisfied . (1) Let l, m E L, l :?~ m. Then for the prefix wl of r(1) and the prefix w, of r(m) of length d(r(l), r(m)), respectively, and for any a',,3' E A-, either condition (a) or (b) holds: (a) Either w, a' or w,,3' is not in r(L). (b) Both w, a' and w,,3' are in r(L), and r -1 (wia') > r -1 (wr ,3~) if l > m r -1 (wia' ) < r -1 (w ,/3') if l < m and r -1 (wia') and r-1 (w ,,3') are incomparable if l and m are incomparable. (2) For any l, m, andninLwith 1>m>n, d(r(1), r(n)) S d(r(1), r(m)) A d(r(m), r(n)) . For a,,3 E r(L), d(a,l3) is called the D-length of a and,3 . For l E L, r(l) is called the representation of l with respect to r . A lattice does not always have a representation . However, we consider from now through Section 9.8 only lattices that have a representation over some finite alphabet . Condition (2) means that representations of lattices are restricted to those that have decimal expansions of real numbers . However, there may be many representations for a lattice . Example 9 .2 .1 Let L be a lattice with a finite number of elements . If L has elements 11, . . . , lk, let A = {h, . . . , lk} . If r(l2) = lilil2 . . . for 1 S i 5 k, then r is a representation of L over A .
Example 9.2.2 Let L[0,1] be the set of all real numbers in [0,1] with the usual ordering. A representation rl is given as follows: Let A = {0,
1, 0, 1} . For l E L[0,1], let e(l) be the binary expansion of l not of the form w111 . . . with w E {0,1}*0 . For any rational number l in [0,1], set e(l) = wowlwlwl . . . such that if e(1) = w'owlwlwl . . ., then ~wo~ 5 Iwol
and ~wlI S ~wij . Let e (l) = wo wl wlwl . . . , where wl=ala2 . . . ak for wl = ala2 . . . ak with a2 E {0,1}, i = 1, 2, . . . , k. Then let r, (1) =e(1) if l is irrational, rl (l) =
© 2002 by Chapman & Hall/CRC
e (l) if 1 is rational .
42 6
9. L-Fuzzy Automata, Grammars, and Languages
Example 9 .2 .3 Let L[o
1] u
denote the set of all rational numbers in [0,1]
with the usual ordering. Let A = {0, 1, 0, 1} . Define a representation r2 : L[o 1] u
--->
A' as follows: r2(0)
= 000,-
. . , r2(1) =111, . . . , and for l
such that e(l) = w000 . . . with w E {0,1}*1, define r2 (l) = w 000 . . . and for other l in L[o,l],, define r2(l) = e(l) .
9.3
Fuzzy Recognition by Machines
Machines treated in Sections 9 .3-9 .8 may be finite automata, pushdown automata, linear bounded automata, and Turing machines . These machines can be represented in the following manner . A machine has an input terminal that reads input symbols and A sequentially, a memory storing and processing device, and an output terminal . Formally, a machine is defined to be an 8-tuple M = (1b, I', '@, 0, S, S2, K, -yo) , where -D is a finite set of input symbols ; I' is a finite set of memory-configuration symbols ; T is a finite set of output symbols ; S2 is a finite set of partial functions {w2 } from I'* into I'* ; 0 is a partial function from I'* into IF', for some n > 1 ; (For a memory configuration 'Y E I'*, 0(-y) designates the instantaneously accessible information of 'Y by M .) ; S is a partial function from (,b U {A}) x I+n into P(Q) ;
is a partial function from I+n to @ U {A} ; -yo is an element in I'*, called the initial memory configuration . A memory configuration ~ is said to be derived from a memory configuration 'Y by u E -D U {A}, denoted by 'Y ===> ~~, if and only if there exists K
n
p = 0(y) and cot E S(u, p) such that w2(y) = ~ . Let w E V. A memory configuration ~ is said to be derived from a memory configuration 'Y by w, written y ==~> ~~, if and only if there exist ul, u2, . . . , ul with u2 in b U {A} w
such that w = ulu2 . . . ul, and there exist yo,'yl . . . . . . l with y2 E I'* such that yo = y, yi = , and y 2 ===> y2+1 for all 0 S i S l - 1 . (-y ===> -y is
valid for all y E I'* .) Given an input word w E V and the initial memory configuration -yo first, M reads input symbols or A sequentially along w, changes memory configurations step by step possibly in a nondeterministic way and reaches y such that -yo ==~> y, and emits the output K(0('Y)) .
Clearly, a machine M = ('D, I', '@, 0, S, S2, K, y o ) can be restricted to a specified family of automata such as Turing machines, pushdown automata, and finite automata for appropriate choices of I', 0, S, S2, K, and 'Yo . A machine M = (,D, I', IQ, 0, S, S2, K, y o ) is called a deterministic machine if for any memory configuration y such that -yo ===> y for some x
x E V, if S(A, 0(y)) :?~ 0, then S(A, 0(y)) contains at most one element
© 2002 by Chapman & Hall/CRC
9.3. Fuzzy Recognition by Machines
427
and S(u, 0(y)) = Ql for any u E -D, and if S(A, 0(y)) = 0, then for any u E -D, S(u, 0(y)) contains at most one element . Let L be a lattice with a minimum element 0 and tt : X* ---+ L be an L-fuzzy language over an alphabet X. Let r be a representation of L over an alphabet A. A machine M = (1b, I','@, 0, S, S2, K, -YO) is said to fuzzy recognize ft with r if and only if the following conditions hold: (1) -D = X U A U {t{, where t is an element not in X U A. (3) There exists a partial function v from I'* into L such that the conditions (i)-(iv) hold: (i) Let Sx = {y I yo ~ y{ for all x E X* . Then for all x E X* such that Sx :?' 01, Sx C Dom(v) and v x = V{v(y) I y E SxJ exists. If Sx = 01, v x is undefined_ (ii) Let y be any memory configuration in Sx . Let My denote the machine A r, "If, 0, S', 0, K,'Y), where S' is the restriction of S over (A U {A{) x I'n . Then My is a deterministic machine . (iii) For any memory configuration y E I'*, if K(0(-Y)) is in 1Q, that is, K(0(-Y)) :?~ A, then for any u E -DU{A{, S(u, 0(y)) is empty . Also, K(0(-Y)) is in T only if yo ===> y for some x E X*and y in PRE-,(L) . (wl is called xty
a prefix of a word or an infinite sequence a if a = w l , 3 for some 3. Let lI be either a set of words or a set of infinite sequences . PREII is the set of all prefixes of elements in II .) (iv) Let y E Dom(v) . For all l E L, there exists a prefix v of r(l) and y' in I' such that y ==~> y' and the following properties hold: v
is K(0('Y')) is K(0('Y')) is K(0('Y')) is K(0('Y'))
> = < ! if
if v(-Y) > l, if v(y) = l, if v(-Y) < l, v(y) and l are incomparable .
Consider xt in X*t, where t indicates the end of the input sequence. Then a machine M moves possibly nondeterministically into some memory configuration y such that v(y) is defined. Let Sx denote the set of all such y's . Consider the maximum value v x of {v(y)jy E Sxf as the value of x computed by M . If Sx is empty, then the value of x cannot be computed by M. A sequence of moves from the initial memory configuration to a memory configuration in Sx is called a value computation for x. If the machine M completes the value computation for x E X*, that is, if Sx :?' 01, then M is required to have the following ability. Let 'Y be any memory configuration in Sx . Then My should be able to compare v(y) with any element l in L if the representation r(l) of l is presented to My as a question. In other words, when r(l) is given to My , My moves deterministically reading input symbols in {A} U A along the infinite sequence r(l) and emits one of >, <, =, and ! following the order of v(y) and 1 in L after reading a finite length of a prefix of r(l), and halts (see (iv)). © 2002 by Chapman & Hall/CRC
42 8
9. L-Fuzzy Automata, Grammars, and Languages
A sequence of moves of M from ,y E Dom(v) to a halting configuration is called an order-comparing computation for r y . Let the fuzzy language ft : X* ---+ L be such that (~) -
vx
0
if vx is defined otherwise .
Then /t is said to be fuzzy recognized by the machine M with the representation r. By condition (iii), if M reads a word in A* that is not any prefix of r(l) for any l E L, then M does not emit any of >, <, =, and! . In other words, if M is given an illegal question, then M does not answer . Let To, TI, T2, and T3 be the classes of Turing machines, linear bounded automata, pushdown automata, and finite automata, respectively. Let DTo , DTI , DT2 , and DT3 be the classes of deterministic Turing machines, deterministic linear bounded automata, deterministic pushdown automata, and deterministic finite automata, respectively. An L-fuzzy language /t is said to be fuzzy recognized by a machine in TZ(DTZ) if /t is fuzzy recognized by a machine in TZ (DTZ) with some representation r, for i = 0, 2, and 3. We say that an L-fuzzy language /t : X* ---+ L is fuzzy recognized by a (deterministic) linear bounded automaton if /t is fuzzy recognized by a (deterministic) Turing machine M with some representation r in the following manner : Let x E X* and l E L. If
for some prefix yI of xt, or 'YO ===> 'Y
for some y in PREry(L), then 1ryj S t Ixl for some constant t, where 'yo is the initial configuration of M. In other words, lengths of memory configurations in M for any x E X* are always less than or equal to some constant times Ixl throughout the value computation and the order-comparing computation of x with any cutpoint in L. Example 9.3.1 Let X = {a, b} and w E X* . Let n a (w) and nb(w) denote the numbers of occurrences of a and b in w, respectively . The fuzzy language PI : X* ---> L[o,I]Q
defined by b'w E X*, PI (w)
= 2 + (2)Ina~w>-nb(w)I+I
is fuzzy recognized by a deterministic pushdown automaton.
© 2002 by Chapman & Hall/CRC
9.3 . Fuzzy Recognition by Machines
429
A pushdown automaton M = (1b, I','@, 0, S, S2, K, -YO) with
'Y2
in Example
9.3 .1 fuzzy recognizes pl, where b = X U A U {t} with X = {a, b} and 0 = {0,1, 0,1}, I' = Q U {zo, a, b,1}, where Q = {qo, ql, q>, q<, q=}, T = {>, <, _}, 0 is a partial function from I'* into I'2 such that 0(gxu) = (q, u)
for all
q E Q, x E {A} U zo{ab}*
and u
E {zo, a, b, l, l},
0 = {Wla,Wlb,Wa,Wb,W-,Wj,Wi
where b' x
E I'*
'Yo = gozo W l (x) = Au, for x E I'* and u E {a, b} W (x) = xu, for x E I'* and u E {a, b} W_ (xu) = x, for x E I'* and u E {a, b} W, (golxu) = golx1, for u E {a, b} Wi(gozo) = Wi(gozol) = glzo 1 W > (qlx) = q>x W< (qlx) = q<x W=(qlx) = q=x .
S : b x I'2 ---+ P(Q) is defined as follows : 6(t, (qo, zo)) 6(u, (qo, zo)) 8(u, (go, u)) 6(a,(go,b)) 6(t, (qo, u)) 6(t, (qo,1)) 8(1, (qj,1)) 6(0, (q1,1)) 6(1, (qj, u))
{Wi}, {Wlv} S(u,(go,l))
_
6(b, (go, a))
{W~}
if u E {a, b}, if, u E {a, b},
{W1}
if u E {a, b},
{ W i} s(0, (qj, u))
if u E {a, b}, if u E {a, b},
S(0, (q j , zo)) 8(u, (qj , zo))
if u E {0 ,1}, if u E {0,1, 0},
6(u, (q1,1)) 6(1, (q1,1))
Let the partial function K(q n , u)
K
from I'2 into T U {A} be defined as follows :
= 97 for 97
Define v : I'* ---+ [0,1]Q by
© 2002 by Chapman & Hall/CRC
E
T and u
E {zo, a, b, l, l} .
43 0
9. L-Fuzzy Automata, Grammars, and Languages
and v(glzolunl)
= + ( 2) n +l , 2
for u E f a, bf and n >, 1 .
Let ft' : X* ---> L[0 , 1] be such that ft', (w) = ft, (w) for w E X*. Then it follows that ft' is fuzzy recognized by a deterministic pushdown automaton with the representation rl of a previous example. 9 .4
Cutpoint Languages
Let ft be an L-fuzzy language over X, where L is a lattice with minimum element 0. Then l E L is called an isolated cutpoint of ft if one of the following three conditions holds: (1) There exist 11 and 12 in L such that 11 < l < 12 and Vx E X* such that ft(x) :?~ l, either ft(x) S 11 or ft(x) >, 12(2) l is a maximum element of L and there exists 11 :?~ l in L such that Vx E X* with [t(X) :?~ l, [t(X) S 11. (3) l = 0 and there exists 1 2 :?~ 0 in L such that Vx E X* with y(x) :?~ 0, Theorem 9.4.1 Let L be a lattice with minimum element 0.
Let ft X* ---+ L be an L-fuzzy language and let l be an isolated cutpoint of ft. Then, for i = 0, 1, 2, 3, if ft is fuzzy recognized by a machine in Ti, then LG E (f, l) and LG (f, l) are recognized by a machine in Ti .
Proof. Suppose that ft is fuzzy recognized by a machine M = (X U A U ftf , I', T, 0, S, S2, K,'YO)
in TZ with a representation r over A. Since l is an isolated cutpoint of ft, either (1), (2), or (3) holds . We only prove the case when (1) holds . The proofs for other cases are similar . Let 11 and 12 in L be such that 11 < l < 12 . Suppose that Vx E X* with ft(x) :?~ l, either ft(x) > 12 or ft(x) S 1 1 . Let dl and d2 be the D-length of r(11) and r(l) and that of r(l) and r(12), respectively. Let d3 = dl V d2 and let w E A* be the prefix of r(l) of length d3 . From the definition of fuzzy recognition, the set L[M, >1] is recognized by a machine in Ti, where L[M, >,] is the set of all words of the form xty with x E X*, and y E A* is such that 'Yo ==~> 'Y and K(0(-Y)) is = or >. We now show that
xty
fx E X*ly(x) > if = fx E X*Ixty E L[M, >] for some y E PRE wA*f . If y(x) >, l, then there exists 'Y E I'* and y E PREfr(1)f C PREwA* such
that 'Yo ~ 'Y and K(0(-y)) is = or >.
© 2002 by Chapman & Hall/CRC
Conversely, suppose that 'Yo ~ 'Y
9.4. Cutpoint Languages
431
and K(0(-Y)) is = or >, where x E X*, y E PREwA*, and ,y E I'* . If y E PREr(l), then clearly ft(x) >, l . Otherwise, there exists l' E L such that y(x) >, l' and for some w' E A* and a E A', r(l') = ya = ww'a. From the definition of D-length, neither l' and 1 1 nor l' and 12 are incomparable, and also neither l' < 1, nor 12 < l' holds . Therefore, 1 1 S l' S 12 . This implies that ft(x) = l or ft(x) >, 12. Thus ft(x) >, l. Clearly, there exists a gsm-mapping G, [96, p.272], such that LGE(lt, l) = G(L[M, >,]
n X*cPREwA*) .
Since classes of recursively enumerable sets, context-free languages, and regular sets are closed under a gsm-mapping operation, respectively, it holds for i = 0, 2, and 3 that LGE(lt, l) is recognized by a machine in Ti . Suppose that i = 1 . Then machine M is a Turing machine such that for some constant t, I _ t I x I for any x E X* and for any memory configu ration ,y such that 'Yo ===> 'Y for some y E PRE{r(l) 11 E L} . A machine xty
M' is a modification of M as follows, M' moves reading xt in the same way as M moves reading xt for x E X* . After reading xt, M' continues to
read A and changes sequentially memory configurations in the same way as M reads some y E PREwA* . In order to move in this way, M' has an autonomous finite state machine as a submachine that generates any y E PREwA* nondeterministically. Clearly, M' E T1 and thus the set L(M') of all words xt (x E X*) for which M' emits > or = is recognized by a machine in T1 . It follows that L(M) = {xt I x E X*, y E PREwA* and xty E L(M, >)}. Therefore, L(M') = LGE(lt, l) t. Hence LGE(ft, 1) is recognized by a machine in T1 . The proof for LG(lt, l) is similar . m Corollary 9.4 .2 Let L be a finite lattice and let ft : X * ~ L be an L-fuzzy language . Then, for i = 0, 1, 2, 3, if ft is fuzzy recognized by a machine in Ti, then for any l E L, LGE(lt, l) and LG(lt, l) are recognized by a machine in Ti . Proof. Suppose that ft is fuzzy recognized by a machine M = (X U A U {t}, I',,@, 0, S, S2, K,'Yo)
in Ti. Let L = {11,12 . . . . , i s } . Then there exists wj E A* such that r (1j) E wj A', but r (1j) ~ wk A' for 1 <_ j < k <_ s . Let L[M, >] be the set of all words of the form xty with x E X* and y E A* such that 'Yo ==> ,y and xty
is = or > . Then it follows from the definition of fuzzy recognition that L[M, >] is recognized by a machine in Ti . Clearly, it follows that K(0(-Y))
{x
E
X* I y(x) > lj } = {x
© 2002 by Chapman & Hall/CRC
E X*
I xty
E
L[M, >] for some y
E
PREwj A
432
9. L-Fuzzy Automata, Grammars, and Languages
for j = 1, . . . , s such that lj is not the minimum element of L. Moreover, if lj is the minimum element of L, then {x E X* I ft(x) > l j } = X* is clearly recognized by a machine in Ti. The remainder of the proof is the same as in the proof of Theorem 9.4 .1 . Theorem 9.4.3 Let L be a lattice with minimum element 0 that has a representation ro over D0 . Let /t : X* ~ L be an L-fuzzy language such that ft(X*) is finite . Then for i = 0, 1, 2, 3, if LGE(lt, ft(x)) is recognized by a machine in TZ b'x E X*, then /t is fuzzy recognized by a machine in Ti. Proof. Suppose that ft (X*) _ {h, 12, . . . , i s } . Let Mj be a machine recognizing LGE(/t, lj) for j = 1, . . . , s. A machine M that fuzzy recognizes /t with a representation r over A is given as follows : Let A = Do U A l U 02, where Di = {ll, 1 2 . . . . . ls} such that 1' is a new symbol corresponding uniquely to l2 for i = 1, . . . , s and A2 = P(Al) x P(Al) . Define r as follows : r(lj ) r(l)
hro(lj ) (A,, Bi)r0(l)
=
=
for j = 1, . . . , s if l ~ y,(X*),
where Al ={h I lj >11andBI={h I l jlk, (3) li < lk, and (4) lj and lk are incomparable, and then halts . Reading (Al, BI), M(~j) emits, respectively, >, <, and ! according to the _ cases (1) h E A, (2) h E B1, (3) h ~ Al U B1, and then halts . Let Fj _ {yT '}'T E Fj I and let v('YT) = lj for all %3r E I'j and for all j = 1, . . . , s . If ft(X) = lk, then Sx = Uii < b I'j . Therefore, i
it W = V(W) = V{V(-r) I
'r
E Sx}
Thus /t is fuzzy recognized by M. The following corollaries follow from Theorems 9.4.1, 9.4.3, and Corollary 9.4 .2. © 2002 by Chapman & Hall/CRC
9.4. Cutpoint Languages
433
Corollary 9.4 .4 Let L be a totally ordered set with a minimum element
and that has some representation or let L be a finite lattice. If /t is an L-fuzzy language over some alphabet X such that ft(X*) is finite, then for i = 0, 1, 2, 3, /t is fuzzy recognized by a machine in TZ if and only if b'x E X*, LGE(lt, ft (X)) is recognized by a machine in Ti . m
Corollary 9.4 .5 Let L be a language over X and let XL : X* ----> B be the characteristic function of L, where B is the Boolean lattice with two elements . For i = 0, 1, 2, 3, L is recognized by a machine in TZ if and only if XL is fuzzy recognized by a machine in Ti . m Corollary 9 .4.5 shows that the representation concept for fuzzy languages introduced in this section is a fairly good extension of the one for ordinary languages . Example 9.4 .6 Let L be a lattice with a minimum element 0 and a maxi-
mum element 1. An L-fuzzy context-free grammar is defined to be a quadruple G = (N, T, P, S), where NUT is a finite set of symbols with Nr1T = 0, T is the set of terminal symbols, N is the set of nonterminal symbols, S E N, and P is a finite set of production rules of the form
with A E N, x E (N U T)*, and l E L. For any y, z E (N U T)*, we write i y ----> z if there exists u, v E (N U T) * and A z = uxv. We write
z is in P such that y = uAv and
i
y~y * y
0 z *
y
m z *
for all y, z E (N U T)*, and
if and only if there exists a sequence of elements y0, yl, . . . , yn E (N U T) * i. such that y0 = y, yn = z, y2_1 4 yZ for i = 1, . . . , n and AZ l l2 = m. For any x E T*, let lx = V{l E L I S ='~> x} . The L-fuzzy language /t defined by ft(x) = lx , for all x E T*
© 2002 by Chapman & Hall/CRC
43 4
9. L-Fuzzy Automata, Grammars, and Languages
is said to be generated by G. An L-fuzzy language generated by some Lfuzzy context-free grammar is called an L-fuzzy context-free language. (L_ fuzzy phrase structure, L-fuzzy context-sensitive, L-fuzzy regular grammars and languages are similarly defined, respectively .) L[0,1]-fuzzy context-free languages were studied in Chapter 4. From Proposition 18 in [261] and Theorem 9.4 .3, it follows that any L[0,1] fuzzy context-free language is fuzzy recognized by a pushdown automaton.
Example 9.4.7 Let X = {a, b, c} and let y2 be the L[0 1]-fuzzy language over X defined by Vi, j, k E hY U {0} It2(a'. h'ck) _
(1)~i-j I+1 + (1)h-k1+1 2
2
and It2(w) = 0 if w ~ a*b*c* . Then 1 is an isolated cutpoint of ft2, and LGE(It2 ,1) = {a'b'c2 I i E NU{0}} is not recognized by any pushdown automaton. Thus by Theorem 9.4 .1, ft2 is not fuzzy recognized by any pushdown automaton. It follows that N2 is fuzzy recognized by some deterministic linear bounded automaton with the representation rl of Example 9.2.2.
We now consider regular representations . The following theorem is clear from the proof of Theorem 9 .4 .1 . Theorem 9.4.8 Let L be a lattice with a minimum element. Suppose that
the L-fuzzy language ft is fuzzy recognized by a machine in TZ(DTZ) with a representation r and that r(l), l E L, is generated by an autonomous finite automaton sequentially . Then LG(lt, l) and LGE(lt, l) are recognized by a machine in TZ(DTZ), where i = 0, 1, 2,3. 0
We next introduce the concept of a regular representation . Let L be a lattice with a minimum element . A representation r of L is said to be regular if for all l E L, r(l) is generated sequentially by some autonomous finite automaton . The following corollary follows from Theorem 9.4 .8 . Corollary 9.4.9 Let L be a lattice with a minimum element. For i =
1, 2, 3, if an L-fuzzy language ft is fuzzy recognized by a machine in TZ(DTZ) with a regular representation, then for all l E L, LG(lt, 1) and LGE(ft, 1) are recognized by a machine in TZ(DTZ) . 0
The representation of r2 of L[0,1], shown in the lar . Thus the L-fuzzy language ft, of Example 9.3 .1 LG(lt, l) and LGE(lt, l) are context-free languages . of restricted type have regular representations . For © 2002 by Chapman & Hall/CRC
Example 9.2 .3 is reguand for any l E Lfo,ll,, Clearly, only lattices example, L[o,1] cannot
435 9.5. Fuzzy Languages not Fuzzy Recognized by Machines in DT2 have a regular representation . However, fuzzy recognition of a fuzzy language with a regular representation is of interest since, by Corollary 9.4.9, it gives a property independent of cutpoints of the fuzzy language with respect to recognition of its cutpoint languages .
9 .5
Fuzzy Languages not Fuzzy Recognized by Machines in DT2
In view of Theorem 9.4.1 and Corollary 9.4.2, L-fuzzy languages not fuzzy recognized by a machine in TZ for i = 0, 1, 2,3 are easily found. However, Theorem 9.4 .1 and Corollary 9.4 .2 cannot be used to find an L-fuzzy language whose membership function-values distribute densely over L and that is not fuzzy recognized by a machine in TZ for i = 0, 1, 2. Hence it would be of interest to find such a language. Although we do not have such an example, we do have the following example . Example 9.5.1 Let X = {0,1} and let over X such that for a2 E X, i = 1, 2, . . . ,
la3 be an L[0,1],-fuzzy language k,
Ps(ala2 . . . ak) = a12 -1 + a22 -2 + . . . + ak2-k (binary expansion, and P3 (A) = 0 . We now show that la3 is not fuzzy recognized by any deterministic pushdown automaton. Suppose that la3 is fuzzy recognized by a deterministic pushdown automaton
with a representation r over A . Let
Ll =
{xty
I
'Yo
ty'Y and K(B('Y)) _ (_)}
Then Ll is a context-free language included in X*t0* . Let L2 = L1 n 0*1*t0* . Then L2 is also a context-free language . Since M is deterministic, for any xty E L1, there exists a E A' such that r(ft3(x)) = ya . Due to the pumping lemma of the theory of context-free languages, there exists a constant k such that if ~zj >_ k and z E L2 , then z = uvwxy such that vx :?~ A, Ivwxl <_ k, and for all i, uv'wx'y E L2. Let m >_ k and let zP be an element in L2 of the form OP1mtgp , gP E A*, for any p E N U {0} . Then zP = u pvp wp xp yp , where vp xp :?~ A, vp wp xp l <_ k, and for all i E hY U {0}, up vpwp xPyp E L2 . Since M is deterministic and halts immediately after it emits (_), there does not exist x E X* and y, y' E A* with y :?~ y' such
I
© 2002 by Chapman & Hall/CRC
43 6
9. L-Fuzzy Automata, Grammars, and Languages
that both xty, xty' E L2 . Since ft3(x) 7~ ft3(x') for x and x' in 0*lm with x z,4 x', there do not exist x and x' in O*lm with x :?~ x' and y E A* such that xty, x'ty E L2 . Thus for all p, neither up nor yP contains t . Since t cannot occur in either vp or xp, wp contains t for all p. Hence vp :?~ A and xp :?~ A for all p > 0 . Also b' p > 0, we can write vp = Pp for some sp > 1 and wp = 11PtWp for some tp > 0 and Wp E A* . Since l vpwpxpl <_ k for all p, there exist non-negative integers p and q, and W and A :?~ x E A* such that p < q, Wp = Wq = W sp = sq = s, and xp = xq = x. Thus z
P
z4
and for all i
= =
Opl,twxyp Og1'tWxyq
E N U {0}
Opl m- sls ztWxzyp Ogj m- s1sitWXZyq There exist ao, ctrl
E
E L2 E
L2 .
A' such that
r-1 (WYPC'O) = ft3(oplm-S) < P3(Op l m) = r-1(WxyPCti1) . Let do be the D-length of Wyp ao and Wxypcxl, and let j > do . Then there exists a2 E A' such that r-1(WXZypC'2) = ft3(Op l m-S1Sj ) > ft3(Op1m) . Hence the D-length dl of Wyp ao and Wxiypa2 is less than or equal to do . Since j > do, j > dl . However, there exists a3 E A' such that r-1(WxjygC'3) = ft3(Op l m-S1Sj ) < ft3(Op l m-S ) = r -1 (WyPaO)l which contradicts the definition of a representation. Thus la3 cannot be fuzzy recognized by any deterministic pushdown automaton.
It is well known in the theory of probabilistic automata [168] that LGE(lt, l) and LG(lt, l) are regular sets for any l E L[0,1], . Thus it is not true in general that an L-fuzzy language is fuzzy recognized by a machine in T3 (even in DT3) even if all its cutpoint languages are recognized by machines in T3. Consequently, the converse of Corollary 9.4 .9 does not hold .
9 .6
Rational Probabilistic Events
In this section, it is shown that any rational probabilistic event is fuzzy recognized by a deterministic linear bounded automaton with a regular representation . A rational probabilistic automaton A with n states over a finite alphabet X is a triple A = (7r, {A(u) l u E Xj, 97), where 7r is a 1 x n 7r2 matrix [ 7r 1 . . . 7rn ] with 7r2 E [0,1]Q for i = 0, . . . , n such that © 2002 by Chapman & Hall/CRC
9.6. Rational Probabilistic Events
437
1 7r2 = 1, for all u E X, A(u) is an n x n stochastic matrix such that all components of A(u) are in [0,1]Q and rl is an n x 1 matrix such that all components of rl are in [0,1]Q . An L-fuzzy language p : X* ----> L[0,1 ], is said to be realized or accepted by a rational probabilistic automaton A if p(A) = 7rrl and for any m E hY and u2 E X for i = 1, . . . , m
p(UIu2 . . .
urn)
= 7rA(u 1 )A(u2) . . . A(ur )9J .
An L-fuzzy language p is called a rational probabilistic event if p is realized by some rational probabilistic automaton. The reader is referred to [168] for properties concerning probabilistic automata . Theorem 9.6.1 Every rational probabilistic event is fuzzy recognized by a machine in DT, with a regular representation .
Proof. Suppose that p : X* ----> L[0,1 ], is a rational probabilistic event . Assume that p is realized by a rational probabilistic automaton A = (7r, {A(u) In E Xj, rl) ,
with n states . Let all components of 7r, A(u)'s (u E X), and rl be represented in the form h/k for h, k E hY such that k is common to all of them. For any word x = ulu2 . . . Um of length m >_ 1, let 7r(x) = (7r1(x), 7r2(x), . . . ,7r .(x)) be 7rA(u1)A(u2) . . . A (u ,) and let 7r (A) = 7r . Then for any word x of length m, 7r2(x) is represented in the form h2(x)/k-+1 with 0 <_ h2(x) <_ km+1, for i = 1, . . . , n, and p(x) is represented in the form w(x)/km+ 2 with 0 < w(x) < km+2 . We denote the binary expansion of a nonnegative integer j by b(j) and the length of b(j) by b(j) j . Then we can construct a Turing machine z such that when z reads an input word x E X*, z gives the output string T(x) = b(h1(x))#b(h2(x))# . . . #b(hn(x))#b(w(x))#b(klx1+2)
on its tape using at most d I x l working spaces, where d is a constant independent of x. Clearly, T(xu) with u E X can be computed by a Turing machine from T(x) at most a constant multiple of Ib(klx'l+1)I spaces and that for any non-negative integer s, Ib(ks)I <_ d's for some constant d' . Thus by induction on the length of an input word, it follows that there exists a Turing machine z that computes T(x) for x E X* using at most d I xl spaces . Subsequent moves of z are defined as follows : If z with a memory configuration T(x) reads t as its next input symbol, then z transforms T(x) into b(s(x))#b(s'(x)) on its tape, where s(x)/s'(x) = w(x)/klx1+ 2 and s(x) and s(x) are relatively prime. (If w(x) = 0, z prints 0 and if w(x) = k1x1+2, z prints 1 on its tape.) Since division by a binary number not greater than b(klxl+2) can be done with at most a constant multiple of Ib(klxl+2) I spaces, z can give b(s(x))#b(s'(x)) on its tape using d I xl spaces after it reads xt . © 2002 by Chapman & Hall/CRC
43 8
9. L-Fuzzy Automata, Grammars, and Languages
0'°° We now define a representation r : L[o 1] Q as follows, where A' = {0,1} x {0,1, #} : Define Tl : A {0,1, #}°° and T2 : 0'°° ----> {0,1}°° by TZ(ul, u2) = u2 for (UI, u2) E A' and Ti(x) = TZ(ul)TZ(u2)TZ(u3) . . .
for x = ulu2u3 . . . with uj E X, j > 1, for i = 1, 2. For l E L[ 0,1], with 0 :?~ l 1, let l = s1s', where s and s' are relatively prime positive integers . Then r(l) is the element in 0'°° such that T I (r(l)) = b(s)#b(s')### . . . and T2(r(l)) = e(l), where e(l) was given in Example 9 .2 .2 . Then r(0) = (0 , 0) (#, 0) (#, 0) (#, 0) . . . and r(1) = (1,1) (#, 1) (#, 1) (#,1) . . . . Clearly, r is a representation since the D-length of r(l) and r(m) with l :?~ m may be defined as the positive integer k such that T2(r(l)) and T2(r(m)) differ first at the kth digit . It follows easily that r is a regular representation . If z with b(s(x))#b(s'(x)) on its tape is given a representation r(l) of l E L[0,1]u as an input succeeding xt for x E X*, z computes the binary expansion of s(x)Is'(x), digit-by-digit, and compares it with T2 (r(l)) . In parallel with this computation, z compares sequentially b(s(x))#b(s'(x)) with TI(r(l)) . Then either z emits = and halts if b(s(x))#b(s'(x)) = b(s)#b(s'), where TI(r(l)) = b(s)#b(s')### . . . , or z emits > or < and halts according to the comparison of the first distinguished digit of T2(r(l)) and the binary expansion of s(x)ls'(x) . Since the digit-by-digit generation of the binary expansion of s(x)ls'(x) can be made using at most a constant multiple of lb(s'(x))l spaces, z can do the above value comparing computation for x E X* using at most d I xI spaces. Thus p is fuzzy recognized by z in DTI with the regular representation r. The following result, which was proved in [230], follows directly from Theorem 9.6 .1 . Corollary 9.6 .2 Let p : X* ----> L[0,1], be a rational probabilistic event. Then for all l E L[O,I]Q , LG(lt, l) and LGE(N, l) are recognized by a machine in DTI . m 9 .7
Recursive Fuzzy Languages
The relation between deterministic machines and nondeterministic machines with respect to the fuzzy recognizability of fuzzy languages differs somewhat from that of ordinary languages . We show that in the fuzzy recognition of fuzzy languages, nondeterministic Turing machines are more powerful than deterministic Turing machines. Let {t0, t1, t2 . . . . } be an enumeration of deterministic Turing machines . Let L3 be a lattice with three elements 0, c, and 1 such that 0 < c < 1 . Let X = {u} . Let la4 and lay be L3-fuzzy languages over X defined as follows : For n E hY U {0}, ft4(un)
-
1 0
if to with the blank tape eventually halts otherwise
© 2002 by Chapman & Hall/CRC
9.8. Closure Properties la5(Un)
-
1 c
439 if to with the blank tape eventually halts otherwise .
Lemma 9.7.1 Let la4 and [t5 be defined as above . Then la4 is fuzzy recognized by a deterministic Turing machine. [t5 is fuzzy recognized by a nondeterministic Turing machine, but it is not fuzzy recognized by a deterministic Turing machine .
Proof. Clearly, there exists a deterministic Turing machine that fuzzy recognizes 1a4 . Since LGE(/t5 ,1) and LGE(N5, c) are recursively enumerable languages, it follows from Theorem 9.4.3 that [t5 is fuzzy recognized by a Turing machine. Suppose that [t5 is fuzzy recognized by a deterministic Turing machine. Then it follows that the language {un I lt 5 (un) = c} is recursively enumerable. Thus the halting problem of Turing machines is solvable, which is a contradiction . Hence [t5 is not fuzzy recognized by a deterministic Turing machine. Let L(Tj) and L(DTj) be the sets of L-fuzzy languages fuzzy recognized by a machine in Ti and DTi, respectively, for i = 0, 1, 2,3 . Theorem 9.7.2 (1) L(To) D L(DTO ) . (2) L(T2) L(DT2) . (3) L(T3) = L(DT3) . Proof. (1) is immediate from Lemma 9.7.1. (2) follows from Corollary 9.4 .4. (3) follows easily. It is not known whether or not L(TI ) D L(DTI ) . Considering Lemma 9.7 .1, it seems reasonable to define recursive Lfuzzy languages as follows: An L-fuzzy language ft over X is recursive if and only if ft is fuzzy recognized by some machine M = (X U A U {t}, I', T, 0, S, S2, K, 'o)
in DTo with some representation r over A with the condition that Sx zA 01 for any x E X*, where Sx = {,y E I'* I 'Yo ==> -Y} . xt Clearly, any L-fuzzy language in L(T3) is recursive . The proof of the following proposition follows easily. Proposition 9.7 .3 An L-fuzzy language in L(DT2) U L(TI ) is a recursive fuzzy language . 9 .8
Closure Properties
We now consider closure properties of the classes of fuzzy languages corresponding to machine classes Ti 's under fuzzy set operations. We show © 2002 by Chapman & Hall/CRC
44 0
9. L-Fuzzy Automata, Grammars, and Languages
that these properties are the extensions of certain closure properties of ordinary languages such as regular sets, context-free languages, contextsensitive languages, and recursively enumerable sets. We consider L[01] fuzzy languages . Theorem 9.8.1 Let
/t and v be L[01 ]-fuzzy languages over X. Let i E {0,1, 2,3f . If /t and v are fuzzy recognized by a machine in Ti, then /t U v is fuzzy recognized by a machine in Ti .
Proof. Suppose that /t and v is fuzzy recognized by a machine Ml with a representation r l : L[ 0,1] ~ Di° and a machine M2 with a representation r 2 : L[0,1] ~ A", respectively. Let A = O1 x 02 . For j = 1, 2 define Tj : 0°° ~ 0~ as follows : Tj((al,a2)) = aj with aj E Aj and for y = bjb2b3 . . . with bk E A, k >_ 1, T,j (y) = Tj (bl) Tj (b2) Tj (b3) . . . . Let r : L[01] ~ A' be such that for any l E L[0,1], T1(r(l)) = r1(l) and T2(r(l)) = r2(l) . Then r is a representation of L[o 1] over A since the Dlength d(r(l), r(m)) of r(l) and r(m) for any distinct l, m E L[0,1] can be defined as d(r(1),r(m)) = d(r1(1),r1(m)) . A machine M that fuzzy recognizes ft U v with the representation r is given as follows : M has Ml and M2 as submachines . For any word xt with x E X*, M first reads A, chooses nondeterministically Ml or M2, and simulates the chosen machine hereafter reading xt . If M reads through xt simulating Mj , j = 1, 2, and if M is given r(l), l E L[0,1 ], then M moves as Mj does if it is given Tj (r(l)) = rj (l) . Clearly, M fuzzy recognizes ft U v . Theorem 9.8.2 Let i E {0,1, 3} . Let
/t and v be L[0,1] -fuzzy languages over X. If /t and v are fuzzy recognized by a machine in Ti, then /t n v is fuzzy recognized by a machine in Ti .
Proof. We prove the result for i = 1. The proofs for the i = 0 and 3 cases are similar . Suppose that /t and v are fuzzy recognized by a machine Ml in Tl with a representation rl : L[0,1] ~ A' and a machine M2 in Tl with a representation r2 : L[0,1] ----> 0~ . Let 0 = Ol x 02 . Define a representation r : L[o 1] ~ 0°° as defined in the proof of Theorem 9.8.1 . We determine a machine M in Tl that fuzzy recognizes /t n v with the representation r with M having Ml and M2 as submachines. When M is given xt with x E X* as an input word, submachines Ml and M2 of M move in parallel reading xt, and M reaches the configuration 'Y corresponding to the pair of configurations 'Yl of Ml and 'Y2 of M2, which they reach after reading xt, respectively. For this computation of M, at most a constant multiple of Ixl spaces is necessary. If M with the configuration 'Y is given r(l) with l E L[0,1] as a subsequent input, then M makes Ml with the configuration y1 read T1(r(l)) = r1(l) and in parallel makes M2 with the configuration 'Y2 read T2(r(l)) = r2(l) . When one of M1 or M2 emits an output, i.e., one of >, <, and =, M remembers it in a state and then continues to make another submachine move until it emits an output . If © 2002 by Chapman & Hall/CRC
9.9 . Fuzzy Grammars and Recursively Enumerable Fuzzy Languages 441
both Ml and M2 emit >, then M emits > . If one of them emits = and another emits > or =, then M emits =. If either one of them emits <, then M emits <. M halts immediately after M emits an output . Since Ml and M2 are machines in Tl , M needs at most a constant multiple of Ixl spaces in order to do the above value-comparing computation for x E X* . Thus M in Tl fuzzy recognizes /t n v. Since for two context-free languages L1 and L2, Ll nL2 is not necessarily a context-free language, it follows from Corollary 9.4 .4 that for two L-fuzzy languages /t and v each of which is fuzzy recognized by a machine in T2, tt rl v is not necessarily fuzzy recognized by a machine in T2 . However, a similar proof to that of Theorem 9.8 .2 shows that if /t is fuzzy recognized by a machine in T2 and v is fuzzy recognized by a machine in T3, then /t n v is fuzzy recognized by a machine in T2 .
9 .9
Fuzzy Grammars and Recursively Enumerable Fuzzy Languages
The purpose of this and the next section is to prove that an L-fuzzy language is generated by an L-fuzzy grammar if and only if it is recursively enumerable, that is, its set of L-fuzzy points is recursively enumerable . As an immediate consequence, we give simple proofs that the union, the intersection, the concatenation of two generated L-fuzzy languages is a generated L-fuzzy language. The results are from [73] . L-fuzzy grammars and generated L-fuzzy languages were introduced in [122] in order to examine ambiguous languages . In the classical case, a language is generated by a grammar if and only if it is recursively enumerable, [96, p. 150] . The question thus arises if such a result holds for generated L-fuzzy languages also. This leads to the question of a suitable definition of recursive enumerability for L-fuzzy subsets . In [17], an L-fuzzy subset whose set of fuzzy points is recursively enumerable is called recursively enumerable . There are several arguments that justify such a definition . For example, it is in accordance with the concept of computability for L-maps given in [200, 210] . Also, in [72], it was shown that if L is finite, an L-fuzzy subset is recursively enumerable if and only if it is the domain of an L-map computable via a Turing L-machine . In this and the next section, we prove that if L is finite, then an Lfuzzy language is generated by an L-fuzzy grammar if and only if it is a recursively enumerable L-fuzzy subset. Recursive enumerability is a very manageable concept . Consequently, this also provides a simple tool to in vestigate the properties of generated L-fuzzy languages . As stated earlier, we give a simple proof that the union, intersection, and the concatenation of two generated L-fuzzy languages is also a generated L-fuzzy language. © 2002 by Chapman & Hall/CRC
442
9. L-Fuzzy Automata, Grammars, and Languages
This allows the results given in [17, 70, 71] about the relationship between fuzziness and decidability to be extended to L-fuzzy languages . We call an L-fuzzy subset /t crisp if for every x E X, either y(x) = 1 or y(x) = 0. We identify the classical subsets of X with the crisp L-fuzzy subsets via characteristic functions . If c E L and c 0, then the c-cut of /t is the set /tc = {x I y(x) > c}. Let x E X and c E L. Then the L-fuzzy subset x, of X is defined by x,(y) = c if x = y and x,(y) = 0 otherwise . An L-fuzzy point x, is said to belong to /t provided that y(x) >_ c. We denote by P(X, L) and by P(p) the set of the L-fuzzy points of X and the set of the L-fuzzy points of ft, respectively. An L-fuzzy grammar is a 4-tuple G = (N, T, P, S) with N and T finite sets, the nonterminal and terminal symbols, respectively, such that N n T = 0, S E N (the initial symbol), and P a finite set of L-fuzzy productions, i.e., elements of the form x -c~ y with c E L, c :?~ 0, and X' Y E (NUT)* . We say that an L-fuzzy grammar G = (N, T, P, S) is in normal form provided that if x -c~ y is an L-fuzzy production of G, then either x, y E N* or x E N and y E T. In an L-fuzzy production x C ----> y, c represents the membership degree of the rewriting rule x ~ y . If c = 1, we write x ~ y for x -c~ y. If wxw' and wyw' are elements of (N U T)* and x -c~ y belongs to P, then we say that wyw' is directly derivable from wxw' with degree c in the L-fuzzy grammar G. If w and w' are in (N U T)*, a derivation chain in G from w to w' is a pair of words (w1 . . . WP, cl . . . cp _ 1) such that w1 = w, wp = w', and w2+ 1 is directly derivable from w2 with degree c2 . A derivation of w is a derivation chain from S to w. The element c 1 A c2 A . . . A cp_ 1 is called the degree of the derivation. An L-fuzzy language /t : T* ~ L is generated by the L-fuzzy grammar G provided that, for every w E T*, /t(w) = V{c E L I c is the degree of a derivation of w}. It follows that an L-fuzzy grammar G utilizes only a finite subset X of elements of L and that the sublattice L' generated by X is finite even in the case that L is infinite. This means that every generated L-fuzzy language is a generated L'-fuzzy language, where L' is finite. As a consequence, in the next section, we assume that the lattice L is finite. 9 .10
Recursively Enumerable L-Subsets
An effective codification of T*, P(T*, L), and L is possible since T and L are finite . Then concepts such as a partial recursive function from T* into L and such as recursive enumerability for subsets of T* and P(T*, L) are defined, [182] . An L-fuzzy subset /t is said to be recursively enumerable if its set of points P(p) is a recursively enumerable subset of P(T*, L) and /t is called decidable if it is a recursive function from T* into L . An L-fuzzy subset ft is called a projection of a decidable L-fuzzy relation if there exists a finite set B and a decidable L-fuzzy subset v of T* x B* such that © 2002 by Chapman & Hall/CRC
9.10. Recursively Enumerable L-Subsets
44 3
y(x) = V{v(x, y) I y E B*} . The following proposition is proved in [17] .
Proposition 9.10 .1 Let /t be an L-fuzzy subset of T* . Then the following statements are equivalent . (1) /t is recursively enumerable. (2) Every cut of /t is recursively enumerable. (3) y(x) is a projection of a decidable L-fuzzy relation. (4) y(x) =1im v(x, n) with v recursive and increasing with respect to n.
Proof. (1)x(2) : Immediate. (2)x(3) : Suppose that IBI = 1. Then we can identify B* with N. It follows that y(x) = V{c E L\{0} I x E ttj . Since /t, is recursively enumerable, a partial recursive function v, exists whose domain is /t c. Let v : T* x hY x L ----> L be defined as follows : v(x, n, c)
c 0
if v,(x) is convergent in less than n steps, otherwise .
Clearly, v is recursive and y(x) = V{v(x, n, c) I n E N, c E L} . By identifying hY x L with N, and therefore with B*, via a suitable codification, we obtain (3) . (3)x(4) : Since we can identify B* with N, we can assume that y(x) _ V{v(x, n) I n E N} with v recursive . Set v'(x, n) = v(x,1) V v(x, 2) V . . . V v(x,n) . Then y(x) = limv'(x,n) and v' is recursive and increasing with respect to n . (4)x(1) : It suffices to note that x, E P(p) if and only if ft(x) > c if and only if there exists n E hY such that v(x, n) >_ c. Thus P(p) is recursively enumerable. Proposition 9.10 .2 The set of recursively enumerable L-fuzzy subsets of
T* is a lattice, the minimal lattice containing the recursively enumerable subsets and the L-fuzzy subsets that are constant maps . Namely, an Lfuzzy subset /t : T* ~ L is recursively enumerable if and only if /t admits a decomposition /t = (c l A XI) V . . . V (cn A xn) with c2 E L and where XZ is the characteristic function of a recursive enumerable subset, i = 1, . . . , n.
Proof. Let /t and v be recursively enumerable . Then by Proposition 9.10.1(4), y, (x) = limlt'(x,n) and v(x) = limv'(x,n) with /t' and v' recursive and increasing with respect to n. Then y(x) V v(x) = limlt'(x,n) V v'(x, n) and ft (x) A v(x) = lim ft'(x, n) A v'(x, n) . Since /t' V v' and /t' A v' are recursive and increasing with respect to n, /t V v and /t A v are recursive enumerable This proves that the set of recursively enumerable L-fuzzy subsets forms a lattice . Let /t be a recursively enumerable L-fuzzy subset. Set if
[t(X) x ~(x) _ { 10 otherwise . © 2002 by Chapman & Hall/CRC
>c
444
9. L-Fuzzy Automata, Grammars, and Languages
Since /t c is recursively enumerable, Xc is the characteristic function of a recursively enumerable subset . Clearly, ft = V{c A X c c E L\{0}} . Thus /t is generated by the constants c and the recursively enumerable crisp L-fuzzy subsets xc . We now prove our main result, i.e., an L-fuzzy language /t : T* ----> L is generated by an L-fuzzy grammar if and only if it is recursively enumerable. However, first we prove the following lemma. Lemma 9.10 .3 If ft : T* ~ L and v : T* ~ L are L-fuzzy languages generated by normal form L fuzzy grammars, then /tUv is an L fuzzy language generated by a normal form L fuzzy grammar . Proof. Suppose that y and v are generated by the normal form Lfuzzy grammar G' = (N', T, P', S') and G" = (N", T, P", S"), respectively . Without loss of generality, we assume that N'nN" = 0. Let G be the normal form L-fuzzy grammar (N' U N" U {S}, T, P, S), where S is a new symbol not in N' U N", and P contains S ~ S', S ~ S", and all production in P' and P" . Let A : T* ~ L be the L-fuzzy language generated by G . Then A = /t U v . In a sense, the derivations of G consist of the derivation of G' and the derivations of G". That is, if (w1 . . . wp , ul . . . Up -,) is a derivation of G' (of G") with w 1 equal to S' (to S"), then (Sw1 . . . wp, lul . . . up-1) is a derivation of G' (of G") . Furthermore, since N' and N" are disjoint, every derivation of G can be obtained either from a derivation of G' or from a derivation of G" as above. Thus it follows that A = ft U v. Theorem 9.10 .4 Let /t be an L fuzzy language of T* . Then the following statements are equivalent . (1) /t is generated. (2) /t is recursively enumerable. (3) /t is generated by a normal form grammar . Proof. (1)x(2) : Suppose that /t is generated by the L-fuzzy grammar G. Let P1,P2, . . . be an effective enumeration of the derivation of G . Moreover, let v be defined by v(w, n)
the degree of Pn 0
if Pn is a derivation of w otherwise .
Then it follows that /t is the projection of v, and thus, /t is recursively enumerable by Proposition 9 .10 .1 . (2)x(3) : Suppose that /t is recursively enumerable . Then by Proposition 9.10.2, /t = (c1 A x1) V . . . V (cn A xn), where XZ is the characteristic function of recursively enumerable subset Si of T*, i = 1, . . . , n. Let GZ be a classical grammar in normal form producing Si and let GZ be the normal form L-fuzzy grammar obtained from GZ by substituting each production x ----> y with x _c~ y. It follows that GZ produces the L-fuzzy language c2 AXi . © 2002 by Chapman & Hall/CRC
9.10. Recursively Enumerable L-Subsets
44 5
From Lemma 9.10.3, it follows that ft is generated by a normal form L-fuzzy language . (3)==>(1) : Immediate . We now consider some closure properties for generated L-fuzzy languages . Recall that the concatenation of two L-fuzzy languages ft and v is the L-fuzzy language A defined by b'w E T*, A(w) = V{ft(x) A v(y) w = xy} . Moreover, the Kleene closure /t°° of ft is such that ft'(w) _ V{ft(xl) A . . . A ft(xe) I w = xi . . . xq , q E N} . Corollary 9.10 .5 The class of all generated L-fuzzy languages is a lattice.
In particular, it is the minimal lattice containing the generated (classical) language and the L fuzzy languages that are constant functions. Furthermore, if ft and v are generated languages, then the concatenation of ft and v and the Kleene closure of ft are generated.
Proof. The first part of the corollary follows from Proposition 9.10.2 . Suppose that ft(x) = Vnft'(x, n) and v(x) = Vn v'(x, n) with ft' and v' recursive. Then A(w) = V{ft'(x, n) A v'(x, m) I w = xy, n, m E N} . Since it is possible to codify the set, { (x, y, n, m) I w = xy, n, m E N}, A is a projection of a decidable relation. Thus A is recursively enumerable and therefore generated . Likewise, it is possible to express the Kleene closure of ft by the formula ft-(w) = V{ft'(xl, nl) n . . . n ft'(xq, ne ) I w = xi . . . xq , ni, . . . , nq E N} . Since it is possible to codify the set {(x l . . . x q , q, nl , . . . , nq ) I xl . . . xq = w, q, nl, . . . , nq E N}, ft' is recursively enumerable and therefore generated . Theorem 9.10.4 allows for the transfer of results on the relationship among imprecision, decidability, and recursive enumerability given in [17, 70, 71] to L-fuzzy languages . Namely, we assume that L is a finite sublattice of the interval [0,1] containing -1 . We call an L-fuzzy language infinite indeterminate (almost-everywhere indeterminate) provided that the set {x E T* I s(x) = 2 } is infinite (cofinite) . If A and A' are L-fuzzy languages, we say that A' is a sharpened version of A or that A is a shaded version of A' if A(x)
>2
==> A(x) > A(x) and A(x)
< 2 ==> A(x) < A(x) .
Hence we conclude the following results from Theorem 9.10.4: 1. A generated infinitely indeterminate L-fuzzy language exists with no decidable sharpened version, [17, Proposition 5.1] . That is, it is not possible to obtain decidability by using the indeterminateness of a generated fuzzy language, in general . 2. An infinitely indeterminate L-fuzzy language exists with no generated shaded versions, [71, Proposition 4.4] . This provides an example of a fuzzy language that is not generated in a strong case. © 2002 by Chapman & Hall/CRC
446
9. L-Fuzzy Automata, Grammars, and Languages
3. A generated classical language exists whose unique decidable shaded versions are the L-fuzzy languages infinitely indeterminate, [17, Proposition 5.2] . Consequently, it is not possible to shade a generated classical language in order to obtain decidability . 4. A classical language exists whose unique generated shaded versions are the L-fuzzy languages almost everywhere indeterminate, [71, Proposition 5.2] . Therefore, it is not always possible to obtain generated languages by shading a classical language.
9 .11
Various Kinds of Automata with Weights
Various types of automata such as fuzzy automata, max-product automata, and integer-valued generalized automata [233, 234] have been introduced as a generalization of well-known deterministic automata, nondeterministic automata, and probabilistic automata . These automata have the common property that they have "weights" associated with the state transitions as well as initial and final distributions . Clearly, probabilistic automata can be considered as automata with "weights." The operations of max and min and product have been used with these automata . By using addition and multiplication as the operations and the probabilities as the weights, probabilistic automata can be defined. Moreover, integer-valued generalized automata have integer weights and addition and multiplication as operations. We now present the results of [148] in order to present a general formulation of automata with weights by extracting the basic properties common to the existing automata and by incorporating the appropriate algebraic systems with automata systems and by performing the operations of the algebraic systems to the state transition functions and initial and final distribution functions of the pseudoautomata defined later. We continue the theme of using a lattice L rather than [0,1] . The concept of L-fuzzy relations enables us to define fuzzy automata, l-semigroup automata, lattice automata, dual lattice automata, max-product automata, and so on. Moreover, L-fuzzy relations are important in formulating other kinds of automata with weights such as semiring automata, ring automata, integer-valued generalized automata, and field automata . Definition 9.11 .1 Let X be a set and L be a lattice . An L-fuzzy relation on X is a function /t from X x X into L, i.e., ft :XxX----> L.
(9 .1)
We let V and A denote the operations of supremum and infimum on L, respectively. In the remainder of the chapter, the structure of the membership space L is assumed to be a complete lattice ordered semigroup and a complete distributive lattice because of the concept of composition of L-fuzzy relations defined below. © 2002 by Chapman & Hall/CRC
as =lla2 also for (L, follows as the there Various L iIf *pl, If *Eordered V, follows all iscomposition to is aL (VZEZyi) satisfies semigroup lan(X1, the L I,complete P2, *) the axisare the is 9an complete Eaoperations Kinds aThe semigroup (or complete two L, index associativity Xn+1) complete I, w2(x, semigroup =VZEZ(x* lan the product distributive Let elements of operation are of set, distributive following Automata z) lattice z) ft, L-fuzzy lattice L-fuzzy V= operation =A{wj lattice and and V{wl(X, V{wj(X, yi) 0of X2, Lla1(XI,X2) that (l-semigroup ordered *laws and ft, composition relations distributive N2 relations (L, Ais(X, with replaced and are in 1V, is0*x lattice x, are be 1, 1*x y) ,y)in Xn LA), asemigroup *VL-fuzzy A Weights dual N2 as an semigroup w2(y, Ew2(y, *can then A X}, follows P2(X2,X3) = on l-semigroup by laws, in similar of for be z) X, z) 0,relations x, AL-fuzzy adefined short) I(or I in *yythen denoted distributive yyFor with result EE L*=X}, El-semigroup X} XI' =L and all VZEZ(xj itrelations, by identity on (L, *holds = isx, by replacing lan(Xn,Xn+1) is(L, V, X aPIP2, y, denoted lattice, complete xi, *), *V, for Then y) (L, under yi we *) then (9isV V, Ecan such the the deby L, *), L
9.11 .
447
If and lattice L where
.
.
x
and
.
(VZEZxi)
If becomes
.
Definition .11 .2 composition : fined (1) then
.
(9 .2)
wIw2(X, where (2)
. (9 .3)
wIw2(X, Since different A
: .
It
(9 .4)
Due write It
where (9 .4) . If that
.. .
V I
. ..
"..
.. .
(9 .5) .
XV0 x*0 XV1 x*1
© 2002 by Chapman & Hall/CRC
= = = =
.3)-
(9 .6)
448
9. L-Fuzzy Automata, Grammars, and Languages
then they are called a zero and an identity of L, respectively. For example, let L be ([0,1], V, .), where the operation - is ordinary multiplication. Then L is an l-semigroup with zero 0 and identity 1. Moreover, let the Cartesian product of [0,1] be written as [0,1] 2 and the operations V and - be defined as (a, b) V (c, d) _ ((a V c), (b V d)), (a, b) - (c, d) _ (a . c, b . d), for each (a, b), (c, d) E [0,1]2 . Then L = ([0,1]2, V' .) is an l-semigroup with zero (0, 0) and identity (1,1) . For the l-semigroup L with zero 0 and identity 1, define the identity relation t by V'x, y E L, 1 t(x~y) =~ 0
ifx=y if xz,4 y.
(9.7)
Then we have qt = frt = ft,
(9.8)
for each L-fuzzy relation ft . Clearly, every L-fuzzy relation ft over X is representable by a matrix if X is a finite set. Let X = {xl, x2, . . . , x } . Then ft is represented by the n x n matrix, We now define what is called a pseudoautomaton in [148] in order to derive various kinds of automata with weights . Definition 9.11 .3 A pseudoautomaton is a 6-tuple A= (Q, X, W, ft, 7r~ 97),
where (1)
(9 .9)
Q is a finite set of states, (2) X is a finite set of input symbols, (3) W is a weighting space, (4) ft is a weighting function such as
ft :
Q
x X x
Q ---->
W
(9.10)
and is called a state transition function. The value ft(q, a, q') of (q, a, q') E Q x X x Q represents the weight of transition from state q to state q' when the input symbol is a, (5) 7r is an initial distribution function, where 7r :Q----> W (6)
97
(9.11)
is a final distribution function, where 97 :Q----> W.
© 2002 by Chapman & Hall/CRC
(9 .12)
9.11 . Various Kinds of Automata with Weights
449
We do not consider time and outputs for the sake of simplicity. If we consider time, the state transition function /t, the initial distribution function 7r, and the final distribution function rl are given as ft : QxXxQxT~W TAW 9 :QxT~W where T is a subset of Let Y be a set of output symbols . QxXxYxTinto W.
Then the output function maps
Definition 9.11 .4 A weighted-automaton or simply automaton A* is a 6-tuple A* = (Q, X, W ft*, 7r, 9),
(9 .13)
where Q, X, W 7r, and 9 are given in Definition 9 .11 .3 and ft* : QXX*XQ----> W.
(9 .14)
We now derive various kinds of automata with weights by introducing binary operations on the weighting space W of the pseudoautomata and by giving the extension rules for obtaining /t* from /t.
L-Semigroup Automata (la) . Here the weighting space is a complete lattice ordered semigroup (lsemigroup for short) L = (L, V, *) with identity 1 and zero 0, where the operation * is the semigroup operation in L . The state transition function /t, the initial distribution function 7r, and the final distribution function 97 are given by replacing W in (9.10), (9.11), and (9.12) by L as follows : ft : QxXxQ----> L
(9 .15)
L
(9 .16)
97 : Q ----> L.
(9 .17)
(1b). Using the concept of composition of L-fuzzy relations (9.2), the state transition function /t* for input strings in X* is obtained recursively as follows : © 2002 by Chapman & Hall/CRC
450
9. L-Fuzzy Automata, Grammars, and Languages For A,xEX*, and aEX, 1 0
~* (q, A, q) _
if q = q~ if gzAq,
w* (q, xa, q) = v{w* (q, x, q') * w(q', a, q) I q' E Q},
(9.18) (9.19)
where q, q' E Q, and 1 and 0 are identity and zero of L, respectively. Suppose that the automaton starts from a certain initial state, say, qo . Then the initial distribution function 7r is concentrated at qo, i.e ., 7r (q)
_
1 ~ 0
if q = qo if q qo .
(9.20)
Let F C_ Q be a set of final states . Then the final distribution function 97 is defined as 1
ifgEF
97 (q)-~ 0 ifq~F
(9.21)
Given the expression (9.19) and the initial distribution 7r and the final distribution rl, the weight, denoted by w(x), of the string x of the automata is defined by w(x) = V{7r(q) * w*(q, x, q) * ?l(q) I q, q E Q},
(9.22)
where x E X* . Since there exists an order relation >_ in the l-semigroup L = (L, V, *), the language L(A, c) accepted by the l-semigroup automaton A with parameter c can be defined by L(A, c) = {x E X* I w(x) > c},
(9.23)
where c is called a threshold (or cutpoint) and is a member of the weighting space L .
Max-Product Automata
(2a) Let the weighting space be L' = ([0,1], V, -) in the l-semigroup automaton of (la, b), where the operation - represents ordinary multiplication. Then L' is an l-semigroup with identity 1 and zero 0. Moreover, /t, 7r, and rl are obtained by replacing L in (9.15)-(9 .17) by [0,1], i.e., ft :
QXX XQ---> [0,1],
7r : Q ---> [0,1],
© 2002 by Chapman & Hall/CRC
(9.24) (9.25)
9.11 . Various Kinds of Automata with Weights 77 : Q ----> [0,1] .
451 (9 .26)
(2b) /t* and w are obtained by replacing * by - in (9.18), (9.19), and (9.22) . * [t (q, A, q) _ q..
1
0
if q = q~ if gzAq,
(9 .27)
) - ft (q", a, q) I q" E Q},
(9 .28)
w(x) = V{7r (q) - [t * (q, x, q) - 97 (q) I q, q' E Q}.
(9 .29)
w* (q, xa, q) = V{w* (q, x,
Clearly, a max-product automaton is a special case of the l-semigroup automaton of (1a,b) and is also a special case of the semiring automata of (14a,b), defined later.
Lattice Automata (3a) A complete distributive lattice L = (L, V, A) is the weighting space. Moreover, /t, 7r, and rl are given from (9.10)-(9 .12) by ft : QxXxQ----> L,
(9 .30)
7r :Q----> L,
(9 .31)
97 : Q ----> L.
(9 .32)
(3b) By using the concept of composition of L-fuzzy relations (9.3), /t* and w are obtained as follows : * [t (q, A, q') _
1 0
if q = q~ if gzAq,
(9 .33)
w* (q, xa, q) = V{w* (q, x, q") n w(q', a, q) I q' E Q},
(9 .34)
w(x) = V {7r(q) A w* (q, x, q) A ?7(q) I q' E Q},
(9 .35)
where 1 and 0 are the maximal and minimal elements of the complete distributive lattice L, respectively. Expressions (9.34) and (9 .35) are obtained by replacing * by A from (9.19) and (9 .22) . A complete distributive lattice is a special case of a complete lattice ordered semigroup . Likewise, a lattice automaton is considered to be a special case of an l-semigroup automaton . The operations V and A are dual in a complete distributive lattice L = (L, V, A) . Thus the dual automata of lattice automata can be formulated in the following manner. © 2002 by Chapman & Hall/CRC
452
9. L-Fuzzy Automata, Grammars, and Languages
Dual Lattice Automata (4a) This is the same as (3a) . (4b) Using the concept of composition w are given as follows : * [t (q, A, q~) _
w* (q, xa,
q) =
w(X)
A{w* (q,
0 1
of
L-fuzzy relations (9 .4), /t* and
if q = if q7~ q~ q,
(9.36)
" x, q ) V w(q', a, q) I q' E Q},
= n{7r(q) n w*(q, x, q) v ?7(q)
I q' E Q} .
(9.37) (9.38)
Given a certain initial state qo and a final state set F, 7r and 97 of the lattice automata of (3a,b) are given as follows in the same manner as (9.20) and (9 .21) . _ 1 7(q) - { 0
if q=qo if q qo .
(9 .39)
_ 1 - { 0
ifgEF if q ~ F
(9 .40)
97 (q)
However, follows :
7r
and
97 of
the dual lattice automata
of
(4a,b) are defined as
0 7r (q) = ~ 1
if q = qo if q qo .
(9.41)
0 97 (q)-~ 1
ifgEF ifq~F.
(9.42)
(Pessimistic) Fuzzy Automata [250, 143, 212, 31, 65, 140, 193, 259] (5a) If the weighting space, J = ([0,1], V, A), is adopted, then J is a complete distributive lattice under the operations V (max) and A (min) . Furthermore, 7r, 7r, and 97 are as follows . ft :
© 2002 by Chapman & Hall/CRC
QxX xQ----> [0,1],
(9.43)
7r : Q ----> [0,1],
(9.44)
97 : Q ----> [0,1] .
(9.45)
9.11 . Various Kinds of Automata with Weights (5b)
/t*
453
and w are defined as follows : * [t (q, A, q)
w* (q, xa,
i
q) = V{(ft* (q, x, q")
w(x) = V{(7r(q)
if if
1
0
q=q' gzAq',
n w(q', a, q)) I
n w* (q, x, q) n 97(q)) I
(9 .46) q' E Q},
(9 .47)
q, q E Q} .
(9 .48)
Since J = ([0,1], max, min) is a complete distributive lattice, a fuzzy automaton is a special case of a lattice automaton (3a,b). Therefore, /t* and w of (9.46) - (9 .48) are obtained from (9.33) - (9 .35) by replacing V with max, A by min .
Optimistic Fuzzy Automata [250,143,212,140] (6a) This is the same as (5a) . (6b) p* and w are defined as follows : w* (q, A, q) = {
if if
1
q=q' gzAq~,
" E Q}, w* (q, xa, q') = A{(w* (q, x, q") V w(q", a, q')) I q w(X) = A{(7r(q) V w* (q, x, q) V 97(q)) I q, q E Q} .
(9 .49) (9 .50) (9 .51)
Optimistic fuzzy automata are special cases of dual lattice automata of (4a,b) . Given an initial state qo and a final state F, 7r and 97 of the fuzzy automata of (5a,b) are obtained from (9.39) and (9 .40) . However, 7r and 9 of an optimistic fuzzy automata are obtained from (9 .41) and (9.42) [143] .
Mixed Fuzzy Automata [212] (7a) This is the same as (5a) . (7b) /t* and w are given by using the concept of convex combination of fuzzy subsets, i.e., w* (q, x,
q) = awPF(q, x, q) + bw*OF(q, a, q),
(9 .52)
w(x) = awPF(x)
(9 .53)
+
bwO F (x),
where PP F and It*0F are state transition functions defined by the pessimistic fuzzy automata of 9 .11 and the optimistic fuzzy automata of (6a,b), respectively. This is the same for WPF and WOF . Also a, b are nonnegative real numbers such that a + b = 1. © 2002 by Chapman & Hall/CRC
454
9. L-Fuzzy Automata, Grammars, and Languages
Composite Fuzzy Automata [250, 65] (8a) This is the same as (5a) . (8b) /t* is obtained by operating between p. This is the same for WPF and WOF .
PPF
and
7r*OF
with probability
Nondeterministic Automata [220] (9a) J' = ({0,1}, max, min} is adopted as the weighting space. Clearly, J' forms a distributive lattice (more precisely, a Boolean lattice) and /t, 7r, and 97 are given as follows : ft : QXXXQ----> {0,1},
(9.54)
7r :
Q ----> {0,1},
(9.55)
97 :
Q ----> {0,1} .
(9.56)
(9b) This is the same as (5b) . Nondeterministic automata are special cases of the fuzzy automata of (5a,b) (or l-semigroup automata) .
Deterministic Automata [220] (10a) This is the same as (9a) plus the additional constraints that there exists unique q' E Q such that 7t(q, a, q') = 1 for each q E Q and a E X and 7r(q, a, q") = 0 for q" :?~ q, and there exists unique q' E Q such that 7r(q') = 1 and 7r(q") = 0 for q" :?~ q' . As for 97, let F be a set of final states. Then 97(q)-~
1 0
ifgEF ifq~F.
(10b) This is the same as (9b) . Clearly, deterministic automata are special cases of the nondeterministic automata of (9a,b) and also of the probabilistic automata of (18a,b) defined later.
Boolean Automata (11a) Here the weighting space is a complete Boolean lattice B = (B, V, A), where the operations V and A are supremum and infimum in B. Clearly, a Boolean lattice is a special case of a distributive lattice . Then 7r, 7r, and 97 are as follows : ft : QxXxQ----> B,
© 2002 by Chapman & Hall/CRC
( 9.57)
9.11 . Various Kinds of Automata with Weights
(9 .58)
7r :
97 :
455
Q ----> B.
(9 .59)
(11b) This is the same as (3b) . Boolean automata and dual Boolean automata, defined next, are special cases of the lattice automata of 9 .11 and the dual lattice automata 9 .11, respectively. In [149], a B-fuzzy grammar is defined to be a 7-tuple (N, T, P, S, J, /t, B), where N is the nonterminal alphabet, T is a terminal alphabet, S E N is an initial symbol, P is a finite set of productions, J is a set of production labels, and /t : J ~ B. We summarize some of the results of [149] in the Exercises .
Dual Boolean Automata (12a) This is the same as (11a) . (12b) This is the same as (4b) .
Mixed Boolean Automata (13a) This is the same as (11a) . (13b) Using the concept of a convex combination of B-fuzzy sets [25], and w are defined as follows : (a A [t * w = (a
)
V (a
/t*
n PDB)(9 .60)
AWB) V (a AWDB),
(9 .61)
where [ta and It*DB are state transition functions that are defined in the Boolean automata of (11a,b) and the dual Boolean automata of (12a,b), respectively, and a, a E B, where a is the complement of a.
Semiring Automata Recall that a set R with the operations of addition + and multiplication x is called a semiring if the following three conditions are satisfied: (1) + is associative and commutative ; (2) x is associative ; (3) x distributes over +, i .e., ax(b+c)=axb+ axc, (b+c) xa=bxa+cxa,
for all a, b, c E R. The semiring R is called a semiring with identity 1 and zero 0 if 1 is the identity under x and 0 is identity under + in R. © 2002 by Chapman & Hall/CRC
456
9. L-Fuzzy Automata, Grammars, and Languages
For example, let R = ([0, oo), +, -) with ordinary addition + and ordinary product . . Then [0, oo) is a semiring with identity 1 and zero 0. Similarly, the set of natural numbers containing 0 is also a semiring with identity and zero under + and .. Also, R = ([0,1], V, -) is a semiring with identity and zero. Note that this R is also an l-semigroup . In general, l-semigroups and complete distributive lattices are special cases of semirings with identity and zero. (14a) The weighting space is a semiring R = (R,+, x) with identity 1 and zero 0. Moreover /t, 7r, and rl are given by: ft :
xX x
Q
R,
Q T
(9.62) (9.63)
71 :Q----> R.
(9.64)
(14b) /t* and w are given as follows : [t* (q, A, q) = [t* (q, xa,
w (x)
q)
~
1 0
if if
= 1: {w* (q, x, q qii EQ
= 1: {'r(q) x q,q'EQ
"
q = q' q zA q~,
(9.65)
) x w (q', a, q)},
(9.66)
lr* (q,x,q) x 9 7(q) .
(9.67)
As a special case of semiring automata, there exist l-semigroup automata of (1a,b), mar-product automata of (2a,b), lattice automata of (3a,b), fuzzy automata of (5a,b), nondeterministic automata of (9a,b), Boolean automata of (12a,b), and so on.
Plus-Weighted Automata [188,235] (15a) The weighting space is R = ([0, oo), +, .), where + and - are ordinary addition and multiplication. Clearly, R = ([0, oo), +, -) is a semiring with identity 1 and zero 0. Then /t, 7r, and rl are defined from (9.62)-(9 .64) as follows : ft :
QXX XQ----> [0,
7r :
© 2002 by Chapman & Hall/CRC
Q ----> [0,
(9.68) (9.69)
9.11 . Various Kinds of Automata with Weights 'q : Q ----> [0,
457 (9 .70)
00)
(15b) /t* and w are defined by letting + be ordinary addition and replacing x by - in (9.65)-(9 .67) . 7r* (q, A, q)
w* (q, xa, q')
=
= E
qii EQ
w(x) = 1:
1
~
0
if if
q=q' qz,4 q~,
" {w* (q, x, q ) - 7r(q", a, q')},
{7 r (q) - 7r * (q, x, q) - 97(q)}
q,q'EQ
(9 .71)
(9 .72)
(9 .73)
Weighted automata are special cases of the semiring automata of (14a,
Max-Weighted Automata [188] (16a) The weighting space is R = ([0, oo), max, .), with ordinary multiplication . . Clearly, R is a semiring with unity and zero. Here, /t, 7r, and 97 are given the same way as (9 .68)-(9 .70). (16b) 7r* and w are defined as follows : 7r * (q, A, q) _
7r * (q, xa, q) =
w(x) =
m
Q
1
0
if if
q= q~ gzAq,
{w* (q, x, q') - 7r(q", a, q)},
Q{7r(q) - 7r * (q, x, q) - 97(q)} qm E
(9 .74) (9 .75) (9 .76)
Max-weighted automata are special cases of the semiring automata of (14a,b) . Max-product automata of (2a,b) can be obtained from max-weighted automata by replacing [0, oo) by [0,1] .
Natural Numbered Automata (17a) The weighting space is hY U {0} with ordinary addition and multiplication . Moreover, /t, 7r, and 97 are given as follows : ft :
© 2002 by Chapman & Hall/CRC
QXXXQ---->
NU{0},
(9 .77)
458
9. L-Fuzzy Automata, Grammars, and Languages 7r :
Q ----> N U {0},
(9.78)
97 :
Q ----> N U {0} .
(9.79)
(17b) This is the same as (15b) . Natural numbered automata are special cases of the weighted automata of (15a, b) . Max-natural numbered automata can be easily defined in a manner similar to a max-weighted automata of (16a,b) .
Probabilistic Automata [220,168] (18a) Here the weighting space is ([0,1],+, -) . Then /t,
7r,
and
ft : QXX XQ~ [0,1],
For
97,
a,
are (9.80)
7r :
Q ----> [0,1],
(9.81)
97 :
Q ----> [0,1] .
(9.82)
In addition, the following constraints of /t, gEQandaEX, Eq'EQ P(q,
97
q~) = 1,
let F be a final state set . Then 1 97 (q)-~ 0
7r,
and
97
are assumed . For all
1. Eq' EQ 7r (q) =
ifgEF ifq~F
(9.83)
(9.84)
(18b) This is the same as (15b) . There exists another definition of 97 different from (9.84), [233] . That is, in the same way as /t and 7r of (9.83), we have qEQ
97(q)
=1.
(9.85)
Generalized Probabilistic Automata [233,164] (19a) This is the same as (18a) with the assumption that the image of 97 not the unit interval [0,1], but the set of real numbers (-oo, oo), i.e., 97 :
by
Q ----> (- 00, oo) .
is
(9.86)
(19b) This is the same as (18b) . The language accepted by generalized probabilistic automata is defined L(A, c) = {x E X* I w(x) > c},
where c E (-
(9.87)
) . As for the probabilistic automata of (18a,b), c E [0,1] .
© 2002 by Chapman & Hall/CRC
9.11 . Various Kinds of Automata with Weights
459
Rational Probabilistic Automata [234] (20a) This is the same as (18a) with the assumption that the values 7r(q, a, q') and 7r(q) are rational numbers in [0,1] . (20b) This is the same as (18b) .
Ring Automata (21a) The weighting space is a ring [125] with identity R = (R,+, .) . Here 7r, 7r, and 97 are ft : QxXxQ----> R,
(9 .88)
R,
(9 .89)
97 : Q ----> R.
(9 .90)
(21b) This is the same as (14b) . Ring automata are special cases of the semiring automata of (14a,b) . The weighted automata of (15a,b) and the max-weighted automata of (16a,b), which are special cases of the semiring automata of (14a,b), are not special cases of ring automata .
Integer-Valued Generalized Automata [233,234] (22a) The weighting space is 7L = (7L, +, .), where 7L is a set of integers and the operations + and - are ordinary addition and product, respectively. Clearly, 7L is a ring with identity. Here /t, 7r, and 97 are ft : QXX XQ----> 7L,
(9 .91) (9 .92) (9 .93)
(22b) This is the same as (15b) . Integer-valued generalized automata are a special case of the ring automata of (21a,b) .
Field Automata (23a) Let the weighting space be a field F = (F,+, .), [125] . Then /t, 97 are ft : QxXxQ----> F,
© 2002 by Chapman & Hall/CRC
7r,
and
(9 .94)
460
9 . L-Fuzzy Automata, Grammars, and Languages 7r : Q ---->
F,
(9.95)
9 :
F.
(9.96)
Q ---->
(23b) This is the same as (21b) . Clearly, field automata are a special case of ring automata of (21a,b) . An integer-valued generalized automata ((22a,b)), which is a special case of ring automata, is not a special case of field automata .
(Real-Valued) Generalized Automata [233, 234, 235] (24a) The weighting space is F = ((-oo, oo), +, .), where (-oo, oo) is a set of real numbers, and + and - are ordinary addition and multiplication . Here 7r, 7r, and 97 are ft
: QXX XQ----> (
(-oo, oo),
(9.98)
Q ~ (-00, 00) .
(9.99)
7r : Q ~
97 :
(9.97)
(24b) This is the same as (15b) . Real-valued generalized automata are a special case of the field automata of (23a,b) .
Rational Automata (25a) The weighting space is Q = (Q, +, .), where Q is a set of rational numbers, and + and - are ordinary addition and multiplication . Here /t, 7r, and 97 are ft
: QXXXQ----> Q
(9.100)
7r :Q~Q,
(9.101)
97 :Q~Q .
(9.102)
(25b) This is the same as (15b) . Rational automata are a special case of the real-valued generalized automata of (24a,b) and also of field automata of (23a,b) . We have presented various kinds of automata with weights . Some of these automata are lacking of physical images . However, for example, from the fact that the classes of languages defined by rational probabilistic automata of (20a,b) and integer-valued generalized automata of (22a,b) are © 2002 by Chapman & Hall/CRC
9.12. Exercises
461
equal, various problems concerning rational probabilistic automata can be solved by investigating the properties of integer-valued generalized automata [233,234] . Consequently, automata with weights are important in investigating properties of well-known automata such as deterministic automata and probabilistic automata . Furthermore, they are useful models of learning systems, gaming, and pattern recognition as in the case of fuzzy automata [250, 31, 65] . The set of complex numbers forms a field. Hence as a special case of field automata of (23a,b), we can define complex numbered automata. We cannot, however, define a language accepted by these automata in the same way as (9 .23 because of the fact that there does not exist an order relation >_ on the set of complex numbers . However, using the concept of a mapping of the set of complex numbers into a certain algebraic system with ordering, say, by transforming the complex number z to the absolute value ~zj, we can define a language by a complex numbered automata A as L(A,z) = {x E X* I Iw(x)l >_ ~z1}. Along these lines, the concept of a valuation of a field can be considered. A valuation of a field F is a function v of F\{0} into an additive abelian totally ordered group such that for all x, y E F\{0}, v(xy) = v(x) + v(y) and v(x + y) > v(x) A v(y) . If we do not use this concept of mapping, we would have to restrict our choice of a ring or a field to those with an ordering as weighting spaces, [18, 183] . 9 .12
Exercises
1. For Theorem 9.4.1, prove the cases, where (2) or (3) holds . 2. Give the proof of Theorem 9.8.2 for i = 0 and 3. 3. Show that if a L[o 1]-fuzzy language ft is fuzzy recognized by a machine in T2 and a L[o 1]-fuzzy language v is fuzzy recognized by a machine in T2, then ft n v is fuzzy recognized by a machine in T2 . 4. If P1, P2, P3 are L-fuzzy relations on a set X, prove that (It, P2)P3 = Itl(1t2ft3) 5. (149 Show that type 2 (context-free B-fuzzy grammars can generate type 1 (context-sensitive) languages although type 2 fuzzy grammars cannot generate type 1 languages [145] . 6. (149 Show that the generative power of type 3 (regular) B-fuzzy grammars is equal to that of the ordinary type 3 grammars.
© 2002 by Chapman & Hall/CRC
Chapter 10
Applications 10 .1
A Formulation of Fuzzy Automata and Its Application as a Model of Learning Systems
In [26], a formulation of a class of stochastic automata on the basis of Mealy's [138] formulation of finite automata has been carried out . In [68], a stochastic automaton as a model of a learning system operating in an unknown environment was employed. The formulation of fuzzy automata is similar to that of the stochastic automata proposed in [26] and the fuzzy class of systems described in [256]. The advantage of using fuzzy set concepts in engineering systems has been discussed in [255, 256] . In [212], a general formulation has been given to cover both fuzzy and stochastic automata. The next five sections are based on [250] and deal with a specific formulation of fuzzy automata and their engineering applications .
10 .2
Formulation of Fuzzy Automata
Definition
10 .2 .1 A (finite) fuzzy automaton is a quintuple (Q, X, Y,
It, w), where (1) Q nonempty finite (2) X nonempty finite (3) Y nonempty finite (4) /t is a fuzzy subset (5) w is a fuzzy subset
set (the set of internal states, set (the set of input states, set (the set of output states, of Q x X x Q, i .e., /t : Q x X x Q of Q x X x Y, i . e., w : Q x X x Y
[0,1], [0,1] .
In Definition 10.2.1, /t is called the fuzzy transition function and w the fuzzy output function . Recall that in Section 8.4, a fuzzy finite automaton was defined as in Definition 10.2.1, but with some added conditions . © 2002 by Chapman & Hall/CRC
463
464
10. Applications
It is at times convenient to use the notation PA for a fuzzy subset of a set S, where A is thought of as a fuzzy set and PA gives the grade membership of elements of S in A. At times, A may be merely a description of a fuzzy subset ft of S. Let Q = {ql, q2, . . . , qn }, X = {x1, x2, - . . , XP}, and Y = 01, Y2, - . . , Y,1Then PA (gj, xj , q,) is the grade of transition (class A) from state qZ to state qn, with input xj or q(k) = qZ to qm or q(k + 1) = qm,
(10.1)
where the input is xj or x(k) = xj and where k denotes the discrete time element . Hence we write PA (g2, xj, qm) = ft {q(k) = qi, x (k) = xj, q (k + 1) = qm} .
In order to decide the existence of the transition, a pair of thresholds
c, d may be introduced, where 0 < d < c < 1 . This leads to a three level
logic such as (1) x E A, or "true" if PA(x) > c, (2) x ~ A, or "false" if PA(x) < d, (3) x has an indeterminate status relative to A, or "undetermined" if d < PA(x) < c,
where A is a fuzzy set defined as the transition between states for a particular input ; x denotes the 3-tuple (qj, xj , q,) as defined in (10 .1), where qi, qm E Q; xj E X, i .e., PA(x) = PA(gl, xj, qm) . The function may be dependent or independent of k, the number of steps . If ft is independent of k, ft is called a stationary fuzzy transition function. As we will see, nonstationary fuzzy transition functions are used to demonstrate learning behavior of a fuzzy automaton . For now, let ft be independent of k with fuzzy transition matrix Txj for all xj E X. The Txj are of the following form: xj
q +1 gi,g2,--q,n_ . q .
PA (gi, xj, qm)
© 2002 by Chapman & Hall/CRC
10.2. Formulation of Fuzzy Automata The entries of Txj are
PA (gj, x j , q, ) .
465
The fuzzy transition table is as follows :
where [A] denotes the fuzzy matrix whose ith row and jth column is PA (gj, a, qj), for all qZ, qj E Q, and [AO] denotes the fuzzy matrix formed similarly by WA(gj, a, yj) for all qj E Q, yj E Y. The input sequence transition matrix for a particular n-input tape sequence is defined by an n-ary fuzzy relation in the product space Tl x T2 x . . . x Tn . The fuzzy transition function is as follows : Let Xj (k) be an in put sequence of length j, i.e., x1(k), x 2 (k + 1), . . . , x j (k + j - 1) . Then PA (gi, X, (k), qs) = PA (gi, xj , X0 . . . . , x t , qs) is the grade of transition (class A) from state qj or q (k) = qj to qs or q(k+p) = qs when the input sequence is x (k) = xj , x (k + 1) = xo , . . . , x (k + p - 1) = x t . For identical inputs x s in a sequence of length j, Xj(k) is denoted by xs(k) . The composition of two fuzzy relations NA and NB on a set S is denoted by PB o NA and is the fuzzy relation in S given by either ( 1 ) PBoA(x, y) = V {PA (X, v) n PB(v, y) I v E S} or ( 2 ) PBoA(x, y) = A{PA(x, v) V PB(v, y) I v E S} .
Based on each definition, we have a particular kind of fuzzy automata. When these two kinds ofautomata operate together, they act as a composite automaton similar to the structure of a zero-sum two-person game. We illustrate this in a later section, where a learning model is proposed . The above concepts have been studied previously. However, we have introduced new notation. Thus we concentrate on developing automata based on both definitions using the new notation . The composition given in (1) is often called the pessimistic case while that of (2) is often called the optimistic case. Now PA (qj, X2 (k), qT) = V{PA(gh xj, q) A PA (q, xo, qT) I q E Q} .
In general, wA(qj, Xj (k), q .)
=
wA(qj, Xj-j(k)xj (k + j -1), qm ) [t * (th, xl(k)x2(k+ 1) . . . xj (k+,l - 1),qm) V{[Wgi,xi,qT l ) n ItA(grl,x2,Yrz) A . . . A NA(grj_1, xj, elm) I q,-i E Q, i = 1, 2, . . . , j -
© 2002 by Chapman & Hall/CRC
1}.
466
10. Applications
Example 10.2 .2
Let
Txl
q(k)
be given by the following table:
I
q(k + ql
1)
q2
q3
q4
U11
u12
u13
u14
q2
u21
u22
u23
u24
q3
u31
u32
u33
u34
u41
u42
u43
u44
ql
q4 Then
PA W31 xlI q2) = u32, fta(g3, X21, q2)
=
A [tA(qj, xl, q2)) I qj E Q, j=1,2,3,4} (u31 A u12) V (u32 A u22) V (u33 A u32) V
VWtA(g3, xl, qj)
_
(u34
fta(g3, X31, q2)
=
n u42),
n U11 n U12), (U31 n u12 n U22), (U31 n u13 n u32), n u14 n U42), (U32 n u21 n U12), (U32 n u22 n u22), n u23 n U32), (U32 n u24 n U42), (U33 n u31 n u12), n u32 n U22), (U33 n u33 n U321, (U33 n u34 n u42), n u41 n U12), (U34 n u42 n U22), (U34 n u43 n u32), n u44 n u42)I-
V~(u31 (u31 (u32 (u33 (u34 (u34
Note, fta(g3' xi, g2)
Vex
{[t* (q3, xi, qj)
j=1,2,3,4}
2 (ltA(g3, X1, qx) 2 (PA(g3, X1, q3)
n
f~A(g~ ~ xl, q2)
n u12) V n u32) V
I
qj
(PA(g3, X21, q2)
(ltA(g3, X21, q4)
E Q,
n u22)V n u42) .
This last relation serves as an iteration scheme for a particular sequence of input tape . Similar results for the min-max relation (2) hold.
10 .3
Special Cases of P .1zzy Automata
We first consider deterministic automata, where the set A is no longer a fuzzy set . A is an ordinary set where /t takes two values, 0 and 1. Hence, the entries for each row of matrices [A], [B], [C], . . . , [Aj], [Bj], . . . will have only one 1 and the rest 0. Thus the skeleton matrix [D] of a deterministic automaton will be [D] = [A] + [B] + [C] + . . . © 2002 by Chapman & Hall/CRC
+ [H],
10.3. Special Cases of Fuzzy Automata
467
which is a reduction similar to that in the stochastic automata formulated in [26]. For a two-step transition chain, pA(gl, xy, qT) is determined by finding the maximum of the minimum of pairs of values of four types (0, 0), (0, 1), (1, 0), (1,1) . The total number of paths of length 2 from state qi to state qT is equal to di, =
X,YEX
For a path of length 3 to exist from dIT
-_
ftA(gi xy, gT) . qi
to
Ex,y,zEX
qT,
ftA(gl ,Xyz,gT)
It consists of terms such as (1,1,1), (1, 0, 1), . . . , (0, 0, 0) ; of course, only (1,1,1) defines the existence of the path. The following definition of a nondeterministic automaton has been used in [76]. A nondeterministic automaton is a quintuple A = (Q, X, S, So, F), where Q is a nonempty finite set of objects (internal states), X is a nonempty finite set of objects (input states), S is a function from Q x X into P(Q), and So, F are subsets of Q and So is nonempty. To fit this model to the fuzzy automata formulation, the set A is no longer a fuzzy set . It is an ordinary set, where /t takes only two values, 0 and 1 . The entries for each row of the matrices [A], [B], [C] . . . . are either 1 or 0. There is no restriction on the number of 1's in each row of the matrices. If all the entries of a particular row are zero, then the transition is from the state to the empty set 0. If a particular row has more than one 1, then the transition function may map the succeeding state into any one of a number of possible states. For example, if TX1 is given as 1 0
TX1 -
1
1 0
1
0 0
1
then the state transition is determined as follows : q(k) q1 q2 q3
I
x(k) q(k
+ 1)
{qi, q2}
{gi, q2, q3}
It is felt in [250] that the transition function /t is so general that extra constraints may be incorporated . A special restriction is that the row sum of all transition matrices be equal to 1 similar to that of the stochastic automata . That is, [A], [B], [C] . . . . have exactly the same structure as © 2002 by Chapman & Hall/CRC
468
10. Applications
that of stochastic matrices. This type of automata is called normalized fuzzy automata. There are many properties that can be examined for fuzzy automata similar to those for deterministic automata and stochastic automata [249].
10 .4
Fuzzy Automata as Models of Learning Systems
A basic learning system is given in Figure 10.1. Y
Unknown Environment
X
"Student" Decision Maker
Learning Section
Performance Evaluator "Teacher" "Learning System" Figure 10 .1 1 : Basic Learning Model 'Figure 10 . 1 is from [250], reprinted with permission by Copyright
© 2002 by Chapman & Hall/CRC
1969 IEEE .
10.4 . Fuzzy Automata as Models of Learning Systems
469
The proposed model represents a nonsupervised learning system if a proper performance evaluator can be selected [161, 162] . The learning section primarily consists of a composite fuzzy automaton . The performance evaluator serves as an unreliable "teacher" who tries to teach the "student" (the learning section and the decision maker) to make correct decisions . The decision executed by the decision maker is deterministic . Since online operations are required, the decision will be based on the maximum grade of membership . That is, for S2 = {w2 I i = 1, 2, . . . , r}, the set of all pattern classes, it is decided that x is from h2, or x - w 2 if
ft, (x) = V{ft, (x) I wj E Q, .i = 1, . . . , r}, where w2 E S2, i = 1, 2, . . . , r. If the decision maker is allowed to stay undecided and defer its decision, especially at the beginning of the first few learning steps, then it will be decided that x - w2 if
ft, (x) = V {ft, (x) I wj E Q, .i = 1, . . . , r} > c and be undecided if
It, (x) = V{ft, (x) I wj E Q, .l = 1, . . . , r} < c, for some predetermined c, 0 < c <_ 1 . Under this condition, the decision maker is allowed to use a pure random strategy for making decisions until it can make a decision with a certain degree of confidence . For an n-state fuzzy automaton, let ~i (k) be the grade of membership for the automaton to be at state qi in step k. The entries of the fuzzy transition matrix are denoted by
ft'i (k) = ft{q(k) = qZ, x(k) = xi, q(k + 1) = qi}. Then for input x(k) = xl, we have by Definition 10 .2 .1 that for j =
1,2, . . . ,n,
w i (k + 1)
=
V{(w .(k) A ftmi (k)) I m =1, 2, . . . , n ; m z,4 j}
Using a similar approach as given in [68], the learning behavior is reflected by having nonstationary fuzzy transition matrices with a convergent property. In order to simplify the problem, let
It'i (k) It~i (k)
_ -
for all m ~ j ft~i (k - 1), Ci Itji (k - 1) + ( 1 - ci)di,
where 0 < ci < 1, 0 < di < 1, j = 1, 2, . . . , n . The structure of the learning
© 2002 by Chapman & Hall/CRC
470
10. Applications
section is illustrated in Figure 10.2.
n (k)
(k+1)=Vmn [AR . (k)
I
(k)
h
N~i (k)
i,j = 1,2, . . .,n
I
g i (k+1)= ANIIw m (k),
N m ;(k )I
-------------------------------------------------
Composite Fuzzy Automaton
2
Figure 10.2 : Learning Section The composite automaton switched by p = z constitutes the major part of the learning section . That is, with p = z, the composite fuzzy automaton operates between (1) w,(k+1)=V{(w.(k)Awm;(k)) I m=1,2, . . .n} and w, (k + 1) = n{(wm(k)V ft' (k)) I m= 1,2 . . . . n} . (2) The fuzzy automaton starts with no a priori _ information P_, (0) = 0 or 1 for all _ j, or with a priori information (0) = Aj (0) for some Aj and for all ~, j ; 0 <_ Aj (0) <_ 1. The convergence of the above algorithm can be shown as follows : Aj (k) ----> Aj as k ----> oo for some Aj .
Hence lttj (k) ----> Aj as k ----> oo. The algorithm is said to converge if ~j (k) Aj as k ----> oo . Thus as k ----> oo, we must show that V{(k) n Aj) I rn = 1, 2, . . . , n} n{(k) V ~j) I rn = 1, 2, . . . , n}
(10.2)
so that we have the same output Pj (k + 1) . It follows that n{wm(k) I m =1, 2, . . . , n} < a ;
< v{wm(k)
I m =1, 2, . . . , n}
(10.3)
must hold in order for (10 .2) to hold. However, ~j (k) ~ ~j as k ~ oo . Therefore, (10.3) holds as k ~ oo . Now Pj (k) ~ Aj can be shown in the following manner . There exists at least one k such that
2
w,(k+1)=V{(wm(k)A~j) I rn=1,2, . . .,nf Figure 10 .2 is from [250], reprinted with permission by Copyright 1969 IEEE .
© 2002 by Chapman & Hall/CRC
10.5. Applications and Simulation Results
471
and ~j (k + 2) = A{(P .(k + 1) V ~j) I m = 1, 2, . . . , n},
for large k.
Suppose that ~j > V {fin, (k) I m = 1, 2, . . . , n} . For other values of _Aj, we have Pj (k + 1) = ~j . Then ~j(k + 1) = V{~m(k) I m = 1, 2, . . . , n} .
a;
However, ~,(k + 2) = n{(w1(k + 1) V a;), . . . , (V{wm(k) V (~n(k + 1) V ~j )} . Thus ~j (k + 2) = ~j . Hence
1,2 . . . . , n}), . . . ,
m =
Pj (k) ~ Aj as k 10 .5
Applications and Simulation Results
The learning model proposed above has been applied to engineering problems . We consider its applications to pattern classification and control systems . Let Z(k) be the instantaneous performance evaluation at the kth step of learning [162]. The performance evaluator M(Z, k) must be such that it is bounded above, i.e., 3 a real number T such that 0<M(Z,k)
k=1,2, . . .
and it must converge, i.e., 3 a real number M such that lim M(Z, k) = M > 0.
k~oo
The goal of the system is to maximize or minimize M(Z, k) . Hence M(Z, k) is an estimator of Z(k) at the kth step of learning . For example, let M(Z, k) = ;_7- ) 'Z (i).
Then M(Z, k)
k- , k [kll Ek1 Z(2)] + Zk k k 1 M(Z,k-1)+ , Z
k
k=1,2, . . . .
In this example, M(Z, k) is a sample average of Z(k) estimated recursively at each step of learning . We now give an application to pattern classification. © 2002 by Chapman & Hall/CRC
472
10. Applications
A pattern recognition system with nonsupervised learning is given in Figure 10.3. X'
"Student" 'X
Feature Extractor or Receptor
X
"Learning System"
Learning Pattern Classifier Figure 10 .3 3 : Learning Pattern Classifier
The role of the input and output is explained in what follows . The pattern classifier receives a new sample from the unknown environment during each time interval. After the new sample is processed through the receptor, 3 Figure
10 .3 is from [250], reprinted with permission by Copyright 1969 IEEE .
© 2002 by Chapman & Hall/CRC
10.5. Applications and Simulation Results
473
the output is fed to both the decision maker for classification and the performance evaluator for performance evaluation . The performance criterion of the system has to be selected so that its maximization or minimization reflects the clustering properties of the pattern classes, i.e., the unknown environment . Because of the natural distribution of the samples, the performance criterion can be incorporated into the system to serve as a teacher of the learning pattern recognizer. Concerning the problem of pattern classification, the nonsupervised learning model is formulated as follows . It is assumed that the classifier (the decision maker has available sets of discriminant functions character ized by sets of parameters. The system adapts itself to the best solution with a proper specification of the performance evaluation and without any external supervision . The best solution denotes the set of discriminant functions that gives the minimum misrecognition among the sets of discriminant functions for the given set of training samples . The criterion used in this particular case is based upon the sample averages and the average deviations from the sample averages of the training patterns generated by each set of discriminant functions . The best set of discriminant functions must give the maximum total distance between its sample averages and the minimum total sample deviation (average of the squared deviation from the sample averages . Let S2 = {Wi I i = 1, 2, . . . , r} be the set of pattern classes. Let X1, X2 . . . . be the sequence of incoming samples from the unknown environment in Rd . Suppose n sets of discriminant functions are given a priori . The decision maker may assume the structure as shown in Figure 10.4.
Figure 10.4 4 : Multiclass Pattern Classifier Then Kkl 4 Figure
I W1[Ei-1 SkiI
-W2[Ei>jl 1=1,2, . . . ,n,
- M%j)111
10 .4 is from [250], reprinted with permission by Copyright 1969 IEEE .
© 2002 by Chapman & Hall/CRC
474
10. Applications
where Kk is the performance evaluation for the lth set of discriminant functions at the kth step of learning, Sk i is the sample deviation for the ith class of the lth set of discriminant functions at the kth step of learning, Mk a is the sample average for the ith class of the lth set of discriminant functions at the kth step of learning, and 0<
wl,w2 <
Let the nk,i denote the number of samples belonging to wi up to the kth step of learning. The values of the K%, Ski , and Mk i are estimated recursively as follows . For the lth set of discriminant functions, if i=1,2, . . . ,r,
Xk+1 - Wi,
then =
Mk+l,i
Sk+l i
=
nk,i nk,i
1 nk,i
+1
Mk,i
(Xi -
+1
+
Xk+1 nk,i
,
+ 1
Mk+l,i)/(X7
- Mk+l,i) .
From the above two equations, we obtain Sk+l,i
=
n k,i Mk,i
Ski +1
+
n k,i (nk,i
+ 1)
2
(Xk+1 - Mki)~(Xk+1 - Mki)
Also, Mk +l,j Sk+1,S
= =
Mki Ski
for j :?~ i for j zA i.
The minimum Kk, l = 1, 2. . . . , n, serves to indicate the best solution among the n sets of discriminant functions . The patterns used in the computer simulations are the characters A, B, and C. The four features xl, x2, x3, and x4 are extracted from each character . The extracted features correspond to the number of distinct intersections of the sample character with lines al , a2 , a3, and a4 as shown in © 2002 by Chapman & Hall/CRC
10.5 . Applications and Simulation Results
475
Figure 10 .5 .
Sample Feature : [x 1 , x2 , x 3 , x 4 ] = [32321 Figure 10.5 5 : Description of Feature Extraction
Specific computer simulations are conducted for (1) two equal numbers of training characters from A and B using one hyperplane and (2) three equal numbers of training characters from A, B, and C using three hyperplanes . The estimation of the n membership functions ~j(k) at the kth step of learning is as follows :
_
3
Aj(k)=1-Kk
c>V{Kk
.j=1,2, . . ., n ; k=1,2, . . . ;
I j=1,2, . . . ,n; k=1,2, . . .}
with
lim Aj (k) = Aj ,
k~oo
0 <_ Aj < 1 .
5 Figure 10 .5 is from [250], reprinted with permission by Copyright 1969 IEEE .
© 2002 by Chapman & Hall/CRC
476
10. Applications
The details of the computer flow diagram are shown in Figure 10.6.
Selector
Performance Evaluation K
mation of
Feature Extracto or Rece to
Decisi n Maxim m
XE 0) .
Learning Algorithm Figure 10.6 6 : Computer Flow Diagram for Character Learning
Ten sets of predetermined hyperplanes are used in both examples with 60 samples from each class . The incoming samples are introduced to the system in a random fashion. The results of the learning curves, /t j (lc) versus lc for each example, are given in [250, Figures 7 and 8, p. 220] . 6 Figure
10 .6 is from [250], reprinted with permission by Copyright 1969 IEEE .
© 2002 by Chapman & Hall/CRC
10.5. Applications and Simulation Results
477
We now give an application to control systems . The learning controller presented here is similar to that presented in [161] . We give a brief explanation of it. A time-discrete plant may be described as x(k + 1) = Ok+1 [x(k), u(k + 1)],
where x(k), x(k + 1) E Qx = {xi I i = 1, 2, . . . p; p <
and u(k) E SZ = {ui I i = 1, 2, . . . 'P; p < oo}.
Here x(k) is the observed response of the plant at the (k+1)th instant when the control action u(k+ 1) is applied . It is assumed that Ok is unknown for k = 1, 2, . . . . The instantaneous performance evaluation of a control action u(k) is given by Z(k + 1) = w(x(k), u(k + 1), x(k + 1)) with the set {Z(k) I k = 1, 2. . . . } bounded above, say 0
The goal of the control is to minimize Mk + 1(ZIu(k),x(k),u(k + 1)) and the sample average of Z. The sample average for each control policy is estimated as follows . Let u(k+1) = ul be applied after observing u(k) = uj and x(k) = xi . Then Mk+1[ZIuj'xZ'ui]
n 1 n+1Mk[Zluj,xi,ul]+ n 1 Z(k+1)
Mk+1 [Zluj , xi, Uh] = Mk [Zl uj , xi, Uhl, h = 1,2, . . . gy p, h :?~ l,
where n = n(j, i, l) denotes the number of occurrences of u(k) = uj, x(k) = xi, and u(k + 1) = ui . [ZITj , xi, ui] . lak+i [ui uj, xi] = 1 - Mk+i
(10.4)
By equation (10.4), the system is able to associate the control action with the maximum grade membership with the minimum sample average of Z. © 2002 by Chapman & Hall/CRC
478
10. Applications
Figure 10.7 illustrates the learning controller.
"Student"
~
(Decision Maker) Max
i j (k+l )
j=1,2, . . .,n
(Learning Section)
i
(k+l)= [u [u /u(k),x(k) ] ~j j=1,2, . . .,n ...... ...... . ....... ..L... ...... . . .... . . ...... .
"Teacher"
Sample Average Evaluator
M+1 (Z/u(k),x(k) ,u(k+1) )
g
"Learning Controller" Figure 10.7 7: Proposed Learning Controller
An application of a class of fuzzy automata as a model of learning systems was proposed above. A nonsupervised learning algorithm for a fuzzy automaton was presented, together with its application to pattern recognition and automatic control problems . Computer simulations of character recognition by the authors of [250] showed satisfactory results. The following is a pertinent result. 7 Figure
10 .7 is from [250], reprinted with permission by Copyright 1969 IEEE .
© 2002 by Chapman & Hall/CRC
10.6. Properties of Fuzzy Automata
479
Theorem 10.5.1 A necessary and sufficient condition for A{{uj2 V uk
i = 1, 2, . . . , n} I j = 1,2. . . . , s}
= =
V{{uj2 A uk i=1,2, . . . ,n} j =1,2, . . .,s} uk
is that A{V{uj2
n} I
s}
< <
uk V{A{uj2
n} I j = 1, 2, . . . , s} .
Proof. We first prove the necessity. We may assume without loss of generality that (1) ujl = VZ{ujzj > ujn = AZ{uj2}, (2) UP I = Vj{Jajl} >- aqn = njf{ujn}, (3) umn = Vj L ujn} , all = nj L ujl} .
Then
Fl F2
= =
= =
n{{ujj V uk I (UII V uk) A . V{{uj2 A uk I (uln A ak) V .
i = 1, 2, . . . , n} I j = 1, 2, . . . A upi A . . . A (us l V uk) i = 1, 2, . . . , n} I j = 1, 2, . . . V aqn V . . . V (u sn A uk) .
Assuming the value of uk at different regions, one can show that if Fl F2 = uk, then all < uk < It mnThe sufficiency is immediate.
10 .6
Properties of Fuzzy Automata
We explore some properties similar to those of deterministic automata and probabilistic automata. We consider only ergodic, stationary, periodic, and aperiodic fuzzy transition matrices. The numerical illustrations are given to illustrate a specific property of fuzzy automata and also to furnish computational examples of the concepts discussed above. The computational procedure of Section 10.2 is followed . After a certain number of iterations of identical inputs, it is possible for the overall fuzzy transition matrix to remain the same. For example, let [Ti,]~l> =
0.9 0.2 0.8
0.5 0.4 0.1
0.3
0.95 0.25
Then 2 [TZl ]( ) =
© 2002 by Chapman & Hall/CRC
0.9 0.8 0.8
0.5 0.4 0.5
0.5 0.4 0.3
480
10. Applications [TZ 1 ]( 3 > =
[TZ 1 ](4) _
0 .9 0 .8 0 .8
0 .5 0 .5 0 .5
0 .5 0 .5 0 .5
0 .9 0 .8 0 .8
0 .5 0 .5 0 .5
0 .5
0.4 0 .5
= [TZ1](5)
[TZ 1 ](n)
A stationary fuzzy transition matrix with the property [Ti,](') ----> T as called an ergodic fuzzy transition matrix . Certain stationary fuzzy transition matrices have no ergodic property, but have a periodic property. As an illustration, consider the following examples . n ~ oo is
Example 10.6 .1 [TZ](1) -
0 .3 0 .8
1 .0 0 .1
[T (2) -
0 .8 0 .3
0 .3 0 .8
[T (3) _
0 .3 0 .8
0 .8 0 .3
[TZ] (4) _
[ 0 .8 0 .3
0 .3 0 .8 0'3 0 .8
0 .8 ] 0 .3
0 .3 0 .9 0 .5
0.4
0.7
0 .5 0 .5 0 .8
0.7
0.4 0.7
0.7
0.4 0.7
The matrix keeps oscillating between period of oscillation is 2 .
Example 10.6 .2 [TZ]~ 1 > =
[T]
(2)
=
(3) = [T]
© 2002 by Chapman & Hall/CRC
0 .6 0 .5
0 .1 0 .8
0 .6
0.4
0 .6
0 .6 0 .2 1
0 .6
1
0 .6 0 .6
0.7
1
and [ 0'8 0.3
0 .3 0 .8
.
The
10.7. Fractionally Fuzzy Grammars and Pattern Recognition
[T (9)
_
4 [TZ]( > =
0 .5 0 .7 0 .6
0.6 0.6 0.7
0.7 0.6 0.6
[TZ]( s> =
0 .6 0 .6 0 .7
0.7 0.6 0.6
0.6 0.7 0.6
[Ti] (6)
=
0 .7 0 .6 0 .6
0.6 0.7 0.7
0.6 0.6 0.7
[TZ] (7> =
0 .6 0 .7 0 .6
0.7 0.6 0.7
0.7 0.6 0.6
[TZ] (8) =
0 .6 0 .6 0 .7
0.7 0.7 0.6
0.6 0.7 0.6
[T (6) ;
[T,](10)
= [TZ]( 7 ) ; [TZ]
(11)
481
= [TZ](8) ; . . . .
The matrix in Example 10.6.2 has a period equal to 3. From Examples 10.6.1 and 10.6.2, it can be said that ergodicity has a period equal to 1. A fuzzy transition matrix having a period of length 1 is considered as an aperiodic fuzzy transition matrix .
10 .7
Fractionally Fuzzy Grammars and Pattern Recognition
A type of fuzzy grammar, called a fractionally fuzzy grammar, is presented in this and the next section . It was first introduced in [44] . These grammars are especially suitable for pattern recognition because they are powerful and are easily parsed . Formal language theory has been applied to pattern recognition problems in which the patterns contain most of their information in their structure rather than in their numeric values [69, 223, 250, 226, 225]. In order to increase the generative power of grammars and to make grammars more powerful for the purpose that they become more suited to pattern recognition, the concept of a phrase structured grammar can be extended in several ways. One way is to randomize the use of the production rules. This results © 2002 by Chapman & Hall/CRC
482
10. Applications
in stochastic grammars [223, 67, 109] and fuzzy grammars . Languages produced by fuzzy grammars have shown some promise in dealing with pattern recognition problems, where the underlying concept may be probabilistic or fuzzy [250, 226, 225] . A second way of extending the concept of a grammar is to restrict the use of the productions [106, 190, 191] . This results in programmed grammars and controlled grammars . These grammars can generate all recursively enumerable sets with a context-free core grammar . Programmed grammars have the added advantage that they are easily implemented on a computer. Cursive script recognition experiments [54, 52, 53, 139, 124, 213] in the 1960's and 70's had the major emphasis on recognizing whole words. None used a syntactic approach . A typical method presented in [53] decomposed the words to be recognized in to sequences of strokes that were then combined into letters and into words. In [139], an attempt was made to distinguish words that are similar in appearance such as fell, feel, foul, etc . All of these experiments except the ones in [213] input their data on a graphics device and kept the sequence of the points as a part of the data . In [213], pictures of writing were inputted and hence the sequence information was not available . In the following, we show that the languages generated by the class of type i (Chomsky) fractionally fuzzy grammars properly includes the set of languages generated by type i fuzzy grammars . We also show that the set of languages generated by all type 3 (regular) fractionally fuzzy grammars is not a subset of the set of languages generated by all unrestricted (type 0) fuzzy grammars . We show that context-sensitive fractionally fuzzy grammars are recursive and can be parsed by most methods used for ordinary context-free grammars . We describe a pattern recognition experiment that uses fractionally fuzzy grammars to recognize the script letters i, e, t, and l without the help of the dot on the i or the crossing of the t. We discuss the construction of a fractionally fuzzy grammar based on a training set . A fuzzy grammar FG is a six-tuple FG = (T, N, S, P, J, /t), where T, N, S, P are, respectively, the terminal alphabet, the nonterminal alphabet, the starting symbol, and the set of production rules as with an ordinary grammar . J = {r2 I i = 1,2, . . . , n} is a set of distinct labels for the productions in P, and /t is a fuzzy membership function, /t : J ~ [0,1] . Let V = T U N. Suppose that rule r2 is a ~ 3. Then we write the application of r2 as follows : ycti6 M('i) r}' S, where cti, 3, -y, S E V* . If BZ E V*, i = 0, 1, 2. . . . , m, and S = Bo
F (r) _~ r1
© 2002 by Chapman & Hall/CRC
V(r2) V(r3) Bl _~ 02 _~ 03 . . . r2 r3
F(Tn) r'n
Bm
= X
10.7. Fractionally Fuzzy Grammars and Pattern Recognition
483
is a derivation of x in FG, we write S
=
Bo
"(r1T2+
. .T~n)
r1 r2 r3 . . . r-
8772
-
x)
where we write ft(rir2r3 . . . rm ) for ft(ri) A ft(r2) A . . . A ft(r~ ). The grade of membership of x E T* is given by the function ~ : T* --+ [0,1], ~(x) =V{ft(rlr2r3 . . .r,)},
where the supremum is taken over all derivations of x E L(FG), the language generated by FG . It follows that ordinary grammars, i.e., those with ft(ri) = 1 for all r2 E J, are a special case of fuzzy grammars . Fuzzy grammars can be classified according to the form of the production rules. In Chapter 4, it has been shown that for every context-free fuzzy grammar G, there exists two context-free fuzzy grammars G9 and G, such that L(G) = L(G9) = L(Gc.) and Gg is in Greibach normal form and G, is in Chomsky normal form. Example 10.7.1 Consider the fuzzy grammar FG = (T, N, S, P, J, ft), where T = {a, b}, N = {S, A, B, C}, and P, J, and ft are given as follows: rl r2 r3 r4 r5 r6 r7 r8 r9
: : : : : : : : :
S A B A A A C C A
AB a b aAB aB aC a as B
ft(rl) ft(r2) ft (r3) ft (r4) ft(r5) ft (r6) ft(r7) ft (r8) ft(rs)
= = = = = = = = =
1 1 1 0.9 0.5 0.5 0.5 0.2 0.2
The language generated by this fuzzy grammar consists of strings of the form a'b' with n, m > 0 . The membership of these strings is given as follows:
(a'b') _
1 .9 .5 .2 0
if m=n=1 if m=n :?~ 1 if m = n f 1 if m=nf2 otherwise.
Hence it follows that this grammar generates strings of the form a'b', where In-ml < 2.
As we have previously seen, a fuzzy grammar can be used to generate ordinary languages by the use of thresholds . One such language with threshold c is the set of strings L(FG, c) = {x E L(FG) l ~(x) > c} . © 2002 by Chapman & Hall/CRC
484
10. Applications
There are two other threshold languages defined in [147], namely, the twothreshold language and the equal-threshold language. They are defined as follows : L(FG, cl, c2) = {x E L(FG) I cl < ~(x) < c21
and L(FG, =, c) = {x E L(FG) I ~~(x) = c} .
The language L(FG, c) is most often used to compare the generating power of a fuzzy grammar to that of an ordinary grammar . However, L(FG, c) = L(G), where G is the grammar obtained from the FG by removing all productions whose fuzzy membership is less than or equal to c and then removing the fuzziness from the remaining rules. Hence it is stated in [44] that the use of threshold language seems limited . 10 .8
Fractionally Fuzzy Grammars
The patterns in syntactic pattern recognition are strings over the terminal alphabet . These strings must be parsed in order to find the pattern classes to which they most likely belong . Back tracking is required by many parsing algorithms [3] . That is, after applying some rules, it is discovered that the input string cannot be parsed successfully by this sequence of rules. Rather than starting all over again, it is desirable to reverse the action of one or more of the most recently applied rules in order to try another sequence of productions . It is sufficient with ordinary grammars to keep track of the derivation tree as it is generated with each node being labeled with a symbol from T U N, where T is the set of terminal symbols and N is the set of nonterminal symbols. However, this tree is not sufficient for fuzzy grammars since the fuzzy value at the ith step is the minimum of the value at (i -1)th step and the fuzzy membership of the ith rule. If this minimum was the ith rule's membership, there is no way of knowing the fuzzy value at the (i - 1)th step . Hence the fuzzy value at each step must also be remembered at each node. Consequently, the memory requirements are greatly increased for many practical problems . Another drawback of fuzzy grammars in pattern recognition is that all strings in L(FG) can be classified into a finite number of subsets by their membership in the language. The number of such subsets is limited by the number of productions in the grammar . This is due to the fact that if x E L(FG) with a membership ~(x), then there must be a rule in FG with the membership P(x) since P(x) = A{ft(rjj) I i = 1, 2, . . . , m} for some sequence of rules r21 rig . . . ri,n in P. Thus L(FG, c) for some threshold c is always a language generated by those rules in the grammar with a membership greater than c. © 2002 by Chapman & Hall/CRC
10.8 . Fractionally Fuzzy Grammars
48 5
To overcome these drawbacks, we present a method introduced in [44] of computing the membership of a string x that can be derived by the m sequence production rules, rl r2 . . . r k , of lengths lk, where k = 1, 2, . . . , m. This brings us to the next definition. Definition 10.8.1 A fractionally fuzzy grammar is a 7-tuple FFG =
(N, T, S, P, J, g, h), where N, T, S, P, and J are the nonterminal alphabet, the terminal alphabet, the starting symbol, the set of productions, and a distinct set of labels on the productions as a fuzzy grammar, respectively. The functions g and h map J into hY U {0} such that g(rk) < h(r2) b'r2 E J. A string is generated in the same manner as that by a fuzzy grammar. The membership of the derived string is given by V'x E T*, ~~b 1g(r~)
(x) = V{ E i
~= i h(r~ )
I k=1 2, . . . ,m},
where 0/0 is defined as 0.
Since 0/0 is defined to be 0, it follows that 0 <_ y(x) <_ 1 V'x E T* . Clearly, backtracking over a rule r can now be accomplished by simply subtracting g(r) and h(r) from the respective running totals. We now give an interpretation of Definition 10.8 .1 in a heuristic sense . As each rule r is applied, g(r) and h(r) are added to the respective running totals for the numerator and denominator of the fuzzy membership . Clearly, the fuzzy membership of a string could be any rational number in [0,1]. Moreover the number of fuzzy membership levels is not limited by the number of productions . With a view to pattern recognition, it follows that the amount of impact a rule has on the final membership level is proportional to the value of h(r) . The membership of the string tends to increase if g(r) is approximately equal to h(r). It tends to decrease if g(r) is much less than h(r) or if g(r) is close to 0. Rules for which g(r) and h(r) are both 0 have no effect on the membership . Hence it is possible to divide the rules into three classes. Those that strongly indicate membership in the class, those that strongly indicate membership in another class, and those that serve little purpose in separating the classes, but that are traits between different classes . Example 10.8.2 Consider the fractionally fuzzy grammar that has T = {a, b}, N = {S}, and P, J, g, and h given as follows: rl r2 r3 r4
: : : :
S S S S
ab aSb aS Sb
g(ri) g(r2) g(r3) g(r4)
=1 =1 =0 =0
h(rl) h(r2) h(r3) h(r4)
= = = =
1 1 1 1.
Consider the string a3b5 . The following sequences of labels yield three of the ways the string a3b5 can be derived: r2 , r2, r4 , r4 , rl and r2, r3 , r4 , r4, r4,
© 2002 by Chapman & Hall/CRC
48 6
10 . Applications
rl and r3, r3, r 4 , r4 , r 4 , r 4 , rl yield the string a3b5 with associated values 3 , 2, and 3 V 5 V 5 = 3. 5, 5 5 5 respectively. It follows that ft(a3b5) = 5 5 5 5 Wbm This grammar generates the fuzzy language I n, m E NJ . The membership of the string anbm is given by (anbm)
_ nlxm nV m
This set of strings is the fuzzy set of strings that are "almost" anbn . That is, the first pair of rules generates the set of strings anbn for n > 0, and the second pair of rules allows for variations in the number of a's and the number of Vs. The closer n and m are, the greater the membership of the string. This follows since g(r) = h(r) for the first pair of rules and g(r) < h(r) for the second pair. While the grammar shown in Example 10 .7 .1 could only measure finite differences between m and n, the grammar here measures membership on percentage difference between m and n. This is similar to the way one would judge whether or not the lengths of two lines were the same .
We now compare the relative generative power of fractionally fuzzy grammars to that of fuzzy grammars . Theorem 10.8.3 The set of all languages generated by type i fractionally fuzzy grammars properly contains the set of all languages generated by type i fuzzy grammars, where i = 0, 1, 2, and 3. Proof. From the preceding remarks, it follows that the number of distinct levels of membership in a language generated by a fuzzy grammar is limited by the number of production rules in the fuzzy grammar and this number is finite. Hence it suffices to show that for every fuzzy grammar of type i, there is a fractionally fuzzy grammar of type i which generates the same language, and that there exists a fractionally fuzzy grammar of type i which generates a language with an infinite number of distinct membership levels . Let FG = (N, T, S, P, J, /t) be a fuzzy grammar of type i. We can construct a fractionally fuzzy grammar FFG = (N', T', S', P', J', g, h) as follows: Let c2 be the distinct values of ft(rz) for i = 1, 2, . . . , m . There is no loss in generality in assuming that cl > c2 > . . . > c . . Let gZ and h2 be integers such that c2 = ~, i = 1, 2. . . . , m. For all A E N, define m distinct symbols AZ , i = 1, 2, . . . , m. These symbols together with the new starting symbol S' make up the set of nonterminals N' for the fractionally fuzzy grammar . Let P' initially be the set of rules ro :
S' ----> Si
g(ro) = gz
h(ro) = hi,
i = 1, 2, . . . , m. For each rule rj : cti ~ 3 in P and each c 2 , i = 1, 2, . . . , m, if ft(rj) > c2 , add to these rules the rule r~ : cti2 X3 2 g(r~) = gZ
© 2002 by Chapman & Hall/CRC
h(r~) = hi,
10.8 . Fractionally Fuzzy Grammars
48 7
where a2 and ,3 2 are the strings a and, 3 with each nonterminal A replaced with the associated new nonterminal symbol AZ . The FFG has, in effect, m subgrammars reachable by the ro rules. The ith subgrammar produces only those strings that would have been generated with a membership of at least c2 in L(FG) . In the ith subgrammar, these strings have membership = c 2 . Since their membership in L(FFG) is defined as the supremum of all derivations, it follows that each string has equal membership in both languages . That is, L(FFG) D L(FG) . To show the proper inclusion, consider the following fractionally fuzzy grammar : rl : r2 :
S S
a aS
g(rl) = 1 g(r2) = 0
h(rl) = 1 h(r2) = 1.
This fuzzy grammar generates strings of the form an for n E N. Since the fuzzy membership of the string an is n , the language clearly has an infinite number of distinct membership levels . Since the grammar is regular, it is also context-free, context-sensitive, and a member of the class of type-0 grammars. In order for fractionally fuzzy grammars to be of use in pattern recognition, it must be possible to determine whether a given string is a member of the language. That is, in order to apply fractionally fuzzy grammars to pattern recognition, an algorithm is needed that can compute in bounded time the membership of a string in L(FFG) . The following lemma leads to Theorem 10 .8 .7, which proves that context-sensitive fractionally fuzzy grammars are recursive and such an algorithm exists . Lemma 10.8.4 Consider a context-sensitive fractionally Suppose a derivation contains the sequence . . .---->
O Z ----> OZ+1 ----> . . .---->
fuzzy
grammar.
OZ+k ----> . . .,
where OZ = OZ +k. Then either k <_ nP, where n = ~ V1 and p = length of the string OZ , or OZ +j = OZ+ , for 0 < j < m < nP .
101
is the
Proof. The result clearly follows because of the noncontracting nature of context-sensitive grammars (i.e., O.,,j <_ 10,1 for u <_ v) and since there are exactly nP distinct strings over V of length p. Lemma 10.8.5 Let FFG be a fractionally fuzzy grammar. Suppose that x E L(FFG) is derivable by the sequence
S=0o ----> 01 ----> 02 ----> . . .----> On =x . If 03 = Ok for j < k and 0 <_ j < n, then the membership of x in FFG is at least EM-1 g(rZj
+
Em-k+1 g(ri,n)
E M-1 h(rZj + Em-k+1 h(rjj © 2002 by Chapman & Hall/CRC
V
Em-j g(ri'n) Em=j h(rij
488
10. Applications
Proof. The loop in the derivation sequence from O j to O k can be removed. The first argument of the maximum represents the membership given to x by this shortened derivation. The loop can also be repeated as many times as desired . As the number of times the loop is repeated is increased, the membership of x approaches the second argument . Since there may be other derivations of x, the membership of x in L(FFG) is at least the maximum of these two terms. Lemma 10.8 .5 may be applied repeatedly in a derivation. Hence if a derivation contains a loop nested within a loop, the loops can be considered separately and the membership of the string is the maximum given by the loop-free derivation, the inner loop, and the outer loop. Lemma 10.8.6 Let FFG be a context-sensitive fractionally fuzzy grammar
with IV I = n. Let Ro = {S}. Let Rk be the set of all strings over V of length k that can be directly generated from a string of length less than k. Let R~ be the set of all strings of length k that can be directly generated from a string in R.~_ 1 , j = 1, 2, . . . . Then the set Rk = RkRk . . . Rk contains all strings over V of length k that can be generated by the FFG . Moreover, the derivation needed to generate Rk contains all the simple derivation loops on strings of length k in L(FFG) .
Proof. Suppose that there exists a 0. such that O m ~ Rk, 10 m l = k, and Br is derivable from 02 E Ro . Let 02 02+1 . . . OZ+j = Om be the shortest sequence from 02 to Br for FFG. Since j > n by assumption, it follows by Lemma 10.8 .4 that this sequence must contain a loop and is thus not the shortest sequence. Hence no such Br exists. Suppose that Oj ~ Oj+1 . . . ~ Oj+s = Oj is a simple loop in FFG, where I O j = k. Suppose this loop was not detected by the derivations that generate Rk and that this loop can be detected from 02 E R.0 by the shortest sequence OZ ----> OZ+1 . . . ----> OZ+T =
0j .
By assumption, r + s > n since the loop was not detected by generating Rk . However, the r + s strings 02, O2+,, . , Oj+s_i cannot all be distinct. Since 02, 0 2+1, . . . , OZ+T are distinct by assumption and O j , . . . , Oj+s_i are also distinct by assumption, we have that 02 + = Oj+, for some 0 <_ u < r and 0 < v < s. Thus the derivation sequence Oi ----> Oi+1 . . .---->
Oi+., = Oj+v ----> Oj+v+1 . . .-~ Oj+s = Oj ----> . . .----> Oj+v
also detects the simple loop and is shorter than the original sequence. This contradicts the original assumption. Consequently, no such loop can appear in a derivation. Theorem 10.8.7 If a fractionally fuzzy grammar FFG is a context-sensitive fractionally fuzzy grammar, then it is recursive.
© 2002 by Chapman & Hall/CRC
10.8 . Fractionally Fuzzy Grammars
48 9
Proof. Let IV I = n. For any string x, we need only generate R1, R2 . . . . , Rk , where k = Ix I . Let RZ be the set ofall strings derivable from the starting symbol in i steps . Since i is finite, RZ can be determined . Since it takes nj steps to generate Ri from Ro, Rr contains Ri if m >_ 1 + n + n2 + . . . + ni . Thus in a finite number of steps, all strings of length k can be found and all loops in these derivations can be detected. Hence it can be determined whether or not x E L(FFG) and its membership if it is . The following example provides an interesting property of c-fractionally fuzzy grammars. Example 10.8.8 For a regular fractionally fuzzy grammar FFG, the lan-
guage L(FFG, c) is not necessarily a regular language : Consider the two fractionally fuzzy grammars FFG1 = (T, N, X, P, J, g1, hl) and FFG2 = (T, N, S, P, J, 92, h2), where T = f0,1}, N = f S, Af, and P is given as follows: r1 r2 r3 r4 r5
: : : : :
SOS S~0 S~A A 1A A 1.
Let hl(r2) = h2 (r 2) = 1 for i = 1, 2, 3, 4, 5 and let gl(ri) = 1 for i = 1, 2, 3, 91(ri) = 0 for i = 4, 5. Let 92(ri) = 0 for i = 1, 2, and let 92(ri) = 1 for i = 3, 4, 5. Clearly, both the grammars produce strings of the form Onl ,, where m, n > 0 and m + n > 0. Consider the string 02 13. Now S~OS~OOS~OOA~001A~0011A_""~ 00111 .
2+1 and 3+1 Hence ft, (o213) = 36 = 3+2+1 N2 (0 2 13) = 46 = 3+2+1 . It follows that On1,n the fuzzy membership of is given by the following two equations: n+1 m+n+1
Itl(On1m)=
and
m+l m+n+l
0
ifm>0 of m=0.
Assume that the set L(FFG1, 0.5) =
{OnjmI
n > mf
and the set L(FFG2, 0.5) =
fOnlm
I n < mf
are regular. Since regular sets are closed under intersection, the set L(FFG1, 0.5)
n
L(FFG2, 0.5) = fOnln I n > Of
must be regular. However, it is known that fOnln I n > Of is context-free and not regular. Thus the assumption is false and the desired result holds.
© 2002 by Chapman & Hall/CRC
490
10 .9
10. Applications
A Pattern Recognition Experiment
In [44], an experiment was developed to test the usefulness of fractionally fuzzy grammars in pattern recognition. A pattern space consisting of a set of strings was chosen in order to use script writing . The data were input to a computer on a graphics tablet . This data consisted of strings of points in a 2-dimensional space of the tablet . The data were a sample of seven persons' handwritings . Each person was given a list of 400 seven-letter words and was told approximately how large the person should write . The first three persons wrote all 400 words while the last four wrote the first 100 words . The data was digitized in a continuous mode by the computer whenever the pen was down. Each point collected in this manner was compared to the previously stored point to determine if the distance between them was greater than a given threshold. The threshold was chosen to be about 0 .04 inch. If the distance was not greater than the threshold, the new point was discarded and a new position of the pen was read. If the threshold was exceeded, this point was added to the data and the process was repeated . This procedure resulted in a record of 250 points in the X - Y plane (with zero fill-in for each seven-letter word written. Some examples of words input to the computer are shown in Figure 1 of [44, p. 344] . These points were converted into a string of symbols that would comprise the terminal alphabet . This was accomplished by comparing each adjacent pair of points to see the relative direction traveled by the pen at that point. The directions were then classified into one of eight directions . Each direction was separated by 45 degrees with class 0 centered at 0 degrees (the positive X-direction and the remaining classes being numbered 1 through 7 in a counterclockwise direction . Hence the terminal alphabet consisted of eight octal digits, i.e., T = {0,1, 2, . . . , 7}. Figure 2 of [44, p. 345] shows that quantization of directions introduced some distortion into the data. The individual letters were separated by an operator using an interactive graphics program . These letters then consisted of strings of octal digits whose lengths varied from 10 to about 70 characters in length . The crossing of and the dotting of the were deleted since they did not necessarily follow the basic letter without other letters intervening . Hence in order to keep the computer time down, only four letters were used in the test . The machine was asked to separate the i's, e's, Vs, and the l's without the dots on the and the crossings of the Vs. In view of Example 10.8 .8, it was also decided to use only regular fractionally fuzzy grammars . The grammars listed in Figure 10.8 were generated by cut and try methods
is
is
is
© 2002 by Chapman & Hall/CRC
10.9. A Pattern Recognition Experiment
491
based on the following ideas.
Production Rule S OS
h, 0/0
h.;, 0/0
h, 0/0
h, 0/0
S
1A
14/14
10/14
0/18
0/18
S A
2B OA
12/12 0/1
8/14 0/1
0/18 0/1
0/18 0/1
A
1A
0/0
0/0
0/0
0/0
A A A A A A B B B
2B 2B 3C 4D 5E 6F OB 1B 2B
0/0 0/0 1/1 0/1 0/16 0/16 0/2 0/1 0/0
0/0 0/0 0/3 0/1 8/8 8/8 0/2 0/1 0/0
0/0 0/0 4/4 4/4 0/4 0/4 0/2 0/1 0/0
0/0 0/0 0/3 0/1 4/4 4/4 0/2 0/1 0/0
B B B B B C C C C C D D
3C 3J 4D 5E 6F 3C 4D 5E 6F 7G 4D 5E
1/1 0/2 0/0 0/5 0/16 2/2 5/5 1/1 0/3 0/7 2/2 1/1
0/3 0/2 0/0 5/5 8/8 0/7 0/5 0/3 3/3 6/6 0/7 0/3
4/4 0/2 4/4 3/3 0/4 4/4 4/4 2/2 1/1 0/3 5/5 2/2
0/3 0/2 0/0 5/5 4/4 0/7 0/5 0/3 3/3 6/6 0/7 0/3
D
6F
0/0
0/0
0/0
0/0
© 2002 by Chapman & Hall/CRC
Comments Allows horizontal initial stroke Begining of a letter . Initial membership Ditto Small backtrack in direction (noise) Expected in all up strokes No effect Ditto Ditto Top of a letter not pointed Ditto Top sharply pointed Ditto Noise up on stroke Noise up on stroke Expected on up stroke (no effect Rounded top of a letter Noise sequence started Ditto Neutral top of a letter Pointed top of a letter Rounded top of a letter Ditto Neutral top of a letter Slightly pointed top Pointed top Very open loop of a letter Open loop or a highly slanted letter No effect
492
10. Applications Production Rut e
ge he
9-i h.;,
E 5E 0/1 0/1 E 6F 0/2 0/2 E 7F 0/1 0/1 F OH 0/0 0/0 F 0 0/0 0/0 F 7G 0/2 0/2 F 7 0/2 0/2 F 6F 0/1 0/2 F 6 0/2 0/2 F 5F 0/1 0/1 G OH 0/0 0/0 G 0 0/0 0/0 G 7G 0/2 0/2 G 7 0/2 0/2 G , 6G 0/3 0/3 G 6 0/2 0/2 H OH 0/0 0/0 H 0 0/0 0/0 J 2B 0/0 0/0 Figure 10.88 . The List Fuzzy Grammar for the
Comments 2/2 0/1 Possible loop 2/2 2/2 Expected part of down stroke 0/1 0/1 Noise on down stroke 0/0 0/0 End of a letter (tail) 0/0 0/0 Ditto 2/2 2/2 Down stroke 2/2 2/2 Down stroke . End of a letter 2/2 2/2 Down stroke 2/2 2/2 Down stroke . End of a letter 0/1 0/1 Noise on down stroke 0/0 0/0 No effect (tail) 0/0 0/0 End of a tail 2/2 2/2 Down stroke 2/2 2/2 Ditto 0/3 0/3 Noise 0/2 0/2 Noise or end of a letter 0/0 0/0 Tail of a letter (no effect) 0/0 0/0 Ditto 0/0 0/0 Noise of Production Rules of the Fractionally Experiment. 91 h,
9t h*
Since all the letters under consideration started with a near horizontal, left to right stroke (octal direction 0) and continued in a counterclockwise direction (increasing octal direction) until returning to a near horizontal tail, the same set of production rules was used for all classes. The productions used the nonterminal symbols A, B, . . . , G to represent the highest octal direction so far encountered, A representing 1, B representing 2, and so on. In the ideal case, only higher octal directions and higher nonterminal representations are reachable from any nonterminal symbol . However, to allow for noise in the less curved portions of the letters, the terminal symbol generated was allowed to be one less than the highest so far generated. A change of direction of more than 225 degrees counterclockwise was not allowed since this would never occur in these letters . In order to allow a tail of any length to be affixed to the ideal letter, the nonterminal symbol H was added . The grammar was tested on a training set and was found to accept most of the strings . In order for all strings in the training set to be accepted, minor modifications were made. For example, J was added to the nonterminal alphabet to pick up an unusual noise condition . The fractionally fuzzy membership functions were developed using the following criteria . First, a rule that could not help distinguish one class from another was given the value 0/0 and would then have no effect on the final membership assuming some rule r, for which h(r) :?~ 0, was also applied. 8 Figure
10 .8 is from [44], reprinted with permission from Academic Press .
© 2002 by Chapman & Hall/CRC
10.9. A Pattern Recognition Experiment
493
Second, a rule for which h(r) was small would have little effect on the final membership of any string generated by that rule. Third, any rule for which h(r) was large would have a large effect on the final membership of any string generated by using that rule. Fourth, if rule r was used, the fuzzy membership of the string would be changed in the direction towards the value h(T) by that application of rule r. Hence if h(T) were close to 1, then
the membership of the string would be increased and if h(") were close to 0, the membership of the string would be decreased . Finally, a rule that was used in all strings could be given a membership value that could serve as a starting point from which subtraction could occur by rules with = 0 1(T) and to which addition could occur by rules with = 1. Either the sech(") ond or the third rule in Figure 10.8 must be used in any valid derivation. Some comments are included in Figure 10.8 to give some insight into why the membership functions for that rule were chosen . For example, the rule B ~ 6F is used when a vertical line changes direction abruptly from up to down. This would indicate a sharply pointed crown and the letters i and t are reinforced while e and l are reduced in membership when this rule is used. After adjustment on the training set to allow a threshold of 0.5 or more to indicate "in the class" and less than 0.5 to indicate "not in the class", the grammars were used on a random sampling of 121 letters from the remainder of the patterns . The strings were parsed in a top down (left to right manner by a program written in SNOBOL 4 programming language . The results of this test are summarized in Figure 10.9 . Class E I L T Method 1 : % error 110 16 28 74 Method 2 : % error 10 4 5 27 Figure 10.99 : Results of the Experiment
Two methods of categorizing were tested. The first classified the letter into any class for which the pattern had a fuzzy membership of 0.5 or more. Some letters were not classified while others were classified into more than one class. The method was considered successful if the correct class was included among other classes since a contextual post-processor could be used to find the correct letter . The second method classified the pattern into the class that had the highest fuzzy membership . As expected, the second method had better results, with 90% of the e's, 96% of the i's, 95% of the l's, and 73% of the is correctly classified. The only distinction between a t and an l is the width of the loop. Since many of the is were quite wide, they were incorrectly classified as l's. If the presence of one or more is was detected by the presence of absence of a horizontal line written directly above some portion of the word, most of these incorrect classifications could be corrected by a contextual post-processor such as 9 F' igure
10 .9 is from [44], reprinted with permission from Academic Press .
© 2002 by Chapman & Hall/CRC
494
10. Applications
described in [54] . The distinction between the e's and l's could have been improved if the data were prescaled to eliminate differences in the average height of the letters generated by the different subjects . Considering the similarities in the four letters tested, the results were considered in [44] to be quite good. 10 .10
General fizzy Acceptors for Syntactic Pattern Recognition
In [62, 63], the syntactic approach to pattern recognition was examined by using formal deterministic and stochastic languages . In [175], fuzzy regular languages for pattern description in relationship with finite fuzzy acceptors were considered, where max-min was used as the composition of L-fuzzy relations. In [98], general fuzzy acceptors were considered using sup-*-composition for binary operations * preserving the properties concerning E-equivalence and which has min as the greatest lower bound . We consider [98] in the next two sections . Let (L, V, A, 0,1) be a complete lattice with upper and lower bound 1 and 0, respectively. Let f : L ~ [0,1] be an injective isotonic map, i .e., a one-to-one function such that u <_ v ==> f (u) <_ f (v) . Here and in the next section, we assume f is fixed. For x = (xl, . . . Ix.), Y = (yl, . . . y.) E Ln (7L E N), the distance IIx - y11 with respect to f between x and y is defined as VZ lIf(XZ)
- f(yZ)I-
As usual, an L-fuzzy subset of a set S is a function from S into L . Let L(S) = {/ t I /t : S ----> L}. Let I, J K be arbitrary nonempty sets. Any binary operation * on L can be used for the construction of the composition of L-fuzzy relations [50] as follows . Let /t E L(I x J), v E L(J x K) . Define the sup-*-composition /t o v by V(i, k) E I x K, ft o v(i, k) = V{lt(i,j) * v(j, k)
I
.j E J} .
Let a E L(I) be an L-fuzzy subset of I . Then an L-fuzzy subset a o ft of J can be defined by Q o /t(i)
= V{a(i) * N-(i,i) I
i E I},
Vi
E J.
If p E L(J), /t o p is defined similarly. Moreover for a' E L(I), a o a' can be defined to be a scalar . In order to consider the complete transition behavior of a general acceptor and how to compute it, the following definition is needed, [19, 91] . A triple (L, *, <), denoted by L, is called a commutative cl-semigroup © 2002 by Chapman & Hall/CRC
10.10. General Fuzzy Acceptors for Syntactic Pattern Recognition
495
if (L, V, A, 0,1) is a complete lattice with upper and lower bounds 1 and 0, respectively, and (L, *) is a commutative semigroup such that the following
property holds:
a * (VA) = V{a * b I b E A}, VA C L .
The real unit interval equipped with an averaging operator M = *, [141], gives an example of a commutative cl-semigroup as does a complete Heyting algebra with A = *Definition 10.10 .1 A fuzzy acceptor A over G is a six-tuple A = (Q, X,
where Q is a nonempty set of states; X is a nonempty set of input symbols; Q L is the initial state distribution ; -r : Q L is the final state evaluation; .M = {M(x) I Q x Q ----> L I x E X} is the set of transition functions; G is a commutative cl-semigroup .
t, T, .M, G),
(1) (2) (3) (4) (5) (6)
t
:
If * = A and Q and X are finite sets, then this is the same as the definition in [175] . We consider the complete transition behavior of an acceptor and how to compute it. We now extend the stepwise transition behavior of A. Let X be the set of input symbols . Let X l = X and Xi = X x X x . . . x X (j times), j E N. Let S[X] denote the disjoint union of the sets X l , X . . . . . . Then the elements of S[X] are sequences (xii, xi2, . . . , xi-), xii E X, m = 1, 2, . . . . Define a multiplication on S[X] by juxtaposition, i.e., (il ~ xi2 ~ . . . ,
xi-)
(
x
il
I
x72 l . . . , x7J
=
x
(
zl
I
xi2 l . . . ,
xim ~
X
il
~
x72 ~ . . . , x in
-
Then S[X] is a free semigroup with respect to this operation. Let ,F[X] denote S[X]U{A} . Then ,F[X] is a free monoid generated by X with identity A.
Every element of ,F[X] is called a word on X. Every word x E S[X] can be represented by x = xil x i2 . . . where xi2 , . . . , xi,, E X . Then x is said to have length k . Let A = (Q, X, G) be a fuzzy acceptor . For any input word x E S[X], the transition function M(x) is computed by the expression xik
,
Xil
,
t, T, .M,
M(x) = M(xiJ ° M(xi2) 0 . . . o M(xib)
I
where x = xilxi2 . . . E S[X] and where M(A) may be regarded as the identity. The expression represents the complete behavior of A in k consecutive steps . Every element M(x) gq , is the grade of membership if the input word is x E Xk with the beginning state q E Q at instant t and the last state q' E Q at instant t + k . The set of all transition behavior fuzzy relations describes the complete behavior of A and we use the notation xik
© 2002 by Chapman & Hall/CRC
496
1 0 . Applications
.M*(A) = {M(x) I x E .F[X]I . If x E .F[X], t o M(x) o T is the analytic extension of the stepwise behavior of A . Let L = Q = [a, b] be an interval . Then Vx E M, the transition function M(x) is a fuzzy subset of [a, b] x [a, b] . The initial state distributions and the final state evaluations are fuzzy subsets of [a, b] . Hence fuzzy acceptors may be extended to continuous types . In particular, if a state set Q is a subset of [a, b] such that QI = n for some n E N, then the transition functions can be represented as n x n matrices . The initial state distributions and the final state evaluations also are vectors of dimension n .
10 .11
E-Equivalence by Inputs
Definition 10 .11 .1 Let p, ft' : I x J ~ L, and let E E [0,1] be fixed. Then ft and ft' are called E-close, denoted by ftEft', if IIw(ij) - w'(i,j)II <_ E, V(i, k) E I x J. The following lemma and definition are needed to study the properties of E-closeness . Lemma 10 .11 .2 (95) Let f and g be bounded, real-valued functions on a set X. Then IVXEXf( x) - VxEXg( x)I <_ VXEX f(x) - 9(x)I ,
and InxEXf (x) - nxEXg(x) I < VxEX f(X) - 9(x)
Definition 10 .11 .3 A binary operation * on L is called contractive if I x * y - x/ * y/ I <-I (x, y) - (x" y') I, Vx, x', y, y' E L . Fuzzy acceptors with contractive operations * are called contractive fuzzy acceptors. It follows that min and max are simple contractive operations that are associative . To construct contractive fuzzy acceptors L, (L, *) must be a commutative semigroup . In [141], averaging operators between min and max are summarized, and pictorial representations are given . Averaging operators are defined as follows : An averaging operator is a function M : [0,1] x [0,1] ~ [0,1] such that the following conditions hold Vx, y E [0,1] : (1) x n y < M(x, y ) < x v y, M ~ {n, Vj ; (2) M(x, y) = M(y, x) (commutative) ; (3) M is increasing and continuous ;
© 2002 by Chapman & Hall/CRC
10.11 . E-Equivalence by Inputs
497
(4) M(o, 0) = 0, M(1,1) =1 . It is known that there exist no associative strictly increasing averaging operators [47] . An associative averaging operator that is not strictly increasing is, for fixed p E [0,1], y p x
M(x, y) = med(x, y, p) =
ifx
(10.5)
This median operator is contractive . It follows that min and max are the least and greatest contractive operations of associative averaging operators, respectively. The concept of fuzzy subsets has been incorporated into the syntactic approach at two levels . The pattern primitives are themselves considered to be labels of fuzzy sets, e.g., such subpatterns as "almost circulars arcs", "gentle", "fair", "sharp" curves are considered. Also, the structural relations among the subpatterns may be fuzzy, so that the formal grammar is fuzzified by the weighted production rules and the grades of memberships of a string are obtained by max-min composition of the grades of the productions used in the derivation . When the pattern primitives are extracted from an image with low quality or a deformed pattern, the min operation in the max-min composition of the grades of production is sensitive to distortion of primitives. In such a case, the above median operator, which is well known to be useful for noise suppression, preserves the grade of membership of primitives better than min operators . Consequently, supmed-composition rather than max-min may work well if the parameter p in (10 .5) is decided appropriately. Proposition 10 .11 .4 Let * be a contractive operation on L . Let /t, /t', v, v' be L-fuzzy relations. If compositions below make sense, then the following properties hold: (1) ftE/t' ==> v o y, o v'Ev o ft' o v' (invariance, (2) ftEft', vEv' ==> /t o vE/t' o v' (coordination) . Proof. Since property (1) can be easily obtained from (2), we only prove (2) . Let the L-fuzzy relations ft and ft' on I x J be E-close, and let the L-fuzzy relations v and v' on J x K be E-close. Then for V (i, k) E I x K, II(wov)(i,k)-(,t'Ov')(i,k)II
=
<_ <_ < © 2002 by Chapman & Hall/CRC
IIVjEJw(i,j)*v(j,k)VjEiit, (i ,j) * vi(j,k)II VjEJIIN'(i,j)*v(.l,k)w'(i, .j) * U'(j, k) II VjEJIIw(iJ) - w'(iJ)IIV I U(j, k) - v (j, k) I I E,
498
10. Applications
where the first inequality comes from Lemma 10.11 .2 and the second inequality comes from the assumption that * is contractive . Thus [to vElt' o v' . To obtain an E-partition on X, we define E-equivalence, keeping in mind the definition for E-closeness . Definition 10.11 .5 Let A = (Q, X, t, T, .M, G) be a fuzzy acceptor and E E [0,1] . Then x, y E .F[X] are said to be E-equivalent, written xEy, if the following conditions hold : (1) x, y E Xk for some n E hY, (2) M(x)EM(y) . The following corollary follows from Proposition 10.11 .4(1) . Corollary 10 .11 .6 Let A = (Q, X, t, T, .M, G) be a contractive fuzzy acceptor and let x, y E .F[X] . If xEy, then t o M(x) o TEt o M(y) o T. m Proposition 10 .11 .7 Let A = (Q, X, t, T, .M, G) be a contractive fuzzy acceptor and E E [0,1] . Then the following properties hold: (1) if xEy for x, y E .F[X], then (uxv)E(uyv), VU, v E Xk ' (2) if xEx' and yEy' for x, x', y, y' E .F[X], then xyEx'y' . Proof. (1) Let xEy. Then M(x)EM(y) . By Proposition 10.11 .4(1), M(uXv) = M(u) o M(x) o M(v)EM(u) o M(y) o M(v) = M(uyv) .
Thus (uxv)E(uyv) . (2) The proof uses Proposition 10.11.4(2) and is similar to that of (1) . Note that the relation E-equivalence is reflexive and symmetric, but not transitive. However, an E-partition on X is needed for syntactic pattern recognition. Thus we need the following definition. Definition 10.11 .8 Let A = (Q, X, t, T, .M, G) be a fuzzy acceptor and E E [0,1] be fixed. For every x E X, an E-class [x] with the center x is defined to be [x] = {x' E X I xEx'} . A family of E-classes is called an E-partition of X if it consists of disjoint subsets that cover X. By choosing a suitable operation *, we can compute an E-partition on X through the following Algorithm from Section 8.9 and [174]. Algorithm 10.11 .9 1. Define a contractive binary operation . 2. For every x E X, compute t o M(x) o T. 3. Choose a center with the greatest value t o M(x) o T. 4. Construct the E-class [x] . 5. Replace X with X\ [x] . If X z,4 0, go to step 3. 6. Print all E-classes . © 2002 by Chapman & Hall/CRC
10.12 . Fuzzy-State Automata : Their Stability and Fault Tolerance
499
From this algorithm, we compute an E-partition of X. The choice of the center x for an E-class [x] depends on the task under examination and on the user's need . To compute only an E-partition of X, it suffices to choose an operation that is contractive for each argument, i.e ., llx * y - x' * yll <_ Ix - X'11 and ll x * y - x * y'll < lly - y'll for all x_ x', y, y' E L . This yields (1) of Proposition 10 .11 .4 . For example, let * be Yager's t-norm with r > 1 *(x,y) = 1 - ( 1
n
x) T (1-
+(l -Y) T) .
Then l l0 * lOxll <_ 1 and l l0 * /dyll < 1 . This implies that it is contractive in each argument . Hence by using Yager's t-norm, we can obtain an Epartition on X . Proposition 10 .11 .10 Let A = (Q, X, G) be a contractive fuzzy acceptor. Let [v] = {v' E vEv'} and [x] = {x' E X l xEx'} be E-classes with center v E Xk and x E X, respectively . Then vx and xv are centers of E-classes on X k l . t,
Xk
T, .M,
l
+
Proof. The proof follows from Proposition 10 .11 .4(2) . Let X k IE denote the quotient set on X k , k = 1, 2, . . . . As a natural extension of Algorithm 10 .11 .9 by Proposition 10 .11 .7, we have the following algorithm by Proposition 10 .11 .10 . It forms an E-partition on X k for each kEN.
Algorithm 10 .11 .11 1 . Input k E N. 2. For i = 1, compute X/E = X l 1E by using Algorithm 10 .11 .9 . 3. If i > k, go to step 5 . 1 4. For i = i + 1, compute IE by using Proposition 10 .11 .10 . Go to step 3. 5. Print all E-classes of Xk IE . XZ+
10 .12
Fuzzy-State Automata: Their Stability and Fault Tolerance
Special branches of systems theory have achieved a high level of development and sophistication . Attempts to unify these branches have been made, [105, 23, 251, 178] . In the next five sections, we present the work of [36], which introduces geometrical and stability concepts from dynamical system theory into the theory of abstract automata, but without giving up the two main features accounting for the performance of automata or sequential machines, i .e ., discrete state spaces and sequential operation at consecutive discrete values of time . The concept of tolerance space, introduced in [178], is used . This concept is carried over to the state space of abstract automata .
© 2002 by Chapman & Hall/CRC
500
10. Applications
We first present a brief account of the elementary properties of tolerances and tolerance spaces in Section 10.13. We then introduce in Section 10.14 a special class of finite automata with given tolerance, the class of fuzzy-state automata . Their state transitions exhibit stability properties. We examine the class of fuzzy-state automata with respect to its order structure. In Section 10.15, stability of fuzzy-state automata is studied . The appearance of approximate fixed point and attractors in the state space of fuzzy-state automata and almost periodicity of their state transitions are studied . The application of the previously developed framework is dealt with in Section 10.16. For this, the field of fault-tolerant computing is chosen, i.e., the ability of certain real automata to execute, within a given tolerance, specific programs regardless of failures in their performance or hardware . The goal of [36] was to understand how biological systems work, in particular, how they control malfunctions . With this in mind this capability was simulated on an abstract level. With respect to fault tolerance, von Neumann noted the differences between biological and artificial systems . He states that in a biological system, not every error has to be caught, explained, and corrected ; see [239, p. 71] . 10 .13
Relational Description of Automata
The concept of a tolerance space is due to the authors of [178], [265], and [179], although these authors used different names for tolerance spaces . In [5] and [43], tolerance spaces were used in connection with automata and control theory. Some reasons for studying tolerance spaces are the nature of our perception of space and time, [178], and state space properties of man-made systems like digital computers . Strong similarities between tolerance spaces and topological spaces exist. There are substantial and very important differences, however . A relation on X is called a tolerance relation if it is reflexive and symmetric . A tolerance space (X, T) (or simply X) is a set X with a tolerance relation T on X. If (x, x') E T, we say x is within tolerance of x' and write xTx'; iX = X x X is called the big tolerance and SX = {(x, x) x E X} is called the little tolerance on X. Example 10.13 .1 (1) (N°, -) is a tolerance space, where NO = N U {0} and - is the relation {(m, n) I I m - nI < 1, m, n E N°}. (2) Inj = ({0,1, . . . , n}, i) is called the standard n-simplex. Let p, a C_ X x Y, S C_ X, and T and S be tolerances on X and Y, respectively. Then we introduce the following notation: (2) S - p = {y 13x E S, xpy} and xp = {x} - p. © 2002 by Chapman & Hall/CRC
10.13. Relational Description of Automata
50 1
(3) p - a = {(x, y) I Elx' such that xpx', x'ay} ; (P, p)T = p-1 - T - P, the image of T under p acting on Q x Q. Similarly, p*T = SY U (p, p) T and P*S=P .S .P-1 . (4) P l = 6X; P1 = P; P n = Pn-1 - P. (5) P\a = {(x, y) E P I (x, y) ~ a} ; P = Q x Q\P ; P = P° U P U P-1 . We use S (t) throughout for the little (big) tolerance and omit indicating the underlying tolerance space if it is understood .
Definition 10.13 .2 Let T and a be tolerances on X and Y, respectively. A relation p C X x Y, p :?~ 0, is called a fuzrelation (or fuzzy if p* T C_ a . A complete and univalued fuzrelation is called a fuzmap . If f : (X, T) ----> Y is a set theoretic map, f* T is called the coinduced tolerance on Y. If t : Y ~ X is an inclusion, the induced tolerance OT on Y is called the subspace tolerance of Y and (Y, t*T) (or loosely (Y, T) or Y) is a subspace of X. It follows that f* T is the least tolerance on Y such that f : (X, T) ~ (Y, f *T) is a fuzmap and it is the unique tolerance on Y that has the universal property that for all tolerances a on Z and for all set-theoretic maps g : Y (Z, a), f - g : (X, T) ~ (Z, a) is a fuzmap if and only if g : (Y, f* T) (Z, a) is a fuzmap, [179] . Similarly, if g : Y ----> (X, T) is a set-theoretic map, the induced tolerance on Y, g*T, is the biggest tolerance such that g : (Y, g*T) ~ (X, T) is a fuzmap . It has a universal property dual to that of the coinduced tolerance . Tolerance spaces and fuzmaps form a category denoted by Fuz, [179] . Example 10.13 .3 Let X = Y = N° and T = - = {(m, n) I Im - n1 < 1, m, n E NO } . Let p = {(m, m + 1) I m E NO }. Then (p, p)T =p -' T . p = {(1,1), (1, 2)} U {(m, n) I Im - n1 < 1, m E hY\{1}, n E NJ . (Note that
(0, n) ~ p-1 b'n E N.) Clearly, p*T = {(0, 0)} U (p, p) T and p*T C_ T. It follows that p*T = p . T p-1 = {(0,O),(0,1)1 U {(m, n) I I m - nl < 1, . Let f : N° ----> 7L be such that f (m) = m V'm E NO. Then m E N, n E N°} f*T = SZ U f-1 . T . f = SZ U T. Let t : hY ----> No be such that t(m) = m b'm E N . Then t*T = t - T -1 = {(m, n) I Im - n1 < 1, m E N, n E hY° } _ T\{(0, 0), (0,1)} .
Definition 10.13 .4 Let (XI, TI) and (X2, T2) be tolerance spaces . The union of (XI, TI) and (X2, T2) is defined to be the pair (X1 U X2, T = (L1 * T1)
U (t2*T2)), where tj is the injection tj : Xj ----> X1 U X2, j = 1, 2. Their product is defined to be the pair (X 1 X X2, T1 T2 = n(prj *Tj)), where pry is the projection pry : X1 x X2 ~ Xj , j = 1, 2 .
The tolerance T in Definition 10.13.4 is the least tolerance such that all injections tj are fuzmaps and TIT2 is the biggest tolerance such that all projections pry are fuzmaps, [179] . Definition 10.13 .5 Let x
E X. The tolerance neighborhood of x is defined to be the subspace N(x) = (xT, t*T), where t : xT ----> X is an injection. For A C X, let N(A) = UxEAN(x) .
© 2002 by Chapman & Hall/CRC
502
10. Applications
If p is a fuzrelation and xp :?~ 0, then N(x)p C N(xp). Let (X, T) and (Y, a) be tolerance spaces and let p C_ X x Y be a fuzrelation. Then p :?~ 01 and p* T C_ a. Let x E X. Then N(xp) = xpQ = Ely' E Y, (x, y') E p and (y', y) E al and N(x)p = {y E Y {y E Y I 3x' E OT, x'py} . Let y E N(x)p. Then there exists x' E OT such that (x', y) E p. Thus (y, x') E p-1 . Now xp z,4 0 so (x, y') E p for some y' E Y. Since (x, x') E T, (x', x) E T . From (y, x') E p-1 , (x', y) E T, and (x, y') E p, we conclude that (y, y') E p-1 Tp C a . Hence (y', y) E a . Thus y E N(x)p . Therefore, N(x)p C N(xp) . Example 10.13 .6 Let X = {x, y, z} and T = {(x, x), (y, y), (z, z), (x, y), (y, x), (y, z), (z, y)} . Then (X, T) is a tolerance space. Now xT = {x, y} .
Let t : {x, y} ----> X be such that t(x) = x and t(y) = y . Then t*T = tT6-1 = {(x, x), (x, Y), (y' Y), (y' x) }-
Definition 10.13 .7 Let g, f : (X, T) ~ (Y, a) be fuzmaps. The f and g are called homotopic, written g - f, if there exists m E N° and a sequence {FZ I i = 0,1, . . . , m} of fuzmaps FZ : (X, T) ~ (Y, a) such that the following conditions hold: (1) f = FO, g = Fm, (2) (FZ,FZ + 1)TCa, i=0,1, . . . ,m-1 .
A fuzmap f : (X, T) ~ (Y, a) is said to be null-homotopic if it is homotopic to a constant map and two tolerance spaces X and Y are homotopy equivalent if there exist fuzmaps f : X ~ Y and g : Y ~ X such that f - g - SX and g - f -_6Y. There is a natural metric on a tolerance space (X, T), namely, the hopmetric d : X x X ~ N° U{oo}, where d(x, x') = A{m 13 a fuzmap w : (N O ,--) ~ (X, T) such that w(0) = x, w(m) = x'} and d(x, x') = oo if there is no such w . Definition 10.13 .8 Let A, B be subspaces of (X, T) . The interior of A, written intA, is defined to be the set, intA = {x E A I d(x,X\A) > 1}, where d(x, A) = nx,EA{d(x, x')} . The boundary of A, written as OA, is
defined to be the set OA = N(A)\intA . The tolerance space X is called T-connected if for all (x, x') E X x X, d(x, x') :?~ oo and is called contractible if it is homotopy equivalent to a point, i.e., to a tolerance space (Y,6) with IYI = 1. The component C(x) of x' in X is the maximal Tconnected subspace of X containing x' .
Disregarding transition probabilities, we represent the state transitions of an automaton and its outputs by its next-state relation A C_ Q x X x Q and its output relation w C_ Q x Y. Q is the nonempty set of states of the automaton, X its input, and Y its output alphabet . The quintuple A, = (Q, X, Y, A, w)
© 2002 by Chapman & Hall/CRC
10.13. Relational Description of Automata
50 3
is called an (abstract) automaton with output. The triple A = (Q, X, A)
is called an (abstract) automaton. Moreover, A is assumed to operate sequentially on a discrete time scale. Definition 10.13 .9 An automaton A is called deterministic if V(q, x) E
Q x X, (q, x, r), (q~, x~, r~) E Q x X x Q, q = q' and x = xt implies r = r~ . It is called complete if V(q, x) E Q x X there exists r E Q such that (q, x, r) E A and finite if IQ I is finite .
In general, A is a nondeterministic automaton . Let x E X. Let S x C_ Q x Q be such that (q, q') E S x if and only if (q, x, q') E A. For computational convenience, the relation A is often given as a family D of binary statetransition relations : D = {Sx I x E X} . Definition 10.13 .10 Let x = xlx2 . . . x n E X*, where x2 E X, i =
1,2 . . . . n. Then the (state) transition relation of Ax under the action of input word x is defined as SA = S, S x = Sxl .6X2 . . . ' .6 X,, , its output relation as wx = 6X , w, and Xl = {x E X* I Ixl = l}, Ixl the length of x .
A conventional function-type description of an automaton appears in many cases not to be adequate when dealing with complex systems . For example, transition modification and memory errors may turn a deterministic automaton into a nondeterministic one. Hence a relational description of automaton has been chosen here. Definition 10.13 .11 An automaton A =
is called a sub _ automaton _ of an automaton A if X = X, Y = Y, Q C_ Q, 0 = A f1 (Q x X x Q), and w = w rl (Q x Y) .
Every subset of Q determines a unique (in general incomplete) subautomaton of A. For example, a special subautomaton of A is given by the successor set of state q E Q, where we recall that this set is defined by R(q) = 17({q}) = {q' I 3x E X* such that q' E q6x} . Recall that a cover on Q with the substitution property is a family S = {QZ I i E I} (I an index set) of nonempty distinct subsets Qj of Q such that UiEIQi = Q and for all x E X and for all Qj E S, there exist Qj E S such that Qj " Sx C Qj . Definition 10. 13 .12 Let A = (Q, X, A) be a complete finite automaton and S a cover on Q with the substitution property . The state-transition relations of the automaton A/S = (X, S, AS) are defined as follows: for all x E X and Qj,Qj E S, QZSSQj if and only if Qj - S x C Qj .
© 2002 by Chapman & Hall/CRC
504
10. Applications
Definition 10.13 .13
Let A = (Q, X, A) be an automaton and T a tolerance on Q . Then (A, T) is called an automaton with tolerance . The tolerance space (NO, -) is considered as the underlying time set of (A, T) .
Let a be a tolerance on the output alphabet Y of Au expressing indistinguishability of outputs and let w be a set-theoretic function . Then (A, w*a) is an automaton with natural tolerance . As another example, let M be a digital computer whose states are given by the contents of its registers. Two states of M may be defined as being within tolerance if and only if they differ in the contents of a limited number of registers [5].
10 .14
R1zzy-State Automata
In this section, we introduce a class of automata with tolerance whose state transitions exhibit stability properties . Definition 10 .14 .1
An automaton with tolerance (A, T), A = (Q, X, A), with fuzzy state-transition relations is called a fuzzy-state automaton.
We prove in the following lemma that the successors of states within tolerance of a fuzzy-state automaton all stay within tolerance under the action of any input word. We make use of this property when we analyze the effects of temporary and permanent state errors on the performance of fuzzy-state automata . Lemma 10 .14 .2
Let (A, T), A = (Q, X, A), be an automaton with tolerance . (1) Then A is a fuzzy-state automaton if and only if Sx* T C_ T for all XEX . (2) Suppose that A is deterministic and complete. Then (A, T) is a fuzzy-state automaton if and only if T C_ S x *T for all x E X . (3) Both formulas for T hold for all x E X if and only if they hold for all xEX* .
Proof. (1) The proof here is immediate. (2) Since T C_ S x *T and Sx1 - S x C_ S, we have that Sx 1 - T - S x C_ Sx 1 Sx . T Sx 1 S x C_ T . If A is a complete fuzzy-state automaton, then T C_ Sx . 6X 1 - T Sx . 6 X 1 C_ Sx - T - Sx1 for all x E X. (3) The desired result follows from the fact that (Sx . 6v)* T = bx*(6v*T) and (Sx - Sy ) * T C Sxx (6v. T) for all x, y E X . Lemma 10.14.2(1) can be simply restated as follows : a fuzzy-state automaton if and only if V'x E X, (q, x, q~) q~ ) q~ ) (q~~, x, .. E A implies (q~, . . E T . © 2002 by Chapman & Hall/CRC
A = (Q, X, A) is E A, (q, q") E T,
10.14. Fuzzy-State Automata
505
Lemma 10.14.2 implies that the transition relations of a fuzzy-state automaton are fuzrelations for all x E X* and thus are metric decreasing, i.e., V'x E X*, q,4 E Q, d(q, 4) >_ d(q*, q*), where q* E q6x and q* E q6 x. This clearly represents a stability property. Let A = (Q, X, A) be a finite automaton . Let F(A) be the set of all fuzzy-state automata with A as first coordinate. Let F(A,T) = {(A, a) E F(A) I a C T, a a tolerance on Q}. Then F(A) forms a complete, distributive lattice with respect to the ordering of automata with tolerance given by (A, a) <_ (A*, T) if and only if A is a subautomaton of A* and a C T. This follows from the next result . Theorem 10.14 .3 Let A = (Q, X, A) be an automaton. Then the follow-
ing assertions hold . (1) The partially ordered set FA of symmetric and reflexive binary relations p on Q with 6 x* p C p for all x E X (ordered by set inclusion) forms a complete, distributive lattice, which is a sublattice of the lattice of all tolerances on Q . (2) FA is closed under the relative product if A is complete . FA is then a lattice ordered monoid if A is complete and deterministic.
P1
Proof. (1) The proof follows from [253] . (2) If A is complete, 6 C_ 6 x '6x 1 , 6x 1 'P1'P2'6x C 6x1'P1'6x'6x1'P2'6x C_ 1 ' P2, P1, P2 E FA . If A is deterministic, 6x - 6 x C 6, 6x 1 - 6 - 6x C 6, and
6x .6=6 -6x=6XVxEX .
It follows from Theorem 10.14.3 that F(A, T) 0 has a unique maximal element . This element is denoted by (A, T*) . It plays an important role later. The unit of F(A) is (A, t) . If A is deterministic, F(A) has zero (A, 6) and so F(A,T) :?~ 01 . Example 10.14 .4 We consider coarsening of a complete, finite fuzzy-state automaton (A, T) . The tolerance T defines a (unique) cover ST on Q with the substitution property as follows: Let QZ C Q. Then QZ E ST if and only if (a) qTq* for all q, q* E QZ and (b) if qTq* for all q* E QZ, then q E QZ .
The coarsening of (A, T), namely A = (AIST ,'r), is a fuzzy-state automaton, where ~r is defined below. In order to construct tolerance T, define p C ST x Q by QZpq if and only if q E QZ . It follows that (Sx, 6x)p C p for all x E X. Define ~r as T = p*T . Clearly, T is reflexive and symmetric and 6x* ~r C_ ~r b'x E X since (6x, 6x)T C 6X` - P - 6x . 6x 1 - T - 6x . 6x 1 - P -1 6x C P - T P -1 . The automaton with tolerance appearing in the next result is a generalization of the concept of a tolerance automaton, introduced first in [5]. Example 10.14 .5 Let (A, T) be an automaton with tolerance such that Pr13A C T. Then (A, T) is called a tolerance automaton. © 2002 by Chapman & Hall/CRC
50 6
10 . Applications
We now prove the following statement : If (A, T) is a finite tolerance automaton, then there exists n E hY with 1 <_ n <_ IQ I -1, such that (A, Tn) is a fuzzy-state tolerance automaton : (a) Since T = S U T, it follows by induction that T' C_ T'+ 1 , m = 1, 2, . . . . Therefore, there exists n E hY U {0} such that Tn = Tn+j, j 0, 1, 2, . . . , since Q x Q is finite . Moreover, since T can be represented by a IQI x IQI Boolean matrix having only ones as diagonal elements, T has a characteristic exponent n < IQI - 1 . (b) Let qT'q~, q* E pr2(gA), and q~* E pr2(g0) . Then q*Tq, q~* Tq~, and so q*T2 +m q'*, i .e ., Sx* Tm C_ T 2 +m V'x E X . Let n be as in part (a) . Then Sx* Tn C_ T2+n =T n for all x E X . Thus (A, n) is a fuzzy-state automaton with pr13A C T C Tn . Any state of a tolerance automaton is in tolerance with its predecessors and any input word x of a tolerance automaton defines a fuzmap
Wx : (N U {0},
i.e.,
a path in
Q.
Q,T ,
') ---->
) The "phase space velocity" c = d(g,,ge of A is less than or
equal to 1 . In this sense, a tolerance automaton has inertia that gives rise to stable behavior . The example closing Section 10 .13 is also an example of a tolerance automaton.
Example 10 .14 .6 The automaton A* given in Table 10 .1 determines 64 automata with tolerance . This is easy to see from the following reasoning : Since there are 4 states, a tolerance can be represented by a 4 x 4-matrix whose entries consist of 0's and 1's. Since a tolerance is reflexive and symmetric only 6 positions of the matrix determine a tolerance . Thus there are 64 = 2 6 possible tolerances.
Table 10 .1 : Next State Relation of A* inputs of A*
A* x1 x2
qo qo q2
q1 qo q2
q2 q1 qo
q3 q1 qo
states of A* next states of A*
F(A*) is shown in Figure 10 .10. (A*, T19) is the only nontrivial tolerance
© 2002 by Chapman & Hall/CRC
10.14. Fuzzy-State Automata
50 7
automaton of F(A*) .
Figure 10 .1010 : Lattice F(A*) The following Boolean matrices (with respect to the ordering of the states given by (qo, ql , q2, q3)) represent the basic tolerances of F(A*) . T2
1 0 0 0
0 1 0 0
1 1 1 0
1 1 0 0
T5
T3
0 0 1 1
0 0 1 1
1 1 0 0
1 1 0 0
1 0 1 0
0 0 0 1
1 1 1 1
1 1 0 0
T7
0 0 1 0
0 0 0 1
1 0 1 0
1 0 0 1
"Figure 10 .10 is from [36], reprinted with permission by Kluwer Acadernic/Plenuin Publishers .
© 2002 by Chapman & Hall/CRC
10. Applications
We now determine ( A ,T * ) . The following procedure determines the maximal symmetric binary relation p, on Q , with the property that (S,, S,)p, g p, g T V x € X . Thus ( A ,p,) = ( A ,T * ) (unit of F ( A ,T ) ) if F ( A ,T ) is nonempty, e.g., if A is deterministic. Define the relation p(k) as follows: Step 1: p(1) .- T . Step 2: For all k 1, qp(k l ) p if and only if V x € X U {A) and V(qf,p f ) E Q x Q it follows from qS,qf , pS,pf that qfp(k)pf. Step 3: If p(k 1) = p(k) go to Step 4, else go to Step 2. Step 4: p, = p(ko),where Lo is the smallest index k with p(k) = p(k+l). Clearly, p, is symmetric since T is symmetric and p, is the maximal relation with the properties stated above since p g T implies that p, g p, . Consequently, a g p, if (S,, S,)a g a V x E X .
>
+
+
Example 10.14.7 Consider Figure 10.10. Let
Then qoSz1qo and qzSxl ql , but (40,ql)$ p ( 1 ) Thus (q0,q2) $ 4 2 ) . Moreover, qlSx1qo and qsSxlqi. Since (qo,qi) $ p ( l ) , (qo,qs) $ p(2). Now (q2,qs) € ~ ( 2since ) qzSxlqi,qsSxlql, qzS,,qo, and qsS,,qo. It follows that ( A ,T * ) $ F ( A * ) and p(2) = p(3) = ~ 2 Hence . ( A * ,T * ) = ( A * ,~ 2 ) . Consider an automaton with tolerance ( A ,T ) . Tolerance T* determines the maximal set of pairs of automata states that are in tolerance T and whose successors under any input sequence are also in tolerance T . Furthermore, if two states are not related by T* , then none of their predecessor pairs contains states within tolerance T* since T* = L\T* is reflexive, symmetric, and 6, *T* C T* V x E X , [253].
10.15
Stable and Almost Stable Behavior of Fuzzy-State Automata
In this section, we consider questions about the stable behavior of finite fuzzy state automata that have counterparts in the theory of topological dynamical systems. With this in mind, we state the following definition.
© 2002 by Chapman & Hall/CRC
10.15. Stable and Almost Stable Behavior of Fuzzy-State Automata
509
Definition 10.15 .1 Let (A, T), A = (Q, X, A), be an automaton with tolerance, S a subspace of Q, and V C_ X* . The subspace S is said to be
V-stable if its neighborhood N(S) is V-invariant, i.e ., if N(S) .6, C N(S) Vv E V. S is said to be almost V-stable if there is a natural number l such that N(S) f1 UZ-ogbv+' z,4 0
holds for all n E N U {0}, q E S, and v E V. If S is X* -stable and accessible from every state of T C Q, then S is called an attnacton set of T.
Clearly a set S of automata states is almost V-stable if its neighborhood is V-invariant, i.e., if S is V-stable. Stable and almost stable sets of automata states characterize the recurrent state motions of automata with tolerance. The property of attractor sets can be illustrated in the following manner . Let automaton (A, T) be driven by a stationary random input source that generates words such that the probability of any input x E X following an arbitrary word is greater than k, where k > 0. Let A be at time to = 0, say, in T, and p(S, t) be the probability of its state at time t belonging to the neighborhood of an attractor set S of T, if it exists . Then p(S, t > I R(T) I) >_ k~R(T) 1-1 and p(S, t > I R(T) I) = 1 for an autonomous automaton (hence the name "attractor set"). Clearly, Q is an attractor set of any T C_ Q. The set of reset states of an identity-reset automaton with tolerance S is an attractor set of its state set and every state of automaton (A*, TO is almost X-stable with l a = 0, lb = h = ld = 1 (see Figure 10.10). In the following, we assume that the automaton A = (Q, X, A) is complete and deterministic . The following theorem is an adaptation of Poston's "approximate fixed point theorem" to finite automata . Theorem 10.15 .2 Suppose that the state space of a finite, fuzzy-state au-
tomaton is contractible . Then b'x E X*, it contains an x-invariant and x-stable subspace, Px :?' 0, whose elements are mutually within tolerance T (approximated fixed points .
Let automaton A be autonomous and Q be the union of contractible, Sxconnected subspaces, where x E X. Let T be the natural tolerance on Q with respect to an output relation w . Then Px (which is maximal with respect to the properties of Theorem 10. 15 .2) is an attractor set of Q . Now p(Px , t) = 1 for t sufficiently large . Because of unobservable (unmeasurable) differences of outputs, automaton A seems to be caught in a final state. However, this may not be the case if IPx I > 1 . Another example of an attractor set can be determined in the following manner . By Lemma 10 .15.3, for any q E Q, 00R(q) is an attractor set of R(q) if 00R(q) :?~ 01 and if intR(q) is empty, or else strongly connected, and Q\R(q) is X-invariant . Since R(q) is X-invariant, OR is then X*-stable and either q E 00R(q) and so R(q) C_ 00R(q), or else q E intR(q) . However, this implies that 00R(q) is reachable from any state of © 2002 by Chapman & Hall/CRC
51 0
10 . Applications
Clearly, both conditions hold if all R(q) with 00R(q) :?~ 01 are strongly connected, e.g., if (A, T) is a fuzzy-state permutation automaton . R(q) .
Lemma 10.15 .3 Let (A, T) be a fuzzy-state automaton and S be a subspace of its state space. Then the boundary r9S of S is X*-stable if S and Q\S are X-invariant.
Proof. If Ixl = 0 or r9S = 01, then r9S is x-invariant since SA = S . Suppose r9S is x-invariant for all x with xl < n and r0S :?~ 01 . (1) If q E r9S\S, then there is a state q E S such that (q, 46 x) E T for x E Xn . Thus (q6x , _qS xa ) E T, q6x E S, and -qSxa ~ S, i .e. , q6x E r9S for all YEXn+1 . (2) If q E OS n S, then there is a state q ~ S such that (q, q6x) E T for x E Xn . It follows that (4Sa, g6xa) E T for all a E X, i.e., d(4Sa, g6xa) < 1 . Suppose that g6xa E intS. Then 4Sa E S and R(q) n S z,4 0. This is a contradiction since 4S a E S. Hence g6xa E S\intS . Since (A, T) E F(A), r9S is X*-invariant and X*-stable . Lemma 10.15 .4 Let A be a complete, deterministic, connected, and au-
tonomous automaton with tolerance T. Then (A, T) is almost periodic if and only if every state of A is in tolerance with a periodic state of A.
Proof. Let q E Q. Let X = {x} since A is autonomous . The orbit of q under x, i.e., O = {q6x}°_o, is the union of two sets Ot and OP (p = ~QPj), where OP is nonempty and permuted by S x and Ot .67x C OP for s >_ t = Ot . (1) Let qTq, q be periodic. Then q E OP . There exist natural numbers r and s < p such that q6x = q Sx since A is connected and deterministic. Hence q6x+P-S E N(q) and Uz±O
That is, if
q
-s-l
+Z
gbx
n
has period p, then
N(q) :?~ 0,
p+r-s-1. (2) Suppose that
q
q
n = 0, 1, 2, . . . .
has an almost period not greater than
E Q is almost periodic. Then it follows that N(q)
n
UZ-ogbx+2
7~ 0.
Thus N(q) n OP z,4 0. Hence N(OP) = Q if A is almost periodic . Furthermore, N(Op) - Sx C N(O p - Sx) = N(Op) if (A, T) E F(A) for A arbitrary. An automaton (A, T) is said to be almost periodic if every state of A is almost X-stable . The connection between almost periodic and permutation automata can be seen from the next result. Theorem 10.15 .5 The state space of a deterministic, almost periodic fuzzystate automaton is the union of a finite number of neighborhoods of closed stable orbits (cycles .
© 2002 by Chapman & Hall/CRC
10.16. Fault Tolerance of Fuzzy-State Automata
51 1
Proof. The proof follows from part (2) of the proof of Lemma 10 .15.4. The greatest common divisor of the lengths of all proper cycles of a deterministic automaton A is called the period of A, [75] . Let d divide the period of A. Let 7r be a path from state q to state q' and I7rI denote its length. The distance from q to q', written I q, q' I d , is defined as I7rI (modulo d) if q and q' are connected and is defined to be oo otherwise . It follows that this distance is unique . Assume that the period of A is greater than 1. Now tolerances Td on Q may be defined as follows. For all q, q' E Q, gTdq' if and only if q = q' or I q, q' I d = s or d - s. Automata (A, Td are almost periodic. Moreover, (A, Td) is a tolerance automaton and (A, A) is a fuzzy-state automaton if the period of A is even and A is complete. Example 10.15 .6 Let the automaton A be as specified in Table 10 .2. Table 10 .2: Next State Relation of A 0
xl
x2
qo
qi
q2
g3
q4
qi qi
q2 q4
qi qi
go, q2 q2
g3 g3
The lengths of the proper cycles are 2 and 4 . Thus d = 2 . Now Iqo, gsl2 = 3 (mod 2) = 1 and Iqo, g4I2 = 2 (mod 2) = 0. For s = 0, s :A Iqo, 8312 :A d - s . For s = 1, Iqo, 8312 = s. Hence go T2 q3 . For s = 0, ° Iqo, g4I2 = s . Thus qOT 2 q4 . For s = 1, Iqo, g4I2 z,4 s or d - s . It follows that the tolerances T2 and T° are represented by the following Boolean matrices. 1 1 0 1 0
1 1 1 0 1
T12
0 1 1 1 0
1 0 1 1 1
0 1 0 1 1
1 0 1 0 1
0 1 0 1 0
To2
1 0 1 0 1
0 1 0 1 0
1 0 1 0 1
An effective procedure for evaluating the period of any finite automaton is given in [75] . 10 .16
Fault Tolerance of Fuzzy-State Automata
An actual machine occasionally makes errors computing its next state . Consequently, it is unreliable to some extent We now consider this unreliability. It is possible to emphasize the essential aspects of more concrete situations within our abstract framework. A machine exhibits stability in some sense if it overcomes the influence of its errors, i .e., if after some time these influences become "tolerable ." We will show that fuzzy-state automata behave stably in this sense with respect to certain faulty state transitions . © 2002 by Chapman & Hall/CRC
512
10. Applications
Let A = (Q, X, A) be a (not necessarily deterministic) finite automaton, T a tolerance on Q, and QP = pr3A . Definition 10.16 .1
A binary relation 0 on Q with pr1O _D QP together with tolerance OTT, where t : 0 C_ Q x Q, is called a state relation of (A,T) . A state relation 0 is called compatible if 0 C_ T, inessential if 0 C_ p,r (cf. Section 10 .14, and consistent if it is fuzzy . We say that 0 changes q if &\S) z,4 0 . 0 is called (p, l)-bounded (by (A, T)) if for all xEX* with 1xl >p, (10.6) and (10 .6) does not hold for (p - 1, l) or for (p, l - 1) . If 0 is (p, l)-bounded, then 0 U 0-1 is also (p, l)-bounded . In general, the bounds of two state relations 0 and 0+ are known, it is usually not difficult to derive bounds for relations such as 0 U 0+ , n + , and 0 - 0+ . For example, 0 U 0+ is (max(p, p+), max(l, l+))-bounded . We present below an algorithm for determining the bound of a state relation. State transition errors may be described by a state relation . We then visualize an element (qj,qj) E 0 as follows . Automaton A goes with some nonzero probability into state qj when it should go into state qZ, due to a permanent or temporary modification in the state transitions of A. Clearly, error e E 0 n S is an improper error . if
o o
Definition 10.16 .2
A state relation (0, t*TT) is called a permanent transition modification (t-modification if it modifies automaton A, i.e., if automaton AO = (Q, X, AO := A - 0) replaces automaton A. Automaton A" is called the modification of A due to 0 and A the reference automaton. The state relation 0 is called a (temporary) error of A if A is not modified by 0 .
Most input errors can be interpreted as state transition errors, i.e., memory errors, [84]. The is also true for errors in the combinational output logic of sequential circuits . Consequently, we concentrate on memory errors. Within the relational framework, we are less interested in the physical causes of errors, but rather in the qualitative aspects of the role errors play in the performance of modifiable systems . In what follows, we assume that the meaning of tolerance T is that a single error e E 0 is tolerable in some appropriate sense if e E T. Examples can be found in [37] . Lemma 10.14.2 states that compatible errors of a fuzzy-state automaton (A, T) are inessential and remain inessential under the action of any input word. The maximal compatible state relation of (A, T) is TQ = (T, TT), and (p,r ,TT) is its maximal inessential state relation if pr1pr _D QP . Since the tangent bundle of the tolerance space (Q, T) is the composite map t TQ C Q x Q -PTA Q, [179], and the tangent space Tj Q to Q at state © 2002 by Chapman & Hall/CRC
10.16. Fault Tolerance of Fuzzy-State Automata
513
q is the tolerance space TqQ = (tq, TT), the compatible changes of state q determine the tangent space at q in a sense . In [37], such "geometric" properties of errors and t-modifications are studied . There modification tolerance of automata is considered, i.e., with masked and correctable tmodification of an automaton. However, in the following, relational (settheoretic) properties of temporary errors are considered. We now consider bounded state errors . Fault tolerance is an important design parameter . The goal is to design systems that stay operational despite failures and, in fact, can repair themselves in response to their own failure . Intuitively, automaton (A, T) overcomes the influence of error 0 if after some time it takes a state that is, and from then on stays, in tolerance with the correct state . Definition 10.16 .3 An automaton (A, T) is said to T-correct (to correct error 0 if there exists p E hY such that 0 is (p,1)-bounded ((p, 0)-bounded by (A, T) . Correction (self-synchronization) by deterministic finite automata has been studied in [85], [84], [42], [224], and elsewhere . Algorithms have been given for determining which temporary state errors are corrected by a de terministic automaton within a certain amount of time (assuming tacitly that these errors do not alter state transitions .) Correction of input errors has been studied in [252] and [84] . There is a strong connection between the capability of correcting an input error and that of correcting the temporary state errors caused by this input error . Example 10.16 .4 Consider the fuzzy-state automaton (A*, T5) given in Figure 10 .10 . The errors 4'1 and 02 are given by 0 0 0
1 0 0 0
0 0 1 0
0 0 0 0
_
The error 4'1 is (0,1)- and (1, 0) -bounded since E F(A) . The error 02 is (1,1)-bounded .
0 0 1 1 4'1
0 0 0 1
1 0 0 0
1 1 0 0
is compatible and (A*,
T5)
Bounds of an error and error-correcting input words can be determined by the following error graph procedure as long as the next state relation of an automaton is not too large . Error graph. (1) The vertices are given as (l/ab), a, b E Q, if aTl b and as (-/ab) if (a, b) ~ TL , l = 0, 1, 2, . . . , ((0/qq) - (q)) . (2) An oriented i-edge points from vertex (l/ab) to vertex (l'/cd) if and only if the (unordered) state pair {a, b} goes into state pair {c, d} under © 2002 by Chapman & Hall/CRC
514
10. Applications
input x2 . The error graph of (A*, T5) is given in Figure 10.11 .
2
Figure 10 .11 11 : Error Graph of (A*,
T5)
Test A. The following algorithm gives a test by which one can use to decide whether or not a given temporary error 0 of automaton (A, T) is (p, l)-bounded and, hence, T-connected by (A, T). Step 1: p := 0; l P := Q I . Step 2: Op := U1 w 1 -p (6,,, 6w) W; Op (1) ~_ OP ; OP (k+1) :_ OP (k)U{(q, q+)
Elx E X, (q, q+) E OP(k) such that g6 x q, q+6x q+) . Step 3: 0P+ := Uk>10P(k) . Step 4: If there exist 1 1 E hY with 1 <_ 1 2 < lP such
lP
= min{l2J and
that
0P C_ Tl t ,
0 is (p, 1 p )-bounded, else l p := lp - 1 . Step 5: p := p + 1 if p <_ IQI2 - 1 go to Step 2, else stop and
set
unbounded.
It follows that 0P, is the minimal binary relation on Q such that (i) 6X)O+ C_ for all x E X*, [253]. Thus for all z = xv Op C 0P ; (ii) (6x, 0P with Ixl =p, C 0P . In order to determine if automaton A recovers from error 0 after a finite amount of time, it must be determined if there is some p, 0 <_ p < IQI 2 - 1, such that 0 is (p, l)-bounded. If 0 is T-corrected by (A, T) for A complete, then it is also T-connected by any deterministic automaton (A, Q) > (A, T) . The precedessors of a single error that is not "Figure 10 .11 is from [36], reprinted with permission by Kluwer Acadernic/Plenuin Publishers
© 2002 by Chapman & Hall/CRC
10.16. Fault Tolerance of Fuzzy-State Automata
51 5
T-corrected by a fuzzy-state automaton (A, T) are also not T-connected by automaton (A, T) (see the comments at the end of Section 10 .14) . The capability of an automaton to recover from errors is a strong restriction on its state transitions and tolerance . Somewhat weaker notions are given in the next definition . Definition 10 .16 .5 Error 0 is 1-corrected (eventually 1-corrected) by automaton (A, T) if for all e E 0 (and all z E X*) there is a word x such that (Sx,6x)e n T l :?~ 0 ((Szx,szx)e n Tl :?4 0) . Example 10 .16 .6 Consider the automaton (A*, TO . The error i is eventually 0-corrected by A* since x = xlxl is a reset word of A* (cf. Figure 10.11 . Test B : In order to decide whether a temporary error 0 is eventually 1-corrected by a fuzzy-state automaton (A, T), the maximal eventually 1corrected set of state pairs 0 of A is constructed by the following procedure:
nT 1
Step 1 : Construct relation 0 L ,= {(q, q) 13x E X* such that (Sx , 6x ) (q, q) ~ 0} . If (A, T) E F(A), then `Y1 C 02 C . . . and O j = Oj+1 for some N ; 0o := 0' .
_ and Sx 1 . 0 + . Sx C 0 + such that C 1 m ; M_1 for all x E X . Since 0o _D m 01 __ . . . , "fit7='fit+1 for some t E hYU{0} := 0i . Then error 0 is eventually 1-corrected if and only if 0 C 0.
Step 2 : Construct relation
The proof of the next result can be obtained by modifying the proof of a corresponding result in [252] . Theorem 10 .16 .7 Let A be a finite deterministic automaton. An error 0 of A is eventually 1-corrected if and only if A is 1-synchronized with respect to 0. That is, A driven by a random source and started either in state q or else in a state q E qO is brought, in the long run, into states within tolerance Tl . However, if A is a fuzzy-state automaton, its correcting input word can be chosen independently of e E 0, and thus 0 is (p, l)-bounded for some l E N . We now present a more general result . Theorem 10 .16 .8 All temporary errors of a complete fuzzy-state automaton (A, T), A = (Q,X,A), are 1-correctable, for some l < IQI - 1, if and only if there is a (generalized) reset x E X* for automaton A such that Qx C C(q), q E Q, where Qx := Q - Sx . Proof. It follows that Qx C_ C(q) if and only if there is some r E NU{0} such that Qx C_ qTT . Thus since Q x C_ C(q), q E Q, we have that for any error 0, T2T C T IQI-1 . (Sx, 6 x)4' C (+ 1 - t - (Sx C T' q x qTT C
© 2002 by Chapman & Hall/CRC
516
10. Applications
Suppose that any error of A is 1-correctable . Let ~Q1 = n and Qr _ {qZ}z, o, 1 <_ m <_ n . There exists x E X* and qZ E gibx, i = 0, 1, such that gxT l gx, gi6x C qZ T C_ gOxTl+ 1 since Sx is fuzzy. Thus Qi C goTi+1 . Suppose now that there is some x E X* such that Q~ C gO T1 +1 , 1 < m < n, where qZ E g Z S x . Let be 1-corrected by E X*. There exists q2 E gj6x, i = 0,m+1, such that go Tlgm+1 . Again for qZ E Q,, gj6xx C (gOTi+1 ) 6x C_gOTl+1 and q, + 1Sxx C qL+1 T and Q;,~+1 C_ go Tl + l . This implies that there exists xEX*,gEQsuch that QXC4T 1 +1 . If Qx is T-connected or if Q is contractible, then there exists q E Q such that Qx C_ C(q) . Hence all errors of A are 1-correctable for some l <_ IQI - 1. For topological spaces, Q is contractible if and only if S = SA is null-homotopic . The following result gives a converse. Corollary 10 .16 .9 If all temporary errors of an automaton A are 1-correctable, l < 2, then (Qx,i*T) is t-connected and (Q, T) is contractible in addition, S x - SA (since then Sx - c, c a constant map, and Qx = qTl+1) .
if,
Moreover, if all errors of an automaton A are 1-correctable, then every error is also eventually 1-corrected and so A is 1-synchronized with respect to every error . Modification tolerance of abstract automata and the problem of finding meaningful tolerance between automata states are studied in [37]. These tolerances should be based on the minimal amount of time needed in order to correct state errors . The approach presented here may also be extended to failure tolerance with respect to spatial propagation of errors in iterative networks .
10 .17
Clinical Monitoring with mata
R1zzy
Auto-
A framework for an intelligent bedside monitor is presented in this section. The material is from [222]. The purpose of the monitor is to derive an abstraction of the current status of a patient by performing fuzzy state transitions on pre-processed input continuously supplied by clinical instrumentation . An implementation called DiaMon-1 has been used for off-line evaluation of data of patients suffering from adult respiratory distress syndrome . Intensive care monitors display more and more information as new devices for on-line sampling of physiological data become available . Hence the clinical staff is faced with the problem of monitoring the monitor . It is difficult for humans to perceive and interpret a large number of timevarying parameters, [38, 86, 238] . If parameters interact in such a way that only certain groupings provide hints for critical conditions, then the situation becomes more complicated. When the meaning of a value depends © 2002 by Chapman & Hall/CRC
10.17. Clinical Monitoring with Fuzzy Automata
517
on the patient history, another complicating factor occurs. Context-specific alarms for which no absolute thresholds can be established provide a good example of this [38, 214]. In [222], a formal framework was presented for the design of monitors that have the following properties: (1) abstraction from objectively observed (quantitative) parameters to (qualitative) stages of a disease, (2) early indication of improvement in or deterioration of the patient's state by providing smooth transitions between stages, and (3) consideration of previous events, i .e., history-based interpretation of data. A state monitor traces the patient's change of state with time, i.e., that records the progress of his illness . A state is considered to be an abstraction of the patient's status that accounts for a specific stage of a disease . Possible paths from one state to the next are provided by the transitions . The transitions depend on input, i .e., events that need to occur or conditions that need to be satisfied for a transition to take place. The input is obtained by processing objectively and preferably automatically acquired data. A state monitor is an abstract model of the medical knowledge in a specific area. Medical decision making is based on knowledge that must consider uncertainty . Thus judgment of the current state of a patient is often a matter of degree [2] . Hence transition from one stage of a disease to another is usually smooth rather than abrupt . The state monitor presented here is based on the concept of a fuzzy automaton rather than on the concept of a conventional one in order to allow for smooth transitions . In the following definition, we use the same terminology to define a different notion of a fuzzy automaton . This definition is confined to this section and hence no confusion should arise. Definition 10.17 .1 A fuzzy automaton is a quadruple A = (Q, qo, X, S), where Q is a finite set of states, qo is a fuzzy subset of Q called the
fuzzy initial state, X is a_finite set of input symbols, and S : Q x X ----> Q is a transition function . Let it be a fuzzy subset of X, t = 0, 1, 2, . . . . Define qt+l : Q ----> [0,1] by for each q E Q, {qt(q') A Zt (X) qt+1 (q) _ { V 0
b(q', x) = q, q' E Q,
E x},
if s-1(q) if 6 -1 (q) _ 0 .
Define S : Q x ,FP(X) ----> .FP(Q) by b(qt, a) = qt+1
(10.7)
where Q={qt I t=0,1, . . .} .
A sequence of fuzzy states is denoted by {gt}t-o and is said to be increasing if qt+1 qt for all t . © 2002 by Chapman & Hall/CRC
518
10. Applications
Since monitoring is a continuous process that is terminated on the exhaustion of input data rather than on arrival at a certain state, a set of final states is not defined here. The definition of a fuzzy automaton that appears here differs from the usual ones; see [49,51,212,250] for example. The transition function is crisp rather than fuzzy. Uncertainty expressed in a fuzzy input alone results in a partial transition from one state to another . A general statement about how strongly two states are related is not possible. Except for the fuzzy initial state, the fuzzification of the automaton is completely determined by the extension principle . A fuzzy automaton exhibits properties quite different from those of a crisp one. The current state is a fuzzy subset of the set of states . Consequently, the automaton can perform different (partial) transitions simultaneously and therefore track parallel paths. Another different property is that crisp automata report an error on input not accounted for at the current state while a fuzzy automaton reacts on low or zero membership grades in the fuzzy input with continuously decreasing membership grades in its current state as obtained by (10 .7) . This phenomenon causes a decrease in certainty that seems consistent with all repeated applications of fuzzy set operations. Example 10.17 .2 Let Q = {ql, q2, q3, q4, q5} and X = {a, b, c} . Define S : Q x X ----> Q as follows:
b(qj, a) = q3, b(qj, b) = q4, b(qj, c) = q2, b(q2, a) = q2, b(q2, b) = q4, 6(q2, C) = q2, b(q3, a) = q3, b(q3, b) = q5Define
= q4, = q5, = q4, = q4, b(q5 , a) = q5, b(q5, b) = q5, b(q5, c) = q5,
(gl) = 4, for i = 3,_4, 5. Define io : X ----> [0,1] by_ 1-0 (a) = Let i t = io fort = 1,2, . . . . Then do :
gi(gi) gi (q2) 4-1
(q3)
gi (q4) 4-1
(q5)
Q ~ [0,1] as follows:
b(q3, c) b(q4, a) b(q4, b) b(q4, c)
0, (do
i
(qj)
do
do
z,
(q2) = 4, and do (q,) = 0 LO (b) = 4, and io(c) = 4 .
n io (c)) V (do (q2) n io(a)) V (do (q2) n io (c))
(gi) A io(a)) 1 2 (40(gi) n LO (b)) V (40 (g2) 1 4 (do
0.
© 2002 by Chapman & Hall/CRC
n LO (b))
10.17. Clinical Monitoring with Fuzzy Automata
519
In a similar manner, we obtain
42(gl) 42 (q2) 42 (q3) 42 (q4) 42 (q5)
0, _1
4~ 1 2~ _1 4~ 1 4'
In fact, gt(g2) = q2 (qj) for i = 1, 2, 3, 4, 5, and t = 2, 3, . . . .
Automatically acquired data are generally precise and hence no source of fuzzy input is required by the automaton defined above. Also, if every single parameter value acquired represented an input on its own, (1) the number of possible input symbols needed to be accounted for would be too large for the automaton to handle and (2) the automaton would continuously change its state in order to react to a certain input ; otherwise the input would remain unconsidered and hence become lost. Therefore, a fuzzy automaton by itself is not very appropriate to perform monitoring . The data are therefore pre-processed by a function that abstracts from single input parameters by generating fuzzy events that are passed on to the automaton . Definition 10.17 .3 Let A = (Q, qo, X, S) be a fuzzy automaton, R1 through
Rn be the parameter ranges, where n is the number of parameters observed, P = R1 x . . . x Rn be the parameter value space, and f : P ~ .PP(X) be a function that maps_parameter tuples to fuzzy subsets of the input alphabet of A . Then M = (A, P, f) is called a state monitor.
Note that,F'P(X) specifies the interface between preprocessing of data through f and interpretation of input through A. Thus f can therefore be replaced by any computable method that yields a suitable fuzzy subset . From the definition of S, it follows that other than the state membership values of qo, those of qt can only be introduced through fuzzy input. The following lemma follows from (10 .7) . Lemma 10.17 .4 If a fuzzy automaton A is repeatedly fed with constant fuzzy input i, then the set of fuzzy states it transitions between is finite . m Define the height of qt, written hgt(gt), to be V{qt(q) I q E Q} for t = 0, 1, 2, . . . . The sequence {hgt(gt )1-o , is a decreasing function of t.
This reflects a loss of certainty in the automaton . Even if the input does not change, hgt(gt) can decrease rapidly. Hence in practice, when the monitor is provided input in rapid succession, once the current state is the empty set, it can never recover . As a matter of fact, if the automaton does not contain any feedback loops, i .e., does not provide circular transitions, it will arrive © 2002 by Chapman & Hall/CRC
520
10. Applications
at the empty state after at most as many steps as there are states. Rather than leaving the responsibility for providing appropriate feedback loops to the designer of the automaton to overcome this undesirable property, we next define a property that overcomes this inadequacy. Definition 10.17 .5 A fuzzy automation is said to provide a peak hold if b'q , q E Q and b'x E X,
6(q, x) = q implies S(q, x) = q.
(10.8)
The condition in Definition 10.17.5 says that there is a transition for every state on every input that leads to the state . The condition implies that no state can be entered and left on the same input, else S would not be single-valued . The peak hold guarantees that the maximum evidence for a state provided by its predecessors is memorized and held as long as input of ongoing transitions can support it. However, the peak hold may also be sustained by an input other than the one that initially led to that state since a state does not remember its predecessor . Thus the grade of membership can unintentionally remain high. Peak hold has a positive side effect in that the automaton cannot oscillate on constant input [250], a property that would clearly not be acceptable in the clinical setting since stable input should be reflected in stable output . This can be seen from the next result. The fuzzy automaton in Example 10.17.2 provides a peak hold. Theorem 10.17 .6 The fuzzy state of a fuzzy automaton with peak hold always becomes stable after a finite number of repetitions of the same input.
Proof. We show that for t > 1, there is a positive integer r such that qt C qt+1 C . . . C qt+' = qt+T+1 = . . . .
(10.9)
This is accomplished by showing that (1) {qt }t-- o is increasing, i .e., qt C qt+l C . . . and (2) 3r such that S(qt+T, i) = qt+,.. For all subsequent states, (10.9) follows from the fact that S is a function . _ For every fuzzy state qt with t > 0 and every input i, it follows by (10.7) that for every state q, there is a transition that determines its membership value, i.e., b'q E Q, S -1 (q) ~ 0. b'q E Q, 3q' and -T such that 6(q', x) = q and qt (q) = qt -1(q~) Thus, qt (q) < i(x) and so qt (q) A7(x) x) = q then implies
=
qt+1 (q) = qt(q) V (V{qt (q)
qt(q) . Repeated input of i and S(q, A 7(x) I
qt+1 (q) > qt(q), © 2002 by Chapman & Hall/CRC
n a(x) .
b(q, x) = q}),
10.17. Clinical Monitoring with Fuzzy Automata
521
and so qt+l D qt . By Lemma 10. 17.4, there is no infinite sequence of fuzzy states such that qt+1
=
b(qt,
i) and
qt+1
D
{qt}t-o
qt .
Consequently, there exists an r such that qt+T+1 C qt+T for t = 0, 1, 2, . . . . Since {qt}t_o is increasing, qt+T+1 must equal qt+T . m The proof of Theorem 10.17.6 shows that {_gt}t°o does not converge to the empty state . It can take several steps for A to become stable since the fuzzy input can cause a propagation of higher membership grades along a sequence of transitions . The fact that nonfuzzy deterministic automata with peak hold are stable after one step provides another example of how fuzzification yields more general results . The height of the current state is still decreasing even with the peak hold property since high grades of membership cannot be regained once they are lost . A situation where the grade of membership of one state decays while its successor's rises is a source of loss. This behavior does not model the natural decision process correctly because once a decision has been made, it is usually pursued rather uncritically until there is sufficient evidence for another decision to be made. By introducing the idea of a threshold, the state monitor can be modified to adopt this kind of behavior . A state is called active when its grade of membership in the current state exceeds a certain threshold c. An active state is defined to remain active until there is a transition that induces activity of one of its successors, i .e., qt (q) qt+1(q)
=
(10 .7)
c and 6(q, x) = q' and otherwise . if
qt(q)>
x such that it (x) > c
~q~,
(10 .10)
Thus once a state has reached a certain grade of membership, it keeps it until a transition can pass it on to one of its successors. Thus the height of the current state is always greater than c. Therefore, a certain level of uncertainty is thus always being maintained . For c = 1, (10.10) implies that there is always at least one state q such that qt(q) = 1 . This accounts for the fact that the patient is considered to be at least in one state at a time, even if no successor with more evident support could yet be determined. We note that (10.10) has only slight effect on the proof of Theorem 10.17.6. In (1) of the proof of Theorem 10.17.6, {qt}t°o is still increasing since the peak hold also works for qt (q) > c and qt (q) can only drop below c once, namely on the first input . Also, (2) of the proof of Theorem 10.17.6 still holds because Lemma 10.17.4 is not affected. Moreover, (10.10) cannot prevent the automation from oscillation without peak hold even though the height is kept above c. © 2002 by Chapman & Hall/CRC
522
10. Applications
Further discussion of clinical monitoring can be found in [222] . We note that another approach using techniques from fuzzy set theory can be found in [214] . Nonfuzzy approaches can be found in [87, 238]. 10 .18
Systems
R1zzy
In the final section, we consider fuzzy systems for two reasons . First, they resemble fuzzy automata and, second, they have interesting applications to information retrieval [160] . System theory provides a framework for describing general relationships of the empirical world. We are mainly interested in the concept of reachability, observability, stability, and realization . Let Q be the state space, X the input space, and Y the output space. A deterministic dynamic system (time invariant) is a complex S = {Q, Y, S, ,3}, where S : Q x X ~ Q is the dynamics, qt+1 = S(qt, ut ), and,3 : Q ~ Y is the output map . A nondeterministic system is the complex S = {Q, X, Y, S, /3} with the : Q dynamics S : Q x X ~ P(Q), qt+1 E S(qt, ut ), and the output map/3 P(Y) .
This definition can be generalized by considering not only the states, but also the inputs and outputs as being subsets . Definition 10.18 .1
An abstract system is a complex Sa = LQ,X,Y,b,01
such that S : P (Q) x P (X) ----> P (Q), 3 : P (Q) ----> P (Y) .
We next present the application given in [160] of fuzzy systems to information retrieval systems . Example 10.18 .2
We consider an Information Retrieval system defined in terms of its response to a request for information . An IR system reports on the existence and location of information items relating to a request and does not change the knowledge of the user on the subject of the request . If the search criteria are based on the contents of an information item, then it becomes necessary to use content identification such as a set of descriptors attached to each item . In such cases, it is customary to assign descriptors, normally chosen from a controlled list of allowable terms . That is, a request is defined to be recovered from the store . An IR system compares the specification of required items with the descriptions of the stored items, and retrieves, or lists, all the items that correspond in some defined way to that specification . Consequently, the IR system can be characterized by having as inputs a subset of a set D of information items and a subset of a set R of requests . If the system is presented with new documents, the system must process them to obtain descriptions . The same sort of thing must be done
© 2002 by Chapman & Hall/CRC
10.18. Fuzzy Systems
52 3
with the requests . The next step is the comparison. The ultimate response of the system to a request is a partial ordering on the set of information items.
Let Pf (S) be the set of all finite subsets of a set S. Let ~, rl be functions ~ : D Q, rl : R Q, where Q is the set of descriptions. Let A = Pf(D), B = Pf(R), C = Pf(Q), and 'R be the set of partial orderings on Pf(D), i.e., for p E 1Z, M, N E Pf(D), MpN if and only if N is more relevant to a given request than M. We use the following variables to describe the state of the IR system : ql is the set of incoming documents waiting to be processed ; q2 is the document file; q3 is the document description file; q4 is the set of incoming requests waiting to be processed ; q5 is the request currently being processed ; q6 is the request that was just processed ; q7 is a partial ordering on Pf(D) (i .e., in 'R) induced by the request q6 . The input variables are ul = the documents coming to the system; u2 = the requests coming to the system ; and the output variables are yl = q6 is the request that was just processed ; y2 is a subset of the document file that is maximal with respect to q7 . Using the above notation, the input space is X = AxB, the output space is Y = R xA, and the state space is H=AxAxCxBxRxRX R . Let the initial state be given as follows : ql (0) = {di E D i = 1, 2, . . . , m} q2(0) q3(0) q4(0) q5(0) q6 (0) q7(0)
= = = = =
{el, e2, - . . , enJ l ~wl, w2, " . . , wn J with wi = ~( ei), i = 1 , 2. . . . , n {rl . . , ri}, ri E R r'
E 'R. The state equation of the IR system can be written in the form: q(k + 1) = 6(q(k), u (k)), k = 0, 1, 2, . . . , where S : R x X ----> R is the dynamics and the output is y(k) =,3(q(k)), where,3 : R ----> y is the output map . The state equations can be written as follows : ql(k + 1) _
(ql(k~) U ul(k))\~dk+11,
q2(k + 1) = q2(k) U ul(k) © 2002 by Chapman & Hall/CRC
~f
q, (k)
0
524
10. Applications q3(k+
q4(k
{~(dk+1)},
1) _ { g3(kj,U
+ 1) _
~f ql(k)
[q2~~ U u2(k)]\{rk+1}
rk+1,
0 q6 (k q7 (k
+ 1)
+ 1)
if if
q4 (k) q4 (k)
if if
q4(k) 7~ q4 (k) =
0 01
01 0
= q5 (k)
= -r (97 (q5 (k))),
where r is the ordering in A induced by 97 (q5 (k)) . The output equations are as follows : Y1(k) = q6(k)
and Y2(k)
C
q2(k) .
The notation dk +1 in the first equation means that between k and k + 1, dk+ 1 is processed, k = 0, 1, . . . . The same thing holds for rk + 1 . It follows that q7(k + 1) is an ordering in A and y2(k) is the subset of documents that give a "best response" at the request q6(k) . It follows that the IR system is a complex, SIR
= {x, X, Y, 6, l0},
with S and,3 as above. The dynamics S can be extended to H x X* considering sequences of pairs ("documents," "requests") . If U and V are two sets, there is an injection i :(UXV)*~U*XV* such that i((u1,v1)(u2,v2) . . .(un,vn))
= (u1 u2 . . . .un,VIV2 . . . .vn) .
It follows that an element of X* can be considered as a pair of the form ("sequence of documents," "sequence of requests"), where the sequences have the same length. © 2002 by Chapman & Hall/CRC
10.18. Fuzzy Systems
525
The system SIR is reachable, from the state q(0) E R if each state in R can be reached with a suitable input sequence. This means that the input space (i.e., documents and requests) is rich enough to cover each state (i .e., document file, requests, orderings, etc.). The system SIR is observable if, knowing the system's response (documents that are relevant to the request), for each sequence of inputs (requests and documents), the state from which the system is started can be uniquely determined. We are thus led to the concept of a fuzzy system . Definition 10.18 .3 A fuzzy system is a complex Sf = {Q, X, Y, 6"31
with S : ,FP(Q) x ,FP(X) ----> ,F'P(Q), the fuzzy dynamics, and /3 .FP(Q) ----> .FP(Y), the fuzzy output map. The state equation can be written as follows : qt+i = S(qt, ut), ut
E .FP(X), qt,
qt+i
E .FP(Q),
where qt , qt+l are, respectively, the fuzzy states at time t, t + 1 and ut the fuzzy input at time t. The output equation becomes yt = ,3 (qt), qt
E .FP(Q), yt E .FP(Y),
where yt is the fuzzy output at time t. Let (.FP(X))* denote the free monoid generated by .FP(X), i.e., the set of sequences of fuzzy inputs. Then S can be extended to .FP(Q) x (.FP(X))* by defining S : .FP (Q) x ( .FP(X))* - .FP (Q)
as follows : (1) S(a, A) = a, b'a
E FP (Q), (2) 6(a, A*w) = 6(6(a, A*), w), da E .FP(Q), A* E (.FP(X))*, w E
.FP(X) .
If the initial state ao
E .FP(Q) is
fixed, we can define the function:
Sao : (.FP(X))* - .FP(Q)
by VA *
E (.FP(X))*, Sao (A*) = S(ao,A*) .
Hence S(ao, A*) is computed by starting the system in state ao, feeding in the input sequence A* , and determining the final state . With these definitions, we can express two basic concepts of systems theory, namely, reachability and observability. © 2002 by Chapman & Hall/CRC
526
10. Applications
Definition 10.18 .4 The fuzzy system Sf is called reachable from the state ao if Sao is onto, i.e .,
Va E .FP(Q), 3a* E (.FP(X))* such that sao (A*) = a. The image of Sao , Im Sao C ,FP(Q), is called the reachability set of the system Sf from ao .
Composing S ao with, 3 we obtain the fuzzy response function (or behavior) of the system Sf, i.e ., f, = 0 O Sao ,
Thus f'. : (.FP(X))* -
FP(Y)
and so f,. (A*) =,3(b(ao,A*)) VA * E ( .FP(X)) * .
Definition 10.18 .5 A fuzzy system Sf is called observable if the assignment a
F-~
fa is one-to-one .
The interested reader is urged to see [160] for further details and interesting ideas including the concepts of stability and realization . 10 .19
Exercises
1. Let a, aii E II8 for i = 1, 2, . . . , m and j = 1, 2, . . . , n . Prove that (V{A{aj2 i = 1,2, . . . , m} I j = 1,2, . . . , n}) n {a} = V{n{aj2 lea I i = 1,2, . . . , m} I j = 1,2 . . . . , n} and that (A{V{aj2 I i = 1,2 . . . . , m} I j = 1, 2, . . . , n}) V {a} = A{V{aj2 Aa I i = 1, 2, . . . , ml I j = 1, 2, . . . , n}. 2. Prove that the matrix in Example 10.6 .2 has period equal to 3. 3. Prove that y(anbm) = 'A' in Example 10.8 .2. 4. Prove Lemma 10 .11 .2. 5. Let M be the median operator of (10 .5) . Show that M is associative, not strictly increasing, and contractive . 6. Prove (2) of Proposition 10.11.7. 7. Show that (No , -), where No = hY U {0} and ({0,1, . . . , n}, i), of Example 10.13.1 are tolerance spaces. © 2002 by Chapman & Hall/CRC
10.19 . Exercises
527
8 . For f in Definition 10.13 .2, prove that f*T is the least tolerance on Y such that f : (X, T) ~ (Y, f *T) is a fuzmap . Prove also that it is the unique tolerance on Y such that b' tolerances Q on Z and b' set-theoretic maps g : Y ~ (Z, Q), f - g : (X, T) ~ (Z, Q) if and only if g : (Y, f. T) ~ (Z, a) is a fuzmap . 9 . If g : Y ----> (X, T) is a set-theoretic map, prove that g*T is the biggest tolerance on Y such that g : (Y,g*T) ----> (X, T) is a fuzmap . 10 . In Definition 10 .13 .4, prove that T is the least tolerance such that all injections tj are fuzmaps, and TIT2 is the largest tolerance such that all projections pry are fuzmaps . 11 . Prove (1) of Theorem 10 .14 .3 . 1 12 . In Example 10 .14 .6, show that T7 and T9 yield T14 =
and Tg and T9 yield T15 = T14 and T15 .
1 1 1 0
1 1 1 1
1 1 1 0
0 1 0 1
1 1 1
. Then determine T19 from
13 . In Example 10 .15 .6, show that SQ U Sx 1 T°Sx C T° for x E {xl, X2114 . Prove that the condition in Definition 10 .17.5 implies that no state can be entered and left on the same input, else S would not be singlevalued .
© 2002 by Chapman & Hall/CRC
References 1. Abraham, S., Some questions of phrase structure grammars, tational Linguistics, 4(1965) 61-70 .
Compu-
2.
Adlassing, K.P., Fuzzy set theory in medical diagnosis,
3.
Aho, A., and Ulman, J., Theory of Parsing, Translation ing, Vol . 1, Prentice-Hall, Englewood, NJ, 1972 .
4.
Arbib, M., Realization of stochastic systems, in IEEE Conference Record of the Seventh Annual Symposium on Switching and Automata Theory, Vol . 7, 262-266 . Institute of Electrical and Electronic Engineers, New York, 1966 .
5.
Arbib, M.A., Tolerance automata,
6.
Arbib, M.A., Algebraic Theory of Machines, groups, Academic Press, New York, 1968 .
7.
Arbib, M.A. and Manes, E .G., Fuzzy morphism in automata theory,
8.
Arden, D .N., Delayed logic and finite state machines, Theory of Comp. Machine Design, Univ. of Michigan, Ann Arbor, (1960) 1-35 .
9.
Auterbert, I.M., Pushdown-automata and families of languages generating cylinders, Lecture Notes in Computer Science, 53(1977) 231-
IEEE Transaction on Systems, Man, and Cybernetics, SMC 16(1986) 260-265 . and Compil-
Kybernetika, 3(1967) 223-233 . Languages, and Semi-
Lecture Notes in Computer Science, 25(1975) 80-86 .
239 .
10. Bacon, G . C ., Minimal-state stochastic finite systems, Computers, CT-11 (1964), 107-108 .
IEEE Trans.
11. Baer, R.M. and Spainer, E.H., Referenced automata and metaregular families, J. Comput. System Sci., 3(1969) 423-446 . 12 .
Bavel, Z., Introduction to the Theory Co., Inc ., Reston, Virginia, 1983 . 529
© 2002 by Chapman & Hall/CRC
of Automata,
Reston Publishing
530
References
13. Bellman, R.E., Kalaba, R., and Zadeh, L.A., Abstract pattern classification, J. Math Appl ., 13(1966) 1-7. 14. Bellman, R.E. and Zadeh, L .A., Decision-making in a ment, Management Sci ., 17-B(1970) 141-164 .
fuzzy
environ-
15. Berstel, J., Some recent results on recognizable formal power series, Lecture Notes in Computer Science, Vol . 56, 39-48 . 16. Bezdek, J . and Harris, J., Fuzzy partitions and relations - an axiomatic basis for clustering, Fuzzy Sets and Systems, 1(1978) 111-126 . 17. Biacino, L. and Gerla, G., Recursively enumerable L-sets, Z. Logik Grandlag Math., 33(1987) 107-113 .
Math.
18. Birkhoff, G ., Lattice Theory, AXIS Colloquium Publications 25, 2nd edition, Providence, RI, 1948. 19. Blanchard, N., (Fuzzy) fixed point property in L-underdeterminate sets, Fuzzy Sets and Systems, 30(1989) 11-26. 20. Boassan, L., Classification of the context-free languages, in Computer Science, 53(1977) 34-43 .
Lecture Notes
21. Booth, T.L., Statistical properties of random digital sequences, in IEEE Conference Record of the Seventh Annual Symposium on Switching and Automata Theory, Vol. 7, 251-261 . Institute of Electrical and Electronics Engineers, New York, 1966. 22. Booth, T.L., York, 1968.
Sequential Machines and Automata Theory,
Wiley, New
23. Brauer, W., Zu den Grundlagen einer Theorie Topologischer Sequentieller Systeme and Automaten, Gesellschaft fur Mathematik and Datenverarbeitung, Bonn, 31(1970) . 24. Brown, J.G., Fuzzy sets on Boolean lattices, Rept. lastic Research Laboratories, Aberdeen, MD, 1969. 25. Brown, J.G., A note on 32-39 .
fuzzy
sets,
Inform.
No ., 1957, Bal-
and Control,
18(1971)
26. Bruce, G .D. and Fu, K.S ., A model for finite-state probabilistic systems, Proc. 1st Ann. Allerton Conf. Circuit and Systems Theory, 1963. 27. Brunner, J ., Zur Theorie der R-fuzzy Automaten, Wiss. Z. Univ . Dresden, 27(1978) 693-695 .
Tech.
28. Brunner, J. and Wechler, W., Zur Theorie der R-fuzzy Automaten I, Wiss. Z. Tech . Univ. Dresden, 26(1977) 647-652 . © 2002 by Chapman & Hall/CRC
References
53 1
29 . Carlyle, J .W., Reduced forms for stochastic sequential machines, J. Math . Anal . Appl ., 7(1963) 167-175 . 30 . Carlyle, J .W ., Stochastic finite-state system theory, in System Theory (L .A . Zadeh and E . Polak, Eds .), McGraw-Hill, New York, 1969, 387423 . 31 . Chang, S .K ., On the execution of fuzzy programs using finite state machines, IEEE Trans. Computers, 21(1972) 241-253 . 32 . Cheng, S .C . and Mordeson, J.N ., Applications of fuzzy algebra in automata theory and coding theory, Proceedings Fifth IEEE Conference on Fuzzy Systems, Vol. 1, (1996) 125-129 . 33 . Cho, S .J ., Kim, J .G ., and Kim, S .T ., On T-generalized subsystems of T-generalized state machines, Far East J. Math . Sci ., 5(1997), 131-151 . 34 . Cho, S .J ., Kim, J .G ., and Kim, H .D ., Sums and joins of fuzzy transformation semigroups, preprint . 35 . Cho, S .J ., Kim, J .G ., and Lee, W .S ., Decompositions of T-generalized transformation semigroups, Fuzzy Sets and Systems, to appear . 36 . Cin, M .D ., Fuzzy-state automata: their stability and fault tolerance, International Journal of Computing and Information Sciences, 4(1975) 63-80 . 37. Cin, M . D ., Modification tolerance of fuzzy-state automata, Informational Journal of Computer and Information Sciences, 4(1975) 81-93 . 38 . Coiera, E ., Intelligent monitoring and control of dynamic physiological systems, Artificial Intelligence in Medicine, 5(1993) 1-8 . 39 . Comer, S . D ., Polygroups derived from cogroups, J. Alg ., 89(1984), 397-405 . 40 . Conway, J .E ., Regular Algebra and Finite Machines, Chapman & Hall, London and Colchester, 1971 . 41 . Das, P., On some properties of fuzzy semiautomation over a finite group, Inform. Sci ., 101(1997) 71-84 . 42 . Dauber, P .S ., An analysis of errors in finite automata, Inf. 8(1965) 295-303 .
Control,
43 . De Backer, W . and Verbeek, L ., Study of analog, digital and hybrid computers using automata theory, ICC Bulletin, 5(1966) 215-244 .
© 2002 by Chapman & Hall/CRC
53 2
References
44 . DePalma, G .F . and Yau, S .S ., Fractionally fuzzy grammars with application to pattern recognition, in Fuzzy Sets and Their Application to Cognitive and Decision Processes, L .A . Zadeh, K .S . Fu, K . Tanaka, and M . Shimura, eds ., Academic Press, New York (1975) 329-351 . 45 . Dharmadhikari, S .W ., Functions of finite Markov chains, Ann. Math. Statist., 34(1963) 1022-1032 . 46 . Dirmitrescu, D ., Hierarchical pattern classification, Fuzzy Sets and Systems, 28(1988) 145-162 . 47. Dombi, J ., Basic concepts for theory of evaluation: The aggregative operator, European J. Oper. Res ., 10(1982) 282-294 . 48 . D6rfier, W ., The cartesian composition of automata, Math . Systems Theory, 11(1978) 239-257 . 49 . Dougherty, E .R . and Giardina, C .R ., Mathematical Methods for Artificial Intelligence and Autonomous Systems, Prentice-Hall, Englewood Cliffs, NJ, 1988 . 50 . Drewnaik, J ., Fuzzy relation equations and inequalities, Fuzzy Sets and Systems, 14(1984) 237-247 . 51 . Dubois, D . and Prade, H ., Fuzzy Sets and Systems : Theory and Applications, Academic Press, New York, 1980. 52 . Earnest, L .D ., Machine recognition of cursive writing, Information Processing (IFIP), C .M . Popllewell, ed ., North-Holland, Amsterdam, 1962 . 53 . Eden, M ., Handwriting and pattern recognition, IRE Trans . formation Theory, IT 8(1962) 160-166 .
on In-
54 . Ehrich, R ., A contextual post-processor for cursive script recognition, Proc . 1st International Joint Conf. on Pattern Recognition, October 30, (1973) 169-171 . 55 . Ehrig, H ., Kiermeier, K .D ., Kreowaski, H .J ., and Kuhnel, W ., Universal Theory of Automata, Teubner Verlag, Stuttgart, 1974 . 56 . Eilenberg, S ., Automata, Languages and Machines, Vol . A, B, Academic Press, New York, 1974, 1976 . 57. Ellis, C .A ., Probabilistic Languages and Automata, Ph .D . Dissertation, Univ. of Illinois, Urbana, IL, 1969 . 58 . Even, S ., Comments on the minimization of stochastic machines, IEEE Trans . Electron . Comp ., 14(1965) 634-637.
© 2002 by Chapman & Hall/CRC
References
533
59. Faith, C ., Algebra : Rings, Modules, Categories, Springer-Verlag, New York/Heidelberg/Berlin, 1973. 60. Fong, Y. and Clay, J.R., Computer programs for investigating syntactic near rings offinite group semiautomata, Academia Sinica, 16(1988) 295-304 . 61 . Fris, L, Grammars with partial ordering of the rules, Inform. and Control, 12(1968) 415-425 . 62. Fu, K.S., Syntactic Methods in Pattern Recognition, Academic Press, New York, 1974 . 63. Fu, K.S., Syntactic Pattern Recognition and Applications, PrenticeHall, Englewood Cliffs, NJ, 1982 . 64. Fu, K. S. and Huang, T., Stochastic grammars and languages, J. Comput. Inform. Sci ., 1 (1972) 135-170 . 65. Fu, K.S. and Li, T.J., Formulation of learning automata and automata games, Inform. Sci ., 1(1969) 237-256 . 66. Fu, K.S . and Li, T.J., On stochastic automata and languages, 3rd Conference of Information and System Sciences, Princeton University, (1969) 338-377 . 67. Fu, K.S., and Li, T.J., On stochastic automata and languages, Inform. Sci ., 1(1969) 403-419 . 68. Fu, K .S. and McLaren, R.W., An application of stochastic automata to the synthesis of learning systems, School of Elec. Eng ., Purdue University, Tech. Rept. TR-EE65-17, 1965. 69. Fu, K .S. and Swain, P.H., On syntactic pattern recognition, Software Engineering, Julius Tou, ed., Academic Press, 1971, 155-182 . 70. Gerla, G., Sharpness relation and decidable fuzzy sets, IEEE Trans. Automat . Contr., AC-27(1982) 1113. 71. Gerla, G., Decidability, partial decidability and sharpness relation for L-subsets, Studia Logica, 46(1987) 227-238 . 72. Gerla, G., Turing L-machines and recursive computability for Lmaps, Studia Logica, 48(1989) 179-192 . 73. Gerla, G ., Fuzzy grammars and recursively enumerable fuzzy languages, Inform. Sci., 60(1992) 137-143 . 74. Gill, A., Introduction to the Theory ofFinite State Machines, McGrawHill, New York, 1962. © 2002 by Chapman & Hall/CRC
534
References
75. Gill, A. and Flexer, J.R., Periodic decomposition of sequential machines, J. Assoc . Comput. Mach., 14(1967) 666-676 . 76. Ginsburg, S ., An Introduction to Mathematical Machine ison-Wesley, Reading, MA, 1962. 77. Ginsburg, S., The Mathematical McGraw-Hill, New York, 1966.
Theory,
Add-
Theory of Context-free Languages,
78. Ginsburg, S.,
Algebraic and Automata-Theoretic Properties of Formal Languages, North-Holland, Amsterdam and Oxford, American
Elsevier, New York, 1975 .
79. Ginsburg, S. and Greibach, S., Abstract family of languages, in Studies in Abstract Families of Languages, American Mathematical Society, Memoir No . 87(1969), 1-32. 80. Ginsburg, S. and Spanier, E .H., Control sets on grammars, Systems Theory, 2(1968) 159-177 . 81 . Goguen, J.,
L-fuzzy
sets,
J. Math. Anal. Appl.,
18(1967) 145-174 .
82 . Harkleroad, L., Fuzzy recursion, RET's and isola, Z. Grundlog Math., 30(1984) 425-436. 83. Harrison, M.A., Introduction McGraw-Hill, New York, 1965.
Math.
Math .
Logik
to Switching and Automata Theory,
84. Harrison, M.A., On the error of correcting capacity of finite automata, Inf. Control, 8(1965) 430-450 . 85. Hartmanis, J. and Stearns, R.E., A study of feedback and errors in sequential machines, IEEE Trans . Electron. Comput ., EC-12(1963) 223-232 . 86. Hayashi, Naito, and Wakami, A proposal of a learning type aggregation operator that uses the method of steepest descent, Fuzzy Society Journal, 5(1993) 1131-1141 .
fuzzy Japan
87. Hayes-Roth, B., Washington, R., Hewett, R., Hewett, M., and Seiver, A., Intelligent monitoring and control, Proc . IJCAI, 89(1989) 243249 . 88. Hirai, H., Asai, K., and Katajima, Fuzzy automaton and its application to learning control systems, Mem. of the Fac. of End ., Osaka City Univ ., 10(1968) 67-73. 89. Hirokawa, S . and Miyano, S ., A note on the regularity of fuzzy languages, Mem. Fac . Sci ., Kyushu Univ . Ser. A 32, No. 1(1978) 61-66 . © 2002 by Chapman & Hall/CRC
535
References
90. Hofer, G., Near rings and group automata, Ph.D. thesis, J. Kepler University, Linz, 1987. 91. H6hle, U., Quotients with respect to similarity relations, and Systems, 27(1988) 31-44. 92. Holcombe, W.M.L., Algebraic sity Press, New York, 1982.
Automata Theory,
Fuzzy Sets
Cambridge Univer-
93. Honda, N. and Nasu, M., Recognition of fuzzy languages, in
Fuzzy Sets and Their Application to Cognitive and Decision Processes, L.A.
Zadeh, K.S. Fu, K. Tanaka, and M. Shimura, eds ., Academic Press, NJ, (1975) 279-299 .
94 . Honda, N., Nasu, M., and Hirose, S., F-recognition of fuzzy languages, in Fuzzy Automata and Decision Processes, M.M. Gupta, G.N. Saridis, and B.R. Gaines, eds ., North-Holland, Amsterdam (1977) 149-168 . 95. Hong, D .H. and Hwang, S.Y., A note on the value similarity of fuzzy system variables, Fuzzy Sets and Systems, 66(1984) 383-386 . 96. Hopcroft, J.E . and Ullman, J.D ., Formal Languages and tion to Automata, Addison-Wesley, Reading, MA, 1969 .
Their Rela-
97. Huang, T. and Fu., K.S., On stochastic context-free languages, form . Sci ., 3(1971) 67-73.
In-
98. Hwang, S.Y., Lee, H.S., and Lee, J.J., General fuzzy acceptors for syntactic pattern recognition, Fuzzy Sets and Systems, 80(1996) 397401 . 99. Inagaki, Y. and Fukumara, T., On the description of fuzzy meaning of context-free languages, in Fuzzy Sets and Their Applications to Cognitive and Decision Processes, L.A . Zadeh, K.S . Fu, K. Tanaka, and M. Shimura, eds ., Academic Press, New York, 1975, 301-328 . 100 . Inagaki, Y., Fukumara, T., and Matuura, H., Some aspects of linear automata, Inform . Cont. 20(1972) 439-479 . 101 . Ito, H., Inagaki, Y., and Fukumura, T. Hierarchical studies of dendrolanguages with application to characterizing derivation trees of phrase structure grammars, Memoirs of the Faculty of Engineering, Nagoya University, 25 1(1973) 1-46. 102 . Jantosciak, J., Homomorphisms, equivalences and reductions in hypergroups, Rivista Di Matematica Pura Ed Applicata 9(1991) 23-47 . 103 . Johnsonbaugh, R., New York, 2001.
Discrete Mathematics,
© 2002 by Chapman & Hall/CRC
5th edition, Prentice-Hall,
536
References
104 . Jiirgensen, H. and Peeva, K.G., Approximation of stochastic automata, in Proceedings, Automata, Languages and Systems, Sofia, 1981. 105 . Kalman, R.E., Falb, P.L., and Arbib, M.A., Topics System Theory, McGraw-Hill, New York, 1969. 106 . Kandel, A., Codes over languages, IEEE and Cybernetics, SMC-4(1974) 135-138 .
Trans .
107. Kandel, A. and Lee, S. C., Fuzzy Switching and Applications, Crane Russak, 1980. 108 . Kandel, A., Fuzzy Mathematical Wesley, Reading, MA, 1986.
in Mathematical
on Systems, Man
and Automata:
Techniques with Applications,
109 . Kanst, R. Finite state probabilistic languages, 403-419 . 110 . Kaufmann, A., Introduction to the Theory Academic Press, Orlando, FL, 1973.
Inform . Sci.,
Theory
Addison1(1969)
of Fuzzy Subsets, Vol . 1,
111 . Kherts, M.M., Entropy of languages generated by automated or contextfree grammars with a single-valued deduction, Nauchno-Tekhnicheskaya Informatsya, Ser . 2, No. 1 (1968) . 112 . Kim, H.H., Mizumoto, M., Toyoda J., and Tanaka, K., Lattice grammars, Trans. Inst. Elect. Commun. Engrs . Japan, 57-D, No. 5 (1974) 253-260 (in Japanese) . 113 . Kim, Y.H., Kim, J.G., and Cho, S.J., Products of T-generalized state machines and T-generalized transformation semigroups, Fuzzy Sets and Systems, 93(1998) 87-97. 114 . Klir, G.J. and Folger, T.A., Fuzzy Sets, Uncertainty Prentice Hall, Englewood Cliffs, NJ, 1988.
and Information,
115 . Klir, G.J. and Yuan, B., Fuzzy Sets and Fuzzy Logic, Theory Applications, Prentice-Hall, Upper Saddle River, NJ, 1995 . 116 . Knuth, D.E., Semantics of context-free languages, ory, 2(1968) 127-145 .
Math . Sys .
and The-
117. Kumbhojkar, H.V. and Chaudhri, S .R., On proper fuzzification of fuzzy finite state machines, J. Fuzzy Math ., to appear . 118 . Kumbhojkar, H.V. and Chaudhri, S.R., Fuzzy recognizers and recognizable sets, Fuzzy Sets and Systems, to appear. 119 . Kumbhojkar, H.V. and Chaudhri, S.R., On covering of products of fuzzy finite state machines, Fuzzy Sets and Systems, to appear . © 2002 by Chapman & Hall/CRC
References
53 7
120 . Kumbhojkar, H .V . and Chaudhri, S .R ., Decomposition of fuzzy finite state machines, preprint . 121 . Kumbhojkar, H .V . and Chaudhri, S .R ., Homomorphisms of fuzzy recognizers, preprint . 122 . Lee, E .T . and Zadeh, L .A ., Note on fuzzy languages, Inform. Sci., 1 (1969) 421-434 . 123 . Lee, E .T . and Zadeh, L .A ., Fuzzy languages and their acceptance by automata, in 4th Princeton Conf. Information Science and Systems, 1970, Princeton University Press, 399 . 124 . Lindgren, N ., Machine recognition of human language, Part III-Cursive script recognition, IEEE Spectrum, 2(1965) 104-116 . 125 . MacLane, S . and Brikhoff, G ., Algebra, MacMillan, New York, 1979 . 126 . Malik, D .S . and Mordeson, J .N ., On fuzzy recognizers, Kybernets, 28(1999) 47-60 . 127. Malik, D .S . and Mordeson, J .N ., Minimal fuzzy recognizer, J. Math ., 7(1999) 381-389 .
Fuzzy
128 . Malik, D .S . and Mordeson, J .N ., Fuzzy Discrete Structures, Studies in Fuzziness and Soft Computing, Physica-Verlag 58, 2000 . 129 . Malik, D .S ., Mordeson, J .N ., and Nair, P.S ., Fuzzy normal subgroups in fuzzy subgroups, J. Korean Math . Soc., 29(1992) 1-8 . 130 . Malik, D . S ., Mordeson, J . N . and Sen, M . K ., Semigroups of fuzzy finite state machines, Advances in Fuzzy Theory and Technology, ed. P.P . Wang, Vol . II, Bookswright Press, 1994, 87-98 . 131 . Malik, D . S ., Mordeson, J . N . and Sen, M . K ., Submachines of fuzzy finite state machines, J. Fuzzy Math, 2(1994) 781-792 . 132 . Malik, D . S ., Mordeson, J . N . and Sen, M. K ., On subsystems of a fuzzy finite state machine, Fuzzy Sets and Systems, 68(1994) 83-92 . 133 . Malik, D. S ., Mordeson, J . N . and Sen, M . K ., The cartesian composition of fuzzy finite state machines, Kybernets, 24(1995) 98-110 . 134 . Malik, D . S ., Mordeson, J . N . and Sen, M . K ., On regular fuzzy languages, Inform. Sci ., 88(1996) 263-273 . 135 . Malik, D . S ., Mordeson, J. N . and Sen, M . K ., Products of fuzzy finite state machines, Fuzzy Sets and Systems, 92(1997) 95-102 . 136 . Matthews, G .H ., A note on a symmetry in phase structure grammars, Inform. and Control, 7(1964) 360-365.
© 2002 by Chapman & Hall/CRC
53 8
References
137. Maurer, H ., Theoretische Grudlagen der Programmiersprachen, Bobliographisches Institut, Mannheim, Wein and Zurich, 1969 . 138 . Mealy, G .H ., Methods for synthesizing sequential circuits, Bell Sys. Tech. J. 34 (1955) . 139 . Mermelstein, P. and Eden . M ., Experiments on computer recognition of connected handwritten words, Inform. and Control, 7(1964) 255270 . 140 . Mizumoto, M ., Fuzzy automata and fuzzy grammars, Ph .D . thesis, Osaka University, 1971 . 141 . Mizumoto, M., Pictorial representations of fuzzy connectives, part I : Cases of t-norms, t-conorms and averaging operators, Fuzzy Sets and Systems, 31(1989) 217-242 . 142 . Mizumoto, M . and Tanaka, K ., Fuzzy-fuzzy automata, Kybernets 5(1976) 107-112 . 143 . Mizumoto, M ., Toyoda, J ., and Tanaka, K ., Some considerations on fuzzy automata, J. Comput . System Sci ., 3(1969) 409-422 . 144 . Mizumoto, M ., Toyoda, J ., and Tanaka, K ., Fuzzy languages, SystemsComputers-Controls, 1(1970) 333-340 . 145 . Mizumoto, M ., Toyoda, J., and Tanaka, K ., General formulation of formal grammars, Inform . Sci. 4(1972) 87-100 . 146 . Mizumoto, M ., Toyoda J ., and Tanaka, K ., Examples of formal grammars with weights, Inform. Proc . Letters, 2(1973) 74-78 . 147. Mizumoto, M ., Toyoda J ., and Tanaka, K ., N-fold fuzzy grammars, Inform. Sci ., 5(1973) 25-43 . 148 . Mizumota, M ., Toyoda, J ., and Tanaka, K ., Various kinds of automata with weights, Journal of Computer and System Sciences, 10(1975) 219-236 . 149 . Mizumoto, M ., Toyoda, J ., and Tanaka, K ., B-fuzzy grammars, Int. J. Comput. Math. Sect. A . 4(1975) 343-368 . 150 . Mordeson, J . N . and Nair, P.S ., Retrievability and connectedness in fuzzy finite state machines, Proceedings Fifth IEEE Conference on Fuzzy Systems, Vol. 3, (1996) 1586-1590 . 151 . Mordeson, J . N . and Nair, P.S ., Connectedness in systems theory, Proceedings Fifth IEEE Conference on Fuzzy Systems, Vol. 3, (1996) 2045-2048 .
© 2002 by Chapman & Hall/CRC
539
References
152 . Mordeson, J. N. and Nair, P.S ., Successor and source of (fuzzy) finite state machines, Inform. Sci., 95(1996) 113-124 . 153 . Mordeson, J. N . and Nair, P.S ., Fuzzy Mealy machines, 25(1996) 18-33.
Kybernets,
154 . Mordeson, J. N. and Nair, P.S ., Fuzzy Mealy machines : homomorphisms, admissible relations and minimal machines, Int . J. of Uncertainty, Fuzziness, and Knowledge-Based Systems, 4(1996) 27-43 . 155 . Mordeson, J. N. and Nair, P.S., Primaries of infinite automata, Proceedings NAFIPS 97, Can Isik and Valerie Cross, eds ., (1997) 279-282 . 156 . Mordeson, J. N. and Nair, P.S., Cartesian composition of transition spaces, J. Fuzzy Math., 6(1998) 511-521 . 157. Mukherjee, N.P. and Bhattacharya, P., Fuzzy normal subgroups and fuzzy cosets, Inform . Sci ., 34(1984) 225-239 . 158 . Nasu, M. and Honda, N., Fuzzy events realized by finite probabilistic automata, Inform . and Control, 12(1968) 284-303 . 159 . Nasu, M. and Honda, N., Mappings induced by PGSM-mappings and sine recursively unsolvable problems of finite probabilistic automata, Inform. Cont ., 15(1969) 250-273. 160 . Negoita, C.V. and Ralescu, D.A., Application Analysis, Halsted Press, New York, 1975.
of Fuzzy Sets to Systems
161 . Nikolic, Z.J. and Fu, K.S., An algorithm for learning without external supervision and its application to learning control systems, IEEE Trans . Automatic Control, AC-11(1966) 414-422 . 162 . Nikolic, Z .J. and Fu, K .S ., A mathematical model of learning in an unknown random environment, Proc . 1966 NEC, 22(1966) 607-612 . 163 . Ott, G., Theory and applications of stochastic sequential machines, Sperry Rand Res . Center, Rept. N. SRRC-RR-66-39, 1966. 164 . Page, C.V., Equivalence between probabilistic and deterministic sequential machines, Inform. and Control, 9(1966) 469-520. 165 . Paz, A., Some aspects of probabilistic automata, trol, 9(1966) 26-60 .
Inform. and Con-
166 . Paz. A., Fuzzy star functions, probabilistic automata, and their approximation by nonprobabilistic automata, Journal of Computing and System Sciences, 1(1967) 371-390 . 167. Paz, A., Homomorphisms between stochastic sequential machines and related problems, Math Systems Theory, 2 (1968) 223-245 . © 2002 by Chapman & Hall/CRC
540
References
168 . Paz, A., Introduction to Probabilistic Automata, Academic Press, New York/London, 1971. 169 . Peeva, K., Categories of Stochastic Automata, Ph.D. dissertation, Center of Applied Mathematics, Sofia, 1977. 170 . Peeva, K .G., Systems of linear equations over some ordered structures, Math. Gesellschaft DDR, Proc . Theory of Semigroups, Greifswald, 1984, 101-105 . 171 . Peeva, K., On fuzzy automata and fuzzy grammars, MTA SZT AKI, KozlemMyck, Budapest, 33(1985) 55-67. 172 . Peeva, K., On approximate reductions and minimization of automata, EECS'87, Predela, Bulgaria (1987) 27-28. 173 . Peeva, K., Categories of stochastic and fuzzy acceptors for pattern recognition, J. Kacprzyk and A. Steaszak, eds ., Proceedings IFSAEC and EUR-WG, Warsaw (1988) 286-296 . 174 . Peeva, K., Behavior, reduction and minimization offinite IL-automata, Fuzzy Sets and Systems, 28(1988) 171-181 . 175 . Peeva, K., Fuzzy acceptors for syntactic pattern recognition, Internat. J. Approximate Reasoning, 5(1991) 291-306 . 176 . Peeva, K., Equivalence, reduction, and minimization of finite automata over semirings, Theoretical Computer Science, 88(1991) 269285 . 177. Perles, M., Rabin, M .O., and Shamir, E., The theroy of definite automata, I.R .E. Trans. Comput ., EC-12(1963) 233-243 . 178 . Poincare, H., The Value of Science (1913 ; reprinted by Dover, New York, 1958), p.37. 179 . Poston, T., Fuzzy Geometry, Ph.D. thesis, University of Warwick, 1971 . 180 . Rabin, M.O ., Probabilistic automata, Inform . and Control, 6(1963) 230-245 . 181 . Rabin, M.O . and Scott, D., Finite automata and their decision problems, IBM J. Res. Develop., 3(1959) 114-125 . 182 . Rogers, H., Theory of Recursive Functions and Effective Computability, McGraw-Hill, New York, 1967. 183 . Rosenfeld, A., An Introduction to Algebraic Structures, Holden-Day, San Francisco, 1968. © 2002 by Chapman & Hall/CRC
References
54 1
184 . Rosenfeld, A ., Fuzzy groups, J. Math . Anal. Appl., 35(1971) 512-517. 185 . Rosenkrantz, D .J ., Programmed grammars and classes of formal languages, J. Assoc . Comput . Mach ., 16(1969) 107-131 . 186 . Salomaa, A ., Ann . Univ . Turkuensis, Ser . A1 69, 1964 . 187. Salomaa, A ., On finite automata with a time-variant structure, Inform . and Control, 13(1968) 85-98 . 188 . Salomaa, A ., Probabilistic and weighted grammars, Inform. and Control, 15(1969) 529-544 . 189 . Salomaa, A ., Theory of Automata, Pergamon Press, Oxford, 1969 . 190 . Salomaa, A ., On grammars with restricted use of productions, Ann. Acad. Sci. Fennicae, Vol . A .1 454(1969) 3-32 . 191 . Salomaa, A ., On some families of formal languages, Ann. Acad. Sci. Fennicae, Vol . A .1 479(1970) 3-18 . 192 . Salomaa, A ., Formal Languages, Academic Press, New York, San Francisco and London, 1973 . 193 . Santos, E .S ., Maximin automata, Inform . Control, 13(1968) 363-377. 194 . Santos, E .S ., Maximin, minimax, and composite sequential machines, J. Math. Anal. Appl., 24 (1968), 246-259 . 195 . Santos, E .S ., Maximin sequential-like machines and chains, Math. Systems Theory, 3(1969) 300-309 . 196 . Santos, E .S ., Fuzzy sequential functions, J. Cybernetics, 3(1973) 1531 . 197. Santos, E .S ., On sets of tapes acceptable by stochastic sequential machines, unknown . 198 . Santos, E .S ., Probabilistic Turing machines and computability, Proc. Amer. Math. Soc ., 22(1969) 704-710 . 199 . Santos, E .S ., Maximin sequential chains, J. Math. 26(1969) 28-38 .
Anal.
Appl .,
200 . Santos, E .S ., Fuzzy algorithms, Inform. and Control, 17(1970) 326339 . 201 . Santos, E .S ., Computability by probabilistic Turing machines, Trans. Amer. Math. Soc ., 159(1971) 165-184 . 202 . Santos, E .S ., Max-product machines, J. Math. Anal. Appl., 37(1972) 677-686 .
© 2002 by Chapman & Hall/CRC
54 2
References
203. Santos, E.S., On reductions of maximin machines, J. Math. Anal. Appl., 40(1972) 60-78. 204. Santos, E.S ., Probabilistic grammars and automata, Inform. Control, 21(1972) 27-47.
and
205. Santos, E.S ., Regular probabilistic languages, Inform . and Control, 23(1973) 58-70. 206. Santos, E.S., Context-free fuzzy languages, Inform . and Control, 26 (1974) 1-11 . 207. Santos, E.S ., Realizations of fuzzy languages by probabilistic, maxproduct and maximin automata, Inform . Sci., 8(1975) 39-53. 208. Santos, E.S., Max-product grammars and languages, Inform . Sci., 9(1975) 1-23 209. Santos, E.S ., Fuzzy automata and languages, Inform . Sci. 10 (1976) 193-197. 210. Santos, E.S., Fuzzy and probabilistic programs, Inform . (1976) 331-335.
Sci.
10
211. Santos, E.S., Regular fuzzy expressions, in Fuzzy Automata and Decision Processes, M.M. Gupta, G.N. Saridis, and B.R. Gaines, eds ., North-Holland, Amsterdam, 1977, 169-175. 212. Santos, E .S. and Wee, W.G ., General formulation of sequential machines, Inform . and Control, 12(1968) 5-10 . 213 . Sayre, K.M., Machine recognition of handwritten words: A project report, Pattern Recognition, 5(1973) 213-228 . 214. Schecke, T., Rau, G., Popp, H .-J, Kasmacher, H., Klaff, G., and
Zimmerman, H .-J, A knowledge-based approach to intelligent alarms in anesthesia, IEEE Engineering in Medicine and Biology, 10(1991) 38-43.
215 . Schutzenberger, P.M., On the definition of a family of automata, Inform . and Control, 4(1961) 245-270. 216. Scott, D., Some definitional suggestion for automata theory, J. Comput. Systems Sci., 1(1967) 187-212. 217. Shen, J. Fuzzy language on free monoid, Inform . 149-168.
Sci., 88 (1996)
218. Shyr, H .J., Free Monoids and Languages. Taipei, Taiwan, 1979 .
© 2002 by Chapman & Hall/CRC
543
References
219 . Stanat, D ., A homomorphism theorem for weighted context-free grammars, J. Comput. System Sci., 6(1972) 217-232 . 220 . Starke, P.H., Abstract Automata, North-Holland, Amsterdam, 1972. 221 . Starke, P.H. and Thiele, H., On asynchronous stochastic automata, Inform. and Control, 17(1970) 265-292 . 222 . Steimann, F. and Adlassnig, K., Clinical monitoring with fuzzy automata, Fuzzy Sets and Systems, 61(1994) 37-42 . 223 . Swain, P.H. and Fu, K.S., Stochastic programmed grammars for syntactic pattern recognition, Pattern Recognition, 4(1972) 83-100. 224 . Takaoka, T., in Proc. 3rd. Hawaii Int. 76-79.
Conf. Syst.
Sci., (1970)
225 . Tamura, S. and Tanaka, K., Learning of fuzzy formal languages, IEEE Trans . on Systems, Man and Cybernetics, SMC-3(1973) 98-102 . 226 . Thomason, M.G., Finite fuzzy automata, regular fuzzy languages, and pattern recognition, Pattern Recognition, 5(1973) 383-390 . 227. Thomason, M .G., Fuzzy syntax-directed translations, J. Cybern. 4, No.1 (1974) 87-94 . 228 . Thomason, M .G. and Marinos, P.N., Deterministic acceptors of regular fuzzy languages, IEEE Trans. Sys., Man, and Cyber., (1974) 228-230 . 229 . Thum, M. and Kandel, A., On the complexity of growth of the number of distinct fuzzy switching functions, Fuzzy Sets and Systems, 13(1984) 125-137. 230 . Tokura, N., Fujii, M., and Kasami, T., Some considerations on linear automata, Records Natl. Convention, IECE, Japan, S8-2, (1968) (in Japanese) . 231 . Topencharov, V.V. and Peeva, K.G., Equivalence, reduction and minimization of finite fuzzy automata ., J. Math. Anal. Appl., 84(1981) 270-281 . 232 . Turakainen, P., On stochastic languages, Inform. and Control, 12(1968) 304-313 . 233 . Turkainen, P. On probabilistic automata and their generalizations, Ann, Acad. Sci. Fennicae, A.L, 429(1968) 1-53. 234 . Turakainen, P., On languages representable in rational probabilistic automata, Ann. Acad. Sci . Fenn., (1969) Ser . AI, 439 . © 2002 by Chapman & Hall/CRC
544
References
235 . Turakainen, P., Generalized automata and stochastic languages, Amer. Math. Soc ., 21(1969) 303-309 .
Proc .
236 . Turakainen, P., On time-variant probabilistic automata with monitors, Ann. Univ . Turku Ser . AI, (1969), 130 . 237. Turakainen, P., Some closure properties of the family of stochastic languages, Inform. Cont., 14(1971) 319-357. 238 . Uckun, S. Model-based diagnosis in intensive case monitoring : The YAQ approach, Artificial Intelligence in Medicine, 5(1993) 31-48. 239 . von Neumann, J., Theory of Selfreproducing ed., U. of Illinois Press, Urbana, IL, 1966.
Automata,
in A.W. Burks,
240 . Wechler, W., R-fuzzy automata with a time-variant structure, in Mathematical Foundations of Computer Science, A. Blikle, ed., Lecture Notes in Computer Science, 28(1974) 73-76. 241 . Wechler, W., Zur Verallgemeinarung des Theorems von Kleene-Schutzenberger auf zeitvariable Automaten. Elektron, Informationsvera befit. Kybernetic, 11(1975) 439-445 . 242 . Wechler, W., Automaten tiber Inputkategorien, tionsverabeit. Kybernetic, 11(1975) 681-685 .
Elektron, Informa-
243 . Wechler, W., R-fuzzy grammars, in Mathematical Foundations of Computer Science, A. Blikle, ed., Lecture Notes in Computer Science, 32(1975) 450-456 . 244 . Wechler, W., A hierarchy of n-relational languages, TU-Preprint 0724-76, Technische Univ. Dresden, 1976. 245 . Wechler, W., Families of R-fuzzy languages, puter Science, 56(1977) 117-186 .
Lecture Notes
in
Com-
246 . Wechler, W., The concept of fuzziness in the theory of automata, in Modern Trends in Cybernetics and Systems, J. Rose and C . Biliciu, eds ., Springer-Verlag, Berlin, Heidelberg, New York, 1977. 247. Wechler, W., The Concept of Fuzziness Theory, Akademic-Verlag, Berlin, 1978.
in Automata and Language
248 . Wechler, W. and Dimitrov, R-fuzzy automata, in Information cessing, 74, North-Holland, Amsterdam, 1974, 657-660 .
Pro-
249 . Wee, W.G., On generalizations of adaptive algorithm and application of the fuzzy sets concept to pattern classification, Ph.D. dissertation, Purdue University, Lafayette, IN, 1967. © 2002 by Chapman & Hall/CRC
545
References
250 . Wee, W.G., and Fu, K.S ., A formulation of fuzzy automata and its application as a model of learning systems, IEEE Trans . on Systems Science and Cybernetics, SSC-5(1969) 215-223 . 251 . Windeknechet, T.G., General Dynamical Processes, Introduction, Academic Press, New York, 1971. 252 . Winograd, S., Input error limiting automata, J. Mach ., 11(1964) 338-351 .
A Mathematical
Assoc .
253 . Yeh, R.T., On the relational homomorphisms of automata, trol, 13(1968) 140-155 .
Comput. Inf. Con-
254 . Yuan, B., Homomorphisms and isomorphisms of fuzzy subalgebras, J. Shanghai Teachers Univ., 2(1987) 1-9 . 255 . Zadeh, L.A., Fuzzy sets,
Inform. and Control,
8(1965) 338-353 .
256 . Zadeh, L. A ., Fuzzy sets and systems, Symposium on System Theory, Polytechnic Institute of Brooklyn, New York, 29 - 37 (1965) . 257. Zadeh, L.A., Toward a theory of fuzzy systems, ERL Rept ., No .69-2, Electronics Research Laboratories, University of California, Berkeley, 1969. 258 . Zadeh, L.A., Fuzzy languages and their relation to human and machine intelligence, Electronics Research Laboratories, University of California, Berkeley, Rep . ERL-M302, August 1971. 259 . Zadeh, L.A., Toward a theory of fuzzy systems, in Aspects of Network and System Theory, R.E. Kalman and N. Declaris, eds ., Holt, Rinehart & Winston, New York, 1971. 260 . Zadeh, L.A ., Quantitative fuzzy semantics, Inform . 176 .
Sci.,
3(1971) 159-
261 . Zadeh, L.A., Fuzzy languages and their relation to human and machine intelligence, M. Marinos, ed., Man and Computer, Proc . Int. Conf. Bordeaux, Paris, 1970, Karger, Basel, 1972, 130-165 . 262 . Zadeh, L.A., The concept of a linguistic variable and its application to approximate reasoning, Memo. ERL-M 411, Univ. of California, Berkeley, California, 1973. 263 . Zadeh, L.A., Fuzzy logic and approximate reasoning, 407-428 . 264 . Zariski, O. and Samuel, P., Nostrand Reinhold, 1958 . © 2002 by Chapman & Hall/CRC
Synthese,
Commutative Algebra, Vol .
I,
30(1975) D Van
54 6
References
265 . Zeeman, E .C ., in Topology of 3-manifolds, K . Fort, ed ., Prentice-Hall, Englewood Cliffs, NJ, 1961, 240-256 . 266 . Zimmermann, H .-J, Fuzzy Set Theory and its Applications, Kluwer Academic Publishers, Boston, 1991 .
© 2002 by Chapman & Hall/CRC