First-order substitution 2026-10-25
Replacing every free occurrence of variable in a first-order formula by a first-order term . Bound occurrences of are left alone. The operation requires either that be free for substitution at those occurrences or that conflicting bound variables first be renamed, as in capture-avoiding first-order substitution.
Free for substitution 2026-10-25
A first-order term is free for substitution for a variable in a first-order formula when no free variable of becomes bound after replacing a free occurrence of . Equivalently, at every free occurrence to be replaced, none of its enclosing quantifiers binds a variable appearing in . The test depends on occurrences and scopes, not merely on which variable names appear anywhere in the formula.
Past exam of the logic and set theory course of the University of Oxford 2009 A 1 b Solution 2026-10-31
A term is free for substitution for in when none of its variables becomes bound at a free occurrence of being replaced. Equivalently, no quantifier surrounding such an occurrence binds a variable of . Bound occurrences of are not replaced. This occurrence-sensitive condition prevents variable capture.
For example take and . On a two-element domain, is true. Naive textual substitution produces , which is false on every nonempty domain. Thus the corresponding unrestricted A4 implication would be invalid. The problem is that the inserted free was captured by the existing existential quantifier. Renaming that binder first instead gives the correct instance , with fresh.
Past exam of the logic and set theory course of the University of Oxford 2011 A 3 b iii Solution 2026-10-31
In a two-element first-order structure, is false for every first-order variable assignment. Blind substitution of for yields , which is true. This does not express the original property evaluated at the value of the inserted term: it has changed a free parameter into a bound variable.
Past exam of the logic and set theory course of the University of Oxford 2011 A 3 b ii Solution 2026-10-31
Take . The term is free for substitution for : its variable is not bound by the enclosing quantifier. The term is not free for substitution for , because insertion under captures that occurrence.
Past exam of the logic and set theory course of the University of Oxford 2011 A 3 b i Solution 2026-10-31
The first-order term is free for substitution for in if, at every free occurrence of to be replaced, no enclosing quantifier binds a variable occurring in . Equivalently, the substitution introduces no variable capture. Only free occurrences of are replaced.
Equality introduction rule is reflexivity; equality elimination rule permits substitution of equals in a formula:Terms substituted into must be free for substitution, so no variable becomes captured. The notation means substitution into the same designated free variable positions of one formula; other occurrences may remain fixed. These rules express first-order equality without assuming symmetry or transitivity as additional axioms.
The term is free for substitution for . The only free occurrence of the target is in the outside disjunct , beyond both quantifier scopes. The occurrences under are bound variables and are not replaced. Therefore no renaming is required, andThe new and in the last disjunct are free. First-order substitution replaces the original free occurrences once; it does not recursively substitute into the inserted term.
The term is not free for substitution for . The occurrence of in is under , which would capture the inserted . The other occurrence, in the outside disjunct , has no enclosing quantifier. The inner does not bind the occurrence of in its antecedent, so it creates no additional capture at that substitution site.
Rename the bound to a fresh , then carry out capture-avoiding first-order substitution. The result isThe inserted in remains free because it lies outside the scope of . One may additionally rename that bound for readability, but it is not necessary for correctness.
Use broad scope up to the enclosing parenthesis, consistent with (c). Thus the first conjunct is read as is not free for substitution for . The free occurrence of in lies under ; inserting there would capture its . Rename that bound variable to a fresh first, using alpha equivalence. The capture-avoiding first-order substitution is thenEvery occurrence of in the original formula is free, so all four are replaced. The variable introduced by the term remains free, and the final is unchanged.
Under the same scope convention, is not free for substitution for . The occurrence of inside is free but lies under , so its replacement would capture the new . Rename this binder to fresh . Substitute only for the free occurrences in the first conjunct:The two occurrences of in the final conjunct are bound variables and remain unchanged. The inserted remain free.
If instead one gives the printed only the scope , this part's free-for-substitution answer becomes yes, because neither free occurrence then lies under that binder. Under that alternative parsing, the result is explicitlyThe narrower reading does not change the negative answer in (1): its occurrence of inside still requires renaming that binder before substitution. The broad-scope answers above give a single consistent parsing across the paper.