Boolean Algebra
Introduction
Boolean algebra is the mathematical study of operations on the truth values true and false, typically denoted
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
The simplest Boolean algebra is the two-element algebra
Fundamental Operations
Conjunction (AND)
The conjunction of
Disjunction (OR)
The disjunction
Negation (NOT)
The negation
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
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
XOR corresponds to addition modulo
Implication
The logical implication
An implication is false only when the hypothesis is true and the conclusion is false.
Biconditional
The biconditional
Note that
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
Remarkably, smaller sets are also complete. The NAND operation
Similarly, NOR
Summary
Boolean algebra provides the mathematical foundation for digital logic and propositional reasoning. The three fundamental operations—AND (
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.