Boolean algebra

Boolean algebra

a system of symbolic logic devised by George Boole to codify logical operations. It is used in computers
Collins Discovery Encyclopedia, 1st edition © HarperCollins Publishers 2005

Boolean algebra

[′bü·lē·ən ′al·jə·brə]
(mathematics)
An algebraic system with two binary operations and one unary operation important in representing a two-valued logic.
McGraw-Hill Dictionary of Scientific & Technical Terms, 6E, Copyright © 2003 by The McGraw-Hill Companies, Inc.

Boolean algebra

(mathematics, logic)
(After the logician George Boole)

1. Commonly, and especially in computer science and digital electronics, this term is used to mean two-valued logic.

2. This is in stark contrast with the definition used by pure mathematicians who in the 1960s introduced "Boolean-valued models" into logic precisely because a "Boolean-valued model" is an interpretation of a theory that allows more than two possible truth values!

Strangely, a Boolean algebra (in the mathematical sense) is not strictly an algebra, but is in fact a lattice. A Boolean algebra is sometimes defined as a "complemented distributive lattice".

Boole's work which inspired the mathematical definition concerned algebras of sets, involving the operations of intersection, union and complement on sets. Such algebras obey the following identities where the operators ^, V, - and constants 1 and 0 can be thought of either as set intersection, union, complement, universal, empty; or as two-valued logic AND, OR, NOT, TRUE, FALSE; or any other conforming system.

a ^ b = b ^ a a V b = b V a (commutative laws) (a ^ b) ^ c = a ^ (b ^ c) (a V b) V c = a V (b V c) (associative laws) a ^ (b V c) = (a ^ b) V (a ^ c) a V (b ^ c) = (a V b) ^ (a V c) (distributive laws) a ^ a = a a V a = a (idempotence laws) --a = a -(a ^ b) = (-a) V (-b) -(a V b) = (-a) ^ (-b) (de Morgan's laws) a ^ -a = 0 a V -a = 1 a ^ 1 = a a V 0 = a a ^ 0 = 0 a V 1 = 1 -1 = 0 -0 = 1

There are several common alternative notations for the "-" or logical complement operator.

If a and b are elements of a Boolean algebra, we define a <= b to mean that a ^ b = a, or equivalently a V b = b. Thus, for example, if ^, V and - denote set intersection, union and complement then <= is the inclusive subset relation. The relation <= is a partial ordering, though it is not necessarily a linear ordering since some Boolean algebras contain incomparable values.

Note that these laws only refer explicitly to the two distinguished constants 1 and 0 (sometimes written as LaTeX \top and \bot), and in two-valued logic there are no others, but according to the more general mathematical definition, in some systems variables a, b and c may take on other values as well.
This article is provided by FOLDOC - Free Online Dictionary of Computing (foldoc.org)

Boolean logic

The "mathematics of logic," developed by English mathematician George Boole in the mid-19th century. Just as add, subtract, multiply and divide are the primary operations of arithmetic, AND, OR and NOT are the primary logical operators of Boolean logic and building blocks of every digital circuit. NAND (not AND), NOR (not OR) and XOR (exclusive OR) are variations of AND, OR and NOT (see NAND, NOR and XOR). See Boolean search, binary, logic gate and Bebop to the Boolean Boogie.


Decimal vs. Binary
Decimal arithmetic holds 10 values (0 to 9) in each digit position. In binary, there are only two (0 and 1). Note below the four possible result and carry bits when adding two binary digits (bits) together.


AND, OR and NOT Gates
Transistors wired in series and parallel patterns make up these "gates," which accept inputs of 0 (no pulse) or 1 (a pulse) and generate outputs of 0 or 1. While AND requires that both inputs are 1 to generate an output of 1, OR only needs one input to be 1. NOT reverses the input. For a diagram of these actions, see Boolean gates.



Decimal vs. Binary
Decimal arithmetic holds 10 values (0 to 9) in each digit position. In binary, there are only two (0 and 1). Note below the four possible result and carry bits when adding two binary digits (bits) together.







Add a One and Zero
Trace the red 1 (pulse, current) and white 0 (no pulse, no current) through the gates and notice their outputs. This half-adder circuit is in every CPU.


Add a One and Zero
Trace the red 1 (pulse, current) and white 0 (no pulse, no current) through the gates and notice their outputs. This half-adder circuit is in every CPU.







Trace the Flow Yourself
Choose any two binary digits as input and trace them through this half-adder circuit (0 is no current; 1 is current). Watch how the output is generated.


Trace the Flow Yourself
Choose any two binary digits as input and trace them through this half-adder circuit (0 is no current; 1 is current). Watch how the output is generated.







Patterns of Boolean Logic
Transistors (depicted here as mechanical switches) make up gates. Gates make up circuits, and circuits make up every digital device. There are millions and billions of transistors in modern chips, and they fit in an area smaller than a postage stamp. For more details, see Boolean gates. See transistor and chip.
Copyright © 1981-2025 by The Computer Language Company Inc. All Rights reserved. THIS DEFINITION IS FOR PERSONAL USE ONLY. All other reproduction is strictly prohibited without permission from the publisher.
Mentioned in
Copyright © 2003-2025 Farlex, Inc Disclaimer
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional.