Docsity

First-Order Logic: Free and Bound Variables and Substitution, Study notes of Mathematics

Toggle sidebar
bg1
10. Free and bound variables
Recall Example 9.5: The formula
φ=∀x0∀x1(f(x0, x2).
=f(x1, x2)→x0.
=x1)
•is true in <Z;·>under any assignment v
with v(x2) = 2
•but false when v(x2) = 0.
Whether or not A |=φ[v] only depends on
v(x2), not on v(x0) or v(x1).
say: the occurrence of x2in φis free.
Lecture 10 - 1/9
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download First-Order Logic: Free and Bound Variables and Substitution and more Study notes Mathematics in PDF only on Docsity!

10. Free and bound variables

Recall Example 9.5: The formula

φ = ∀x 0 ∀x 1 (f (x 0 , x 2 ) =. f (x 1 , x 2 ) → x 0 =. x 1 )

  • is true in < Z; · > under any assignment v with v(x 2 ) = 2
  • but false when v(x 2 ) = 0.

Whether or not A |= φ[v] only depends on v(x 2 ), not on v(x 0 ) or v(x 1 ).

say: the occurrence of x 2 in φ is free.

10.1 Definition Let L be a first-order language, φ an L-formula, and x ∈ {x 0 , x 1 ,.. .} a variable occurring in φ.

The occurrence of x in φ is free, if (i) φ is atomic, or (ii) φ = ¬ψ resp. φ = (χ → ρ) and x occurs free in ψ resp. in χ or ρ, or (iii) φ = ∀xiψ, x occurs free in ψ, and x 6 = xi.

Every other occurrence of x in φ is called bound.

In particular, if x = xi and φ = ∀xiψ, then x is bound in φ.

10.2 Example

(∃x 0 P ( (^) ︸︷︷︸x 0 b

, x︸︷︷︸ 1 f

)∨∀x 1 (P ( (^) ︸︷︷︸x 0 f

, x︸︷︷︸ 1 b

) → ∃x 0 P ( (^) ︸︷︷︸x 0 b

, x︸︷︷︸ 1 b

⇒ xi 6 ∈ Free(φ) and

Free(φ) = Free(ψ) \ {xi}

Assume A |= ∀xiψ[v] (⋆) to show: for any v⋆^ agreeing with v′^ except possibly at xi: A |= ψ[v⋆].

for all xj ∈ Free(φ):

v⋆(xj) = v(xj) = v′(xj).

Let v+(xj) :=

{ v(xj) if j 6 = i v⋆(xj) if j = i Then v+^ agrees with v except possibly at xi.

Hence, by (⋆), A |= ψ[v+].

But v⋆(xj) = v+(xj) for all xj ∈ Free(ψ).

⇒ by IH, A |= ψ[v⋆] ¤

10.4 Corollary Let L be a language, α, β ∈ Form(L). Assume the variable xi has no free occurrence in α. Then

|= (∀xi(α → β) → (α → ∀xiβ)).

Proof: Let A be an L-structure and let v be an as- signment in A such that A |= ∀xi(α → β)[v] (⋆)

to show: A |= (α → ∀xiβ)[v].

So suppose A |= α[v] to show: A |= ∀xiβ[v].

So let v⋆^ be an assignment agreeing with v except possibly at xi. We want: A |= β[v⋆]

xi is not free in α ⇒ 10. 3 A |= α[v⋆] (⋆) ⇒ A |= (α → β)[v⋆]

⇒ A |= β[v⋆] ¤

10.6 Example Let L = {f, c} be a language, where f is a binary function symbol, and c is a constant symbol.

Consider the sentences (we write x, y, z instead of x 0 , x 1 , x 2 )

φ 1 : ∀x∀y∀zf (x, f (y, z)) =. f (f (x, y), z) φ 2 : ∀x∃y(f (x, y) =. c ∧ f (y, x) =. c) φ 3 : ∀x(f (x, c) =. x ∧ f (c, x) =. x)

and let φ = φ 1 ∧ φ 2 ∧ φ 3.

Let A =< A; ◦; e > be an L-structure (i.e. ◦ is an interpretation of f , and e is an interpreta- tion of c.)

Then A |= φ iff A is a group.

10.7 Example Let L = {E} be a language with E = P (^) i(2) a binary relation symbol. Consider

χ 1 : ∀xE(x, x) χ 2 : ∀x∀y(E(x, y) ↔ E(y, x)) χ 3 : ∀x∀y∀z(E(x, y) → (E(y, z) → E(x, z)))

Then for any L-structure < A; R >: < A; R >|= (χ 1 ∧ χ 2 ∧ χ 3 ) iff R is an equivalence relation on A.

Note: Most mathematical concepts can be captured by first-order formulas.