Any set X may be used to generate the free semilatticeFX. The free semilattice is defined to consist of all of the finite subsets of X, with the semilattice operation given by ordinary set union. The free semilattice has the universal property. The universal morphism is, where η is the unit map η:X→FX which takes x∈X to the singleton set. The universal property is then as follows: given any map f:X→L from X to some arbitrary semilattice L, there exists a unique semilattice homomorphism such that. The map may be explicitly written down; it is given by Here, denotes the semilattice operation in L. This construction may be promoted from semilattices to lattices; by construction the map will have the same properties as the lattice. The symbol F is then a functor from the category of sets to the category of lattices and lattice homomorphisms. The functor F is left adjoint to the forgetful functor from lattices to their underlying sets. The free lattice is a free object.
Word problem
The word problemfor free lattices has some interesting aspects. Consider the case of bounded lattices, i.e. algebraic structures with the two binary operations ∨ and ∧ and the two constants 0 and 1. The set of all well-formed expressions that can be formulated using these operations on elements from a given set of generators X will be called W. This set of words contains many expressions that turn out to denote equal values in every lattice. For example, if a is some element ofX, then a∨1 = 1 and a∧1 =a. The word problem for free bounded lattices is the problem of determining which of these elements of W denote the same element in the free bounded latticeFX, and hence in every bounded lattice. The word problem may be resolved as follows. A relation ≤~ on W may be defined inductively by setting w ≤~vif and only if one of the following holds:
w = v,
w = 0,
v = 1,
w = w1 ∨ w2 and both w1≤~v and w2≤~v hold,
w = w1 ∧ w2 and either w1≤~v or w2≤~v holds,
v = v1 ∨ v2 and either w≤~v1 or w≤~v2 holds,
v = v1 ∧ v2 and both w≤~v1 and w≤~v2 hold.
This defines a preorder ≤~ on W, so an equivalence relation can be defined by w~v when w≤~v and v≤~w. One may then show that the partially orderedquotient spaceW/~ is the free bounded lattice FX. The equivalence classes of W/~ are the sets of all words w and v with w≤~v and v≤~w. Two well-formed words v and w in W denote the same value in every bounded lattice if and only if w≤~v and v≤~w; the latter conditions can be effectively decided using the above inductive definition. The table shows an example computation to show that the wordsx∧z and x∧z∧ denote the same value in every bounded lattice. The case of lattices that are not bounded is treated similarly, omitting rules 2. and 3. in the above construction. The solution of the word problem on free lattices has several interesting corollaries. One is that the free lattice of a three-element set of generators is infinite. In fact, one can even show that every free lattice on three generators contains a sublattice which is free for a set of four generators. By induction, this eventually yields a sublattice free on countably many generators. This property is reminiscent of SQ-universality in groups. The proof that the free lattice in three generators is infinite proceeds by inductively defining where x, y, and z are the three generators, and p0=x. One then shows, using the inductive relations of the word problem, that pn+1 is strictly greater than pn, and therefore all infinitely many words pn evaluate to different values in the free lattice FX.
Another corollary is that the complete free lattice "does not exist", in the sense that it is instead a proper class. The proof of this follows from the word problem as well. To define a complete lattice in terms of relations, it does not suffice to use the finitary relations of meet and join; one must also have infinitary relations defining the meet and join of infinite subsets. For example, the infinitary relation corresponding to "join" may be defined as Here, f is a map from the elements of a cardinalN to FX; the operator denotes the supremum, in that it takes the image off to its join. This is, of course, identical to "join" when N is a finite number; the point of this definition is to define join as a relation, even when N is an infinite cardinal. The axioms of the pre-ordering of the word problem may be adjoined by the two infinitary operators corresponding to meet and join. After doing so, one then extends the definition of to an ordinally indexed given by when is a limit ordinal. Then, as before, one may show that is strictly greater than. Thus, there are at least as many elements in the complete free lattice as there are ordinals, and thus, the complete free lattice cannot exist as a set, and must therefore be a proper class.