Skip to content

Conversation

@kkinugasa
Copy link
Contributor

This pull request updates Challenge 2 in Section 2.3 (Free Monoids) by replacing "integers" with "positive integers" for the following reason:

The set of all integers (which includes 0) is not a monoid under multiplication.

While 1 serves as an identity element, the presence of 0 breaks the unit law.

To form a valid monoid under multiplication, we must exclude 0. The set of positive integers satisfies the monoid laws with multiplication as the binary operation and 1 as the identity.

@BartoszMilewski
Copy link
Collaborator

How does it break the unit law?
1 * x = x
is valid for x=0.

@kkinugasa
Copy link
Contributor Author

kkinugasa commented Aug 7, 2025

As you correctly pointed out, the set of all integers forms a monoid under multiplication.
I mistakenly confused this.
Sorry for the confusion — I’ll close this PR.

@kkinugasa kkinugasa closed this Aug 7, 2025
@kkinugasa kkinugasa deleted the modify-challenges-2.3-2 branch August 13, 2025 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants