Laws Catalog
Laws whose pattern matches any part of the current expression are highlighted.
P & 1 = P. AND with the constant 1 leaves the operand unchanged.
P | 0 = P. OR with the constant 0 leaves the operand unchanged.
P & 0 = 0. AND with the constant 0 dominates the whole expression.
P | 1 = 1. OR with the constant 1 dominates the whole expression.
P & P = P.
P | P = P.
P & !P = 0.
P | !P = 1.
!(!P) = P.
P & Q = Q & P.
P | Q = Q | P.
P ^ Q = Q ^ P.
(P & Q) & R = P & (Q & R). Regroups a left-nested AND.
(P | Q) | R = P | (Q | R). Regroups a left-nested OR.
P & (Q | R) = (P & Q) | (P & R).
P | (Q & R) = (P | Q) & (P | R).
P & (P | Q) = P.
P | (P & Q) = P.
!(P & Q) = !P | !Q.
!(P | Q) = !P & !Q.
P NAND Q = !(P & Q).
P NOR Q = !(P | Q).
P ^ Q = (P & !Q) | (!P & Q). Sum of products without XOR.
P XNOR Q = (P & Q) | (!P & !Q).
!(P & Q) = P NAND Q.
!(P | Q) = P NOR Q.
(P & !Q) | (!P & Q) = P ^ Q.
P ^ 1 = !P.
Recipe (1 step)
Steps run top to bottom. Reorder with ↑/↓, retarget a step to another subexpression, or bypass it.
[0] · Subexpression: !(A & B)✓ !(A & B) → !A | !B
Input Expression
3 variable(s)Operators: !/NOT, &/AND, |/OR, ^/XOR, and the gate words NAND, NOR, XNOR. Constants 0/1 or false/true. Textbook forms also work: juxtaposition is AND (A B + C means (A & B) | C), postfix ' is NOT of one term (A B' means A & !B), and + is OR.
Pipeline Output
Checked on all 8 assignments of A, B, C.
Derived Circuit
8 gatesThe gate graph of the current output expression. Toggle an input to trace which wires carry a 1.
Gates are drawn one column per gate layer, sources first, so a wire never runs backwards. Shaded lines carry the value 1 for the current input selection.
Inputs
A = 0B = 0C = 0
Outputs
F = 1(gateor-8)
Gate counts
input: 3not: 2or: 2xor: 1