In
mathematics
Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented in modern mathematics ...
, a free Boolean algebra is a
Boolean algebra with a distinguished set of elements, called ''generators'', such that:
#Each element of the Boolean algebra can be expressed as a finite combination of generators, using the Boolean operations, and
#The generators are as ''independent'' as possible, in the sense that there are no relationships among them (again in terms of finite expressions using the Boolean operations) that do not hold in ''every'' Boolean algebra no matter ''which'' elements are chosen.
A simple example

The
generators of a free Boolean algebra can represent independent
propositions. Consider, for example, the propositions "John is tall" and "Mary is rich". These generate a Boolean algebra with four
atoms
Every atom is composed of a nucleus and one or more electrons bound to the nucleus. The nucleus is made of one or more protons and a number of neutrons. Only the most common variety of hydrogen has no neutrons.
Every solid, liquid, gas, an ...
, namely:
*John is tall, and Mary is rich;
*John is tall, and Mary is not rich;
*John is not tall, and Mary is rich;
*John is not tall, and Mary is not rich.
Other elements of the Boolean algebra are then
logical disjunctions of the atoms, such as "John is tall and Mary is not rich, or John is not tall and Mary is rich". In addition there is one more element, FALSE, which can be thought of as the empty disjunction; that is, the disjunction of no atoms.
This example yields a Boolean algebra with 16 elements; in general, for finite ''n'', the free Boolean algebra with ''n'' generators has 2
''n'' atoms
Every atom is composed of a nucleus and one or more electrons bound to the nucleus. The nucleus is made of one or more protons and a number of neutrons. Only the most common variety of hydrogen has no neutrons.
Every solid, liquid, gas, an ...
, and therefore
elements.
If there are
infinitely many
generators, a similar situation prevails except that now there are no
atoms
Every atom is composed of a nucleus and one or more electrons bound to the nucleus. The nucleus is made of one or more protons and a number of neutrons. Only the most common variety of hydrogen has no neutrons.
Every solid, liquid, gas, an ...
. Each element of the Boolean algebra is a combination of finitely many of the generating propositions, with two such elements deemed identical if they are
logically equivalent.
Another way to see why the free Boolean algebra on an n-element set has
elements is to note that each element is a function from n bits to one. There are
possible inputs to such a function and the function will choose 0 or 1 to output for each input, so there are
possible functions.
Category-theoretic definition
In the language of
category theory
Category theory is a general theory of mathematical structures and their relations that was introduced by Samuel Eilenberg and Saunders Mac Lane in the middle of the 20th century in their foundational work on algebraic topology. Nowadays, cate ...
, free Boolean algebras can be defined simply in terms of an
adjunction
In mathematics, the term ''adjoint'' applies in several situations. Several of these share a similar formalism: if ''A'' is adjoint to ''B'', then there is typically some formula of the type
:(''Ax'', ''y'') = (''x'', ''By'').
Specifically, adjoin ...
between the category of sets and functions, Set, and the category of Boolean algebras and Boolean algebra homomorphisms, BA. In fact, this approach generalizes to any algebraic structure definable in the framework of
universal algebra.
Above, we said that a free Boolean algebra is a Boolean algebra with a set of generators that behave a certain way; alternatively, one might start with a set and ask which algebra it generates. Every set ''X'' generates a free Boolean algebra ''FX'' defined as the algebra such that for every algebra ''B'' and function ''f'' : ''X'' → ''B'', there is a unique Boolean algebra homomorphism ''f''′ : ''FX'' → ''B'' that extends ''f''.
Diagrammatically,

where ''i''
''X'' is the inclusion, and the dashed arrow denotes uniqueness. The idea is that once one chooses where to send the elements of ''X'', the
laws for Boolean algebra homomorphisms determine where to send everything else in the free algebra ''FX''. If ''FX'' contained elements inexpressible as combinations of elements of ''X'', then ''f''′ wouldn't be unique, and if the elements of ''X'' weren't sufficiently independent, then ''f''′ wouldn't be well defined! It is easily shown that ''FX'' is unique (up to isomorphism), so this definition makes sense. It is also easily shown that a free Boolean algebra with generating set X, as defined originally, is isomorphic to ''FX'', so the two definitions agree.
One shortcoming of the above definition is that the diagram doesn't capture that ''f''′ is a homomorphism; since it is a diagram in Set each arrow denotes a mere function. We can fix this by separating it into two diagrams, one in BA and one in Set. To relate the two, we introduce a
functor ''U'' : BA → Set that "
forgets" the algebraic structure, mapping algebras and homomorphisms to their underlying sets and functions.

If we interpret the top arrow as a diagram in BA and the bottom triangle as a diagram in Set, then this diagram properly expresses that every function ''f'' : ''X'' → ''UB'' extends to a unique Boolean algebra homomorphism ''f''′ : ''FX'' → ''B''. The functor ''U'' can be thought of as a device to pull the homomorphism ''f''′ back into Set so it can be related to ''f''.
The remarkable aspect of this is that the latter diagram is one of the various (equivalent) definitions of when two functors are
adjoint. Our ''F'' easily extends to a functor Set → BA, and our definition of ''X'' generating a free Boolean algebra ''FX'' is precisely that ''U'' has a
left adjoint ''F''.
Topological realization
The free Boolean algebra with κ
generators, where κ is a finite or infinite
cardinal number, may be realized as the collection of all
clopen subset
In mathematics, Set (mathematics), set ''A'' is a subset of a set ''B'' if all Element (mathematics), elements of ''A'' are also elements of ''B''; ''B'' is then a superset of ''A''. It is possible for ''A'' and ''B'' to be equal; if they are ...
s of
κ, given the
product topology assuming that has the
discrete topology. For each α<κ, the α''th'' generator is the set of all elements of
κ whose α''th'' coordinate is 1. In particular, the free Boolean algebra with
generators is the collection of all clopen subsets of a
Cantor space, sometimes called the
Cantor algebra. This collection is
countable. In fact, while the free Boolean algebra with ''n'' generators, ''n'' finite, has
cardinality
In mathematics, the cardinality of a set is a measure of the number of elements of the set. For example, the set A = \ contains 3 elements, and therefore A has a cardinality of 3. Beginning in the late 19th century, this concept was generalized ...
, the free Boolean algebra with
generators, as for any free algebra with
generators and countably many finitary operations, has cardinality
.
For more on this
topological approach to free Boolean algebra, see
Stone's representation theorem for Boolean algebras
In mathematics, Stone's representation theorem for Boolean algebras states that every Boolean algebra is isomorphic to a certain field of sets. The theorem is fundamental to the deeper understanding of Boolean algebra that emerged in the first hal ...
.
See also
*
Boolean algebra (structure)
In abstract algebra, a Boolean algebra or Boolean lattice is a complemented distributive lattice. This type of algebraic structure captures essential properties of both set operations and logic operations. A Boolean algebra can be seen as a gen ...
*
Generating set
References
* Steve Awodey (2006) ''Category Theory'' (Oxford Logic Guides 49). Oxford University Press.
*
Paul Halmos and Steven Givant (1998) ''Logic as Algebra''.
Mathematical Association of America
The Mathematical Association of America (MAA) is a professional society that focuses on mathematics accessible at the undergraduate level. Members include university, college, and high school teachers; graduate and undergraduate students; pure a ...
.
*
Saunders Mac Lane (1998) ''
Categories for the Working Mathematician''. 2nd ed. (Graduate Texts in Mathematics 5). Springer-Verlag.
*
Saunders Mac Lane (1999) ''Algebra'', 3d. ed.
American Mathematical Society. {{ISBN, 0-8218-1646-2.
* Robert R. Stoll, 1963. ''Set Theory and Logic'', chpt. 6.7. Dover reprint 1979.
Boolean algebra
Free algebraic structures