Boolean Algebra
Introduction
Boolean algebra is the mathematical study of operations on the truth values true and false, typically denoted and . Developed by George Boole in the mid-th century as an algebraic approach to logic, it has become fundamental to digital circuit design, computer science, and mathematical logic.
Unlike ordinary algebra where variables range over numbers, Boolean algebra operates on a two-element set with operations corresponding to logical conjunction (AND), disjunction (OR), and negation (NOT). These three operations, combined with the laws governing them, provide a complete framework for reasoning about propositions and designing digital systems.
Basic Definitions
A Boolean algebra consists of a set together with two binary operations (meet/AND) and (join/OR), a unary operation (complement/NOT), and two distinguished elements and satisfying certain axioms.
The simplest Boolean algebra is the two-element algebra where the operations are defined by truth tables. We interpret as true and as false.
Fundamental Operations
Conjunction (AND)
The conjunction of and written or or simply equals if and only if both and
Disjunction (OR)
The disjunction (also written equals if at least one of or equals
Negation (NOT)
The negation (also written or flips the value:
Laws of Boolean Algebra
The operations of Boolean algebra satisfy a collection of laws that parallel and extend the laws of ordinary algebra.
Identity Laws
The element is the identity for OR, and is the identity for AND.
Domination Laws
Idempotent Laws
Complement Laws
Double Negation
Commutative Laws
Associative Laws
Distributive Laws
Note that the second distributive law has no analog in ordinary algebra: addition does not distribute over multiplication.
De Morgan's Laws
Two of the most important laws in Boolean algebra relate negation to the binary operations:
In words: the negation of a disjunction is the conjunction of the negations, and vice versa. De Morgan's laws allow us to push negations inward through expressions, converting ANDs to ORs and ORs to ANDs.
Absorption Laws
The absorption laws show that a term can absorb a more restrictive term containing it.
Derived Operations
Several useful operations can be defined in terms of AND, OR, and NOT.
Exclusive OR (XOR)
The exclusive or of and is true when exactly one of them is true:
XOR corresponds to addition modulo :
.
Implication
The logical implication (if then is defined as:
An implication is false only when the hypothesis is true and the conclusion is false.
Biconditional
The biconditional ( if and only if is true when and have the same value:
Note that the biconditional is the negation of XOR.
Normal Forms
Any Boolean expression can be written in standardized forms that facilitate analysis and circuit implementation.
Disjunctive Normal Form (DNF)
A Boolean expression is in disjunctive normal form if it is an OR of ANDs. Each AND term (called a minterm) is a conjunction of literals, where a literal is a variable or its negation. For example:
Conjunctive Normal Form (CNF)
A Boolean expression is in conjunctive normal form if it is an AND of ORs. Each OR term (called a maxterm or clause) is a disjunction of literals. For example:
Every Boolean function has unique representations in both DNF and CNF using all variables. These canonical forms are useful for comparing functions and for circuit design.
Functional Completeness
A set of Boolean operations is functionally complete if every Boolean function can be expressed using only operations from that set. The set is functionally complete.
Remarkably, smaller sets are also complete. The NAND operation alone is functionally complete, since:
Similarly, NOR is functionally complete. This has practical importance: digital circuits can be built using only NAND gates or only NOR gates.
Summary
Boolean algebra provides the mathematical foundation for digital logic and propositional reasoning. The three fundamental operations—AND (, OR (, and NOT (—operate on truth values and satisfy algebraic laws including commutativity, associativity, distributivity, and De Morgan's laws.
Every Boolean function can be expressed in disjunctive normal form (OR of ANDs) or conjunctive normal form (AND of ORs). The NAND and NOR operations are each individually functionally complete, meaning any Boolean function can be expressed using only one of these operations.
Boolean algebra unifies the study of logic, set theory, and digital circuits, providing algebraic tools for reasoning about propositions and designing computational systems.