DeMorgan's Laws
Learn how to apply the negation operator on some composite propositions.
It is not straightforward, though not difficult, to negate a conjunction or a disjunction of two propositions. There are chances of making subtle errors in this process, which requires careful attention.
How can we negate a conjunction or a disjunction of two propositions? DeMorgan’s celebrated laws provide the answer. Once we understand these laws, we will be able to apply the negation operator to compound propositions, significantly enhancing our capabilities. There are two natural parts to this question; let’s consider them one by one.
Negation of a conjunction
Let’s first look at how we can negate a conjunction. Let and be two propositions. According to DeMorgan’s first law:
Making a truth table for both expressions in equivalence (1) verifies this law:
T | T | F | F | T | F | F |
T | F | F | T | F | T | T |
F | T | T | F | F | T | T |
F | F | T | T | F | T | T |
The last two columns of the truth table contain the same truth values, thereby proving the law formally. We can also write this law in our “bar” notation as:
We can use verbal reasoning to verify this law: The left-hand side of equivalence (1) is true exactly when and are not simultaneously true. At the same time, the right-hand side is true if at least one of them is false. These are two different ways of saying the same thing.
Another way to understand this law is to say that to refute ; we have to either refute or refute .
In comparison, let’s construct the truth table for and .
T | T | F | F | T | F | F |
T | F | F | T | F | T | F |
F | T | T | F | F | T | F |
F | F | T | T | F | T | T |
The last two columns of the truth table are not the same. This shows that negation does not distribute over conjunction. Note that differs from exactly when one of the propositions or is true, and the other is false.
Examples
Let’s look at a few examples to understand further this negation operator’s behavior in the conjunction of two propositions.
Consider the following propositions:
- : Sara likes mathematics.
- : Sara likes coffee.
Let and . The proposition says Sara likes mathematics and coffee. In contrast, asserts that it is not the case that Sara likes mathematics and coffee.
The proposition is true when Sara dislikes both mathematics and coffee. What if Sara likes mathematics, but she does not like coffee? Or if she likes coffee and does not like mathematics? Then will be false, and therefore will be true. The statement is false only if Sara likes both the coffee and the mathematics.
Now consider,
The statement says that it is not the case that Sara likes mathematics and it is not the case that Sara likes coffee.
If Sara likes mathematics and does not like coffee, then is false because she likes mathematics. What about ? It is true because she does not like coffee, and therefore is not the case that she likes both mathematics and coffee because she does not like coffee.
Note: is very different from . To understand this difference we should focus on the cases when the truth value of and differ. This happens precisely when and have different truth values.
Let’s look at another example.
Consider the following propositions:
- : Maria has a dog.
- : Maria has a cat.
Now let,
- : Maria has a dog and a cat.
- : It is not the case that Maria has a dog and a cat.
The proposition will be true if Maria does not have a cat, regardless of whether she has a dog or not. Similarly, will be true if Maria does not have a dog, regardless of whether she has a cat or not. Hence,
Negation of a disjunction
DeMorgan’s second law describes how to negate a disjunction of two propositions. According to DeMorgan’s second law:
Where and are two arbitrary propositions. Once again, equivalence (2) is easily verified by making a truth table.
T | T | F | F | T | F | F |
T | F | F | T | T | F | F |
F | T | T | F | T | F | F |
F | F | T | T | F | T | T |
The last two columns of the truth table contain the same truth values, thereby proving the law. We can also write this law in our “bar” notation as,
Once again, verbal reasoning clarifies why this law holds: The left-hand side of Equivalence (2) when true, asserts that it is not the case that or are true. At the same time, the right-hand side claims that both and are false. Again, these are two different ways of saying the same thing.
Another way to understand this law is to say that to refute , we have to refute and refute .
Quiz
In which case has a different truth value from ?
is true and is true.
is true and is false.
is false and is true.
is false and is false.
Examples
Let’s look at a few examples to comprehend this behavior of the negation operator on the disjunction of two propositions.
Consider and again. Recall that,
- : Maria has a dog.
- : Maria has a cat.
Now,
-
: Maria has a dog or a cat. (Here stands for Maria has a pet)
-
: It is not the case that Maria has a dog or a cat. (Here stands for Maria has no pet).
The proposition will only be false if Maria does not have a cat and she also does not have a dog; this is precisely the scenario when should be true and should be false otherwise. Therefore,
Let’s consider,
- : Elizabeth is wearing glasses.
- : Smith is wearing glasses.
The disjunction of and gives us:
- : Elizabeth is wearing glasses or Smith is wearing glasses.
The proposition is only false when both Elizabeth and Smith are not wearing glasses. Therefore, the negation of is only true when both Elizabeth and Smith are not wearing glasses.
- : It is not the case that Elizabeth is wearing glasses or Smith is wearing glasses.
- : Elizabeth is not wearing glasses, and Smith is not wearing glasses.
We have,
Summarizing DeMorgan’s laws
We summarize the DeMorgan’s laws in the table below:
DeMorgan’s law | Description | Logical Equivalence | Law in bar notation |
---|---|---|---|
1 | Negating a conjunction of two propositions | ||
2 | Negating a disjunction of two propositions |
There is a simple way to remember these laws:
“When we push negation through the two basic binary operations, they switch their roles.”
Alert: The above colloquial phrase must be understood precisely and used with care.
Generalized form
To look at the generalized version of DeMorgan’s laws, assume the conjunction of propositions.
If we look at ,
As conjunction operator is associative, we can view the above logical equivalence as,
Now applying the DeMorgan’s law gives:
Let’s do one more step.
If we keep doing this step, in the end, we’ll get the following result:
Therefore,
Similarly we can get a result for distribution of negation over disjunction of propositions. Let,
Then,
Therefore,
Note: Distributive law does not hold for the negation operator. DeMorgan’s laws provide us with a way to handle this situation.
Quiz
Test your understanding of DeMorgan’s law.
: Harry likes to play soccer. <br> : Harry likes to play ping pong.
<br>
Which statement, if assumed true, will make true?
Harry does not like to play soccer.
Harry does not like to play ping pong.
Harry likes to play both soccer and ping pong.
Harry likes to play soccer, or he likes to play ping pong.
Application in real life
Let’s now look at an example with important implications in real life. Consider an insurance company that requires a client, Carla, to have yearly health checkups. Furthermore, Carla must see a doctor from a designated list upon developing any symptoms.
Let,
-
: Carla gets an annual health checkup.
-
: Carla visits a designated doctor for first advice upon developing any symptoms.
The insurance pays the health expense if she meets both requirements.
Let,
If is true, Carla can claim her health expenses. Carla needs to understand when the insurance company can deny her health expenses. She has to understand when is false or equivalently when is true. According to DeMorgan’s law:
DeMorgan’s law entails that if she fails to go for a yearly checkup or fails to consult a doctor from the designated list for first advice upon developing any symptoms, she does not fulfill the insurance company’s requirements.
As seen under the light of DeMorgan’s laws, the harshness of these requirements becomes apparent. The insurance company’s demands are fair if Carla fully understands them.
To fully understand such legalese, we must understand the meaning of sentences that simultaneously use negation, conjunction, and disjunction.