How Can I Correctly Prove the Demorgan Laws?

  • Thread starter tomboi03
  • Start date
  • Tags
    Law
In summary: So L.H.S= R.H.S is proved.In summary, the 1st Demorgan Law states that A minus the union of B and C is equal to the intersection of A minus B and A minus C. Similarly, the 2nd Demorgan Law states that A minus the intersection of B and C is equal to the union of A minus B and A minus C. It is important to carefully distribute the negation when using these laws.
  • #1
tomboi03
77
0
1st Demorgan Law
A-(B[tex]\cup[/tex]C) = (A-B)[tex]\cap[/tex](A-C)

I tried this..
={x: x[tex]\in[/tex]A, x[tex]\notin[/tex](B[tex]\cup[/tex]C)}
={x: x[tex]\in[/tex]A, x[tex]\notin[/tex]B OR x[tex]\notin[/tex]C}
={x: x[tex]\in[/tex]A, x[tex]\notin[/tex]B AND x[tex]\in[/tex]A, x[tex]\notin[/tex]C}
=(A-B)[tex]\cap[/tex](A-C)

2nd Demorgan Law
A-(B[tex]\cap[/tex]C) = (A-B)[tex]\cup[/tex](A-C)

={x: x[tex]\in[/tex]A, x[tex]\notin[/tex](B[tex]\cap[/tex]C)}
={x: x[tex]\in[/tex]A, x[tex]\notin[/tex]B AND x[tex]\notin[/tex]C}
={x: x[tex]\in[/tex]A, x[tex]\notin[/tex]B OR x[tex]\in[/tex]A, x[tex]\notin[/tex]C}
=(A-B)[tex]\cup[/tex](A-C)

Is this wrong? What am I doing wrong?
Please help me out!

Thank You!
 
Physics news on Phys.org
  • #2
tomboi03 said:
1st Demorgan Law
A-(B[tex]\cup[/tex]C) = (A-B)[tex]\cap[/tex](A-C)

I tried this..
={x: x[tex]\in[/tex]A, x[tex]\notin[/tex](B[tex]\cup[/tex]C)}
={x: x[tex]\in[/tex]A, x[tex]\notin[/tex]B OR x[tex]\notin[/tex]C}
There's your problem. x[tex]\notin[/tex](B[tex]\cup[/tex]C) if and only if x[tex]\notin[/tex]B AND x[tex]\notin[/tex]C. It helps to imagine the sets as venn diagrams. Alternatively, look at it as [tex]\neg[/tex] (x [tex]\in[/tex] (B[tex]\cup[/tex]C)) which becomes [tex]\neg[/tex](x [tex]\in[/tex]B OR x[tex]\in[/tex]C) and then the not distributes by de morgan's law for logic, producing x[tex]\notin[/tex]B AND x[tex]\notin[/tex]C. I assume you're allowed to use his logic rules to prove that they hold for sets. You make a similar mistake in the second one.
 
  • #3
Yes i agree with mXSCNT he explained very well where you made a mistake .

Alternatively you can prove the above by using the concept of subsets:

X=Y iff( X is a subset of Y and Y is a subset of X) iff ( xεX <===>xεY)
 

FAQ: How Can I Correctly Prove the Demorgan Laws?

What is the Demorgan Law?

The Demorgan Law is a fundamental law in mathematical logic that describes how logical operations can be applied to statements involving multiple variables. It states that the negation of a conjunction (AND) is equivalent to the disjunction (OR) of the negations of the individual statements, and vice versa.

Why is it important to prove the Demorgan Law?

Proving the Demorgan Law is important because it provides a formal mathematical proof for a fundamental concept in logic. It also allows us to understand and reason about complex logical statements and to simplify them using the Demorgan Law.

How is the Demorgan Law proven?

The Demorgan Law can be proven using truth tables, which show all possible combinations of truth values for the variables in a logical statement and demonstrate that the original statement is equivalent to its negation. It can also be proven using formal logical notation and rules of inference.

Is the Demorgan Law always applicable?

Yes, the Demorgan Law is a universal law that applies to all logical statements involving multiple variables. It is a fundamental principle in logic and is always valid.

What are some practical applications of the Demorgan Law?

The Demorgan Law has numerous practical applications in computer science, electrical engineering, and other fields that involve logical operations. It can be used to simplify complex logical statements, optimize digital circuits, and design efficient algorithms and data structures.

Similar threads

Replies
1
Views
960
Replies
11
Views
3K
Replies
5
Views
1K
Replies
1
Views
1K
Replies
1
Views
1K
Replies
10
Views
2K
Replies
1
Views
2K
Back
Top