• The simplest non-trivial Boolean algebra, the
two-element Boolean algebra, has only two elements, and , and is defined by the rules: :* It has applications in
logic, interpreting as
false, as
true, as
and, as
or, and as
not. Expressions involving variables and the Boolean operations represent statement forms, and two such expressions can be shown to be equal using the above axioms if and only if the corresponding statement forms are
logically equivalent. :* The two-element Boolean algebra is also used for circuit design in
electrical engineering; here 0 and 1 represent the two different states of one
bit in a
digital circuit, typically high and low
voltage. Circuits are described by expressions containing variables, and two such expressions are equal for all values of the variables if and only if the corresponding circuits have the same input–output behavior. Furthermore, every possible input–output behavior can be modeled by a suitable Boolean expression. :* The two-element Boolean algebra is also important in the general theory of Boolean algebras, because an equation involving several variables is generally true in all Boolean algebras if and only if it is true in the two-element Boolean algebra (which can be checked by a trivial
brute force algorithm for small numbers of variables). This can for example be used to show that the following laws (
Consensus theorems) are generally valid in all Boolean algebras: :** :** • The
power set (set of all subsets) of any given nonempty set forms a Boolean algebra, an
algebra of sets, with the two operations (union) and (intersection). The smallest element 0 is the
empty set and the largest element is the set itself. :* After the two-element Boolean algebra, the simplest Boolean algebra is that defined by the
power set of two atoms: • The set of all subsets of that are either finite or
cofinite is a Boolean algebra and an
algebra of sets called the
finite–cofinite algebra. If is infinite then the set of all cofinite subsets of , which is called the
Fréchet filter, is a free
ultrafilter on . However, the Fréchet filter is not an ultrafilter on the power set of . • Starting with the
propositional calculus with sentence symbols, form the
Lindenbaum algebra (that is, the set of sentences in the propositional calculus modulo
logical equivalence). This construction yields a Boolean algebra. It is in fact the
free Boolean algebra on generators. A truth assignment in propositional calculus is then a Boolean algebra homomorphism from this algebra to the two-element Boolean algebra. • Given any
linearly ordered set with a least element, the interval algebra is the smallest Boolean algebra of subsets of containing all of the half-open intervals such that is in and is either in or equal to . Interval algebras are useful in the study of
Lindenbaum–Tarski algebras; every
countable Boolean algebra is isomorphic to an interval algebra. of the Boolean algebra of divisors of 30. • For any
natural number , the set of all positive
divisors of , defining if
divides , forms a
distributive lattice. This lattice is a Boolean algebra if and only if is
square-free. The bottom and the top elements of this Boolean algebra are the natural numbers and , respectively. The complement of is given by . The meet and the join of and are given by the
greatest common divisor () and the
least common multiple () of and , respectively. The ring addition is given by . The picture shows an example for . As a counter-example, considering the non-square-free , the greatest common divisor of 30 and its complement 2 would be 2, while it should be the bottom element 1. • Other examples of Boolean algebras arise from
topological spaces: if is a topological space, then the collection of all subsets of that are
both open and closed forms a Boolean algebra with the operations (union) and (intersection). • If is an arbitrary ring then its set of
central idempotents, which is the set A = \left\{e \in R : e^2 = e \text{ and } ex = xe \; \text{ for all } \; x \in R\right\}, becomes a Boolean algebra when its operations are defined by and . == Homomorphisms and isomorphisms ==