de Morgan's Laws

1 Conversation


Augustus De Morgan (1806-1871) was an Englishman, born in India, who became a mathematician and was co-founder of the London Mathematical Society. Among his several contributions to mathematics, he made rigorous the principle of induction, but is now best remembered for the two laws which bear his name. These laws are extremely useful when manipulating Boolean expressions, and are :-


The complement of a logical sum of terms is equivalent to the logical product of the complements of those terms, that is NOT ( A OR B OR ··· OR N ) = ( NOT A ) AND ( NOT B ) AND ··· AND ( NOT N ).


The complement of a logical product of terms is equivalent to the logical sum of the complements of those terms, that is NOT ( A AND B AND ··· AND N ) = ( NOT A ) OR ( NOT B ) OR ··· OR ( NOT N ).


Both are easily proven, from the basic definitions of a sum and a product.


A sum of terms, that is the logical OR of the those terms, is true if any term is true, and is false only when all terms are false. The complement of a sum is then true only when all terms are false, that is when the complement of every term is true, in other words when the product of complements is true. But that product is then false when any complement is false, that is when any term is true. This establishes the law that the complement of a sum of terms is equivalent to the product of the complemented terms.


A product of terms, that is the logical AND of those terms, is true only when every term is true, and is false if any term is false. The complement of a product is then true when any term is false, that is when the complement of any term is true, in other words when the sum of the complements is true. But that sum is then false only when all complements are false, that is when all terms are true. This establishes the law that the complement of a product of terms is equivalent to the sum of the complemented terms.

A
AB
AC
ABC
B
C
BC

These laws can visualised by means of a Venn Diagram, shown to the right. In this figure, there are three circles, labelled A, B and C.


Both laws can be expressed differently, in a form which gives meaning to the use of a double negative. In these paraphrasings of de Morgan's laws, the word denial is used in place of the word complement, and untrue is used in place of false.


The logical OR of several possibilities is the denial of the logical AND of the denials of those possibilities. In other words, at least one possibility is asserted as true when it is denied that all are untrue, or in terms of Boolean functions A OR B OR ··· OR N = NOT ( ( NOT A ) AND ( NOT B ) AND ··· AND ( NOT N ) ).


The logical AND of several possibilities is the denial of the logical OR of the denials of those possibilities. In other words, all possibilities are asserted if it must be denied that any are untrue, or in terms of Boolean functions
A AND B AND ··· AND N = NOT ( ( NOT A ) OR ( NOT B ) OR ··· OR ( NOT N ) )


Bookmark on your Personal Space


Entry

A2241181

Infinite Improbability Drive

Infinite Improbability Drive

Read a random Edited Entry


Written and Edited by

Disclaimer

h2g2 is created by h2g2's users, who are members of the public. The views expressed are theirs and unless specifically stated are not those of the Not Panicking Ltd. Unlike Edited Entries, Entries have not been checked by an Editor. If you consider any Entry to be in breach of the site's House Rules, please register a complaint. For any other comments, please visit the Feedback page.

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more