Logic/De Morgan's laws
From Internet Web School
(Difference between revisions)
(Created page with 'Logic > De Morgan's laws == Contents == * Category:Mathematical logic(Wikipedia) * [[wikipedia:Boolean_algebra_(logic)|Boole…') |
|||
Line 6: | Line 6: | ||
* [[wikipedia:Boolean_algebra_(logic)|Boolean algebra (logic)]] | * [[wikipedia:Boolean_algebra_(logic)|Boolean algebra (logic)]] | ||
* [[wikipedia:De_Morgan%27s_laws|De_Morgan's laws]] | * [[wikipedia:De_Morgan%27s_laws|De_Morgan's laws]] | ||
+ | |||
+ | == Overview == | ||
+ | |||
+ | === Definition of De Morgan's laws by truth table === | ||
+ | |||
+ | 0 means false, 1 means true, and ≡ means equivalent. | ||
+ | |||
+ | Case of "¬(P∧Q)" ≡ "¬P∨¬Q". | ||
+ | |||
+ | {| border="1" class="wikitable" style="background-color:#ddf" | ||
+ | ! style="background:#ffdead;" | P | ||
+ | ! style="background:#ffdead;" | Q | ||
+ | ! style="background:#ffdead;" | P∧Q | ||
+ | ! style="background:#ffdead;" | ¬P | ||
+ | ! style="background:#ffdead;" | ¬Q | ||
+ | ! style="background:#ffdead;" | ¬P∨¬Q | ||
+ | ! style="background:#ffdead;" | ¬(P∧Q) | ||
+ | |- | ||
+ | | 0 | ||
+ | | 0 | ||
+ | | 0 | ||
+ | | 1 | ||
+ | | 1 | ||
+ | | 1 | ||
+ | | 1 | ||
+ | |- | ||
+ | | 0 | ||
+ | | 1 | ||
+ | | 0 | ||
+ | | 1 | ||
+ | | 0 | ||
+ | | 1 | ||
+ | | 1 | ||
+ | |- | ||
+ | | 1 | ||
+ | | 0 | ||
+ | | 0 | ||
+ | | 0 | ||
+ | | 1 | ||
+ | | 1 | ||
+ | | 1 | ||
+ | |- | ||
+ | | 1 | ||
+ | | 1 | ||
+ | | 1 | ||
+ | | 0 | ||
+ | | 0 | ||
+ | | 0 | ||
+ | | 0 | ||
+ | |- | ||
+ | |} | ||
+ | |||
+ | Case of "¬(P∨Q)" ≡ "¬P∧¬Q". | ||
+ | |||
+ | {| border="1" class="wikitable" style="background-color:#ddf" | ||
+ | ! style="background:#ffdead;" | P | ||
+ | ! style="background:#ffdead;" | Q | ||
+ | ! style="background:#ffdead;" | P∨Q | ||
+ | ! style="background:#ffdead;" | ¬P | ||
+ | ! style="background:#ffdead;" | ¬Q | ||
+ | ! style="background:#ffdead;" | ¬P∧¬Q | ||
+ | ! style="background:#ffdead;" | ¬(P∨Q) | ||
+ | |- | ||
+ | | 0 | ||
+ | | 0 | ||
+ | | 0 | ||
+ | | 1 | ||
+ | | 1 | ||
+ | | 1 | ||
+ | | 1 | ||
+ | |- | ||
+ | | 0 | ||
+ | | 1 | ||
+ | | 1 | ||
+ | | 1 | ||
+ | | 0 | ||
+ | | 0 | ||
+ | | 0 | ||
+ | |- | ||
+ | | 1 | ||
+ | | 0 | ||
+ | | 1 | ||
+ | | 0 | ||
+ | | 1 | ||
+ | | 0 | ||
+ | | 0 | ||
+ | |- | ||
+ | | 1 | ||
+ | | 1 | ||
+ | | 1 | ||
+ | | 0 | ||
+ | | 0 | ||
+ | | 0 | ||
+ | | 0 | ||
+ | |- | ||
+ | |} | ||
+ | |||
+ | |||
== CAI Exercise == | == CAI Exercise == |
Latest revision as of 08:32, 23 May 2014
Logic > De Morgan's laws
Contents |
Contents
Overview
Definition of De Morgan's laws by truth table
0 means false, 1 means true, and ≡ means equivalent.
Case of "¬(P∧Q)" ≡ "¬P∨¬Q".
P | Q | P∧Q | ¬P | ¬Q | ¬P∨¬Q | ¬(P∧Q) |
---|---|---|---|---|---|---|
0 | 0 | 0 | 1 | 1 | 1 | 1 |
0 | 1 | 0 | 1 | 0 | 1 | 1 |
1 | 0 | 0 | 0 | 1 | 1 | 1 |
1 | 1 | 1 | 0 | 0 | 0 | 0 |
Case of "¬(P∨Q)" ≡ "¬P∧¬Q".
P | Q | P∨Q | ¬P | ¬Q | ¬P∧¬Q | ¬(P∨Q) |
---|---|---|---|---|---|---|
0 | 0 | 0 | 1 | 1 | 1 | 1 |
0 | 1 | 1 | 1 | 0 | 0 | 0 |
1 | 0 | 1 | 0 | 1 | 0 | 0 |
1 | 1 | 1 | 0 | 0 | 0 | 0 |