Propositions can be linked together to form more complex propositions by logical connectives.
The principle logical connectives are:
-
$\neg$ (Smullyan uses ~) - negation, not -
$\and$ - conjunction, and -
$\or$ - disjunction, or -
$\to$ (Smullyan uses$\supset$ ) - implication, if-then -
$\equiv$ (sometimes written$\leftrightarrow$ ) - equivalence, if and only if, iff
For any proposition
The proposition
| T | F |
| F | T |
For any two propositions
| T | T | T |
| T | F | F |
| F | T | F |
| F | F | F |
For any two propositions
Note that this is "or" in the inclusive sense.
| T | T | T |
| T | F | T |
| F | T | T |
| F | F | F |
In the statement "if
Such a proposition is to be regarded as false iff the antecedent is true and the consequent is false (cf. chapter 1 notes).
Symbolically,
| T | T | T |
| T | F | F |
| F | T | T |
| F | F | T |
We write
This is read "$p$ if and only if
| T | T | T |
| T | F | F |
| F | T | F |
| F | F | T |
Show that the set of all formulas of propositional logic is a denumerable set.
If we consider the five connectives shown above, we see that one is unary and four are binary.
Given a single proposition
With two propositions
And so forth for the other three binary connectives (
With three propositions
In order to calculate the number of ternary formulas, we must take the number of binary formulas and multiply it by the number of unary formulas (8), binary connectives (4), and possible precedences (2), so
So the total number of formulas for three propositions is
In any case, we can see that for any finite number
So to enumerate the set of formulas we simply enumerate all possible formulas for
In addition to the simple truth tables given above, we can determine the truth value for any complex formula of two propositions
For example, suppose
Given the truth values of
| T | T | T | F | T | T |
| T | F | F | T | T | T |
| F | T | F | T | T | F |
| F | F | F | T | T | F |
Obviously, we can construct a truth table for a formula with three propositions
In general, given
Consider the formula
We see that its value is true in all four cases; that is to say, it is true under all interpretations.
A formula is a tautology if it is true under all interpretations; it is contradictory if false under all interpretations.
A formula that is true under some interpretations and false under others is contingent, that is to say, neither a contradiction nor a tautology.
-
Which of the following are tautologies, contradictions, and contingent?
a.
$(p \to q) \to (q \to p)$ $p$ $q$ $p \to q$ $q \to p$ $(p \to q) \to (q \to p)$ T T T T T T F F T T F T T F F F F T T T Contingent.
b.
$(p \to q) \to (\neg p \to \neg q)$ $p$ $q$ $p \to q$ $\neg p \to \neg q$ $(p \to q) \to (\neg p \to \neg q)$ T T T T T T F F T T F T T F F F F T T T Contingent, equivalent to (a).
c.
$(p \to q) \to (\neg q \to \neg p)$ $p$ $q$ $p \to q$ $\neg q \to \neg p$ $(p \to q) \to (\neg q \to \neg p)$ T T T T T T F F F T F T T T T F F T T T Tautology.
d.
$p \to \neg p$ $p$ $\neg p$ $p \to \neg p$ T F F F T T Contingent, equivalent to
$\neg p$ .e.
$p \equiv \neg p$ $p$ $\neg p$ $p \equiv \neg p$ T F F F T F Contradiction.
f.
$(p \equiv q) \equiv (\neg p \equiv \neg q)$ $p$ $q$ $p \equiv q$ $\neg p \equiv \neg q$ $(p \equiv q) \equiv (\neg p \equiv \neg q)$ T T T T T T F F F T F T F F T F F T T T Tautology.
g.
$\neg (p \and q) \equiv (\neg p \and \neg q)$ $p$ $q$ $\neg(p \and q)$ $\neg p \and \neg q$ $\neg (p \and q) \equiv (\neg p \and \neg q)$ T T F F T T F T F F F T T F F F F T T T Contingent, equivalent to
$\equiv$ .h.
$\neg (p \and q) \equiv (\neg p \or \neg q)$ $p$ $q$ $\neg (p \and q)$ $\neg p \or \neg q$ $\neg (p \and q) \equiv (\neg p \or \neg q)$ T T F F T T F T T T F T T T T F F T T T Tautology (cf. De Morgan's laws).
i.
$(\neg p \or \neg q) \equiv \neg (p \or q)$ $p$ $q$ $\neg p \or \neg q$ $\neg (p \or q)$ $(\neg p \or \neg q) \equiv \neg (p \or q)$ T T F F T T F T F F F T T F F F F T T T Contingent, equivalent to
$\equiv$ and (g).j.
$(\neg p \or \neg q) \equiv \neg (p \and q)$ $p$ $q$ $\neg p \or \neg q$ $\neg (p \and q)$ $(\neg p \or \neg q) \equiv \neg (p \or q)$ T T F F T T F T T T F T T T T F F T T T Tautology (cf. De Morgan's laws).
k.
$(p \equiv (p \and q)) \equiv (q \equiv (p \or q))$ $p \and q$ $p \or q$ $p \equiv p \and q$ $q \equiv p \or q$ $(p \equiv (p \and q)) \equiv (q \equiv (p \or q))$ T T T T T F T F F T F T T T T F F F F T Tautology.
-
What method can be used to find a formula to match an arbitrary truth table?
$p$ $q$ $r$ $X$ T T T T T T F F T F T T F T T F T F F T F T F F F F T F F F F F Every row of the table has a value of either true or false; let's consider only those whose value is true.
For each such row, write each proposition (or its negation) and connect them with
$\and$ , creating a formula whose truth value will match that of the table for that row.For the above table we get the following formulas,
$p \and q \and r$ ,$p \and q \and \neg r$ ,$p \and \neg q \and \neg r$ .Then, since we want a formula that is true iff one of the resulting formulas are true, we simply combine them with
$\or$ .For this table, that gives us
$(p \and q \and r) \or (p \and q \and \neg r) \or (p \and \neg q \and \neg r)$ .Propositional Constants
Formulas may include the symbols
$t$ and$f$ , whose values are always true and false respectively.Any formula involving
$t$ or$f$ is equivalent to a formula involving no constants, or$t$ alone, or$f$ alone. -
Reduce the following formulas either to a formula with no constants, or
$t$ , or$f$ .a.
$((t \to p) \and (q \or f)) \to ((q \to f) \or (r \and t))$ $(p \and q) \to (\neg q \or r)$ b.
$(p \or t) \to q$ $t \to q$ $q$ c.
$\neg (p \or t) \equiv (f \to q)$ $\neg t \equiv t$ $f \equiv t$ $f$ -
Knights and Knaves
a. If A says, "Both of us are knaves," then he is saying that he is a liar, which is a contradiction.
But his statement is still false if B is a knight, since only one of the two conditions need be false in order for the statement to be false.
Therefore, A is a knave and B is a knight
b. If A says, "At least one of us is a knave," then A must be a knight and B a knave.
If A is a knave, then he would have made a true statement, which is a contradiction.
So A must be a knight, and since his statement is true, B must be a knave.
c. A says, "B and I are of the same type, either both knights or both knaves."
If A is a knight, then B also has to be a knight, since A's statement is true.
If A is a knave, then they cannot both be of the same type, so B must be a knight.
Hence, B must be a knight, but we cannot determine A's type.
-
$p \or q \iff \neg (\neg p \and \neg q)$ -
$p \and q \iff \neg (\neg p \or \neg q)$ -
$p \to q \iff \neg(p \and \neg q)$ -
$p \to q \iff \neg p \or q$ -
$p \and q \iff \neg (p \to \neg q)$ -
$p \or q \iff \neg p \to q$ -
$p \or q \iff (p \to q) \to q$ -
$p \equiv q \iff (p \to q) \and (q \to p)$ -
$p \equiv q \iff (p \and q) \or \neg (p \or q)$ -
$\neg p \iff p \to f$ Joint Denial
We show above that all five logical connectives can be defined in terms of
$\neg,\and$ , or$\neg,\or$ , or$\neg,\to$ , or$\to,f$ .There is a single connective, joint denial, that can define all other connectives.
Joint denial means, "Both
$p$ and$q$ are false," or symbolically,$p \downarrow q$ (cf. NOR).$p$ $q$ $p \downarrow q$ T T F T F F F T F F F T -
$\neg p \iff p \downarrow p$ $\neg (p \downarrow q) \iff p \or q$ By problem 6,
$\and$ can be derived from$\or$ and$\neg$ , and by problem 2 any truth table can be derived from$\and, \or, \neg$ .Alternative Denial
There is another single connective from which all others can be derived.
Alternative denial means, "At least one of
$p,q$ is false," and is written$p \mid q$ or$p \uparrow q$ .Also called Sheffer stroke (cf. NAND).
$p$ $q$ $p \uparrow q$ T T F T F T F T T F F T -
$\neg p \iff p \uparrow p$ (Incidentally,
$p \uparrow p \iff p \downarrow p \iff \neg p$ )$\neg (p \uparrow q) \iff p \and q$ By problem 5,
$\or$ can be derived from$\neg$ and$\and$ , and by problem 2 any truth table can be derived from$\and, \or, \neg$ . -
"If I am a knight, then there is gold here."
The only way for a statement of implication to fail to be true is if the antecedent is true and the consequent is false.
In this case, then, the statement, "I am a knight" would have to be true.
But this would be a contradiction, since a knight cannot make a false statement.
Therefore, the implication must be true, and since it is true, the antecedent (that the speaker is a knight) also must be true (since only a knight makes true statements), and therefore the consequent, that there must be gold here, also follows.
-
$p \and q \iff (p \to q) \equiv p$ This relates to 19 because in 19, we take the proposition
$p \to q$ (if I am a knight, there is gold), and make it's truth value equivalent to that of$p$ (since only knights can make true statements).As we saw above, the statement was true, and its being true implied that both the antecedent and the precedent were true.
If either the antecedent, the precedent, or both had been false, the entire equivalence would have been false.