Journal of Applied Mathematics Volume 2012, Article ID 804623,9pages doi:10.1155/2012/804623
Research Article
A Remark on Myhill-Nerode Theorem for Fuzzy Languages
Shou-feng Wang
School of Mathematics, Yunnan Normal University, Yunnan, Kunming 650500, China
Correspondence should be addressed to Shou-feng Wang,[email protected] Received 21 May 2012; Accepted 4 August 2012
Academic Editor: Abdel-Maksoud A. Soliman
Copyrightq2012 Shou-feng Wang. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
Regular fuzzy languages are characterized by some algebraic approaches. In particular, an extended version of Myhill-Nerode theorem for fuzzy languages is obtained.
1. Introduction
Fuzzy sets were introduced by Zadeh in1and since then have appeared in many fields of sciences. They have been studied within automata theory for the first time by Wee in2. More on recent development of algebraic theory of fuzzy automata and formal fuzzy languages can be found in the book Mordeson and Malik3, the texts Malik et al.4,5, and Petkovi´c6.
A fuzzy language is called regular if it can be recognized by a fuzzy automaton. In the texts Mordeson and Malik3, Petkovi´c6, Ignjatovic et al.7, and Shen8, regular fuzzy languages have been characterized by the principal congruencesprincipal right congruences, principal left congruencesdetermined by fuzzy languages, which are known as Myhill-Nerode theorem for fuzzy languages. Moreover, Petkovi´c 6 also considered the varieties of fuzzy languages and Ignjatovic and Ciric9considered regular operations of fuzzy languages.
Recently, Wang et al.10generalized the usual principal congruencesresp., principal right congruences, principal left congruencesto some kinds of generalized principal congru- encesresp., generalized principal right congruences, generalized principal left congruencesdeter- mined by crisp languages by using prefix-suffix-free subsetsresp., prefix-free languages, suffix- free languagesand obtained some characterizations of regular crisp languages.
In this note, we will realize the idea of the text10for fuzzy languages. In other word, we characterize regular fuzzy languages by some kinds of generalized principal congruences resp., generalized principal right congruences, generalized principal left congruences
determined by fuzzy languages. In particular, we obtain an extended version of Myhill- Nerode theorem for fuzzy languages.
2. Preliminaries
Throughout the paper,Ais a finite set which is called an alphabet andA∗is the free monoid generated byA, that is, the set of all words with letters fromA. The empty word is denoted by 1. The length of a wordwinA∗ is the number of letters appearing inw and is denoted by|w|. The complement of a subsetL ofA∗is the setL {w ∈ A∗ | w /∈ L}. A subsetL of A∗is cofinite ifLis finite. A nonempty subsetSofA∗ is called a suffix-free language overAif no element inSis a suffix of another element inS. Prefix-free languages overAcan be defined dually. On the other hand, a nonempty subsetLofA∗is called a prefix-closed language overA if any prefix of an element inLis also inL.
As an analogue of prefix-free languages and suffix-free languages overA, Wang et al.
10introduced prefix-suffix-free subsets ofA∗ ×A∗. A subset Δof the setA∗ ×A∗ is called a prefix-suffix-free subset if for all wordss, t, x, yinA∗, the following holds: if boths, tand sx, ytare inΔ, thenxy1.
An equivalenceρonA∗is called a right congruence ifxρyimplies thatxzρyzfor any x, y, z∈A∗. A left congruences can be defined dually. An equivalence is a congruence if it is a right congruence and also a left congruence.
A fuzzy subsetα of a setX is a mappingα : X → 0,1. By∧and ∨ infimum and supremum in the unit segment0,1will be denoted, respectively. Every elementyofXcan be considered as the following fuzzy subset ofX:
yx 1 forxy, yx 0 for x /y. 2.1
A fuzzy language overAis a fuzzy subset ofA∗. A fuzzy language is regular if it is recognizable by a fuzzy automaton from the book3. For a fuzzy languageλoverA, the relations defined onA∗by the following:
xPλryif λxu λ yu
for everyuinA∗, xPλly ifλux λ
uy
for everyuinA∗, xPλyif λuxv λ
uyv
for everyu, v∈A∗,
2.2
are called the principal right congruence resp., principal left congruence, principal congruence determined byλ, respectively.
Now, we state the well-known Myhill-Nerode theorem for fuzzy languages which gives some algebraic characterizations for regular fuzzy languages. Recall that the index of an equivalenceρonA∗is the number ofρ-classes ofA∗.
Theorem 2.1see3,6,8, Myhill-Nerode theorem. For a fuzzy languageλoverA, the following statements are equivalent:
1λ is regular.
2Pλis of finite index.
3Pλris of finite index.
4Pλlis of finite index.
In the sequel, we recall some operations of fuzzy languages. For two fuzzy languages λ1 andλ2 overA, the union, intersection, product, and left and right quotients ofλ1 andλ2are defined, respectively, by the following:
λ1∪λ2w λ1w∨λ2w, λ1∩λ2w λ1w∧λ2w, λ1λ2w
xyw
λ1x∧λ2
y
λ−11 λ2
w
u∈A∗
λ2uw∧λ1u, λ2λ−11
w
u∈A∗
λ2wu∧λ1u.
2.3
Further, we also define left-right quotient of three fuzzy languagesλ1,λ2andλoverAby the following:
λ−11 λλ−12
w λ−11 λ
λ−12
w. 2.4
Observe thats−1λt−1w λswtfor anys, t, w∈A∗with the above notations.
On regular fuzzy languages, we have the following.
Lemma 2.2see6. Finite unions, intersections, products, and left-right quotients of regular fuzzy languages overAare regular.
3. Main Result
In this section, we shall introduce some kinds of generalized principal resp., right, left congruences determined by fuzzy languages by using prefix-suffix-free subsetsresp., prefix- free languages, suffix-free languages and give an extended version of Myhill-Nerode theorem for fuzzy languages.
Now, letPbe a prefix-free language,Sbe a suffix-free language overA,Δbe a prefix- suffix-free subset ofA∗×A∗, andλ be a fuzzy language overA, respectively. For a prefix- suffix-free subsetΔ, denote
ΩΔ sx, yt
|s, t∈Δ, x, y∈A∗
, NΔ
s,t∈Δ
sA∗t. 3.1
Define the following relations onA∗:
xPP,λlyifλux λ uy
for everyuinPA∗, xPS,λryif λxu λ
yu
for everyuinA∗S, xPΔ,λyif λuxv λ
uyv
for everyu, vinΩΔ, xPF,S,λr yif there exists some finite subsetF of A∗such that
λxu λ yu
for everyuinFA∗S,
xPF,P,λl yif there exists some finite subset F ofA∗such that λux λ
uy
for everyuinPA∗F.
3.2
Then we have the following observations.
Proposition 3.1. The abovePS,λr, PF,S,λr resp.,PP,λl, PF,P,λl ; PΔ,λ are right congruences (resp., left congruences; congruence) onA∗. Furthermore,
Pλr⊆PS,λr⊆PF,S,λr , Pλl ⊆PP,λl ⊆PF,P,λl , Pλ⊆PΔ,λ. 3.3
Proof. It is easy to check that PS,λr resp.,PP,λl is a right resp., left congruence, PΔ,λ is a congruence, and
Pλr⊆PS,λr⊆PF,S,λr , Pλl⊆PP,λl ⊆PF,P,λl , Pλ⊆PΔ,λ 3.4
by their definitions. In the sequel, we show thatPF,S,λr is a right congruence and PF,P,λl is a left congruence. Clearly, bothPF,S,λr andPF,P,λl are equivalences. Now, letx, ybe two words inA∗andxPF,S,λr y. Then there exists a finite subsetFofA∗such thatλxu λyufor any uinFA∗S. Now, letzbe a word inA∗ andFbe the union of{w ∈ A∗ | zw ∈F}and{1}.
Thenzuis inFA∗Sfor anyuinFA∗S. This implies thatλxzu λyzufor anyuinFA∗S whencexzPF,S,λr yzsinceFis finite. Thus,PF,S,λr is a right congruence. Dually,PF,P,λl is a left congruence.
Remark 3.2. Note that the above inclusions are all proper in general. For example, let A {a}, S{a2}andF {1, a, a2, a3}. ThenFA∗S A∗a5. Define a fuzzy language overAas follows:
λw α forw∈ a2, a3
, λw β forw∈A∗\ a2, a3
, 3.5
whereα, βare in0,1andα /β. Then we have a3, a4
/
∈Pλr, a3, a4
∈PS,λr, 1, a2
/
∈PS,λr, 1, a2
∈PF,S,λr . 3.6
Similarly, we can show that the remainder inclusions are all proper.
To obtain our main result, we need a series of lemmas. First, we recall the following alphabetic order “≤” on A∗: For two words u and v in A∗ with different lengths,u < v if
|u|<|v|, for two words with same length, the order is the lexicographic order. Observe that the alphabetic order is a well order onA∗. We have the following result.
Lemma 3.3. LetLbe an infinite prefix-closed language overA. Then there exists an infinite subset {1, a1, a1a2, . . . , a1a2, . . . , an, . . .}ofL, whereai∈A.
Proof. Denote
PrefAL a∈A|
∃y∈A∗
ay∈L
. 3.7
Observe thatAis finite andLis infinite, there existsL1⊆Landa1∈Asuch thatL1is infinite and PrefAL1 {a1}. Denote
a−11 L1{w∈A∗|a1w∈L1}. 3.8
Thena−11 L1is infinite. Hence, there also existsL2 ⊆a−11 L1anda2 ∈Asuch thatL2 is infinite and PrefAL2 {a2}. In general, for any positive integern, there existsLn1 ⊆ a−1n Lnand an1∈Asuch thatLn1is infinite and PrefALn1 {an1}. Let
C{1, a1, a1a2, a1a2a3, . . . , a1a2a3· · ·an, . . .}. 3.9
Clearly,Cis infinite. We claim thatC⊆L. Leta1a2a3· · ·an∈C. Observe that Ln ⊆a−1n−1Ln−1⊆a−1n−1a−1n−2Ln−2⊆ · · · ⊆a−1n−1a−1n−2· · ·a−11 L1 a1a2· · ·an−1−1L1,
{an}PrefALn⊆PrefA
a1a2· · ·an−1−1L1
. 3.10
Therefore, there exists y ∈ A∗ such that any ∈ a1a2· · ·an−1−1L1. And hence, a1a2· · ·an−1any ∈ L1 ⊆ L. SinceL is prefix-closed, a1a2· · ·an−1an ∈ L. This implies that C⊆L.
Lemma 3.4. Letρbe a right congruence onA∗and{Li|i∈I}be the set of allρ-classes ofA∗. Then, Lρ{si|si is the least element inLi with respect to “≤”, i∈I} 3.11
is prefix-closed.
Proof. Clearly, 1 is inLρ. Letsjbe inLρandsja1a2· · ·atfor some positive integert >1 and a1, a2, . . . , at in A. Then, a1a2· · ·at−1 is not in Lj. Suppose that a1a2· · ·at−1 is inLk. Then, sk ≤ a1a2· · ·at−1. This implies that skat ≤ a1a2· · ·at−1at sj. On the other hand, since skρa1a2· · ·at−1 and ρ is a right congruence, we have skatρsj. Hence, skat is inLj and so skat ≥ sj. Thus,skat sj a1a2a3· · ·at−1at. This implies thatsk a1a2a3· · ·at−1 whence a1a2a3· · ·at−1is inLρ.
Lemma 3.5. LetSbe a suffix-free language andλbe a fuzzy language overA.
1P{1}×S,λis of finite index if and only ifPS,λris of finite index.
2PS,λris of finite index if and only ifPF,S,λr is of finite index.
Proof. 1Similar to the proof of Proposition 3.11 in10.
2 Observe that PS,λr ⊆ PF,S,λr , the necessity holds. Conversely, if PF,S,λr is of finite index andPS,λr is of infinite index, then byLemma 3.4,LPr
S,λ is infinite and prefix-closed. By Lemma 3.3, there exists an infinite subset
C{1, a1, a1a2,· · · , a1a2· · ·an, . . .}, 3.12 of LPr
S,λ, where ai ∈ A. Since PF,S,λr is of finite index, there exist two distinct elements x, y ∈ Csuch thatxPF,S,λr y. Therefore, there exists a finite subsetF ofA∗such thatλxu λyufor everyuinFA∗S. DenoteT max{|f| |f ∈F}and takeuinA∗satisfying|u|> T. We assert thatuvis inFA∗Sfor anyvinA∗S. In fact, ifuv fwfor somef inF andw in A∗S, then by the choice ofu,f is a prefix ofuand sovis a suffix ofwwhencewis inA∗S.
A contradiction. Therefore, for anyvinA∗S, we haveλxuv λyuv. This implies that xuPS,λryu.
Without loss of generality, we let x < y with respect to the alphabetic order, y a1a2· · ·atand u at1· · ·atT1. Then, by the above discussions, xuPS,λryuand yuis inC.
Observe thatCis a subset ofLPr
S,λ, in view of the definition ofLPr
S,λ,xu≥yu. This implies that x≥y. A contradiction.
Lemma 3.6. LetS be a finite suffix-free language overA. ThenA∗S is cofinite if and only ifS is maximal.
Proof. It follows from Lemma 3.14 in10.
Lemma 3.7. LetΔbe a finite prefix-suffix-free subset ofA∗×A∗andλbe a fuzzy language overA.
Then the following are equivalent:
1PΔ,λis of finite index.
2The following fuzzy languageλΔoverAdefined by
λΔw λw forw∈NΔ, λΔw 0 forw /∈NΔ 3.13
is regular.
3λλ1∪λ2, whereλ1is regular andλ2w 0 for anywinNΔ.
Proof. 1 implies 2. Letx, y be in A∗,s, tbe in Δand xPΔ,λy. Then for any u, v inA∗, su, vtis inΩΔ. Therefore,
s−1λt−1uxv λsuxvt λ suyvt
s−1λt−1 uyv
, 3.14
whencexPs−1λt−1y. Thus,
PΔ,λ⊆
s,t∈Δ
Ps−1λt−1. 3.15
Now, ifPΔ,λis of finite index, thens−1λt−1is regular for anys, tinΔ. Observe that
λΔ
s,t∈Δ
s
s−1λt−1
t, 3.16
it follows thatλΔis regular fromLemma 2.2.
2 implies3. By 2,λΔ is regular. Let λ2 be the following fuzzy language over A defined by
λ2w 0 for w∈NΔ, λ2w λw forw /∈NΔ. 3.17
ThenλλΔ∪λ2, as required.
3implies1. Ifλλ1∪λ2for some regular fuzzy languageλ1and a fuzzy language λ2 such thatλ2w 0 for anyw inNΔ, thenPλ1 is of finite index andPΔ,λ2 A∗×A∗. Observe that
Pλ1⊆PΔ,λ1⊆PΔ,λ1∪λ2PΔ,λ, 3.18
PΔ,λis of finite index.
Remark 3.8. In general, for a given finite prefix-suffix-free subset of A∗ ×A∗ and a fuzzy language λ over A, λ may be nonregular even if PΔ,λ is of finite index. For example, let A{a, b}andΔ {a, b}. Define the following fuzzy languageλoverAas follows:
λw 0 for w∈NΔ, λw 1
|w|1 forw /∈NΔ. 3.19
Clearly, λΔw 0 for every w in A∗ and so λΔ is trivially regular. By Lemma 3.7, PΔ,λ
is of finite index. However, for any pair w1, w2 in NΔ with different lengths, we have λw1/λw2 whence w1 is not Pλ related tow2. Observe that NΔis infinite, there are infinitePλ-classes ofA∗ and soPλis of infinite index. This implies thatλ is nonregular by Theorem 2.1.
Now, we have our main theorem.
Theorem 3.9An extended version of Myhill-Nerode theorem. For a fuzzy languageλoverA, the following statements are equivalent:
1λis regular.
2PS,λris of finite index for some finite maximal suffix-free languageSoverA.
3PP,λl is of finite index for some finite maximal prefix-free languagePoverA.
4PΔ,λis of finite index for some finite prefix-suffix-free subsetΔofA∗×A∗such thatNΔ is cofinite.
5PF,P,λl is of finite index for some finite maximal prefix-free languageP overA.
6PF,S,λr is of finite index for some finite maximal suffix-free languageSoverA.
Proof. 1implies2. Observe that{1}is a maximal suffix-free language overAand Pλr P{1},λr , the result follows fromTheorem 2.1.
2implies4. Observe that{1}×Sis a prefix-suffix-free subset ofA∗×A∗andN{1}×
S A∗S, the result follows fromLemma 3.51andLemma 3.6.
4implies1. ByLemma 3.73, there exists a regular fuzzy languageλ1and another fuzzy languageλ2such thatλλ1∪λ2andλ2w 0 for anywinNΔ. However, by4, NΔis finite, which implies thatλ2is also regular. In view ofLemma 2.2,λis regular.
By symmetry, we can prove that the facts that1implies3and3implies4. On the other hand, byLemma 3.52and its dual, it follows that3is equivalent to5and2 is equivalent to6.
4. Conclusions
In this short note, we have obtained an extended version of Myhill-Nerode theorem for fuzzy languagesTheorem 3.9which provides some algebraic characterizations of regular fuzzy languages. On the other hand, for a given prefix-suffix-free subsetΔof A∗×A∗, by Proposition 3.1andRemark 3.8,
FRΔA λ|λis a fuzzy language overAsuch that the index ofPΔ,λ is finite 4.1 contains the class of regular fuzzy languages over A as a proper subclass. In fact, Lemma 3.7 gives some characterizations of members in FRΔA for a given finite prefix- suffix-free subsetΔofA∗×A∗. Thus the following questions could be considered as a future work. For a general prefix-suffix-free subsetΔofA∗×A∗, what can be said aboutFRΔA?
For example, can we obtain some results parallel to Theorems 3.5 and 3.17 in10?
References
1 L. A. Zadeh, “Fuzzy sets,” Information and Computation, vol. 8, pp. 338–353, 1965.
2 W. G. Wee, On generalizations of adaptive algorithm and application of the fuzzy sets concept to pattern classification, [Ph.D. thesis], Purdue University, 1967.
3 J. N. Mordeson and D. S. Malik, Fuzzy Automata and Languages, Chapman & Hall/CRC, 2002.
4 D. S. Malik, J. N. Mordeson, and M. K. Sen, “Products of fuzzy finite state machines,” Fuzzy Sets and Systems, vol. 92, no. 1, pp. 95–102, 1997.
5 D. S. Malik, J. N. Mordeson, and M. K. Sen, “Minimization of fuzzy finite automata,” Information Sciences, vol. 113, no. 3-4, pp. 323–330, 1999.
6 T. Petkovi´c, “Varieties of fuzzy languages,” in Proceedings of the 1st International Conference on Algebraic Informatics, pp. 197–205, Aristotle University of Thessaloniki, Thessaloniki, Greece, 2005.
7 J. Ignjatovic, M. Ciric, S. Bogdanovic, and T. Petkovic, “Myhill-Nerode type theory for fuzzy lang- uages and automata,” Fuzzy Sets and Systems, vol. 161, no. 9, pp. 1288–1324, 2010.
8 J. Shen, “Fuzzy language on free monoid,” Information Sciences, vol. 88, no. 1–4, pp. 149–168, 1996.
9 J. Ignjatovic and M. Ciric, “Formal power series and regular operations on fuzzy languages,”
Information Sciences, vol. 180, no. 7, pp. 1104–1120, 2010.
10 S. F. Wang, Y. Q. Guo, and S. X. Xu, “PS-regular languages,” International Journal of Computer Mathematics, vol. 88, no. 12, pp. 2464–2484, 2011.
Submit your manuscripts at http://www.hindawi.com
Hindawi Publishing Corporation
http://www.hindawi.com Volume 2014
Mathematics
Journal ofHindawi Publishing Corporation
http://www.hindawi.com Volume 2014
Hindawi Publishing Corporation http://www.hindawi.com
Differential Equations
International Journal of
Volume 2014
Applied MathematicsJournal of
Hindawi Publishing Corporation
http://www.hindawi.com Volume 2014
Hindawi Publishing Corporation
http://www.hindawi.com Volume 2014
Hindawi Publishing Corporation
http://www.hindawi.com Volume 2014
Mathematical PhysicsAdvances in
Complex Analysis
Journal ofHindawi Publishing Corporation
http://www.hindawi.com Volume 2014
Optimization
Journal ofHindawi Publishing Corporation
http://www.hindawi.com Volume 2014
Combinatorics
Hindawi Publishing Corporation
http://www.hindawi.com Volume 2014
International Journal of
Hindawi Publishing Corporation
http://www.hindawi.com Volume 2014
Journal of
Hindawi Publishing Corporation
http://www.hindawi.com Volume 2014
Function Spaces
Abstract and Applied Analysis
Hindawi Publishing Corporation
http://www.hindawi.com Volume 2014
International Journal of Mathematics and Mathematical Sciences
Hindawi Publishing Corporation
http://www.hindawi.com Volume 2014
The Scientific World Journal
Hindawi Publishing Corporation
http://www.hindawi.com Volume 2014
Hindawi Publishing Corporation
http://www.hindawi.com Volume 2014
Discrete Dynamics in Nature and Society
Hindawi Publishing Corporation
http://www.hindawi.com Volume 2014
Hindawi Publishing Corporation
http://www.hindawi.com Volume 2014
Discrete Mathematics
Journal ofHindawi Publishing Corporation
http://www.hindawi.com Volume 2014
Hindawi Publishing Corporation
http://www.hindawi.com Volume 2014
Stochastic Analysis
International Journal of