I'm a bit confused about a statement that I see often in the $\lambda$-calculus literature. Namely, what exactly does the following statement mean: "By induction on the length of $M\in\Lambda$." ?
In such literature, $\Lambda$ is defined as the smallest subset of $\mathcal{V}\cup\{(,),\lambda\}$ such that:
- $x\in\Lambda$, if $x\in\mathcal{V}$
- $(PQ)\in\Lambda$, if $P,Q\in\Lambda$
- $(\lambda x P)\in\Lambda$, if $x\in\mathcal{V}$ and $P\in\Lambda$
where $\mathcal{V}$ is any fixed infinite set of symbols.
Now, the length of $M\in\Lambda$ is given by:
- $|x| = 1$
- $(PQ)$ = $|P|+|Q|$
- $(\lambda x P)$ = $1+|P|$
Therefore, my question is: in what way is "structural induction over $\Lambda$" any different than "induction on the length of a $\lambda$-term"? In particular, what is the inductive hypothesis in such inductive method?
For induction on length inductive hypothesis is that statement holds for lambda term of length n. Induction step is to infer that statement holds for lambda term of length n + 1 when it holds for lambda term of length n.
Structural induction is described in this topic $\lambda$-calculus: structural induction principle over $\Lambda$ and it is something different. Structural induction described in that topic is some specific case of induction on length.