1. Introduction
The state machines and the hypergroups are mathematical achievements of the twentieth century. The state machines are mathematical models which are mostly used for the study of actual physical or behavioral processes. Their roots can be traced back to mathematical logic and they are the primary and major components of Computer Theory. Alan Mathison Turing (1912–1954) developed his theoretical universal-algorithm machine to address the question of whether an algorithm for providing proofs whenever they do exist can be found and he discovered that some tasks which this abstract machine is expected to be able to perform are impossible even for it. The usefulness of the state machines quickly began to spread in other sciences as well. For example, Warren Sturgis McCulloch (1898–1969) and Walter Harry Pitts (1923–1969) created a mathematical model in neuroscience [
1]. The model they constructed for a “neural net” was a state machine of the same nature as Turing’s. Stephen Cole Kleene (1909–1994) later elaborated their model [
2], while Noam Chomsky created mathematical models in linguistics for the description of languages [
3,
4]. The rapid development of technology in the twentieth century has made it possible to materialize such theoretical machines by creating the computers. This development fulfilled the timeless dream of mankind, to create machines like the Antikythera mechanism of the Hellenistic era (the earliest known analog computer, dated back to the second century BC [
5,
6,
7]), and the mechanical calculating devices created by Blaise Pascal (1623–1662), by Gottfried Wilhelm von Leibniz (1646–1716), by Charles Babbade (1792–1871) and his co-worker Ada Augusta (1815–1852), the daughter of poet Lord Byron, all of which were as powerful as their respective technologies would allow.
The basic building blocks of a state machine are their internal qualities which are named internal states. The internal states are reacting to certain changes in their environment and this reaction causes state transitions. In the general case, it does not matter what the states and the environment of a state machine really are.
For example, in biology, we can consider the state of a cell in its environment, which consists of certain chemical and physical conditions, such as PH, temperature, light and so on. When these chemicals do not remain within a range of concentrations and/or the physical conditions exceed a threshold value, the cell changes its behavior, e.g., a plant cell performs photosynthesis under the “input” of sunlight.
Also, a population group or a business can move to a new state when the economic and social changes in its environment cross a certain threshold.
Respectively in an electronic system which involves various electrical components, the flow of electric current can activate some of these components and the system can switch from one state to another. In fact, as in the case of some circuits with flip-flops, the new state depends on both, the input pulse and the previous state of the circuit.
So, the same environmental change (input) can shift the system into different states, depending on its previous state (condition).
A lot of ink has been shed on the research and study of the behavior of such systems, both living and non-living. In this paper, we approach this issue from a different perspective, i.e., we will address the question of how many different state machines can “survive” or can be acceptable in a given environment. Undoubtedly, the interaction between a system and its environment can be vastly complicated and it still remains an area that needs to be understood, if we wish to be in a position to predict the behaviour of the system and perceive the level of the environmental constraints it can endure as well as their impact on it.
We will attempt this approach with the tools of abstract Algebra, which is the most extensively used branch of Mathematics in the study of the state machines. So, in this paper, the environment is a set equipped with a rule of synthesis such that the result of the synthesis of any two elements is one or more elements. In Éléments de Mathématique, Algèbre [
8], Nicolas Bourbaki used the Greek word
magma, which comes from the verb
μάσσω (=knead), to indicate such a set, while in [
9] this notion was generalized so as to include more structures. Here, we use the magma of two elements, which is the environment of the binary state machines, like the 0–1 environment which is used in the digital technology. The interaction of the environment on the states is modeled algebraically via the different types of the associativity.
Sometimes, algebraic tools had been developed before even the relevant questions were asked and this is one of the most fascinating aspects of mathematics: to give the answers long before the rest of the world realizes why they should ask the questions.
During the 20th century, Algebra itself faced, and on most occasions overcame, many difficult and serious challenges that were deriving from various mathematical and not only areas, such as the Theory of Equations, Geometry, Topology, Quantum Mechanics, Chemistry, etc. Also, the 20th century put an end to the paradise of determinism. David Hilbert’s (1862–1943) visions collapsed under Kurt Gödel’s (1906–1978) work. Quantum Mechanics, the uncertainty principle of Werner Heisenberg (1901–1976), the axiomatic foundation of probability by Andrey Kolmogorov (1903–1987) made uncertainty inherent in science and brought into existence its mathematics. In this direction, Frédéric Marty (1911–1940) in a series of three papers [
10,
11,
12] introduced the hypergroup in Algebra and gave some of its initial properties. His untimely death during World War II, while serving as a French Army officer, did not allow him to write more papers. However, the aforementioned three were enough to bring into being the Hypercompositional Algebra. The fundamental notion of the Hypercompositional Algebra is the hypercomposition, that is, a law of synthesis of any two elements, which yields a set of elements instead of a single element only.
The introduction of Hypercompositional Algebra into Computer Theory occurred in the G.G. Massouros Ph.D. thesis [
5], under the supervision of J. Mittas (1921–2012). There followed more papers by the same author and Ch. Massouros, e.g., [
13,
14,
15,
16,
17,
18,
19,
20,
21], as well as other researchers such as J. Chvalina [
22,
23,
24,
25,
26,
27,
28], L. Chvalinová [
22], Š. Hošková-Mayerová [
24,
25], M. Novák [
26,
27,
28,
29,
30,
31,
32], S. Křehlík [
26,
27,
29,
30,
31,
33], M.M. Zahedi [
34], M. Ghorani [
34,
35], D. Heidari and S. Doostali [
36], R.A. Borzooei et al. [
37]. In relation to this subject, there are applications of the Hypercompositional Algebra in graph theory, artificial intelligence, cryptography, sensor networks and many more that, indicatively, can be found in [
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60]. Also, results in the above areas, up to the date it was published, can be found in P. Corsini and V. Leoreanu’s book [
61].
The following section presents the necessary preliminary notions for the self-sufficiency of the paper. The third section contains a study of operators’ and hyperoperators’ actions and the way they define hypercompositional structures in the set on which they operate. The fourth paragraph focuses on the detailed study of the magma of two elements, which is the environment of the binary state machines. The next (fifth) paragraph is dedicated to the analysis of the binary state machines, when their environment has the structure of a group or a hypergroup. The quasi-automata and quasi-multiautomata that can exist in such an environment are studied and enumerated.
2. Preliminaries
The fundamental notion of the Hypercompositional Algebra is the hypercomposition, that is, a law of synthesis which yields a set of elements instead of a single element, when applied on any two elements. More specifically, we have the definitions [
9]:
Definition 1. Let be a non-void set. A mapping from into is called a composition on , while a mapping from into the power set of is called a hypercomposition on . A hypercomposition is called partial, if , for some in . A set enriched with a composition or a hypercomposition is called a magma.
The above definition, which was introduced in [
9], extends the definition of the magma given by Nicolas Bourbaki [
8] in order to include laws of synthesis which are hypercompositions on a set
.
Let be a magma. For any two non-void subsets of , , if is a composition and , if is a hypercomposition.
If or is empty, then is empty. If , we usually write instead of and instead of . In general, the singleton is identified with its member . Sometimes it is convenient to use the relational notation to assert that subsets and have a non-void intersection. Then, as the singleton is identified with its member , the notation or is used as a substitute for . The relation may be considered as a weak generalization of the equality, since, if and are singletons and , then . Thus, means , if the synthesis is a composition and , if the synthesis is a hypercomposition. This notation is extensively used when it is not necessary to distinguish between a composition or a hypercomposition with respect to a law of synthesis.
Definition 2. A law of synthesison a setis called associative if the property,is valid, for all elements
in
, while it is called reproductive if for all elements
in the equalityholds. Definition 3. An associative magma is called α semigroup if the law of synthesis on the magma is a composition, while it is called α semihypergroup if the law of synthesis is a non-partial hypercomposition.
Definition 4. A reproductive magma is called α quasigroup if the law of synthesis on the magma is a composition, while it is called α quasihypergroup if the law of synthesis is a non-partial hypercomposition.
Definition 5. An associative and reproductive magma is called α group if the law of synthesis on the magma is a composition, while it is called α hypergroup if the law of synthesis is a hypercomposition.
The above Definition 5 appeared in [
9], which also contains a detailed presentation of the fundamental properties that derive from the axioms of the associativity and the reproductivity in groups and hypergroups. Among other things, in [
9] it is proved that:
Theorem 1. If G is a group, then:
- i.
there exists an elementsuch thatfor all
- ii.
for each elementthere exists an elementsuch that
Theorem 2. Ifis a hypergroup, then:
for all
Thus, the hypercomposition in a hypergroup cannot be partial. In this paper, we will consider only non-partial hypercompositions.
It is very common in the bibliography to enrich a magma with the axiom of associativity. Besides, another equality that can be valid in the successive synthesis of the magma’s elements is the
inverted associativity. Recall that a composition or a hypercomposition on a non-void set
E is called
left inverted associative if
while it is called right inverted associative if
The notion of the inverted associativity was initially conceived by Kazim and Naseeruddin [
62]. A magma equipped with a left inverted associativity is called
left almost semigroup if the law of synthesis is a composition, while it is called
left almost semihypergroup if the law of synthesis is a hypercomposition. The terminology is analogous for the right inverted associative magma.
Definition 6. A reproductive magma which satisfies the axiom of the left inverted associativity is called a left almost-group (LA-group) when the law of synthesis on the magma is a composition, while it is called α left almost-hypergroup (LA-hypergroup) when the law of synthesis is a hypercomposition. A reproductive, right inverted associative magma is called a right almost-group (RA-group) or a right almost-hypergroup (RA-hypergroup) when the law of synthesis is a composition or a hypercomposition respectively.
Apparently, if the law of synthesis is commutative, then the almost left or almost right groups and hypergroups are groups and hypergroups, respectively. However, it is possible for both associativity and inverted associativity to be valid in a magma. Such cases can be found in the examples of [
63], which presents a detailed study of the left/right almost-hypergroups. For the quasi-canonical LA-hypergroups, see [
64].
Every law of synthesis in a magma induces two new laws of synthesis. If the law of synthesis is written multiplicatively, then the two induced laws are:
Thus if and only if and if and only if . In the case of a multiplicative magma, the two induced laws are called inverse laws and they are named right division and left division, respectively. If the magma is commutative, it is obvious that the right and left divisions coincide.
Directly connected to the induced laws of synthesis is the transposition axiom, which was firstly introduced by W. Prenowitz (1906–2000) for the study of geometry with the tools of Hypercompositional Algebra (e.g., [
65]) and afterwards it was generalized by J. Jantosciak (1942–2017) in [
66].
Definition 7. A magmais called α transposition magma if it satisfies the axiom: It is obvious that in a transposition magma the following implication
is valid as well. In [
9], the above implications reversed and so we have the two reverse transposition axioms:
However, the following property also applies:
This axiom was named
bilateral transposition axiom [
9].
Special notation: In the following pages, in addition to the typical algebraic notations, we are using Krasner’s notation for the complement and difference. So, we denote by A··B the set of elements that are in the set A, but not in the set B.
3. Action of a Magma on a Set
Let and be two non-empty sets. A mapping of into the set of the mappings of into itself is called an action of on . Let be an action of on . The mapping of to such that is an external law of composition on , with being the operating set. is called the law of right action of on . The law of left action of on is defined in a similar way. The element is also called the transform of under . Ιt is usually denoted by a right (resp. left) multiplicative notation (resp. ). The elements of are called operators.
A mapping
of
to the power set
of
is an external law of hypercomposition on
. Then, the elements of
are called
hyperoperators [
67]. If
is a hyperoperator, then the multiplicative notation
(resp.
) signifies an element of
, that is,
(resp.
).
A subset of is called stable under the action of on if for all . The intersection of a family of stable subsets of under a given action is a stable subset of as well. Therefore, if is any subset of , there exists a smallest stable subset of S that contains it. This subset is said to be generated by and it consists of the elements , where , , for all .
Definition 8. An elementofis called connected to an elementofif there exists an elementofsuch that.
It must be mentioned that
being connected to
does not necessarily imply that
is connected to
. If
is connected to
, there may be a sequence
of elements of
such that
. Thus, via the notion of the connected elements, a hypercomposition can be defined on
, as follows:
Proposition 1. If the set of the operatorsover a non-void setis a unitary magma, thenbecomes a hypergroup.
Proof. Since
is a unitary magma, the result of the hypercomposition always contains the two participating elements, thus
for all
and so the reproductive axiom is valid. Moreover, the associativity holds. Indeed, if
and
are not connected to each other, then
Next, suppose that
and
are connected to
. Also let
be connected to
. Then:
and
Similar is the proof of all the other cases and hence the proposition. □
Corollary 1. The set of vertices of a directed graph is endowed with the structure of the hypergroup if the result of the hypercomposition of two vertices vi and vj is the set of the vertices which appear in all the possible paths that connect vi to vj, or {vi, vj}, if there do not exist any connecting paths from vertex vi to vertex vj.
If
is a magma, an equivalence relation
on
is called a
congruence relation if
When the law of synthesis in the magma is a composition, then
and
are singletons and the above definition is simplified to:
The set
of all equivalence classes defined on
by
becomes an associative magma if we define
Proposition 2. Every congruence relationon a magmais a normal equivalence relation, and therefore the setbecomes a magma under the law of synthesiswhereis the class of an arbitrary element.
Proof. Since
is a congruence relation, for each
it holds:
Thus, , and so the quotient set , enriched with the law of synthesis , is a magma. Obviously, if the law of synthesis is a composition, then the previous equality is simplified to . □
Corollary 2. Every congruence relationon a hypergroupis a normal equivalence relation, and therefore the quotientbecomes a hypergroup under the hypercomposition. Ifis a group, thenis a group as well, under the composition Proposition 3. Ifis a transposition magma andis a congruence relation on, thenis a transposition magma.
Proof. Suppose that for some elements of the quotient set it holds that . Then there exist elements belonging to respectively, such that . Since the transposition axiom is valid in , it derives that . Therefore, and hence the proposition. □
Definition 9. A state machine M is a tripletwhereandare sets andis mapping ofto.
The set describes the internal qualities of the system. The elements of are called internal states of M. If is finite, then M is called a finite state machine. The set describes the environmental inputs that can affect the system. The mapping describes the environmental influences on the internal qualities of the system and it is called a state transition function. Such a system is obviously quite general and can be used in a variety of cases. From the mathematical standpoint, a state machine is a set with operators and the fact that we can successfully approach, describe and examine such systems via algebraic tools and techniques is one of the most impressive and remarkable achievements of modern algebra.
Example 1. State machines can be depicted by the so-called transition diagrams. Thus, if and is a finite set, then the relevant state machine is illustrated with the transition diagram presented in Figure 1: Moreover, if
and
, we could have any of the following four state machines that are shown in
Figure 2:
Another way of specifying a state machine is by writing out the transition function in tabular form, thus creating the so-called state transition table. For example, the state transition table of the last in the above figure state machine is the following one:
Suppose that
is applied to the state
of a state machine
M. Then the machine moves to state
. Next, if another input, say
, is applied to the machine, the resultant state is:
Since
, if
is a magma, we say that the state transition function satisfies the associativity if
. If the law of synthesis is a composition, then the associativity is of the form
or equivalently
and it is named
mixed associativity, while if the law of synthesis is a hypercomposition, the associativity is fulfilled if
and it is called
generalized mixed associativity [
26,
29,
68].
Definition 10. A state machine M = is called quasi-automaton if is a magma and the state transition function satisfies the mixed associativity, i.e., for any pair and any state .
Definition 11. A state machine M = (S,E,δ) is called quasi-multiautomaton if Ε is a magma and the state transition function satisfies the generalized mixed associativity, i.e., for any pair and any state .
A detailed presentation of the terminology, based on the historical development of the area, can be found in the well-written paper [
29]. The above definitions are in line with [
29]. Obviously, every quasi-automaton is a quasi-multiautomaton. Apparently, quasi-multiautomata which are not quasi-automata can only exist when
E is a hypercompositional magma. On the contrary, quasi-automata exist when either the magma is endowed with a composition or when it is endowed with a hypercomposition. A special case of quasi-automata occurs when
is a free semigroup or a free monoid instead of an arbitrary magma. In this case, computer theory tends to use the term “
word” for the elements of
, the term “
letter” for the elements of its generating set
and the term
concatenation of words for the law of synthesis in
. Moreover, the free semigroup generated by
is denoted by
and the corresponding free monoid by
. Also, the quasi-automaton is denoted by
M = (
S,E,δ).
Proposition 4. Let (
S,E,δ)
be a quasi-automaton and a binary relation on the magma, defined byThen is a congruence relation on and the magma has the same algebraic structure as . Proof. This relation is easily seen to be an equivalence relation. Next, let
and
. From
, it follows that
for all
. Next, since
, the following sequence of equivalent statements holds:
Therefore, is a congruence relation on . Next, it is easy to see that the magma is of the same type as , that is, if is a semigroup, semi-hypergroup, hypergroup, group, etc., then has the same algebraic structure, respectively. □
Now, if M = (S,E,δ) is a quasi-automaton, then the semigroup or the monoid can be constructed with the use of Proposition 4. In many cases, it is more convenient to study this semigroup rather than the original machine M. However, if we do not want to lose sight of the set of states, we consider the machine M = (S,E,δ). Each element of is an equivalence class of or , which acts on as follows: , where and or .
4. The Magma of 2 Elements
In this section, we will proceed to a detailed study and classification of the two-element magma, which is the binary state machines’ environment.
While there exists only one single element magma which is a group and also a LA/RA-group, there exist 3
4 = 81 magmas with 2 elements. These magmas can be constructed, classified and enumerated, with the techniques and methods which are developed in [
69,
70,
71] and [
63]. In the following propositions, these magmas are presented via their Cayley tables. Note that, in a Cayley table, the entry in the row headed by
x and the column headed by
y is the synthesis
x⋅
y.
- i.
Associative Magmas
Proposition 5. There exist 6 semigroups which are classified into 2 classes with 2 isomorphic semigroups each, and into 2 single-member classes, which are presented below via their Cayley tables. Moreover, since SG1and SG2are commutative, they satisfy both the left and the right inverted associativity.
Remark 1. When and in the two isomorphic semigroups SG2, we get the two well-known operations of the Boolean algebra:
Proposition 6. There exist 10 semihypergroups which are classified into 5 classes with 2 isomorphic semihypergroups each. These are displayed below in the form of Cayley tables. Moreover, since is commutative, it satisfies both the left and the right inverted associativity.
- ii.
Reproductive Magmas
Proposition 7. There exist 21 quasihypergroups which are classified into 9 two-member classes and 3 single-member classes, which are presented below via their Cayley tables.
- iii.
Associative and Reproductive Magmas
Proposition 8. There exists one class with 2 isomorphic commutative groups.
Proposition 9. There exist 12 hypergroups which are classified into 5 classes with 2 isomorphic hypergroups each and into 2 single-member classes, which are presented below via their Cayley tables.are commutative.
is the two-element
B-hypergroup. B(inary)-hypergroups came into being during the study of formal languages and automata with the use of hypercompositional algebra [
5,
13,
16,
17]. The free monoid of the words generated by an alphabet Σ can be endowed with the B-hypergroup structure, and so become a join hyperringoid [
21,
72,
73,
74], which is named
linguistic hyperringoid [
14,
21,
73,
74]. If the B-hypergroup is fortified with a strong identity [
31], which is necessary for the theory of formal languages and automata [
14,
21], then the join hyperring comes into being [
72,
73,
74].
is the two-element
total hypergroup.
Proposition 10. All the two-element hypergroups are transposition hypergroups.
Proof. The Cayley tables of the induced hypercompositions for the seven two-element hypergroups are presented below. For the classes with two elements, we chose the first hypergroup for the presentation of the induced hypercomposition. Observe that the hypergroups and are commutative; therefore, the two induced hypercompositions coincide, and so there is only one Cayley table corresponding to each one of them. As mentioned above, in the Cayley tables, the entry in the row headed by x and the column headed by y is the synthesis x/y or y\x respectively.
The verification of the transposition axiom gives the rest. □
So, according to Proposition 10, there do not exist non-transposition hypergroups with cardinality 1 or 2. However, as shown in the following example, there exist non-transposition hypergroups if their cardinality is greater than or equal to 3.
Example 2. The hypercomposition on hypergroup H6 can be written in the following two ways:and If, then the above two formulas give the same hypercomposition, but if cardH ≥ 3, then they produce two different hypergroups. The first one, which is the B-hypergroup, satisfies the transposition axiom (see [13] for the proof), while the second one does not. Indeed, the induced hypercomposition of (2) is:Next, if, we have:while Moreover, the verification of the reverse transposition axiom for hypergroups leads to the following result:
Proposition 11. All the two-element hypergroups satisfy the strong reverse transposition axiom.
A consequence of Propositions 10 and 11 is the following Theorem:
Theorem 3. All the two-element hypergroups satisfy the bilateral transposition axiom.
In [
9], following the observation that the quasicanonical hypergroups, the canonical hypergroups, and of course, the groups and the abelian groups satisfy the bilateral transposition axiom, the question arose:
Do there exist other hypergroups satisfying the bilateral transposition axiom apart from the quasicanonical and the canonical ones? The above Theorem 3 gives the affirmative answer to this question.
- iv.
Magmas with inverted associativity
Proposition 12. There exists only one class with 2 isomorphic left almost-semihypergroups, as per the following Cayley tables.
Proposition 13. In addition to the five non-isomorphic commutative hypergroups (and hence left and right almost-hypergroups) that are mentioned in Proposition 9, there also exist two non-isomorphic left almost-hypergroups which are classified into one two-member class and into one single-member class, as per the following Cayley tables.
Proposition 14. There exists only one class with 2 isomorphic right almost-semihypergroups, as per the following Cayley tables.
Proposition 15. In addition to the five non-isomorphic commutative hypergroups (and hence left and right almost-hypergroups) that are mentioned in Proposition 9, there also exist two non-isomorphic right almost-hypergroups which are classified into one two-member class and into one single-member class, as they are presented in the following Cayley tables.
- v.
Rigid Magmas
The remaining 26 magmas are classified into 12 two-member classes and into two single-member classes. The law of synthesis on the 2 magmas of the single-member classes is a composition. The same goes for the magmas in three of the twelve two-member classes.
Proposition 16. There exist only two non-isomorphic groupoids of two elements, which are presented in the following Cayley tables.
Definition 12. A magma is called rigid if its group of automorphisms is of order 1.
As it is shown in [
75,
76], there exist 21 rigid hypergroupoids whose classification is described in Theorem 4 of [
76]. The following Theorem 4 applies to the two-element magmas:
Theorem 4. There exist 9 rigid magmas of two elements, classified as follows:
- i.
2 non-commutative groupoids, which do not satisfy the transposition axiom;
- ii.
2 non-commutative transposition semigroups;
- iii.
1 commutative quasi-hypergroup, which does not satisfy the transposition axiom;
- iv.
1 LA-hypergroup, which does not satisfy the transposition axiom;
- v.
1 RA-hypergroup, which does not satisfy the transposition axiom;
- vi.
2 hypergroups, which satisfy both the left and right invert associativity.
Proof. - i.
Let us consider the first groupoid of Proposition 15. Then, the two induced hypercompositions are given in the following Cayley tables:
Next, we have that , while . Therefore, the transposition axiom is not valid. Analogous is the proof for the second groupoid.
- ii.
Let us consider the semigroup SG3. Then, the two induced hypercompositions are the following ones:
The verification of the transposition axiom, according to the above Cayley tables, proves its validity. The same goes for the case of SG4.
- iii.
Since
QH10 is commutative, the two induced hypercompositions coincide and so we have:
Next,
but
. Therefore, the transposition axiom is not valid.
- iv.
The induced hypercompositions on the LA-H2 are:
Since the implication
holds, the transposition axiom is not valid.
- v.
It is true as it is the dual of iv.
- vi.
The two hypergroups are
H6 and
H7.
H6 is a B-hypergroup. As it is well known, the B-hypergroups are join hypergroups (see [
13] for the proof), that is, commutative hypergroups which satisfy the transposition axiom.
H7 is the two-element total hypergroup and total hypergroups are join hypergroups as well [
5,
9,
13]. □
5. Binary State Machines
Let M = (S,E,δ) be a state machine. Two states, , are called connected if there exists a sequence of inputs which causes to leave state and go into state , that is, if there exists a sequence of elements of such that . The states are called isolated to each other if neither is connected to , nor to . A state machine M is called connected if its undirected graph is connected, while it is called strongly connected if every ordered pair of states in is connected.
Proposition 17. Suppose that the connected state machine M = (S,E,δ) is a quasi-multiautomaton. Then, for every pair of states, there exists one element of E which connects them, i.e., for some .
Proof. Let
be a sequence of elements of
such that
. If
the proposition is obvious. Let
. Then
Hence, there exists
such that
. □
Theorem 5. If the magmain a quasi-multiautomaton M = (S,E,δ) has n elements, then the set cannot have more than n + 1 states.
Proof. As per Proposition 17, for every pair of states
, there exists one element of
E which connects them, i.e., there exists
such that
. Therefore, if
e.g., if
, then, for each state
, there exist at most
states connected with
, which are the
. Next, if some state
yields
, then, since
, it holds that
Hence,
and so the Theorem. □
Definition 13. If the magmaof a state machine M = (S,E,δ) has 2 elements, then M is called a binary state machine.
Corollary 3. The setof the states of a binary quasi-multiautomaton M = (S,E,δ) cannot have more than 3 elements.
Theorem 6. There exists 1 binary state machine with 1 state, 16 binary state machines with 2 states and 729 with 3 states.
Proof. The state transition table of a state machine with 1 state is:
The state transition table of a state machine with 2 states is:
where . Hence, there exist 24 = 16 different to each other binary state machines with 2 states.
Moreover, the state transition table of the state machines with 3 states is:
where . Therefore, there are 36 = 729 different to each other binary state machines with three states. □
Definition 14. Two state machines M1 = (S1,E1,δ1) and M2 = (S2,E2,δ2) are isomorphic if E1 and E2 are isomorphic and there exists a one-to-one mapping f from S1 onto S2 such that
.
Theorem 7. There exist 10 isomorphic binary state machines with 2 states, which are classified into 6 two-element classes and into 4 single-element classes, as presented in Figure 3: Next, we will find which state machines are quasi-multiautomata or quasi-automata when their magma is a group or a hypergroup. In the proofs of the following propositions, we use the first member of each state machine class as the representative of the entire class. Similarly, the representative of every class from the group or the hypergroups will be its first member.
Proposition 18. If E is the group G1(Proposition 8), then the state machines SM4, SM9, SM10are quasi-automata.
Proof. The verification of the axioms shows that SM4, SM9, SM10 are quasi-automata. The rest state machines do not satisfy the mixed associativity. Indeed:
For SM1 it holds: while .
For SM2 it holds: while .
For SM3 it holds: while .
For SM5 it holds: while .
For SM6 it holds: while .
For SM7 it holds: while .
For SM8 it holds: while . □
Proposition 19. If E is the hypergroup H1(Proposition 9), then the state machines SM3, SM6, SM9are quasi-multiautomata and the state machines SM4, SM10are quasi-automata.
Proof. The state machines
SM3,
SM6,
SM9 satisfy the generalized mixed associativity and hence they are quasi-multiautomata. Indicatively, for
SM3 we have:
The state machines
SM4 and
SM10 satisfy the mixed associativity and so they are quasi-automata. Indicatively, for
SM4 we have:
The rest state machines do not satisfy any associativity condition. Indeed:
For SM1 it holds: while .
For SM2 it holds: while .
For SM5 it holds: while .
For SM7 it holds: while .
For SM8 it holds: while . □
Proposition 20. If E is the hypergroup H2(Proposition 9), then the state machines SM6, SM9are quasi-multiautomata and the state machines SM4, SM10are quasi-automata.
Proof. The state machines SM6, SM9 satisfy the generalized mixed associativity, and therefore they are quasi-multiautomata, while SM4 and SM10 satisfy the mixed associativity and so they are quasi-automata. The rest state machines do not satisfy any associativity condition. Indeed:
For SM1 it holds: while .
For SM2 it holds: while .
For SM3 it holds: while .
For SM5 it holds: while .
For SM7 it holds: while .
For SM8 it holds: while . □
Proposition 21. If E is the hypergroup H3(Proposition 9), then the state machines SM6, SM9are quasi-multiautomata and the state machines SM4, SM10are quasi-automata.
Proof. The state machines SM6, SM9 satisfy the generalized mixed associativity, and therefore they are quasi-multiautomata, while SM4 and SM10 satisfy the mixed associativity and therefore they are quasi-automata. The rest state machines do not satisfy any associativity condition. Indeed:
For SM1 it holds: while .
For SM2 it holds: while .
For SM3 it holds: while .
For SM5 it holds: while .
For SM7 it holds: while .
For SM8 it holds: while . □
Proposition 22. If E is the hypergroup H4(Proposition 9), then the state machines SM3, SM5, SM6, SM9are quasi-multiautomata and the state machines SM4, SM10are quasi-automata.
Proof. The state machines SM3, SM5, SM6, SM9 satisfy the generalized mixed associativity, and therefore they are quasi-multiautomata, while SM4 and SM10 satisfy the mixed associativity and therefore they are quasi-automata. The rest state machines do not satisfy any associativity condition. Indeed:
For SM1 it holds: while .
For SM2 it holds: while .
For SM7 it holds: while .
For SM8 it holds: while . □
Proposition 23. If E is the hypergroup H5(Proposition 9), then the state machine SM8is a quasi-multiautomaton and the state machines SM4, SM10are quasi-automata.
Proof. The state machine SM8 satisfies the generalized mixed associativity, and therefore it is a quasi-multiautomaton, while SM4 and SM10 satisfy the mixed associativity and therefore they are quasi-automata. The rest state machines do not satisfy any associativity condition. Indeed:
For SM1 it holds: while .
For SM2 it holds: while .
For SM3 it holds: while .
For SM5 it holds: while .
For SM6 it holds: while .
For SM7 it holds: while .
For SM9 it holds: while . □
Proposition 24. If E is the hypergroup H6(Proposition 9), then the state machines SM3, SM5, SM6are quasi-multiautomata and the state machines SM4, SM10are quasi-automata.
Proof. The state machines SM3, SM5, SM6 satisfy the generalized mixed associativity, and therefore they are quasi-multiautomata, while SM4 and SM10 satisfy the mixed associativity and therefore they are quasi-automata. For the rest state machines, observe that they satisfy none of the associativity conditions. Indeed:
For SM1 it holds: while .
For SM2 it holds: while .
For SM7 it holds: while .
For SM8 it holds: while .
For SM9 it holds: while . □
Proposition 25. If E is the hypergroup H7(Proposition 9), then the state machines SM3, SM5, SM6, SM8, SM9are quasi-multiautomata and the state machines SM4, SM10are quasi-automata.
Proof. The state machines SM3, SM5, SM6, SM8, SM9 satisfy the generalized mixed associativity, and therefore they are quasi-multiautomata, while SM4 and SM10 satisfy the mixed associativity and therefore they are quasi-automata. The remaining state machines satisfy none of the associativity conditions. Indeed:
For SM1 it holds: while .
For SM2 it holds: while .
For SM7 it holds: while . □
6. Conclusions and Open Problems
This paper approaches the state machines from within their environment in which they can “survive”, i.e., exist and operate. They are given an extended definition which derives from the consideration that the environment in which they can exist is an algebraic magma in the sense of [
9], where the initial definition of magma by N. Bourbaki [
8] is generalized for the purpose of incorporating algebraic structures endowed with hypercompositional laws. Hence, a state machine
M is defined as a triplet (
S,E,δ), where
S is the set of the states of the machine,
E is the set of the environmental inputs to the machine and
δ is a mapping of
S ×
E to
S, which describes the interaction between each state and its environment. Our study focuses on the binary state machines, where
E is a two-element magma and our results can be summarized in
Table 1:
With regard to the classification given in this table, we note that according to the above Theorem 3, the two-element hypergroups are not just transposition hypergroups (row 10), but bilateral transposition hypergroups. Hence, the hitherto open question which was asked in [
9] is answered affirmatively.
Of all the structures that appear in the above table, this paper presents the state machines with two states whose environment is a two-element group or two-element hypergroups. The results are presented in
Table 2:
According to Corollary 3, only quasiautomata and quasi-multiautomata with up to three states can operate in the environment of a two-element magma. The description of the three state binary machines, as well as the investigation of the state machines which correspond to algebraic structures of
that are other than groups or hypergroups, still remain open problems. This question becomes more complicated in the instances when
is enriched with two laws of synthesis, as it happens in a hyperringoid [
74]. It is worth mentioning here that
is a hyperringoid in specific state machines like the automata, where the environment is defined via an alphabet [
16,
17,
21].
All of the above refer to deterministic state machines. However, the state transition function can be a mapping from
to the power set
of
, defining thus the non-deterministic state machines (see also [
13,
14,
67]). This consideration broadens the margins of the study as there can exist state transition functions for which
is not necessarily just a single element. It can be more than one element and it can also be none, as it is possible for
to be equal to the empty set.