Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(algebra/group/with_one): cleanup algebraic instances (#10194)
This: * adds a `has_neg (with_zero α)` instance which sends `0` to `0` and otherwise uses the underlying negation (and the same for `has_inv (with_one α)`). * replaces the `has_div (with_zero α)`, `has_pow (with_zero α) ℕ`, and `has_pow (with_zero α) ℤ` instances in order to produce better definitional properties than the previous default ones.
- Loading branch information
1 parent
56a9228
commit 169bb29
Showing
1 changed file
with
70 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters