And - Or - Not in terms of one another

  • Thread starter N123
  • Start date
  • Tags
    Terms
In summary, it is possible to express the boolean AND in terms of boolean OR and boolean NOT, as shown by the equivalences a AND b <=> NOT (NOT a OR NOT b) and a OR b <=> NOT (NOT a AND NOT b). However, it is not possible to express NOT in terms of OR and AND, as demonstrated by the contradiction that arises when attempting to do so. One alternative is to use the Sheffer stroke, which can express all boolean functions.
  • #1
N123
8
0
It is possible to express the boolean AND in terms of boolean OR and boolean NOT:
a AND b <=> NOT (NOT a OR NOT b)
Similarly,
a OR b <=> NOT (NOT a AND NOT b)

Why can't we express NOT in terms of OR and AND?
 
Physics news on Phys.org
  • #3
Suppose we have a boolean expression ##\phi(A,B,C,\dots...)## built up by the atomic sentences ##A,B,C,\dots##and the connectives ##\land## and ##\lor## only, such that ##\phi(A,B,C\dots)\equiv\neg A##.
Since the truth value of ##\neg A## is independent of the truth values of ##B,C,\dots##, the equivalence will still hold if we replace ##B,C,\dots## with any sentences, in particular, if we replace them all with ##A##, so ##\phi(A,B,C,\dots)\equiv
\phi(A,A,A,\dots)##, the latter being built up from ##A##, ##\land##, and ##\lor## only. But since ##A\land A\equiv A## and ##A\lor A \equiv A##, ##\phi(A,A,A,\dots)## can be successively reduced to ##A##, so, ##\phi(A,A,A,\dots)\equiv A##.
Thus, ##A\equiv\neg A##, which clearly is a contradiction.
 
  • Like
Likes jedishrfu and N123
  • #4
Erland said:
ϕ(A,B,C…)≡¬A\phi(A,B,C\dots)\equiv\neg A.
Since the truth value of ¬A\neg A is independent of the truth values of B,C,…B,C,\dots, the equivalence will still hold if we replace B,C,…B,C,\dots with any sentences,
Clever! I am almost ready to buy it.
What do you mean by atomic sentences? Are B, C etc propositions or are they literals? Not sure yet if it matters, but if A, B, C are themselves composed of other "variables" X, Y, Z then their truth values may not be independent.
But then again, they are independent in the general case.
For example: NOT A = B U C if the universal set is {A, B, C}.
Apologies for the lack of rigor in the language used to express these ideas, I am not a mathematician.
 
  • #5
I mean that ##A,B,C, \dots## are atomic sentences or propostions, i.e. that they are not built up from simpler propositions by connectives. But as you say, it doesn't really matter, everything I wrote still holds whether ##A,B,C,\dots## are atomic or not, independent or not, etc...

Edit: ##\equiv## means logical equivalence, which means that e.g. ##\neg(A\land B)\equiv \neg A \lor \neg B## means that ##\neg(A\land B)## and ##\neg A \lor \neg B## either are both true or both false, no matter which truth values we assign to ##A## and ##B##. We can have an interpretation where ##\neg A\leftrightarrow (B\lor C)## is true, but this is not true for all interpretations.
 
Last edited:
  • Like
Likes jedishrfu and N123
  • #6
OP: Have you considered using the Sheffer stroke?
 
  • #7
WWGD - that is not my question. I know that AND, OR, NOT can be expressed in terms of NAND (Sheffer stroke.) Also, just using NOR.
 

FAQ: And - Or - Not in terms of one another

1. What do "and", "or", and "not" mean in terms of one another?

"And", "or", and "not" are logical operators used in Boolean algebra to combine or negate statements. They are used to create complex logical expressions that can be evaluated to either true or false.

2. How does "and" function in Boolean logic?

"And" is a logical operator that returns true only if both statements being evaluated are true. Otherwise, it returns false. In other words, for an "and" operation to be true, both statements must be true.

3. Can "or" and "not" be used together in a logical expression?

Yes, "or" and "not" can be used together in a logical expression to create more complex statements. For example, (A or B) and not C. This statement would be true if either A or B is true, but C is not true.

4. How is "not" used in Boolean logic?

"Not" is used to negate a statement, meaning it returns the opposite value. For example, if a statement is true, "not" will return false. If a statement is false, "not" will return true.

5. What is the order of operations for "and", "or", and "not" in a logical expression?

The order of operations for "and", "or", and "not" in a logical expression follows the standard mathematical order of operations. "Not" is evaluated first, followed by "and", and then "or". However, parentheses can be used to change the order of evaluation.

Similar threads

Replies
21
Views
2K
Replies
4
Views
934
Replies
12
Views
6K
Replies
20
Views
4K
Replies
40
Views
7K
Replies
6
Views
2K
Replies
4
Views
2K
Back
Top