Processing math: 100%
Skip to main content
permalink

Section 4.2 Truth Tables and Propositions Generated by a Set

permalink

Subsection 4.2.1 Truth Tables

permalinkConsider the compound proposition c=(pq)(¬qr), where p, q, and r are propositions. This is an example of a proposition generated by p, q, and r. We will define this terminology later in the section. Since each of the three simple propositions has two possible truth values, it follows that there are eight different combinations of truth values that determine a value for c. These values can be obtained from a truth table for c. To construct the truth table, we build c from p, q, and r and from the logical operators. The result is the truth table below. Strictly speaking, the first three columns and the last column make up the truth table for c. The other columns are work space needed to build up to c.

permalink
pqrpq¬q¬qr(pq)(¬qr)00001000010111010000001100001000100101011111010011111001
Table 4.2.1. Truth Table for c=(pq)(¬qr)

permalinkNote that the first three columns of the truth table are an enumeration of the eight three-digit binary integers. This standardizes the order in which the cases are listed. In general, if c is generated by n simple propositions, then the truth table for c will have 2n rows with the first n columns being an enumeration of the n digit binary integers. In our example, we can see at a glance that for exactly four of the eight cases, c will be true. For example, if p and r are true and q is false (the sixth case), then c is true.

permalinkLet S be any set of propositions. We will give two definitions of a proposition generated by S. The first is a bit imprecise, but should be clear. The second definition is called a recursive definition. If you find it confusing, use the first definition and return to the second later.

permalink

Subsection 4.2.2 Propositions Generated by a Set

permalink
Definition 4.2.2. Proposition Generated by a Set.

Let S be any set of propositions. A proposition generated by S is any valid combination of propositions in S with conjunction, disjunction, and negation. Or, to be more precise,

  1. If pS, then p is a proposition generated by S, and

  2. If x and y are propositions generated by S, then so are (x), ¬x, xy , and xy.

permalinkNote: We have not included the conditional and biconditional in the definition because they can both be generated from conjunction, disjunction, and negation, as we will see later.

permalinkIf S is a finite set, then we may use slightly different terminology. For example, if S={p,q,r}, we might say that a proposition is generated by p,q, and r instead from {p,q,r}.

permalinkA proposition generated by a set S need not include each element of S in its expression. For example, ¬qr is a proposition generated by p,q, and r.

permalink

Subsection 4.2.3 Precedence of Logical Operators

permalinkIt is customary to use the following hierarchy for interpreting propositions, with parentheses overriding this order:

  • First: Negation

  • Second: Conjunction

  • Third: Disjunction

  • Fourth: The conditional operation

  • Fifth: The biconditional operation

permalinkWithin any level of the hierarchy, work from left to right. Using these rules, pqr is taken to mean (pq)r. These precedence rules are universal, and are exactly those used by computer languages to interpret logical expressions.

A few shortened expressions and their fully parenthesized versions:

  1. \(p \land q \land r\) is \((p \land q) \land r\text{.}\)

  2. \(\neg p \lor \neg r\) is \((\neg p) \lor (\neg r)\text{.}\)

  3. \(\neg \neg p\) is \(\neg (\neg p)\text{.}\)

  4. \(p \leftrightarrow q\land r\rightarrow s \) is \(p \leftrightarrow ((q\land r)\rightarrow s)\text{.}\)

permalink

Exercises 4.2.4 Exercises for Section 4.2

permalink
1.

Construct the truth tables of:

  1. pp

  2. p(¬p)

  3. p(¬p)

  4. pp

Answer
  1. \(\begin{array}{cc} p & p\lor p \\ \hline 0 & 0 \\ 1 & 1 \\ \end{array}\)

  2. \(\begin{array}{ccc} p & \neg p & p\land (\neg p) \\ \hline 0 & 1 & 0 \\ 1 & 0 & 0 \\ \end{array}\)
  3. \(\begin{array}{ccc} p & \neg p & p\lor (\neg p) \\ \hline 0 & 1 & 1 \\ 1 & 0 & 1 \\ \end{array}\)
  4. \(\begin{array}{cc} p & p\land p \\ \hline 0 & 0 \\ 1 & 1 \\ \end{array}\)
permalink
2.

Construct the truth tables of:

  1. ¬(pq)

  2. p(¬q)

  3. (pq)r

  4. (pq)(qr)(rp)

  5.  ¬p¬q

  6. pqrs

permalink
3.

Rewrite the following with as few extraneous parentheses as possible:

  1. (¬((p)(r)))(s)

  2. ((p)(q))((r)(q))

Answer
  1. \(\neg (p\land r) \lor s\)

  2. \((p\lor q) \land (r\lor q)\)

permalink
4.

In what order are the operations in the following propositions performed?

  1. p¬qr¬p

  2. p¬qr¬p

permalink
5.

Determine the number of rows in the truth table of a proposition containing four variables p,q,r, and s.

Answer

\(2^4 = 16\) rows.

permalink
6.

If there are 45 lines on a sheet of paper, and you want to reserve one line for each line in a truth table, how large could |S| be if you can write truth tables of propositions generated by S on the sheet of paper?