First-order logic, semantically speaking
To save space and time, we will immediately formulate our notions for sets of formulas. As noted above, this is not a problem since single formulas are just special sets of formulas. Namely, for any formula , there is a singleton set .
Satisfiability
As before, we will start with the notion of satisfiability for sets of formulas (including singleton sets), and define validity using the notion of satisfiability. Thus, we have:
Definition 8.1 (Satisfiability). A set of formulas of is first-order satisfiable or semantically consistent iff there is a structure and an assignment such that for each . We say is first-order unsatisfiable or semantically inconsistent provided it is not semantically consistent.
Exercise 8.1. By the above, it follows that a set of formulas is semantically inconsistent provided there is no structure and assignment under which every formula in the set is simultaneously satisfiable. Explain why this is the case in your own words using the definition above.
Checking whether a set of formulas is first-order satisfiable is checking whether there is a structure and an assignment that assigns a member of the domain of that structure to the variables of the language such that every formula in the set comes out satisfied. This sounds very complicated, but as usual, the underlying idea is very simple.
Take, for example, the following formula (considered as a singleton set):
Is this formula satisfiable? To answer this in the positive, we need to find a structure and a variable assignment in which it is satisfied. In fact, there are many structures and assignments that satisfy this formula, so it is satisfiable. Here is one.
Let be a structure such that , and . For any variable , let . So there is a single object in the structure, and that single object is in the set of things that are . Moreover, every variable is assigned under the variable assignment .
Based on this, we have that , since . Moreover, we also have that , since under every -variant assignment to , is satisfied. In other words (and some symbols), for every -variant assignment , simply because every assignment points to (as there is nothing else in the domain). So since both are satisfied under in , their conjunction is also satisfied in the same structure under the same assignment. So the formula is satisfiable.
There are many other formulas that are satisfiable because they are satisfied in the above structure and assignment .
Exercise 8.2. Show that each of the following formulas are first-order satisfiable by showing that they are satisfied in and , as defined above.
Remark 8.1. Note that this entails that the set of formulas is satisfiable, since you just showed that they are each satisfied in the same structure under the same assignment.
Exercise 8.3. Write five formulas using only the predicate and no constants such that they are each satisfied in under , and thus satisfiable in first-order logic.
Of course, some sets of formulas require more elaborate structures and assignments to be satisfied, and hence be satisfiable. And in general, just because a set of formulas is not satisfied in a given structure under a given assignment does not entail that it is not satisfiable. For the latter, what you would have to show is that there is no structure and assignment whatsoever under which the set of formulas are satisfied.
Take, for example, the formula . This is not satisfied in under any variable assignment , simply because it requires an object to not be . So for any . On the other hand, this does not mean that is unsatisfiable. Indeed, it is easy to think of a structure and an assignment that satisfies it.
Let be the structure such that , . Moreover, let be and . Now . Why? It is because , for , and , since . So is satisfiable, since there is a structure and an assignment that satisfy it, as just demonstrated.
Note that when it comes to open formulas, assignments matter! On the other hand, when it comes to sentences, we have an easier time. You may remember that a sentence is either satisfied under every assignment in a structure or none, and therefore, is true or false in that structure. So the only things you need to care about in these cases is whether the sentence is true in the structure or not. This is because if the sentence is true in a structure, it is satisfied under every assignment in that structure by definition, so it is satisfiable, as per our definition of satisfiability. Not coincidentally, this is exactly how zeroth-order satisfiability was defined, as zeroth-order languages do not have open formulas.
Here is a simple example. Suppose you have a first-order sentence . Extend the interpretation of so that (for there is nothing else in the domain of ). Now since , , so , and the sentence is true in . So the sentence is satisfiable in .
So some sets of formulas are satisfiable, and for each set of satisfiable formulas, there needs to be only one structure and assignment under which each formula in the set is satisfied (in the same structure, under the same assignment). Now letβs inspect some examples of sets of formulas that are not satisfiable. In other words, sets of formulas for which a structure and assignment cannot be found under which they are all satisfied. As noted, these formulas we will call (first-order) unsatisfiable or semantically inconsistent.
As a simple example, take the sentence . You may already see that this is a sentence of form , which is the most basic form of a contradiction. As we have demonstrated previously, there is no structure in which it could be true, simply by the way and is defined. But this also means that no matter what structure and assignment we choose, , so indeed, this formula is first-order unsatisfiable.
Note that the same goes for first-order sentences that include quantifiers, like . This sentence is unsatisfiable precisely for the same reason as is unsatisfiable. Simply because if were satisfied in a structure under an assignment, then would have to be satisfied, and would also have to be satisfied. But by definition, if is satisfied, is not, and if is satisfied, is not. So there is no way to satisfy this formula. In general, any formula of form , where is any formula, is first-order unsatisfiable unsatisfiable for this reason.
Note: just as any set of sentences is first-order satisfiable if it is true in a structure, any set of sentences is first-order unsatisfiable if it is false in every structure. So in both cases, variable assignments may be disregarded, as there are no free variables.
It is important to note that some first-order unsatisfiable sets of formulas are unsatisfiable not solely because of how the connectives are defined (which coincides with zeroth-order unsatisfiability), but essentially because of how the variables and quantifiers function. For example, take . This formula is not of the form , or any zeroth-order contradiction for that matter, yet it is first-order unsatisfiable. It is not hard to see why this is the case.
Suppose were first-order satisfiable. Then, there would be a structure and assignment such that . In turn, this would mean that , that is, that . On the other hand, we would also have that , which would mean that for every -variant , , so for every -variant , and so for every -variant . But this is only true if is empty, otherwise we would be able to find a -variant assignment such that . On the other hand, we also showed that , so it should not be empty! In other words, these two conjuncts cannot be satisfied at the same time, since one requires to have at least one member, and the other requires it to be empty. So cannot be satisfied, and so is not first-order satisfiable.
Exercise 8.4. Show that the first-order sentence is unsatisfiable. Hint: it is unsatisfiable for essentially the same reasons as , with a slight twist.
Validity
Now that we have a grasp on first-order satisfiability, we are in the position to formulate what it means for an argument to be first-order valid, and in connection, what it means for a formula to be a first-order validity. As we did with zeroth-order validity, we will define first-order validity using the notion of first-order satisfiability. In particular, we shall say:
Definition 8.2 (Validity, first-order). Let be any set of formulas and let be any formula of . Then, the argument from premises to the conclusion is first-order valid iff the set is not first-order satisfiable. If an argument from to is first-order valid, we write , or say that is a (first-order) semantic consequence of, or (first-order) semantically entailed by . If the argument is not valid, we say it is invalid, and write . If and , we say is a first-order validity, and simply write .
Similar to our zeroth-order definition, the reasoning behind this is as follows. An argument is valid if whenever its premises are satisfied, its conclusion is also satisfied. This is equivalent to saying that it is impossible for an argumentβs premises to be satisfied but its conclusion to be unsatisfied. This latter means that if an argument is valid, we should not be able to find a structure and a variable assignment which satisfies all its premises but does not satisfy its conclusion. Put another way, we should not be able to find a structure and variable assignment under which the premises and the negation of the conclusion is satisfied. So put another way, we should not find that the set of the premises and the negation of the conclusion together is satisfiable. Which is exactly what the definition says.
As far as first-order sentences are concerned, the definition of validity essentially reduces to that of zeroth-order validity. In particular, a set of sentences entails a sentence provided in every structure in which is true, is also true, which is once again equivalent to not being true in any structure. Keep in mind, however, that these sentences may include quantifiers, as long as every variable is bound. The only additional complication when including open formulas is that we need to include into our calculations the assignments. But again, this just means that if an argument is valid, then whenever its premises are satisfied in a structure under an assignment, its conclusion will also always be satisfied in that structure under that assignment.
Exercise 8.5. Show that the following facts hold in first-order logic:
In general, every zeroth-order valid argument is first-order valid. In fact, zeroth-order satisfiability, unsatisfiability and validity entail first-order satisfiability, unsatisfiability and validity, respectively (for zeroth-order arguments). But once again, there are first-order valid arguments whose validity essentially depends on the particular use of variables and quantifiers. Most importantly, there are two fundamental properties of quantifiers, connected to negation:
Proposition 8.1 (Negation push-through; ). for any formula of .
Proof. Suppose . By definition, . Since means that for some -variant , , its negation means that there is no -variant for which we have . That is, for every -variant , . That is, for every -variant , . But this just means that .Β β»
It is easy to see intuitively why this holds. Simply, if there is no such that , then obviously, every must not be , for otherwise, there would be an that is . For example, if among a group of students, there is no student who received a C on their exam, then for every student, it is true that they did not receive a C on their exam. That is, if , then .
Note also that may be any formula above, not just an atomic one. So it is also the case, for example, that if there is no person who has a car and and has a sister, then for every person, it is not the case that they have a car and a sister. So if , then . It is important here where the parentheses are. For no one having a car and a sister does not mean that no one has a car or a sister. It only means that they cannot have both. And indeed, this follows, for by DeMorganβs law, entails . That is, it is true of everyone that they either do not have a car, or they do not have a sister, or they neither have a car nor a sister. The only possible configuration excluded by this sentence is that they have both have a car and a sister.
Next, we also have the converse of the above. Namely, that if it is not true for all that , then there must be at least one for which is the case.
Proposition 8.2 (Negation push-through; ). for any formula of .
Proof. Suppose . By definition, iff . Now provided for every -variant assignment , we have . So on the contrary, provided there is some -variant assignment for which we have . So there is some -variant assignment such that . But then by definition, .Β β»
Now again, the intuitive content of this is pretty straightforward. For example, if not everyone got an A on their exam, then there is someone who did not get an A on their exam. That is, if , then . And of course, once again, this holds for any formula whatsoever. So for example, if not everyone has a car and a sister, then there is someone who does not have a car and a sister. That is, if , then . This then entails, by DeMorganβs law, . That is, if not everyone has both a car and a sister, then there must be someone who either does not have a car, or does not have a sister, or neither has a car nor a sister.
The above two propositions also work backwards. In particular:
Proposition 8.3 (Negation pull-through; ). for any formula of .
Proposition 8.4 (Negation pull-through; ). for any formula of .
Exercise 8.6. Prove the two propositions above using the proofs for their push-through variants as blueprint. Hint: think backwards.
Note that the use of DeMorganβs law above was not accidental. The connectives are defined in first-order logic exactly the same way as they are in zeroth-order logic. Accordingly, the valid argument forms of zeroth-order logic carry over to first-order logic. For example, here is a clever utilization of the above propositions and some zeroth-order logic.
Proposition 8.5. and
Proof. For the first, suppose . Then by zeroth-order reasoning, . Then, by pushing the negation through , we have . So .
For the second, suppose . Then, pulling the negation through , we get . Then, by zeroth-order reasoning, we get . So .Β β»
Proposition 8.6. and
Exercise 8.7. Prove the above proposition. Hint: take the proof of its inverted version above as blueprint.
Here is another example of how one can reason about validity in first-order logic:
Proposition 8.7.
Proof. Suppose , and . By the latter, we know that there is a -variant assignment such that . In other words, . Letβs denote the object by , so that we know . Now because , we know that for every -variant assignment , . So we also have that (the -variant assignment where is sent to ). Now we already know that , since we established that . But then as well, by the conditional. So . This, in turn, means that . So by definition, .Β β»
Now as you can see, reasoning about validity is rather painful when done semantically. So it is time to extend our tableau system with new rules so that it can handle arguments in first-order logic.