-
Notifications
You must be signed in to change notification settings - Fork 298
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] - chore(algebra): add sub{_mul_action,module,semiring,ring,field,algebra}.copy
#7220
Conversation
…}.copy We already have this for sub{monoid,group}. With this in place, we can make `coe subalgebra.range` defeq to `set.range` and similar.
sub{algebra,module,mul_action,ring,semiring,field}.copy
sub{_mul_action,module,semiring,ring,field,algebra}.copy
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.
Would there be an automated way to derive copy p s hs = p
and/or x ∈ copy p s hs ↔ x ∈ p ↔ x ∈ s
? Those might be useful to (re-)define the correct notion of set_like.range
.
If not, then I'm happy with the PR as it stands.
bors d+
✌️ eric-wieser can now approve this pull request. To approve and merge a pull request, simply reply with |
I don't think those lemmas are that useful - all the places we use Generalizing to set_like would require generalizing over hom types, which I don't think is something we're ready for yet. |
bors r+ |
…ra}.copy` (#7220) We already have this for sub{monoid,group}. With this in place, we can make `coe subalgebra.range` defeq to `set.range` and similar (left for a follow-up).
Pull request successfully merged into master. Build succeeded: |
sub{_mul_action,module,semiring,ring,field,algebra}.copy
sub{_mul_action,module,semiring,ring,field,algebra}.copy
We already have this for sub{monoid,group}. With this in place, we can make
coe subalgebra.range
defeq toset.range
and similar (left for a follow-up).