Volume 2012, Issue 1 804623
Research Article
Open Access

A Remark on Myhill-Nerode Theorem for Fuzzy Languages

Shou-feng Wang

Corresponding Author

Shou-feng Wang

School of Mathematics, Yunnan Normal University, Yunnan, Kunming 650500, China ynnu.edu.cn

Search for more papers by this author
First published: 02 September 2012
Academic Editor: Abdel-Maksoud A. Soliman

Abstract

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 in [1] and since then have appeared in many fields of sciences. They have been studied within automata theory for the first time by Wee in [2]. More on recent development of algebraic theory of fuzzy automata and formal fuzzy languages can be found in the book Mordeson and Malik [3], the texts Malik et al. [4, 5], and Petković [6].

A fuzzy language is called regular if it can be recognized by a fuzzy automaton. In the texts Mordeson and Malik [3], Petković [6], Ignjatovic et al. [7], and Shen [8], regular fuzzy languages have been characterized by the principal congruences (principal right congruences, principal left congruences) determined by fuzzy languages, which are known as Myhill-Nerode theorem for fuzzy languages. Moreover, Petković [6] also considered the varieties of fuzzy languages and Ignjatovic and Ciric [9] considered regular operations of fuzzy languages.

Recently, Wang et al. [10] generalized the usual principal congruences (resp., principal right congruences, principal left congruences) to some kinds of generalized principal congruences (resp., generalized principal right congruences, generalized principal left congruences) determined by crisp languages by using prefix-suffix-free subsets (resp., prefix-free languages, suffix-free languages) and obtained some characterizations of regular crisp languages.

In this note, we will realize the idea of the text [10] for 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, A is a finite set which is called an alphabet and A* is the free monoid generated by A, that is, the set of all words with letters from A. The empty word is denoted by 1. The length of a word w in A* is the number of letters appearing in w and is denoted by |w|. The complement of a subset L of A* is the set . A subset L of A* is cofinite if is finite. A nonempty subset S of A* is called a suffix-free language over A if no element in S is a suffix of another element in S. Prefix-free languages over A can be defined dually. On the other hand, a nonempty subset L of A* is called a prefix-closed language over A if any prefix of an element in L is also in L.

As an analogue of prefix-free languages and suffix-free languages over A, Wang et al. [10] introduced prefix-suffix-free subsets of A* × A*. A subset Δ of the set A* × A* is called a prefix-suffix-free subset if for all words s, t, x, y in A*, the following holds: if both (s, t) and (sx, yt) are in Δ, then x = y = 1.

An equivalence ρ on A* is called a right congruence if xρy implies that xzρyz for any x, y, zA*. 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 set X is a mapping α : X → [0,1]. By ∧ and ∨ infimum and supremum in the unit segment [0,1] will be denoted, respectively. Every element y of X can be considered as the following fuzzy subset of X:
()
A fuzzy language over A is a fuzzy subset of A*. A fuzzy language is regular if it is recognizable by a fuzzy automaton from the book [3]. For a fuzzy language λ over A, the relations defined on A* by the following:
()
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 ρ on A* is the number of ρ-classes of A*.

Theorem 2.1 (see [3], [6], [8], Myhill-Nerode theorem.)For a fuzzy language λ over A, the following statements are equivalent:

  • (1)

    λ  is regular.

  • (2)

    Pλ is of finite index.

  • (3)

    is of finite index.

  • (4)

    is of finite index.

In the sequel, we recall some operations of fuzzy languages. For two fuzzy languages λ1 and λ2 over A, the union, intersection, product, and left and right quotients of λ1 and λ2 are defined, respectively, by the following:
()
Further, we also define left-right quotient of three fuzzy languages λ1, λ2 and λ over A by the following:
()
Observe that (s−1λt−1)(w) = λ(swt) for any s, t, wA* with the above notations.

On regular fuzzy languages, we have the following.

Lemma 2.2 (see [6].)Finite unions, intersections, products, and left-right quotients of regular fuzzy languages over A are 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 subsets (resp., prefix-free languages, suffix-free languages) and give an extended version of Myhill-Nerode theorem for fuzzy languages.

Now, let P be a prefix-free language, S be a suffix-free language over A, Δ be a prefix-suffix-free subset of A* × A*, and λ be a fuzzy language over A, respectively. For a prefix-suffix-free subset Δ, denote
()
Define the following relations on A*:
()
Then we have the following observations.

Proposition 3.1. The above are right congruences (resp., left congruences; congruence) on A*. Furthermore,

()

Proof. It is easy to check that (resp., ) is a right (resp., left) congruence, PΔ,λ is a congruence, and

()
by their definitions. In the sequel, we show that is a right congruence and is a left congruence. Clearly, both and are equivalences. Now, let x, y be two words in A* and . Then there exists a finite subset F of A* such that λ(xu) = λ(yu) for any u in . Now, let z be a word in A* and F be the union of {wA*zwF} and {1}. Then zu is in for any u in . This implies that λ(xzu) = λ(yzu) for any u in whence since F is finite. Thus, is a right congruence. Dually, is a left congruence.

Remark 3.2. Note that the above inclusions are all proper in general. For example, let A = {a},   S = {a2} and F = {1, a, a2, a3}. Then . Define a fuzzy language over A as follows:

()
where α, β are in [0,1] and αβ. Then we have
()
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 on A*. We have the following result.

Lemma 3.3. Let L be an infinite prefix-closed language over A. Then there exists an infinite subset {1, a1, a1a2, …, a1a2, …, an, …} of L, where aiA.

Proof. Denote

()
Observe that A is finite and L is infinite, there exists L1L and a1A such that L1 is infinite and PrefA(L1) = {a1}. Denote
()
Then is infinite. Hence, there also exists and a2A such that L2 is infinite and PrefA(L2) = {a2}. In general, for any positive integer n, there exists and an+1A such that Ln+1 is infinite and PrefA(Ln+1) = {an+1}. Let
()
Clearly, C is infinite. We claim that CL. Let a1a2a3anC. Observe that
()
Therefore, there exists yA* such that any ∈ (a1a2an−1) −1L1. And hence, a1a2an−1anyL1L. Since L is prefix-closed, a1a2an−1anL. This implies that CL.

Lemma 3.4. Let ρ be a right congruence on A* and {LiiI} be the set of all ρ-classes of A*. Then,

()
is prefix-closed.

Proof. Clearly, 1 is in Lρ. Let sj be in Lρ and sj = a1a2at for some positive integer t > 1 and a1, a2, …, at in A. Then, a1a2at−1 is not in Lj. Suppose that a1a2at−1 is in Lk. Then, ska1a2at−1. This implies that skata1a2at−1at = sj. On the other hand, since skρa1a2at−1 and ρ is a right congruence, we have skatρsj. Hence, skat is in Lj and so skatsj. Thus, skat = sj = a1a2a3at−1at. This implies that sk = a1a2a3at−1 whence a1a2a3at−1 is in Lρ.

Lemma 3.5. Let S be a suffix-free language and λ be a fuzzy language over A.

  • (1)

    P{1}×S,λ is of finite index if and only if is of finite index.

  • (2)

    is of finite index if and only if is of finite index.

Proof. (1)  Similar to the proof of Proposition  3.11 in [10].

(2) Observe that , the necessity holds. Conversely, if is of finite index and is of infinite index, then by Lemma 3.4, is infinite and prefix-closed. By Lemma 3.3, there exists an infinite subset

()
of , where aiA. Since is of finite index, there exist two distinct elements x, yC such that . Therefore, there exists a finite subset F of A* such that . Denote T = max   {|f|∣fF} and take u in A* satisfying |u | > T. We assert that uv is in for any v in A*S. In fact, if uv = fw for some f in F and w in , then by the choice of u, f is a prefix of u and so v is a suffix of w whence w is in A*S. A contradiction. Therefore, for any v in A*S, we have λ(xuv) = λ(yuv). This implies that .

Without loss of generality, we let x < y with respect to the alphabetic order, y = a1a2at and u = at+1at+T+1. Then, by the above discussions, and yu is in C. Observe that C is a subset of , in view of the definition of , xuyu. This implies that xy. A contradiction.

Lemma 3.6. Let S be a finite suffix-free language over A. Then A*S is cofinite if and only if S is maximal.

Proof. It follows from Lemma  3.14 in [10].

Lemma 3.7. Let Δ be a finite prefix-suffix-free subset of A* × A* and λ be a fuzzy language over A. Then the following are equivalent:

  • (1)

    PΔ,λ is of finite index.

  • (2)

    The following fuzzy language λΔ over A defined by

    ()
    is regular.

  • (3)

    λ = λ1λ2, where λ1 is regular and λ2(w) = 0 for any w in N(Δ).

Proof. (1) implies (2). Let x, y be in A*, (s, t) be in Δ and xPΔ,λy. Then for any u, v in A*, (su, vt) is in ΩΔ. Therefore,

()
whence . Thus,
()
Now, if PΔ,λ is of finite index, then s−1λt−1 is regular for any (s, t) in Δ. Observe that
()
it follows that λΔ is regular from Lemma 2.2.

(2) implies (3). By (2), λΔ is regular. Let λ2 be the following fuzzy language over A defined by

()
Then λ = λΔλ2, as required.

(3) implies (1). If λ = λ1λ2 for some regular fuzzy language λ1 and a fuzzy language λ2 such that λ2(w) = 0 for any w in N(Δ), then is of finite index and . Observe that

()
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 λ over A as follows:

()
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 with different lengths, we have λ(w1) ≠ λ(w2) whence w1 is not Pλ related to w2. Observe that is infinite, there are infinite Pλ-classes of A* and so Pλ is of infinite index. This implies that λ is nonregular by Theorem 2.1.

Now, we have our main theorem.

Theorem 3.9 (An extended version of Myhill-Nerode theorem). For a fuzzy language λ over A, the following statements are equivalent:

  • (1)

    λ is regular.

  • (2)

    is of finite index for some finite maximal suffix-free language S over A.

  • (3)

    is of finite index for some finite maximal prefix-free language P over A.

  • (4)

    PΔ,λ is of finite index for some finite prefix-suffix-free subset Δ of A* × A* such that N(Δ) is cofinite.

  • (5)

    is of finite index for some finite maximal prefix-free language P over A.

  • (6)

    is of finite index for some finite maximal suffix-free language S over A.

Proof. (1) implies (2). Observe that {1} is a maximal suffix-free language over A and , the result follows from Theorem 2.1.

(2) implies (4). Observe that {1} × S is a prefix-suffix-free subset of A* × A* and N({1} × S) = A*S, the result follows from Lemma 3.5 (1) and Lemma 3.6.

(4) implies (1). By Lemma 3.7 (3), there exists a regular fuzzy language λ1 and another fuzzy language λ2 such that λ = λ1λ2 and λ2(w) = 0 for any w in N(Δ). However, by (4), is finite, which implies that λ2 is also regular. In view of Lemma 2.2, λ is regular.

By symmetry, we can prove that the facts that (1) implies (3) and (3) implies (4). On the other hand, by Lemma 3.5 (2) and its dual, it follows that (3) is equivalent to (5) and (2) is equivalent to (6).

4. Conclusions

In this short note, we have obtained an extended version of Myhill-Nerode theorem for fuzzy languages (Theorem 3.9) which 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.1 and Remark 3.8,
()

contains the class of regular fuzzy languages over A as a proper subclass. In fact, Lemma 3.7 gives some characterizations of members in 𝔽Δ(A) for a given finite prefix-suffix-free subset Δ of A* × A*. Thus the following questions could be considered as a future work. For a general prefix-suffix-free subset Δ of A* × A*, what can be said about 𝔽Δ(A)? For example, can we obtain some results parallel to Theorems  3.5 and 3.17 in [10]?

    The full text of this article hosted at iucr.org is unavailable due to technical difficulties.