Todos los libros

Profesional

Apps Acerca de Coach Iniciar sesión Empezar a leer

Computer Science · Glosario

¿Qué es Free variable, bound variable, scope?

También llamado: scope (quantifier) · bound variable · free variable · sentence (logic)

Definition 24.3 University Computer Science — Year 2 · Capítulo 24 — Predicate Logic and Formal Proofs

In ∀x A\forall x\, A and ∃x A\exists x\, A, the formula AA is the scope of the quantifier. An occurrence of xx is bound if it lies in the scope of a quantifier on xx, and then it is bound by the nearest such quantifier above it in the tree; otherwise it is free. The free variables of a formula are those with a free occurrence; a formula without any is a sentence.

The tree of x\, (R(x, y) x\, P(x)). A dashed arrow joins each bound occurrence to the quantifier that binds it: the nearest one above it on its own variable. The circled y is free.
The tree of ∀x (R(x,y)→∃x P(x))\forall x\, (R(x, y) \to \exists x\, P(x)). A dashed arrow joins each bound occurrence to the quantifier that binds it: the nearest one above it on its own variable. The circled yy is free.

Ejemplos

Example 24.12 (A universal from two universals)

From ∀x (P(x)→Q(x))\forall x\, (P(x) \to Q(x)) and ∀x P(x)\forall x\, P(x) follows ∀x Q(x)\forall x\, Q(x). With Γ\Gamma the two hypotheses, both sentences, the variable yy is free in none of them, and ∀\foralli applies:

 Γ⊢∀x (P(x)→Q(x)) hypΓ⊢P(y)→Q(y) ∀e Γ⊢∀x P(x) hypΓ⊢P(y) ∀eΓ⊢Q(y) →eΓ⊢∀x Q(x) ∀i{\dfrac{{\dfrac{{\dfrac{{\dfrac{\ }{\Gamma \vdash \forall x\, (P(x) \to Q(x))}\,\scriptstyle\text{hyp}}}{\Gamma \vdash P(y) \to Q(y)}\,\scriptstyle\text{$\forall$e}} \qquad {\dfrac{{\dfrac{\ }{\Gamma \vdash \forall x\, P(x)}\,\scriptstyle\text{hyp}}}{\Gamma \vdash P(y)}\,\scriptstyle\text{$\forall$e}}}{\Gamma \vdash Q(y)}\,\scriptstyle\text{$\to$e}}}{\Gamma \vdash \forall x\, Q(x)}\,\scriptstyle\text{$\forall$i}}

Leer en el capítulo →