Boolean Operators
Definition: Boolean Operator
A Boolean operator is a Boolean function of the following form for some :
Definition: Off-Set
The off-set of is the set of all inputs for which outputs :
Definition: On-Set
The on-set of is the set of all inputs for which outputs :
Definition: Shannon Cofactors
The positive Shannon cofactor of with respect to the -th variable is the restriction of to .
NOTATION
The negative Shannon cofactor of with respect to the -th variable is the restriction of to .
NOTATION
Definition: Contradiction
A logical connective is a contradiction or contradictory when for all .
Definition: Tautology
A logical connective is a tautology or tautological when for all .
Theorem: Cofactor Substitution
The Shannon cofactors of a logical connective obey the following rules:
PROOF
We need to prove four things:
- (1) .
- (2) .
- (3) .
- (4) .
Proof of (1):
If , then the left-hand side is . Similarly, the right-hand side is . The left-hand side and right-hand side are therefore equal when .
If , then the left-hand side is . Similarly, the right-hand side is . However, in this case, and are the same by definition. The left-hand side and right-hand side are therefore equal when .
We have thus shown that the law holds for all possible values of , i.e. it holds in general.
Proof of (2):
If , then the left-hand side is . Similarly, the right-hand side is . However, in this case, and are the same by definition. The left-hand side and right-hand side are therefore equal when . The left-hand side and right-hand side are therefore equal when .
If , then the left-hand side is . Similarly, the right-hand side is . The left-hand side and right-hand side are therefore equal when .
We have thus shown that the law holds for all possible values of , i.e. it holds in general.
Proof of (3):
Analogous.
Proof of (4):
Analogous.
Boole's Expansion Theorem
If and are the Shannon cofactors of a logical connective with respect to the -th variable, then:
PROOF
We need to prove two things:
- (1) .
- (2) .
Proof of (1): The following proof was generated by AI and has not been human-verified. As such, it may contain mistakes.
If :
- The LHS becomes , which by definition is the cofactor .
- The RHS becomes .
- Since , this simplifies to .
- Using the identities and , we get .
- Using the identity , the RHS simplifies to .
- Thus, for , LHS = RHS.
If :
- The LHS becomes , which by definition is the cofactor .
- The RHS becomes .
- Since , this simplifies to .
- Using the identities and , we get .
- Using the identity , the RHS simplifies to .
- Thus, for , LHS = RHS.
Since the equality holds for both possible values of , the identity is proven true for all inputs.
Proof of (2): The following proof was generated by AI and has not been human-verified. As such, it may contain mistakes..
If :
- The LHS is again .
- The RHS becomes .
- Since , this simplifies to .
- Using the identities and , we get .
- Using the identity , the RHS simplifies to .
- Thus, for , LHS = RHS.
If :
- The LHS is again .
- The RHS becomes .
- Since , this simplifies to .
- Using the identities and , we get .
- Using the identity , the RHS simplifies to .
- Thus, for , LHS = RHS.
Logic Laws
Notation: Precedence
Typically, the precedence of logical connectives decreases in the following order: negation, conjunction, disjunction.
EXAMPLE
Theorem: Associativity Laws
Conjunction and disjunction are assosiative:
PROOF
We need to prove two things:
- (1) .
- (2) .
Proof of (1):
Proof of (2):
Theorem: Distributivity Laws
Conjunction and disjunction are distributive over one another:
PROOF
We need to prove two things:
- (1) .
- (2) .
Proof of (1):
If , then the left-hand side is . Furthermore, the right-hand side is . The left-hand side and right-hand side are therefore equal when .
If , then the left-hand side is . Furthermore, the right-hand side is . The left-hand side and right-hand side are therefore equal when .
We have thus shown that the law holds for all possible values of , i.e. it holds in general.
Proof of (2):
If , then the left-hand is . Furthermore, the right-hand side is . The left-hand side and right-hand side are therefore equal when .
If , then the left-hand is . Furthermore, the right-hand side is . The left-hand side and right-hand side are therefore equal when .
We have thus shown that the law holds for all possible values of , i.e. it holds in general.
Theorem: De Morgan's Laws
Negation, conjunction and disjunction are related by the following laws:
PROOF
We need to prove two things:
- (1) .
- (2) .
Proof of (1):
If , then the left-hand side is . Furthermore, the right-hand side is . The left-hand side and right-hand side are therefore equal when .
If , then the left-hand side is . Furthermore, the right-hand side is . The left-hand side and right-hand side are therefore equal when .
We have thus shown that the law holds for all possible values of , i.e. it holds in general.
Proof of (2):
If , then the left-hand side is . Furthermore, the right-hand side is . The left-hand side and right-hand side are therefore equal when .
If , then the left-hand side is . Furthermore, the right-hand side is . The left-hand side and right-hand side are therefore equal when .
We have thus shown that the law holds for all possible values of , i.e. it holds in general.
Theorem: Absorption Laws
Conjunction and disjunction have the following properties:
PROOF
We need to prove two things:
- (1) .
- (2) .
Proof of (1):
If , then the left-hand side is . Furthermore, the right-hand side is just . The left-hand side and right-hand side are therefore equal when .
If , then the left-hand side is . Furthermore, the right-hand side is just . The left-hand side and right-hand side are therefore equal when .
We have thus shown that the law holds for all possible values of , i.e. it holds in general.
Proof of (2):
If , then the left-hand side is . Furthermore, the right-hand side is just . The left-hand side and right-hand side are therefore equal when .
If , then the left-hand side is . Furthermore, the right-hand side is just . The left-hand side and right-hand side are therefore equal when .
We have thus shown that the law holds for all possible values of , i.e. it holds in general.
Theorem: Resolution Laws
Negation, conjunction and disjunction have the following properties:
PROOF
We need to prove two things:
- (1) .
- (2) .
Proof of (1):
If , then the left-hand side is . Furthermore, the right-hand side is . By the absorption law, . The left-hand side and right-hand side are therefore equal when .
If , then the left-hand side is . Furthermore, the right-hand side is . By the absorption law, . The left-hand side and right-hand side are therefore equal when .
We have thus shown that the law holds for all possible values of , i.e. it holds in general.
Proof of (2):
If , then the left-hand side is . Furthermore, the right-hand side is . By the absorption law, . The left-hand side and right-hand side are therefore equal when .
If , then the left-hand side is . Furthermore, the right-hand side is . By the absorption law, . The left-hand side and right-hand side are therefore equal when .
We have thus shown that the law holds for all possible values of , i.e. it holds in general.
Theorem: Boolean Expansion of Negation
If and are the Shannon cofactors of a logical connective with respect to the -th variable, then the negation of can be express in the following ways:
PROOF
We need to prove two things:
- (1) .
- (2) .
Proof of (1): The following proof was generated by AI and has not been human-verified. As such, it may contain mistakes.
This identity is derived by applying the Shannon expansion theorem directly to the function . The Shannon expansion of any function with respect to a variable is:
Let’s set . This gives us:
Now, we evaluate the cofactors of . The cofactor is the function evaluated with . This is equivalent to first evaluating with (which is ) and then negating the result. Therefore:
Similarly, for the cofactor with respect to :
Substituting these back into the expansion for , we get the desired identity:
Proof of (2): The following proof was generated by AI and has not been human-verified. As such, it may contain mistakes.
This identity is derived by starting with the standard Shannon expansion of the original function and applying De Morgan’s laws.
The Shannon expansion of is:
Now, we negate both sides of the equation:
Using De Morgan’s law (), we get:
Next, we apply De Morgan’s law again to each term ():
Finally, using the law of double negation () on the term , we arrive at the identity:
By the commutative property of conjunction, this is equivalent to: