Discrete math De Morgan's Laws. So like if I have a form p^q and say I make p equal giving you cookies and q giving you milk so the sentence is just "Giving you cookies and giving you milk" like when I think about it if I think of the opposite(negation) I just automatically think it's not giving you cookies and not giving you milk but this is wrong but is it really? I mean am I just misunderstanding what opposite/negation means here?

Ciolan3u

Ciolan3u

Answered question

2022-09-07

Discrete math De Morgan's Laws. So like if I have a form p q and say I make p equal giving you cookies and q giving you milk so the sentence is just "Giving you cookies and giving you milk" like when I think about it if I think of the opposite(negation) I just automatically think it's not giving you cookies and not giving you milk but this is wrong but is it really? I mean am I just misunderstanding what opposite/negation means here?

Answer & Explanation

Lorenzo Aguilar

Lorenzo Aguilar

Beginner2022-09-08Added 18 answers

Step 1
Speedy intro to propositional logic:
It does seem like you are confused about what negation is. So let's quickly review. First, we need to know what a proposition is. A proposition is something which can be either true or false. Negation is an operation that flips the truth value of a proposition. In your example, p and q are the propositions. For any proposition p, if p is true, then ¬ p is false.
Step 2
Now, turning to the cookie/milk example:
Let p = "I gave you cookies"
Let q = "I gave you milk"
Then r = p q = "I gave you cookies and I gave you milk"
In your question, you ask if ¬ ( p q ) = ¬ p ¬ q. This is not true, because if p = True and q = False, then ¬ ( p q ) =True but ¬ p ¬ q = False.

Do you have a similar question?

Recalculate according to your conditions!

New Questions in Discrete math

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?