Before we define the concept of a unifier we must extend the book's concept of substitution. A substitution can now be a set of pairs of variables and their replacements, written
Applying a substitution to an expression (either a term or formula) means to simulatenously replace each variable () with its corresponding term ().
A substitution can never contain a pair of the form .
For example, if we have , the results of applying to the term ( ) is .