9 Logic
Smith [14] says in the preface of his introductory textbook to advanced mathematics, “mathematics is concerned with the formation of a theory (collection of true statements) that describes patterns or relationships among quantities and structures.” To formulate a theory, we need logic, preferably a sound one, and among two lines of thoughts to build – deduction and induction. Let us begin with the definitions of a few key terms.
A proposition is a sentence that has one and only truth value, either true or false, usually denoted by T or F, respectively. The negation of a proposition , denoted by , is the proposition “not .”
Note that, colloquially, the negation and the denial of a proposition are essentially the same. However, in terms of logic, there is only one negation, , yet there can be many denials, so long as it is equivalent to the negation (e.g. ).
Continuing to introduce important terms, the conjunction of two propositions, denoted , means and , whereas the disjunction of two propositions, denoted , means or . A tautology is a propositional form that is true, irrespective of the truth values of the propositions involved, and a contradiction, the opposite of a tautology, is a propositional form that is false, irrespective of the truth values of the propositions involved. In other words, tautology is always true and contradiction is always false.
Suppose there are propositions. Then, there can be possible cases in total, since each proposition can be assigned either T or F, but not T and F. It would be convenient for us to list and examine all these possible cases in a structured way – it is a truth table. Looking at an example would make it easier to understand.
Example. Show that is a contradiction using a truth table.
The truth table above has 4 input rows, either T or F assigned to each proposition or . The proposition of interest, , is shown in the rightmost column. The columns in between reflect the steps we go through to evaluate the truth value of , as the proposition is not in a form readily assessable.
In the first three columns, we assessed the truth value of the first half, , and in the three columns in the middle, the latter half, , then comparing the truth values of and , we finally assign values to in the last column. We can see, the values are all F, for all possible cases of and . Therefore, is a contradiction.
Definition. (The Equivalence of Propositional Forms)
The propositional forms having the same truth tables are equivalent.
What about conditional clauses? We all have heard of expressions in the form of, for example, “if , then .” How do we deal with this? Let us define terms and introduce notations, first.
The conditional, denoted , means if , then . The conditional in reverse order, , is called the converse and is called the contrapositive of . The biconditional, denoted and read “ if and only if (iff) “, means the truth value of and are always the same.
Utilizing the conditionals, here we introduce a famous theorem:
Theorem.
For propositions and ,
- is equivalent to
- is not equivalent to
Proof.
The proof is straightforward with a truth table. Note the truth value of is identical with , but not with .
Note that, by the Hierarchy of Connectives, the connectives are always applied in the order of , , , , and .
DeMorgan’s Laws
Now we introduce famous DeMorgan’s Laws. On hearing DeMorgan’s Laws, Some might recall a set theory. However, originally DeMorgan’s Laws were established in propositional logic and Boolean algebra.
Theorem. (DeMorgan’s Laws)
For propositions and ,
- is equivalent to
- is equivalent to
Proof of DeMorgan’s Laws.
Following are the truth tables of cases of DeMorgan’s Laws.
We can see the equivalence of and .
We can see the equivalence of and .
We see a pattern, when removing a parenthesis, is applied to and flips each element inside, converting to , to , and vice versa.