M384 · Logic · Supplement to Week 13

Closed Instances

What a closed instance of a formula is, why a formula with free variables is true exactly when all its closed instances are true, and how the proofs of Week 13 use this.

What this note covers

The note has explanations and worked examples only. Nothing in it is new material; it expands the first paragraph of Section 9 of the Week 13 notes.

1. The problem: truth is defined for sentences

Definition 12.23 says when a sentence is true in a structure \(\mathcal A\). A sentence has no free variables, so it makes a statement about \(\mathcal A\) that is either true or false.

A deduction contains formulas that are not sentences. Lines 3 and 5 of Example 13.8 are

\(P(x)\to Q(x)\qquad\text{and}\qquad P(x)\to\exists x\,Q(x).\)

The formula \(P(x)\to Q(x)\) does not say which object \(x\) is, so by itself it is neither true nor false in \(\mathcal A\). The Soundness Theorem says that every line of a deduction from \(\Gamma\) is true in every model of \(\Gamma\). To prove it, we must first say what "true in \(\mathcal A\)" means for such a line.

Definition 12.23 answers this in its last sentence: a formula with free variables \(x_1,\dots,x_n\) is true in \(\mathcal A\) when its universal closure \(\forall x_1\cdots\forall x_n\,\varphi\) is. Closed instances are this definition written out. In place of one sentence with \(n\) quantifiers in front, we look at many sentences without these quantifiers, and each of them can be handled with the truth table clauses.

2. The structure used in the examples

All examples use one signature and one structure. The signature has two unary relation symbols \(P\) and \(Q\), a binary relation symbol \(E\) and a unary function symbol \(f\). The structure \(\mathcal A\) is shown in Figure 1:

0 1 2 in P and in Q in Q, not in P in neither P nor Q
Figure 1. The structure \(\mathcal A\). An arrow from \(a\) to \(b\) means \((a,b)\in E^{\mathcal A}\). The function \(f^{\mathcal A}\) sends each element to the element its arrow points to.

As in Definition 12.23, every element \(a\) of the domain has a name \(\bar a\), a constant symbol whose value is \(a\). Here the names are \(\bar 0,\bar 1,\bar 2\). With names we can write sentences about particular elements:

3. Closed instances

Definition S.1: closed instance

Let \(\mathcal A\) be a structure and \(\varphi\) a formula whose free variables are \(x_1,\dots,x_n\). A closed instance of \(\varphi\) in \(\mathcal A\) is a sentence \[\varphi[\bar a_1/x_1,\dots,\bar a_n/x_n]\qquad\text{with }a_1,\dots,a_n\in A.\] It results from \(\varphi\) by choosing an element of the domain for each free variable and writing the name of that element in place of every free occurrence of the variable.

Three points of the definition are used all the time.

Example S.2: listing closed instances
(a) \(P(x)\to Q(x)\) has one free variable and three closed instances in \(\mathcal A\): \[P(\bar 0)\to Q(\bar 0),\qquad P(\bar 1)\to Q(\bar 1),\qquad P(\bar 2)\to Q(\bar 2).\] The sentence \(P(\bar 0)\to Q(\bar 1)\) is not a closed instance of this formula: the two occurrences of \(x\) received different names.
(b) \(E(x,y)\) has two free variables and \(3\cdot 3=9\) closed instances: \(E(\bar a,\bar b)\) for all \(a,b\in\{0,1,2\}\). The two variables are chosen independently, so \(E(\bar 1,\bar 1)\) is among them.
(c) \(\exists y\,E(x,y)\) has one free variable, \(x\). Its closed instances are \[\exists y\,E(\bar 0,y),\qquad\exists y\,E(\bar 1,y),\qquad\exists y\,E(\bar 2,y).\] The variable \(y\) is bound and stays.
(d) In \(P(x)\to\exists x\,Q(x)\), only the first occurrence of \(x\) is free. The closed instances are \[P(\bar 0)\to\exists x\,Q(x),\qquad P(\bar 1)\to\exists x\,Q(x),\qquad P(\bar 2)\to\exists x\,Q(x).\]
(e) A sentence, such as \(\forall x\,(P(x)\to Q(x))\), has no free variables. Nothing is replaced, and its only closed instance is the sentence itself.
(f) In a structure with an infinite domain a formula with a free variable has infinitely many closed instances. In \(\mathcal N\), the closed instances of \(x<x+1\) are the sentences \(\bar n<\bar n+1\), one for each natural number \(n\).

In a finite structure with \(k\) elements, a formula with \(n\) free variables has \(k^n\) closed instances. A closed instance is the formula together with a choice of one element for each free variable, written down as a sentence.

4. A formula is true when all its closed instances are true

Proposition S.3

Let \(\varphi\) be a formula and \(\mathcal A\) a structure. Then

\(\mathcal A\models\varphi\)  if and only if  every closed instance of \(\varphi\) in \(\mathcal A\) is true in \(\mathcal A\).

Proof. Let \(x_1,\dots,x_n\) be the free variables of \(\varphi\). By Definition 12.23, \(\mathcal A\models\varphi\) means \(\mathcal A\models\forall x_1\cdots\forall x_n\,\varphi\). By the clause for \(\forall\), this holds iff \(\mathcal A\models(\forall x_2\cdots\forall x_n\,\varphi)[\bar a_1/x_1]\) for every \(a_1\in A\). Applying the same clause to \(x_2\), then to \(x_3\), and so on, we arrive at: for all \(a_1,\dots,a_n\in A\), the sentence \(\varphi[\bar a_1/x_1]\cdots[\bar a_n/x_n]\) is true in \(\mathcal A\). A name contains no variables, so substituting the names one after the other gives the same sentence as substituting them all at once. These sentences are the closed instances of \(\varphi\). □

So the universal closure and the family of closed instances carry the same information. The universal closure is one sentence. The closed instances are many sentences, and each of them has the same connectives as \(\varphi\) itself.

Example S.4: deciding truth by instances
(a) Is \(P(x)\to Q(x)\) true in \(\mathcal A\)? Check the three closed instances.
\(a\)closed instance\(P(\bar a)\)\(Q(\bar a)\)instance
0\(P(\bar 0)\to Q(\bar 0)\)TTT
1\(P(\bar 1)\to Q(\bar 1)\)FTT
2\(P(\bar 2)\to Q(\bar 2)\)FFT
All three are true, so \(\mathcal A\models P(x)\to Q(x)\). This is the same computation as for the sentence \(\forall x\,(P(x)\to Q(x))\).
(b) Is \(Q(x)\to P(x)\) true in \(\mathcal A\)? The closed instance \(Q(\bar 1)\to P(\bar 1)\) is false, because \(1\in Q^{\mathcal A}\) and \(1\notin P^{\mathcal A}\). One false instance is enough: \(\mathcal A\not\models Q(x)\to P(x)\). The other two instances are true, and this does not help.
(c) Is \(E(x,f(x))\) true in \(\mathcal A\)? The closed instances are \(E(\bar 0,f(\bar 0))\), \(E(\bar 1,f(\bar 1))\) and \(E(\bar 2,f(\bar 2))\). The terms \(f(\bar 0)\), \(f(\bar 1)\), \(f(\bar 2)\) have the values \(1,2,0\), and the pairs \((0,1)\), \((1,2)\), \((2,0)\) are all in \(E^{\mathcal A}\). So \(\mathcal A\models E(x,f(x))\).
(d) Is \(E(x,y)\to\neg E(y,x)\) true in \(\mathcal A\)? There are nine closed instances \(E(\bar a,\bar b)\to\neg E(\bar b,\bar a)\).
\((a,b)\)\(E(\bar a,\bar b)\)\(E(\bar b,\bar a)\)\(E(\bar a,\bar b)\to\neg E(\bar b,\bar a)\)
\((0,1)\), \((1,2)\), \((2,0)\)TFT
\((1,0)\), \((2,1)\), \((0,2)\)FTT
\((0,0)\), \((1,1)\), \((2,2)\)FFT
All nine are true, so \(\mathcal A\models E(x,y)\to\neg E(y,x)\).
Warning: "not true" does not mean "the negation is true"

For a sentence \(\sigma\), exactly one of \(\mathcal A\models\sigma\) and \(\mathcal A\models\neg\sigma\) holds. For a formula with free variables this fails.

Take \(P(x)\). Its closed instances \(P(\bar 0)\), \(P(\bar 1)\), \(P(\bar 2)\) have the truth values T, F, F, so \(\mathcal A\not\models P(x)\). The closed instances of \(\neg P(x)\) have the truth values F, T, T, so \(\mathcal A\not\models\neg P(x)\) as well. Neither formula is true in \(\mathcal A\).

For the same reason \(\mathcal A\models P(x)\vee\neg P(x)\), although neither \(\mathcal A\models P(x)\) nor \(\mathcal A\models\neg P(x)\). The truth table clauses of Definition 12.23 are clauses for sentences. They apply to each closed instance separately, and they do not apply to a formula with free variables as a whole.

One half remains true: \(\mathcal A\models\varphi\) and \(\mathcal A\models\neg\varphi\) cannot both hold. The domain is not empty, so \(\varphi\) has at least one closed instance \(\varphi^*\), and \(\varphi^*\) and \(\neg\varphi^*\) would both be true sentences. This is the argument in the proof of Corollary 13.23(b).

This warning is the reason why the proofs of Week 13 work with closed instances. To use a truth table clause, we first pass to a single closed instance, which is a sentence.

5. Closed instances of compound formulas, and the notation \(\varphi^*\)

In the Week 13 proofs, \(\varphi^*\) stands for \(\varphi\) with names in place of free variables. A closed instance of a compound formula is built from instances of its parts, as follows.

Example S.5: how instances of the parts fit together
(a) Negation. A closed instance of \(\neg\varphi\) is \(\neg\varphi^*\), where \(\varphi^*\) is a closed instance of \(\varphi\).
(b) Implication. A closed instance of \(\varphi\to\psi\) is \(\varphi^*\to\psi^*\), where \(\varphi^*\) and \(\psi^*\) are closed instances of \(\varphi\) and \(\psi\) that use the same name for every variable the two formulas share. The same holds for \(\wedge\) and \(\vee\). For \(P(x)\to E(x,y)\), the sentence \(P(\bar 0)\to E(\bar 0,\bar 2)\) is a closed instance. The sentence \(P(\bar 0)\to E(\bar 1,\bar 2)\) is not, although \(P(\bar 0)\) and \(E(\bar 1,\bar 2)\) are closed instances of the two parts: the shared variable \(x\) was given two different names.
(c) Quantifiers. A closed instance of \(\forall x\,\varphi\) is \(\forall x\,\varphi^*\), where \(\varphi^*\) is \(\varphi\) with names in place of its free variables other than \(x\). The variable \(x\) is bound by the quantifier, so it gets no name. Here \(\varphi^*\) may still have the free variable \(x\), and the sentences \(\varphi^*[\bar a/x]\) are closed instances of \(\varphi\). For \(\forall x\,(E(x,y)\to\neg E(y,x))\) the closed instance with \(y\) replaced by \(\bar 1\) is \[\forall x\,(E(x,\bar 1)\to\neg E(\bar 1,x)),\] with \(\varphi^*=E(x,\bar 1)\to\neg E(\bar 1,x)\). The same holds for \(\exists x\,\varphi\).

Because a closed instance of \(\varphi\to\psi\) is again an implication, between two sentences, the truth table clause for \(\to\) applies to it. This is how Lemma 13.20 shows that the axioms (L1) to (L9) are true in every structure. For example,

\(P(x)\to(E(x,y)\to P(x))\)

is an instance of (L1). Its closed instance with \(\bar 2\) for \(x\) and \(\bar 0\) for \(y\) is \(P(\bar 2)\to(E(\bar 2,\bar 0)\to P(\bar 2))\). The sentence \(P(\bar 2)\) is false and \(E(\bar 2,\bar 0)\) is true, so the instance has the truth value of F \(\to\) (T \(\to\) F), which is T.

One true instance does not show that the formula is true in \(\mathcal A\). The formula has two free variables and nine closed instances, \(P(\bar a)\to(E(\bar a,\bar b)\to P(\bar a))\) for \(a,b\in\{0,1,2\}\), and all nine must be true. Here they can be treated together: each of the nine has the form \(\sigma\to(\tau\to\sigma)\) for two sentences \(\sigma,\tau\), and this form is true for all four combinations of truth values of \(\sigma\) and \(\tau\). So all nine are true, without computing them one by one.

6. Closed instances and substitution: the axiom (L10)

The axiom (L10) is \(\forall x\,\varphi\to\varphi[t/x]\), and the term \(t\) may contain variables. In a closed instance these variables are replaced by names, and \(t\) becomes a closed term \(t^*\). A closed instance of (L10) therefore has the form

\(\forall x\,\varphi^*\to\varphi^*[t^*/x].\)

Example S.6: a closed instance of (L10), step by step

Take \(\varphi:=E(x,f(x))\) and \(t:=f(z)\). The axiom is \[\forall x\,E(x,f(x))\to E(f(z),f(f(z))).\] It has one free variable, \(z\), so it has three closed instances in \(\mathcal A\), one for each element. To show that the axiom is true in \(\mathcal A\) we must show that all three are true. We go through one of them in detail and then list the other two. The closed instance with \(\bar 0\) for \(z\) is \[\forall x\,E(x,f(x))\to E(f(\bar 0),f(f(\bar 0))).\] Here \(\varphi^*\) is \(E(x,f(x))\), which had no free variable other than \(x\), and \(t^*\) is the closed term \(f(\bar 0)\). The consequent is \(\varphi^*[t^*/x]\). Why is this sentence true in \(\mathcal A\)?

  1. Suppose the antecedent is true: \(\mathcal A\models\forall x\,E(x,f(x))\). Then \(\mathcal A\models E(\bar a,f(\bar a))\) for every element \(a\).
  2. The closed term \(t^*=f(\bar 0)\) has a value in \(\mathcal A\), namely \(1\).
  3. Use step 1 for this element: \(\mathcal A\models E(\bar 1,f(\bar 1))\). This is \(\varphi^*[\bar 1/x]\).
  4. Lemma 13.19 says that a closed term and the name of its value can be exchanged without changing the truth value. So \(\varphi^*[f(\bar 0)/x]\), which is \(E(f(\bar 0),f(f(\bar 0)))\), is true as well.

Step 4 can be checked directly: \(f(\bar 0)\) has the value \(1\) and \(f(f(\bar 0))\) has the value \(2\), and \((1,2)\in E^{\mathcal A}\).

The element \(0\) played no special role. The same four steps work for the other two closed instances; only the closed term \(t^*\) and its value change.

name for \(z\)closed instance\(t^*\)value of \(t^*\)sentence used in step 3
\(\bar 0\)\(\forall x\,E(x,f(x))\to E(f(\bar 0),f(f(\bar 0)))\)\(f(\bar 0)\)\(1\)\(E(\bar 1,f(\bar 1))\)
\(\bar 1\)\(\forall x\,E(x,f(x))\to E(f(\bar 1),f(f(\bar 1)))\)\(f(\bar 1)\)\(2\)\(E(\bar 2,f(\bar 2))\)
\(\bar 2\)\(\forall x\,E(x,f(x))\to E(f(\bar 2),f(f(\bar 2)))\)\(f(\bar 2)\)\(0\)\(E(\bar 0,f(\bar 0))\)

All three closed instances are true, so the axiom is true in \(\mathcal A\) (Proposition S.3). In a proof we do not list the instances. We take an arbitrary closed instance, write \(t^*\) for its closed term and \(a\) for the value of \(t^*\), and carry out the four steps with \(a\) in place of \(1\). This is the proof of the case (L10) in Lemma 13.20; nothing in it depends on the particular formula, term or structure.

When \(\varphi\) has free variables other than \(x\), they receive names as well. For \(\varphi:=E(x,y)\) and \(t:=f(z)\) the axiom is \(\forall x\,E(x,y)\to E(f(z),y)\). Its closed instance with \(\bar 2\) for \(y\) and \(\bar 0\) for \(z\) is

\(\forall x\,E(x,\bar 2)\to E(f(\bar 0),\bar 2),\)

with \(\varphi^*=E(x,\bar 2)\) and \(t^*=f(\bar 0)\). There are nine closed instances, one for each choice of elements \(b\) for \(y\) and \(a\) for \(z\):

\(\forall x\,E(x,\bar b)\to E(f(\bar a),\bar b)\qquad(a,b\in\{0,1,2\}).\)

The axiom is true in \(\mathcal A\) only if all nine are true. The four steps of Example S.6 apply to each of them: if \(\forall x\,E(x,\bar b)\) is true, then \(E(\bar d,\bar b)\) is true for every element \(d\), in particular for the value \(d=f^{\mathcal A}(a)\) of the closed term \(f(\bar a)\), and by Lemma 13.19 \(E(f(\bar a),\bar b)\) is true. The argument does not depend on which \(a\) and \(b\) were chosen, so it covers all nine.

Example S.7: what the side condition of (L10) does

The side condition says that \(t\) is free for \(x\) in \(\varphi\): no variable of \(t\) is captured by a quantifier of \(\varphi\). Compare two formulas with \(\varphi:=\exists y\,E(x,y)\).

(a) \(t:=z\). The formula \(\forall x\,\exists y\,E(x,y)\to\exists y\,E(z,y)\) is an instance of (L10). The variable \(z\) is free in the consequent, so in a closed instance it receives a name: \[\forall x\,\exists y\,E(x,y)\to\exists y\,E(\bar a,y).\] The consequent is \(\varphi[\bar a/x]\), one of the sentences that the antecedent promises. There are three closed instances, for \(a=0,1,2\), and all three are true in \(\mathcal A\): the consequents \(\exists y\,E(\bar 0,y)\), \(\exists y\,E(\bar 1,y)\), \(\exists y\,E(\bar 2,y)\) are true, because \((0,1)\), \((1,2)\) and \((2,0)\) are in \(E^{\mathcal A}\).
(b) \(t:=y\). The formula \(\forall x\,\exists y\,E(x,y)\to\exists y\,E(y,y)\) is not an instance of (L10): \(y\) is not free for \(x\) in \(\exists y\,E(x,y)\). It is a sentence, so its only closed instance is the formula itself. The substituted \(y\) was captured by \(\exists y\) and is bound, so it receives no name. The consequent \(\exists y\,E(y,y)\) is therefore not of the form \(\varphi[\bar a/x]\) for any element \(a\), and the antecedent promises nothing about it.
In \(\mathcal A\) the antecedent is true, since every element has an arrow leaving it, and the consequent is false, since no element has an arrow to itself. The sentence in (b) is false in \(\mathcal A\).

In short: if \(t\) is free for \(x\) in \(\varphi\), the variables of \(t\) remain free in \(\varphi[t/x]\), a closed instance turns \(t\) into a closed term, and Lemma 13.19 applies. If \(t\) is not free for \(x\), a variable of \(t\) is bound in \(\varphi[t/x]\), and no closed instance turns \(t\) into a closed term. The axiom (L14) uses the same side condition for the same reason.

7. Closed instances and the two rules

Lemma 13.21 says that MP and Gen lead from formulas that are true in \(\mathcal A\) to formulas that are true in \(\mathcal A\). Both proofs start from a closed instance of the conclusion.

Example S.8: modus ponens, with a variable that disappears

Let \(\varphi:=E(y,f(y))\) and \(\psi:=\exists z\,E(x,z)\). Both \(\varphi\) and \(\varphi\to\psi\) are true in \(\mathcal A\). We show \(\mathcal A\models\psi\) in the way the proof of Lemma 13.21(a) does. The formula \(\psi\) has the free variable \(x\), so it has three closed instances, \[\exists z\,E(\bar 0,z),\qquad\exists z\,E(\bar 1,z),\qquad\exists z\,E(\bar 2,z),\] and we must show that all three are true.

  1. Let \(a\) be any of the elements \(0,1,2\), and let \(\psi^*=\exists z\,E(\bar a,z)\) be the corresponding closed instance of \(\psi\).
  2. We need a closed instance of \(\varphi\to\psi\) whose consequent is \(\psi^*\). The name for \(x\) is fixed: it is \(\bar a\). The formula \(\varphi\) has a free variable \(y\) that does not occur in \(\psi\), and it needs a name too. Any element will do; choose \(0\). The domain of a structure is not empty, so a choice is always possible.
  3. This gives the closed instance \(\varphi^*=E(\bar 0,f(\bar 0))\) of \(\varphi\) and the closed instance \(\varphi^*\to\psi^*=E(\bar 0,f(\bar 0))\to\exists z\,E(\bar a,z)\) of \(\varphi\to\psi\). Both are true, because all closed instances of \(\varphi\) and all closed instances of \(\varphi\to\psi\) are true.
  4. Now \(\varphi^*\) and \(\varphi^*\to\psi^*\) are true sentences, and the truth table clause for \(\to\) gives that \(\psi^*\) is true.

The element \(a\) was arbitrary, so the four steps have been carried out for each of the three closed instances of \(\psi\):

\(a\)\(\psi^*\), to be shown true\(\varphi^*\) (with \(0\) for \(y\))closed instance of \(\varphi\to\psi\) used
0\(\exists z\,E(\bar 0,z)\)\(E(\bar 0,f(\bar 0))\)\(E(\bar 0,f(\bar 0))\to\exists z\,E(\bar 0,z)\)
1\(\exists z\,E(\bar 1,z)\)\(E(\bar 0,f(\bar 0))\)\(E(\bar 0,f(\bar 0))\to\exists z\,E(\bar 1,z)\)
2\(\exists z\,E(\bar 2,z)\)\(E(\bar 0,f(\bar 0))\)\(E(\bar 0,f(\bar 0))\to\exists z\,E(\bar 2,z)\)

All three closed instances of \(\psi\) are true, so \(\mathcal A\models\psi\). Step 4 is modus ponens for sentences. Steps 1 to 3 arrange that we may use it, once for each closed instance of the conclusion.

Example S.9: generalization

Let \(\varphi:=E(x,y)\to\neg E(y,x)\). By Example S.4(d), \(\mathcal A\models\varphi\): all nine closed instances are true. Gen leads to \(\forall x\,\varphi\), a formula with the free variable \(y\). It has three closed instances, and we must show that all three are true. Let \(b\) be any of the elements \(0,1,2\). The closed instance with \(\bar b\) for \(y\) is \[\forall x\,(E(x,\bar b)\to\neg E(\bar b,x)).\] By the clause for \(\forall\), this sentence is true iff the three sentences \[E(\bar 0,\bar b)\to\neg E(\bar b,\bar 0),\qquad E(\bar 1,\bar b)\to\neg E(\bar b,\bar 1),\qquad E(\bar 2,\bar b)\to\neg E(\bar b,\bar 2)\] are true. These are closed instances of \(\varphi\), and all closed instances of \(\varphi\) are true. Since \(b\) was arbitrary, this covers all three closed instances of \(\forall x\,\varphi\):

\(b\)closed instance of \(\forall x\,\varphi\)closed instances of \(\varphi\) it needs (elements for \(x,y\))
0\(\forall x\,(E(x,\bar 0)\to\neg E(\bar 0,x))\)\((0,0)\), \((1,0)\), \((2,0)\)
1\(\forall x\,(E(x,\bar 1)\to\neg E(\bar 1,x))\)\((0,1)\), \((1,1)\), \((2,1)\)
2\(\forall x\,(E(x,\bar 2)\to\neg E(\bar 2,x))\)\((0,2)\), \((1,2)\), \((2,2)\)

Each of the nine closed instances of \(\varphi\) is used exactly once. So Gen does not produce new information: the nine instances of \(\varphi\) are grouped into three sentences that begin with \(\forall x\).

Gen needs all closed instances of \(\varphi\). From the single true sentence \(P(\bar 0)\) nothing follows about \(\forall x\,P(x)\), which is false in \(\mathcal A\).

8. A free variable in an assumption and in an antecedent

Example 13.13 shows that \(P(x)\vdash\forall x\,P(x)\), while \(\nvdash P(x)\to\forall x\,P(x)\). With closed instances the difference can be read off in \(\mathcal A\).

\(P(x)\) as an assumption\(P(x)\) as an antecedent
Statementif \(\mathcal A\models P(x)\), then \(\mathcal A\models\forall x\,P(x)\)\(\mathcal A\models P(x)\to\forall x\,P(x)\)
In terms of closed instancesif all of \(P(\bar 0),P(\bar 1),P(\bar 2)\) are true, then \(\forall x\,P(x)\) is trueeach of \(P(\bar 0)\to\forall x\,P(x)\), \(P(\bar 1)\to\forall x\,P(x)\), \(P(\bar 2)\to\forall x\,P(x)\) is true
In \(\mathcal A\)holds: \(P(\bar 1)\) is false, so \(P(x)\) is not true in \(\mathcal A\), and nothing is claimedfails: \(P(\bar 0)\to\forall x\,P(x)\) has a true antecedent and a false consequent

The left statement holds in every structure, by Lemma 13.21(b). An assumption with a free variable brings in all its closed instances together. In an implication, each closed instance has its own antecedent, which speaks about one element. This is what the condition of the Deduction Theorem (Theorem 13.14(b)) guards against: a Gen step on a variable that is free in the assumption treats the assumption in the first way, and the implication \(\varphi\to\psi\) would treat it in the second way.

9. A whole deduction, read in a structure

The proof of the Soundness Theorem shows that every line of a deduction from \(\Gamma\) is true in every model of \(\Gamma\). We follow this for the deduction of Example 13.8 and the structure \(\mathcal A\). The assumption \(\forall x\,(P(x)\to Q(x))\) is true in \(\mathcal A\) by Example S.4(a), so \(\mathcal A\) is a model of it.

The deduction, as in Example 13.8:

1\(\forall x\,(P(x) \to Q(x))\)(assump.)2\(\forall x\,(P(x) \to Q(x)) \to (P(x) \to Q(x))\)(L10)3\(P(x) \to Q(x)\)(1,2 MP)4\(Q(x) \to \exists x\,Q(x)\)(L14)5\(P(x) \to \exists x\,Q(x)\)(3,4 HS)6\(\forall x\,(P(x) \to \exists x\,Q(x))\)(5 Gen)7\(\forall x\,(P(x) \to \exists x\,Q(x)) \to (\exists x\,P(x) \to \exists x\,Q(x))\)(L15)8\(\exists x\,P(x) \to \exists x\,Q(x)\)(6,7 MP)

The table below goes through the same eight lines. For each line it lists the closed instances in \(\mathcal A\) and says why all of them are true.

LineFormulaClosed instances in \(\mathcal A\)Why they are all true
1\(\forall x\,(P(x)\to Q(x))\)itselfassumption; \(\mathcal A\) is a model of it
2\(\forall x\,(P(x)\to Q(x))\to(P(x)\to Q(x))\)\(\forall x\,(P(x)\to Q(x))\to(P(\bar a)\to Q(\bar a))\), for \(a=0,1,2\)axiom (L10), Lemma 13.20
3\(P(x)\to Q(x)\)\(P(\bar a)\to Q(\bar a)\), for \(a=0,1,2\)MP: for each \(a\), from line 1 and the instance of line 2 with the same \(a\)
4\(Q(x)\to\exists x\,Q(x)\)\(Q(\bar a)\to\exists x\,Q(x)\), for \(a=0,1,2\)axiom (L14), Lemma 13.20
5\(P(x)\to\exists x\,Q(x)\)\(P(\bar a)\to\exists x\,Q(x)\), for \(a=0,1,2\)from the instances of lines 3 and 4 with the same \(a\)
6\(\forall x\,(P(x)\to\exists x\,Q(x))\)itselfGen: true iff the three instances of line 5 are true
7\(\forall x\,(P(x)\to\exists x\,Q(x))\to(\exists x\,P(x)\to\exists x\,Q(x))\)itselfaxiom (L15), Lemma 13.20
8\(\exists x\,P(x)\to\exists x\,Q(x)\)itselfMP from lines 6 and 7

Lines 2 to 5 have the free variable \(x\). Each of them stands for three sentences, and the steps from line to line are carried out for each element \(a\) separately, always with the same \(a\) on the lines involved. This is the precise form of the remark after Example 13.4 that the free variable plays the role of an arbitrary element. On line 6, Gen collects the three sentences of line 5 into one sentence. Lines 1, 6, 7 and 8 are sentences, and each is its own closed instance.

The truth values can be checked directly. In \(\mathcal A\) the sentence \(\exists x\,Q(x)\) is true, because \(Q(\bar 0)\) is true, so all instances on lines 4 and 5 have a true consequent. On line 8, \(\exists x\,P(x)\) and \(\exists x\,Q(x)\) are both true.