Boolean Algebra#
Boolean algebra is algebra concerned with boolean values; 0 and 1 (off and on).
The order of operations differ from standard algebra.
Standard Algebra Order:
Brackets
Exponents
Juxtaposition
Multiplication / Division
Addition / Subtraction
Boolean Algebra Order:
Brackets
NOT (exponent)
AND (juxtaposition)
OR (addition)
What is a complement
A mathematical complement decribes a system where the elements are not within the current set. In binary, there is only one other complement.
Boolean Postulates#
\(0 \cdot 0 = 0\)
\(1 \cdot 0 = 0\)
\(1 \cdot 1 = 1\)
\(0 + 0 = 0\)
\(1 + 0 = 1\)
\(1 + 1 = 1\)
\(1' = 0\)
\(0' = 1\)
Laws#
Annulment Law#
The definition of annulment from Google
The act of annulling; abolition; invalidation.
Annulment describes a process of destroying something.
In this context when we plug in 0’s we expect 0’s back; and the same goes for 1’s
General Definition
a
is the binary value*
is any binary operation0
1
Zero Annulment#
A |
B |
A \(\cdot\) B |
---|---|---|
0 |
0 |
0 |
1 |
0 |
0 |
One Annulment#
A |
B |
A \(+\) B |
---|---|---|
0 |
1 |
1 |
1 |
1 |
1 |
Identity Law#
The identity law states that each variable is equal to itself when combined with identity elements.
General Definition
a
is the binary valuee
is any binary value*
is any binary operation
OR Gate#
A |
B |
A \(+\) B |
---|---|---|
0 |
0 |
A |
1 |
0 |
A |
AND Gate#
A |
B |
A \(\cdot\) B |
---|---|---|
0 |
1 |
A |
1 |
1 |
A |
Idempotent Law#
The definition of indempotent from Google
Describing an action which, when performed multiple times, has no further effect on its subject after the first time it is performed.
The law states that a variable that performs a binary operation on itself yields itself.
General Definition
a
is the binary valuee
is any binary value*
is any binary operation
Performing an OR / AND operation yields as follows.
OR Gate#
A |
A |
A \(\cdot\) A |
---|---|---|
0 |
0 |
A |
1 |
1 |
A |
AND Gate#
A |
A |
A \(+\) A |
---|---|---|
0 |
0 |
A |
1 |
1 |
A |
Complement Law#
The complement of binary number can either be 0 or 1; Performing an OR / AND operation yields as follows.
OR Gate#
A |
A’ |
A+A’ |
---|---|---|
0 |
1 |
1 |
1 |
0 |
1 |
AND Gate#
A |
A’ |
A \(\cdot\) A’ |
---|---|---|
0 |
1 |
0 |
1 |
0 |
0 |
Commutative Law#
The commutative law states that the order of operation does not matter with either AND or OR
Proof#
A |
B |
A+B |
AB |
B+A |
BA |
---|---|---|---|---|---|
0 |
0 |
0 |
0 |
0 |
0 |
0 |
1 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
1 |
1 |
1 |
1 |
1 |
Involution (Double Negation) Law#
The negation law describes the NOT operation and when performing the operation twice yields the original variable value.
A |
A’ |
(A’)’ |
---|---|---|
0 |
1 |
0 |
1 |
0 |
1 |
Distributive Laws#
There are two statements under the distributive laws.
Proof \(A(B+C) = A \cdot B + A \cdot C\)#
A |
B |
C |
AB |
AC |
AB+AC |
B+C |
A(B+C) |
---|---|---|---|---|---|---|---|
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
1 |
0 |
0 |
0 |
1 |
0 |
0 |
1 |
0 |
0 |
0 |
0 |
1 |
0 |
0 |
1 |
1 |
0 |
0 |
0 |
1 |
0 |
1 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
1 |
0 |
1 |
0 |
1 |
1 |
1 |
1 |
1 |
1 |
0 |
1 |
0 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
Proof \(A + B \cdot C = (A + B) \cdot (A + C)\)#
A |
B |
C |
BC |
A+BC |
A+B |
A+C |
(A+B)(A+C) |
---|---|---|---|---|---|---|---|
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
1 |
0 |
0 |
0 |
1 |
0 |
0 |
1 |
0 |
0 |
0 |
1 |
0 |
0 |
0 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
0 |
0 |
0 |
1 |
1 |
1 |
1 |
1 |
0 |
1 |
0 |
1 |
1 |
1 |
1 |
1 |
1 |
0 |
0 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
Absorptive Law#
The absorptive law describes the reduction in an expression by absorbing like terms.
Associative Law#
The associative law describes the removal of brackets and regrouping of variables in an expression.
OR#
AND#
De Morgan’s Laws#
Proof#
TODO - Adding in after learning set theory
AND Operation and its rules#
The AND operation is True(1) if both variables are 1.
A |
B |
A \(\cdot\) B |
---|---|---|
0 |
0 |
0 |
0 |
1 |
0 |
1 |
0 |
0 |
1 |
1 |
1 |
The AND operations follows these laws:
- Annulment Law
A \(\cdot\) 0 = 0
- Identity Property
A \(\cdot\) 1 = A
- Idempotent Property
A \(\cdot\) A = A
- Complement Property
A \(\cdot\) A` = 0
OR Operation and its rules#
The OR operation is True(1) if either one of the variables are 1.
A |
B |
A+B |
---|---|---|
0 |
0 |
0 |
0 |
1 |
1 |
1 |
0 |
1 |
1 |
1 |
1 |
The OR operations follows these laws:
- Annulment Law
A + 0 = A
- Identity Property
A + 1 = 1
- Idempotent Property
A + A = A
- Complement Property
A + A` = 1