# Basis (universal algebra)

In universal algebra a basis is a structure inside of some (universal) algebras, which are called free algebras. It generates all algebra elements from its own elements by the algebra operations in an independent manner. It also represents the endomorphisms of an algebra by certain indexings of algebra elements, which can correspond to the usual matrices when the free algebra is a vector space.

## Definitions

The basis (or reference frame) of a (universal) algebra is a function b that takes some algebra elements as values ${\displaystyle b(i)}$ and satisfies either one of the following two equivalent conditions. Here, the set of all ${\displaystyle b(i)}$ is called basis set, whereas several authors call it the "basis".[1][2] The set ${\displaystyle I}$ of its arguments i is called dimension set. Any function, with all its arguments in the whole ${\displaystyle I}$, that takes algebra elements as values (even outside the basis set) will be denoted by m. Then, b will be an m.

### Outer condition

This condition will define bases by the set L of the ${\displaystyle I}$-ary elementary functions of the algebra, which are certain functions ${\displaystyle \ell }$ that take every m as argument to get some algebra element as value ${\displaystyle \ell (m)}$. In fact, they consist of all the projections ${\displaystyle p_{i}}$ with i in ${\displaystyle I}$, which are the functions such that ${\displaystyle p_{i}(m)=m(i)}$ for each m, and of all functions that rise from them by repeated "multiple compositions" with operations of the algebra.

(When an algebra operation has a single algebra element as argument, the value of such a composed function is the one that the operation takes from the value of a single previously computed ${\displaystyle I}$-ary function as in composition. When it does not, such compositions require that many (or none for a nullary operation) ${\displaystyle I}$-ary functions are evaluated before the algebra operation: one for each possible algebra element in that argument. In case ${\displaystyle I}$ and the numbers of elements in the arguments, or “arity”, of the operations are finite, this is the finitary multiple composition .)

Then, according to the outer condition a basis has to generate the algebra (namely when ${\displaystyle \ell }$ ranges over the whole L, ${\displaystyle \ell (b)}$ gets every algebra element) and must be independent (namely whenever any two ${\displaystyle I}$-ary elementary functions coincide at b, they will do everywhere: ${\displaystyle \ell '(b)=\ell ''(b)}$ implies ${\displaystyle \ell '=\ell ''}$).[3] This is the same as to require that there exists a single function ${\displaystyle \chi }$ that takes every algebra element as argument to get an ${\displaystyle I}$-ary elementary function as value and satisfies ${\displaystyle \chi ({\ell (b)})=\ell }$ for all ${\displaystyle \ell }$ in L.

### Inner condition

This other condition will define bases by the set E of the endomorphisms of the algebra, which are the homomorphisms from the algebra into itself, through its analytic representation ${\displaystyle \varrho }$ by a basis. The latter is a function that takes every endomorphism e as argument to get a function m as value: ${\displaystyle \varrho (e)=m}$, where this m is the "sample" of the values of e at b, namely ${\displaystyle m(i)=[\varrho (e)]_{i}=e(b(i))}$ for all i in the dimension set.

Then, according to the inner condition b is a basis, when ${\displaystyle \varrho }$ is a bijection from E onto the set of all m, namely for each m there is one and only one endomorphism e such that ${\displaystyle m=\varrho (e)}$. This is the same as to require that there exists an extension function, namely a function ${\displaystyle \eta }$ that takes every (sample) m as argument to extend it onto an endomorphism ${\displaystyle \eta (m)}$ such that ${\displaystyle \varrho (\eta (m))=m}$.[4]

The link between these two conditions is given by the identity ${\displaystyle [\chi (a)]_{m}=[\eta (m)]_{a}}$, which holds for all m and all algebra elements a.[5] Several other conditions that characterize bases for universal algebras are omitted.

As the next example will show, present bases are a generalization of the bases of vector spaces. Then, the name "reference frame" can well replace "basis". Yet, contrary to the vector space case, a universal algebra might lack bases and, when it has them, their dimension sets might have different finite positive cardinalities.[6]

## Examples

### Vector space algebras

In the universal algebra corresponding to a vector space with positive dimension the bases essentially are the ordered bases of this vector space. Yet, this will come after several details.

When the vector space is finite-dimensional, for instance ${\displaystyle I=\{0,1,\ldots n-1\}}$ with ${\displaystyle n>0}$, the functions ${\displaystyle \ell }$ in the set L of the outer condition exactly are the ones that provide the spanning and linear independence properties with linear combinations ${\displaystyle \ell (b)=c_{0}b_{0}+c_{1}b_{1}+\ldots c_{n-1}b_{n-1}}$ and present generator property becomes the spanning one. On the contrary, linear independence is a mere instance of present independence, which becomes equivalent to it in such vector spaces. (Also, several other generalizations of linear independence for universal algebras do not imply present independence.)

The functions m for the inner condition correspond to the square arrays of field numbers (namely, usual vector-space square matrices) that serve to build the endomorphisms of vector spaces (namely, linear maps into themselves). Then, the inner condition requires a bijection property from endomorphisms also to arrays. In fact, each column of such an array represents a vector ${\displaystyle m(i)}$ as its n-tuple of coordinates with respect to the basis b. For instance, when the vectors are n-tuples of numbers from the underlying field and b is the Kronecker basis, m is such an array seen by columns, ${\displaystyle \varrho }$ is the sample of such a linear map at the reference vectors and ${\displaystyle \eta }$ extends this sample to this map as below.

${\displaystyle {}\qquad \left({\begin{array}{rrc}0&-1&2\\-2&3&1\\1&0&2\end{array}}\right)\quad {\begin{array}{c}{\stackrel {\eta }{\longmapsto }}\\{\stackrel {\varrho }{\longleftarrow \!\!{}^{{}_{\!{}_{\mathsf {l}}}}}}\end{array}}\quad \left\{{\begin{array}{rcrccr}x'_{0}&=&&-x_{1}&+&2x_{2}\\x'_{1}&=&-2x_{0}&+3x_{1}&+&x_{2}\\x'_{2}&=&x_{0}&&+&2x_{2}\end{array}}\right.}$

When the vector space is not finite-dimensional, further distinctions are needed. In fact, though the functions ${\displaystyle \ell }$ formally have an infinity of vectors in every argument, the linear combinations they evaluate never require infinitely many addenda ${\displaystyle c_{i}m(i)}$ and each ${\displaystyle \ell }$ determines a finite subset J of ${\displaystyle I}$ that contains all required i. Then, every value ${\displaystyle \ell (m)}$ equals an ${\displaystyle \ell '(m')}$, where ${\displaystyle m'}$ is the restriction of m to J and ${\displaystyle \ell '}$ is the J-ary elementary function corresponding to ${\displaystyle \ell }$. When the ${\displaystyle \ell '}$ replace the ${\displaystyle \ell }$, both the linear independence and spanning properties for infinite basis sets follow from present outer condition and conversely.

Therefore, as far as vector spaces of a positive dimension are concerned, the only difference between present bases for universal algebras and the ordered bases of vector spaces is that here no order on ${\displaystyle I}$ is required. Still it is allowed, in case it serves some purpose.

When the space is zero-dimensional, its ordered basis is empty. Then, being the empty function, it is a present basis. Yet, since this space only contains the null vector and its only endomorphism is the identity, any function b from any set ${\displaystyle I}$ (even a nonempty one) to this singleton space work as a present basis. This is not so strange from the point of view of Universal Algebra, where singleton algebras, which are called "trivial", enjoy a lot of other seeming strange properties.

### Word monoid

Let ${\displaystyle I=\{{\mathsf {a,b,c,}}\ldots \}}$ be an "alphabet", namely a (usually finite) set of objects called "letters". Let W denote the corresponding set of words or "strings", which will be denoted as in strings, namely either by writing their letters in sequence or by ${\displaystyle \epsilon }$ in case of the empty word (Formal Language notation).[7] Accordingly, the juxtaposition ${\displaystyle vw}$ will denote the concatenation of two words v and w, namely the word that begins with v and is followed by w.

Concatenation is a binary operation on W that together with the empty word ${\displaystyle \epsilon }$ defines a free monoid, the monoid of the words on ${\displaystyle I}$, which is one of the simplest universal algebras. Then, the inner condition will immediately prove that one of its bases is the function b that makes a single-letter word ${\displaystyle {i}}$ of each letter ${\displaystyle {\mathsf {i}}}$, ${\displaystyle b({\mathsf {i}})=i}$.

(Depending on the set-theoretical implementation of sequences, b may not be an identity function, namely ${\displaystyle i}$ may not be ${\displaystyle {\mathsf {i}}}$, rather an object like ${\displaystyle \{(\emptyset ,{\mathsf {i}})\}}$, namely a singleton function, or a pair like ${\displaystyle (\emptyset ,{\mathsf {i}})}$ or ${\displaystyle ({\mathsf {i}},\emptyset )}$.[7])

In fact, in the theory of D0L systems (Rozemberg & Salomaa 1980) such ${\displaystyle m=\varrho (e)}$ are the tables of "productions", which such systems use to define the simultaneous substitutions of every ${\displaystyle i}$ by a single word ${\displaystyle w=m({\mathsf {i}})}$ in any word u in W: if ${\displaystyle u={i}_{0}{i}_{1}\cdots {i}_{k}}$, then ${\displaystyle e(u)=m({\mathsf {i}}_{0})m({\mathsf {i}}_{1})\cdots m({\mathsf {i}}_{k})}$. Then, b satisfies the inner condition, since the function ${\displaystyle \varrho }$ is the well-known bijection that identifies every word endomorphism with any such table. (The repeated applications of such an endomorphism starting from a given "seed" word are able to model many growth processes, where words and concatenation serve to build fairly heterogeneous structures as in L-system, not just "sequences".)

## Notes

1. ^ Gould.
2. ^ Grätzer 1968, p.198.
3. ^ For instance, see (Grätzer 1968, p.198).
4. ^ For instance, see 0.4 and 0.5 of (Ricci 2007)
5. ^ For instance, see 0.4 (E) of (Ricci 2007)
6. ^ Grätzer 1979.
7. ^ a b Formal Language notation is used in Computer Science and sometimes collides with the set-theoretical definitions of words. See G. Ricci, An observation on a Formal Language notation, SIGACT News, 17 (1972), 18–23.

## References

1. Gould, V. Independence algebras, Algebra Universalis 33 (1995), 294–318.
2. Grätzer, G. (1968). Universal Algebra, D. Van Nostrand Company Inc..
3. Grätzer, G. (1979). Universal Algebra 2-nd 2ed., Springer Verlag. ISBN 0-387-90355-0.
4. Ricci, G. (2007). Dilatations kill fields, Int. J. Math. Game Theory Algebra, 16 5/6, pp. 13–34.
5. Rozenberg G. and Salomaa A. (1980). The mathematical theory of L systems, Academic Press, New York. ISBN 0-12-597140-0