The purpose of present work is to introduce and study two minimal realizations for a given fuzzy behaviour in bicategory-theoretic setup. One such realization is based on Myhill Nerode’s theory, while the other realization is based on derivative of the given fuzzy behaviour. It is shown here that there exists a unique 2-cell in bicategory of crisp deterministic fuzzy machines between both the realizations.
From the beginning of the theory of fuzzy sets by Zadeh [23], fuzzy automata, fuzzy machines and languages are introduced and studied as a means for bridging the gap between the precision of computer languages and vagueness. Such studies were initiated by Santos [4] and Wee [38]. Later, these concepts were studied and developed by many researchers (cf., [6, 40]). The works done in [2,3,7,13,14,28,30,39,41,43,45, 2,3,7,13,14,28,30,39,41,43,45] are towards the recent development in the abovementioned area. Among these studies, the concept of a crisp deterministic fuzzy automaton (deterministic automaton equipped with fuzzy set of final states) was introduced and studied in [13,30,43, 13,30,43]. The importance of such automaton is justified from the fact that (i) a fuzzy language is accepted by some fuzzy automaton iff it is accepted by some crisp deterministic fuzzy automaton (cf., [30]), and (ii) the Nerode automaton of a fuzzy automaton is a crisp-deterministic fuzzy automaton equivalent to given fuzzy automaton(cf., [14]). Also, the minimization of fuzzy automata and fuzzy machines was studied in [5, 37]. The basic idea in these cited papers was to reduce the number of states of a fuzzy automaton/machines by computing and merging indistinguishable states.
The usefulness of certain ideas, concepts and tools from category theory in the design of functional and imperative programming languages, implementation techniques for functional languages, semantic models of programming languages, the development of algorithms, polymorphism and in the development of many aspects of theoretical computer science is well-known [1]. In theoretical computer science, there have been many research dealing with the categorical approach to automata theory (cf., [10, 36]). Among these studies, one of the famous result is the construction of minimal realization for a given behaviour by using the categorical theory (cf., [10]). Similar to category theory, bicategory theory (a concept which generalizes many familiar notions existing in the category theory (cf., [12]) has also been used in the realization theory of automata [31]. In continuation, the usefulness of category theory in the study of fuzzy automata was reported in [8, 44]. In this paper, we use the concepts of bicategory for the study of minimal crisp deterministic fuzzy machine for a given fuzzy behaviour (a concept almost identical to fuzzy language). Specifically, we construct two minimal crisp deterministic fuzzy machines for a given fuzzy behaviour by different approaches and show that there exists a unique 2-cell between them in the bicategory of crisp deterministic fuzzymachines.
Preliminaries
In this section, we recall the concepts associated with fuzzy automata, deterministic fuzzy automata and fuzzy behaviours (fuzzy languages) introduced in [18, 30]. The fuzzy sets considered in this paper are in the sense of [9], i.e., a fuzzy set λ on a set X is a map λ : X → L,where L is a poset. Also, for a nonempty set X, X* denotes the free monoid generated by X. We shall denote by ɛ, the identity element of X*.
We begin with the following concept of a fuzzy automaton from [18].
Definition 2.1. A fuzzy automaton is a 5-tuple M = (Q, X, δ, q0, τ), where Q and X are nonempty finite sets, called the set of states and the set of inputs, respectively, δ is a fuzzy subset of Q × X × Q, q0 ∈ Q is initial state and τ is a fuzzy subset of Q, called the fuzzy set of final states.
In [18], it has been shown that the transition function δ : Q × X × Q → L can be extended to δ : Q × X* × Q → L such that ∀p, q ∈ Q, ∀u ∈ X*, and ∀x ∈ X,
Definition 2.2. A crisp deterministic fuzzy automaton is a 5-tuple M = (Q, X, δ, q0, τ), where Q and X are nonempty finite sets, called the set of states and the set of inputs, respectively, δ : Q × X → Q is a map, called transition function, q0 ∈ Q is initial state and τ is a fuzzy subset of Q, called the fuzzy set of final states.
Definition 2.3. A fuzzy language f : X* → L
is accepted by a fuzzy automaton (Q, X, δ, q0, τ) if f (w) = ∨ {δ* (q0, w, p) ∧ τ (p) : p ∈ Q}, for all w ∈ X*, and
is accepted by a crisp deterministic fuzzy automaton (Q, X, δ, q0, τ) if f (w) = τ (δ*(q0, w)), for all w ∈ X*.
Regarding the equivalence between the concepts of a fuzzy automaton and a deterministic fuzzy automaton in terms of acceptance of a fuzzy language, the following has been shown in [30].
Proposition 2.1.A fuzzy language is accepted by some fuzzy automaton iff it is accepted by some crisp deterministic fuzzy automaton.
In view of the study of fuzzy machines, several researchers [4, 42] have included the set of output and a (fuzzy) output map instead of fuzzy set of final states in the definition of a fuzzy automaton. In this paper, we work with such crisp deterministic fuzzy machines.
Bicategory of crisp deterministic fuzzy machines
In this section, we introduce the concepts associated with crisp deterministic fuzzy machines and fuzzy behaviours. Throughout, we use the category Set of sets as base category.
We begin with the following.
Definition 3.1. Let X and Y be two sets. A crisp deterministic fuzzy machine is a 4-tuple M = (Q, δ, q0, β), where
Q is a nonempty set called the state-set.
α : Q × X → Q is a map called transition map.
β : Q × Y → L is a map called fuzzy output map.
q0 ∈ Q is a fixed state called the initial state.
For crisp deterministic fuzzy machine M = linebreak (Q, δ, q0, β), the sets X and Y are respectively called, the input-set and the output-set.
Proposition 3.1.The class of objects of Set and arrows as crisp deterministic fuzzy machines forms abicategory.
Proof. Let A be the class of Set-objects and for X, Y∈ Set the arrows from X to Y are (Q, α, β, q0), where α : Q × X → Q, β : Q × Y → L and q0 : 1 → Q are maps. Then the identity arrow on X is (1, tα, tβ, 1), where tα : 1 × X → 1 and tβ : 1 × X → L are maps. 2-cells, composition of arrows, vertical and horizontal composition of two cells in are given as follows:
2-cells from (Q, α, β, q0) to are arrows h : Q → Q′ of Set such that the diagrams in Fig. 1 commute. Here, we have identified q0 in Q with the map from one element set 1 to Q which has {q0} for its image, h × X : Q × X → Q′ × X is a map such that (h × X) (q, x) = (h (q) , x) and h × Y : Q × Y → Q′ × Y is a map such that (β′ ∘ (h × Y)) (q, y) = β′ (h (q) , y) ≥ β (q, y).
For two arrows (Q, α, β, q0) : X → Y and , their composition is an arrow
,where (Q× α′) (α × S × Y) : Q × S × X × Y → Q × S is a map such that the diagram in Figure 2 commutes and β ∘ β′ : Q × S × Y × Z → L is a map such that (β ∘ β′) (q, s, y, z) = β (q, y) ∧ β′ (s, z).
The vertical composition of 2-cells
and is an arrow of Set such that the diagrams in Fig. 3 commute.
For two crisp deterministic fuzzy machines
(Q, α, β, q0) : X → Y and (S, γ, δ, s0) : Y → Z, the horizontal composition of 2-cells
and is <h, g > : Q × S → Q′ × S′ such that the diagrams in Fig. 4 commute.
Hence A is a bicategory.
Remark 3.1. For X, Y∈ Set, denotes the set of all crisp deterministic fuzzy machines having input-set X and output-set Y.
Definition 3.2. For a given , the free extension α* of α is the map α* : Q × X* → Q such that
α* (q, ɛ) = q,
α* (q, wx) = α (α* (q, w) , x) , ∀ q ∈ Q, w ∈ X* and x ∈ X.
Now, we have the following.
Proposition 3.2.Let and be a 2-cell in A. Then φ (α* (q, w)) = α′* (φ (q) , w), ∀w ∈ X* and q ∈ Q.
Reachability of a crisp deterministic fuzzy machine means that all of its states should be reached from the initial state, i.e., is said to be reachable if for each q ∈ Q there exists w ∈ X* such that α* (q0, w) = q. Which in terms of the reachability map can be characterized as the following.
Proposition 3.3.(Q, α, β, q0) in is reachable iff r is onto.
Remark 3.3. For X, Y∈ Set, denotes the set of all reachable crisp deterministic fuzzy machines having input-set X and output-set Y.
Definition 3.4. For , the reachable kernel of M is R (Q, α, β, q0) = (QR, αR, βR, q0), where QR = {q ∈ Q : ∃ w ∈ X*, such that α* (q0, w) = q}, and αR, βR are restrictions of α and β on QR × X and QR × Y, respectively.
Proposition 3.4.Let and . Then the assignment rQS (q, s) = (q, s) , ∀ q ∈ Q and s ∈ S defines a 2-cell , in A.
Proof. In order to show that rQS is a 2-cell in A, it is enough to show that the diagrams in Fig. 5 commute. Now, to show the commutativity of the square (A) in Fig. 5, let ((q, s) R, x, y) ∈ (Q × S) R × X × Y. Then we haveand
Thus . Hence the Square (A) in Fig. 5 commutes. Again, to show the commutativity of the Triangle (B) in Fig. 5, let ((q, s) R, y, z) ∈ (Q × S) R × Y × Z. Then we have
Now, we introduce the concept of fuzzy behaviour for arbitrary sets.
Definition 3.5. For X, Y∈ Set, the fuzzy behaviour from X to Y is a map f : X* × Y → L.
In case of crisp deterministic fuzzy machines, the concept of fuzzy behaviour may be stated as follows.
Definition 3.6. Let . The fuzzy behaviour (in state q) of (Q, α, β, q0) is a map Eq ((Q, α, β, q0)) : X* × Y → L such that Eq ((Q, α, β, q0)) (w, y) = β (α* (q, w) , y) , ∀ w ∈ X*, y∈Y. Also, the fuzzy behaviour (in state q0), i.e., Eq0 ((Q, α, β, q0)) is called the fuzzy behaviour of (Q, α, β, q0), and is simply denoted by E ((Q, α, β, q0)).
Remark 3.4. It can be seen easily that E ((Q, α, β, q0)) linebreak = β ∘ (r × Y).
Proposition 3.5.Let be a 2-cell in A. Then
Proof. We prove this by induction on the length of strings in X*. For this, let w ∈ X* and y ∈ Y. Then for |w|=0,
Thus the result holds for |w|=0. We now assume that the result is true for all strings of length less than or equal to n, i.e., for all w ∈ X* such that |w| ≤ n, . Then for x ∈ X,
Hence the result holds for |w| = n + 1.
Definition 3.7. (a) Given , the observability mapσ is a map σ : Q → LX* such that σ (q) = Eq ((Q, α, β, q0)) , ∀ q ∈ Q.
(b) (Q, α, β, q0) is called observable, if σ is one-one.
(ii) The observability of tells that different fuzzy behaviours are assigned to distinct states.
We close this section by introducing the following concept of minimal realization (minimal crisp deterministic fuzzy machine) for a given fuzzy behaviour.
Definition 3.8. is a realization for fuzzy behaviour f, if E ((Q, α, β, q0)) = f. Further, the realization (Q, α, β, q0) is minimal, if it is both reachable and observable.
Minimal realization for fuzzy behaviour
In this section, we introduce and study the concept of minimal realizations for a given fuzzy behaviour in bicategory-theoretic setup. The construction of first realization is based on Myhill Nerode’s theory while that of other is based on the derivative of given fuzzy behaviour. Finally, we show that there exists a 2-cell between both of the minimal realizations in .
Proposition 4.1.Given a fuzzy behaviour f : X* × Y → L there exists a minimal realization in which realizes f.
Proof. Define a relation ∼f on X* by w1 ∼ fw2 iff f (w1w, y) = f (w2w, y), for all w ∈ X* and y ∈ Y. Then ∼f is an equivalence relation on X*. Now, let Qf = X*slash ∼ f = {[w] f : w ∈ X*}, where [w] f = {w′ ∈ X* : w ∼ fw′} and define the maps αf : Qf × X → Qf and βf : Qf × Y → L such that αf ([w] f, x) = [wx] f and βf ([w] f, y) = f (w, y). The maps αf and βf are well defined as for w1, w2 ∈ X* such that [w1] f = [w2] f, we haveand
Thus Nf = (Qf, αf, βf, [ɛ] f)∈ . Now, let w ∈ X* and y ∈ Y. Thenor that, E ((Qf, αf, βf, [ɛ] f)) = f, whereby Nf is a realization for f.
Finally, to prove the minimality of realization Nf, let [w] f ∈ Qf. Then . Thus r is onto, and so Nf is reachable. Also, let w1, w2 ∈ X* such that σ ([w1] f) = σ ([w2] f). Then E[w1]f (Nf) = E[w2]f (Nf). Now, for all (w, y) ∈ X* × Y,whereby σ : Qf → LX*×Y is one-one. Hence Nf is minimal.
Example 4.1. Let L = [0, 1] and X* = {0, 1, 2 . . .} = Y. Obviously, (X*, +) is a free monoid. Define f : X* × Y → L such that ∀x ∈ X*, ∀ y ∈ Y,
Then it can be seen that the deterministic fuzzy automaton, which realizes f is Nf = (Qf, δf, [0] , βf), where Qf = {[0] , [1]}, δf ([w] , y) = [w + y] , ∀ w ∈ X*, ∀ y ∈ Y and for all [w] ∈ Qf and for all y ∈ Y,
Proposition 4.2.Let . Then there exists a unique 2-cell from (Q, α, β, q0) to Nf = (Qf, αf, βf, [ɛ] f) in iff E ((Q, α, β, q0)) = f.
Proof. Let . Then from Proposition 4.1, E ((Q, α, β, q0)) = Elinebreak (Nf) = f.
Conversely, let E ((Q, α, β, q0)) = f and define a map such that , for some w ∈ X* iff α* (q0, w) = q. Obviously, is well defined. In order to show that define a 2-cell it is enough to show that the diagrams in Fig. 6 commute. Now, let q ∈ Q and x ∈ X. Then
Thus , or that the Square (A) in Fig. 6 commutes. Also, the commutativity of Triangle (B) in Fig. 6 follows from the fact that for all q ∈ Q and for all y ∈ Y,
, i.e., (βf∘. To prove the uniqueness of , let be another such 2-cell in . In order to show that , we use the method of induction on the length of strings in X*. Let w ∈ X* such that |w|=0. Then . Thus holds for all states reachable from q0 for all w ∈ X* such that |w|=0. We now assume that on all states reachable from q0 by words of length less than or equal to n, i.e., for all w ∈ X* such that |w| ≤ n. Then for x ∈ X such that α* (q0, wx) = q,whereby on all states reachable from q0 by words of length n + 1. Hence .
Now, we introduce the following concept of derivative of a fuzzy behaviour.
Definition 4.1. For a given fuzzy behaviourf : X* × Y → L, the derivative of f with respect to u ∈ X* is a map fu : X* × Y → L such that fu (v, y) = f (uv, y), for every v ∈ X*, y ∈ Y.
For a given fuzzy behaviour f : X* × Y → L, we put Qf = {fu : u ∈ X*}.
Proposition 4.3.Given a fuzzy behaviour f : X* × Y → L there exists a crisp deterministic fuzzy machine whose fuzzy behaviour is f.
Proof. Let f : X* × Y → L. Define the maps αf : Qf × X → Qf and βf : Qf × Y → L such that αf (fu, x) = fux and βf (fu, y) = fu (ɛ, y) = f (u, y). The maps αf and βf are well defined which can be shown as follows.
Let fu, fv ∈ Qf be such that fu = fv, where u, v ∈ X*. Thenwhereby αf is well defined. Also, for y ∈ Y,whereby βf is well defined.
Thus . Also, by induction it is easy to verify that αf can be extended to αf* : Qf × X* → Qf such that αf* (fu, w) = fuw, for every fu ∈ Qf, w ∈ X*.
Finally, to prove that the behaviour of is f, let w ∈ X* and y ∈ Y. Then
Hence E (Nf) = f.
Proposition 4.4.Let . Then there exists a unique 2-cell from (Q, α, β, q0) to Nf = (Qf, αf, βf, fɛ) in A iff E (Q, α, β, q0) = f.
Proof. Let . Then, from Lemma 2.2 and Proposition 2.2,
E ((Q, α, β, q0)) = E (Nf) = f.
Conversely, let E ((Q, α, β, q0)) = f. Define a map such that , for some u ∈ X* iff α* (q0, u) = q for all q ∈ Q. Obviously, is well defined. In order to show that define a 2-cell it is enough to show that the diagrams in Figure 7 commute.
Now, let q ∈ Q and x ∈ X. Then
Thus , for all (q, x) ∈ linebreakQ × X. Hence Square (A) in Fig. 7 commutes.
The commutativity of Triangle (B) in Fig. 7 follows from the fact that for all q ∈ Q and for all y ∈ Y,To show the uniqueness of , let be another such 2-cell. In order to show that , we use method of induction on the length of the strings in X*. Let such that |w|=0. Then , i.e., holds for all states reachable from q0 by words of length zero. We now assume that on all states reachable from q0 by words of length less than or equal to n, i.e., for all string w such that |w| ≤ n, so for any x ∈ X such that α* (q0, wx) = q, we havewhereby on all states reachable from q0 by words of length n + 1. Hence .
Proposition 4.5.For a given fuzzy behaviour f : X* × Y → L, there exists a unique 2-cell from Nf = (Qf, αf, βf, [ɛ] f) to Nf = (Qf, αf, βf, fɛ) in A.
Proof. Follows from Proposition 3.4.
Conclusion
In this paper, we have tried to introduce and study the concepts of two minimal realizations for a given fuzzy behaviour in bicategory theoretic setup. Interestingly, we have shown that there exist a unique 2-cell in bicategory between both the minimal realizations. Here, we have worked with the crisp deterministic fuzzy automata, in which the fuzziness is due to the consideration of fuzzy output map, while such works for fuzzy automata with fuzzy transition maps is still to be done. We will try to handle it in near future.
Acknowledgments
The authors are greatly indebted to the the referees for their valuable observations and suggestions for improving the paper.
References
1.
PierceB.C., Basic Category Theory for Computer Scientists, The MIT Press, Cambridge, 1991.
2.
QiuD., Automata theory based on complete residuated latticevalued logic(I), Science in China44 (2001), 419–429.
3.
QiuD., Automata theory based on complete residuated latticevalued logic(II), Science in China45 (2002), 442–452.
4.
SantosE.S., Max-product machines, Journal of Mathematical Analysis and Applications37 (1972), 677–686.
5.
LeiH. and LiY.M., Minimization of states in automata theory based on finite lattice-ordered monoids, Information Sciences177 (2007), 1413–1421.
6.
KumbhojkarH.V. and ChaudhriS.R., On proper fuzzification of fuzzy finite state machines, International Journal of Fuzzy Mathematics4 (2008), 1019–1027.
7.
XingH., QiuD., LiuF. and FanZ., Equivalence in automata theory based on complete residuated lattice-valued logic, Fuzzy Sets and Systems158 (2007), 1407–1422.
8.
XingH. and QiuD., Automata theory based on complete residuated lattice-valued logic: A categorical approach, Fuzzy Sets and Systems160 (2009), 2416–2428.
9.
GoguenJ.A., L-fuzzy sets, Journal of Mathematical Analysis and Applications18 (1967), 145–174.
10.
GoguenJ.A., Minimal realization of machines in closed categories, Bulletin of American Mathematical Society78 (1972), 777–783.
11.
AdamekJ. and TrnkovaV., Automata and Algebras in Categories, Kluwer, 1990.
12.
BénabouJ., Introduction to bicategories, Reports of the Midwest Category Seminar, Lecture Notes in Mathematics47 (1967), 1–77.
13.
IgnjatovićJ., ĆirićM. and BogdanovićS., Determinization of fuzzy automata with membership values in complete residuated lattices, Information Sciences178 (2008), 164–180.
14.
IgnjatovićJ., ĆirićM., BogdanovićS. and PetkovićT., Myhill- Nerode type theory for fuzzy languages and automata, Fuzzy Sets and Systems161 (2010), 1288–1324.
15.
MočkořJ., A category of fuzzy automata, International Journal of General Systems20 (1991), 73–82.
16.
MočkořJ., Fuzzy and non-deterministic automata, Soft Computing3 (1999), 221–226.
17.
MočkořJ., Semigroup homomorphisms and fuzzy automata, Soft Computing6 (2002), 423–427.
18.
MordesonJ.N. and MalikD.S., Fuzzy Automata and Languages: Theory and Applications, Chapman and Hall/CRC. London/Boca Raton, 2000.
19.
AbolpourK. and ZahediM.M., Isomorphism between two BLgeneral fuzzy automata, Soft Computing16 (2012), 103–118.
20.
PeevaK.G., Behaviour, reduction and minimization of finite L-automata28 (1988), 171–181.
21.
PeevaK., Finite L-fuzzy machines, Fuzzy Sets and Systems141 (2004), 415–437.
22.
PeevaK. and ZaharievZ.l., Computing behavior of finite fuzzy machines-Algorithm and its application to reduction and minimization178 (2008), 4152–4165.
23.
ZadehL.A., Fuzzy sets, Information and Control8 (1965), 338–353.
24.
ArbibM.A. and ManesE.G., Machines in a category: An expository introduction, SIAM Review16 (1974), 163–192.
25.
ArbibM.A. and ManesE.G., Basic concepts of category theory applicable to computation and control, Proc First International Symposium AMherst MA, Lecture Notes in Computer Science25 (1975), 2–41.
26.
ArbibM.A. and ManesE.G., A categorist’s view of automata and systems, Proc First International Symposium AMherst MA, Lecture Notes in Computer Science25 (1975), 62–78.
27.
BarrM. and WellsC., Category Theory for Computing Science, Prentice-Hall International (UK) Limited, Englewood Cliffs, NJ, 1996.
28.
DoostfatemehM. and KremerS.C., New Directions in Fuzzy Automata38 (2005), 175–214.
29.
BasakN.C. and GuptaA., On quotient machines of a fuzzy automaton and the minimal machine, Fuzzy Sets and Systems125 (2002), 223–229.
30.
BělohlávekR., Determinism and fuzzy automata, Information Sciences143 (2002), 205–209.
31.
RosebrughR., SabadiniN. and WaltersR.F.C., Minimal realization in bicategories of automata, Mathematical Structures in Computer Science8 (1998), 93–116.
32.
EilenbergS., Automata, Languages and Machines: A, Academic Press, New York, 1974.
33.
TiwariS.P., YadavV.K. and SinghA.K., Construction of a minimal realization and monoid for a fuzzy language: A categorical approach, Journal of Applied Mathematics and Computing47 (2014), 401–416.
34.
PetkovićT., Congruences and homomorphisms of fuzzy automata, Fuzzy Sets and Systems157 (2006), 444–458.
35.
TrnkováV., Automata and categories, Lecture Notes in Computer Science32 (1975), 160–166.
36.
TrnkováV., Relational automata in a category and their languages, Lecture Notes in Computer Science56 (1977), 340–355.
37.
ChengW. and MoZ., Minimization algorithm of fuzzy finite automata, Fuzzy Sets and Systems141 (2004), 439–448.
38.
WeeW.G., On generalizations of adaptive algorithm and application of the fuzzy sets concept to pattern classification, Ph. D. Thesis, Purdue University, Lafayette, IN, 1967.
39.
LihuaW. and QiuD., Automata theory based on complete residuated lattice-valued logic: Reduction and minimization, Fuzzy Sets and Systems161 (2010), 1635–1656.
40.
KimY.H., KimJ.G. and ChoS.J., Products of T-generalized state machines and T-generalized transformation semigroups, Fuzzy Sets and Systems93 (1998), 87–97.
41.
LiY. and PedryczW., Fuzzy finite automata and fuzzy regular expressions with membership values in lattice-ordered monoids, Fuzzy Sets and Systems156 (2005), 68–92.
42.
LiY. and PedryczW., The equivalence between fuzzy Mealy and fuzzy Moore machines, Soft Computing10 (2006), 953–959.
43.
LiY. and PedryczW., Minimization of lattice finite automata and its application to the decomposition of lattice languages, Fuzzy Sets and Systems158 (2007), 1423–1436.
44.
LiY.M., A categorical approach to lattice-valued fuzzy automata, Fuzzy Sets and Systems156 (2006), 855–864.
45.
JančićZ. and ĆirićM, Brzozowski type determinization for fuzzy automata, Fuzzy Sets and Systems249 (2014), 73–82.