Repository navigation
[Merged by Bors] - feat(Algebra): submonoids and submodules inherit cancellations - #27955
staroperator wants to merge 3 commits into
Conversation
PR summary b24ea32363Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
eric-wieser
left a comment
There was a problem hiding this comment.
Thanks!
bors merge
Could you do sub(semi)ring and subalgebra too in a follow up PR, along with IsCancelMulZero?
`Submonoid`, `AddSubmonoid` and `Submodule` inherit (left/right) cancellation properties from the base type.
|
Pull request successfully merged into master. Build succeeded: |
@eric-wieser Sure! I realized that I should redefine these for |
…rover-community#27955) `Submonoid`, `AddSubmonoid` and `Submodule` inherit (left/right) cancellation properties from the base type.
…rover-community#27955) `Submonoid`, `AddSubmonoid` and `Submodule` inherit (left/right) cancellation properties from the base type.
…rover-community#27955) `Submonoid`, `AddSubmonoid` and `Submodule` inherit (left/right) cancellation properties from the base type.
This PR:
1. adds `Is{Left,Right}Cancel{Add,Mul,MulZero}` instances for `{Add,Mul,MulZero}MemClass` etc.
2. removes the duplicated instances for `Submonoid` and `Submodule` which are introduced in #27955 (benchmark results show there isn't large difference with duplicated instances).
Thanks @Vierkantor's help in benchmarks.
Co-authored-by: Anne C.A. Baanen <[email protected]>
…ty#27992) This PR: 1. adds `Is{Left,Right}Cancel{Add,Mul,MulZero}` instances for `{Add,Mul,MulZero}MemClass` etc. 2. removes the duplicated instances for `Submonoid` and `Submodule` which are introduced in leanprover-community#27955 (benchmark results show there isn't large difference with duplicated instances). Thanks @Vierkantor's help in benchmarks. Co-authored-by: Anne C.A. Baanen <[email protected]>
…ty#27992) This PR: 1. adds `Is{Left,Right}Cancel{Add,Mul,MulZero}` instances for `{Add,Mul,MulZero}MemClass` etc. 2. removes the duplicated instances for `Submonoid` and `Submodule` which are introduced in leanprover-community#27955 (benchmark results show there isn't large difference with duplicated instances). Thanks @Vierkantor's help in benchmarks. Co-authored-by: Anne C.A. Baanen <[email protected]>
…ty#27992) This PR: 1. adds `Is{Left,Right}Cancel{Add,Mul,MulZero}` instances for `{Add,Mul,MulZero}MemClass` etc. 2. removes the duplicated instances for `Submonoid` and `Submodule` which are introduced in leanprover-community#27955 (benchmark results show there isn't large difference with duplicated instances). Thanks @Vierkantor's help in benchmarks. Co-authored-by: Anne C.A. Baanen <[email protected]>
Submonoid,AddSubmonoidandSubmoduleinherit (left/right) cancellation properties from the base type.