Three-valued logic

You will learn

How NOT, MIN and MAX extend Boolean logic with an unknown value.

Let -1 be false, +1 true and 0 unknown. AND becomes the minimum, OR the maximum and NOT a flip: Kleene's strong logic. On the four corners of each 3 x 3 table, where no input is unknown, it is exactly Boolean logic; the middle row and column say what a circuit knows when an input does not. The lesson spec writes them as t_not(), t_min() and t_max(), and its tests check the Boolean corners.

Open the interactive lesson →