In Enderton, Section 2.3, to prepare to prove Unique Readability for the wffs in FOL he proves a series of Lemmas involving a function K. On pg. 105 says the following about $K$:
"Recall that the terms are built up from the variables and constant symbols by operations corresponding to the function symbols. We now define a function $K$ on the symbols involved such that for a symbol $s$, $K(s)=1-n$, where $n$ is the number of terms that must follow $s$ to obtain a term:
- $K(x)=1-0=1$ for a variable $x$;
- $K(c)=1-0=1$ for a constant symbol $c$;
- $K(f)=1-n$ for an $n$-place function symbol $f$."
He then sketches inductive proofs for general claims like: For any term $t$, $K(t)=1$.
Before attempting to flesh out this proof, I am having trouble understanding $K$. Take for example a 1-place function like the successor function $S$. Since $S$ is 1-place, by the above definition isn't $K(S)=1-1=0$. In contrast, take a 2-place function like $+$. Again, since $+$ is 2-place, by the above definition, $K(+)=1-2=-1$. What information do I get from the values of $K$?
Is it that by solving for $n$, I am told how many terms need to follow $s$ in order to get a term, i.e. so that $K(s)=1$?