Logical Connectives and Their Truth Tables
Logical Connectives: Introduction
In the previous sections, we learned about simple mathematical statements (propositions) and how to form their negation. However, complex arguments and mathematical theorems are built by combining multiple simple statements. This is achieved using logical connectives, which act as the glue binding propositions together to form compound statements.
What are Logical Connectives?
Logical connectives (or logical operators) are symbols or words used to connect two or more simple statements, or to modify a single statement, to form a new, compound statement. The truth value of this new compound statement is determined solely by the truth values of its component statements and the specific connective used.
Think of them like mathematical operators ($+, -, \times, \div$) but for logic. Just as '$2 + 3$' produces a value based on the numbers 2 and 3 and the '+' operator, a compound statement like '$p$ and $q$' produces a truth value based on the truth values of $p$ and $q$ and the "and" connective.
Primary Logical Connectives
The main logical connectives, along with their corresponding English terms and symbols, are:
- Conjunction: Corresponds to the word "and". Symbol: $\land$.
- Disjunction: Corresponds to the word "or". Symbol: $\lor$.
- Negation: Corresponds to the word "not". Symbols: $\sim$ or $\neg$. (As noted before, this is a unary operator, acting on a single statement).
- Conditional (Implication): Corresponds to the phrase "if... then...". Symbols: $\implies$ or $\rightarrow$.
- Biconditional (Equivalence): Corresponds to the phrase "if and only if". Symbols: $\iff$ or $\leftrightarrow$.
The meaning of each connective is formally defined by its truth table, which lists the resulting truth value of the compound statement for every possible combination of truth values of its component statements.
In the following sections, we will delve into the truth tables and properties of Conjunction and Disjunction, and we have already covered Negation. Conditional and Biconditional statements will be covered later.
Competitive Exam Pointer: Basic Connectives
In logic and reasoning sections of competitive exams, you must be able to:
- Recognise the English words ("and", "or", "not", "if...then...", "if and only if") associated with the standard logical connectives.
- Know the symbols ($\land, \lor, \sim/\neg, \implies/\rightarrow, \iff/\leftrightarrow$) corresponding to these connectives.
- Understand that the truth value of a compound statement is determined by the truth values of its simple components and the connective used.
- Prepare to learn and apply the truth tables for each connective, as these are fundamental for solving problems involving compound statements.
Conjunction (AND, $\land$) and its Truth Table
The conjunction is one of the simplest ways to combine two statements. It corresponds to the English word "and". When we connect two statements with "and", we are asserting that both statements are true.
Definition of Conjunction
Let $p$ and $q$ be two simple statements. The conjunction of $p$ and $q$ is the compound statement formed by connecting $p$ and $q$ with the word "and".
- Symbol: The symbol for conjunction is $\land$.
- Notation: The conjunction of $p$ and $q$ is written as $p \land q$.
- Read as: "$p$ and $q$".
The truth value of the conjunction $p \land q$ is defined as follows: $p \land q$ is True if and only if both $p$ is true and $q$ is true. In all other cases (if $p$ is false, or $q$ is false, or both are false), the conjunction $p \land q$ is False.
Truth Table for Conjunction ($\land$)
The truth table for conjunction systematically lays out the truth value of $p \land q$ for every possible combination of truth values for $p$ and $q$. Since there are two component statements, and each can be either True or False, there are $2 \times 2 = 4$ possible combinations of truth values for the pair $(p, q)$.
$p$ | $q$ | $p \land q$ |
---|---|---|
T | T | T |
T | F | F |
F | T | F |
F | F | F |
This table clearly shows that the only time the conjunction $p \land q$ is True is when both $p$ and $q$ are True (the first row). Any instance of a False component statement makes the entire conjunction False.
Example 1. Let $p$ be the statement "It is raining" and $q$ be the statement "The temperature is above $25^\circ\text{C}$". Determine the truth value of the compound statement "$p \land q$" ("It is raining and the temperature is above $25^\circ\text{C}$") under the following conditions:
(i) It is raining, and the temperature is $28^\circ\text{C}$.
(ii) It is not raining, and the temperature is $30^\circ\text{C}$.
(iii) It is raining, and the temperature is $20^\circ\text{C}$.
(iv) It is not raining, and the temperature is $22^\circ\text{C}$.
Answer:
Let's evaluate the truth values of $p$ and $q$ in each case and then find the truth value of $p \land q$ using the truth table for conjunction:
(i) It is raining (True), temperature is $28^\circ\text{C}$ (above $25^\circ\text{C}$) (True).
- Truth value of $p$: T
- Truth value of $q$: T
- Truth value of $p \land q$: T $\land$ T = T
(ii) It is not raining (False), temperature is $30^\circ\text{C}$ (above $25^\circ\text{C}$) (True).
- Truth value of $p$: F
- Truth value of $q$: T
- Truth value of $p \land q$: F $\land$ T = F
(iii) It is raining (True), temperature is $20^\circ\text{C}$ (not above $25^\circ\text{C}$) (False).
- Truth value of $p$: T
- Truth value of $q$: F
- Truth value of $p \land q$: T $\land$ F = F
(iv) It is not raining (False), temperature is $22^\circ\text{C}$ (not above $25^\circ\text{C}$) (False).
- Truth value of $p$: F
- Truth value of $q$: F
- Truth value of $p \land q$: F $\land$ F = F
As the truth table shows, the compound statement is True only in case (i) where both simple statements are True.
Competitive Exam Pointer: Conjunction
Conjunction is frequently used in logical reasoning problems. Remember the key rule:
- The statement "$p$ and $q$" is **TRUE** only when **both** $p$ and $q$ are True.
- If even one part of an "and" statement is False, the whole statement is False.
Be prepared to evaluate the truth of conjunctions in various contexts, including mathematical statements and everyday sentences. You might also be asked to negate a conjunction (e.g., "It is not the case that ($p$ and $q$)"), which involves De Morgan's laws, covered later.
Disjunction (OR, $\lor$) and its Truth Table (Inclusive and Exclusive OR)
Disjunction is another common logical connective, corresponding to the English word "or". However, the word "or" can have two different meanings in English: inclusive or exclusive. In mathematical logic, "or" is almost always used in the inclusive sense unless explicitly stated otherwise.
Definition of Disjunction (Inclusive OR)
Let $p$ and $q$ be two simple statements. The disjunction of $p$ and $q$ is the compound statement formed by connecting $p$ and $q$ with the word "or".
- Symbol: The symbol for disjunction is $\lor$.
- Notation: The disjunction of $p$ and $q$ is written as $p \lor q$.
- Read as: "$p$ or $q$".
In the standard (inclusive) sense, the disjunction $p \lor q$ is considered True if $p$ is true, or if $q$ is true, or if both $p$ and $q$ are true. The disjunction $p \lor q$ is False only when both $p$ is false and $q$ is false.
Think of a common example: "You will pass the exam if you study hard or you are lucky." The promise holds true if you study hard, or if you are lucky, or if you are both studied hard and lucky. The promise is broken only if you neither study hard nor are lucky.
Truth Table for Disjunction ($\lor$, Inclusive OR)
The truth table for inclusive disjunction shows the truth value of $p \lor q$ for all 4 possible combinations of truth values for $p$ and $q$:
$p$ | $q$ | $p \lor q$ |
---|---|---|
T | T | T |
T | F | T |
F | T | T |
F | F | F |
This table shows that $p \lor q$ is True in three out of four cases. It is False only in the last row where both $p$ and $q$ are False.
Example 1. Let $p$ be the statement "The train is late" and $q$ be the statement "The bus is late". Determine the truth value of the compound statement "$p \lor q$" ("The train is late or the bus is late") under the following scenarios:
(i) The train is late, and the bus is late.
(ii) The train is late, but the bus is on time.
(iii) The train is on time, but the bus is late.
(iv) The train is on time, and the bus is on time.
Answer:
Let's assign truth values to $p$ and $q$ in each scenario and then use the inclusive OR truth table:
(i) Train late (True), Bus late (True).
- Truth value of $p$: T
- Truth value of $q$: T
- Truth value of $p \lor q$: T $\lor$ T = T
(ii) Train late (True), Bus on time (False).
- Truth value of $p$: T
- Truth value of $q$: F
- Truth value of $p \lor q$: T $\lor$ F = T
(iii) Train on time (False), Bus late (True).
- Truth value of $p$: F
- Truth value of $q$: T
- Truth value of $p \lor q$: F $\lor$ T = T
(iv) Train on time (False), Bus on time (False).
- Truth value of $p$: F
- Truth value of $q$: F
- Truth value of $p \lor q$: F $\lor$ F = F
The compound statement is True in the first three cases, where at least one of the original statements is True. It's False only when both are False.
Exclusive OR (XOR)
Sometimes in everyday language, "or" is used to mean "one or the other, but not both". This is called the exclusive OR. For example, "You can have tea or coffee" usually implies you choose only one.
The statement "$p$ exclusive or $q$" is true if exactly one of $p$ or $q$ is true. It is false if $p$ and $q$ are both true or both false.
Symbol: Exclusive OR is often denoted by $\oplus$ or sometimes XOR.
Truth Table for Exclusive OR ($\oplus$):
$p$ | $q$ | $p \oplus q$ |
---|---|---|
T | T | F |
T | F | T |
F | T | T |
F | F | F |
Notice the difference in the first row compared to the inclusive OR truth table. In inclusive OR, T $\lor$ T is T; in exclusive OR, T $\oplus$ T is F.
Note: Unless a problem explicitly mentions "exclusive or" or uses the symbol $\oplus$, always interpret "or" ($\lor$) in the inclusive sense in mathematical logic.
Example 2. Let $p$ be "The number is even" and $q$ be "The number is odd". Consider the statement "The number is even exclusive or the number is odd" ($p \oplus q$). Determine its truth value for the number 4 and the number 7.
Answer:
Let's evaluate for the number 4:
- Statement $p$ ("The number is even") for number 4 is True.
- Statement $q$ ("The number is odd") for number 4 is False.
- Truth value of $p \oplus q$ for number 4: T $\oplus$ F = T. (Using the XOR truth table, second row). This makes sense, as a number is either even or odd, but not both.
Let's evaluate for the number 7:
- Statement $p$ ("The number is even") for number 7 is False.
- Statement $q$ ("The number is odd") for number 7 is True.
- Truth value of $p \oplus q$ for number 7: F $\oplus$ T = T. (Using the XOR truth table, third row).
The statement "$p \oplus q$" would be False for a number that is neither even nor odd (like a fraction or irrational number, assuming the universe of discourse includes non-integers), or for a number that is somehow considered both (which doesn't happen with standard definitions of even/odd integers).
Competitive Exam Pointer: Disjunction (Inclusive vs. Exclusive)
The distinction between inclusive and exclusive OR is important. In standard logic problems:
- Assume "or" ($\lor$) is **INCLUSIVE** unless stated otherwise. The inclusive OR is **TRUE** if at least one component is True; it's **FALSE** only when both components are False.
- Exclusive OR (XOR, $\oplus$) is **TRUE** only when exactly one component is True; it's **FALSE** when components have the same truth value (both T or both F).
Truth tables for both types of disjunction are essential to know for evaluating compound statements accurately.
Truth Table for Negation ($\neg$)
Negation is the simplest logical operation as it applies to a single statement. As previously defined, the negation of a statement $p$ is a new statement that asserts the opposite of $p$. The truth value of the negation is always the reverse of the truth value of the original statement.
Understanding the Negation Operator
The negation operator takes one statement as input and produces another statement as output. Its effect on the truth value is direct and absolute:
- If the input statement $p$ is True, the output statement $\sim p$ (or $\neg p$) is False.
- If the input statement $p$ is False, the output statement $\sim p$ (or $\neg p$) is True.
This behavior is precisely captured by its truth table.
Truth Table for Negation ($\sim$ or $\neg$)
The truth table for negation systematically lists all possible truth values for the input statement $p$ and shows the corresponding truth value for the negated statement $\sim p$. Since there is only one input statement $p$, which can be either True (T) or False (F), the truth table has only two rows (excluding the header row).
$p$ | $\sim p$ (or $\neg p$) |
---|---|
T | F |
F | T |
This truth table is the fundamental definition of logical negation. It shows that the truth value of $\sim p$ is False when $p$ is True, and True when $p$ is False.
Negation is a unary operator because it operates on a single operand (one statement). Other connectives like "and" ($\land$) and "or" ($\lor$) are binary operators because they operate on two operands (two statements).
Competitive Exam Pointer: Truth Table for Negation
The truth table for negation is very simple but extremely important. Memorise it or understand it conceptually: negation always flips the truth value. This is crucial for:
- Evaluating the truth value of simple negated statements.
- Constructing truth tables for more complex compound statements that involve negation.
- Understanding logical equivalences and logical rules (like De Morgan's Laws, which involve negation).
If a question gives you the truth value of $\sim p$, you should immediately know the truth value of $p$.
Constructing Truth Tables for Simple Compound Statements
Truth tables are indispensable tools in propositional logic. They provide a systematic way to determine the truth value of any compound statement for every possible combination of truth values of its simple component statements. Constructing truth tables allows us to analyze the logical structure of statements and understand their behavior under different conditions.
Steps for Constructing a Truth Table
Follow these steps to construct a truth table for any compound statement:
- Identify All Simple Statements: List all the distinct simple propositional variables (usually denoted by $p, q, r, ...$) that appear in the compound statement.
- Determine the Number of Rows: If there are $n$ distinct simple statements, then there are $2^n$ possible combinations of their truth values (since each statement can be either True or False). The truth table will require $2^n$ rows, in addition to the header row. For example:
- 1 simple statement ($p$): $2^1 = 2$ rows.
- 2 simple statements ($p, q$): $2^2 = 4$ rows.
- 3 simple statements ($p, q, r$): $2^3 = 8$ rows.
- Set Up Columns for Simple Statements: Create the first $n$ columns for each of the simple statements identified in step 1. Fill these columns with all $2^n$ possible combinations of Truth (T) and False (F). A standard way to do this is to make the rightmost column alternate T, F, T, F, ...; the column to its left alternate TT, FF, TT, FF, ...; the next column alternate TTTT, FFFF, ...; and so on, until the leftmost simple statement column has $2^{n-1}$ T's followed by $2^{n-1}$ F's.
- Add Columns for Sub-expressions: If the compound statement contains parenthetical expressions or negations of simple statements, create separate columns for these intermediate logical steps. This helps in breaking down the calculation. Calculate the truth values for these columns row by row, using the truth values from the simple statement columns and the definitions of the connectives/operators involved ($\sim, \land, \lor$, etc.).
- Add the Final Column: Create the last column for the entire compound statement. Using the truth values from the simple statement columns and any necessary intermediate columns, calculate the truth value of the final statement for each row based on the definition of the main logical connective.
Example for 2 variables ($p, q$):
$p$ | $q$ |
---|---|
T | T |
T | F |
F | T |
F | F |
Example for 3 variables ($p, q, r$):
$p$ | $q$ | $r$ |
---|---|---|
T | T | T |
T | T | F |
T | F | T |
T | F | F |
F | T | T |
F | T | F |
F | F | T |
F | F | F |
Let's apply these steps to construct truth tables for some simple compound statements.
Example 1. Construct the truth table for the compound statement $\sim p \lor q$.
Answer:
1. Simple Components: The distinct simple statements are $p$ and $q$.
2. Number of Rows: There are $n=2$ simple statements, so there will be $2^2 = 4$ rows.
3. Columns for Components: We set up columns for $p$ and $q$ with all 4 combinations of truth values.
4. Intermediate Operation: The statement contains $\sim p$. So, we add a column for $\sim p$. We calculate the truth values for $\sim p$ by taking the opposite truth value of the corresponding row in the $p$ column.
5. Final Statement: The main connective is $\lor$ (OR), connecting $\sim p$ and $q$. We add the final column for $\sim p \lor q$. We calculate the truth values for this column row by row using the values from the $\sim p$ column and the $q$ column, applying the rule for inclusive OR ($\lor$ is False only if both components are False).
Truth Table for $\sim p \lor q$:
$p$ | $q$ | $\sim p$ | $\sim p \lor q$ |
---|---|---|---|
T | T | F | F $\lor$ T = T |
T | F | F | F $\lor$ F = F |
F | T | T | T $\lor$ T = T |
F | F | T | T $\lor$ F = T |
The final column provides the truth value of the compound statement $\sim p \lor q$ for each possible truth assignment of $p$ and $q$.
Example 2. Construct the truth table for the compound statement $p \land (\sim q)$.
Answer:
1. Components: The distinct simple statements are $p$ and $q$.
2. Rows: There are $n=2$ simple statements, so $2^2 = 4$ rows.
3. Component Columns: Set up columns for $p$ and $q$ with all 4 combinations.
4. Intermediate: The statement contains $\sim q$. Add a column for $\sim q$ and calculate its truth values by negating the values in the $q$ column.
5. Final: The main connective is $\land$ (AND), connecting $p$ and $\sim q$. Add the final column for $p \land (\sim q)$. Use the values from the $p$ column and the $\sim q$ column, applying the rule for conjunction ($\land$ is True only if both components are True).
Truth Table for $p \land (\sim q)$:
$p$ | $q$ | $\sim q$ | $p \land (\sim q)$ |
---|---|---|---|
T | T | F | T $\land$ F = F |
T | F | T | T $\land$ T = T |
F | T | F | F $\land$ F = F |
F | F | T | F $\land$ T = F |
The final column shows the truth values for $p \land (\sim q)$ based on the truth values of $p$ and $q$.
Constructing truth tables might seem tedious for simple statements, but it is a systematic and foolproof method that can be extended to compound statements of any complexity. It is the basis for verifying logical equivalences and checking the validity of arguments.
Competitive Exam Pointer: Truth Table Construction
Constructing truth tables is a fundamental skill for competitive exams involving logical reasoning. You should:
- Be proficient in determining the number of rows ($2^n$).
- Know how to systematically fill the columns for simple statements ($p, q, r, ...$).
- Have a clear understanding of the truth table definitions for $\sim, \land, \lor$ (and later $\implies, \iff$).
- Be able to build columns for intermediate parts of the statement (like $\sim p$ or $(p \land q)$) before evaluating the full statement.
- Practice constructing tables for statements with 2 or 3 variables.
Truth tables are used to classify statements (as tautologies, contradictions, or contingencies) and to check for logical equivalence, which are common exam question types.