Term of Language
A finite sequence (or string) of symbols is a term of if and only if it is one of the following forms:
- A variable or constant symbol ;
- , where is an -ary function symbol of , and each is a term. Alternatively, we can define terms set-theoretically: The set of terms of L is the least set S of finite sequences such that: (i) each variable and constant symbol belongs to S; (ii) if is an -ary function symbol of and , then .
Term Complexity function
For terms define the term complexity function by: , where is a variable symbol and is a constant symbol where is a term.