Chapterبەش 7 · Lectureوانە 7.3
De Morgan's Theoremsسەلمێنراوەکانی دی مۆرگان
How to remove a NOT bar that covers a whole AND or OR: De Morgan's two theorems with truth-table proofs, the rule “break the bar, change the sign”, more variables, bars over groups, the gate pictures (NAND = negative-OR, NOR = negative-AND), the same law for sets and for conditions in programs, and the lecture's eight exercises.
چۆن هێڵێکی NOT لادەبەیت کە هەموو ANDـێک یان ORـێک دادەپۆشێت: هەردوو لەگەڵ سەلماندنیان بە ، یاسای «هێڵەکە بشکێنە، نیشانەکە بگۆڕە»، زیاتر، هێڵ لەسەر گرووپ، وێنەی (NAND = ، NOR = )، هەمان یاسا بۆ و بۆ لە بەرنامەکاندا. لە کۆتاییدا هەشت ڕاهێنانەکەی وانەکە.
What you will learnچی فێر دەبیت
- State De Morgan's two theorems in words and as formulas, and prove them with a truth table.
- Apply “break the bar, change the sign” to expressions with many variables, groups and double bars.
- Explain why a NAND gate equals an OR gate with inverted inputs and a NOR gate equals an AND gate with inverted inputs.
- Recognise the same law for sets and for conditions in programs.
- هەردوو بە وشە و بە هاوکێشە بڵێیت و بە بیانسەلمێنیت.
- یاسای «هێڵەکە بشکێنە، نیشانەکە بگۆڕە» لەسەر چەند ، گرووپ و هێڵی دووانە جێبەجێ بکەیت.
- ڕوون بکەیتەوە بۆچی یەکسانە بە کە پێچەوانەکراون و یەکسانە بە کە پێچەوانەکراون.
- هەمان یاسا لە و لە بەرنامەکاندا بناسیتەوە.
A bar over a whole groupهێڵێک لەسەر هەموو گرووپێک
In Boolean algebra a bar over a letter means NOT. A short bar over one letter is easy: is the complement of A. But often one long bar covers a whole group: means “NOT (A AND B)” and means “NOT (A OR B)”. You cannot simply copy the long bar onto each letter: is not the same as . De Morgan's two theorems tell you exactly what a long bar turns into.
لە هێڵێک لەسەر پیتێک واتە NOT. هێڵێکی کورت لەسەر یەک پیت ئاسانە: Aـیە. بەڵام زۆرجار یەک هێڵی درێژ هەموو گرووپێک دادەپۆشێت: واتە «NOT (A AND B)» و واتە «NOT (A OR B)». ناتوانیت هێڵە درێژەکە بە سادەیی بخەیتە سەر هەر پیتێک: هەمان نییە. ڕێک پێت دەڵێن هێڵە درێژەکە دەبێتە چی.
Two rules for the complement of AND and OR: and . In short: break the bar and change the sign.
دوو یاسان بۆ AND و OR: و . بە کورتی: هێڵەکە بشکێنە و نیشانەکە بگۆڕە.
The theorems carry the name of Augustus De Morgan, a British mathematician who wrote them down in 1847, the same year George Boole published his first book on the algebra of logic. Today they are used every day: to redraw circuits with cheaper gates, to simplify expressions and to rewrite conditions in programs.
ناوی ئۆگەستەس دی مۆرگانیان لەسەرە، بیرکارزانێکی بەریتانی کە لە ساڵی 1847 نووسینی، هەمان ساڵ کە جۆرج بوول یەکەم کتێبی خۆی لەسەر لۆجیک بڵاو کردەوە. ئەمڕۆ هەموو ڕۆژێک بەکار دەهێنرێن: بۆ دووبارە کێشانەوەی بە هەرزانتر، بۆ کورتکردنەوەی و بۆ نووسینەوەی لە بەرنامەکاندا.
A bar over a whole groupهێڵێک لەسەر هەموو گرووپێک
Two orders in the tea houseدوو داواکاری لە چایخانە
Aram tells the waiter: “It is not true that I want tea and sugar.” He does not want the two together, so either he wants no tea, or no sugar, or neither: NOT (tea AND sugar) = (NOT tea) OR (NOT sugar). Shilan says: “I want neither tea nor coffee.” That is NOT (tea OR coffee), and it means no tea AND no coffee. These are exactly De Morgan's two theorems.
ئارام بە چایچییەکە دەڵێت: «وا نییە کە چا و شەکرم پێکەوە بوێت.» ئەو هەردووکیانی پێکەوە ناوێت، کەواتە یان چای ناوێت یان شەکری ناوێت یان هیچیان: NOT (چا AND شەکر) = (NOT چا) OR (NOT شەکر). شیلان دەڵێت: «نە چام دەوێت نە قاوە.» ئەوە NOT (چا OR قاوە)ـیە و واتای ئەوەیە: چا نا AND قاوە نا. ئەمانە ڕێک هەردوو .
Where the analogy stops workingسنووری ئەم نموونەیە
Everyday speech is loose: people say “not tea and sugar” for different things. In Boolean algebra the bar shows exactly what is negated, so there is never a doubt.
قسەی ڕۆژانە ورد نییە: خەڵک «چا و شەکرم ناوێت» بۆ مەبەستی جیاواز دەڵێن. لە هێڵەکە ڕێک نیشان دەدات چی نەفی کراوە، بۆیە هەرگیز گومان نامێنێت.
Theorem 1: NOT of an ANDسەلمێنراوی یەکەم: NOTـی AND
The complement of a product equals the sum of the complements. Said another way: NOT of two or more ANDed variables is the same as the OR of the separate NOTs.
لێکدانێک یەکسانە بە کۆی . بە واتایەکی تر: NOTـی دوو یان زیاتر کە بە AND بەستراون هەمانە لەگەڵ ORـی NOTـی هەر یەکێکیان.
Read it: NOT (A AND B) equals (NOT A) OR (NOT B).
بیخوێنەوە: NOT (A AND B) یەکسانە بە (NOT A) OR (NOT B).
| 0 | 0 | 0 | 1 | 1 | 1 | 1 |
| 0 | 1 | 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 | 0 | 1 | 1 |
| 1 | 1 | 1 | 0 | 0 | 0 | 0 |
Why is it true? is 1 in only one row, where , so is 0 only in that row. On the other side, is 0 only when both and are 0, which again means . One single 0 in the same row, and 1 everywhere else.
بۆچی ڕاستە؟ تەنها لە یەک ڕیزدا 1ـە، ئەویش کاتێک ، بۆیە تەنها لەو ڕیزەدا 0ـە. لە لایەکی ترەوە تەنها کاتێک 0ـە کە و هەردووکیان 0 بن، واتە دیسان . یەک 0 لە هەمان ڕیزدا و لە هەموو شوێنێکی تر 1.
Theorem 2: NOT of an ORسەلمێنراوی دووەم: NOTـی OR
The complement of a sum equals the product of the complements. NOT of two or more ORed variables is the same as the AND of the separate NOTs.
کۆیەک یەکسانە بە لێکدانی . NOTـی دوو یان زیاتر کە بە OR بەستراون هەمانە لەگەڵ ANDـی NOTـی هەر یەکێکیان.
Read it: NOT (A OR B) equals (NOT A) AND (NOT B).
بیخوێنەوە: NOT (A OR B) یەکسانە بە (NOT A) AND (NOT B).
| 0 | 0 | 0 | 1 | 1 | 1 | 1 |
| 0 | 1 | 1 | 0 | 1 | 0 | 0 |
| 1 | 0 | 1 | 0 | 0 | 1 | 0 |
| 1 | 1 | 1 | 0 | 0 | 0 | 0 |
Why? is 0 only when , so is 1 only in that row. is 1 only when and are both 1, which is again . Notice that the two theorems are mirror images: swap AND with OR in one and you get the other.
بۆچی؟ تەنها کاتێک 0ـە کە ، بۆیە تەنها لەو ڕیزەدا 1ـە. تەنها کاتێک 1ـە کە و هەردووکیان 1 بن، واتە دیسان . سەرنج بدە کە هەردوو وێنەی ئاوێنەی یەکترن: لە یەکێکیاندا AND و OR جێگۆڕکێ پێ بکە، ئەوی تر دەردەچێت.
Proves De Morgan's law for NOT (p OR q) three ways: with a truth table, with known laws and with an everyday sentence.
بۆ NOT (p OR q) بە سێ ڕێگا دەسەلمێنێت: بە ، بە یاسا ناسراوەکان و بە نموونەیەکی ژیانی ڕۆژانە.
Whole video (5:29): truth-table proof of ~(p ∨ q) ≡ ~p ∧ ~q, an everyday check, then both laws used in a short simplification.
هەموو ڤیدیۆکە (5:29): بە ، پشکنینێکی ڕۆژانە، پاشان بەکارهێنانی هەردوو یاساکە لە نموونەیەکی کورتی کورتکردنەوەدا.
Break the bar, change the signهێڵەکە بشکێنە، نیشانەکە بگۆڕە
Both theorems are one single move. Break the long bar into short bars, one over each piece, and change the sign where the bar broke: · becomes +, and + becomes ·. Watch the move for three variables, first under an OR and then under an AND:
هەردوو یەک جووڵەن. هێڵە درێژەکە بشکێنە بۆ چەند هێڵێکی کورت (یەکێک لەسەر هەر پارچەیەک). پاشان لەو شوێنەی هێڵەکە شکا نیشانەکە بگۆڕە: · دەبێتە + و + دەبێتە ·. سەیری ئەم جووڵەیە بکە بۆ سێ ، یەکەم لە ژێر ORـدا و پاشان لە ژێر ANDـدا:


The move also works backwards: short bars joined by one sign can be joined into one bar while the sign changes, for example . Designers use this direction to turn an expression into NAND or NOR gates.
ئەم جووڵەیە بە پێچەوانەشەوە کار دەکات: چەند هێڵێکی کورت کە بە یەک نیشانە بەستراون دەتوانرێت بکرێنە یەک هێڵ و نیشانەکەش بگۆڕدرێت، بۆ نموونە . دیزاینەران ئەم ئاراستەیە بەکار دەهێنن بۆ ئەوەی بکەنە یان .
Three, four or more variablesسێ، چوار یان زیاتر گۆڕاوی بوولی
The theorems are not limited to two variables. Any number of ANDed variables under one bar becomes the OR of the separate complements, and any number of ORed variables becomes the AND of the separate complements:
تەنها بۆ دوو نین. هەر ژمارەیەک کە لە ژێر یەک هێڵدا بە AND بەستراون دەبێتە ORـی . هەر ژمارەیەکیش کە بە OR بەستراون دەبێتە ANDـی :
Why does it still work? Treat a group as one letter and use the two-variable theorem twice. For , think of as one variable:
بۆچی هێشتا کار دەکات؟ گرووپێک وەک یەک پیت دابنێ و بۆ دوو دوو جار بەکاربهێنە. بۆ ، وەک یەک دابنێ:
First break the bar between A and the block BC (theorem 1), then break the bar that is still over BC (theorem 1 again).
یەکەم هێڵەکەی نێوان A و بلۆکی BC بشکێنە ( یەکەم)، پاشان ئەو هێڵەی هێشتا لەسەر BCـیە بشکێنە (دیسان یەکەم).
Bars over groups and double barsهێڵ لەسەر گرووپ و هێڵی دووانە
Real expressions mix AND and OR, and bars can sit on top of other bars. Three habits keep you safe:
AND و OR تێکەڵ دەکەن و هێڵەکان دەتوانن لەسەر هێڵی تر بن. سێ خوو بە سەلامەتی دەتهێڵنەوە:
- Break one bar at a time, starting with the longest one.
- Whatever sits under one piece of the bar is one block. Keep it in brackets, so the order of AND and OR does not change.
- Two bars over exactly the same thing cancel: (rule 9).
- هەر جارە یەک هێڵ بشکێنە و لە درێژترینیانەوە دەست پێبکە.
- هەرچی لە ژێر یەک پارچەی هێڵدایە یەک بلۆکە. لە ناو کەوانەدا بیهێڵەوە تا ڕیزبەندیی AND و OR نەگۆڕێت.
- دوو هێڵ لەسەر ڕێک هەمان شت یەکتر لادەبەن: (یاسای 9).
Start with . The longest bar covers an OR of two blocks, and . Break it and change + into · (theorem 2):
بە دەست پێبکە. درێژترین هێڵ ORـی دوو بلۆک دادەپۆشێت، و . بیشکێنە و + بگۆڕە بۆ · ( دووەم):
The first block still has a bar over an AND. Break it and change · into + (theorem 1):
بلۆکی یەکەم هێشتا هێڵێکی لەسەر ANDـێکە. بیشکێنە و · بگۆڕە بۆ + ( یەکەم):
The two bars over P cover exactly the same thing, so they cancel (rule 9). Put the block back in brackets:
دوو هێڵەکەی سەر P ڕێک هەمان شت دادەپۆشن، بۆیە یەکتر لادەبەن (یاسای 9). بلۆکەکە بگەڕێنەوە ناو کەوانە:
De Morgan in gatesدی مۆرگان لە گەیتەکاندا
Each theorem is also a fact about gates. The left side of theorem 1, , is a NAND gate. The right side, , is an OR gate with a bubble (a NOT) on each input, called a negative-OR. So a NAND gate is the same as an OR gate with inverted inputs. In the same way theorem 2 says that a NOR gate is the same as an AND gate with inverted inputs, a negative-AND. De Morgan's theorems prove what you saw in Negative-OR and negative-AND.
هەر ڕاستییەکیشە دەربارەی . لای چەپی یەکەم، ، . لای ڕاستی، ، کە (NOTـێک) لەسەر هەر هەیە و پێی دەوترێت . کەواتە هەمان کە پێچەوانە کراونەتەوە. بە هەمان شێوە دووەم دەڵێت هەمان کە پێچەوانە کراونەتەوە، واتە . ئەوە دەسەلمێنن کە لە گەیتی Negative-OR و گەیتی Negative-AND بینیت.
Why does it matter? In CMOS chips a NAND or NOR gate needs fewer transistors than an AND or OR gate (an AND is a NAND followed by a NOT). De Morgan's theorems let designers redraw a circuit with these gates without changing what it does, as in the NAND-NAND circuit.
بۆچی گرنگە؟ لە CMOSـەکاندا یان پێویستی بە کەمترە لە یان (AND لە ڕاستیدا NANDـێکە و NOTـێکی بە دوادا دێت). ڕێگە بە دیزاینەران دەدەن بەم دووبارە بکێشنەوە بێ ئەوەی کارەکەی بگۆڕێت. نموونەیەکی: سووڕی لۆجیکیی NAND-NAND.
De Morgan in gatesدی مۆرگان لە گەیتەکاندا
Pushing bubblesجووڵاندنی بازنەکان
Circuit designers use De Morgan as a rule for moving bubbles. Push a bubble through a gate and the gate changes shape: AND becomes OR and OR becomes AND, while the bubble moves to the other side (from the output onto every input, or back). And two bubbles on the same wire cancel, because .
دیزاینەرانی دی مۆرگان وەک یاسایەک بۆ جووڵاندنی بەکار دەهێنن. بە ناو تێپەڕێنە و شێوەی دەگۆڕێت: AND دەبێتە OR و OR دەبێتە AND، لە کاتێکدا بازنەکە دەچێتە لایەکەی تر (لە بۆ سەر هەموو ، یان بە پێچەوانەوە). هەروەها دوو بازنە لەسەر هەمان وایەر یەکتر لادەبەن، چونکە .
| Start withدەستپێک | Push the bubble(s) throughبازنەکان تێپەڕێنە | Same gate drawn asهەمان بەم شێوەیە |
|---|---|---|
| NAND (AND with an output bubble)NAND (AND بە بازنەیەک لەسەر ) | to the inputsبۆ | OR with input bubbles (negative-OR)OR بە بازنە لەسەر () |
| NOR (OR with an output bubble)NOR (OR بە بازنەیەک لەسەر ) | to the inputsبۆ | AND with input bubbles (negative-AND)AND بە بازنە لەسەر () |
| AND with input bubblesAND بە بازنە لەسەر | to the outputبۆ | NOR |
| OR with input bubblesOR بە بازنە لەسەر | to the outputبۆ | NAND |
The same law for setsهەمان یاسا بۆ کۆمەڵەکان
De Morgan's laws hold in set theory too, and they look the same. For sets, NOT is the complement (everything in the universal set U that is not in A), OR is the union ∪ and AND is the intersection ∩. Sets and these operations are taught in Set Operations.
یاساکانی دی مۆرگان لە تیۆری ڕاستن و هەمان شێوەیان هەیە. بۆ ، NOT (هەموو ئەوەی لە U دایە و لە Aـدا نییە)، OR ∪ و AND ∩. زیاتر دەربارەی لە وانەی کارەکانی کۆمەڵە فێر دەبیت.
The complement of a union is the intersection of the complements, and the other way round.
یەکسانە بە . بە پێچەوانەشەوە هەروایە.
Check with numbers: , , . , so . and , and their intersection is also .
بە ژمارە پشکنینی بکە: ، ، . ، بۆیە . و . ـە.
De Morgan in programsدی مۆرگان لە بەرنامەکاندا
Programmers meet the same theorems in conditions. NOT (a AND b) is the same as (NOT a) OR (NOT b), whatever programming language you use: in Python not (a and b) equals (not a) or (not b), and in PHP, C or Java !(a && b) equals !a || !b. A shop is closed when it is not (a weekday and working hours):
بەرنامەسازان هەمان لە دەبینن. NOT (a AND b) هەمانە لەگەڵ (NOT a) OR (NOT b)، هەر بەکاربهێنیت: لە Pythonـدا not (a and b) یەکسانە بە (not a) or (not b). لە PHP، C یان Javaـدا !(a && b) یەکسانە بە !a || !b. دووکانێک داخراوە کاتێک وا نەبێت کە (ڕۆژی کار و کاتی کار) بێت:
closed = NOT (isWeekday AND isWorkingHour)
= (NOT isWeekday) OR (NOT isWorkingHour)The second line is often easier to read: the shop is closed on the weekend, or outside working hours. More about conditions in code: logical operators in Python and logical operators in PHP.
دێڕی دووەم زۆرجار ئاسانتر دەخوێنرێتەوە: دووکانەکە لە پشووی هەفتەدا یان لە دەرەوەی کاتی کاردا داخراوە. زیاتر دەربارەی لە کۆددا: کارپێکەرە لۆجیکییەکان لە Pythonـدا و کارپێکەرە لۆجیکییەکان لە PHPـدا.
Common mistakesهەڵە باوەکان
| Mistakeهەڵە | Fixچارەسەر |
|---|---|
| Breaking the bar but keeping the sign: .شکاندنی هێڵەکە بەبێ گۆڕینی نیشانەکە: . | Always do both: . Test , : but .هەمیشە هەردووکیان بکە: . ، تاقی بکەرەوە: بەڵام . |
| Changing the sign but keeping one long bar: .گۆڕینی نیشانەکە و هێشتنەوەی یەک هێڵی درێژ: . | The bar must break where the sign changes: .لەو شوێنەی نیشانەکە دەگۆڕێت هێڵەکە دەبێت بشکێت: . |
| Breaking every bar at once: .شکاندنی هەموو هێڵەکان پێکەوە: . | Outer bar first, keeping the block: ; then the inner bar: .یەکەم هێڵی دەرەوە و بلۆکەکە بهێڵەوە: ؛ پاشان هێڵی ناوەوە: . |
| Cancelling bars that do not cover the same thing: .لابردنی هێڵگەلێک کە هەمان شت داناپۆشن: . | Break the long bar first: .یەکەم هێڵە درێژەکە بشکێنە: . |
| Reading (two short bars) as (one long bar).خوێندنەوەی (دوو هێڵی کورت) وەک (یەک هێڵی درێژ). | Two short bars = NOR; one long bar = NAND. Write the gap between short bars clearly.دوو هێڵی کورت = NOR؛ یەک هێڵی درێژ = NAND. بۆشایی نێوان هێڵە کورتەکان بە ڕوونی بنووسە. |
Exercisesڕاهێنانەکان
These are the lecture's eight exercises. Try each one on paper first, then open the answer.
ئەمانە هەشت ڕاهێنانەکەی وانەکەن. یەکەم جار هەر یەکێکیان لەسەر کاغەز هەوڵ بدە، پاشان وەڵامەکە بکەرەوە.
Apply De Morgan's theorems to .
لەسەر جێبەجێ بکە.
Show answerوەڵامەکە پیشان بدە
Three ANDed variables: three short bars, and both dots become +.
سێ کە بە AND بەستراون: سێ هێڵی کورت دادەنرێن و هەردوو · دەبنە +.
Apply De Morgan's theorems to .
لەسەر جێبەجێ بکە.
Show answerوەڵامەکە پیشان بدە
Three ORed variables: three short bars, and both + signs become AND.
سێ کە بە OR بەستراون: سێ هێڵی کورت دادەنرێن و هەردوو + دەبنە AND.
Apply De Morgan's theorems to .
لەسەر جێبەجێ بکە.
Show answerوەڵامەکە پیشان بدە
Four ANDed variables: four short bars, and every AND becomes +. Check: the left side is 0 only when , and so is the right side.
چوار کە بە AND بەستراون: چوار هێڵی کورت و هەموو ANDـێک دەبێتە +. پشکنین: لای چەپ تەنها کاتێک 0ـە کە ، لای ڕاستیش هەروایە.
Apply De Morgan's theorems to .
لەسەر جێبەجێ بکە.
Show answerوەڵامەکە پیشان بدە
Four ORed variables: four short bars, and every + becomes AND. Both sides are 1 only when .
چوار کە بە OR بەستراون: چوار هێڵی کورت و هەموو نیشانەیەکی + دەبێتە AND. هەردوو لا تەنها کاتێک 1ـن کە .
Exercisesڕاهێنانەکان
More exercises: double bars and groupsڕاهێنانی زیاتر: هێڵی دووانە و گرووپ
Apply De Morgan's theorems to .
لەسەر جێبەجێ بکە.
Show answerوەڵامەکە پیشان بدە
The same shape as exercise 3 with other letters. The names of the variables do not matter; only the bar and the signs do.
هەمان شێوەی ڕاهێنانی 3ـە بە پیتی تر. ناوی گرنگ نییە؛ تەنها هێڵەکە و نیشانەکان گرنگن.
Apply De Morgan's theorems to .
لەسەر جێبەجێ بکە.
Show answerوەڵامەکە پیشان بدە
Start with the given expression:
بە دراوەکە دەست پێبکە:
Theorem 2: break the long bar, every + becomes AND.
دووەم: هێڵە درێژەکە بشکێنە، هەموو نیشانەیەکی + دەبێتە AND.
Rule 9: each double bar cancels.
یاسای 9: هەر هێڵێکی دووانە لادەچێت.
Break the long bar first. Only then does each letter carry two bars over exactly the same thing, and they cancel.
یەکەم هێڵە درێژەکە بشکێنە. تەنها ئەو کاتە هەر پیتێک دوو هێڵی لەسەر ڕێک هەمان شت دەبێت و یەکتر لادەبەن.
Apply De Morgan's theorems to .
لەسەر جێبەجێ بکە.
Show answerوەڵامەکە پیشان بدە
Start with the given expression:
بە دراوەکە دەست پێبکە:
Theorem 1: break the long bar, every AND becomes +.
یەکەم: هێڵە درێژەکە بشکێنە، هەموو ANDـێک دەبێتە +.
Rule 9: each double bar cancels.
یاسای 9: هەر هێڵێکی دووانە لادەچێت.
Apply De Morgan's theorems to .
لەسەر جێبەجێ بکە.
Show answerوەڵامەکە پیشان بدە
Start with the given expression:
بە دراوەکە دەست پێبکە:
Theorem 1 on the AND of the two blocks and D.
یەکەم لەسەر ANDـی دوو بلۆکی و D.
Theorem 2 on the bar over the block .
دووەم لەسەر هێڵەکەی سەر بلۆکی .
Break the outer bar first and keep the block together; then break the bar over the block.
یەکەم هێڵی دەرەوە بشکێنە و بلۆکەکە پێکەوە بهێڵەوە؛ پاشان هێڵەکەی سەر بلۆکەکە بشکێنە.
Apply De Morgan's theorems to and to .
لەسەر و لەسەر جێبەجێ بکە.
Hintئاماژە
Break the longest bar first and treat AB and as blocks.
یەکەم درێژترین هێڵ بشکێنە و AB و وەک بلۆک دابنێ.
Show answerوەڵامەکە پیشان بدە
Keep the brackets in the first answer: is not .
لە وەڵامی یەکەمدا کەوانەکان بهێڵەوە: هەمان نییە.
Show with an 8-row truth table that .
بە 8 ڕیزی پیشانی بدە کە .
Show answerوەڵامەکە پیشان بدە
| 000 | 0 | 1 | 1 |
| 001 | 1 | 0 | 0 |
| 010 | 1 | 0 | 0 |
| 011 | 1 | 0 | 0 |
| 100 | 1 | 0 | 0 |
| 101 | 1 | 0 | 0 |
| 110 | 1 | 0 | 0 |
| 111 | 1 | 0 | 0 |
The last two columns match in all 8 rows: both are 1 only for .
دوو ستوونی کۆتایی لە هەر 8 ڕیزەکەدا وەک یەکن: هەردووکیان تەنها بۆ 1ن.
Summaryپوختە
- Theorem 1: . NOT of an AND is the OR of the NOTs.
- Theorem 2: . NOT of an OR is the AND of the NOTs.
- One move does both: break the bar, change the sign. It works for any number of variables and also backwards.
- Break one bar at a time, longest first; keep blocks in brackets; two bars over the same thing cancel.
- In gates: NAND = negative-OR and NOR = negative-AND. Pushing a bubble through a gate swaps AND and OR.
- The same laws hold for sets, , and for conditions in programs.
- یەکەم: . NOTـی AND یەکسانە بە ORـی NOTـەکان.
- دووەم: . NOTـی OR یەکسانە بە ANDـی NOTـەکان.
- یەک جووڵە هەردووکیان دەکات: هێڵەکە بشکێنە، نیشانەکە بگۆڕە. بۆ هەر ژمارەیەک و بە پێچەوانەشەوە کار دەکات.
- هەر جارە یەک هێڵ بشکێنە، درێژترین یەکەم؛ بلۆکەکان لە ناو کەوانەدا بهێڵەوە؛ دوو هێڵ لەسەر هەمان شت یەکتر لادەبەن.
- لە : NAND = و NOR = . تێپەڕاندنی بازنەیەک بە ناو AND و OR جێگۆڕکێ پێ دەکات.
- هەمان یاساکان بۆ ڕاستن، . هەروەها بۆ لە بەرنامەکاندا.
Why is not equal to ?بۆچی یەکسان نییە بە ؟
Try , : but . The correct form is .
، تاقی بکەرەوە: بەڵام . شێوە دروستەکە ـە.
Which gate is an AND gate with a bubble on every input?کام گەیت وەک گەیتێکی AND وایە کە بازنەیەک لەسەر هەموو نێوخستەکانی هەیە؟
A NOR gate: .
: .
Videoڤیدیۆ
Watch a videoسەیری ڤیدیۆیەک بکە
A video that viewers liked a lot and praised in their comments, chosen for this lesson.ڤیدیۆیەک کە بینەران زۆریان پێ خۆش بووە و لە کۆمێنتەکانیاندا ستایشیان کردووە، بۆ ئەم وانەیە هەڵبژێردراوە.
Kurdish (Sorani): commutative, associative and distributive laws with gate drawings, the 12 rules in the lesson's order, then De Morgan's theorems.
بە کوردیی سۆرانی: ، و بە وێنەی ، دوازدە یاساکە بە ڕیزبەندیی وانەکە، پاشان .
10:30-end: De Morgan's theorems and examples with double bars over groups.
لە 10:30ـەوە تا کۆتایی: و نموونە کە دوو هێڵیان لەسەر کۆمەڵەیەک هەیە.
Lesson complete!وانەکە تەواو بوو!
Well done. Review the key terms, then go on to the next lesson.دەستخۆش. سەیرێکی زاراوە سەرەکییەکان بکەرەوە، پاشان بڕۆ بۆ وانەی داهاتوو.
Key termsزاراوە سەرەکییەکان
Simplifying Boolean Expressionsکورتکردنەوەی دەربڕینە بوولییەکان
Related lecturesوانە پەیوەندیدارەکان
- Boolean Expressions and Lawsدەربڕینە بوولییەکان و یاساکانی جەبری بوول
- Simplifying Boolean Expressionsکورتکردنەوەی دەربڕینە بوولییەکان
- Sum-of-Products and Product-of-Sumsکۆی لێکدانەکان و لێکدانی کۆکان
- Union, Intersection, Difference and Complementیەکگرتن، یەکتربڕین، جیاوازیی کۆمەڵە و تەواوکەر
- Logical Operators and Nested ifکارپێکەرە لۆجیکییەکان و ڕستەی ifـی ناوەکی
References and further readingسەرچاوەکان و خوێندنەوەی زیاتر
- Wikipedia: De Morgan's laws
- Wikipedia: Boolean algebra (laws, duality)
- MIT 6.004 Computation Structures, notes: Combinational logic (bubble pushing, NAND/NOR in CMOS)
- T. L. Floyd, Digital Fundamentals, 11th ed., §4-3 DeMorgan's Theorems (Pearson, 2015) — topics only
This lecture is a first edition. The Kurdish text and terminology are waiting for review by Kurdish IT teachers.ئەم وانەیە چاپی یەکەمە. دەقە کوردییەکە و زاراوەکانی چاوەڕێی پێداچوونەوەی مامۆستایانی کوردی بواری IT ن.