next up previous
Next: Quantifiers Up: Some Basic Logic Previous: Some Basic Logic

Truth functions and propositional logic

Definition 1   A proposition is a statement which has a definite truth value (either true or false).

We also use the term Proposition informally when distinguishing Propositions, Theorems, Corollaries, and Lemmata. A Theorem is usually a big result you have to work hard for. A Proposition is a little theorem which probably follows fairly quickly from definitions. A Lemma is a technical result mostly used in proving other theorems. A Corollary is a result which follows quickly from a Theorem or Proposition. Since all of the statements of Theorems, Propositions, Lemmata, and Corollaries are sentences with determinate truth value, all are propositions. In fact, they are all propositions which are true!

In classical mathematics, unlike real life, all of our statements are propositions. Since they take on only the truth values T and F, we can define connectives by saying what they do to truth values:

Definition 2   The connectives and , written $\wedge$, or, written $\vee$, not, written $\lnot$, implies, written $\rightarrow$, and iff, written $\leftrightarrow$ are defined by the truth tables
$p$ $q$ $p\wedge q$ $p\vee q$ $\lnot p$ $p \rightarrow q$ $p \leftrightarrow q$
T T T T F T T
T F F T F F F
F T F T T T F
F F F F T T T

Proposition 1   Any truth function in two variables can be expressed using $\wedge$, $\vee$, and $\lnot$.

(5 Points )

Hint: First try expressing truth functions which have exactly one T in their truth tables; then combine using ``or''.$\spadesuit$

Proposition 2   Any truth function in two variables can be expressed using $\rightarrow$ and $\lnot$.

(4 Points )

Proposition 3   Any truth function in two variables can be expressed using only the connective $p\vert q$ whose truth table is given by
$p$ $q$ $p\vert q$
T T F
T F T
F T T
F F T

(4 Points )

Proposition 4   Any truth function in n variables can be written in either disjunctive normal form (as a disjunction ``or'' of terms which are ``ands'' of variables and negations of variables) or conjunctive normal form (an ``and'' of terms which are ``ors'' of variables and negations of variables).

(4 Points )

These results collectively give what is called functional completeness of the connectives sufficient to express all possible truth functions. Switching theory modifies these results to design logic circuits which use a minimum of components or a minimum depth to the expression (for fast execution).

Looking at the truth tables we can derive some standard rules of inference. The premises are listed above the line and the conclusions below. Look at the truth tables to see that if all of the premises get a truth value of T then so do the conclusions. In logic this is called soundness of the rules of inference.

Proposition 5   The following rules of inference always transform true premises to true conclusions:
  1. Modus Ponens $\displaystyle{\frac{ p, p\rightarrow q}{q}} $
  2. Contrapositive $\displaystyle{\frac{\lnot q \rightarrow \lnot p }{p\rightarrow q}} $
  3. Argument from cases $\displaystyle{\frac{p\vee q, p\rightarrow r, q\rightarrow r }{r}} $
  4. Indirect proof: $\displaystyle{\frac{\lnot\lnot p}{p}} $ This tells us that we can prove a statement by showing that its negation is impossible.

(8 Points )

The standard form of direct argument uses what is called the deduction theorem: to prove $p \rightarrow q$ it suffices to show that $q$ follows from $p$. From truth tables the soundness of this form of argument can be seen from the fact that $p \rightarrow q$ is true if $p$ is false or if both $p$ and $q$ are true. The deduction theorem in logic says that if we have a proof starting with a premise $p$ and leading to a conclusion $q$ then we can transform it into a proof from no premises leading to $p \rightarrow q$.


next up previous
Next: Quantifiers Up: Some Basic Logic Previous: Some Basic Logic
Larry Stout 2001-08-17
photoshop download microsoft office 2010 home and student discount buy adobe photoshop lightroom buy publisher 2013 microsoft office 2010 pro price buy photoshop cs6 cheap purchase windows xp home edition purchase windows 7 windows 7 educational discount