2 (algebra)
   HOME

TheInfoList



OR:

In
mathematics Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
and
abstract algebra In mathematics, more specifically algebra, abstract algebra or modern algebra is the study of algebraic structures, which are set (mathematics), sets with specific operation (mathematics), operations acting on their elements. Algebraic structur ...
, the two-element Boolean algebra is the
Boolean algebra In mathematics and mathematical logic, Boolean algebra is a branch of algebra. It differs from elementary algebra in two ways. First, the values of the variable (mathematics), variables are the truth values ''true'' and ''false'', usually denot ...
whose ''underlying set'' (or
universe The universe is all of space and time and their contents. It comprises all of existence, any fundamental interaction, physical process and physical constant, and therefore all forms of matter and energy, and the structures they form, from s ...
or ''carrier'') ''B'' is the
Boolean domain In mathematics and abstract algebra, a Boolean domain is a set consisting of exactly two elements whose interpretations include ''false'' and ''true''. In logic, mathematics and theoretical computer science, a Boolean domain is usually written ...
. The elements of the Boolean domain are 1 and 0 by convention, so that ''B'' = .
Paul Halmos Paul Richard Halmos (; 3 March 1916 – 2 October 2006) was a Kingdom of Hungary, Hungarian-born United States, American mathematician and probabilist who made fundamental advances in the areas of mathematical logic, probability theory, operat ...
's name for this algebra "2" has some following in the literature, and will be employed here.


Definition

''B'' is a
partially ordered set In mathematics, especially order theory, a partial order on a Set (mathematics), set is an arrangement such that, for certain pairs of elements, one precedes the other. The word ''partial'' is used to indicate that not every pair of elements need ...
and the elements of ''B'' are also its bounds. An
operation Operation or Operations may refer to: Arts, entertainment and media * ''Operation'' (game), a battery-operated board game that challenges dexterity * Operation (music), a term used in musical set theory * ''Operations'' (magazine), Multi-Man ...
of
arity In logic, mathematics, and computer science, arity () is the number of arguments or operands taken by a function, operation or relation. In mathematics, arity may also be called rank, but this word can have many other meanings. In logic and ...
''n'' is a mapping from ''B''n to ''B''. Boolean algebra consists of two
binary operation In mathematics, a binary operation or dyadic operation is a rule for combining two elements (called operands) to produce another element. More formally, a binary operation is an operation of arity two. More specifically, a binary operation ...
s and unary complementation. The binary operations have been named and notated in various ways. Here they are called 'sum' and 'product', and notated by infix '+' and '∙', respectively. Sum and product commute and associate, as in the usual algebra of real numbers. As for the
order of operations In mathematics and computer programming, the order of operations is a collection of rules that reflect conventions about which operations to perform first in order to evaluate a given mathematical expression. These rules are formalized with a ...
, brackets are decisive if present. Otherwise '∙' precedes '+'. Hence is parsed as and not as . Complementation is denoted by writing an overbar over its argument. The numerical analog of the complement of is . In the language of
universal algebra Universal algebra (sometimes called general algebra) is the field of mathematics that studies algebraic structures in general, not specific types of algebraic structures. For instance, rather than considering groups or rings as the object of stud ...
, a Boolean algebra is a \langle B,+,,\overline,1,0\rangle
algebra Algebra is a branch of mathematics that deals with abstract systems, known as algebraic structures, and the manipulation of expressions within those systems. It is a generalization of arithmetic that introduces variables and algebraic ope ...
of
type Type may refer to: Science and technology Computing * Typing, producing text via a keyboard, typewriter, etc. * Data type, collection of values used for computations. * File type * TYPE (DOS command), a command to display contents of a file. * ...
\langle 2,2,1,0,0\rangle. Either
one-to-one correspondence In mathematics, a bijection, bijective function, or one-to-one correspondence is a function between two sets such that each element of the second set (the codomain) is the image of exactly one element of the first set (the domain). Equivale ...
between and yields classical
bivalent logic In logic, the semantic principle (or law) of bivalence states that every declarative sentence expressing a proposition (of a theory under inspection) has exactly one truth value, either true or false. A logic satisfying this principle is called ...
in equational form, with complementation read as NOT. If 1 is read as ''True'', '+' is read as OR, and '∙' as
AND And or AND may refer to: Logic, grammar and computing * Conjunction, connecting two words, phrases, or clauses * Logical conjunction in mathematical logic, notated as "∧", "⋅", "&", or simple juxtaposition * Bitwise AND, a Boolean oper ...
, and vice versa if 1 is read as ''False''. These two operations define a commutative
semiring In abstract algebra, a semiring is an algebraic structure. Semirings are a generalization of rings, dropping the requirement that each element must have an additive inverse. At the same time, semirings are a generalization of bounded distribu ...
, known as the
Boolean semiring Any kind of logic, function, expression, or theory based on the work of George Boole is considered Boolean. Related to this, "Boolean" may refer to: * Boolean data type, a form of data with only two possible values (usually "true" and "false" ...
.


Some basic identities

2 can be seen as grounded in the following trivial "Boolean" arithmetic: : \begin &1 + 1 = 1 + 0 = 0 + 1 = 1 \\ &0 + 0 = 0 \\ &0\cdot0 = 0\cdot1 = 1\cdot0 = 0 \\ &1\cdot1 = 1 \\ &\overline = 0 \\ &\overline = 1 \end Note that: * '+' and '∙' work exactly as in numerical arithmetic, except that 1+1=1. '+' and '∙' are derived by analogy from numerical arithmetic; simply set any nonzero number to 1. * Swapping 0 and 1, and '+' and '∙' preserves truth; this is the essence of the duality pervading all Boolean algebras. This Boolean arithmetic suffices to verify any equation of 2, including the axioms, by examining every possible assignment of 0s and 1s to each variable (see
decision procedure Decision may refer to: Law and politics *Judgment (law), as the outcome of a legal case * Landmark decision, the outcome of a case that sets a legal precedent * ''Per curiam'' decision, by a court with multiple judges Books * ''Decision'' (novel ...
). The following equations may now be verified: : \begin &A + A = A \\ &A \cdot A = A \\ &A + 0 = A \\ &A + 1 = 1 \\ &A \cdot 0 = 0 \\ &\overline = A \end Each of '+' and '∙' distributes over the other: *\ A \cdot (B+C) = A \cdot B + A \cdot C; *\ A+(B \cdot C) = (A+B) \cdot (A+C). That '∙' distributes over '+' agrees with
elementary algebra Elementary algebra, also known as high school algebra or college algebra, encompasses the basic concepts of algebra. It is often contrasted with arithmetic: arithmetic deals with specified numbers, whilst algebra introduces variable (mathematics ...
, but not '+' over '∙'. For this and other reasons, a sum of products (leading to a NAND synthesis) is more commonly employed than a product of sums (leading to a NOR synthesis). Each of '+' and '∙' can be defined in terms of the other and complementation: * A \cdot B=\overline * A+B=\overline. We only need one binary operation, and
concatenation In formal language theory and computer programming, string concatenation is the operation of joining character strings end-to-end. For example, the concatenation of "snow" and "ball" is "snowball". In certain formalizations of concatenati ...
suffices to denote it. Hence concatenation and overbar suffice to notate 2. This notation is also that of
Quine Quine may refer to: * Quine (computing), a program that produces its source code as output * Quine's paradox, in logic * Quine (surname), people with the surname ** Willard Van Orman Quine (1908–2000), American philosopher and logician See al ...
's Boolean term schemata. Letting (''X'') denote the complement of ''X'' and "()" denote either 0 or 1 yields the
syntax In linguistics, syntax ( ) is the study of how words and morphemes combine to form larger units such as phrases and sentences. Central concerns of syntax include word order, grammatical relations, hierarchical sentence structure (constituenc ...
of the primary algebra of G. Spencer-Brown's ''
Laws of Form ''Laws of Form'' (hereinafter ''LoF'') is a book by G. Spencer-Brown, published in 1969, that straddles the boundary between mathematics and philosophy. ''LoF'' describes three distinct logical systems: * The primary arithmetic (described in Ch ...
''. A ''basis'' for 2 is a set of equations, called
axiom An axiom, postulate, or assumption is a statement that is taken to be true, to serve as a premise or starting point for further reasoning and arguments. The word comes from the Ancient Greek word (), meaning 'that which is thought worthy or ...
s, from which all of the above equations (and more) can be derived. There are many known bases for all Boolean algebras and hence for 2. An elegant basis notated using only concatenation and overbar is: # \ ABC = BCA (Concatenation commutes, associates) # \overlineA = 1 (2 is a complemented lattice, with an
upper bound In mathematics, particularly in order theory, an upper bound or majorant of a subset of some preordered set is an element of that is every element of . Dually, a lower bound or minorant of is defined to be an element of that is less ...
of 1) #\ A0 = A (0 is the bounded set, lower bound). # A\overline = A\overline (2 is a distributive lattice) Where concatenation = OR, 1 = true, and 0 = false, or concatenation = AND, 1 = false, and 0 = true. (overbar is negation in both cases.) If 0=1, (1)–(3) are the axioms for an abelian group. (1) only serves to prove that concatenation commutes and associates. First assume that (1) associates from either the left or the right, then prove commutativity. Then prove association from the other direction. Associativity is simply association from the left and right combined. This basis makes for an easy approach to proof, called "calculation" in ''
Laws of Form ''Laws of Form'' (hereinafter ''LoF'') is a book by G. Spencer-Brown, published in 1969, that straddles the boundary between mathematics and philosophy. ''LoF'' describes three distinct logical systems: * The primary arithmetic (described in Ch ...
'', that proceeds by simplifying expressions to 0 or 1, by invoking axioms (2)–(4), and the elementary identities AA=A, \overline=A, 1+A = 1, and the distributive law.


Metatheory

De Morgan's theorem states that if one does the following, in the given order, to any Boolean function: * Complement every variable; * Swap '+' and '∙' operators (taking care to add brackets to ensure the order of operations remains the same); * Complement the result, the result is Logical equivalence, logically equivalent to what you started with. Repeated application of De Morgan's theorem to parts of a function can be used to drive all complements down to the individual variables. A powerful and nontrivial metatheorem states that any identity of 2 holds for all Boolean algebras. Conversely, an identity that holds for an arbitrary nontrivial Boolean algebra also holds in 2. Hence all identities of Boolean algebra are captured by 2. This theorem is useful because any equation in 2 can be verified by a
decision procedure Decision may refer to: Law and politics *Judgment (law), as the outcome of a legal case * Landmark decision, the outcome of a case that sets a legal precedent * ''Per curiam'' decision, by a court with multiple judges Books * ''Decision'' (novel ...
. Logicians refer to this fact as "2 is decidability (logic), decidable". All known
decision procedure Decision may refer to: Law and politics *Judgment (law), as the outcome of a legal case * Landmark decision, the outcome of a case that sets a legal precedent * ''Per curiam'' decision, by a court with multiple judges Books * ''Decision'' (novel ...
s require a number of steps that is an exponential function of the number of variables ''N'' appearing in the equation to be verified. Whether there exists a decision procedure whose steps are a polynomial function of ''N'' falls under the P = NP conjecture. The above metatheorem does not hold if we consider the validity of more general first-order logic formulas instead of only atomic positive equalities. As an example consider the formula . This formula is always true in a two-element Boolean algebra. In a four-element Boolean algebra whose domain is the powerset of , this formula corresponds to the statement and is false when ''x'' is . The decidability for the first-order theory of many classes of Boolean algebras can still be shown, using quantifier elimination or small model property (with the domain size computed as a function of the formula and generally larger than 2).


See also

*Boolean algebra *Bounded set *Lattice (order) *Order theory


References


Further reading

Many elementary texts on Boolean algebra were published in the early years of the computer era. Perhaps the best of the lot, and one still in print, is: * Mendelson, Elliot, 1970. ''Schaum's Outline of Boolean Algebra''. McGraw–Hill. The following items reveal how the two-element Boolean algebra is mathematically nontrivial. * Stanford Encyclopedia of Philosophy:
The Mathematics of Boolean Algebra
" by J. Donald Monk. * Burris, Stanley N., and H.P. Sankappanavar, H. P., 1981.

' Springer-Verlag. {{isbn, 3-540-90578-2. Elementary algebra Boolean algebra