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
refactor(algebra/group): generalise and extend the API for with_zero #762
Conversation
It's not obvious what's changed here. Can you give a summary? |
(1) Before this patch, you don't automatically have an instance of |
…eanprover-community#762) * refactor(algebra/group): generalise and extend the API for with_zero * Shorter proof. Thanks Chris * Travis, try your best
Everything under `Algebra.Group` should be additivisable. Therefore I move the `GroupWithZero` instances for `WithZero` from `Algebra.Group.WithOne.Defs` and the whole of `Algebra.Group.WithOne.Units` to a new file `Algebra.GroupWithZero.WithZero`. I credit Mario for leanprover-community/mathlib@ad92a9b and Johan for leanprover-community/mathlib#762.
Everything under `Algebra.Group` should be additivisable. Therefore I move the `GroupWithZero` instances for `WithZero` from `Algebra.Group.WithOne.Defs` and the whole of `Algebra.Group.WithOne.Units` to a new file `Algebra.GroupWithZero.WithZero`. I credit Mario for leanprover-community/mathlib@ad92a9b and Johan for leanprover-community/mathlib#762. Use the opportunity to slightly clean up the code: * Replace `:=` by `where` in instance declarations * Add missing explicit arguments to `coe` lemmas * Add missing `section ... end`
Everything under `Algebra.Group` should be additivisable. Therefore I move the `GroupWithZero` instances for `WithZero` from `Algebra.Group.WithOne.Defs` and the whole of `Algebra.Group.WithOne.Units` to a new file `Algebra.GroupWithZero.WithZero`. I credit Mario for leanprover-community/mathlib@ad92a9b and Johan for leanprover-community/mathlib#762. Use the opportunity to slightly clean up the code: * Replace `:=` by `where` in instance declarations * Add missing explicit arguments to `coe` lemmas * Add missing `section ... end`
Everything under `Algebra.Group` should be additivisable. Therefore I move the `GroupWithZero` instances for `WithZero` from `Algebra.Group.WithOne.Defs` and the whole of `Algebra.Group.WithOne.Units` to a new file `Algebra.GroupWithZero.WithZero`. I credit Mario for leanprover-community/mathlib@ad92a9b and Johan for leanprover-community/mathlib#762. Use the opportunity to slightly clean up the code: * Replace `:=` by `where` in instance declarations * Add missing explicit arguments to `coe` lemmas * Add missing `section ... end`
TO CONTRIBUTORS:
Make sure you have:
For reviewers: code review check list