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] - feat(data/fin): bundled embedding #3822

Closed
wants to merge 2 commits into from

Conversation

jsm28
Copy link
Collaborator

@jsm28 jsm28 commented Aug 16, 2020

Add the coercion from fin n to as a bundled embedding, an
equivalent of function.embedding.subtype. Once leanprover-community/lean#359 is fixed
(making fin n a subtype), this can go away as a duplicate, but until
then it is useful.


Add the coercion from `fin n` to `ℕ` as a bundled embedding, an
equivalent of `function.embedding.subtype`.  Once lean#359 is fixed
(making `fin n` a subtype), this can go away as a duplicate, but until
then it is useful.
@jsm28 jsm28 added the awaiting-review The author would like community review of the PR label Aug 16, 2020
@semorrison
Copy link
Collaborator

simp lemma about applying it to an argument?

@semorrison semorrison added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review The author would like community review of the PR labels Aug 16, 2020
@jsm28
Copy link
Collaborator Author

jsm28 commented Aug 16, 2020

Added function.embedding.coe_fin simp lemma.

@jsm28 jsm28 added awaiting-review The author would like community review of the PR and removed awaiting-author A reviewer has asked the author a question or requested changes labels Aug 16, 2020
@PatrickMassot
Copy link
Member

bors merge

@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-review The author would like community review of the PR labels Aug 16, 2020
bors bot pushed a commit that referenced this pull request Aug 16, 2020
Add the coercion from `fin n` to `ℕ` as a bundled embedding, an
equivalent of `function.embedding.subtype`.  Once leanprover-community/lean#359 is fixed
(making `fin n` a subtype), this can go away as a duplicate, but until
then it is useful.
@bors
Copy link

bors bot commented Aug 16, 2020

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(data/fin): bundled embedding [Merged by Bors] - feat(data/fin): bundled embedding Aug 16, 2020
@bors bors bot closed this Aug 16, 2020
@bors bors bot deleted the fin-embedding branch August 16, 2020 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

3 participants