The laws are written with single letters, but each letter can stand for any expression, as long as you replace it the same way everywhere in the law. This is the substitution rule.
For example, the complement law says = 1. Let X = , and you get = 1. It is true because is just some value, 0 or 1, and its complement is the other one.
This is what lets the basic laws do real work. To use a law on a messy expression:
- Look for the law's shape.
- Say what each letter stands for.
- Apply the law, then put the expressions back.
Some shapes to watch for:
- with X = : = (absorption).
- with X = : = (redundant literal rule).
- with X = A: collapse to .
The replacement must be consistent: if X stands for , then stands for , not .