3. Considering that Bool is a set of two values True and False, show
that it forms two (set-theoretical) monoids with respect to, respectively, operator && (AND) and || (OR).
4. Represent the Bool monoid with the AND operator as a category:
List the morphisms and their rules of composition.
"Monoid as a catagory" — это один объект со стрелками, причём в объекте как бы лежат элементы моноида, в данном случае, True и False. В моноиде-как-категории натуральных чисел операцией будет арифметическое сложение, а морфизмы будут вида \x -> x + y
для всех y
из натуральных. Соответственно, тут будет \x -> x && True
и \x -> x && False