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.
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.
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.
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:
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:
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.
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.
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.
| \(a\) | closed instance | \(P(\bar a)\) | \(Q(\bar a)\) | instance |
|---|---|---|---|---|
| 0 | \(P(\bar 0)\to Q(\bar 0)\) | T | T | T |
| 1 | \(P(\bar 1)\to Q(\bar 1)\) | F | T | T |
| 2 | \(P(\bar 2)\to Q(\bar 2)\) | F | F | T |
| \((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)\) | T | F | T |
| \((1,0)\), \((2,1)\), \((0,2)\) | F | T | T |
| \((0,0)\), \((1,1)\), \((2,2)\) | F | F | T |
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.
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.
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.
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].\)
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\)?
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.
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)\).
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.
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.
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.
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.
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\).
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 | |
|---|---|---|
| Statement | if \(\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 instances | if all of \(P(\bar 0),P(\bar 1),P(\bar 2)\) are true, then \(\forall x\,P(x)\) is true | each 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 claimed | fails: \(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.
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:
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.
| Line | Formula | Closed instances in \(\mathcal A\) | Why they are all true |
|---|---|---|---|
| 1 | \(\forall x\,(P(x)\to Q(x))\) | itself | assumption; \(\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))\) | itself | Gen: 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))\) | itself | axiom (L15), Lemma 13.20 |
| 8 | \(\exists x\,P(x)\to\exists x\,Q(x)\) | itself | MP 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.