ConceptComplete

Boolean Algebra and Lattices - Core Definitions

Boolean algebra provides the mathematical foundation for digital logic and computer hardware, formalizing the operations on binary values. Lattices generalize this structure to partially ordered sets.

DefinitionBoolean Algebra

A Boolean algebra is a set BB with two binary operations \land (AND) and \lor (OR), one unary operation ¬\neg (NOT), and two distinguished elements 00 (false) and 11 (true), satisfying:

Idempotent laws: aa=aa \land a = a, aa=aa \lor a = a

Commutative laws: ab=baa \land b = b \land a, ab=baa \lor b = b \lor a

Associative laws: (ab)c=a(bc)(a \land b) \land c = a \land (b \land c), (ab)c=a(bc)(a \lor b) \lor c = a \lor (b \lor c)

Absorption laws: a(ab)=aa \land (a \lor b) = a, a(ab)=aa \lor (a \land b) = a

Distributive laws: a(bc)=(ab)(ac)a \land (b \lor c) = (a \land b) \lor (a \land c), a(bc)=(ab)(ac)a \lor (b \land c) = (a \lor b) \land (a \lor c)

Complement laws: a¬a=0a \land \neg a = 0, a¬a=1a \lor \neg a = 1

Identity laws: a1=aa \land 1 = a, a0=aa \lor 0 = a

The most familiar Boolean algebra is ({0,1},,,¬)(\{0,1\}, \land, \lor, \neg) with standard logic operations. The power set (P(S),,,A)(\mathcal{P}(S), \cap, \cup, \overline{\phantom{A}}) with set operations also forms a Boolean algebra.

DefinitionBoolean Functions

A Boolean function f:{0,1}n{0,1}f: \{0,1\}^n \to \{0,1\} maps nn binary inputs to one binary output. There are 22n2^{2^n} Boolean functions of nn variables.

For n=2n=2, there are 16 functions including AND, OR, XOR, NAND, NOR. These can be expressed using truth tables listing outputs for all 2n2^n input combinations.

DefinitionLattice

A lattice is a partially ordered set (L,)(L, \leq) where every pair of elements a,ba, b has:

  • A least upper bound (join): ab=sup{a,b}a \lor b = \sup\{a,b\}
  • A greatest lower bound (meet): ab=inf{a,b}a \land b = \inf\{a,b\}

A lattice is bounded if it has a least element 00 and greatest element 11.

A lattice is distributive if a(bc)=(ab)(ac)a \land (b \lor c) = (a \land b) \lor (a \land c) for all a,b,ca,b,c.

A complemented lattice has complements: for each aa, there exists aa' with aa=0a \land a' = 0 and aa=1a \lor a' = 1.

A Boolean algebra is exactly a bounded, distributive, complemented lattice. This connection links logic, set theory, and order theory.

Remark

Boolean algebra was developed by George Boole in the 1850s to formalize logical reasoning. Claude Shannon's 1938 master's thesis showed Boolean algebra could analyze and design switching circuits, founding digital circuit design. Today, Boolean algebra underpins all digital computers, with logic gates (AND, OR, NOT, NAND, NOR, XOR) implementing Boolean operations in hardware. The miniaturization enabling modern computing stems from efficient implementations of Boolean circuits.

These foundational structures connect abstract algebra with practical computation, making Boolean algebra essential for both theoretical computer science and engineering.