Skip to content
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

[Merged by Bors] - feat(algebra/group_with_zero): add some equational lemmas #7705

Closed
wants to merge 2 commits into from

Conversation

fpvandoorn
Copy link
Member

Add some equations for group_with_zero that are direct analogues of lemmas for group.

Useful for #6923.


Open in Gitpod

@fpvandoorn fpvandoorn added the awaiting-review The author would like community review of the PR label May 24, 2021
Copy link
Member

@eric-wieser eric-wieser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors d+

The new lemmas look good

@@ -366,7 +366,7 @@ classical.by_contradiction $ λ ha, h₁ $ mul_right_cancel' ha $ h₂.symm ▸
end cancel_monoid_with_zero

section group_with_zero
variables [group_with_zero G₀]
variables [group_with_zero G₀] {a b c g h x : G₀}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not convinced this actually makes things better (unless you also renamed the x g and h to a b c), but also realistically it doesn't matter at all.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I personally find lemmas where implicit arguments like this are omitted more readable (and I didn't want to add them to the lemmas I just wrote). I guess I could rename all variable names to a,b,c, but I don't really care about that myself.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I've just been bitten too much by variables at the top of the file that steal the names I want in a smaller section and have typeclass assumptions I can't revert, and am overgeneralizing.

No change needed, the d+ was just for CI

@bors
Copy link

bors bot commented May 24, 2021

✌️ fpvandoorn can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@github-actions github-actions bot added delegated The PR author may merge after reviewing final suggestions. and removed awaiting-review The author would like community review of the PR labels May 24, 2021
@fpvandoorn
Copy link
Member Author

bors merge

@github-actions github-actions bot added the ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) label May 25, 2021
bors bot pushed a commit that referenced this pull request May 25, 2021
Add some equations for `group_with_zero` that are direct analogues of lemmas for `group`.

Useful for #6923.
@bors
Copy link

bors bot commented May 25, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(algebra/group_with_zero): add some equational lemmas [Merged by Bors] - feat(algebra/group_with_zero): add some equational lemmas May 25, 2021
@bors bors bot closed this May 25, 2021
@bors bors bot deleted the group_with_zero_eqs branch May 25, 2021 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
delegated The PR author may merge after reviewing final suggestions. ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants