Suppose we have a truth assignment . There is then a unique way to extend so that it gives a truth value to any WFF using the propositional variables such that for any WFFs and ,
and | ||||
Recall that we use the connective symbols not just as parts of WFFs but as ways of combining truth values, for example , , and . For example, if and we would have
and
It’s not completely obvious this really works, but you can read a proof in section 2.3 of the book by Goldrei mentioned in the further reading section at the end of this chapter.
This method of assigning truth values to WFFs can be thought of in a slightly different way: we just substitute in truth values in place of the propositional variables, and combine them using the truth tables for the connectives — exactly like how if you wanted to find the value of when and , you would substitute the values in to get and combine them using the usual arithmetic operations to get .
Let
Let . We are going to find .
The method of assigning truth values to WFFs above tells us
(1.1) |
so we need to work out and .
We have . Looking at the row of Table 1.1, the truth table for , we see that is .
Next,
The row of the same truth table tells us that this is .
Consider the WFF and the truth assignment . What is ?
By definition,
Looking at the row of the truth table for implies, Table 1.4, we see that is . So . For the same reason, .
If you work out the truth value of when , you should find that the result is also .
T | T |
---|---|
F | T |
Notice that the WFF from the previous example is true for every truth assignment of its variables. A WFF with this property is called a tautology, and a WFF which is false under every truth assignment, for example , is a contradiction.
Let
Given the truth assignment such that , let’s work out the truth value . Since
we can start by working out and separately. From the truth table for , Table 1.1, we see that
We have , so
Finally .
The truth table for a WFF lists its truth value under all possible truth assignments for its propositional variables. The truth table for the formula from the previous example (and for some of the formulas that make up ) is given below. You should check that the following table is correct.
T | T | T | F | T | T |
T | F | T | T | T | T |
F | T | T | F | F | F |
F | F | F | T | T | F |