-
Notifications
You must be signed in to change notification settings - Fork 134
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
Enforcing the new algebra naming conventions for Algebraic Structures #824
Conversation
The index and the groups were at the same level. The should be at different one, for instance if the index is Nat, and the group something else
@felixwellen or @mortberg is there a reason for https://github.com/agda/cubical/blob/master/Cubical/Algebra/Monoid/Base.agda#L36 ? |
I guess the reason is, |
I don't think there's any deep reason for this and it could as well be split into two fields |
I don't really understand what you mean ? This would be case whether it separated or not. |
@mortberg Then should I replace it by two fields ? (and the similar ones) |
Oh... You're right, the ε is given as parameter. I thought the ordinary definition of "having a unit" is |
Sure, sounds good |
Should the following be deleted ? https://github.com/agda/cubical/blob/master/Cubical/Algebra/Group/Base.agda#L32 |
Maybe not deleted, but maybe moved to abelian groups? Additive groups are usually abelian... |
Yes this what I meant, this shouldn't be in Group but AbGroup |
- SemiGroup - Monoid - CommMonoid - Group
should be merge after the others PR |
I have introduced nice notation for AbGroup
but then, it would also be nice to be able to do something like
but I don't really know how to that as right now the definition is just calling back the definition of group |
Won't we have the same problem for pretty much all the theory about groups? If lemmas are named using the multiplicative notation then they will look ugly for the additive notation. I don't know if it matters or what we can do. |
I think it does matter, since it adds to the confusion, if things don't look like they would look in math. |
@felixwellen I am currently fixing the dependencies. If there is really some specific trick that is known hat prevent unfolding or thing like this, that really made working easier, maybe it should be mention in contributing ? |
@mortberg Would it be possible to merge this before others conflict are added ? |
Ignore my other message |
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.
Looks great! Massive improvement to the Algebra package!
I found a few small things that should be fixed before we can merge
Puh, no conflicts after I merged my PR about induced structures! @felixwellen @ecavallo @mzeuner Are there any other PRs that should be merged before this one or can we go ahead and merge it once @thomas-lamiaux has fixed my comments? I hope we can merge this one very soon to avoid having any more conflicts in it... |
Ha probably a bug because my branch is not up to date |
The bug that broke the last check is a bit unexpected. I think that I removed some useless import. |
@mortberg good to go |
No objections, so merged! |
I have started to enforce the algebra naming convention for algebraic structure.
I will just modify the Base.agda and fix the dependencies.
However, I will not enforce notation like Invol in the properties files that might be done in a next PR.