Complement law: A AND NOT A = FALSE, A OR NOT A = TRUE
The complement law says that a value combined with its own negation gives FALSE under AND and TRUE under OR: A AND NOT A = FALSE, A OR NOT A = TRUE.
A value combined with its own negation gives FALSE under AND and TRUE under OR.
Nothing can be both true and false, so A AND NOT A never holds: it is the simplest contradiction. Everything is either true or false, so A OR NOT A always holds: it is the simplest tautology, the law of the excluded middle. The two forms are each other's dual, and De Morgan's laws turn one into the other.
In simplification the complement law is the usual source of constants, which the identity and null laws then remove. In testing it explains vacuous results: a rule whose assumptions include both A and NOT A has no admissible case, so every property holds of it for a bad reason, and the engine labels such results vacuous rather than passed.
The two-row proof below covers both values of A.
Statement
A AND NOT A = FALSEA OR NOT A = TRUE Proof by truth table: A AND NOT A = FALSE
| # | A | lhs | rhs |
|---|---|---|---|
| 0 | FALSE | FALSE | FALSE |
| 1 | TRUE | FALSE | FALSE |
The same law in four notations
A AND NOT AA && !AA ∧ ¬AA·A'A \cdot \overline{A}FALSEFALSE000Proof by truth table: A OR NOT A = TRUE
| # | A | lhs | rhs |
|---|---|---|---|
| 0 | FALSE | TRUE | TRUE |
| 1 | TRUE | TRUE | TRUE |
The same law in four notations
A OR NOT AA || !AA ∨ ¬AA + A'A + \overline{A}TRUETRUE111The common slip
Reading A OR NOT A as an exclusive or (“A or not A, but not both”). It is an inclusive OR that happens to be always true; the exclusive version, A XOR NOT A, is also always true but for a different reason, and the engine proves both.
Questions
Is this the same as the law of the excluded middle?
The OR form is exactly the law of the excluded middle, and the AND form is the law of non-contradiction. Boolean algebra states them as one pair because each follows from the other by De Morgan.
Related
Worked examples that use it
- A tautology: A OR NOT A, checked on every row
- A contradiction: A AND NOT A
- A nullable flag rule in SQL: why (a OR NOT a) is not always true
Lesson that teaches this
Pitfalls
- Vacuous truth: a property that holds because nothing satisfies the assumptions
- NULL is not FALSE: three-valued logic in SQL
Tools
- Boolean algebra calculator and simplifier with steps (every law named and verified)
- Logical equivalence checker: two expressions, exact verdict, counterexample
Practice
- Boolean simplification exercises with answers: basic
- Boolean simplification exercises with answers: intermediate
- Boolean simplification exercises with answers: advanced
See also
- De Morgan's laws: NOT (A AND B) = NOT A OR NOT B, with proof and examples
- A tautology: A OR NOT A, checked on every row
- A contradiction: A AND NOT A
- Vacuous truth: a property that holds because nothing satisfies the assumptions
Laws
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.