De Morgan's Laws are Monoid Homomorphisms
This deck defines monoids and monoid homomorphisms.
It shows that logical OR (||) and AND (&&) form monoids, and negation (!) is a monoid homomorphism between them.
Specifically, negation applied to OR is equal to AND of negations, and vice versa, demonstrating De Morgan's laws.
The deck is an excerpt from the Monoids chapter of Functional Programming in Scala relating monoids to logical operations.
Philip Schwarz PRO
July 09, 2017
Annual Pro sale · Save $30
Have presentations of your own?
Share with private links, password protection, and more control over your work.