Theorem. Rule induction [0171]
Let \mathcal {R} be a set of syntactic rules over a set X. Let X_{\mathcal {R}}\subseteq X be the subset containing just those x\in X such that there exists a derivation of x in \mathcal {R}.
Then X_{\mathcal {R}} is closed under each of the rules in \mathcal {R} and it is moreover the smallest such subset of X. In other words, X_{\mathcal {R}}\in \mathrm {Cl}_{\mathcal {R}} and if S\in \mathrm {Cl}_{\mathcal {R}} then X_{\mathcal {R}}\subseteq S. Equivalently, X_{\mathcal {R}} = \bigcap \mathrm {Cl}_{\mathcal {R}}.
We have therefore shown that X_{\mathcal {R}}\in \mathrm {Cl}_{\mathcal {R}}.
For the remainder of the proof, we fix any S\in \mathcal {Cl}_{\mathcal {R}} to check that X_{\mathcal {R}}\subseteq S. In other words, we must prove:
For all x: X such that x has a derivation in \mathcal {R}, we have x\in S.
But the above can be rephrased as follows:
For all derivations d generated by \mathcal {R}, the conclusion of d lies in S.
As every derivation has a (maximum) height, we can further rephrase the goal in terms that will be amenable to the use of mathematical induction.
For all n\in \mathbb {N}, the conclusion of any derivation with height less than or equal to n lies in S.
We now proceed by induction.
- In the base case, we must show that the conclusion of any derivation d with height less than or equal to 0 lies in S. But any derivation has height at least 1, so this is vacuous.
In the inductive step, we suppose that the conclusion of every derivation of height less than or equal to n lies in S; we must prove that the conclusion of every derivation of height less than or equal to n+1 lies in S.
To that end, consider a derivation of height less than or equal to n+1 with conclusion v, which we might depict below as follows:
\displaystyle \frac {\displaystyle \frac {\vdots }{u_1}\quad \ldots \quad \frac {\vdots }{u_n} }{\displaystyle \quad v\quad }Such a derivation must come from a rule of the following form in \mathcal {R}:
\displaystyle \frac {\displaystyle u_1\quad \ldots \quad u_n}{\displaystyle \quad v\quad }We need to show that v lies in S. Naturally, all the subderivations of u_i depicted above have height less than or equal to n; therefore, our inductive hypothesis ensures that each u_i lies in S.
The rule \scriptstyle \frac {\scriptstyle u_1\quad \ldots \quad u_n}{\scriptstyle v} specifies a closure condition, and because S\in \mathrm {Cl}_{\mathcal {R}} we know that S is closed under it. Recalling the closure condition induced by a rule, we can immediately conclude v\in S from u_1,\ldots ,u_n\in S.