In mathematics, the idea of a free object is one of the basic concepts of abstract algebra. Informally, a free object over a set A can be thought of as being a "generic" algebraic structure over A: the only equations that hold between elements of the free object are those that follow from the defining axioms of the algebraic structure. Examples include free monoids, free groups, tensor algebras, or free lattices. The concept is a part of universal algebra, in the sense that it relates to all types of algebraic structure (with finitary operations). It also has a formulation in terms of category theory, although this is in yet more abstract terms.
Definition Free objects are the direct generalization to categories of the notion of basis in a vector space. A linear function u : E1 → E2 between vector spaces is entirely determined by its values on a basis of the vector space E1. The following definition translates this to any category. A concrete category is a category that is equipped with a faithful functor to Set, the category of sets. Let C be a concrete category with a faithful functor U : C → Set. Let X be a set (that is, an object in Set), which will be the basis of the free object to be defined. A free object on X is a pair consisting of an object A in C and an injection i:X→U(A), called the canonical injection, that satisfies the following universal property:
For any object B in C and any map between sets g:X→U(B), there exists a unique morphism f:A→B in C such that g=U(f)∘i. That is, the following diagram commutes:
If free objects exist in C, the universal property implies every map between two sets induces a unique morphism between the free objects built on them, and this defines a functor F:𝐒𝐞𝐭→𝐂. It follows that, if free objects exist in C, the functor F, called the free functor is a left adjoint to the faithful functor U; that is, there is a bijection
Hom𝐒𝐞𝐭(X,U(B))≅Hom𝐂(F(X),B).
Examples The creation of free objects proceeds in two steps. For algebras that conform to the associative law, the first step is to consider the collection of all possible words formed from an alphabet. Then one imposes a set of equivalence relations upon the words, where the relations are the defining relations of the algebraic object at hand. The free object then consists of the set of equivalence classes. Consider, for example, the construction of the free group in two generators. One starts with an alphabet consisting of the five letters {e,a,b,a−1,b−1}. In the first step, there is not yet any assigned meaning to the "letters" a−1 or b−1; these will be given later, in the second step. Thus, one could equally well start with the alphabet in five letters that is S={a,b,c,d,e}. In this example, the set of all words or strings W(S) will include strings such as aebecede and abdc, and so on, of arbitrary finite length, with the letters arranged in every possible order. In the next step, one imposes a set of equivalence relations. The equivalence relations for a group are that of multiplication by the identity, ge=eg=g, and the multiplication of inverses: gg−1=g−1g=e. Applying these relations to the strings above, one obtains
aebecede=aba−1b−1, where it was understood that c is a stand-in for a−1, and d is a stand-in for b−1, while e is the identity element. Similarly, one has
abdc=abb−1a−1=e. Denoting the equivalence relation or congruence by ∼, the free object is then the collection of equivalence classes of words. Thus, in this example, the free group in two generators is the quotient
F2=W(S)/∼. This is often written as F2=W(S)/E where W(S)={a1a2…an|ak∈S;n∈ℕ} is the set of all words, and E={a1a2…an|e=a1a2…an;ak∈S;n∈ℕ} is the equivalence class of the identity, after the relations defining a group are imposed. A simpler example are the free monoids. The free monoid on a set X, is the monoid of all finite strings using X as alphabet, with operation concatenation of strings. The identity is the empty string. In essence, the free monoid is simply the set of all words, with no equivalence relations imposed. This example is developed further in the article on the Kleene star.
General case In the general case, the algebraic relations need not be associative, in which case the starting point is not the set of all words, but rather, strings punctuated with parentheses, which are used to indicate the non-associative groupings of letters. Such a string may equivalently be represented by a (full) binary tree or a free magma; the leaves of the tree are labeled by the letters from the alphabet. The algebraic relations may then be general arities or finitary relations on the leaves of the tree. Rather than starting with the collection of all possible parenthesized strings, it can be more convenient to start with the Herbrand universe. Properly describing or enumerating the contents of a free object can be easy or difficult, depending on the particular algebraic object in question. For example, the free group in two generators is easily described. By contrast, little or nothing is known about the structure of free Heyting algebras in more than one generator The problem of determining if two different strings belong to the same equivalence class is known as the word problem. As the examples suggest, free objects look like constructions from syntax; on the other hand, syntactical systems themselves can be characterized as free objects. From this perspective, heavy punctuation in notation (e.g., in programming languages) is a side effect of serializing free structure.
Free universal algebras
Let S be a set and A be an algebraic structure of type ρ generated by S. The underlying set of this algebraic structure A, often called its universe, is denoted by A . Let ψ:S→A be a function. We say that (A,ψ) (or informally just A) is a free algebra of type ρ on the set S of free generators if the following universal property holds: For every algebra B of type ρ and every function τ:S→B, where B is the universe of B, there exists a unique homomorphism σ:A→B such that the following diagram commutes: S→ψA↘τ↓σB This means that σ∘ψ=τ.
… excerpt ends here. Continue reading the full article.
