WIPIVERSE All articles

Logical disjunction

Logical disjunction is a fundamental operation in logic and mathematics, often represented by the symbol $\lor$ (wedge), the word "OR," or the plus sign ($+$). It is a binary connective that joins two propositions, referred to as disjuncts, to form a new compound proposition.

In classical logic, a disjunction is true if at least one of its disjuncts is true. It is false only when both disjuncts are false. This specific interpretation is known as inclusive disjunction, which distinguishes it from exclusive disjunction (XOR), where the compound statement is true if exactly one of the disjuncts is true.

The truth values for a logical disjunction between two propositions, $P$ and $Q$, are defined as follows:

  • If $P$ is true and $Q$ is true, $P \lor Q$ is true.
  • If $P$ is true and $Q$ is false, $P \lor Q$ is true.
  • If $P$ is false and $Q$ is true, $P \lor Q$ is true.
  • If $P$ is false and $Q$ is false, $P \lor Q$ is false.

In set theory, logical disjunction is analogous to the union ($\cup$) of two sets, where an element belongs to the union if it belongs to either or both sets. In Boolean algebra, the operation follows several algebraic laws, including:

  • Commutativity: $A \lor B = B \lor A$
  • Associativity: $(A \lor B) \lor C = A \lor (B \lor C)$
  • Identity: $A \lor \text{False} = A$
  • Annulment: $A \lor \text{True} = \text{True}$
  • Distributivity: Logical disjunction distributes over logical conjunction ($A \lor (B \land C) = (A \lor B) \land (A \lor C)$).

In computer science and programming, logical disjunction is implemented as a boolean operator (often || or |). Many programming languages utilize "short-circuit evaluation" for disjunction, where the second operand is not evaluated if the first operand is determined to be true, as the overall expression's truth is already established.

Browse

More topics to explore

    Browse all articles