Truth of Formulas
In propositional logic, the truth or falsity of a complex formula depends on two things:
- The truth of falsity of each atomic proposition that appears in the formula; and
- The rules for assigning:
- truth or falsity to conjunctions given the truth or falsity of the conjuncts;
- truth or falsity to disjunctions given the truth or falsity of the disjuncts;
- truth or falsity to negations given the truth or falsity of the negated formula; and
- truth or falsity to conditionals given the truth or falsity of the antecedent and consequent.
For instance, suppose you want to determine whether is true or false. The main connective is , so the formula is a conjunction. The left conjunct is and the right conjunct . The right conjunct is a disjunction, where is the left disjunct and is the right disjunct . So, to determine the truth or falsity of we need answers to the following questions:
- Is true or false? Is true or false? Is true or false?
- What is the rule to determine whether a disjunction is true or false given the truth or falsity of the disjuncts?
- What is the rule to determine whether a conjunction is true or false given the truth or falsity of the conjuncts?
We start by introducing notation to represent truth and falsity.
The symbols "" (true) and "" (false) are called truth values. When a formula is true, we write " is " and say "the truth value assigned to is " (or more simply " is true"). When a formula is false, we write " is " and say "the truth value assigned to is " (or more simply " is false").
Note that some texts use other symbols for the truth values:
- Instead of , some texts use or for true.
- Instead of , some texts use or for false.
The letters "" and "" may be used as atomic propositions. We differentiate these letters from truth values by the font. E.g., "" is an atomic proposition and "" is the truth value "true", and "" is an atomic propositions and "" is the truth value "false". In general, to avoid confusion we will try to avoid using "" and "" in formulas.
An assignment of truth values to the atomic propositions is called a truth value function.
A truth value function, also called a truth value assignment, for a collection of atomic propositions is an assignment of truth values to each atomic proposition in the collection.
There are two ways to describe a truth value function for a collection of atomic propositions. The first is to list the truth values assigned to each atomic proposition. For example, a truth value assignment for the atomic propositions and is:
is , is and is .
The second way to describe a truth value function is to list all the atomic propositions and write the truth values underneath each atomic proposition:
So, a truth value assignment is a table where each column consists of an atomic proposition in the first row (the header) and the assigned truth value in the second row below the atomic proposition.
Different truth value functions represent different situations or possibilities. For instance, suppose that there are three piles of cards and each pile contains exactly two cards:
- Pile 1 contains two cards that are gray on one side and blue on the other side. On the blue side, one of the cards has an "" on it and the other is blank.
- Pile 2 contains two cards that are gray on one side and red on the other side. On the red side, one of the cards has an "" on it and the other is blank.
- Pile 3 contains two cards that are gray on one side and green on the other side. On the green side, one of the cards has an "" on it and the other is blank.
Suppose that a dealer selects three cards, one from each pile, and places them face down on the table. The dealer can distribute the cards in different ways. Each way of dealing the cards is a different situation. The key observation is that each situation is completely described by specifying which of the following atomic propositions are true and which ones are false:
- : the card from pile 1 has an on it.
- : the card from pile 2 has a on it.
- : the card from pile 3 has a on it.
How many situations can be created by dealing the cards?
- Lecture
- Slides
In this example, we identified three atomic propositions (, and ) that are used to describe a deal of the cards. Of course, there are many other aspects about the scenario that we are ignoring: E.g., Did the dealer look at the cards before selecting them, or was the choice of cards random? Are the cards on the table or is someone holding them? What color shirt is the dealer wearing? Are the lights on in the room? If any of these are relevant to evaluate the truth of a proposition, then we must include an atomic proposition describing that aspect of the scenario.
Truth Tables for the Connectives
The truth value of a complex formula is determined by its main connective.
Conjunction
The sentence "Ann and Bob got an A in PHIL 171" is true when both "Ann got an A in PHIL 171" and "Bob got an A in PHIL 171" are true; otherwise the sentence is false. The suggests the following characterization:
For any formula , if the main connective of is , then is true when both conjuncts are true; otherwise is false.
Thus, the truth value of is determined as follows:
- If is true and is true, then is true.
- If is true and is false, then is false.
- If is false and is true, then is false.
- If is false and is false, then is false.
More generally, truth values are assigned to conjunctions as follows:
Suppose that and are formulas. The truth value assigned to is determined by the following table:
Disjunction
The sentence "Ann or Bob got an A in PHIL 171" is true when either Ann got an A in PHIL 171 or Bob got an A in PHIL 171; otherwise the sentence is false. The suggests the following characterization:
For any formula , if the main connective of is , then is true when at least one of the disjuncts is true; otherwise is false.
the truth value of is determined as follows:
- If is true and is true, then is true.
- If is true and is false, then is true.
- If is false and is true, then is true.
- If is false and is false, then is false.
More generally, truth values are assigned to disjunctions as follows:
Suppose that and are formulas. The truth value assigned to is determined by the following table:
Negation
The sentence "Ann did not get an A in PHIL 171" is true when "Ann got an A in PHIL 171" is false; otherwise the sentence is false. The suggests the following characterization:
For any formula , if the main connective of is , then is true when the negated formulas is false; otherwise is false.
- If is true, then is false.
- If is false, then is true.
More generally, truth values are assigned to disjunctions as follows:
Suppose that is a formula. The truth value assigned to is determined by the following table:
Material Conditional
The truth table for the material conditional is less obvious than the ones for conjunction, disjunction and negation. The main difficulty is that there are well-known mismatches between the meaning of "if...then..." in natural language and the meaning of according to the following truth table (we will talk about these later in these notes).
Suppose that and are formulas. The truth value assigned to is determined by the following table:
Thus, the truth value of is determined as follows:
- If is true and is true, then is true.
- If is true and is false, then is false.
- If is false and is true, then is true.
- If is false and is false, then is true.
One thing that is often surprising when first seeing the truth table for the material conditional is that is true when is false. That is, conditionals are true when the antecedent is false. To motivate this definition, suppose that Ann and Bob come to the following agreement: "If Ann tutors Bob in logic, then Bob will pay Ann $50." The question is, what are the circumstance in which Ann or Bob violate this agreement? First of all, note that Ann is not under any obligation to tutor Bob in logic according to this agreement. So, she cannot violate this agreement. Consider the following four situations:
- Ann tutored Bob in logic, and Bob paid her $50.
- Ann tutored Bob in logic, but and Bob didn't pay her $50.
- Ann doesn't tutor Bob in logic, but Bob paid Ann $50 anway.
- Ann doesn't tutor Bob in logic, and Bob didn't pay her $50.
Clearly, in situation 1, Bob satisfies their agreement and in situation 2, Bob broke their agreement. In situations 3 and 4, since Ann didn't tutor Bob in logic, he is under no obligation to pay Ann, though he could pay her $50 for other reasons. So, the only situation in which the agreement is broken is situation 2.
Bi-Conditional
Recall that the biconditional "" is intended to mean "...if, and only if,..."). We treat the biconditional as shorthand for a longer formula: "" is short for "".
For example, is shorthand for . So, truth or falsity of is determined as follows:
- If is true and is true, then is true and is true; so is true---that is, is true.
- If is true and is false, then is false and is true; so is false---that is, is false.
- If is false and is true, then is true and is false; so is false---that is, is false.
- If is false and is false, then is true and is true; so is true---that is, is true.
We can summarize this reasoning in the following truth table for the bi-conditional:
Truth of a Formula
Using the truth tables for the connectives, and given any truth value function, we can assign a truth value to any complex formula .
Method to find the truth value for complex formulas: Suppose that is a formula and there is a truth value function for all the atomic propositions from . The truth value assigned to is determined as follows:
- Construct the syntax tree for
- Label the atomic propositions in the syntax tree with the truth values assigned to them by the truth value function.
- Chase truth up the tree by labeling the remaining formulas with their truth values determined by identifying the main connective and using the truth table for that connective.
Suppose that and have the truth value and has the truth value . Then, has the truth value :
- Lecture
- Slides
We summarize the assignments of a truth values to the atomic propositions , and and the formula in a table with a column for each atomic proposition and the formula:
Sometimes we will be interested in tables that include columns for more than one formula. For instance:
Practice Questions
I. Answer the following questions by finding the syntax tree and assigning the appropriate truth value to each formula in the syntax tree.
- Suppose that has the truth value and has the truth value . What is the truth value assigned to ?
- Suppose that has the truth value and has the truth value . What is the truth value assigned to ?
- Suppose that has the truth value and has the truth value . What is the truth value assigned to ?
- Suppose that has the truth value and has the truth value . What is the truth value assigned to ?
- Suppose that has the truth value and and have the truth value . What is the truth value assigned to ?
II. In each of the following questions, select the appropriate truth value for the formula.
III. In each of the following questions, find a truth value function that assigns the give truth value to the formula.