An input sequence of strings from a given alphabet are given as:
, where A is a finite set called the Language.
We say that all sequences over an alphabet are in the Kleene-Concatenation, that is:
, where, , where,
is the empty string. Note:
We will show that the concatenation operation that builds up the Kleene-Set is associative, non-commutative and has an identity element.
Definition: Concatenation is defined as
1) Associativity : We will show that (a.b).c = a.(b.c), where,
For the LHS of the equation, by definition of concatenation, we have that:
So,
For the RHS, we have that,
So,
Clearly, a.(b.c) = (a.b).c
Therefore, the concatenation operation is associative.
2) Non-Commutativty: We will show that,
By definition,
and
We can see that for a.b = b.a, we need that (if m = n):
and ultimately
However, if they are not equal, we see that commutativity is broken. The creation of complements of strings concatenated together is one simple example of strings that break commutativity.
In the event that , commutativity may be broken by choosing the smaller string to be a substring of the larger one, and arrange the alphabets such that they complement the first alphabets of the smaller one.
Clearly, commutativity does not always hold.
Therefore, Concatenation is not Commutative.
3) Identity Element: It is trivial to see that the identity element is the empty string. Now, for the identity element, and , where e is the identity element. By definition, concatenation with the empty string at the beginning or ending of another string yields the latter string.
Therefore, concatenation has the identity element
Note : The fact that concatenation is not a commutative operation over the Finite Alphabet L, tells us that there is no finite basis in any Vector Space made from field elements F = L that can span the Kleene-Concatenation of a Language. This tells us that the set is incredibly rich, and beyond the scope of Linear Algebra with a finite basis. Furthermore, one can see that though there exists an identity element, there exists no inverse element for the operation of concatenation.
Reference: 1) Problem D. Automata: The Algebra of Input/Output Sequences, Problems 1 -3, Pages 24, A Book of Abstract Algebra, Charles C. Pinter, Second Edition