Questions: Variable Binding and Scope

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

In the formula P(x) ∧ ∀x Q(x), what is the status of the two occurrences of x?

ABoth occurrences are bound — the ∀x quantifier applies to the entire conjunction
BThe x in P(x) is free; the x in Q(x) is bound by the ∀x quantifier
CBoth occurrences are free because the quantifier only takes effect after the ∧ connective
DThe x in P(x) is bound and the x in Q(x) is free — quantifiers bind leftward
Question 2 Multiple Choice

You want to rename the bound variable in ∀x ∃y (x ≠ y) to ∀y ∃y (y ≠ y). Why is this renaming problematic?

AAlpha-renaming is never legal in first-order logic — bound variable names are fixed
BThe outer ∀y would capture the y that was formerly free in the inner formula, changing 'every x has a different element y' into a self-contradictory claim
COnly existential quantifiers can be alpha-renamed; universal quantifiers bind their variables permanently
DThe renaming is fine logically, but stylistically y should be renamed to z to avoid reuse
Question 3 True / False

Alpha-equivalence means ∀x P(x) and ∀z P(z) express the same logical content — the name of a bound variable is an arbitrary label that can be changed without altering meaning, provided no free variable is captured.

TTrue
FFalse
Question 4 True / False

In a first-order logic formula, a variable is either free throughout the entire formula or bound throughout — it cannot be simultaneously free in one part and bound in another.

TTrue
FFalse
Question 5 Short Answer

Why must you check for 'variable capture' when alpha-renaming a bound variable, and what goes wrong if capture occurs?

Think about your answer, then reveal below.