Properties of logical operators

lordebasta
2 min readFeb 24, 2021

--

Other tools in our tool-box

Just like the operations we know - sum, subtraction, multiplication, division) - the logical operators - AND, OR, NOT - have properties too. We are going to learn them so we can use them at a later time.

If you don’t know what these operators are, check out this article:

Duality

If an equation is valid, like A+ 1 = 1, then switching the operator to the AND and the constants (0 → 1 and 1 → 0) will generate a new valid equation.

A + 1 = 1
A · 0 = 0

Idempotency

A + A = A
A · A = A

Inverse

A + !A = 1
A · !A = 0

Commutative

A + B = B + A
A · B = B · A

Associative

(A + B) + C = A + (B + C) = (A + C) + B
(A · B) · C = A · (B · C) = (A · C) · B

Distributive

A + (B · C) = (A · B) + (A · C) 
A · (B + C) = (A + B) · (A + C)

Absorption

A + A · B = A 
A · (A + B) = A
A + (!A · B) = A + B
A · (!A + B) = A · B

Proof
A + A · B = A · (1 + B) = A · 1 = A
A · (A + B) = A · A + A · B = A + A · B = A
A + !A · B = (A + !A) · (A + B) = 1 · (A + B) = A + B
A · (!A + B) = A · !A + A · B = 0 + A · B = A · B

De Morgan’s laws

A · B = !(!A + !B)
A + B = !(!A · !B)

These tools we have now we’ll let us handle functions better. We will use them to simplify the functions of circuits we are going to design. How? That’s for another time.

Thank you for reading this article! I hope it helped you!

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

lordebasta
lordebasta

Written by lordebasta

Computer Science student. Gamer. Adventurer.

No responses yet

Write a response