<?xml version="1.0" encoding="UTF-8"?>

<record version="11" id="532">
 <title>truth table</title>
 <name>TruthTable</name>
 <created>2001-10-26 06:52:44</created>
 <modified>2008-03-29 12:26:30</modified>
 <type>Definition</type>
 <creator id="6075" name="rspuzio"/>
 <author id="6075" name="rspuzio"/>
 <author id="2" name="akrowne"/>
 <classification>
	<category scheme="msc" code="03-00"/>
 </classification>
 <related>
	<object name="ZerothOrderLogic"/>
	<object name="PropositionalCalculus"/>
 </related>
 <preamble>\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{graphicx}
\usepackage{xypic}</preamble>
 <content>A \emph{truth table} is a tabular listing of all possible input value combinations for a logical function and their corresponding output values.  Similarly, the truth table of a logical proposition is the truth table of the corresponding logical function. 

For instance, the truth table of the connective ``or'' is as follows:
\begin{center}
\begin{tabular}{ccc}
$a$ &amp; $b$ &amp; $a \lor b$ \\
\hline 
F &amp; F &amp; F \\
F &amp; T &amp; T \\
T &amp; F &amp; T \\
T &amp; T &amp; T 
\end{tabular}
\end{center}

For $n$ input variables, there will always be $2^n$ rows in the truth table.  
A sample truth table for ``$(a \land b) \rightarrow c$'' would be

\begin{center}
\begin{tabular}{cccc}
$a$ &amp; $b$ &amp; $c$ &amp; $(a \land b) \rightarrow c$ \\
\hline 
F &amp; F &amp; F &amp; T \\
F &amp; F &amp; T &amp; F \\
F &amp; T &amp; F &amp; T \\
F &amp; T &amp; T &amp; F \\
T &amp; F &amp; F &amp; T \\
T &amp; F &amp; T &amp; F \\
T &amp; T &amp; F &amp; T \\
T &amp; T &amp; T &amp; T 
\end{tabular}
\end{center}

(Note that $\land$ represents logical and, while $\rightarrow$ represents the conditional truth function).

To compute truth tables of expressions, one often proceeds in steps.  for instance, 
to compute a truth table for ``$\neg p \lor (p \land q)$, one might proceed as follows:

\begin{center}
\begin{tabular}{ccccc}
$p$ &amp; $q$ &amp; $\neg p$ &amp; $(p \land q)$ &amp; $\neg p \lor (p \land q)$ \\
\hline 
F &amp; F &amp; T &amp; F &amp; T \\
F &amp; T &amp; T &amp; F &amp; T \\
T &amp; F &amp; F &amp; F &amp; F \\
T &amp; T &amp; F &amp; T &amp; T
\end{tabular}
\end{center}

For reference, here is a truth table of some popular connectives:

\begin{center}
\begin{tabular}{ccccccc}
$p$ &amp; $q$ &amp; $p \lor q$ &amp; $p \land q$ &amp; $p \veebar q$ &amp; $p \rightarrow q$ &amp; $p \leftrightarrow q$ \\
\hline 
F &amp; F &amp; F &amp; F &amp; F &amp; T &amp; T \\
F &amp; T &amp; T &amp; F &amp; T &amp; T &amp; F \\
T &amp; F &amp; T &amp; F &amp; T &amp; F &amp; F \\
T &amp; T &amp; T &amp; T &amp; F &amp; T &amp; T
\end{tabular}
\end{center}

For completeness, here are the remaining connectives, excluding trivial connectives which
depend on only one or none of their arguments:

\begin{center}
\begin{tabular}{ccccccccc}
$p$ &amp; $q$ &amp; $p \not\!\!\land q$ &amp; $p \not\!\lor q$ &amp; $p \leftarrow q$ &amp; $p \not\rightarrow q$ &amp; $p \not\!\leftarrow q$ \\
\hline 
F &amp; F &amp; T &amp; T &amp; T &amp; F &amp; F \\
F &amp; T &amp; T &amp; F &amp; F &amp; F &amp; T \\
T &amp; F &amp; T &amp; F &amp; T &amp; T &amp; F \\
T &amp; T &amp; F &amp; F &amp; T &amp; F &amp; F
\end{tabular}
\end{center}</content>
</record>
