Boolean Algebra

Introduction

Boolean algebra is the mathematical study of operations on the truth values true and false, typically denoted 1 1 and 0 0. Developed by George Boole in the mid-19 19th 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 B B together with two binary operations ∧ and (meet/AND) and ∨ or (join/OR), a unary operation ¬ not (complement/NOT), and two distinguished elements 0 0 and 1 1 satisfying certain axioms.

The simplest Boolean algebra is the two-element algebra B={0,1} B equals the set 0 comma 1 where the operations are defined by truth tables. We interpret 1 1 as true and 0 0 as false.

Fundamental Operations

Conjunction (AND)

The conjunction of x x and y y written x∧y x and y or x⋅y x times y or simply x⁢y x y equals 1 1 if and only if both x=1 x equals 1 and y=1 y equals 1

0∧0=0,0∧1=0,1∧0=0,1∧1=1 0 and 0 equals 0 comma 0 and 1 equals 0 comma 1 and 0 equals 0 comma 1 and 1 equals 1

Disjunction (OR)

The disjunction x∨y x or y (also written x+y x plus y equals 1 1 if at least one of x x or y y equals 1 1

0∨0=0,0∨1=1,1∨0=1,1∨1=1 0 or 0 equals 0 comma 0 or 1 equals 1 comma 1 or 0 equals 1 comma 1 or 1 equals 1

Negation (NOT)

The negation ¬⁢x not x (also written x― x horizontal bar or x′ x prime flips the value:

¬⁢0=1,¬⁢1=0 not 0 equals 1 comma not 1 equals 0

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

x∨0=x⁢x∧1=x x or 0 equals x x and 1 equals x

The element 0 0 is the identity for OR, and 1 1 is the identity for AND.

Domination Laws

x∨1=1⁢x∧0=0 x or 1 equals 1 x and 0 equals 0

Idempotent Laws

x∨x=x⁢x∧x=x x or x equals x x and x equals x

Complement Laws

x∨¬⁢x=1⁢x∧¬⁢x=0 x or not x equals 1 x and not x equals 0

Double Negation

¬⁢(¬⁢x)=x not open paren not x close paren equals x

Commutative Laws

x∨y=y∨x⁢x∧y=y∧x x or y equals y or x x and y equals y and x

Associative Laws

(x∨y)∨z=x∨(y∨z)⁢(x∧y)∧z=x∧(y∧z) open paren x or y close paren or z equals x or open paren y or z close paren times open paren x and y close paren and z equals x and open paren y and z close paren

Distributive Laws

x∧(y∨z)=(x∧y)∨(x∧z) x and open paren y or z close paren equals open paren x and y close paren or open paren x and z close paren

x∨(y∧z)=(x∨y)∧(x∨z) x or open paren y and z close paren equals open paren x or y close paren and open paren x or z close paren

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:

¬⁢(x∨y)=¬⁢x∧¬⁢y not open paren x or y close paren equals not x and not y

¬⁢(x∧y)=¬⁢x∨¬⁢y not open paren x and y close paren equals not x or not y

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

x∨(x∧y)=x⁢x∧(x∨y)=x x or open paren x and y close paren equals x x and open paren x or y close paren equals x

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 x x and y y is true when exactly one of them is true:

x⊕y=(x∧¬⁢y)∨(¬⁢x∧y) x circled plus y equals open paren x and not y close paren or open paren not x and y close paren

XOR corresponds to addition modulo 2 2:
0⊕0=0,0⊕1=1,1⊕0=1,1⊕1=0 0 circled plus 0 equals 0 comma 0 circled plus 1 equals 1 comma 1 circled plus 0 equals 1 comma 1 circled plus 1 equals 0.

Implication

The logical implication x→y x right arrow y (if x x then y y is defined as:

x→y=¬⁢x∨y x right arrow y equals not x or y

An implication is false only when the hypothesis is true and the conclusion is false.

Biconditional

The biconditional x↔y x left right arrow y (x x if and only if y y is true when x x and y y have the same value:

x↔y=(x→y)∧(y→x)=(x∧y)∨(¬⁢x∧¬⁢y) x left right arrow y equals open paren x right arrow y close paren and open paren y right arrow x close paren equals open paren x and y close paren or open paren not x and not y close paren

Note that x↔y=¬⁢(x⊕y) x left right arrow y equals not open paren x circled plus y close paren 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:

(x∧y∧¬⁢z)∨(x∧¬⁢y∧z)∨(¬⁢x∧y∧z) open paren x and y and not z close paren or open paren x and not y and z close paren or open paren not x and y and z close paren

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:

(x∨y∨¬⁢z)∧(x∨¬⁢y∨z)∧(¬⁢x∨y∨z) open paren x or y or not z close paren and open paren x or not y or z close paren and open paren not x or y or z close paren

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 {∧,∨,¬} the set and comma or comma not is functionally complete.

Remarkably, smaller sets are also complete. The NAND operation x↑y=¬⁢(x∧y) x up arrow y equals not open paren x and y close paren alone is functionally complete, since:

¬⁢x=x↑x,x∧y=(x↑y)↑(x↑y),x∨y=(x↑x)↑(y↑y) not x equals x up arrow x comma x and y equals open paren x up arrow y close paren up arrow open paren x up arrow y close paren comma x or y equals open paren x up arrow x close paren up arrow open paren y up arrow y close paren

Similarly, NOR x↓y=¬⁢(x∨y) x down arrow y equals not open paren x or y close paren 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 (∧ and, OR (∨ or, and NOT (¬ 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.