Semigroups of Terms, Tree Languages, Menger Algebra of N-Ary Functions and Their Embedding Theorems
Total Page:16
File Type:pdf, Size:1020Kb
S S symmetry Article Semigroups of Terms, Tree Languages, Menger Algebra of n-Ary Functions and Their Embedding Theorems Thodsaporn Kumduang 1 and Sorasak Leeratanavalee 1,2,* 1 Department of Mathematics, Faculty of Science, Chiang Mai University, Chiang Mai 50200, Thailand; [email protected] 2 Research Center in Mathematics and Applied Mathematics, Department of Mathematics, Faculty of Science, Chiang Mai University, Chiang Mai 50200, Thailand * Correspondence: [email protected] Abstract: The concepts of terms and tree languages are significant tools for the development of research works in both universal algebra and theoretical computer science. In this paper, we es- tablish a strong connection between semigroups of terms and tree languages, which provides the tools for studying monomorphisms between terms and generalized hypersubstitutions. A novel concept of a seminearring of non-deterministic generalized hypersubstitutions is introduced and some interesting properties among subsets of its are provided. Furthermore, we prove that there are monomorphisms from the power diagonal semigroup of tree languages and the monoid of generalized hypersubstitutions to the power diagonal semigroup of non-deterministic generalized hypersubstitutions and the monoid of non-deterministic generalized hypersubstitutions, respectively. Finally, the representation of terms using the theory of n-ary functions is defined. We then present the Cayley’s theorem for Menger algebra of terms, which allows us to provide a concrete example via full transformation semigroups. Citation: Kumduang, T.; Leeratanavalee, S. Semigroups of Keywords: terms; tree languages; generalized hypersubstitutions; n-ary functions Terms, Tree Languages, Menger Algebra of n-Ary Functions and Their MSC: 08A02; 08A40; 08A70; 20N15 Embedding Theorems. Symmetry 2021, 13, 558. https://doi.org/ 10.3390/sym13040558 1. Introduction and Preliminaries Academic Editor: Ivan Chajda In the classical theory of theoretical computer science, an automaton is a finite state machine which accepts certain strings of letters from a fixed base alphabet. Such strings Received: 3 March 2021 are usually called words, and sets of words are called languages. Formal language theory Accepted: 24 March 2021 Published: 27 March 2021 is the study of properties of languages and automata. One of a generalized study of formal languages is the study of tree languages, i.e., the words of the classical case can be considered as a particular kind of terms. Since terms are commonly represented by Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in tree diagrams, such formal languages are also called tree languages. For more details in published maps and institutional affil- this background, see [1–3]. We now recall the fundamental notion of terms as follows: Let iations. Xn = fx1, ... , xng, for n a natural number, be a finite set which elements are called variables and X = fx1, ... , xn, ...g be countably infinite. The variable xi in Xn is an alphabet of formal languages. To define terms from this alphabet, we use a set f fi j i 2 Ig of operation symbols, indexed by the set I. The type is the sequence t = (ni)i2I of the natural numbers which are arities of the operation symbols f . An n-ary term of type t is defined inductively Copyright: © 2021 by the authors. i by: Every variable x 2 X is an n-ary term of type t and f (t , ... , t ) is an n-ary term Licensee MDPI, Basel, Switzerland. j n i 1 ni This article is an open access article of type t where t1, ... , tni are n-ary terms of type t and fi is an ni-ary operation symbol. S + distributed under the terms and The set of all n-ary terms of type t is denoted by Wt(Xn). Let Wt(X) := n2N Wt(Xn) conditions of the Creative Commons be the set of all terms of type t. See [4–10] for other related topics of terms. Attribution (CC BY) license (https:// creativecommons.org/licenses/by/ 4.0/). Symmetry 2021, 13, 558. https://doi.org/10.3390/sym13040558 https://www.mdpi.com/journal/symmetry Symmetry 2021, 13, 558 2 of 13 Every term can be represented by a tree diagram, i.e., we consider term as a rooted tree whose vertices correspond to the operation symbols and variables that occur in it. We call this tree the tree representation of a term t. For instance, a tree representation of a term f (x4, g(h(x1, x2)), h(x9, x5)) can be shown in the below diagram. x1 x2 x9 x5 h x4 g h f Substituting the variables that appear in a term by the other terms, one obtains a new term. This can be described by the (n + 1)-generalized superpostion Sn, n ≥ 1, n n+1 S : Wt(X) ! Wt(X) defined inductively by the following steps: for t, t1,..., tn 2 Wt(X) n (1) If t = xi; 1 ≤ i ≤ n, then S (xi, t1,..., tn) := ti. n (2) If t = xi; n < i, then S (xi, t1,..., tn) := xi. (3) If t = fi(s1,..., sni ), then n n n S (t, t1,..., tn) := fi(S (s1, t1,..., tn),..., S (sni , t1,..., tn)). n Then, we can form the algebraic structure, (n + 1)-ary algebra (Wt(X), S ) consisting n the universe Wt(X) together with one (n + 1)-ary operation S . In [11], the algebra in this form is known as a Menger algebra with infinitely many nullary operations. It is not hard to show that this algebra satisfies the superassociative law: n n n n n S (S (t, t1,..., tn), s1,..., sn) = S (t, S (t1, s1,..., sn),..., S (tn, s1,..., sn)) for all arbitrary terms t, t1,..., tn, s1,..., sn 2 Wt(X). Using the concepts of terms and generalized superposition, the following ideas are es- sentially recalled. It was known from [12] that a formal definition of a strong hyperidentity and a strong solid variety can be given using the concept of a generalized hypersubstitution. We now recall such concept as follows: Let f fi j i 2 Ig be an indexed set of operation symbols of type t where fi is ni-ary, ni is a natural number. Let HypG(t) be the set of all arbitrary mappings s : f fi j i 2 Ig ! Wt(X), which is called a generalized hypersubstitu- tion of type t. To define a binary operation on this set, the essential defining is necessary. Any s 2 HypG(t) can be uniquely extended to a mapping bs : Wt(X) ! Wt(X), which is defined by (1) bs[xi] := xi 2 X, [ ( )] = ni ( ( ) [ ] [ ]) [ ] ≤ ≤ (2) bs fi t1, ... , tni : S s fi , bs t1 , ... , bs tni where bs tj , 1 j ni are already defined. Using the extension of generalized hypersubstitution of type t, the binary operation ◦G is defined by s1 ◦G s2 := bs1 ◦ s2 where ◦ denotes the usual composition of mappings. The generalized hypersubstitution sid, which sends each fi to the term fi(x1, x2, ... , xni ), is an identity element for ◦G. Then, (HypG(t), ◦G, sid) is a monoid. See the following references for the research topics and current trends in this direction [13–18]. Symmetry 2021, 13, 558 3 of 13 Let P(Wt(X)) be the power set of all the set of all terms of type t. An inductive definition of an (n + 1)-ary operation on P(Wt(X)) is completely defined in [19]. Let n be a natural number, B, B1, ... , Bn are arbitrary subsets of Wt(X). Then, an (n + 1)-ary generalized superposition operation n n+1 Sb : P(Wt(X)) ! P(Wt(X)) is defined inductively by n (1) If B = fxig; 1 ≤ i ≤ n, then Sb (fxig, B1,..., Bn) := Bi. n (2) If B = fxig; n < i, then Sb (fxig, B1,..., Bn) := fxig. n (3) If B = f fi(t1, ... , tni )g, and suppose that Sb (ftkg, B1, ... , Bn) for all k = 1, ... , ni n are already defined, then Sb (f fi(t1, ... , tni )g, B1, ... , Bn) := f fi(r1, ... , rni ) j rk 2 n Sb (ftkg, B1,..., Bn), 1 ≤ k ≤ nig. (4) If B is an arbitrary nonsingleton subset of Wt(X), then n [ n Sb (B, B1,..., Bn) := Sb (fbg, B1,..., Bn). b2B n If one of the sets B, B1, ... , Bn is empty, we define Sb (B, B1, ... , Bn) := Æ. It turns out n that the following algebra of type (n + 1), (P(Wt(X)), Sb ) is a Menger algebra and called a power Menger algebra with infinitely many nullary operations. Then, it was proved that this algebra satisfies the superassociative law [19]. A non-deterministic generalized hypersubstitution of type t [19] is a mapping s : nd f fi j i 2 Ig ! P(Wt(X)). The set of all such mappings is denoted by HypG (t). It is well-known that every s generates a mapping bs which takes a tree language into itself by the following inductive way: (1) bs[Æ] := Æ, (2) bs[fxig] := fxig where xi is a variable from X, [f ( )g] = ni ( ( ) [f g] [f g]) [f g] ≤ ≤ (3) bs fi t1, ... , tni : Sb s fi , bs t1 , ... , bs tni if bs tk , 1 k ni are already defined, S (4) bs[B] := bs[fbg] if B is an arbitrary nonsingleton subset of Wt(X). b2B The algebraic properties of bs were proved in [19] that every extension bs of non-deterministic n generalized hypersubstitution s is an endomorphism of the algebra (P(Wt(X)), Sb ). Applying nd nd 2 nd an extension bs, in [20], the binary operation ◦G : HypG (t) ! HypG (t) was introduced nd by setting s1 ◦G s2 := bs1 ◦ s2. Moreover, the non-deterministic generalized hypersubsti- tution sid was defined to be an identity element where sid( fi) := f fi(x1, ..