Learn Before
Definition
Encoding Boolean literals as zero-one values
Write false as 0 and true as 1. A truth assignment then becomes a list of bits, one for each declared variable. If p has bit x, the positive literal p has value x and NOT p has value 1 - x: when x = 0 the negation has value 1, and when x = 1 it has value 0. These are ordinary integer calculations, not arithmetic modulo 2. This encoding lets a numerical expression represent whether a literal is true.
0
1
Updated 2026-11-08
Tags
Math