Questions: Variable Substitution and Capture-Avoidance in First-Order Logic

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

In the formula ∃y P(x, y), we attempt to substitute y for x. The naive result ∃y P(y, y) is problematic because:

AThe formula now has no free variables, which is always a logical error
BThe variable y in the substituted term was captured by the quantifier ∃y, changing the meaning from 'P holds between external y and some z' to 'P holds between some element and itself'
CFirst-order logic does not allow the same variable to appear twice in one formula
DThe existential quantifier must be removed before any substitution can occur
Question 2 Multiple Choice

How do you safely perform the substitution [y/x] (substitute y for x) in the formula ∃y P(x, y) to avoid variable capture?

AReplace only the first occurrence of x, leaving subsequent occurrences unchanged
BRename the bound variable: replace ∃y P(x,y) with the α-equivalent ∃z P(x,z), then substitute to get ∃z P(y,z)
CApply the substitution conditionally: only substitute x occurrences that appear before the ∃y quantifier
DWrap the substituted term in parentheses: ∃y P((y), y)
Question 3 True / False

Renaming a bound variable in a formula — for example, changing ∀x P(x) to ∀z P(z) — preserves the logical meaning of the formula.

TTrue
FFalse
Question 4 True / False

Substituting a ground term (a term with no variables, such as a constant c) for a free variable generally risks variable capture.

TTrue
FFalse
Question 5 Short Answer

What is variable capture, and why does capture-avoidance matter for the correctness of logical proof rules like universal instantiation?

Think about your answer, then reveal below.