Basic Logical Operations
Logical operations are used to form new propositions by combining or modifying existing ones. These operations are fundamental in reasoning, computer science, and digital logic.
The negation of a proposition , written as , is true when is false, and false when is true. It simply reverses the truth value.
| p | ¬p |
|---|---|
| T | F |
| F | T |
Example:
Let : "It is raining."
Then : "It is not raining."
The conjunction of two propositions and , written , is true only when both and are true.
| p | q | p ∧ q |
|---|---|---|
| T | T | T |
| T | F | F |
| F | T | F |
| F | F | F |
Example:
: "It is sunny."
: "It is warm."
: "It is sunny and warm."
The disjunction is true if at least one of or is true. This is the inclusive OR.
| p | q | p ∨ q |
|---|---|---|
| T | T | T |
| T | F | T |
| F | T | T |
| F | F | F |
Example:
: "I will study."
: "I will play."
: "I will study or play (or both)."
The exclusive OR is true if exactly one of or is true, but not both.
| p | q | p ⊕ q |
|---|---|---|
| T | T | F |
| T | F | T |
| F | T | T |
| F | F | F |
Example:
Two switches controlling a light—only one switch can be ON at a time for the light to be ON.
The implication means "if , then ." It is false only when is true and is false.
| p | q | p → q |
|---|---|---|
| T | T | T |
| T | F | F |
| F | T | T |
| F | F | T |
Example:
: "It rains."
: "The ground gets wet."
"If it rains, then the ground gets wet."
Even if it doesn’t rain (p is false), the implication is still considered true, regardless of whether the ground gets wet or not.
The biconditional is true when both and are either true or false (i.e., have the same truth value).
| p | q | p ↔ q |
|---|---|---|
| T | T | T |
| T | F | F |
| F | T | F |
| F | F | T |
Example:
: "You can vote."
: "You are 18 or older."
"You can vote if and only if you are 18 or older."
These operations form the foundation for logical arguments, digital circuits, and programming decision-making.
Open this section to load past papers