-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Free Commutative Monoid #719
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice! Thanks for the contribution
AssocList≃FCMon : FreeComMonoid A ≃ AssocList A | ||
AssocList≃FCMon = isoToEquiv (iso FCM→AL AL→FCM FCM→AL∘AL→FCM≡id AL→FCM∘FCM→AL≡id) | ||
|
||
FCMon≡AssocList : AssocList A ≡ FreeComMonoid A |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait, this name is a bit weird... It should be AssocList≡FreeComMonoid
. Similarly for the two definitions above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have already changed the name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, can you also fix the name of FCMon≃AssocList
? And remove AssocList≃FCMon
? I think it's unnecessary to have both when we can just use invEquiv
to turn one of them around
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have already made these changes.
I added Free Commutative Monoid in the library.
To prove that it is isomorphic to the associative list, I had to add some auxiliary functions there.