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(Set): API for subset restriction and coercion to/from subtypes #9940

Closed
wants to merge 45 commits into from

Conversation

miguelmarco
Copy link
Collaborator

@miguelmarco miguelmarco commented Jan 23, 2024

Api for subset restriction and coercion to/from subtypes

Co-authored-by: Miguel Marco mmarco@unizar.es


Open in Gitpod

@miguelmarco miguelmarco added awaiting-review The author would like community review of the PR new-contributor This PR was made by a contributor with fewer than 5 merged PRs. Welcome to the community! labels Jan 24, 2024
Copy link
Contributor

@kmill kmill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll try to take a look later, but I just want to register my opinion that I think this notation is a neat idea.

Style note: I see a lot of places with an extra space character, like in x ∈ (↑D : Set α) for example. I wish we had an autoformatter for you, but you'll have to go through and find these.

@winstonyin
Copy link
Collaborator

I gave some minor style comments. There are also some inconsistent white spaces, which we can deal with at the end. I merged master into this so I can test it on my recent commit; hope you don't mind.

@winstonyin
Copy link
Collaborator

Just tested it out. This is great and will make dealing with subtypes far less painful. For my use case, I need this API to also work with closure and continuity. I'd be happy to build on your work to make this happen if you don't plan on implementing these features.

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added blocked-by-other-PR This PR depends on another PR which is still in the queue. and removed blocked-by-other-PR This PR depends on another PR which is still in the queue. labels Feb 13, 2024
@miguelmarco miguelmarco 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 Feb 19, 2024
@miguelmarco
Copy link
Collaborator Author

Ping @kmill @eric-wieser

Mathlib/Data/Set/Image.lean Outdated Show resolved Hide resolved
@kmill
Copy link
Contributor

kmill commented Mar 3, 2024

Thanks! Creating a new notation for a new concept is a difficult first PR (or really any PR), but I think this is now in a good enough of a state to merge.

bors r+

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review The author would like community review of the PR labels Mar 3, 2024
mathlib-bors bot pushed a commit that referenced this pull request Mar 3, 2024
…9940)

Api for subset restriction and coercion to/from subtypes

Co-authored-by: Miguel Marco <mmarco@unizar.es>



Co-authored-by: Miguel Marco <mmarco@unizar.es>
Co-authored-by: Kyle Miller <kmill31415@gmail.com>
Co-authored-by: mmarco <mmarco@kali>
Co-authored-by: Winston Yin <winstonyin@gmail.com>
@mathlib-bors
Copy link

mathlib-bors bot commented Mar 3, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat(Set): API for subset restriction and coercion to/from subtypes [Merged by Bors] - feat(Set): API for subset restriction and coercion to/from subtypes Mar 3, 2024
@mathlib-bors mathlib-bors bot closed this Mar 3, 2024
@mathlib-bors mathlib-bors bot deleted the subset branch March 3, 2024 23:04
kbuzzard pushed a commit that referenced this pull request Mar 12, 2024
…9940)

Api for subset restriction and coercion to/from subtypes

Co-authored-by: Miguel Marco <mmarco@unizar.es>



Co-authored-by: Miguel Marco <mmarco@unizar.es>
Co-authored-by: Kyle Miller <kmill31415@gmail.com>
Co-authored-by: mmarco <mmarco@kali>
Co-authored-by: Winston Yin <winstonyin@gmail.com>
dagurtomas pushed a commit that referenced this pull request Mar 22, 2024
…9940)

Api for subset restriction and coercion to/from subtypes

Co-authored-by: Miguel Marco <mmarco@unizar.es>



Co-authored-by: Miguel Marco <mmarco@unizar.es>
Co-authored-by: Kyle Miller <kmill31415@gmail.com>
Co-authored-by: mmarco <mmarco@kali>
Co-authored-by: Winston Yin <winstonyin@gmail.com>
utensil pushed a commit that referenced this pull request Mar 26, 2024
…9940)

Api for subset restriction and coercion to/from subtypes

Co-authored-by: Miguel Marco <mmarco@unizar.es>



Co-authored-by: Miguel Marco <mmarco@unizar.es>
Co-authored-by: Kyle Miller <kmill31415@gmail.com>
Co-authored-by: mmarco <mmarco@kali>
Co-authored-by: Winston Yin <winstonyin@gmail.com>
Louddy pushed a commit that referenced this pull request Apr 15, 2024
…9940)

Api for subset restriction and coercion to/from subtypes

Co-authored-by: Miguel Marco <mmarco@unizar.es>



Co-authored-by: Miguel Marco <mmarco@unizar.es>
Co-authored-by: Kyle Miller <kmill31415@gmail.com>
Co-authored-by: mmarco <mmarco@kali>
Co-authored-by: Winston Yin <winstonyin@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-contributor This PR was made by a contributor with fewer than 5 merged PRs. Welcome to the community! ready-to-merge This PR has been sent to bors.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants