WWikiTTheoremsThe substitution lemma for formulas
Theorem·T46
Satisfying a substituted formula matches satisfying the original after moving the replacement's own value into the assignment, provided the substitution was safe.
For an L-structure
, assignment
,
,
, and
with
, writing
:
In words
For an L-structure and assignment, a variable, and a term, and any formula of the language, given that the term is substitutable for the variable in it, writing s' for the assignment updated to send the variable to the value the term has there: satisfying the substituted formula under the assignment matches satisfying the original formula under s'.
Never needed: F05 · F10 · F13 · A03 · A04 · A05 · A09 (computed from the citation graph, not asserted).
Proof
- 1By strong induction on : assume the claim for every formula of length (the induction hypothesis, "IH"); show it for of length with . Write .
- 2
- 3
- 4
- 5
- 6
- 7quant, different variable. If is ( ) or ( ) with : by the quant clause of D099, means , or and . In either branch holds - directly in the second, and in the first because (quant clause, D093) with gives , so T45 applies. So the IH applies to either way, and the diff clause of D098 gives as the same quantifier applied to and . It suffices to show, for every : - then the forall/exists clause of D091 gives iff (for all/some) , the left side, iff (for all/some) , the right side, iff .
- 8Sub-case . By the IH at : . Since , T43 gives , and since , updates at different coordinates commute (both add the independent pairs , to with the old entries at removed, in either order, Extensionality): . So the right side of the IH becomes , giving the sub-case.
- 9Sub-case (hence , shown above). By T44 applied to at the base assignment , with reassigned first to and separately to (neither choice matters, as ): and . Combining, and using the IH (at ) on the left: (the last equality by commutativity of updates at different coordinates, as above). This gives the sub-case without needing to relate to at all.
- 10T08 concludes: the claim holds for every with .
∎
Remarks
The Substitution Lemma, the central technical fact soundness needs to verify universal instantiation and substitutivity of equals are valid: both axioms compare a formula to its substituted form, and this lemma is what says that comparison tracks a single, well-understood change of assignment rather than something satisfaction cannot see through. The substitutability hypothesis is used only in the quantifier, different-variable case, exactly where a naive substitution risks capturing
's own variables. Throughout the proof, compound formulas are named using the ordinary connective and quantifier symbols of D109 rather than spelled out via the raw construction those symbols abbreviate.