Acessibilidade / Reportar erro

Fuzzy Linear Automata and Some Equivalences

ABSTRACT

In this paper, we present two new normal forms for fuzzy linear grammars. Moreover, we introduce two new classes of fuzzy machines. The first is the class of fuzzy linear automata (FLA). We show that automata of this type is equivalent to the fuzzy linear grammar, i.e., we prove that the class of fuzzy languages is recognized by fuzzy linear automata. Finally, we introduce the class of fuzzy nondeterministic 2-tape automata (FNTA), show the equivalence between them and fuzzy linear automata.

Keywords:
Fuzzy grammar; Fuzzy linear grammars; Fuzzy Language; Fuzzy Automata

RESUMO

Neste artigo, apresentamos duas novas formas normais para as gramáticas lineares fuzzy. Além disso, introduzimos duas novas classes de máquinas fuzzy. A primeira é a classe dos autômatos lineares fuzzy (FLA). Mostraramos que este tipo de autômato é equivalente as gramáticas lineares fuzzy, i.e, provamos que a classe das linguagens lineares fuzzy é reconhecida pelos autômatos lineares fuzzy. Por fim, introduzimos a classe dos autômatos não-determinísticos de 2-fitas fuzzy (FNTA) e mostramos a equivalência entre estes e os autômatos lineares fuzzy.

Palavras-chave:
Gramáticas Fuzzy; Gramáticas Lineares Fuzzy; Linguagens Fuzzy; Autômatos Fuzzy

1 INTRODUCTION

Formal language theory focuses on the study of sets of words called “languages” and in the algebraic structures that is generated and recognized by these sets of words. As said in 1010 M.A. Harrison. Introduction to Formal Languages Theory. Addison-Wesley Publishing Company (1978). some of these algebraic structures that generate these sets are called “grammars”. The original Chomsky’s hierarchy is composed by four formal languages classes (see 99 N. Chomsky. Three models for the description of language. IRE Transactions on Information Theory, 2 (1956), 113-124.) which has been widely and deeply studied. This hierarchy has been extended with some others important classes of formal languages.

The linear languages introduced by Amar and Putzolu 22 V. Amar & G. Putzolu. On a Family of Linear Grammars. Information and Control, 7 (1964), 283-291. is one class of languages that extends the Chomsky’s hierarchy. Linear languages are characterized by linear grammars or by states machines presented by Bedregal and Rosemberg, respectively nondeterministic linear automata 55 B.R.C. Bedregal. Nondeterministic Linear Automata and a Class of Deterministic Linear Languages.In Preliminary Proceedings LSFA (2015).), (44 B.R.C. Bedregal. l-ALN: Autômatos Lineares Não-Determinísticos com l-Transições. TEMA - Tendências em Matemática Aplicada e Computacional, 12(3) (2011), 171-182. and nondeterministic 2-tape finite automata 1717 A.L. Rosemberg. A machine realization of the linear context-free languages. Information and Control, 10 (1967), 175-188..

As can be seen in 1616 J.N. Mordeson & D.S. Malik. Fuzzy Automata and Languages: Theory and Applications. Chapman & Hall/CRC, Washington, D. C., USA (2002). every class of language and respectively your grammar has a fuzzy version. Chaudhari and Komejwar presented in 88 S.R. Chaudhari & D.D. Komejwar. On Fuzzy Regular Grammars. Advances in Fuzzy Mathematics, 6(1) (2011), 89-104. the notions of fuzzy linear grammars and fuzzy linear language. Already in 1616 J.N. Mordeson & D.S. Malik. Fuzzy Automata and Languages: Theory and Applications. Chapman & Hall/CRC, Washington, D. C., USA (2002).), (88 S.R. Chaudhari & D.D. Komejwar. On Fuzzy Regular Grammars. Advances in Fuzzy Mathematics, 6(1) (2011), 89-104.), (2121 H. Xing, Q. Daowen & F. Liu. Automata theory based on complete residuated lattice-valued logic: Pushdown automata. Fuzzy Sets and Systems, 160(8) (2009), 1125-1140. are defined the notions of normal forms for fuzzy regular grammars and fuzzy context-free grammars.

In this paper we will introduce two new normal forms for fuzzy linear grammars. Next we will present a fuzzy generalization for the nondeterministic linear automata 55 B.R.C. Bedregal. Nondeterministic Linear Automata and a Class of Deterministic Linear Languages.In Preliminary Proceedings LSFA (2015)., that we called fuzzy linear automata (FLA). Then we will show that this new class of fuzzy automata can be used as characterization for fuzzy linear languages. Moreover, we will define the class of the fuzzy 2-tape automata (FNTA), and we will prove that these are equivalent to the fuzzy linear automata, i.e., they are characterization for fuzzy linear languages.

This work will be divided in five sections, this introduction, the Background where is presented the fundamentals required for work, in 3-th section are introduced the new normal forms. In section 4 is presented the news classes of fuzzy states machines, and finally in 5-th section the conclusion of this work.

2 BACKGROUND

In this section, we introduce the basic concepts need for this work.

2.1 Formal Language

The unity basic for study of formal language, grammar and automata is the notion of alphabet.

Definition 1.An alphabet Σ is an non-empty finite set, the elements of Σ are called letters (or symbols).

A word on an alphabet Σ is a finite sequence of symbols on Σ. On any alphabet is defined a special word, called empty word, denoted by λ. The empty word is a word without symbols of the alphabet. The size of any word w, denoted by |w|, is the number of symbols in w. Thus, if w=aea, we have that |w|=3 and for the empty word | λ |=0. Some remarkable sets can be obtained from the alphabet Σ.

Definition 2.For some integer n ≥ 0 and any alphabet Σ, is defined the set Σn of all words of size n.

Remark 1.Notice that the set Σ0 contains only the empty word, i.e., Σ0 =.{ λ}.

Definition 3.For any alphabet Σis defined, the positive closure, denoted by Σ+ such that,Σ + = i = 1 Σ i and the Kleene closure, denoted by Σ* , where Σ* = Σ0⋃Σ+.

Definition 4.Let w ∈ Σ* be a word, such that w=λ or w =x 1 x 2 ...x n-1 x n with x i ∈ Σ. The functions R l , R r , M l , M r : Σ* Σ* are defined by:

R l ( w ) = x 1 , i f w > 0 λ , e l s e M l ( w ) = x 2 x n 1 x n , i f w > 1 λ , e l s e R r ( w ) = x n , i f w > 0 M r ( w ) = x 1 x 2 x n 1 , i f w > 1 λ , e l s e λ , e l s e

Example 1.For the word “Brazil” we have that Rl(Brazil)=B, Ml(Brazil) = razil., RR (Brazil) = l. and R M (brazil)=Brazi.

Moreover, if w= a 1 a 2 ...a m - 1 a m and w’ = b 1 b 2...b n -1 b n , then the concatenation of w with the word w' is the word ww’ = a 1 a 2...a n-1 a m b 1b2...b n-1 b n . The concatenation of any word w with λ is, wλ=λw=w. If w= a 1 a 2 ...a m - 1 a m , then w R = a m a m-1 ...a 2 a 1 is the reverse of w.

Definition 5.66 B.R.C. Bedregal, B.M. Acióly & A. Lyra. Introdução à Teoria da Computação: Linguagens Formais, Autômatos e Computabilidade. EdUnP/FAPERN, Natal, RN, 1 edition (2010).A language L is a subset of words on Σ*, i.e., L ⊆ Σ*.

2.2 Basic Fuzzy Theory

The fuzzy theory is a generalization introduced by Zadeh in his work 2222 L.A. Zadeh. Fuzzy Sets. Information and Control, 8 (1965), 338-353. of the notion of sets, proposed initially in 1884 by the german mathematician Georg Cantor. The key concept of fuzzy theory is the notion of fuzzy set, where the elements of the universe belongs to the fuzzy set with a membership value, typically a value on [0,1].

Definition 6.2222 L.A. Zadeh. Fuzzy Sets. Information and Control, 8 (1965), 338-353.Let 𝕌be a non-empty universe set. A fuzzy set A on 𝕌 is characterized by the function µ A: 𝕌 [0,1] , where µ A (x) is the membership value of the element x∊ 𝕌on fuzzy set A.

Remark 2. The fuzzy set A can be seen as the set of ordered pairs.

A = { ( x , μ A ( x ) ) x U }

Definition 7.Let 𝕌be a non-empty universe set. A positive fuzzy semi-set A on 𝕌 is characterized by the partial function Ψ A : 𝕌]0,1].

It is easy to see that there is at least one bijection from the class of positive fuzzy semi-sets onto the class of fuzzy sets. In 1515 K. Menger. Statistical metrics. Proc. Nat. Acad., 28 (1942), 535-537. Menger introduces the operators t-norms and t-conorms, already Schweizer and Sklar in 1818 B. Schweizer & A. Sklar. Associative functions and statistical triangle inequalities. Publicationes Mathematicae Debrecen, 8 (1961), 168-186. presented an axiomatic for the t-norms and t-conorms. These operators has been used as standard operators in fuzzy theory studies, see 2121 H. Xing, Q. Daowen & F. Liu. Automata theory based on complete residuated lattice-valued logic: Pushdown automata. Fuzzy Sets and Systems, 160(8) (2009), 1125-1140.), (2222 L.A. Zadeh. Fuzzy Sets. Information and Control, 8 (1965), 338-353.), (77 B.R.C. Bedregal & S. Figueira. On the computing power of fuzzy Turing machines. Fuzzy Sets and Systems, 159(9) (2008), 1072-1083.), (11 C. Alsina, E. Trillas & L. Valverde. On non-distributive logical connectives for fuzzy set theory. BUSEFAL, 3 (1980), 18-29.), (1313 E.T. Lee & L.A. Zadeh. Note on fuzzy languages. Information Sciences, 1 (1969), 421-434..

Definition 8.1212 E.P. Klement, R. Mesiar & E. Pap. Triangular Norms, volume 8 of Trends in Logic. Springer-Science+Business Media, B.V., Poland (2000).A function ⊗:[0, 1]2 [0, 1] is a t-norm if the following properties are satisfied:

T1. Commutativity: ⊗ (x,y)= ⊗ (y,x);

T2. Associativity: ⊗ (x, ⊗ (y,z)) = ⊗ (⊗ (x,y),z);

T3. Monotonicity: if xx' and yy', then ⊗ (x,y) ≤ ⊗ (x',y') and

T4. 1-neutral: ⊗ (x,1)=x.

An element x ≠ 0 is called zero divisor on a t-norm ⊗ if there exist y ≠ 0 such that, ⊗ (x,y) = 0. In this paper we will consider only t-norms without zero divisors.

Definition 9.1212 E.P. Klement, R. Mesiar & E. Pap. Triangular Norms, volume 8 of Trends in Logic. Springer-Science+Business Media, B.V., Poland (2000).A function ⊗:[0, 1]2 [0,1] is a t-conorm if the following properties are satisfied:

S1. Commutativity: ⊗ (x,y)= ⊗ (y,x);

S2. Associativity: ⊗ (x, ⊗ (y,z))= ⊗ (⊗ (x,y),z);

S3. Monotonicity: if xx' and yy', then ≤ (x,y) ≤ ⊗ (x',y') and

S4.0-neutral: ⊗ (x,0)=x.

As presented t-norms and t-conorm are binary operations, however, it is interesting and convenient extend this notion so that they can receive an n-tuple of input arguments, this extension of the t-norm is defined recursively for some positive integer n as being,

i = 1 n x i = i = 1 n - 1 x i , x n = ( x 1 , x 2 , , x n )

and

i = 1 n x i = i = 1 n - 1 x i , x n = ( x 1 , x 2 , , x n )

Remark 3.In the particular case of n =1 we have that, ⊗(x 1) = x 1 ⊕(x 1) = x 1 .

2.3 Fuzzy Languages and Fuzzy Grammars

While in formal languages there is a guarantee of a high level of accuracy, in natural languages there is a high level of imprecision 1616 J.N. Mordeson & D.S. Malik. Fuzzy Automata and Languages: Theory and Applications. Chapman & Hall/CRC, Washington, D. C., USA (2002).. In an attempt to narrow the gap between formal languages and natural languages Lee and Zadeh introduced fuzzy languages and fuzzy grammars 1313 E.T. Lee & L.A. Zadeh. Note on fuzzy languages. Information Sciences, 1 (1969), 421-434..

Definition 10.1313 E.T. Lee & L.A. Zadeh. Note on fuzzy languages. Information Sciences, 1 (1969), 421-434.A fuzzy language 𝕃 is a fuzzy set on Σ* . Thus 𝕃 is a set of ordered pairs 𝕃 = {(w, μ 𝕃 (w)) | w ∊ Σ*}.

As said in 1616 J.N. Mordeson & D.S. Malik. Fuzzy Automata and Languages: Theory and Applications. Chapman & Hall/CRC, Washington, D. C., USA (2002)., fuzzy grammars are sets of rules capable of generating the elements of a fuzzy set, thus, are generators of fuzzy languages.

Definition 11. 8 8 S.R. Chaudhari & D.D. Komejwar. On Fuzzy Regular Grammars. Advances in Fuzzy Mathematics, 6(1) (2011), 89-104. A Fuzzy Context-Free Grammar (FCG) is a structure G = V , Σ , S ^ , P ^ , , where:

V is a finite set of variables and Σ is an alphabet ;

S ^ : V → [0,1] is a non-empty fuzzy set;

P ^ : V × (V ∪ Σ)* → [0,1] is a positive fuzzy semi-set of the productions.

is a t-norm andis a t-conorm.

As in 1616 J.N. Mordeson & D.S. Malik. Fuzzy Automata and Languages: Theory and Applications. Chapman & Hall/CRC, Washington, D. C., USA (2002).),(88 S.R. Chaudhari & D.D. Komejwar. On Fuzzy Regular Grammars. Advances in Fuzzy Mathematics, 6(1) (2011), 89-104.),(1313 E.T. Lee & L.A. Zadeh. Note on fuzzy languages. Information Sciences, 1 (1969), 421-434. for simplicity, P ^ (α, β)= σ is written as α σ β for some σ ∊ [0,1], α ∊ V and β ∊ (V ⋃ Σ)*, in this case we denote α σ β P ^ .

Example 2.The structure 𝒢 = 〈{A,B,X},{a,b},{(X,0.9)},P ^ , min, maxis a FCG whereP ^ = { X 0 . 8 A , X 0 . 8 B , A 0 . 5 a , A 0 . 6 b , B 0 . 4 A , B 0 . 2 a } .

Definition 12.Given a fuzzy grammar 𝒢, for all w, w’ ∊ (V ∪ Σ)* we define the set,

Γ w , w ' = { σ | ( x , y , α , β Σ * ) , w = x α y , w ' = x β y a n d α σ β P ^ }

As in 1616 J.N. Mordeson & D.S. Malik. Fuzzy Automata and Languages: Theory and Applications. Chapman & Hall/CRC, Washington, D. C., USA (2002). we say that w’ ∊ (V ∪ Σ)* is directly derived from w ∊ (V ∪ Σ)* in a FCG G, denoted by relation wG w’, if Γw,w’ ≠ Ø. There are several forms of calculating the membership value of direct derivation from one word to another 88 S.R. Chaudhari & D.D. Komejwar. On Fuzzy Regular Grammars. Advances in Fuzzy Mathematics, 6(1) (2011), 89-104.),(2121 H. Xing, Q. Daowen & F. Liu. Automata theory based on complete residuated lattice-valued logic: Pushdown automata. Fuzzy Sets and Systems, 160(8) (2009), 1125-1140.),(1313 E.T. Lee & L.A. Zadeh. Note on fuzzy languages. Information Sciences, 1 (1969), 421-434.),(33 P.R.J. Asveld. Fuzzy context-free languages-Part 1: Generalized fuzzy context-free grammars. Theoretical Computer Science, 347 (2005), 167-190., and here we present our interpretation of how to obtain such a value.

Definition 13.Let G be a fuzzy grammar, the membership value of wG wis given by the function d G: (V ∪ Σ)* × (V ∪ Σ)* → [0,1] where d G is defined as:

d G ( w , w ' ) = Γ w , w ' (2.1)

withbeing the operation of supremum in the poset Z([0,1],((.

If w 1, w 2,…,w n-1 , w n ∊ (V ∪ Σ)* and w 1G w 2, w 2G w 3,..., w n-1G w n , then we say that there exist a derivation from w 1 onto w n . We defined the binary relation ⊨* G as being the reflexive and transitive closure of ⊨G and it’s membership value is defined as follows.

Definition 14.Let G be a fuzzy grammar, the membership value of w* G w’ is given by the functiond ^ G : (V ∪ Σ)+ × (V ∪ Σ)* → [0,1] defined by:

d ^ G ( w , w ' ) = 1 , i f w = w ' w ' ' ( V Σ ) + ( ( d ^ G ( w , w ' ' ) d G ( w ' ' , w ' ) ) ) , e l s e (2.2)

Example 3.Let G be the fuzzy grammar of Example 2. The membership value of X* G a is obtained by:

d ^ ( X , a ) = m a x ( m i n ( d ^ ( X , A ) , d ( A , a ) ) , m i n ( d ^ ( X , B ) , d ( B , a ) ) ) = m a x ( m i n ( m a x ( m i n ( 1 , 0 . 8 ) , m i n ( d ^ ( X , B ) , 0 . 4 ) ) , 0 . 5 ) , m i n ( d ^ ( X , B ) , 0 . 2 ) ) = m a x ( m i n ( m a x ( 0 . 8 , m i n ( 0 . 8 , 0 . 4 ) ) , 0 . 5 ) , m i n ( 0 . 8 , 0 . 2 ) ) = m a x ( m i n ( 0 . 8 , 0 . 5 ) , 0 . 2 ) = 0 . 5

The membership value of w ∊ Σ* be generated by a FCG G, is the value of all derivations from α onto w, where α ∊ V, such membership value is given by the equation,

μ G ( w ) = α V ( S ^ ( α ) , d ^ ( α , w ) ) (2.3)

Definition 15.The fuzzy language of a fuzzy grammar G is the fuzzy set of all words generated by G, defined by, L(G) = {(w, μG (w))|w ∊ Σ*}.

Definition 16.Let G be a FCG, the productions of the formA σ C P ^ with A,CV are called unitary productions.

Lemma 1. If G is a FCG, then there is a FCG G' without unitary productions such that L(G)=L(G').

Proof. See the first step of the algorithm for obtaining Chomsky’s normal form in page 193 from 1616 J.N. Mordeson & D.S. Malik. Fuzzy Automata and Languages: Theory and Applications. Chapman & Hall/CRC, Washington, D. C., USA (2002)..

Fuzzy languages as the “classical” languages can be classified according to their type of generating grammar 1616 J.N. Mordeson & D.S. Malik. Fuzzy Automata and Languages: Theory and Applications. Chapman & Hall/CRC, Washington, D. C., USA (2002). in classes or families, this organization constitutes a fuzzy version of Chomsky’s hierarchy99 N. Chomsky. Three models for the description of language. IRE Transactions on Information Theory, 2 (1956), 113-124.. Besides the types of grammar presented in 1616 J.N. Mordeson & D.S. Malik. Fuzzy Automata and Languages: Theory and Applications. Chapman & Hall/CRC, Washington, D. C., USA (2002)., there exist another type of fuzzy grammar, called fuzzy linear grammar 88 S.R. Chaudhari & D.D. Komejwar. On Fuzzy Regular Grammars. Advances in Fuzzy Mathematics, 6(1) (2011), 89-104..

Definition 17.88 S.R. Chaudhari & D.D. Komejwar. On Fuzzy Regular Grammars. Advances in Fuzzy Mathematics, 6(1) (2011), 89-104.A FCG G will be said be a Fuzzy Linear Grammar (FLG) if for allα σ β P ^ , we have β = x1Ax2and A ∊ (V ∪{λ}) and x 1 , x 2 ∊ Σ*.

Remark 4. Notice that every FLG is a FCG, but the opposite is not true.

Definition 18.A fuzzy language 𝕃 is a fuzzy linear language, if there exists a FLG G such that L(G)=𝕃.

3 NEW NORMAL FORMS

In 1616 J.N. Mordeson & D.S. Malik. Fuzzy Automata and Languages: Theory and Applications. Chapman & Hall/CRC, Washington, D. C., USA (2002).),(88 S.R. Chaudhari & D.D. Komejwar. On Fuzzy Regular Grammars. Advances in Fuzzy Mathematics, 6(1) (2011), 89-104. we find a notion of normal form for fuzzy grammars, however, this normal form was directed only to the class of grammars type 0 (or fuzzy regular grammars). In 2121 H. Xing, Q. Daowen & F. Liu. Automata theory based on complete residuated lattice-valued logic: Pushdown automata. Fuzzy Sets and Systems, 160(8) (2009), 1125-1140. we have the idea of normal form for fuzzy free context grammars. We now propose two new normal forms for the class of fuzzy linear grammars.

Definition 19.Let G be a FLG, then for all α ∊ V we say:

  • 1. α is left-linear (or LL), if for all

    α σ β P ^
    , we have β = Ba, where α ∊ Σ+ and BV.

  • 2. α is right-linear (or RL), if for all

    α σ β P ^
    , we have β = aB, where α ∊ Σ+ and BV.

  • 3. α is without direction (or WD), if for all

    α σ β P ^
    , we have β ∊ Σ* or βV.

Definition 20.Let G be a FLG we define the sets,V L G ={α ∊ V | α is LL} andV L G ={α ∊ V | α is RL}.

Lemma 2For all FLG G, there exist a FLG G' in LNF without production of the formA σ u B v with A, BV and u, v, ∊ Σ+ such that L(G)=L(G').

Proof. (Sketch) Without loss of generality assume G = (V, Σ, Ŝ, P ^ , ⊗, ⊕( does not contain unitary productions (Lemma 1). Thus we build G' = (V', Σ, Ŝ, P ^ ', ⊗, ⊕( by the following algorithm.

  • 1. Initially do V' = V and

    P ^
    ' =
    P ^
    .

  • 2. For all AV do:

  • 2.1 If A u = {

    A σ u B v
    P ^
    | for some BV and u, v, ∊ Σ+ } ≠ Ø, then for each production {
    A σ u B v
    A u define in
    P ^
    ' the production
    A 1 u C
    and
    C σ B v
    in
    P ^
    ', where C is a new variable add in V', finally remove
    A σ u B v
    of the
    P ^
    '.

To show that L(G)=L(G') we must show that for all production in G there exist a derivation equivalent in G'. Suppose that in G there exist A σ u B v P ^ , therefore by definition:

d ^ G ( A , u B v ) = ( ( d ^ G ( A , A ) , d G ( A , u B v ) ) = ( ( 1 , σ ) = σ = d G ( A , u B v )

But by step 2.1 exist in P ^ ' productions A 1 u C and C σ B v , so in G' we have,

d ^ G ' ( A , u B v ) = ( ( d ^ G ' ( A , u C ) , d G ' ( u C , u B v ) ) ) = ( ( ( ( d ^ G ' ( A , A ) , d G ' ( A , u C ) ) ) , d G ' ( u C , u B v ) ) ) = ( ( ( ( 1 , 1 ) ) , σ ) ) = ( ( 1 , σ ) ) = σ = d G ( A , u B v ) = d ^ G ( A , u B v ) .

Thus, for all derivation that use production of the form A σ u B v in G there exist in G' a derivation equivalent that use the productions A 1 u C and C σ B v . Therefore, we can conclude that the algorithm preserves degrees membership, so for all x ∊ Σ* we have to that μG (x) = μG’ (x), implying that L(G)=L(G').

A We said that a FLG G will be in linear normal form (LNF) only when V L G V R G = . Notice that, unlike the normal form in 88 S.R. Chaudhari & D.D. Komejwar. On Fuzzy Regular Grammars. Advances in Fuzzy Mathematics, 6(1) (2011), 89-104., the LNF does not require grammar to be strict in a direction.

Theorem 1. For all FLG G, there exist a FLG G' in LNF such that L(G)=L(G').

Proof. (Sketch) Without loss of generality assume that G = (V, Σ, Ŝ, P ^ , ⊗, ⊕( does not contain productions A σ u B v P ^ (Lemma 2), so all production in P ^ are of forms LL, RL and WR, thus G = (V', Σ, Ŝ, P ^ ', ⊗, ⊕( where P ^ ' is build by the following algorithm:

  • 1. Initially do V'=V and

    P ^
    ' =
    P ^
    .

  • 2. For all AV do:

  • 2.1 If A

    V L G V R G
    , then for each
    A σ'Bu
    P ^
    ' add the productions
    A1C
    and
    CσBv
    in
    P^
    such that C is a new variable. Add C in V', finally remove
    AσBv
    of the
    P^
    '.

Is easy see that the algorithm guarantees that for all AV if AV L G ’, then AV R G ’, so after executing the algorithm we will have that V L G V R G = . Now notice that, if A σ u B v P ^ by definition,

d ^ G ( A , B v ) = ( ( d ^ G ( A , A ) , d G ( A , B v ) ) = ( ( 1 , σ ) ) = σ .

but by algorithm from construction of 𝒢' (step 2.1) we have A 1 C , C σ B u P ^ ' and by definition,

d ^ G ' ( A , B v ) = ( ( d ^ G ' ( A , C ) , d G ' ( C , B v ) ) ) = ( ( ( ( d ^ G ' ( A , A ) , d G ' ( A , C ) ) ) , d ( C , B v ) ) ) = ( ( ( ( 1 , 1 ) ) , σ ) ) = ( ( 1 , σ ) ) = σ = d ^ G ( A , B v ) .

Thus, for all AV L G V R G we have that for all yours productions of the form A σ u B v , there exist in P ^ ' the productions A 1 C and C σ B u , so for all derivation that use productions of the form A σ u B v there exist in 𝒢' a derivation equivalent that use the productions A 1 C and C σ B u . Therefore, we can conclude that the algorithm preserves degrees membership, so for all x ∊ Σ* we have to that μ𝒢(x) = μ𝒢’(x), implying that L(𝒢)=L(𝒢').

A FLG will be in stronger linear normal form (SLNF) if all productions of P ^ are the form A σ a B or A σ B a with AV, BV ∪{λ}, a ∊ Σ ∪{λ} and σ > 0.

Theorem 2.For all fuzzy linear grammar 𝒢. There is a linear fuzzy grammar fuzzy 𝒢' in SLNF such that L(𝒢)=L(𝒢').

Proof. (Sketch) Without loss of generality assume 𝒢 = (V, Σ, Ŝ, P ^ , ⊗, ⊕( is in form LNF. We build then 𝒢' = ⟨V', Σ, Ŝ, P ^ ', ⊗, ⊕( using the algorithm:

  • 1. Initially do V'=V and

    P ^
    ' =
    P ^
    .

  • 2. For all AV' and a ∊ Σ, if A a ={

    A σ y a
    P ^
    | y ∊ Σ or |y| ≥ 2} ≠ ∅, then add a new variable C in V' and for all productions
    A σ y a
    A a define in
    P ^
    the productions
    A 1 C a
    and
    C σ y
    and remove
    A σ y a
    from
    P ^
    '.

  • 3. For all AV' and a ∊ Σ, if A a = {

    A σ a y
    P ^
    | y ∊ Σ or |y| ≥ 2, then add a new variable C in V' and for all productions
    A σ a y
    A a define in
    P ^
    ' the productions
    A 1 C a
    and
    C σ y
    and remove
    A σ a y
    from
    P ^
    '.

To show that L(𝒢)=L(𝒢') as before, we must show that the algorithm does not change the membership value of derivations. Let’s look at the case of step 2 (the same is similar to step 3). Suppose that AV and A σ y a with |y| ≥ 2 or y ∊ Σ and σ > 0, so we have,

d ^ G ( A , y a ) = ( ( d ^ G ( A , A ) , d G ( A , y a ) ) ) = ( ( 1 , σ ) ) = σ .

By construction of the 𝒢 ' exist the productions A 1 C a and C σ y . So,

d ^ G ' ( A , a y ) = ( ( d ^ G ' ( A , C a ) , d G ' ( C a , y a ) ) ) = ( ( 1 , σ ) ) = σ = d ^ G ( A , y a ) .

So the algorithm preserved membership value of derivations, since for every production A σ y a the algorithm constructs the productions A 1 C a and C σ y , thus is easy to see that if in a derivation in 𝒢 that use the production A σ y a , then there exist in 𝒢 ' an derivation equivalent that use the productions A 1 C a and C σ y . Therefore, for all x ∊ Σ* we have, µ𝒢 (x) = µ𝒢’ (x) , so L(𝒢)=L(𝒢 ').

4 TWO NEW FUZZY MACHINES

The interest in the study of fuzzy computing machines is related to both practical application of such models 1616 J.N. Mordeson & D.S. Malik. Fuzzy Automata and Languages: Theory and Applications. Chapman & Hall/CRC, Washington, D. C., USA (2002).),(88 S.R. Chaudhari & D.D. Komejwar. On Fuzzy Regular Grammars. Advances in Fuzzy Mathematics, 6(1) (2011), 89-104.),(1414 A. Maciel. Aplicações de Autômatos Finitos Nebulosos no Reconhecimento Aproximado de Cadeias. Master’s thesis, Escola Politécnica, Universidade de São Paulo, USP, São Paulo, SP (2006). and by the theoretical aspects 2121 H. Xing, Q. Daowen & F. Liu. Automata theory based on complete residuated lattice-valued logic: Pushdown automata. Fuzzy Sets and Systems, 160(8) (2009), 1125-1140.), (77 B.R.C. Bedregal & S. Figueira. On the computing power of fuzzy Turing machines. Fuzzy Sets and Systems, 159(9) (2008), 1072-1083.), (2020 A.D. Silva Farias, L.R. de Araújo Lopes, B.R.C. Bedregal & R.H. Santiago. Closure properties for fuzzy recursively enumerable languages and fuzzy recursive languages. Journal of Intelligent & Fuzzy Systems, 31(3) (2016), 1795-1806.), (1919 A.D. Silva Farias, V.S. Costa, R.H. Santiago & B.R.C. Bedregal. A Residuated Function in a Class of Mealy Type L-Valued Finite Automaton. In Fuzzy Information Processing Society (NAFIPS), 2016 Annual Conference of the North American (2016).. In this section, we will introduce two new classes of fuzzy automata, the fuzzy linear automata and the fuzzy nondeterministic 2-tapes automata. These models are respectively adaptations for the fuzzy domain of the model λ-ALN introduced by Bedregal in 55 B.R.C. Bedregal. Nondeterministic Linear Automata and a Class of Deterministic Linear Languages.In Preliminary Proceedings LSFA (2015). and of model 2-tape Automata introduced in 1717 A.L. Rosemberg. A machine realization of the linear context-free languages. Information and Control, 10 (1967), 175-188..

4.1 Fuzzy Linear Automata

Definition 21.Fuzzy Linear Automata(FLA) are structures ℳ =QL, Q R , Σ, ϕ, Î, F, ⊗, ⊕〉 where:

Q L and Q R are disjoint finite sets of states;

Σ is a alphabet;

ϕ: (QLQ R ) × (Σ ⋃ {λ}) × (Q LQ R ) → ]0, 1] is a positive fuzzy semi-set of instructions;

Î: (QLQ R ) → [0, 1] is a non-empty fuzzy set of initial states;

F ⊆ (Q LQ R ) is a set of final states;

is a t-norm andis a t-conorm.

To facilitate our presentation, we will write ϕ (q, a, q’) = σ as (q, q’)a = σ, in this case we denote (q, q’)aϕ. The FLA’s have the same characteristics in relation to “architecture” as the automata in 55 B.R.C. Bedregal. Nondeterministic Linear Automata and a Class of Deterministic Linear Languages.In Preliminary Proceedings LSFA (2015).),(44 B.R.C. Bedregal. l-ALN: Autômatos Lineares Não-Determinísticos com l-Transições. TEMA - Tendências em Matemática Aplicada e Computacional, 12(3) (2011), 171-182., i.e., a FLA is a machine with a memory (tape) read and two heads for reading of tape. Working with FLA’s we can adopt the idea of instant description (ID). A ID is a pair (q, w) where q ∊ (Q LQ R ) and ∊ Σ*.

Definition 22. Let be a FLA, for all ID (q, w) we define the sets

  • i.

    λ s u c ( q , w )
    ={(q', w) | q' ∊ (Q LQ R ) and (q, q') λ ∊ ϕ}.

  • ii.

    L s u c ( q , w )
    ={(q', w') | q' ∊ (Q LQ R ), w' = M l (w) and (q, q')R l(w) ∊ ϕ}.

  • iii.

    R s u c ( q , w )
    ={(q', w') | q' ∊ (Q LQ R ), w' = M r (w) and (q, q')R r(w) ∊ ϕ}.

  • iv. SUC (q,w) =

    λ s u c ( q , w ) L s u c ( q , w ) R s u c ( q , w )
    .

For all (q, w) and (q', w') the relation (q, w) ≻ (q', w') denotes the relation of computation, from (q, w) onto (q', w') on FLA . The membership value of computation of (q, w) onto (q', w') defined below.

Definition 23.We defined the fuzzy set D: (QL ⋃ QR) × Σ* × (Q L ⋃ QR) × Σ* → [0, 1] as being,

D M ( q , w , q ' , w ' ) = ( q , q ' ) λ , i f ( q ' , w ' ) λ s u c ( q , w ) ( q , q ' ) R l ( w ) , i f q Q L and ( q ' , w ' ) L s u c ( q , w ) ( q , q ' ) R r ( w ) , i f q Q R and ( q ' , w ' ) R s u c ( q , w ) 0 , any other case. (4.1)

Example 4Let ℳ = 〈{q 0, q 1}, {p 0}, {a, b, c}, µ, {(q0, 0.9), (q 1, 1)}, {q 0, q 1}, min, maxbe a FLA, where (q 0, p 0)a = 0.9, (q 0, q 1)b = 1 and (p 0, q 0)c =0.7. Thus, the membership value of (q 0, abaa) ≻ ℳ(p 0, baa) is

D M ( q 0 , a b a a , p 0 , b a a ) = ( q 0 , p 0 ) R l ( a b a a ) = ( q 0 , p 0 ) a = 0 . 9

The relation binary ≻* is the reflexive and transitive closure of ≻ and we extend the D function by the function D ¯ M below.

Definition 24.The membership value of (q ,w) ≻* M (q”, w”) is given by the functionD ¯ M : (Q LQ R ) × Σ* × (Q LQ R ) × Σ* [0, 1] define as being,

D ¯ M ( q , w , q ' ' , w ' ' ) = D ( q , w , q ' ' , w ' ' ) i f ( q ' ' , w ' ' ) S U C ( q , w ) ( q ' , w ' ) S U C ( q , w ) ( ( D M ( q , w , q ' , w ' ) , D ¯ M ( q ' , w ' , q ' ' , w ' ' ) ) ) i f S U C ( q , w ) 0 0 , any other case.

Example 5.4Consider the FLA of Example 4 the membership value of chain of computation (q 0, abc) ≻* M (p 0, λ) is given by:

D ¯ M ( q 0 , a b c , p 0 , λ ) = m a x ( m i n ( D M ( q 0 , a b c , p 0 , b c ) , D ¯ M ( p 0 , b c , p 0 , λ ) ) ) = m a x ( m i n ( 0 . 9 , m a x ( m i n ( 0 . 7 , 1 ) ) ) ) = m a x ( m i n ( 0 . 9 , 0 . 7 ) ) = 0 . 7

It is known that an automaton recognizes an input word if from one initial state he consumes all the symbols of the input word and arrives in a final state 66 B.R.C. Bedregal, B.M. Acióly & A. Lyra. Introdução à Teoria da Computação: Linguagens Formais, Autômatos e Computabilidade. EdUnP/FAPERN, Natal, RN, 1 edition (2010).), (1111 J.E. Hopcroft, R. Motwani & J.D. Ullman. Introduction To Automata Theory, Languages, and Computation. Addison-Wesley, New York, USA, 2 edition (2001).. We can then define this same concept for FLA’s as follows.

Definition 25.Let ℳ = 〈Q L , Q R , Σ, ϕ, Î, F, ⊗, ⊕〉 be a FLA and a word w ∊ Σ*. Then the membership value that ℳ accept w is:

d e g M ( w ) = q ( Q L Q R ) , q ' F ( ( I ^ ( q ) , D ¯ M ( q , w , q ' , λ ) ) ) (4.2)

Definition 26.The language of any FLA ℳ is the fuzzy set of words accepted by ℳ, i.e., L(ℳ) = {(w, deg (w)) | w ∊ Σ*}.

Now we present two results that show the direct relationship between FLA’s and fuzzy linear grammars.

Theorem 3.Let ℳ be a FLA. Then there exist a fuzzy linear grammar 𝒢 such that L(𝒢) = L().

Proof. First given = 〈Q L , Q R , Σ, ϕ, Î, F, ⊗, ⊕〉 we build the grammar 𝒢 = 〈Q LQ R , Σ, Î,P ^ , ⊗, ⊕〉 where

P ^ = { q ' σ a q ' ' ( q ' , q ' ' ) a = σ , q ' Q L , q ' ' ( Q L Q R ) , a Σ { λ } } { q ' σ ' q ' ' a ( q ' , q ' ' ) a = σ ' , q ' Q R , q ' ' ( Q L Q R ) , a Σ { λ } } { q ' 1 λ q ' F } .

Clearly 𝒢 is a fuzzy linear grammar. Now for all (w, σ) ∊ L() where the word w is a 1 a 2 ...a n-1 a n , such that a i ∊ (Σ ⋃ { λ}), imply what exist q 0 , q n ∊ ( Q LQ R ) of form what (q 0 ,w) ≻* M (q n , λ) with Î(q 0).> 0,q nF. This imply that deg (w) =⊕{⊗(Î(q 0), D ^ (q 0 ,w’, q n , λ))} = σ. However from (q 0 , w) ≻* M' (q n , λ) we have that there exist fuzzy instructions:

( q 0 , q 1 ) a 1 = σ 1 , ( q 1 , q 2 ) a 2 = σ 2 , , ( q n - 2 , q n - 1 ) a n - 1 = σ n - 1 , ( q n - 1 , q n ) a n = σ n

Therefore, for each (q i , q i+1 )a i+1 with 0 ≤ in - 1 by construction of P ^ there exist a corresponding fuzzy production, which will be of the form q i σ i + 1 a i + 1 q i + 1 whenever q iQ L , or of form q i σ i + 1 q i + 1 a i + 1 whenever q iQ R and also a fuzzy production q n 1 λ for all q nF. Now consider w=y 1 y 2 for some y 1 y 2 ∊ Σ*, so by construction of G there exist a variable q 0V and a word w’=y 1 q n y 2, such that the derivation d ^ G ( q 0 , w ' ) using all productions correspond the instructions:

( q 0 , q 1 ) a 1 = σ 1 , ( q 1 , q 2 ) a 2 = σ 2 , , ( q n - 2 , q n - 1 ) a n - 1 = σ n - 1 , ( q n - 1 , q n ) a n = σ n

and by q n ∊ F there a production q n 1 λ , thus, y 1 q n y 2𝒢 y 1 y 2, and this implies,

d ^ G ( q 0 , w ) = ( ( d ^ G ( q 0 , w ' ) , d G ( w ' , w ) ) ) = ( ( d ^ G ( q 0 , y 1 q n y 2 ) , d G ( y 1 q n y 2 , y 1 y 2 ) ) ) = ( ( d ^ G ( q 0 , y 1 q n y 2 ) , 1 ) ) = ( d ^ G ( q 0 , w ' ) )

and thus, μ G ( w ) = ( ( I ^ ( q 0 ) , d ^ G ( q 0 , w ' ) ) ) and by construction of 𝒢 we have d ^ ( q 0 , w ' ) has a fuzzy production corresponding to each fuzzy instruction (q i , q i+1 )a i+1 used in D ¯ M ( q 0 , w , q n , λ ) , imply d ^ ( q 0 , w ' ) = D ¯ M ( q 0 , w , q n , λ ) , therefore,

μ G ( w ) = ( ( I ^ ( q 0 ) , D ¯ M ( q 0 , w ' , q n , λ ) ) ) .

Moreover, by definition d e g M ( x ) = ( ( I ^ ( q 0 ) , D ¯ M ( q 0 , w ' , q n , λ ) ) ) , and thus, µ𝒢 (w) =deg (w), so L(𝒢) = L(M).

Theorem 4 Let 𝒢 be a fuzzy linear grammar. Then there exist a FLA such that L()=L(𝒢).

Proof. Without loss of generality assume that 𝒢 = ⟨V', Σ, Ŝ, P ^ , ⊗, ⊕( is in the SLNF, thus build the FLA = (Q L , Q R , Σ, ϕ, Ŝ, F, ⊗, ⊕( where:

  • (i) Q L = {A|A is a variable LR} ⋃ {C}, Q R = {A| is variable LL}and C is a new label such that CV, and finally, F = {C}.

  • (ii) ϕ is defined for each A, BV and a ∊ (Σ ⋃ {λ}) as:

( A , B ) a = σ , if A σ a B or A σ B a P ^ ( A , C ) a = σ , if A σ a P ^ .

Clearly is a FLA. Now for all (w, σ) ∊ L(𝒢) with w = a 1 a 2...a n-1 a n such that a i ∊ (Σ ⋃ {λ}), we have µ G(w) = σ. Thus, there exist a A 1V such that d ^ G ( A 1 , w ) = σ , but of this, we have that the i-th production used in derivation is of the form A i σ i a i A i + 1 (or A i σ i a i A i + 1 ) with A iV, A i+1 ∊ (V ⋃ {λ}), a i ∊ (Σ ⋃{λ}) and σi ∊ ]0, 1], and last production used is A n σ n a n where A nV,a n ∊ (Σ ⋃{λ}) (By construction from ϕ exist fuzzy instructions corresponding to each fuzzy production, the fuzzy instruction will be of the form:

( A 1 , A 2 ) a 1 = σ 1 , ( A 2 , A 3 ) a 2 = σ 2 , , ( A n - 1 , A n ) a n - 1 = σ n - 1 , ( A n , C ) a n = σ n

and by construction from Q L and Q R we have CF, so it’s easy to see that (A, w) ≻* M' (C, λ), therefore,

d e g M ( w ) = ( ( S ^ ( A ) , D ¯ M ( A , w , C , λ ) ) ) .

Moreover, since each instruction in ϕ corresponds to a production in P ^ , imply what D ¯ M ( A , w , C , λ ) = d ^ G ( A , w ) , replacing in the previous equation we have,

d e g M ( w ) = ( ( S ^ ( A ) , d ^ G ( A , w ) ) )

however, by definition µG(w) = ⊕(⊗(Ŝ(A), d ^ G (A, w))), thus degM (x)= µG(x) , concluding that L(M)=L(G).

By symmetry of these two results and by Definition 18, we have the following corollary.

Corollary 1.A fuzzy language 𝕃 is a fuzzy linear language, if and only if there is a FLA M such that L(M)= 𝕃.

Proof. Immediately by Definition 18 and the Theorems 3 and 4.

A FLA M = 〈Q L , Q R , Σ , ϕ, Î, F, ⊗, ⊕〉 will be said simplified, or abbreviated S-FLA, if |F|=1, i.e., there is only one final state.

Theorem 5.If M is a FLA, then there exist a S-FLA M' such that L(M')=L(M)

Proof. Suppose that M = 〈Q L , Q R , Σ, ϕ, Î, F, ⊗, ⊕〉 is a FLA, thus we build a S-FLA M' = 〈Q L ⋃ {q f }, Q R , Σ, ϕ’, Î, {q f } ⊗, ⊕〉 where for a ∊ (Σ ⋃{λ}) we have ϕ' defined by:

ϕ ' ( q , a , q ' ) = ϕ ( q , a , q ' ) , if q , q ' ( Q L Q R ) 1 , if q F , q ' = q f 0 else

Now for all (w, σ) ∊ L(M) we have (q, w) ≻* M (q’, λ) with q'F so by definition,

d e g M ( w ) = σ ( ( I ^ ( q ) , D ¯ M ( q , w , q ' , λ ) ) ) = σ .

But by construction of M', all the instructions in ϕ are also instructions in ϕ', moreover, is easy to see that in M' we have that (q, w) ≻* M (q’, λ) ≻M' (q f , λ) and as by construction of M' for all qF that (q, q f )λ = 1, so is easily see that,

D ¯ M ' ( q , w , q f , λ ) = ( ( D ¯ M ( q , w , q ' , λ ) , 1 ) ) = ( D ¯ M ( q , w , q ' , λ ) ) = D ¯ M ( q , w , q ' , λ ) .

And thus,

d e g M ' ( w ) = ( ( I ^ ( q ) , D ¯ M ' ( q , w , q f , λ ) ) ) = ( ( I ^ ( q ) , D ¯ M ( q , w , q ' , λ ) ) ) = d e g M ( w ) .

Therefore, deg M' (w) = deg M (w) so L(M') = L(M).

Remark 5.For all S-FLA M = 〈Q L , Q R , Σ, ϕ, Î, F, ⊗, ⊕〉 by |F|={q f } we can write,

d e g M ( w ) = q ( Q L Q R ) ( ( I ^ ( q ) , D ¯ M ( q , w , q f , λ ) ) )

4.2 Fuzzy Nondeterministic 2-tapes Automata

The model of fuzzy nondeterministic 2-tapes automata is a machine with 2 memory tapes (read only). Each tape has a head of read initially located in the leftmost cell of the memory. Formally we define such automata as follows. This model is an extension of the model proposed by Rosenberg 1717 A.L. Rosemberg. A machine realization of the linear context-free languages. Information and Control, 10 (1967), 175-188..

Definition 27.Fuzzy Nondeterministic 2-tapes Automata (or FNTA), are structures of form m =Q, Σ, O, T, υ, q acc , ⊗, ⊕〉 where,

Q is a set finite of states;

Σ is a alphabet;

O: Q → [0, 1] is a fuzzy set of origin states;

T: Q → {1, 2} is a choose function of tape;

υ: Q × (Σ ⋃ {λ}) × Q → ]0, 1] is a positive fuzzy semi-set of the instructions;

qaccQ is the acceptance state and

is a t-norm andis a t-conorm.

Let’s write υ (q, a, q') = σ as (q, q')a = σ for all a ∊ (Σ ⋃ {λ}) and q, q' ∊ Q, and in this case we denote (q, q')a . ∊ υ.

Example 6.The structure m = 〈{q 0 , q 1 , q 2 , q acc },{a, b}, {(q 0, 1)} T, υ, q acc .min, maxwith T(q 0) = 1, T(q 1 ) = 2, T(q 2) = 1, T(q acc ) = 1 and υ defined by Ψ(q 0 , a, q 1) = 0.8, Ψ(q 1 , b, q 2) = 1, Ψ(q 2 , c, q acc) = 0.7 is an FNTA.

A configuration in FNTA m is a tuple (q, w 1, w 2) with qQ and w 1, w 2 ∊ Σ*, where q represents the current state, w 1 what remains to read from word on tape 1 and w 2 what remains to read from word on tape 2.

Definition 28.Let m be a FNTA, for all id (q, w 1 , w 2) we define the sets

  • i. λ d e s ( q ' , w 1 , w 2 ) = { ( q ' , w 1 , w 2 ) ( q , q ' ) λ υ } . ii. L d e s ( q ' , w 1 , w 2 ) = { ( q ' , w ' 1 , w 2 ) w ' 1 = M l ( w 1 ) and ( q , q ' ) R l ( w 1 ) υ } . iii. R d e s ( q ' , w 1 , w 2 ) = { ( q ' , w 1 , w ' 2 ) w ' 2 = M l ( w 2 ) and ( q , q ' ) R l ( w 2 ) υ } . iv. Ω ( q ' , w 1 , w 2 ) = λ d e s ( q ' , w 1 , w 2 ) L d e s ( q ' , w 1 , w 2 ) R d e s ( q ' , w 1 , w 2 ) .

The relation (q, w 1 , w 2) ⊢m (q’, w’ 1 , w’ 2) denotes a computation from (q, w 1 , w 2) onto (q’, w’ 1 , w’ 2). The membership value of computation from (q, w 1 , w 2) onto (q’, w’ 1 , w’ 2) is given as follows.

Definition 29.Given a FNTA m the membership value of a computation step (q, w 1 , w 2) ⊢m (q’, w’ 1 , w’ 2) is obtained by function f: Q × Σ* × Σ* × Q × Σ* × Σ* [0, 1] where f is:

f ( q , w 1 , w 2 , q ' , w ' 1 , w ' 2 ) = ( q , q ' ) λ , if ( q ' , w ' 1 , w ' 2 ) λ d e s ( q , w 1 , w 2 ) ( q , q ' ) R l ( w 1 ) , if T ( q ) = 1 and ( q ' , w ' 1 , w ' 2 ) L d e s ( q ' , w 1 , w 2 ) ( q , q ' ) R l ( w 2 ) , if T ( q ) = 2 and ( q ' , w ' 1 , w ' 2 ) R d e s ( q ' , w 1 , w 2 ) 0 , any other case (4.3)

The relation ⊢* m is the reflexive and transitive closure of ⊢m and we extend the f function by the function f ^ below.

Definition 30.Let a FNTA m the value of membership value of relation (q, w 1 , w 2) ⊢* m (q’, w’ 1 , w’ 2) is obtained by functionf ^ : Q × Σ* × Σ* × Q × Σ* × Σ* [0, 1]wheref ^ is:

f ^ ( q , x , y , q ' , x ' , y ' ) = f ( q , x , y , q ' , x ' , y ' ) , if ( q , w 1 ' , w 2 ' ) Ω ( q , w 1 , w 2 ) ( q i , x 1 , y 1 ) Ω ( q , w 1 , w 2 ) ( ( f ( q , x , y , q i , x 1 , y 2 ) , f ^ ( q i , x 1 , y 2 , q ' , x ' , y ' ) ) ) , if Ω ( q , w 1 , w 2 ) 0 0 , any other case

Example 7.Given the FNTA of Example 6 the membership value of computation (qo, ac, b) ⊢* m (q acc , λ, λ) is,

f ^ ( q 0 , a c , b , q a c c , λ , λ ) = m a x ( m i n ( f ( q 0 , a c , b , q 1 , b , c ) , f ^ ( q 1 , c , b , q a c c , λ , λ ) ) ) = m a x ( m i n ( 0 . 8 , m a x ( ( 1 , 0 . 7 ) ) ) ) = m a x ( m i n ( 0 . 8 , 0 . 7 ) ) = 0 . 7

There exist many possibilities of dividing a word w, thus for all w we define the set ∇w .= {(x, y) ∊ Σ*× Σ*| w = xy}We define the membership value of m accept w as follows.

A c c m ( w ) = ( x , y ) w , q Q ( ( O ( q ) , f ^ ( q , x , y R , q a c c , λ , λ ) ) ) (4.4)

Definition 31.The language of any FNTA m is a fuzzy set L(m) = {(w, Accm (w))|w ∊ Σ*}.

We can then show a relation between S-FLA class machines and class FNTA machines.

Theorem 6.Let m = 〈Q, Σ, O, T, υ, q acc , ⊗, ⊕〉 be a FNTA. Then there exist an S-FLA M =Q L , Q R , Σ, ϕ, O,{q acc }, ⊗, ⊕〉 such that L(M)=L(m).

Proof. Let a FNTA m = 〈Q, Σ, O, T, υ, q acc , ⊗, ⊕〉 , we build a machine S-FLA M =Q L , Q R , Σ, ϕ, O,{q acc }, ⊗, ⊕〉 where,

  • (i) Q L = {qQ| T(q) = 1} ⋃{q acc } and Q R = {qQ | T (q) = 2}.

  • (ii) For all q, q' ∊ Q and a ∊ (Σ ⋃ {λ}), (q, q’)a = (q, q’)a .

Clearly M is a S-FLA. Now for all (w, σ) ∊ L (m) we have that,

A c c m ( w ) = σ ( x , y ) w , q Q ( ( O ( q ) , f ^ ( q , x , y R , q a c c , λ , λ ) ) ) = σ

Now notice that, by construction of the M for each instruction in m of the form (q, q’)a there exist a instruction equivalent (q, q’)a in M. And for all (x, y) ∊ ∇w and q' ∊ Q, since that w = xy the first configuration (q’, x, y R ) of the m correspond the first ID (q', xy) in M, as every instruction in m has a instruction equivalent in M we have that for all computation (q’, x, y R ) ⊢* m (q acc , λ, λ)there exist a (q’, xy) ≻* M (q acc , λ) equivalent in M, i.e., D ¯ M (q’, xy, q acc , λ) = f ^ (q’, x, y R , q acc , λ, λ), so,

d e g M ( w ) = ( x , y ) w , q Q ( ( O ( q ) , D ¯ M ( q , x y , q a c c , λ ) ) ) = ( x , y ) w , q Q ( ( O ( q ) , f ^ ( q ' , x , y R , q a c c , λ , λ ) ) ) ) = A c c m ( w ) .

Therefore, L(M)=L (m).

Theorem 7.Let M =Q L , Q R , Σ, ϕ, Î, F, ⊗, ⊕〉 be a S-FLA. Then there is a FNTA m =Q, Σ, O, T, υ, q acc , ⊗, ⊕〉 such that L(m)=L(M).

Proof. Suppose that M =Q L , Q R , Σ, ϕ, Î, F, ⊗, ⊕〉 is a S-FLA, so F = {q f } with q f ∊ (Q LQ R ) , thus we can build a FNTA m = 〈Q LQ R , Σ, Î, T, υ, q f ⊗, ⊕〉 where,

  • (i) For all q ∊ (Q LQ R ) define

    T ( q ) = 1 , if q Q L 2 , else

  • (ii) Define υ (q, a, q') = ϕ (q, a, q'), that is, (q, q’)a = (q, q’)a .

Clearly m is a FNTA. Now for all (w, σ) ∊ L(M) by definition we have that,

d e g M ( w ) = σ q ( Q L Q R ) ( ( I ^ ( q ) , D ¯ M ( q , w , q f , λ ) ) ) = σ

Notice that, by construction of the m we have that for each instruction in M of the form (q, q’)a there exist an instruction equivalent (q, q’)a in m. Moreover, for all w there exist a set ∇w , and as every instruction in M has an instruction equivalent in m we have that for all computation (q’, xy) ≻* M (q acc ,, λ) there exist (q’, x, y R ) ⊢* m (q acc , λ, λ) equivalent in m, i.e., IMG(q’, xy, q acc , λ) = IMG(q’, x, y R , q acc , λ, λ), and since w = xy we have

A c c m ( w ) = ( x , y ) w , q Q ( ( O ( q ) , f ^ ( q ' , x , y R , q a c c , λ , λ ) ) ) ) = ( x , y ) w , q Q ( ( O ( q ) , D ¯ M ( q , x y , q a c c , λ ) ) ) = d e g M ( w ) .

Therefore, L(m)=L(M).

Corollary 2.A fuzzy language 𝕃 is a fuzzy linear language, if and only if there is a FNTA m =Q, Σ, O, T, υ, q accsuch that L(m)= 𝕃.

Proof. Immediately by Corollary 1 and the Theorems 5, 6 and 7.

5 CONCLUSION

In this paper, we introduced the linear normal form (LNF) and the linear normal strong form (LNSF) for the class of linear fuzzy grammars. We show that these form preserves the degrees membership of generated words. We also propose two new fuzzy machines, which are equivalent in terms of language. Finally by the Corollaries 1 and 2 we can use FLA’s and FNTA’s as models to characterize the class of the linear fuzzy languages.

ACKNOWLEDGEMENT

Our most sincere thanks to the anonymous reviewers who with their comments only saw to enrich this work, and also, the first author thanks FAPERN and CAPES for the financial support.

REFERENCES

  • 1
    C. Alsina, E. Trillas & L. Valverde. On non-distributive logical connectives for fuzzy set theory. BUSEFAL, 3 (1980), 18-29.
  • 2
    V. Amar & G. Putzolu. On a Family of Linear Grammars. Information and Control, 7 (1964), 283-291.
  • 3
    P.R.J. Asveld. Fuzzy context-free languages-Part 1: Generalized fuzzy context-free grammars. Theoretical Computer Science, 347 (2005), 167-190.
  • 4
    B.R.C. Bedregal. l-ALN: Autômatos Lineares Não-Determinísticos com l-Transições. TEMA - Tendências em Matemática Aplicada e Computacional, 12(3) (2011), 171-182.
  • 5
    B.R.C. Bedregal. Nondeterministic Linear Automata and a Class of Deterministic Linear Languages.In Preliminary Proceedings LSFA (2015).
  • 6
    B.R.C. Bedregal, B.M. Acióly & A. Lyra. Introdução à Teoria da Computação: Linguagens Formais, Autômatos e Computabilidade. EdUnP/FAPERN, Natal, RN, 1 edition (2010).
  • 7
    B.R.C. Bedregal & S. Figueira. On the computing power of fuzzy Turing machines. Fuzzy Sets and Systems, 159(9) (2008), 1072-1083.
  • 8
    S.R. Chaudhari & D.D. Komejwar. On Fuzzy Regular Grammars. Advances in Fuzzy Mathematics, 6(1) (2011), 89-104.
  • 9
    N. Chomsky. Three models for the description of language. IRE Transactions on Information Theory, 2 (1956), 113-124.
  • 10
    M.A. Harrison. Introduction to Formal Languages Theory. Addison-Wesley Publishing Company (1978).
  • 11
    J.E. Hopcroft, R. Motwani & J.D. Ullman. Introduction To Automata Theory, Languages, and Computation. Addison-Wesley, New York, USA, 2 edition (2001).
  • 12
    E.P. Klement, R. Mesiar & E. Pap. Triangular Norms, volume 8 of Trends in Logic. Springer-Science+Business Media, B.V., Poland (2000).
  • 13
    E.T. Lee & L.A. Zadeh. Note on fuzzy languages. Information Sciences, 1 (1969), 421-434.
  • 14
    A. Maciel. Aplicações de Autômatos Finitos Nebulosos no Reconhecimento Aproximado de Cadeias. Master’s thesis, Escola Politécnica, Universidade de São Paulo, USP, São Paulo, SP (2006).
  • 15
    K. Menger. Statistical metrics. Proc. Nat. Acad., 28 (1942), 535-537.
  • 16
    J.N. Mordeson & D.S. Malik. Fuzzy Automata and Languages: Theory and Applications. Chapman & Hall/CRC, Washington, D. C., USA (2002).
  • 17
    A.L. Rosemberg. A machine realization of the linear context-free languages. Information and Control, 10 (1967), 175-188.
  • 18
    B. Schweizer & A. Sklar. Associative functions and statistical triangle inequalities. Publicationes Mathematicae Debrecen, 8 (1961), 168-186.
  • 19
    A.D. Silva Farias, V.S. Costa, R.H. Santiago & B.R.C. Bedregal. A Residuated Function in a Class of Mealy Type L-Valued Finite Automaton. In Fuzzy Information Processing Society (NAFIPS), 2016 Annual Conference of the North American (2016).
  • 20
    A.D. Silva Farias, L.R. de Araújo Lopes, B.R.C. Bedregal & R.H. Santiago. Closure properties for fuzzy recursively enumerable languages and fuzzy recursive languages. Journal of Intelligent & Fuzzy Systems, 31(3) (2016), 1795-1806.
  • 21
    H. Xing, Q. Daowen & F. Liu. Automata theory based on complete residuated lattice-valued logic: Pushdown automata. Fuzzy Sets and Systems, 160(8) (2009), 1125-1140.
  • 22
    L.A. Zadeh. Fuzzy Sets. Information and Control, 8 (1965), 338-353.

Publication Dates

  • Publication in this collection
    Jan-Apr 2018

History

  • Received
    21 Mar 2017
  • Accepted
    22 Jan 2018
Sociedade Brasileira de Matemática Aplicada e Computacional Rua Maestro João Seppe, nº. 900, 16º. andar - Sala 163 , 13561-120 São Carlos - SP, Tel. / Fax: (55 16) 3412-9752 - São Carlos - SP - Brazil
E-mail: sbmac@sbmac.org.br