Computing Library › Classical Logic Gates
Classical Logic Gates

Boolean Algebra Laws

The identity, complement, distributive, absorption, and other Boolean laws let logic expressions be simplified and rearranged safely.

The value set

Boolean algebra works over two values, 0 and 1, with the operations AND (product), OR (sum), and NOT (complement). The following laws hold for all variables and are the foundation of logic simplification.

Core identities

Kronos motion — classical

Structural laws

Absorption and consensus

Duality

Every law comes in a pair. Swapping AND with OR and 0 with 1 turns any valid identity into another valid identity. This duality halves the number of laws to memorize and pairs naturally with De Morgan's laws.

Using the laws

Algebraic simplification reduces gate count and stages before layout. For functions of up to about four variables a Karnaugh map is often faster, but algebra scales to more variables and to symbolic reasoning where a map cannot.