We fix an arbitrary rule in \(\mathcal R\):
By definition of \(X_\mathcal R\), we have that \(x_1, \ldots , x_n \in X_\mathcal R\). Since \(X_\mathcal R\) is closed under the rules in \(\mathcal R\), it follows that \(x \in X_\mathcal R\). Thus, \(X_\mathcal R\) is closed under the rules in \(\mathcal R\).
Now we want to check that \(X_\mathcal R\) is the smallest set closed under the rules in \(\mathcal R\). Let \(S \subseteq X\) be an arbitrary set that is closed under the rules in \(\mathcal R\). We need to show that \(X_\mathcal R \subseteq S\). We can equivalently state this as:
Forall derivations \(d\) generated by rules in \(\mathcal R\), the conclusions of \(d\) are in \(S\).
Or in terms of the height of a derivation as:
Forall derivations \(d\) of height \(h\) generated by rules in \(\mathcal R\), the conclusions of \(d\) are in \(S\).
We proceed by induction on the height of the derivation \(d\).
-
In the base case any derivation has a height of at least 1, the base case holds vacuously.
In the inductive case we suppose that the conclusions of every derivation of height less than or equal to \(k\) are in \(S\). ; we must prove that the conclusion of any derivation of height \(k + 1\) is also in \(S\).
Let \(d\) be an arbitrary derivation of height \(k + 1\). By definition of derivation height, the last inference in \(d\) must be of the form:
where each sub-derivation \(d_i\) has height less than or equal to \(k\). By the inductive hypothesis, the conclusions of each sub-derivation \(d_i\) are in \(S\). Since \(S\) is closed under the rules in \(\mathcal R\), it follows that the conclusion \(x\) of the derivation \(d\) is also in \(S\).
Thus, by induction, we have shown that for all derivations \(d\) generated by rules in \(\mathcal R\), the conclusions of \(d\) are in \(S\). Therefore, \(X_\mathcal R \subseteq S\).