logic and set algebra
Boolean Algebra
You should know: propositional logic
Overview
Boolean algebra is a branch of algebra in which the values of the variables are the truth values true and false, usually written 1 and 0, rather than numbers. It differs from elementary algebra in its operators: instead of addition, multiplication, subtraction, and division, Boolean algebra uses the logical operators conjunction (∧, 'and'), disjunction (∨, 'or'), and negation (¬, 'not'). Boolean algebra is therefore a formal way of describing logical operations, the same way elementary algebra describes numerical operations — and it is the mathematical backbone of digital logic circuits.
Formal Definition
The core Boolean operations are ∧, ∨, and ¬ on the two-element set {0, 1}. Other connectives are definable from these three:
Worked Examples
Factor out x using distributivity.
y ∨ ¬y is always true (the law of excluded middle), so it acts as the identity 1 for ∧.
Answer: (x ∧ y) ∨ (x ∧ ¬y) simplifies to x.
Practice Problems
Use De Morgan's laws to write ¬(x ∨ y) ∨ z in a form with the negation only over single variables.
Summary
- Boolean algebra operates on truth values {0,1} using ∧ (and), ∨ (or), and ¬ (not) instead of arithmetic operators.
- Implication, biconditional, and XOR are all definable from ∧, ∨, and ¬.
- ∧ and ∨ are each associative and distribute over one another, mirroring — but not identical to — ordinary arithmetic.
- De Morgan's laws let negation be pushed through ∧ and ∨, swapping one operator for the other.
References
- WebsiteWikipedia — Boolean algebra
Mathematics