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] - chore(algebra): add sub{_mul_action,module,semiring,ring,field,algebra}.copy #7220

Closed
wants to merge 5 commits into from

Conversation

eric-wieser
Copy link
Member

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).


Open in Gitpod

…}.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.
@eric-wieser eric-wieser changed the title chore(algebra): add sub{algebra,module,mul_action,ring,semiring,field}.copy chore(algebra): add sub{_mul_action,module,semiring,ring,field,algebra}.copy Apr 16, 2021
src/data/set_like.lean Outdated Show resolved Hide resolved
@eric-wieser eric-wieser added the awaiting-review The author would like community review of the PR label Apr 16, 2021
Copy link
Collaborator

@Vierkantor Vierkantor left a 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+

@bors
Copy link

bors bot commented Apr 16, 2021

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

@Vierkantor Vierkantor added awaiting-author A reviewer has asked the author a question or requested changes delegated The PR author may merge after reviewing final suggestions. and removed awaiting-review The author would like community review of the PR labels Apr 16, 2021
@eric-wieser
Copy link
Member Author

I don't think those lemmas are that useful - all the places we use copy survive without them, and anyway; lemmas are about propositional equality, but the point of this definition is definitional equality. I'll add them if I find I need them in the follow-up.

Generalizing to set_like would require generalizing over hom types, which I don't think is something we're ready for yet.

@eric-wieser
Copy link
Member Author

bors r+

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-author A reviewer has asked the author a question or requested changes labels Apr 16, 2021
bors bot pushed a commit that referenced this pull request Apr 16, 2021
…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).
@bors
Copy link

bors bot commented Apr 16, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title chore(algebra): add sub{_mul_action,module,semiring,ring,field,algebra}.copy [Merged by Bors] - chore(algebra): add sub{_mul_action,module,semiring,ring,field,algebra}.copy Apr 16, 2021
@bors bors bot closed this Apr 16, 2021
@bors bors bot deleted the eric-wieser/set_like.copy branch April 16, 2021 17:35
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