(n) P(subst(beta(num(ß-1(x))),ß-1(x)))
| /
| ß(n) /
| /
| /
P(subst(beta(num(n)),n))
ß(x) is a primitive recursive function, n is the Gödel
number of the formula above, n is the numeral of that number
and the function num(x) maps a number to the Gödel
number of its numeral. The function subst(x,y) describes, through Gödel
numbers, substitutions of terms into formulas: if x is the number of a term,
and y is the number of a formula (containing a free variable), the term
subst(x,y) refers to the result of the corresponding substitution (for
simplicity, the notation does not specify the variable).
When the term ß(n), described by the term
beta(num(n)), is substituted into
the formula above, the resulting sentence
refers to (the Gödel number of)
the result of that very substitution, and thus to itself. The special case in which ß(x) is linear covers diagonalization and simple generalizations of diagonalization, which can be described as diagonalization along other diagonals (other than the main one). For example: