Skip to content

Worked examples: truth tables, K-maps and simplifications, step by step

Sixty worked examples, from the half adder and the majority function to eligibility rules and feature flags, each with its truth table, Karnaugh map, simplification steps, normal forms, gate forms, diagram, plain-language reading and code, all computed and verified.

The examples are the textbook canon and the rules people actually write. The canon: adders, multiplexers, comparators, parity, majority, the classic four-variable Karnaugh map, the prime-implicant example from Quine and McCluskey, the argument forms from modus ponens to the two fallacies, tautologies and contradictions, NAND-only designs. The rules: discount eligibility, access control, feature flags, loan eligibility, free shipping, an alarm, a machine interlock, a password policy, the leap-year rule, and the entry rule from the Tangibool product specification together with the slip that lets a banned member in.

Each page is generated from one seed expression by the engine and then explained by a person: what the rule means, where it is used, which step of the simplification is the one people get wrong, and which test case exposes the slip. Pages whose explanation is not yet written are generated but kept out of search indexes until it is.

Every example ends with the same rule in Python, PostgreSQL and SMT-LIB and an “Open in Tangibool” button, so you can carry it into the workspace and add your own tests.

Questions

Can I request an example?

Yes: write to [email protected] with the rule. If it fits within the engine's limits it can be generated and explained like the others.

Why do some examples show a slice instead of a full Karnaugh map?

A Karnaugh map shows at most four variables. For a rule with more inputs the page shows the table and the normal forms, and the map tool lets you fix some inputs to view an explicitly labelled slice.

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.