Substitution is the process of remapping the syntax (i.e. the symbols) of a formula. Depending on the type of logic, i.e. whether we are considering propositional logic or predicate logic, different operations may be allowed. Hence substitution is a meta-logical operation.
Definition
Substitution (Logic) ^definition
A substitution, , is a mapping (function) of symbols to symbols, also known as a syntactic transformation (because symbols define syntax):
A substitution is represented (conventionally) as , where gets replaced by . A substitution, , can only have a finite number of mappings. There are many different notations for substitution:
The resulting expression, , is a substitution instance of .
In Propositional Logic
See Propositional Substitution
In Predicate Logic
Compositions of Substitutions
Since substitutions are basically functions, function composition also applies to them. If we have and being two substitutions, then:
which means is applied to the substituted instance