Abstract
In this study, we introduce the concept of lattice-valued regular grammars. Such grammars have become a necessary tool for the analysis of fuzzy finite automata. The relationship between lattice-valued finite automata (LA) and lattice-valued regular grammars (LRG) are discussed and we get the following results, for a given LRG, there exists an LA such that they accept the same languages, and vice versa. We also show the equivalence between deterministic lattice-valued regular grammars and deterministic lattice-valued finite automata.
Similar content being viewed by others
Explore related subjects
Discover the latest articles, news and stories from top researchers in related subjects.Avoid common mistakes on your manuscript.
1 Introduction
The concept of fuzzy automata was introduced by Wee in 1967. Thereafter, there were considerable authors, such as Santos (1975, 1976, 1977), Lee and Zadeh (1969) etc., have contributed in this field. For detail, we refer to Kandel and Lee (1980), and Wechler (1978) and especially the recent ones by Mordeson and Malik (2000, 2002). Also, fuzzy automata have many important applications such as in learning systems, the model of computing with words, pattern recognition and data base theory (Mordeson and Malik 2002; Ying 2002).
Recently, Qiu (2001) and Asveld (2003) proposed to study fuzzy automata based on residuated logic and the proposed method provided a tool to study fuzzy automata in the frame of many-valued logic. However, these concepts and conclusions are mostly drawn from fuzzifying preliminarily the classical case, and therefore have poor level structure. To state more precise, automata are the mathematical models to recognize formal languages in the theory of classical computation, and the former proposed fuzzy automata with truth values in unit interval [0, 1] with max–min composition, we call them classical fuzzy automata in this paper. To overcome this kind of problem, we study the automata theory with truth values in the more general structures: lattice-ordered monoids.
It is well known in the classical automata theory (Hopcroft and Ullman 1979) that, the following four approaches to represent a language (regular language, to be precise) \(\mathcal{L}\) are equivalent:
-
(i)
\(\mathcal{L}\) is recognized by some deterministic finite state automaton.
-
(ii)
\(\mathcal{L}\) is recognized by some nondeterministic finite state automaton.
-
(iii)
\(\mathcal{L}\) is described by some regular expression.
-
(iv)
\(\mathcal{L}\) is generated by some regular grammar.
The same results hold for fuzzy regular languages with truth values in [0, 1] and with max–min composition (Bělohlávek 2002; Kandel and Lee 1980; Malik and Mordeson 2000, 2002; Močkoř 2002; Santos 1975, 1976, 1977; Shen 1996; Thomason and Marinos 1974). For generalized lattice-valued languages, it has been shown in Li(2003) that (i) and (ii) are not equivalent for some truth-value lattice-ordered monoids. The nondeterministic lattice-valued finite automaton (LA) is more powerful than deterministic lattice-valued finite automata (DLA) when it comes to the recognitions of fuzzy languages. An important problem arises as to the description of LA or DLA by regular expressions and regular grammars. Since the problem of regular expressions has been resolved in Li and Pedrycz (2004), this issue is of interest in the study of the relationship between LA and LRG.
2 Some basic concepts
We first give some basic concepts we use in this paper.
Definition 2.1. Given a lattice L, we use ∨, ∧ to represent the supremum operation and infimum operation on L, respectively, with 0, 1 being the least and the largest elements. Assume that there is a binary operation • (we call it multiplication) on L such that (L, •, e) is a monoid with identity e∈L. We call L a lattice-ordered monoid (some modification of the the notion of lattice-ordered monoid in Birkhoff (1940) if it satisfies the following two conditions:
-
(i)
∀ a∈L, a• 0=0• a=0,
-
(ii)
∀ a, b, c∈L, a• (b ∨ c)=(a• b)∨ (a• c), and (b ∨ c)• a =(b• a)∨ (c• a).
For a lattice-ordered monoid, since we only concerned with the multiplication • and finite supremum operation ∨, in what follows, a lattice-ordered monoid will be denoted by (L, •, ∨).
We give some examples of lattice-ordered monoids.
Example 2.1. (1) Let (L, ∧, ∨) be a distributive lattice (Balbes and Dwinger 1974), and let •=∧, then L is a lattice-ordered monoid, and the identity of multiplication is 1.
2. Let (L, •, ∨) be a lattice-ordered monoid, the identity is e. We use L(n) to denote all n× n matrices with values in L. The multiplication, denoted as ○, is defined as sup−• composition; and ∨ is the pointwise-∨. That is, for two n× n matrices, A=(a ij ) and B=(b ij ), with values in L, let A○B=C=(c ij ), then \(c_{ij} = \bigvee\nolimits_{k = 1}^n {(a_{ik} \bullet b_{kj} )} ,\) and let A∨B=D=(d ij ), then d ij =a ij ∨b ij . Then (L(n), ○, ∨) is also a lattice-ordered monoid, the identity is the diagonal-matrix E=diag(e, e, ..., e) with e as the diagonal element. In general, the multiplication on L(n) is not commutative, even if the multiplication on L is commutative.
3. Let • be any uninorm (Li and Shi 2000; Yager 1994) on [0, 1], if 0• 1=0, then ([0, 1], •, ∨) is a commutative lattice-ordered monoid. In particular, if • is a t-norm on [0, 1], then ([0,1], •, ∨) is a commutative lattice-ordered monoid with identity e=1.
4. Quantales are complete lattice-ordered monoid, where L is a quantale if L is a complete lattice, and it satisfies the following infinite distributive laws (Li et al. 2002; Rosenthal 1990):
In the following, we always assume that L is a lattice-ordered monoid.
Definition 2.2. An LA is a five tuple,
where X, U are finite nonempty sets, δ: X× U→ F(X), and σ0, σ1 : X→ L are L-fuzzy sets of X. The elements of X are called states, and the elements of U are called (input) symbols. δ is called a fuzzy transition function and σ0, σ1 are called fuzzy initial state and fuzzy final state, respectively.
We can regard δ(x, u)(y) as the grade of membership that the next state of M is y, given that the present state of M is x and the input symbol u is implied. For simplification we denote δ(x, u)(y) as δ(x, u, y).
Let U* denote the set of all words of finite letter over U and let Λ denotes the empty word. Then, U* is the free monoid generated by U with the concatenation operation. For θ∈U*, |θ| denotes the length of θ.
By means of Li (2003), we can extend δ on X× U*, denoted as δ*: X× U*→ F(X), in the following forms:
-
(i)
∀ y∈X, if y=x, then δ*(x, Λ, y)=e, otherwise δ*(x, Λ, y)=0;
-
(ii)
∀ θ∈U*, u∈U, \(\delta ^* (x,\theta u,y) = \bigvee\nolimits_{z \in X} {[\delta ^* (x,\theta ,z) \bullet \delta (z,u,y)]} .\)
For the extension δ*, since L is a lattice-ordered monoid, it satisfies the following equation for any θ∈U* (Li 2003), if θ=θ1θ2, then
Definition 2.3. Suppose that M=(X, U, δ, σ0, σ1) is an LA. Then the L-valued language f M ∈F(U*) accepted by M or recognized by M is defined as follows,
The element f∈F(U*) is called an L-language on U, an L-language which is accepted by an LA is called an LA-language.
For two LAs M1 and M2, we say that they are equivalent if they accept the same LA-language, that is, \(f_{M_1 } = f_{M_2 } .\)
As to the classical automata theory, we have the notions of deterministic finite automata and nondeterministic finite automata. The notion of an LA is a generalization of the notion of nondeterministic automaton. The LA is nondeterministic in nature , in the following we will present a deterministic counterpart of the notion of an LA.
Definition 2.4. A DLA is a five tuple,
where X, U and σ1 are the same defined as LA , x0∈X is the initial state, δ: X× U→ X is called a transition function.
The extension of δ onto U* is the same as that of classical case. Then, the L-language f M ∈F(U*) accepted by a DLA is defined as,
However, unlike the classical case, Li (2003) has shown that in general LA and DLA are not equally powerful.
In the classical automata theory we know that regular grammars and finite automata are essentially the same in that either is a specification of a regular language. Since then, it is necessary for us to study the corresponding (distinctive) fuzzy grammars for LA and DLA.
Definition 2.5. (1) A lattice-valued grammar is a quadruple G=(N, T, P, S), where
-
(i)
N is a finite set whose elements are called nonterminal symbols.
-
(ii)
T is a finite set whose elements are called terminal symbols and T∩ N=ϕ.
-
(iii)
S∈N is called the starting symbol and S does not occur on the right-hand side of any fuzzy productions.
-
(iv)
P is a finite collection of fuzzy productions over \(T \cup N\) and
$$ P = \left\{ {u\xrightarrow{\rho }v|u \in (N \cup T)^* N(N \cup T)^* ,v \in (N \cup T)^* } \right\},\;{\text{where}}\;\rho \in L - \{ 0\} . $$We may interpret ρ(u, v) as the grade of membership that u will be replaced by v.
If \(u\xrightarrow{\rho }v\) is a production and α, β∈(N∪ T)*, then α vβ is said to be directly derivable from α uβ. In this case, we write
If u i ∈(N∪ T)* for i=1, 2, ..., p and ui+1 is directly derivable from u i for i=1, 2, ..., p−1, we say that u p is derivable from u1 and written as,
We call
the derivation chain of u p (from u1), where ρ=ρ1•ρ2•...•ρp-1.
(2) The L-language f G ∈F(T*) generated by an L-valued grammar is defined as follows:
L-valued grammars are classified according to the form of the production rules used (Chomsky hierarchy). These grammars are sometimes described as follows:
Definition 2.6. Let G=(N, T, P, S) be an L-valued grammar.
-
1.
G is unrestricted (of type 0), if there are no restrictions on the form of the production rules. Accordingly, f G is called L-valued type 0 language.
-
2.
G is context-sensitive if for every \(u\xrightarrow{\rho }v \in P,\) u, v ∈(T∪ N)*, ρ(u, v)>0 implies |u|≤ |v|. Accordingly, f G is called L-valued context-sensitive language.
-
3.
G is context-free if for every \(u\xrightarrow{\rho }v \in P,\) u, v ∈(T∪ N)*, ρ(u, v)>0 implies |u|≤ |v| and u∈N. Accordingly, f G is called L-valued context-free language.
-
4.
G is weak regular if for every \(u\xrightarrow{\rho }v \in P,\) u, v ∈(T∪ N)*, ρ(u, v)>0 implies u∈N and v∈T+B, B∈N ∪{Λ} or u=S, v=Λ . Accordingly, f G is called L-valued weak regular language.
-
5.
G is regular if for every \(u\xrightarrow{\rho }v \in P,\) u, v ∈(T ∪ N)*, ρ(u, v)>0 implies u∈N and v∈TB, B∈N ∪{Λ} or u=S, v=Λ . Accordingly, f G is called L-valued regular language.
Two L-valued grammars G1 and G2 are said to be equivalent if they generate the same language, that is, \(f_{G_1 } = f_{G_2 } .\)
Theorem 2.1. L-valued weak regular grammars (LWRG, for short) are equivalent to L-valued regular grammars (LRG, for short). Where the word “equivalent” means that they generate the same classes of L-languages.
Proof From the definition, we can easily know that every L-language generated by an LRG can be generated by an LWRG which is the same as the former LRG. In the following we only need to show that every L-language generated by an LWRG can also generated by an LRG.
Let G1=(N1, T, P1, S) be an LWRG, the language generated by G1 is denoted as \(f_{G_1 } .\) We can define an LRG G=(N, T, P, S), such that \(f_G = f_{G_1 } .\)
(i) For each production
where a i ∈T1 for i=1, 2, ..., m and x, y∈N1.
When m=1, we have a1∈T, \(x,y \in N_1 \subseteq N\) and x→ a1 y∈P as desired.
When m≥ 2, \(x,y \in N_1 \subseteq N,\) we can define new nonterminal symbols ξ1, ξ2, ..., ξm-1 in N and denote the set of these symbols as N0, then N=N1∪ N0.
Let ρ G and \(\rho _{G_1 } \) denote the grade of membership of productions in G and G1, respectively. Now we can mimic the production (Eq. 1) by means of productions x→ a1ξ1, ξ1→ a2ξ2, ..., ξm-1→ a m y ∈P with
Then \(\begin{aligned} \rho _G (x \to a_1 a_2 \ldots a_m y) = & \rho _G (x \to a_1 \xi _1 ) \bullet \rho _G (\xi _1 \to a_2 \xi _2 ) \bullet \ldots \\ & \bullet \rho _G (\xi _{m - 2} \to a_{m - 1} \xi _{m - 1} ) \bullet \rho _G (\xi _{m - 1} \to a_m y) = \rho _{G_1 } (x \to a_1 a_2 \ldots a_m y). \\ \end{aligned} \)
(ii) For each production
where b i ∈T1 for i=1, 2, ..., n and x ∈N1. When n=1, we have b1∈T and X→ b1∈P as desired. When n≥ 2, \(x \in N_1 \subseteq N.\) We can define new nonterminal symbols η1, η2, ..., ηn-1∈N and denote the set of these symbols as N0, then N=N1∪ N0. Now we can mimic the production (Eq. 2) by means of productions
with ρ G (x→ b1η1)=ρ G (η1→ b2η2)=...=ρ G (ηn-2→ bn-1ηn-1)=e; \(\rho _G (\eta _{n - 1} \to b_n ) = \rho _{G_1 } (x \to b_1 b_2 \ldots b_n ).\) Then \(\begin{aligned} \rho _G (x \to b_1 b_2 \ldots b_n ) = & \rho _G (x \to b_1 \eta _1 ) \bullet \rho _G (\eta _1 \to b_2 \eta _2 ) \bullet \ldots \\ & \bullet \rho _G (\eta _{n - 2} \to b_{n - 1} \eta _{n - 1} ) \bullet \rho _G (\eta _{n - 1} \to b_n ) = \rho _{G_1 } (x \to b_1 b_2 \ldots b_n ). \\ \end{aligned} \)
Clearly G thus specified is an L-valued regular grammar. Thus, from Eqs. 1 and 2 we conclude that \(f_{G_1 } \subseteq f_G .\)
To prove the reverse inclusion, suppose that for some θ∈T*, there is a derivation \(S{\mathop \Rightarrow \limits^\rho}^* \,\theta \) in G. Let G2=(N, T, P∪ P1, S), where G2 has both all the productions of G1 and G , then certainly there is a derivation
in G2 with \(\rho _{G_2 } (S \longrightarrow \theta ) = \rho _G (S \longrightarrow \theta ).\)
We shall show that there is a derivation of θ in G1 by induction on the number of symbols from N\ N1 appearing in the derivation (3). If no such symbols appear then Eq. 3 is already a derivation in G1. Otherwise the first appearance of a symbol of N\ N1 is based either on a production
where x→ a1a2... a m y is a production in G1, or on a production
where x→ b1b2... b n is a production in G1. Consider the first case, for any of the symbols of N\ N1, the only way in which ξ i can subsequently appear must involve changes from ξ1 to a2ξ2, ..., ξm-1 to a m y. Then the sequence of transitions
can be replaced by a single transition x→ a1a2... a m y in G2 with \(\begin{aligned} \rho _{G_2 } (x \to a_1 a_2 \ldots a_m y) = & \rho _{G_2 } (x \to a_1 \xi _1 ) \bullet \rho _{G_2 } (\xi _1 \to a_2 \xi _2 ) \bullet \ldots \\ & \bullet \rho _{G_2 } (\xi _{m - 1} \to a_m y) = \rho _G (x \to a_1 \xi _1 ) \bullet \rho _G (\xi _1 \to a_2 \xi _2 ) \bullet \ldots \\ & \bullet \rho _G (\xi _{m - 1} \to a_m y) = \rho _G (x \to a_1 a_2 \ldots a_m y) = \rho _{G_1 } (x \to a_1 a_2 \ldots a_m y). \\ \end{aligned} \)
Similarly, in the second case the derivation must involve subsequently changes from η1 to b2η2, ..., ηn-1 to b n , and these n transitions can be replaced by a single transition in G2 from x to b1b2... b n with
In both cases, the derivation (3) is replaced by one with fewer occurrences of symbols from N\ N1 with \(\rho _{G_2 } (\theta ) = \rho _G (\theta ),\) then it follows that \(f_{G_2 } \subset f_{G_1 } .\) Hence certainly \(f_G \subset f_{G_1 } .\)
Thereby, \(f_G = f_{G_1 } ,\) say, LWRG and LRG are equivalent as far as the languages generated by them are concerned. □
Example 2.2. Suppose G1=(N1, T, P1, S) is an LWRG, where N1={S, A, B}, T={a, b, c},
Construct an LRG G=(N, T, P, S), where
Clearly, for θ=ab3cac the derivation of θ in G1 is as follows:
so \(f_{G_1 } (\theta ) = \rho _1 \bullet \rho _2 \bullet \rho _3 \bullet \rho _4 .\)
The derivation of θ in G is as follows:
then \(f_G (\theta ) = e \bullet \rho _1 \bullet e \bullet \rho _2 \bullet \rho _3 \bullet e \bullet \rho _4 = \rho _1 \bullet \rho _2 \bullet \rho _3 \bullet \rho _4 = f_{G_1 } (\theta ).\)
3 Lattice-valued grammars and LA
In Theorems 3.1 and 3.2, we shall show that L-valued regular languages coincide with LA-languages.
Theorem 3.1 Let G=(N, T, P, S) be an L-valued regular grammar, then there exists an LA M such that f M =f G .
Proof Constructing an LA M=(X, U, δ, σ0, σ1), where U=T, X=N∪{Z}, σ0=e/S, σ1=(e/Z)+(f G (Λ)/S) and
For any σ, τ ∈(T∪ N)*, \(\rho (\sigma \to \tau ) = \vee \{ \rho :\sigma {\mathop \Rightarrow \limits^\rho}^* \,\tau \} .\) We show f G =f M below.
Let θ∈T*, if θ=Λ, then f M (θ)=f G (Λ) as desired.
When θ≠Λ, suppose θ=u1u2... u n , where u i ∈T for i=1, 2, ..., n. If \(S{\mathop \Rightarrow \limits^\rho}^* \,\theta \) there must exist some derivation of θ with the form
where \(A_{i - 1} \xrightarrow{{\rho _i }}u_i A_i \in P\) for i=1, 2, ..., n and A0=S, A n =u n with ρ=ρ1 • ρ2 • ... • ρ n .
Corresponding to the given LA, by the definition of δ, we get that
then f M (θ)=σ0 ○ δθ ○ σ1=σ0(S) • δ*(S, θ, Z) • σ1(Z)=δ*(S, θ, Z)≥ρ.
Thus, we have shown that f G (θ)≤ f M (θ) for any θ∈U*, that is, f G ≤ f M .
Conversely, if f M (θ)=δ* (S, θ, Z)≥ δ(S, u1, A1) • δ(A1, u2, A2) • ... • δ(An-1, u n , Z). For any A i ∈X, let δ(S, u1, A1)=ρ1, ..., δ(An-1, u n , A n )=ρ n , and let ρ=ρ1 • ρ2 • ... • ρ n , then there exists corresponding derivation \(S{\mathop \Rightarrow \limits^\rho}^* \,\theta .\) Then it shows that if ρ≤ f M (θ), then ρ≤ f G (θ), that is, f M ≤ f G .
Therefore f M =f G , that is, L-valued languages can be recognized by LA. □
We give an example to illustrate the proof of the above theorem.
Example 3.1. Let L=[0, 1], • is the multiplication of real numbers, G=(N, T, P, S) is an LRG, where N={S, A, B}, T={a, b}. The productions in P are as follows:
Construct an LA, M=(X, U, δ, σ0, σ1), where
the transition function with the form
For θ=a3b, the derivation of θ are as follows
So f G (a3b)=(0.5 × 0.7 × 0.7 × 0.3) ∨ (0.6 × 0.4 × 0.4 × 0.8)=0.0768, f M (a3b)=δ*(S, a3b, Z)=[δ(S, a, A) • δ(A, a, A) • δ(A, a, A) • δ(A, b, Z)] ∨ [δ(S, a, B) • δ(B, a, B) • δ(B, a, B) • δ(B, b, Z)]=0.0768. Thereby f M (θ)=f G (θ).
Theorem 3.2 Let M=(U, X, δ, σ0, σ1) be an LA, there exists an LRG such that f G =f M .
Proof We define an LRG G=(N, T, P, S) as follows T=U, N=X∪{S}. The productions in P are defined as follows:
-
(i)
\(x\xrightarrow{{\rho _1 }}uy \in P\) for each δ(x, u, y)≠ 0, where ρ1=δ(x, u, y).
-
(ii)
If δ(x, u, y)≠ 0 and σ1(y)≠ 0, then \(x\xrightarrow{{\rho _2 }}u \in P,\) where \(\rho _2 = \bigvee\nolimits_{y \in X} {[\delta (x,u,y) \bullet \sigma _1 (y)]} .\)
-
(iii)
If δ(x, u, y)≠ 0 and σ0(x)≠ 0, then \(S\xrightarrow{{\rho _3 }}uy \in P,\) where \(\rho _3 = \bigvee\nolimits_{x \in X} {[\sigma _0 (x) \bullet \delta (x,u,y)]} .\)
-
(iv)
If δ(x, u, y)≠ 0, σ0(x)≠ 0 and σ1(y)≠ 0, then \(S\xrightarrow{{\rho _4 }}u \in P(u \in U \cup \{ \Lambda \} ),\) where \(\rho _4 = \bigvee\nolimits_{x,y \in X} {[\sigma _0 (x) \bullet \delta (x,u,y) \bullet \sigma _1 (y)]} .\)
Obviously, such a grammar G is an LRG. We show that f G =f M below.
Let θ∈T*, if θ=Λ, then f G (Λ)=ρ (S → Λ)=f M (Λ).
When θ≠Λ, suppose θ=u1u2... u n , where u i ∈T for i=1, 2, ..., n.
If \(S{\mathop \Rightarrow \limits^\rho}^* \,\theta \) there must exist some derivation of θ with the form
where \(A_{i - 1} \xrightarrow{{\rho _i }}u_i A_i \in P,i = 1,2, \ldots n\;{\text{and}}\;A_0 = S,A_n = u_n \;{\text{with}}\;\rho = \rho _1 \bullet \rho _2 \bullet \ldots \bullet \rho _n .\) From the definition of P, we know that
Thus, we have shown that f G (θ)≤ f M (θ) for any θ∈U* , that is, f G ≤ f M .
Conversely, if
For any A1, ..., A n ∈X, let \(\begin{array}{*{20}l} {\bigvee\nolimits_{A_0 \in X} {[\sigma _0 (A_0 ) \bullet \delta (S,u_1 ,A_1 )]} \bullet \delta (A_1 ,u_2 ,A_2 ) \bullet \ldots \bullet \bigvee\nolimits_{A_n \in X} {[\delta (A_{n - 1} ,u_n ,A_n ) \bullet \sigma _1 (A_n )]} } \\ {\quad = \rho _1 \bullet \rho _2 \bullet \ldots \bullet \rho _n = \rho ,} \\ \end{array} \) then there exists corresponding derivation \(S{\mathop \Rightarrow \limits^\rho}^* \,\theta .\) Thus it shows that if ρ≤ f M (θ), then ρ≤ f G (θ), that is, f M (θ)≤ f G (θ) for any θ∈U*, that is, f M ≤ f G .
Therefore f M =f G , that is, the languages recognized by LA are L-valued regular languages. □
We give an example to illustrate the proof of the above theorem.
Example 3.2 Let L=[0, 1], • is the multiplication of real numbers, M=(U, X, δ, σ0, σ1) is an LA where U={u1, u2}, X={x1, x2, x3}, σ0=(0.9/x1)+(0.5/x2), σ1=(0.5/x2)+(0.8/x3),
Construct an LRG G=(N, T, P, S), where N={x1, x2, x3}, T={u1, u2}. The productions in P are as follows:
For θ=u 21 u2u1,
Correspondingly , the derivation of θ in G are as follows:
Furthermore in (i), we have,
in (ii)
Then f G (θ)=ρ ∨ ρ′=0.14112, thus f M (θ)=f G (θ).
Corollary 3.1 L-valued regular grammars are equivalent to LAs.
Proof Straightforward by Theorem 3.1 and Theorem 3.2.□
By Theorem 2.1 and Corollary 3.1 we can easily get that
Corollary 3.2 L-valued automata are equivalent to L-valued weak regular grammars.
4 Characterization of DLA by L-valued regular grammars
Definition 4.1 (1) G=(N, T, P, S) is called an L-valued deterministic regular grammar (DLRG, for short) if all the productions in P have only three forms,
Accordingly, f G is called an L-valued deterministic regular language. Obviously, DLRG belongs to a special kind of LRG.
Similarly, for u1, ..., u p ∈(N∪ T)*, if u i ∈(N∪ T)* for i=1, 2, ..., p and ui+1 is directly derivable from u i for i=1, 2, ..., p−1, we say that u p is derivable from u1 and written as,
We call
the derivation chain of u p (from u1). However, here ρ1=ρ2=...=ρp-2=e and ρ=ρ1 • ρ2 • ... • ρp-1 =ρp-1.
(2) The L-language f G ∈F(T*) generated by an L-valued grammar is defined as follows:
Remark 4.1 Suppose that G is a DLRG, then the range of images set of f is finite, that is, the set R f ={f G (θ)|θ∈T*} is a finite set of L.
Since \(f_G (\theta ) = \vee \{ \rho :S {\mathop \Rightarrow \limits^\rho}^* \,\theta \} ,\) it is clear that R f is completely determined by the productions with form like \(A\xrightarrow{\rho }u.\) Since P is finite, such ρs are finite.
Lemma 4.1 (Li 2003) Let M=(X, U, δ, x0, σ1) be an LA, where δ: X× U→ 2X, σ:X→ L, x0∈X, \(f_M (\theta ) = \bigvee {[\sigma _1 (x):x \in \delta ^* (x_0 ,\theta )]} ,\) then there exists a DLA, N=(Y, U, η, y0, τ), such that f M =f N .
Proof Take Y=2X, and η:Y× U→ Y is defined as, \(\eta (Z,u) = \cup _{x \in Z} \delta (x,u),\) y0={x0}, τ:Y→ L is taken as, \(\tau (Z) = \bigvee\nolimits_{x \in Z} {\sigma (x).} \) Then N=(Y, U, η, y0, τ) is a DLA, and η*(y0, θ)=δ*(x0, θ). Thus \(f_N (\theta ) = \tau (\eta ^* (y_0 ,\theta )) = \bigvee\nolimits_{x \in \eta ^* (y_0 ,\theta )} {\sigma (x)} = \bigvee\nolimits_{x \in \delta ^* (x_0 ,\theta )} {\sigma (x)} = f_M (\theta ),\) that is, f N =f M . □
Theorem 4.1 L-valued deterministic regular languages can be accepted by DLA.
Proof Suppose G=(N, T, P, S) be a DLRG, and construct an LA M=(X, U, δ, x0, σ1) where U=T, x0=S. Check all the productions in G, and let P1 denote the set whose elements are with form of \(A\xrightarrow{\rho }u,\) that is, \(P_1 = \left\{ {x\xrightarrow{{\rho _i }}u|i = 1,2, \ldots ,m} \right\},\) where m is just the number of such productions.
For any (x, u)∈NT, define δ as follows
and define σ1 as: σ1=(ρ i (x→ u)/Z i )+(f G (Λ)/S). Furthermore, X=N∪ { Z i } for i=1, 2, ..., m.
Let θ∈T*, if θ=Λ, then, f M (θ)=σ1 (δ(x0, Λ))=f G (Λ).
When θ≠Λ, suppose that θ=u1 u2 ... u n where u i ∈T for i=1, 2, ..., n. If \(S{\mathop \Rightarrow \limits^\rho}^* \,\theta ,\) there must exist some derivation of the form
where \(A_{i - 1} \xrightarrow{e}u_i A_i \in P,\) for i=1, 2, ..., n−1, A0=S and \(A_{n - 1} \xrightarrow{\rho }u_n \in P.\) Furthermore ρ (S → θ)=ρ (An-1 → u n )=ρ.
Corresponding to the LA, by the definition of δ and σ1, we get that A1 ∈δ(x0, u1); A2 ∈δ(A1, u2); ..., An-1 ∈δ(An-2, un-1); Z t ∈δ(An-1, u n ) for 1≤ t≤ m.
Then f M (θ) = ∨ {σ1(Z) : Z ∈δ* (x0, θ)} ≥ σ1(Z t )=ρ(An-1 → u n )=ρ. Thus, we have shown that f G (θ) ≤ f M (θ) for any θ∈U*, that is, f G ≤ f M .
Conversely, if f M (θ) = ∨ [σ1(Z) : Z ∈δ* (x0, θ)] ≥ σ1(Z t )=ρ(An-1 → u n )=ρ, then there exist corresponding derivation \(S{\mathop \Rightarrow \limits^\rho}^* \,\theta ,\) it implies that if ρ≤ f M (θ), then ρ≤ f G (θ), that is, f M ≤ f G .
Therefore, f M =f G . From lemma 4. 1, f M is equivalent to a DLA language, thus f G can be accepted by a DLA. □
Theorem 4.2 The languages accepted by DLA are L-valued deterministic regular languages.
Proof Let M=(X, U, δ, x0, σ1) be a DLA, define an LRG G=(N, T, P, S), where T=U, N=X, S=x0.
Check all the transition functions in M, for every y=δ(x, u) where x, y∈X, u∈U, we define a corresponding production: \(x\xrightarrow{e}uy \in P.\) Let Y={x|σ1(x)≠ 0 }, \(Y \subseteq X.\)
If the transition functions satisfy that δ(x, u)∈Y, then we define another kind of productions: \(x\xrightarrow{{\rho _i }}u\) and ρ i (x→ u)=σ1(Z i ), Z i ∈Y, i=1, 2, ..., m, where m=|Y|.
Clearly, such a grammar G is an DLRG. We show f M =f G below.
Let θ∈T*, if θ=Λ, then f G (θ)=ρ(S → Λ)=f M (Λ).
When θ≠Λ, suppose that θ=u1,u2...u n , where u i ∈T for i=1, 2, ..., n, then the process that θ is accepted by M can be denoted as
so f M (θ)=σ1(δ*(x0, θ))=σ1(Z).
Correspondingly, from the construction of G we know that, if \(S{\mathop \Rightarrow \limits^\rho}^* \,\theta \) there must exist some derivation of θ with form,
where \(A_{i - 1} \xrightarrow{e}u_i A_i \in P,i = 1,2, \ldots ,n - 1,A_0 = S = x_0 ;A_{n - 1} \xrightarrow{\rho }u_n \in P.\) Furthermore, ρ (S → θ)=ρ(An-1→ u n )=σ1(Z), thus f G =f M . □
Example 4.1 Let L=[0, 1], • is the multiplication of real numbers, M=(X, U, δ, x0, σ1) is a DLA, where U={u1, u2}, X={x1, x2, x3, x4}, x0=x1, σ1=(0.5/x2)+(0.8/x3), δ(x1, u1)=x2, δ(x2, u1)=x3, δ(x3, u1)=x4, δ(x4, u2)=x3, δ(x3, u2)=x2.
Construct an LRG G=(N, T, P, S), where N={x1, x2, x3, x4}, T={u1, u2}, S=x1. The fuzzy productions in P are as follows:
and ρ1=σ1(x2)=0.5, ρ2=σ1(x3)=0.8.
For θ=u 31 u2, its derivations in G are as follows, \(x_1 \xrightarrow{e}u_1 x_2 \xrightarrow{e}u_1^2 x_3 \xrightarrow{e}u_1^3 x_4 \xrightarrow{{\rho _2 }}u_1^3 u_2 ,\) then f G (θ)=ρ2=0.8, and f M (θ)=σ1 (δ*(x1, θ))=σ1(x3) =0.8, thus f M (θ)=f G (θ).
Thereby, from theorems 4.1 and 4.2 we can immediately get the following conclusion:
Corollary 4.1. For an L-language f over a finite set U, f can be accepted by a DLA iff f can be generated by a DLRG.
In Li (2003), a sufficient and necessary condition has been given for the lattice-ordered monoid L, which to ensure that any LA is equivalent to some DLA, then we can obtain another similar conclusion for LRG and DLRG.
Corollary 4.2. For any LRG G, there exists a DLRG G′ such that f G =fG′ iff the lattice-ordered monoid L satisfies the following conditions, for any finite subset L′ of L, the subalgebra of (L, •, ∨) generated by L′ is finite.
Distributive lattice always satisfies the conditions stated in Corollary 4.2, that is to say, for any distributive lattice L, if L′ is a finite subset of L, then the sublattice of L generated by L′ is also finite. Then we deduce the following corollary.
Corollary 4.3 If (L, ∧, ∨) is a distributive lattice, then any LRG are equivalent to an DLRG.
5 Conclusion
Regular grammars with truth values in lattice-ordered monoid and the languages generated by them are studied in this paper. We show the equivalence between LA and LRG in the sense of recognizing fuzzy languages. Since, LA are not equivalent to DLA in the power of recognizing fuzzy languages, we define a special regular grammar DLRG and show that this kind of grammars are equivalent to DLA.
Of course, much more work should be done in this direction. Some other related work such as minimization of LA, the special (algebraic) properties of LA languages from the point of view of level structure, and the formal model of computing with words (Ying 2002) based on LRG and DLRG, and so on, should be studied in the future work.
References
Asveld PRJ (2003) Algebraic aspects of families of fuzzy languages. Theor Comput Sci 293:417–445
Balbes R, Dwinger P (1974) Distributive lattices. University of Mossouri Press, Columbia
Bělohlávek R (2002) Determinism and fuzzy automata. Inform Sci 142:205–209
Birkhoff G (1940) Lattice theory, 3rd edn (1973). American Mathematical Society, Providence, Rhode Island
Hopcroft JE, Ullman JD (1979) Introduction to automata theory, languages and computation. Addison-Wesley, New York
Kandel A, Lee SC (1980) Fuzzy switching and automata: theory and applications. Arnold, London
Lee ET, Zadeh LA (1969) Note on fuzzy languages. Inform Sci 1:421–434
Li YM, Zhou M, Li ZH (2002) Projective objects and injective objects in the category of quantales. J Pure Appl Algebra 176(2–3):249–258
Li YM, Shi ZK (2000) Remarks on uninorm aggregation operators. Fuzzy Sets Syst 114(3):377–380
Li YM (2003) Finite automata with truth values in lattice-ordered monoid and and their languages. (preprint)
Li YM, Pedrycz W (2004) Regular expressions with truth values in lattice-moniod and their languages. In: 2004 Annual meeting of The North American Fuzzy Infromation Processing Society. 2004 IEEE ISBN 0-7803-8377-X IEEE Cat. No. 04TH8736C, Banff, Alberta, Canda, 27–30 June 2004, pp 572–577
Malik DS, Mordeson JN (2000) Fuzzy discrete structures. Physica-Verlag, New York
Mordeson JN, Malik DS (2002) Fuzzy automata and languages: theory and applications. Chapman and Hall/CRC, Boca Raton, London
Močkoř J (2002) Semigroup homomorphisms and fuzzy automata. Soft Comput 6:423–427
Qiu DW (2001) Automata theory based on complete residuated lattice-valued logic. Sci China Ser F 44(6):419–429
Rosenthal KL (1990) Quantales and their applications. Longman Scientific and Technical, London
Santos ES (1975) Realization of fuzzy languages by probabilistic, max-product and maxmin automata. Inform Sci 8:39–53
Santos ES (1976) Fuzzy automata and languages. Inform Sci 10:193–197
Santos ES (1977) Regular fuzzy expressions. In: gupta MM, Saridis GN, Gaines BR (eds) Fuzzy Automata and Decision Processes. North-Holland, Amsterdam, pp 169–175
Shen JZ (1996) Fuzzy language on free monoid. Inform Sci 88:149–168
Thomason MG, Marinos PN (1974) Deterministic acceptors of regular fuzzy languages. IEEE Trans Syst Man Cybern 4:228–230
Wechler W (1978) The concept of fuzziness in automata and language theory. Addison-Wesley, Reading
Yager RR (1994) Aggregation operators and fuzzy systems modeling. Fuzzy Sets Systems 67:C129–C145
Ying MS (2002) A formal model of computing with words. IEEE Trans Fuzzy Syst 10(5):640–652
Acknowledgements
The authors would like to thank the anonymous referees for their careful reading of this paper and for a number of valuable comments which improved the quality of this paper. This work is supported by National Science Foundation of China (Grant No. 60174016, 10226023), “TRAPOYT” of China and 973 Program of China No. 2002CB312200.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Sheng, L., Li, Y. Regular grammars with truth values in lattice-ordered monoid and their languages. Soft Comput 10, 79–86 (2006). https://doi.org/10.1007/s00500-004-0427-y
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00500-004-0427-y