A formula involving some finite number of distinct variable symbols (known as the free variables of the formula) for some is then a formal string generated by the following rules: If is a -ary relation and are terms which only involve variables from , then is a formula of .