Skip to content

Laws of Boolean algebra: every law with a proof and examples

Every law of Boolean algebra the engine applies, each stated in four notations and proved on every row of its truth table.

The 29 laws below are the exact rewriting rules the Tangibool simplifier, normal-form converter and gate-basis transformer use, named as the engine names them (and as textbooks name them where the two differ: the null law is the engine's domination law, involution is double negation). Three more, the commutative law, the consensus theorem and Huntington's postulates, are stated here because they are what students look up, and the engine proves them the same way.

A law page gives the statement in words, programming, mathematical and algebra notation, the truth table with both sides as columns, the checker's verdict over every assignment, a gate diagram of each side, the slip people make with that law, the lesson that teaches it, and the worked examples whose simplification used it.

If you want to see a law at work on your own expression, the simplifier names the law at each step and verifies that the step kept the function unchanged.

Questions

Why are there more laws here than in my textbook?

Textbooks list the identities students memorise (identity, null, idempotent, complement, absorption, commutative, associative, distributive, De Morgan, involution). The engine also needs the elimination rules that turn implication, biconditional, XOR, NAND, NOR and XNOR into AND, OR and NOT, the minterm and maxterm expansions, and the NAND-only and NOR-only constructions. They are all laws in the same sense: an identity that holds for every assignment.

Does the order of the laws matter when simplifying?

The simplifier applies laws by a size measure (fewer operators, then fewer literals), not by a fixed order, and stops when no law shortens the expression further. That is why its result is labelled simplified rather than minimal: a different order can reach a shorter form, and the engine never claims that a form is the smallest; the Karnaugh map derives an irreducible cover for up to four variables and checks it on every row.

Generated from the Tangibool engine, semantics tangibool-semantics/1, engine 1.0.0, build . Every table, map, simplification and verdict on these pages was computed by the Tangibool engine when the site was built, and every claim was re-checked by the same exact checker the app uses. Limits are stated where they apply. © 2026 Foreranger LTD.