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 source 26 relative to a variable assignment source 26, written as source 27. This relation is also defined by induction on the structure of source 28, using the truth tables for the logical connectives to define, say, satisfaction of source 29 in terms of satisfaction (or not) of source 30 and source 30. It then turns out that the variable assignment is irrelevant if the formula source 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 source 35 for sentences we can then define the basic semantic notions of validity, entailment, and satisfiability. A sentence is valid, source 37, if every structure satisfies it. It is entailed by a set of sentences, source 39, if every structure that satisfies all the sentences in source 40 also satisfies source 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 source 29, for a language source 30 of first-order logic consists of the following elements:
Domain: a non-empty set, source 32
Interpretation of constants: for each constant source 33 of source 34, a element source 34
Interpretation of predicates: for each source 35-place predicate source 36 of source 36 (other than source 36), an source 36-place relation source 37
Interpretation of functions: for each source 38-place function source 39 of source 39, an source 39-place function source 39
Standard arithmetic structure
A structure source 45 for the language of arithmetic consists of a set, an element of source 46, source 46, as interpretation of the constant source 47, a one-place function source 48, two two-place functions source 49 and source 49, both source 50, and a two-place relation source 51.
An obvious example of such a structure is the following:
The structure source 63 for source 63 so defined is called the standard model of arithmetic, because it interprets the non-logical constants of source 65 exactly how you would expect.
However, there are many other possible structures for source 67. For instance, we might take as the domain the set source 68 of integers instead of source 69, and define the interpretations of source 69, source 70, source 70, source 70, source 70 accordingly. But we can also define structures for source 71 which have nothing even remotely to do with numbers.
Structures for set theory
A structure source 76 for the language source 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 “source 78 is older than source 78” could be used as a structure for source 79, as well as source 79 together with source 80 for source 80.
A particularly interesting structure for source 82 in which the elements of the domain are actually sets, and the interpretation of source 84 actually is the relation “source 84 is a element of source 84” is the structure source 85 of hereditarily finite sets:
Covered structure for First-order Languages
Value of a closed term
Source title: Value of closed terms.
If source 18 is a closed term of the language source 18 and source 18 is a structure for source 19, the value source 19 is defined as follows:
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.
Covered arithmetic example
Let source 37 be the language with constants source 37, source 38, source 38, …, the binary predicate source 38, and the binary functions source 39 and source 39. Then a structure source 39 for source 40 is the one with domain source 40 and assignments source 41, source 42, source 42, and so forth. For the binary relation symbol source 43, the set source 43 is the set of all pairs source 44 such that source 45 is less than source 45: for example, source 45 but source 46. For the binary function source 47, define source 47 in the usual way—for example, source 48 maps to source 48, and similarly for the binary function source 49. Hence, the value of source 49 is just source 50, and the value of source 50 (or in infix notation, source 51) is Evaluation of a compound closed term source 53
Exercise on coveredness
Unsolved exercise. The source supplies the prompt only; no solution is added.
Is source 69, the standard model of arithmetic, covered? Explain.
Satisfaction of a formula in a structure
Definition of a variable assignment
Source title: Variable Assignment.
A variable assignment source 42 for a structure source 42 is a function which maps each variable to a element of source 43, i.e., source 44.
Value of a term under an assignment
Source title: Value of Terms.
If source 59 is a term of the language source 59, source 59 is a structure for source 60, and source 60 is a variable assignment for source 61, the value source 61 is defined as follows:
Definition of an x variant
Source title: source 74-Variant.
If source 75 is a variable assignment for a structure source 75, then any variable assignment source 76 for source 76 which differs from source 76 at most in what it assigns to source 77 is called an source 77-variant of source 77. If source 78 is an source 78-variant of source 78 we write source 78.
Definition of assignment update
If source 88 is a variable assignment for a structure source 88 and source 89, then the assignment source 89 is the variable assignment defined by source 91
In other words, source 97 is the particular source 97-variant of source 97 which assigns the domain element source 98 to source 98, and assigns the same things to variables other than source 99 that source 99 does.
Recursive definition of satisfaction
Source title: Satisfaction.
Satisfaction of a formula source 103 in a structure source 103 relative to a variable assignment source 104, in symbols: source 105, is defined recursively as follows. (We write source 106 to mean “not source 106.”)
Case: A is falsity. source 109.
Case: A is the atomic formula R applied to t sub one through t sub n. source 114 iff source 115.
Case: A is the identity t sub one equals t sub two. source 118 iff source 119.
Case: A is the negation of B. source 122 iff source 123.
Case: A is the conjunction of B and C. source 126 iff source 126 and source 127.
Case: A is the disjunction of B and C. source 130 iff source 131 or source 131 (or both).
Case: A is the conditional from B to C. source 134 iff source 134 or source 135 (or both).
Case: A is for every x, B. source 143 iff for every element source 144, source 144.
Case: A is there exists x, B. source 147 iff for at least one element source 148, source 148.
Worked satisfaction model
Let source 180 where source 180 and source 180 are constants, source 181 is a two-place function, and source 181 is a two-place predicate. Consider the structure source 182 defined by:
source 187 if source 187 and source 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.
The function source 190 that assigns source 190 to every variable is a variable assignment for source 191.
Then Worked term-value calculation source 194
An atomic formula source 208 is satisfied if the tuple of values of its arguments, i.e., source 209, is a element of source 210. So, e.g., we have source 211 since source 211, but source 213 since source 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 source 215 is satisfied, you apply the clauses in the inductive definition that applies to the main connective. For instance, the main connective in source 217 is the source 218, and Worked conditional satisfaction calculation source 219
Recall that an source 232-variant of source 232 is a variable assignment that differs from source 233 at most in what it assigns to source 233. For every element of source 234, there is an source 234-variant of source 234: Four x variants of an assignment source 235 So, e.g., source 241 and source 241 for all variables source 241 other than source 242. These are all the source 242-variants of source 242 for the structure source 243, since source 243. Note, in particular, that source 244 (source 244 is always an source 244-variant of itself).
To determine if an existentially quantified formula source 247 is satisfied, we have to determine if source 248 for at least one source 248. So, source 250 since source 253 (source 254 would also fit the bill). But, source 255 since, whichever source 258 we pick, source 258.
To determine if a universally quantified formula source 261 is satisfied, we have to determine if source 262 for all source 262. So, source 263 since source 266 for all source 266. For source 267, we have source 267 so the consequent is true; for source 268, source 268, and source 268, we have source 269, so the antecedent is false. But, source 271 since source 274 (because source 275 and source 275).
For a more complicated case, consider source 325 Since source 328 and source 329, the interesting cases where we have to worry about the consequent of the conditional are only source 330 and source 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 source 331 hold? It does if there is at least one source 332 so that source 333. In fact, if we take source 334, we have source 334. Since source 335, source 335, and source 335, the answer is yes.
To determine if source 338, we have to look at the variable assignments source 340. Here, for source 340, this assignment is source 341, which does not satisfy source 341 (source 341, source 342, and source 342). However, consider source 343. source 344 since source 344, and so source 345.
So, for all 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 source 348 (if source 348, source 348) or source 349 (if source 349, source 349), and so source 350 On the other hand, source 354 We have source 357 only for source 357 and source 357. But for both of these values of source 358, there is in turn an source 358, namely source 359, so that source 360 and so source 361 for source 361 and source 361. In sum, there is no source 362 such that source 362.
Exercise on a finite structure
Unsolved exercise. The source supplies the prompt only; no solution is added.
Let source 401 with one constant, one one-place function and one two-place predicate, and let the structure source 403 be given by
(a) Let source 410 for all variables source 410. Find out whether source 411 Explain why or why not.
(b) Give a different structure and variable assignment in which the formula is not satisfied.
Variable Assignments
Term-value independence proposition
If the variables in a term source 30 are among source 30, …, source 30, and source 31 for source 31, …, source 31, then source 31.
Proof
By induction on the complexity of source 36. For the base case, source 36 can be a constant or one of the variables source 37, …, source 37. If source 37, then source 38. If source 39, source 39 by the hypothesis of the proposition, and so source 40.
For the inductive step, assume that source 42 and that the claim holds for source 43, …, source 43. Then Compound-term independence step source 44
End of proof.
Satisfaction independence proposition
If the free variables in source 58 are among source 58, …, source 58, and source 59 for source 59, …, source 59, then source 59 iff source 60.
Proof
We use induction on the complexity of source 64. For the base case, where source 65 is atomic, source 65 can be:
source 67, source 68 for a source 68-place predicate source 68 and terms source 69, …, source 69, or source 69 for terms source 69 and source 69. In the latter two cases, we only demonstrate the forward direction of the biconditional, since the proof of the reverse is symmetrical.
Case: A is the atomic formula R applied to t sub one through t sub k. let source 84. Then source 85 For source 89, …, source 89, source 89 by Term-value independence proposition. So we also have source 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 source 92.
Case: A is the identity t sub one equals t sub two. suppose source 94. Then source 95. So, Identity case for satisfaction independence source 96 Cited results: Term-value independence proposition and Term-value independence proposition. so source 104.
Now assume source 107 iff source 107 for all formulas source 108 less complex than source 108. The induction step proceeds by cases determined by the main operator of source 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 source 113 of source 113. The free variables of source 113 are among those of source 114. Thus, if source 114 and source 114 agree on the free variables of source 115, they also agree on those of source 115, and the induction hypothesis applies to source 116.
Case: A is the negation of B. if source 122, then source 123, so by the induction hypothesis, source 124, hence source 124.
Case: A is the disjunction of B and C. if source 137, then source 138 or source 138. By induction hypothesis, source 139 or source 139, so source 139.
Case: A is there exists x, B. if source 160, there is an source 161 so that source 161. Let source 162 and source 162. The free variables of source 163 are among source 163, …, source 164, and source 164. source 164, since source 164 and source 165 are source 165-variants of source 165 and source 165, respectively, and by hypothesis source 166. source 166 by the way we have defined source 167 and source 167. Then the induction hypothesis applies to source 168 and source 168, source 168, so source 169. Hence, since source 169, there is an source 170 such that source 171, and so source 172.
By induction, we get that source 193 iff source 193 whenever the free variables in source 194 are among source 194, …, source 194 and source 195 for source 195, …, source 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.
Sentence satisfaction is assignment-independent
If source 215 is a sentence and source 215 a variable assignment, then source 216 iff source 216 for every variable assignment source 217.
Proof
Let source 221 be any variable assignment. Since source 221 is a sentence, it has no free variables, and so every variable assignment source 222 trivially assigns the same things to all free variables of source 223 as does source 224. So the condition of Satisfaction independence proposition is satisfied, and we have source 225 iff source 225.
End of proof.
Definition of satisfaction for a sentence
If source 230 is a sentence, we say that a structure source 230 satisfies source 231, source 231, iff source 231 for all variable assignments source 232.
If source 235, we also simply say that source 235 is true in source 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 source 242 satisfies source 242, source 243, iff source 243 for all source 243.
Sentence satisfaction equivalence
Let source 247 be a structure, source 247 be a sentence, and source 247 a variable assignment. source 248 iff source 248.
Proof
Exercise.
End of proof.
Exercise on sentence satisfaction
Unsolved exercise. The source supplies the prompt only; no solution is added.
Quantifier satisfaction by assignments
Suppose source 260 only contains source 260 free, and source 260 is a structure. Then:
source 263 iff source 263 for at least one variable assignment source 264.
source 265 iff source 265 for all variable assignments source 266.
Proof
Exercise.
End of proof.
Exercise on quantified satisfaction
Unsolved exercise. The source supplies the prompt only; no solution is added.
Exercise defining truth without assignments
Unsolved exercise. The source supplies the prompt only; no solution is added.
Suppose source 280 is a language without functions. Given a structure source 281, source 281 a constant and source 281, define source 282 to be the structure that is just like source 283, except that source 283. Define source 284 for sentences source 284 by:
Case: A is falsity. not source 287.
Case: A is the atomic sentence R applied to d sub one through d sub n. source 292 iff source 293.
Case: A is the identity d sub one equals d sub two. source 296 iff source 297.
Case: A is the negation of B. source 300 iff not source 301.
Case: A is the conjunction of B and C. source 304 iff source 305 and source 305.
Case: A is the disjunction of B and C. source 308 iff source 309 or source 309 (or both).
Case: A is the conditional from B to C. source 312 iff not source 313 or source 313 (or both).
Case: A is for every x, B. source 321 iff for all source 322, source 322, if source 323 does not occur in source 323.
Case: A is there exists x, B. source 326 iff there is an source 327 such that source 328, if source 328 does not occur in source 329.
Let source 331, …, source 331 be all free variables in source 331, source 332, …, source 332 constant symbols not in source 332, source 333, …, source 333, and source 333.
Show that source 335 iff source 335.
(This problem shows that it is possible to give a semantics for first-order logic that makes do without variable assignments.)
Exercise on Skolem normal form
Unsolved exercise. The source supplies the prompt only; no solution is added.
Suppose that source 343 is a function symbol not in source 343. Show that there is a structure source 344 such that source 345 iff there is an source 345 such that source 346.
(This problem is a special case of what's known as Skolem's Theorem; source 349 is called a Skolem normal form of source 350.)
Extensionality
Extensionality proposition
Source title: Extensionality.
Let source 30 be a formula, and source 30 and source 30 be structures with source 31, and source 31 a variable assignment on source 32. If source 33, source 33, and source 34 for every constant source 34, relation symbol source 35, and function source 35 occurring in source 35, then source 36 iff source 36.
Proof
First prove (by induction on source 40) that for every term, source 41. Then prove the proposition by induction on source 42, making use of the claim just proved for the induction basis (where source 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.
Extensionality for sentences
Source title: Extensionality for Sentences.
Let source 53 be a sentence and source 53, source 53 as in Extensionality proposition. Then source 54 iff source 54.
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 source 65 be a structure, source 65 and source 65 terms, and source 65 a variable assignment. Then source 66.
Proof
By induction on source 71.
If source 73 is a constant, say, source 73, then source 73, and source 74.
If source 77 is a variable other than source 77, say, source 77, then source 78, and source 78 since source 80.
If source 82, then source 82. But source 83 by definition of source 84.
If source 86 then we have: Compound case of the term substitution lemma source 87
End of proof.
Substitution lemma for satisfaction
Let source 105 be a structure, source 106 a formula, source 106 a term, and source 106 a variable assignment. Then source 107 iff source 108.
Proof
Exercise.
End of proof.
Exercise on the formula substitution lemma
Unsolved exercise. The source supplies the prompt only; no solution is added.
Semantic Notions
Definition of validity
Source title: Validity.
A sentence source 26 is valid, source 26, iff source 26 for every structure source 27.
Definition of semantic entailment
Source title: Entailment.
A set of sentences source 31 entails a sentence source 31, source 31, iff for every structure source 32 with source 33, source 33.
Definition of satisfiability
Source title: Satisfiability.
A set of sentences source 38 is satisfiable if source 38 for some structure source 39. If source 39 is not satisfiable it is called unsatisfiable.
Validity as universal entailment
A sentence source 44 is valid iff source 44 for every set of sentences source 45.
Proof
For the forward direction, let source 49 be valid, and let source 49 be a set of sentences. Let source 50 be a structure so that source 51. Since source 51 is valid, source 51, hence source 51.
For the contrapositive of the reverse direction, let source 54 be invalid, so there is a structure source 55 with source 55. When source 55, since source 56 is valid, source 56. Hence, there is a structure source 57 so that source 57 but source 58, hence source 58 does not entail source 58.
End of proof.
Entailment by unsatisfiability
Proof
For the forward direction, suppose source 67 and suppose to the contrary that there is a structure source 68 so that source 68. Since source 69 and source 69, source 70. Also, since source 70, source 71, so we have both source 71 and source 71, a contradiction. Hence, there can be no such structure source 72, so source 73 is unsatisfiable.
For the reverse direction, suppose source 75 is unsatisfiable. So for every structure source 76, either source 77 or source 77. Hence, for every structure source 78 with source 78, source 78, so source 78.
End of proof.
Exercises on unsatisfiability and quantifiers
Unsolved exercise. The source supplies the prompt only; no solution is added.
Monotonicity of entailment
Proof
Suppose that source 98 and source 98. Let source 99 be a structure such that source 99; then source 99, and since source 100, we get that source 100. Hence, whenever source 101, source 101, so source 101.
End of proof.
Semantic deduction theorem
Source title: Semantic Deduction Theorem.
source 107 iff source 107.
Proof
For the forward direction, let source 111 and let source 112 be a structure so that source 112. If source 113, then source 113, so since source 113 entails source 114, we get source 114. Therefore, source 115, so source 115.
For the reverse direction, let source 117 and source 118 be a structure so that source 118. Then source 119, so source 119, and since source 120, source 120. Hence, whenever source 120, source 121, so source 121.
End of proof.
Quantifier consequences for closed terms
Let source 125 be a structure, and source 125 a formula with one free variable source 126, and source 126 a closed term. Then:
Proof
Suppose source 136. Let source 136 be a variable assignment with source 137. Then source 138 since source 138 is a sentence. By Substitution lemma for satisfaction, source 139. By Quantifier satisfaction by assignments, source 141.
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.