17.5: Truth Tables: Conjunction (and), Disjunction (or), Negation (not)
- Page ID
- 34286
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)
( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\id}{\mathrm{id}}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\kernel}{\mathrm{null}\,}\)
\( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\)
\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\)
\( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)Before we focus on truth tables, we’re going to introduce some symbols that are commonly used for and, or, and not.
The symbol \(\wedge\) is used for and: \( A\) and \(B\) is notated \(A \wedge B\)
The symbol \(\vee\) is used for or: \(A\) or \(B\) is notated \(A \vee B\)
The symbol \(\sim\) is used for not: not \(A\) is notated \(\sim A\)
You can remember the first two symbols by relating them to the shapes for the union and intersection. \(A \wedge B\) would be the elements that exist in both sets, in \(A \cap B\). Likewise, \(A \vee B\) would be the elements that exist in either set, in \(A \cup B\). When we are working with sets, we use the rounded version of the symbols; when we are working with statements, we use the pointy version.
Translate each statement into symbolic notation. Let \(P\) represent "I like Pepsi" and let Crepresent\(^{\text {"I like Coke" }}\).
- I like Pepsi or I like Coke.
- I like Pepsi and I like Coke.
- I do not like Pepsi.
- It is not the case that I like Pepsi or Coke.
- I like Pepsi and I do not like Coke.
Solution
- \(P \vee C\)
- \(P \wedge C\)
- \(\sim P\)
- \(\sim(P \vee C)\)
- \(P \wedge \sim C\)
As you can see, we can use parentheses to organize more complicated statements.
Translate “We have carrots or we will not make soup” into symbols. Let \(C\) represent “we have carrots” and let \(S\) represent “we will make soup”.
- Answer
-
\(C \vee \sim S\)
Because complex Boolean statements can get tricky to think about, we can create a truth table to keep track of what truth values for the simple statements make the complex statement true and false.
A table showing what the resulting truth value of a complex statement is for all the possible truth values for the simple statements.
Suppose you’re picking out a new couch, and your significant other says “get a sectional or something with a chaise”.
This is a complex statement made of two simpler conditions: “is a sectional”, and “has a chaise”. For simplicity, let’s use S to designate “is a sectional”, and C to designate “has a chaise”.
A truth table for this situation would look like this:
\(\begin{array}{|c|c|c|}
\hline S & C & S \text { or } C \\
\hline \mathrm{T} & \mathrm{T} & \mathrm{T} \\
\hline \mathrm{T} & \mathrm{F} & \mathrm{T} \\
\hline \mathrm{F} & \mathrm{T} & \mathrm{T} \\
\hline \mathrm{F} & \mathrm{F} & \mathrm{F} \\ \hline
\end{array}\)
In the table, T is used for true, and F for false. In the first row, if S is true and C is also true, then the complex statement “S or C” is true. This would be a sectional that also has a chaise, which meets our desire. (Remember that or in logic is not exclusive; if the couch has both features, it meets the condition.)
In the previous example about the couch, the truth table was really just summarizing what we already know about how the or statement work. The truth tables for the basic and, or, and not statements are shown below.
Conjunction
\(\begin{array}{|c|c|c|}
\hline A & B & A \wedge B \\
\hline \mathrm{T} & \mathrm{T} & \mathrm{T} \\
\hline \mathrm{T} & \mathrm{F} & \mathrm{F} \\
\hline \mathrm{F} & \mathrm{T} & \mathrm{F} \\
\hline \mathrm{F} & \mathrm{F} & \mathrm{F} \\
\hline
\end{array}\)
Disjunction
\(\begin{array}{|c|c|c|}
\hline A & B & A \vee B \\
\hline \mathrm{T} & \mathrm{T} & \mathrm{T} \\
\hline \mathrm{T} & \mathrm{F} & \mathrm{T} \\
\hline \mathrm{F} & \mathrm{T} & \mathrm{T} \\
\hline \mathrm{F} & \mathrm{F} & \mathrm{F} \\
\hline
\end{array}\)
Negation
\(\begin{array}{|c|c|}
\hline A & \sim A \\
\hline \mathrm{T} & \mathrm{F} \\
\hline \mathrm{F} & \mathrm{T} \\
\hline
\end{array}\)
Truth tables really become useful when we analyze more complex Boolean statements.
Create a truth table for the statement \(A \vee \sim B\)
Solution
When we create the truth table, we need to list all the possible truth value combinations for \(A\) and \(B\). Notice how the first column contains 2 Ts followed by \(2 ~\mathrm{Fs}\), and the second column alternates \(\mathrm{T}, \mathrm{F}, \mathrm{T}\), F. This pattern ensures that all 4 combinations are considered.
\(\begin{array}{|c|c|}
\hline A & B \\
\hline \mathrm{T} & \mathrm{T} \\
\hline \mathrm{T} & \mathrm{F} \\
\hline \mathrm{F} & \mathrm{T} \\
\hline \mathrm{F} & \mathrm{F} \\
\hline
\end{array}\)
After creating columns with those initial values, we create a third column for the expression \(\sim B\). Now we will temporarily ignore the column for \(A\) and write the truth values for \(\sim B\)
\(\begin{array}{|c|c|c|}
\hline A & B & \sim B \\
\hline \mathrm{T} & \mathrm{T} & \mathrm{F} \\
\hline \mathrm{T} & \mathrm{F} & \mathrm{T} \\
\hline \mathrm{F} & \mathrm{T} & \mathrm{F} \\
\hline \mathrm{F} & \mathrm{F} & \mathrm{T} \\
\hline
\end{array}\)
Next we can find the truth values of \(A \vee \sim B,\) using the first and third columns.
\(\begin{array}{|c|c|c|c|}
\hline A & B & \sim B & A \vee \sim B \\
\hline \mathrm{T} & \mathrm{T} & \mathrm{F} & \mathrm{T} \\
\hline \mathrm{T} & \mathrm{F} & \mathrm{T} & \mathrm{T} \\
\hline \mathrm{F} & \mathrm{T} & \mathrm{F} & \mathrm{F} \\
\hline \mathrm{F} & \mathrm{F} & \mathrm{T} & \mathrm{T} \\
\hline
\end{array}\)
The truth table shows that \(A \vee \sim B\) is true in three cases and false in one case. If you're wondering what the point of this is, suppose it is the last day of the baseball season and two teams, who are not playing each other, are competing for the final playoff spot. Anaheim will make the playoffs if it wins its game or if Boston does not win its game. (Anaheim owns the tie-breaker; if both teams win, or if both teams lose, then Anaheim gets the playoff spot.) If \(A=\) Anaheim wins its game and \(B=\) Boston wins its game, then \(A \vee\) \(\sim B\) represents the situation "Anaheim wins its game or Boston does not win its game". The truth table shows us the different scenarios related to Anaheim making the playoffs. In the first row, Anaheim wins its game and Boston wins its game, so it is true that Anaheim makes the playoffs. In the second row, Anaheim wins and Boston does not win, so it is true that Anaheim makes the playoffs. In the third row, Anaheim does not win its game and Boston wins its game, so it is false that Anaheim makes the playoffs. In the fourth row, Anaheim does not win and Boston does not win, so it is true that Anaheim makes the playoffs.
Create a truth table for this statement: \(\sim A \wedge B\)
- Answer
-
\(\begin{array}{|c|c|c|c|}
\hline A & B & \sim A & \sim A \wedge B \\
\hline \mathrm{T} & \mathrm{T} & \mathrm{F} & \mathrm{F} \\
\hline \mathrm{T} & \mathrm{F} & \mathrm{F} & \mathrm{F} \\
\hline \mathrm{F} & \mathrm{T} & \mathrm{T} & \mathrm{T} \\
\hline \mathrm{F} & \mathrm{F} & \mathrm{T} & \mathrm{F} \\
\hline
\end{array}\)
Create a truth table for the statement \(A \wedge \sim(B \vee C)\)
Solution
It helps to work from the inside out when creating a truth table, and to create columns in the table for intermediate operations. We start by listing all the possible truth value combinations for \(A, B,\) and \(C .\) Notice how the first column contains 4 Ts followed by \(4 \mathrm{Fs}\), the second column contains \(2 \mathrm{Ts}, 2 \mathrm{Fs}\), then repeats, and the last column alternates \(\mathrm{T}, \mathrm{F}, \mathrm{T}, \mathrm{F} \ldots\) This pattern ensures that all 8 combinations are considered. After creating columns with those initial values, we create a fourth column for the innermost expression, \(B \vee C .\) Now we will temporarily ignore the column for \(A\) and focus on \(B\) and \(C\), writing the truth values for \(B \vee C\)
\(\begin{array}{|c|c|c|}
\hline A & B & C \\
\hline \mathrm{T} & \mathrm{T} & \mathrm{T} \\
\hline \mathrm{T} & \mathrm{T} & \mathrm{F} \\
\hline \mathrm{T} & \mathrm{F} & \mathrm{T} \\
\hline \mathrm{T} & \mathrm{F} & \mathrm{F} \\
\hline \mathrm{F} & \mathrm{T} & \mathrm{T} \\
\hline \mathrm{F} & \mathrm{T} & \mathrm{F} \\
\hline \mathrm{F} & \mathrm{F} & \mathrm{T} \\
\hline \mathrm{F} & \mathrm{F} & \mathrm{F} \\
\hline
\end{array}\)
\(\begin{array}{|c|c|c|c|}
\hline A & B & C & B \vee C \\
\hline \mathrm{T} & \mathrm{T} & \mathrm{T} & \mathrm{T} \\
\hline \mathrm{T} & \mathrm{T} & \mathrm{F} & \mathrm{T} \\
\hline \mathrm{T} & \mathrm{F} & \mathrm{T} & \mathrm{T} \\
\hline \mathrm{T} & \mathrm{F} & \mathrm{F} & \mathrm{F} \\
\hline \mathrm{F} & \mathrm{T} & \mathrm{T} & \mathrm{T} \\
\hline \mathrm{F} & \mathrm{T} & \mathrm{F} & \mathrm{T} \\
\hline \mathrm{F} & \mathrm{F} & \mathrm{T} & \mathrm{T} \\
\hline \mathrm{F} & \mathrm{F} & \mathrm{F} & \mathrm{F} \\
\hline
\end{array}\)
Next we can find the negation of \(B \vee C\), working off the \(B \vee\) Ccolumn we just created. (Ignore the first three columns and simply negate the values in the \(B \vee C\) column.)
\(\begin{array}{|c|c|c|c|c|}
\hline A & B & C & B \vee C & \sim(B \vee C) \\
\hline \mathrm{T} & \mathrm{T} & \mathrm{T} & \mathrm{T} & \mathrm{F} \\
\hline \mathrm{T} & \mathrm{T} & \mathrm{F} & \mathrm{T} & \mathrm{F} \\
\hline \mathrm{T} & \mathrm{F} & \mathrm{T} & \mathrm{T} & \mathrm{F} \\
\hline \mathrm{T} & \mathrm{F} & \mathrm{F} & \mathrm{F} & \mathrm{T} \\
\hline \mathrm{F} & \mathrm{T} & \mathrm{T} & \mathrm{T} & \mathrm{F} \\
\hline \mathrm{F} & \mathrm{T} & \mathrm{F} & \mathrm{T} & \mathrm{F} \\
\hline \mathrm{F} & \mathrm{F} & \mathrm{T} & \mathrm{T} & \mathrm{F} \\
\hline \mathrm{F} & \mathrm{F} & \mathrm{F} & \mathrm{F} & \mathrm{T} \\
\hline
\end{array}\)
Finally, we find the values of \(A\) and \(\sim(B \vee C)\). (Ignore the second, third, and fourth columns.)
\(\begin{array}{|c|c|c|c|c|c|}
\hline A & B & C & B \vee C & \sim B \vee C) & A \wedge \sim B \vee C \text { ) } \\
\hline \text { T } & \text { T } & \text { T } & \text { T } & \text { F } & \text { F } \\
\hline \text { T } & \text { T } & \text { F } & \text { T } & \text { F } & \text { F } \\
\hline \text { T } & \text { F } & \text { T } & \text { T } & \text { F } & \text { F } \\
\hline \text { T } & \text { F } & \text { F } & \text { F } & \text { T } & \text { T } \\
\hline \text { F } & \text { T } & \text { T } & \text { T } & \text { F } & \text { F } \\
\hline \text { F } & \text { T } & \text { F } & \text { T } & \text { F } & \text { F } \\
\hline \text { F } & \text { F } & \text { T } & \text { T } & \text { F } & \text { F } \\
\hline \text { F } & \text { F } & \text { F } & \text { F } & \text { T } & \text { F } \\
\hline
\end{array}\)
It turns out that this complex expression is true in only one case: when \(A\) is true, \(B\) is false, and \(C\) is false. To illustrate this situation, suppose that Anaheim will make the playoffs if: (1) Anaheim wins, and (2) neither Boston nor Cleveland wins. IFF is the only scenario in which Anaheim will make the playoffs.
Create a truth table for this statement: \((\sim A \wedge B) \vee \sim B\)
- Answer
-
\(\begin{array}{|c|c|c|c|c|c|}
\hline A & B & \sim A & \sim A \wedge B & \sim B & (\sim A \wedge B) \vee \sim B \\
\hline \mathrm{T} & \mathrm{T} & \mathrm{F} & \mathrm{F} & \mathrm{F} & \mathrm{F} \\
\hline \mathrm{T} & \mathrm{F} & \mathrm{F} & \mathrm{F} & \mathrm{T} & \mathrm{T} \\
\hline \mathrm{F} & \mathrm{T} & \mathrm{T} & \mathrm{T} & \mathrm{F} & \mathrm{T} \\
\hline \mathrm{F} & \mathrm{F} & \mathrm{T} & \mathrm{F} & \mathrm{T} & \mathrm{T} \\
\hline
\end{array}\)