Reading preferences

Optional display controls need JavaScript. All reading content and navigation work without it.

How to use Read

This page follows Semantics of First-Order Logic in source order. Equations are native, unflattened MathML, and every source coordinate is available offline.

Introduction

Giving the meaning of expressions is the domain of semantics. The central concept in semantics is that of satisfaction in a structure. A structure gives meaning to the building blocks of the language: a domain is a non-empty set of objects. The quantifiers are interpreted as ranging over this domain, constants are assigned elements in the domain, functions are assigned functions from the domain to itself, and predicates are assigned relations on the domain. The domain together with assignments to the basic vocabulary constitutes a structure. Variables may appear in formulas, and in order to give a semantics, we also have to assign elements of the domain to them—this is a variable assignment. The satisfaction relation, finally, brings these together. A formula may be satisfied in a structure Msource 26 relative to a variable assignment ssource 26, written as M,sAsource 27. This relation is also defined by induction on the structure of Asource 28, using the truth tables for the logical connectives to define, say, satisfaction of (AB)source 29 in terms of satisfaction (or not) of Asource 30 and Bsource 30. It then turns out that the variable assignment is irrelevant if the formula Asource 31 is a sentence, i.e., has no free variables, and so we can talk of sentences being simply satisfied (or not) in structures.

On the basis of the satisfaction relation MAsource 35 for sentences we can then define the basic semantic notions of validity, entailment, and satisfiability. A sentence is valid, Asource 37, if every structure satisfies it. It is entailed by a set of sentences, ΓAsource 39, if every structure that satisfies all the sentences in Γsource 40 also satisfies Asource 40. And a set of sentences is satisfiable if some structure satisfies all sentences in it at the same time. Because formulas are inductively defined, and satisfaction is in turn defined by induction on the structure of formulas, we can use induction to prove properties of our semantics and to relate the semantic notions defined.

structure for First-order Languages

Definition of a first-order structure

Source title: Structures.

A structure Msource 29, for a language Lsource 30 of first-order logic consists of the following elements:

  1. Domain: a non-empty set, |M|source 32

  2. Interpretation of constants: for each constant csource 33 of Lsource 34, a element cM|M|source 34

  3. Interpretation of predicates: for each nsource 35-place predicate Rsource 36 of Lsource 36 (other than =source 36), an nsource 36-place relation RM|M|nsource 37

  4. Interpretation of functions: for each nsource 38-place function fsource 39 of Lsource 39, an nsource 39-place function fM:|M|n|M|source 39

source 28

Standard arithmetic structure

A structure Msource 45 for the language of arithmetic consists of a set, an element of |M|source 46, 0Msource 46, as interpretation of the constant 0source 47, a one-place function M:|M||M|source 48, two two-place functions +Msource 49 and ×Msource 49, both |M|2|M|source 50, and a two-place relation <M|M|2source 51.

An obvious example of such a structure is the following:

  1. |N|=source 55

  2. 0N=0source 56

  3. N(n)=n+1source 57 for all nsource 57

  4. +N(n,m)=n+msource 58 for all n,msource 58

  5. ×N(n,m)=n·msource 59 for all n,msource 59

  6. <N={n,m:n,m,n<m}source 60

The structure Nsource 63 for LAsource 63 so defined is called the standard model of arithmetic, because it interprets the non-logical constants of LAsource 65 exactly how you would expect.

However, there are many other possible structures for LAsource 67. For instance, we might take as the domain the set source 68 of integers instead of source 69, and define the interpretations of 0source 69, source 70, +source 70, ×source 70, <source 70 accordingly. But we can also define structures for LAsource 71 which have nothing even remotely to do with numbers.

source 44

Structures for set theory

A structure Msource 76 for the language LZsource 76 of set theory requires just a set and a single two-place relation. (Reader correction TR017-SOURCE-PROSE-001: a structure for the set-theory language requires a set and a single two-place relation). So technically, e.g., the set of people plus the relation “xsource 78 is older than ysource 78” could be used as a structure for LZsource 79, as well as source 79 together with nmsource 80 for n,msource 80.

A particularly interesting structure for LZsource 82 in which the elements of the domain are actually sets, and the interpretation of source 84 actually is the relation “xsource 84 is a element of ysource 84” is the structure HFsource 85 of hereditarily finite sets:

  1. |HF|=()(())((()))source 87;

  2. HF={x,y:x,y|HF|,xy}source 89.

source 75

Covered structure for First-order Languages

Value of a closed term

Source title: Value of closed terms.

If tsource 18 is a closed term of the language Lsource 18 and Msource 18 is a structure for Lsource 19, the value ValM(t)source 19 is defined as follows:

  1. If tsource 22 is just the constant csource 22, then ValM(c)=cMsource 22.

  2. If tsource 23 is of the form f(t1,,tn)source 23, then ValM(t)=fM(ValM(t1),,ValM(tn)).source 24

source 17

Definition of a covered structure

Source title: Covered structure.

A structure is covered if every element of the domain is the value of some closed term.

source 31

Covered arithmetic example

Let Lsource 37 be the language with constants zerosource 37, onesource 38, twosource 38, …, the binary predicate <source 38, and the binary functions +source 39 and ×source 39. Then a structure Msource 39 for Lsource 40 is the one with domain |M|={0,1,2,}source 40 and assignments zeroM=0source 41, oneM=1source 42, twoM=2source 42, and so forth. For the binary relation symbol <source 43, the set <Msource 43 is the set of all pairs c1,c2|M|2source 44 such that c1source 45 is less than c2source 45: for example, 1,3<Msource 45 but 2,2<Msource 46. For the binary function +source 47, define +Msource 47 in the usual way—for example, +M(2,3)source 48 maps to 5source 48, and similarly for the binary function ×source 49. Hence, the value of foursource 49 is just 4source 50, and the value of ×(two,+(three,zero))source 50 (or in infix notation, two×(three+zero)source 51) is Evaluation of a compound closed term ValM(×(two,+(three,zero)))==×M(ValM(two),ValM(+(three,zero)))=×M(ValM(two),+M(ValM(three),ValM(zero)))=×M(twoM,+M(threeM,zeroM))=×M(2,+M(3,0))=×M(2,3)=6source 53

source 36

Exercise on coveredness

Unsolved exercise. The source supplies the prompt only; no solution is added.

Is Nsource 69, the standard model of arithmetic, covered? Explain.

source 68

Satisfaction of a formula in a structure

Definition of a variable assignment

Source title: Variable Assignment.

A variable assignment ssource 42 for a structure Msource 42 is a function which maps each variable to a element of |M|source 43, i.e., s:Var|M|source 44.

source 41

Value of a term under an assignment

Source title: Value of Terms.

If tsource 59 is a term of the language Lsource 59, Msource 59 is a structure for Lsource 60, and ssource 60 is a variable assignment for Msource 61, the value ValsM(t)source 61 is defined as follows:

  1. Case: t is the constant c. ValsM(t)=cM.source 64.

  2. Case: t is the variable x. ValsM(t)=s(x).source 65.

  3. Case: t is the compound term f applied to t sub one through t sub n. ValsM(t)=fM(ValsM(t1),,ValsM(tn)).source 67

source 58

Definition of an x variant

Source title: xsource 74-Variant.

If ssource 75 is a variable assignment for a structure Msource 75, then any variable assignment s'source 76 for Msource 76 which differs from ssource 76 at most in what it assigns to xsource 77 is called an xsource 77-variant of ssource 77. If s'source 78 is an xsource 78-variant of ssource 78 we write s'xssource 78.

source 74

Definition of assignment update

If ssource 88 is a variable assignment for a structure Msource 88 and m|M|source 89, then the assignment s[m/x]source 89 is the variable assignment defined by s[m/x](y)=mif yxs(y)otherwise.source 91

source 87

In other words, s[m/x]source 97 is the particular xsource 97-variant of ssource 97 which assigns the domain element msource 98 to xsource 98, and assigns the same things to variables other than xsource 99 that ssource 99 does.

Recursive definition of satisfaction

Source title: Satisfaction.

Satisfaction of a formula Asource 103 in a structure Msource 103 relative to a variable assignment ssource 104, in symbols: M,sAsource 105, is defined recursively as follows. (We write M,sAsource 106 to mean “not M,sAsource 106.”)

  1. Case: A is falsity. M,sAsource 109.

  2. Case: A is the atomic formula R applied to t sub one through t sub n. M,sAsource 114 iff ValsM(t1),,ValsM(tn)RMsource 115.

  3. Case: A is the identity t sub one equals t sub two. M,sAsource 118 iff ValsM(t1)=ValsM(t2)source 119.

  4. Case: A is the negation of B. M,sAsource 122 iff M,sBsource 123.

  5. Case: A is the conjunction of B and C. M,sAsource 126 iff M,sBsource 126 and M,sCsource 127.

  6. Case: A is the disjunction of B and C. M,sAsource 130 iff M,sBsource 131 or M,sCsource 131 (or both).

  7. Case: A is the conditional from B to C. M,sAsource 134 iff M,sBsource 134 or M,sCsource 135 (or both).

  8. Case: A is for every x, B. M,sAsource 143 iff for every element m|M|source 144, M,s[m/x]Bsource 144.

  9. Case: A is there exists x, B. M,sAsource 147 iff for at least one element m|M|source 148, M,s[m/x]Bsource 148.

source 101

Worked satisfaction model

Let L={a,b,f,R}source 180 where asource 180 and bsource 180 are constants, fsource 181 is a two-place function, and Rsource 181 is a two-place predicate. Consider the structure Msource 182 defined by:

  1. |M|={1,2,3,4}source 184

  2. aM=1source 185

  3. bM=2source 186

  4. fM(x,y)=x+ysource 187 if x+y3source 187 and fM(x,y)=3source 187 Reader correction: The source writes only equals three after already naming the interpreted function value in the same sentence. The reader repeats f superscript M of x comma y so the isolated occurrence has its actual left-hand side. otherwise.

  5. RM={1,1,1,2,2,3,2,4}source 188

The function s(x)=1source 190 that assigns 1|M|source 190 to every variable is a variable assignment for Msource 191.

Then Worked term-value calculation ValsM(f(a,b))=fM(ValsM(a),ValsM(b)).Since a and b are !!constants, ValsM(a)=aM=1 and ValsM(b)=bM=2. SoValsM(f(a,b))=fM(1,2)=1+2=3.To compute the value of f(f(a,b),a) we have to considerValsM(f(f(a,b),a))=fM(ValsM(f(a,b)),ValsM(a))=fM(3,1)=3,since 3+1>3. Since s(x)=1 and ValsM(x)=s(x), we also haveValsM(f(f(a,b),x))=fM(ValsM(f(a,b)),ValsM(x))=fM(3,1)=3,source 194

An atomic formula R(t1,t2)source 208 is satisfied if the tuple of values of its arguments, i.e., ValsM(t1),ValsM(t2)source 209, is a element of RMsource 210. So, e.g., we have M,sR(b,f(a,b))source 211 since ValM(b),ValM(f(a,b))=2,3RMsource 211, but M,sR(x,f(a,b))source 213 since 1,3RMsource 213 Reader correction: The source appends the assignment marker s to the interpreted relation rather than to a satisfaction statement. The reader omits that stray assignment marker..

To determine if a non-atomic formula Asource 215 is satisfied, you apply the clauses in the inductive definition that applies to the main connective. For instance, the main connective in R(a,a)(R(b,x)R(x,b))source 217 is the source 218, and Worked conditional satisfaction calculation M,sR(a,a)(R(b,x)R(x,b)) iff M,sR(a,a) or M,sR(b,x)R(x,b)Since M,sR(a,a) (because 1,1RM) we can't yet determine the answer and must first figure out if M,sR(b,x)R(x,b):M,sR(b,x)R(x,b) iff M,sR(b,x) or M,sR(x,b)And this is the case, since M,sR(x,b) (because 1,2RM).source 219

Recall that an xsource 232-variant of ssource 232 is a variable assignment that differs from ssource 233 at most in what it assigns to xsource 233. For every element of |M|source 234, there is an xsource 234-variant of ssource 234: Four x variants of an assignment s1=s[1/x],s2=s[2/x],s3=s[3/x],s4=s[4/x].source 235 So, e.g., s2(x)=2source 241 and s2(y)=s(y)=1source 241 for all variables ysource 241 other than xsource 242. These are all the xsource 242-variants of ssource 242 for the structure Msource 243, since |M|={1,2,3,4}source 243. Note, in particular, that s1=ssource 244 (ssource 244 is always an xsource 244-variant of itself).

To determine if an existentially quantified formula xA(x)source 247 is satisfied, we have to determine if M,s[m/x]A(x)source 248 for at least one m|M|source 248. So, M,sx(R(b,x)R(x,b)),source 250 since M,s[1/x]R(b,x)R(x,b)source 253 (s[3/x]source 254 would also fit the bill). But, M,sx(R(b,x)R(x,b))source 255 since, whichever m|M|source 258 we pick, M,s[m/x]R(b,x)R(x,b)source 258.

To determine if a universally quantified formula xA(x)source 261 is satisfied, we have to determine if M,s[m/x]A(x)source 262 for all m|M|source 262. So, M,sx(R(x,a)R(a,x)),source 263 since M,s[m/x]R(x,a)R(a,x)source 266 for all m|M|source 266. For m=1source 267, we have M,s[1/x]R(a,x)source 267 so the consequent is true; for m=2source 268, 3source 268, and 4source 268, we have M,s[m/x]R(x,a)source 269, so the antecedent is false. But, M,sx(R(a,x)R(x,a))source 271 since M,s[2/x]R(a,x)R(x,a)source 274 (because M,s[2/x]R(a,x)source 275 and M,s[2/x]R(x,a)source 275).

For a more complicated case, consider x(R(a,x)yR(x,y)).source 325 Since M,s[3/x]R(a,x)source 328 and M,s[4/x]R(a,x)source 329, the interesting cases where we have to worry about the consequent of the conditional are only m=1source 330 and m=2source 331 Reader correction: The source omits m from the second case in the phrase 'm equals one and m equals two.' The reader supplies m before equals two.. Does M,s[1/x]yR(x,y)source 331 hold? It does if there is at least one n|M|source 332 so that M,s[1/x][n/y]R(x,y)source 333. In fact, if we take n=1source 334, we have s[1/x][n/y]=s[1/y]=ssource 334. Since s(x)=1source 335, s(y)=1source 335, and 1,1RMsource 335, the answer is yes.

To determine if M,s[2/x]yR(x,y)source 338, we have to look at the variable assignments s[2/x][n/y]source 340. Here, for n=1source 340, this assignment is s2=s[2/x]source 341, which does not satisfy R(x,y)source 341 (s2(x)=2source 341, s2(y)=1source 342, and 2,1RMsource 342). However, consider s[2/x][3/y]=s2[3/y]source 343. M,s2[3/y]R(x,y)source 344 since 2,3RMsource 344, and so M,s2yR(x,y)source 345.

So, for all n|M|source 347 (Reader correction TR017-SOURCE-PROSE-002: for every m in the domain of M, either the antecedent fails or the existential consequent holds), either M,s[m/x]R(a,x)source 348 (if m=3source 348, 4source 348) or M,s[m/x]yR(x,y)source 349 (if m=1source 349, 2source 349), and so M,sx(R(a,x)yR(x,y)).source 350 On the other hand, M,sx(R(a,x)yR(x,y)).source 354 We have M,s[m/x]R(a,x)source 357 only for m=1source 357 and m=2source 357. But for both of these values of msource 358, there is in turn an n|M|source 358, namely n=4source 359, so that M,s[m/x][n/y]R(x,y)source 360 and so M,s[m/x]yR(x,y)source 361 for m=1source 361 and m=2source 361. In sum, there is no m|M|source 362 such that M,s[m/x]R(a,x)yR(x,y)source 362.

source 179

Exercise on a finite structure

Unsolved exercise. The source supplies the prompt only; no solution is added.

Let L={c,f,A}source 401 with one constant, one one-place function and one two-place predicate, and let the structure Msource 403 be given by

  1. |M|={1,2,3}source 405

  2. cM=3source 406

  3. fM(1)=2,fM(2)=3,fM(3)=2source 407

  4. AM={1,2,2,3,3,3}source 408

(a) Let s(v)=1source 410 for all variables vsource 410. Find out whether M,sx(A(f(z),c)y(A(y,x)A(f(y),x)))source 411 Explain why or why not.

(b) Give a different structure and variable assignment in which the formula is not satisfied.

source 400

Variable Assignments

Term-value independence proposition

If the variables in a term tsource 30 are among x1source 30, …, xnsource 30, and s1(xi)=s2(xi)source 31 for i=1source 31, …, nsource 31, then Vals1M(t)=Vals2M(t)source 31.

source 29

Proof

By induction on the complexity of tsource 36. For the base case, tsource 36 can be a constant or one of the variables x1source 37, …, xnsource 37. If t=csource 37, then Vals1M(t)=cM=Vals2M(t)source 38. If t=xisource 39, s1(xi)=s2(xi)source 39 by the hypothesis of the proposition, and so Vals1M(t)=s1(xi)=s2(xi)=Vals2M(t)source 40.

For the inductive step, assume that t=f(t1,,tk)source 42 and that the claim holds for t1source 43, …, tksource 43. Then Compound-term independence step Vals1M(t)=Vals1M(f(t1,,tk))=fM(Vals1M(t1),,Vals1M(tk)).For j=1, , k, the !!variables of tj are among x1, , xn. By the induction hypothesis, Vals1M(tj)=Vals2M(tj). So,Vals1M(t)=Vals1M(f(t1,,tk))=fM(Vals1M(t1),,Vals1M(tk))=fM(Vals2M(t1),,Vals2M(tk))=Vals2M(f(t1,,tk))=Vals2M(t).source 44

End of proof.

Satisfaction independence proposition

If the free variables in Asource 58 are among x1source 58, …, xnsource 58, and s1(xi)=s2(xi)source 59 for i=1source 59, …, nsource 59, then M,s1Asource 59 iff M,s2Asource 60.

source 57

Proof

We use induction on the complexity of Asource 64. For the base case, where Asource 65 is atomic, Asource 65 can be:

source 67, R(t1,,tk)source 68 for a ksource 68-place predicate Rsource 68 and terms t1source 69, …, tksource 69, or t1=t2source 69 for terms t1source 69 and t2source 69. In the latter two cases, we only demonstrate the forward direction of the biconditional, since the proof of the reverse is symmetrical.

  1. Case: A is falsity. both M,s1Asource 79 and M,s2Asource 80.

  2. Case: A is the atomic formula R applied to t sub one through t sub k. let M,s1Asource 84. Then Vals1M(t1),,Vals1M(tk)RM.source 85 For i=1source 89, …, ksource 89, Vals1M(ti)=Vals2M(ti)source 89 by Term-value independence proposition. So we also have Vals2M(t1),,Vals2M(tk)RMsource 91 Reader correction: The source starts the argument-value tuple with t sub i although the displayed sequence runs from the first through the k-th term. The reader uses t sub one., and hence M,s2Asource 92.

  3. Case: A is the identity t sub one equals t sub two. suppose M,s1Asource 94. Then Vals1M(t1)=Vals1M(t2)source 95. So, Identity case for satisfaction independence Vals2M(t1)=Vals1M(t1)(by cited result)=Vals1M(t2)(since M,s1t1=t2)=Vals2M(t2)(by cited result),source 96 Cited results: Term-value independence proposition and Term-value independence proposition. so M,s2t1=t2source 104.

Now assume M,s1Bsource 107 iff M,s2Bsource 107 for all formulas Bsource 108 less complex than Asource 108. The induction step proceeds by cases determined by the main operator of Asource 109. In each case, we only demonstrate the forward direction of the biconditional; the proof of the reverse direction is symmetrical. In all cases except those for the quantifiers, we apply the induction hypothesis to sub-formulas Bsource 113 of Asource 113. The free variables of Bsource 113 are among those of Asource 114. Thus, if s1source 114 and s2source 114 agree on the free variables of Asource 115, they also agree on those of Bsource 115, and the induction hypothesis applies to Bsource 116.

  1. Case: A is the negation of B. if M,s1Asource 122, then M,s1Bsource 123, so by the induction hypothesis, M,s2Bsource 124, hence M,s2Asource 124.

  2. Case: A is the disjunction of B and C. if M,s1Asource 137, then M,s1Bsource 138 or M,s1Csource 138. By induction hypothesis, M,s2Bsource 139 or M,s2Csource 139, so M,s2Asource 139.

  3. Case: A is there exists x, B. if M,s1Asource 160, there is an m|M|source 161 so that M,s1[m/x]Bsource 161. Let s1'=s1[m/x]source 162 and s2'=s2[m/x]source 162. The free variables of Bsource 163 are among x1source 163, …, xnsource 164, and xsource 164. s1'(xi)=s2'(xi)source 164, since s1'source 164 and s2'source 165 are xsource 165-variants of s1source 165 and s2source 165, respectively, and by hypothesis s1(xi)=s2(xi)source 166. s1'(x)=s2'(x)=msource 166 by the way we have defined s1'source 167 and s2'source 167. Then the induction hypothesis applies to Bsource 168 and s1'source 168, s2'source 168, so M,s2'Bsource 169. Hence, since s2'=s2[m/x]source 169, there is an m|M|source 170 such that M,s2[m/x]Bsource 171, and so M,s2Asource 172.

By induction, we get that M,s1Asource 193 iff M,s2Asource 193 whenever the free variables in Asource 194 are among x1source 194, …, xnsource 194 and s1(xi)=s2(xi)source 195 for i=1source 195, …, nsource 195.

End of proof.

Exercise completing satisfaction independence

Unsolved exercise. The source supplies the prompt only; no solution is added.

Complete the proof of Satisfaction independence proposition.

source 198

Sentence satisfaction is assignment-independent

If Asource 215 is a sentence and ssource 215 a variable assignment, then M,sAsource 216 iff M,s'Asource 216 for every variable assignment s'source 217.

source 213

Proof

Let s'source 221 be any variable assignment. Since Asource 221 is a sentence, it has no free variables, and so every variable assignment s'source 222 trivially assigns the same things to all free variables of Asource 223 as does ssource 224. So the condition of Satisfaction independence proposition is satisfied, and we have M,sAsource 225 iff M,s'Asource 225.

End of proof.

Definition of satisfaction for a sentence

If Asource 230 is a sentence, we say that a structure Msource 230 satisfies Asource 231, MAsource 231, iff M,sAsource 231 for all variable assignments ssource 232.

source 228

If MAsource 235, we also simply say that Asource 235 is true in Msource 236. The notion of satisfaction naturally extends from individual sentences to sets of sentences.

Definition of satisfaction for a set

If Γsource 241 is a set of sentences Γsource 241 (Reader correction TR017-SOURCE-PROSE-003: If Gamma is a set of sentences, we say that), we say that a structure Msource 242 satisfies Γsource 242, MΓsource 243, iff MAsource 243 for all AΓsource 243.

source 239

Sentence satisfaction equivalence

Let Msource 247 be a structure, Asource 247 be a sentence, and ssource 247 a variable assignment. MAsource 248 iff M,sAsource 248.

source 246

Proof

Exercise.

End of proof.

Exercise on sentence satisfaction

Unsolved exercise. The source supplies the prompt only; no solution is added.

Prove Sentence satisfaction equivalence

source 255

Quantifier satisfaction by assignments

Suppose A(x)source 260 only contains xsource 260 free, and Msource 260 is a structure. Then:

  1. MxA(x)source 263 iff M,sA(x)source 263 for at least one variable assignment ssource 264.

  2. MxA(x)source 265 iff M,sA(x)source 265 for all variable assignments ssource 266.

source 259

Proof

Exercise.

End of proof.

Exercise on quantified satisfaction

Unsolved exercise. The source supplies the prompt only; no solution is added.

Prove Quantifier satisfaction by assignments.

source 274

Exercise defining truth without assignments

Unsolved exercise. The source supplies the prompt only; no solution is added.

Suppose Lsource 280 is a language without functions. Given a structure Msource 281, csource 281 a constant and a|M|source 281, define M[a/c]source 282 to be the structure that is just like Msource 283, except that cM[a/c]=asource 283. Define MAsource 284 for sentences Asource 284 by:

  1. Case: A is falsity. not MAsource 287.

  2. Case: A is the atomic sentence R applied to d sub one through d sub n. MAsource 292 iff d1M,,dnMRMsource 293.

  3. Case: A is the identity d sub one equals d sub two. MAsource 296 iff d1M=d2Msource 297.

  4. Case: A is the negation of B. MAsource 300 iff not MBsource 301.

  5. Case: A is the conjunction of B and C. MAsource 304 iff MBsource 305 and MCsource 305.

  6. Case: A is the disjunction of B and C. MAsource 308 iff MBsource 309 or MCsource 309 (or both).

  7. Case: A is the conditional from B to C. MAsource 312 iff not MBsource 313 or MCsource 313 (or both).

  8. Case: A is for every x, B. MAsource 321 iff for all a|M|source 322, M[a/c]B[c/x]source 322, if csource 323 does not occur in Bsource 323.

  9. Case: A is there exists x, B. MAsource 326 iff there is an a|M|source 327 such that M[a/c]B[c/x]source 328, if csource 328 does not occur in Bsource 329.

Let x1source 331, …, xnsource 331 be all free variables in Asource 331, c1source 332, …, cnsource 332 constant symbols not in Asource 332, a1source 333, …, an|M|source 333, and s(xi)=aisource 333.

Show that M,sAsource 335 iff M[a1/c1,,an/cn]A[c1/x1][cn/xn]source 335.

(This problem shows that it is possible to give a semantics for first-order logic that makes do without variable assignments.)

source 278

Exercise on Skolem normal form

Unsolved exercise. The source supplies the prompt only; no solution is added.

Suppose that fsource 343 is a function symbol not in A(x,y)source 343. Show that there is a structure Msource 344 such that MxyA(x,y)source 345 iff there is an M'source 345 such that M'xA(x,f(x))source 346.

(This problem is a special case of what's known as Skolem's Theorem; xA(x,f(x))source 349 is called a Skolem normal form of xyA(x,y)source 350.)

source 342

Extensionality

Extensionality proposition

Source title: Extensionality.

Let Asource 30 be a formula, and M1source 30 and M2source 30 be structures with |M1|=|M2|source 31, and ssource 31 a variable assignment on |M1|=|M2|source 32. If cM1=cM2source 33, RM1=RM2source 33, and fM1=fM2source 34 for every constant csource 34, relation symbol Rsource 35, and function fsource 35 occurring in Asource 35, then M1,sAsource 36 iff M2,sAsource 36.

source 28

Proof

First prove (by induction on tsource 40) that for every term, ValsM1(t)=ValsM2(t)source 41. Then prove the proposition by induction on Asource 42, making use of the claim just proved for the induction basis (where Asource 43 is atomic).

End of proof.

Exercise on extensionality

Unsolved exercise. The source supplies the prompt only; no solution is added.

Carry out the proof of Extensionality proposition in detail.

source 46

Extensionality for sentences

Source title: Extensionality for Sentences.

Let Asource 53 be a sentence and M1source 53, M2source 53 as in Extensionality proposition. Then M1Asource 54 iff M2Asource 54.

source 51

Proof

Follows from Extensionality proposition by Sentence satisfaction is assignment-independent.

End of proof.

Moreover, the value of a term, and whether or not a structure satisfies a formula, only depend on the values of its subterms.

Substitution lemma for term values

Let Msource 65 be a structure, tsource 65 and t'source 65 terms, and ssource 65 a variable assignment. Then ValsM(t[t'/x])=Vals[ValsM(t')/x]M(t)source 66.

source 64

Proof

By induction on tsource 71.

  1. If tsource 73 is a constant, say, tcsource 73, then t[t'/x]=csource 73, and ValsM(c)=cM=Vals[ValsM(t')/x]M(c)source 74.

  2. If tsource 77 is a variable other than xsource 77, say, tysource 77, then t[t'/x]=ysource 78, and ValsM(y)=Vals[ValsM(t')/x]M(y)source 78 since sxs[ValsM(t')/x]source 80.

  3. If txsource 82, then t[t'/x]=t'source 82. But Vals[ValsM(t')/x]M(x)=ValsM(t')source 83 by definition of s[ValsM(t')/x]source 84.

  4. If tf(t1,,tn)source 86 then we have: Compound case of the term substitution lemma ValsM(t[t'/x])==ValsM(f(t1[t'/x],,tn[t'/x])) by definition of t[t'/x]=fM(ValsM(t1[t'/x]),,ValsM(tn[t'/x])) by definition of ValsM(f())=fM(Vals[ValsM(t')/x]M(t1),,Vals[ValsM(t')/x]M(tn)) by induction hypothesis=Vals[ValsM(t')/x]M(t) by definition of Vals[ValsM(t')/x]M(f())source 87

End of proof.

Substitution lemma for satisfaction

Let Msource 105 be a structure, Asource 106 a formula, t'source 106 a term, and ssource 106 a variable assignment. Then M,sA[t'/x]source 107 iff M,s[ValsM(t')/x]Asource 108.

source 105

Proof

Exercise.

End of proof.

Exercise on the formula substitution lemma

Unsolved exercise. The source supplies the prompt only; no solution is added.

Prove Substitution lemma for satisfaction

source 115

Semantic Notions

Definition of validity

Source title: Validity.

A sentence Asource 26 is valid, Asource 26, iff MAsource 26 for every structure Msource 27.

source 25

Definition of semantic entailment

Source title: Entailment.

A set of sentences Γsource 31 entails a sentence Asource 31, ΓAsource 31, iff for every structure Msource 32 with MΓsource 33, MAsource 33.

source 30

Definition of satisfiability

Source title: Satisfiability.

A set of sentences Γsource 38 is satisfiable if MΓsource 38 for some structure Msource 39. If Γsource 39 is not satisfiable it is called unsatisfiable.

source 37

Validity as universal entailment

A sentence Asource 44 is valid iff ΓAsource 44 for every set of sentences Γsource 45.

source 43

Proof

For the forward direction, let Asource 49 be valid, and let Γsource 49 be a set of sentences. Let Msource 50 be a structure so that MΓsource 51. Since Asource 51 is valid, MAsource 51, hence ΓAsource 51.

For the contrapositive of the reverse direction, let Asource 54 be invalid, so there is a structure Msource 55 with MAsource 55. When Γ={}source 55, since source 56 is valid, MΓsource 56. Hence, there is a structure Msource 57 so that MΓsource 57 but MAsource 58, hence Γsource 58 does not entail Asource 58.

End of proof.

Entailment by unsatisfiability

ΓAsource 63 iff Γ{¬A}source 63 is unsatisfiable.

source 61

Proof

For the forward direction, suppose ΓAsource 67 and suppose to the contrary that there is a structure Msource 68 so that MΓ{¬A}source 68. Since MΓsource 69 and ΓAsource 69, MAsource 70. Also, since MΓ{¬A}source 70, M¬Asource 71, so we have both MAsource 71 and MAsource 71, a contradiction. Hence, there can be no such structure Msource 72, so Γ{¬A}source 73 is unsatisfiable.

For the reverse direction, suppose Γ{¬A}source 75 is unsatisfiable. So for every structure Msource 76, either MΓsource 77 or MAsource 77. Hence, for every structure Msource 78 with MΓsource 78, MAsource 78, so ΓAsource 78.

End of proof.

Exercises on unsatisfiability and quantifiers

Unsolved exercise. The source supplies the prompt only; no solution is added.

  1. Show that Γsource 84 iff Γsource 84 is unsatisfiable.

  2. Show that Γ{A}source 85 iff Γ¬Asource 85.

  3. Suppose csource 86 does not occur in Asource 86 or Γsource 86. Show that ΓxAsource 87 iff ΓA[c/x]source 87.

source 82

Monotonicity of entailment

If ΓΓ'source 93 and ΓAsource 93, then Γ'Asource 93.

source 92

Proof

Suppose that ΓΓ'source 98 and ΓAsource 98. Let Msource 99 be a structure such that MΓ'source 99; then MΓsource 99, and since ΓAsource 100, we get that MAsource 100. Hence, whenever MΓ'source 101, MAsource 101, so Γ'Asource 101.

End of proof.

Semantic deduction theorem

Source title: Semantic Deduction Theorem.

Γ{A}Bsource 107 iff ΓABsource 107.

source 105

Proof

For the forward direction, let Γ{A}Bsource 111 and let Msource 112 be a structure so that MΓsource 112. If MAsource 113, then MΓ{A}source 113, so since Γ{A}source 113 entails Bsource 114, we get MBsource 114. Therefore, MABsource 115, so ΓABsource 115.

For the reverse direction, let ΓABsource 117 and Msource 118 be a structure so that MΓ{A}source 118. Then MΓsource 119, so MABsource 119, and since MAsource 120, MBsource 120. Hence, whenever MΓ{A}source 120, MBsource 121, so Γ{A}Bsource 121.

End of proof.

Quantifier consequences for closed terms

Let Msource 125 be a structure, and A(x)source 125 a formula with one free variable xsource 126, and tsource 126 a closed term. Then:

  1. A(t)xA(x)source 128

  2. xA(x)A(t)source 129

source 124

Proof

  1. Suppose MA(t)source 136. Let ssource 136 be a variable assignment with s(x)=ValM(t)source 137. Then M,sA(t)source 138 since A(t)source 138 is a sentence. By Substitution lemma for satisfaction, M,sA(x)source 139. By Quantifier satisfaction by assignments, MxA(x)source 141.

  2. Exercise.

End of proof.

Exercise completing quantifier consequences

Unsolved exercise. The source supplies the prompt only; no solution is added.

Complete the proof of Quantifier consequences for closed terms.

source 153