Logic and Truth Tables: Fundamentals
1Introduction
This lecture defines the logical connectives used to construct compound propositions and explains how truth tables determine properties of logical formulas. In particular, it clarifies the direction of implication and the roles of necessary and sufficient conditions.
2Propositions and Truth Values
A {proposition} is a declarative sentence that has exactly one of the two truth values: true or false. We write when a proposition is true and when it is false. A question, or a sentence whose truth cannot be determined until a variable is specified, is not itself a proposition.
3Logical Connectives
Let and be propositions.
- The {negation} has the truth value opposite to that of .
- The {conjunction} is true if and only if both and are true.
- The {disjunction} is true if and only if at least one of and is true. Thus, this inclusive “or” includes the case in which both propositions are true.
- The {implication} is false if and only if is true and is false. We call the antecedent and the consequent.
- The {biconditional} is true if and only if and have the same truth value.
4Truth Tables
A {truth table} lists the truth value of a logical formula for every assignment of truth values to its component propositions. The basic formulas involving two propositions are defined by the following table.
For , the implication is true in both rows in which the antecedent is false. This convention reflects that is not an assertion of causation; instead, it states that there is no counterexample in which is true while is false.
5Tautologies, Contradictions, and Logical Equivalence
A {tautology} is a formula that is true under every assignment of truth values. A {contradiction} is a formula that is false under every assignment. For example, is a tautology, whereas is a contradiction.
Two formulas and are {logically equivalent}, written , if they have the same truth value under every assignment. Equivalently, is a tautology. For example, implication satisfies
6Direction of Implication and Necessary and Sufficient Conditions
In , is a {sufficient condition} for , and is a {necessary condition} for . That is, the truth of guarantees the truth of , and must be true whenever is true.
The statement is the {converse} of and, in general, does not follow from the original implication. In contrast, is its {contrapositive}, and
For conditions and containing a variable, if both and hold for every object under consideration, then is a tautology, and is a {necessary and sufficient condition} for . The fact that both implications are true under one particular truth-value assignment does not establish this relationship.
7Example
For an integer , let mean “ is divisible by 4,” and let mean “ is even.” Until is specified, and are not propositions; they are {predicates} that assign truth values to integers. The implication holds for every integer , so divisibility by 4 is sufficient for being even. In contrast, is true and is false, so is a counterexample to .
8Key Points
- The meanings of logical connectives are determined by truth tables, not by informal impressions of natural-language expressions.
- A tautology is true in every row of its truth table, whereas a contradiction is false in every row.
- Logical equivalence means agreement under every assignment of truth values.
- In , is sufficient and is necessary; the converse must not be confused with the contrapositive.