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(Data/Set/Image): re-use some variables #8054

Closed
wants to merge 1 commit into from

Conversation

grunweg
Copy link
Collaborator

@grunweg grunweg commented Oct 31, 2023

This also generalizes a universe from Type to Sort in Set.range_eval


Cherry-picked from #7822. I don't care about this strongly; happy to close this instead.

@grunweg grunweg added awaiting-review The author would like community review of the PR easy < 20s of review time. See the lifecycle page for guidelines. labels Oct 31, 2023
@@ -889,7 +889,7 @@ theorem _root_.Prod.range_snd [Nonempty α] : range (Prod.snd : α × β → β)
#align prod.range_snd Prod.range_snd

@[simp]
theorem range_eval {ι : Type*} {α : ι → Sort _} [∀ i, Nonempty (α i)] (i : ι) :
Copy link
Member

Choose a reason for hiding this comment

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

This looks like it's actually a universe generalization :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Is it, though? The variable I'm re-using is also a Type*. (Or is my mental model for this all too simple?).

@eric-wieser eric-wieser changed the title chore(Data.Set.Image): re-use some variables chore(Data/Set/Image): re-use some variables Nov 1, 2023
Copy link
Member

@eric-wieser eric-wieser left a comment

Choose a reason for hiding this comment

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

bors merge

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-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 Nov 1, 2023
bors bot pushed a commit that referenced this pull request Nov 1, 2023
This also generalizes a universe from `Type` to `Sort` in `Set.range_eval`
Copy link

bors bot commented Nov 1, 2023

Pull request successfully merged into master.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title chore(Data/Set/Image): re-use some variables [Merged by Bors] - chore(Data/Set/Image): re-use some variables Nov 1, 2023
@bors bors bot closed this Nov 1, 2023
@bors bors bot deleted the MR-chore-reusevars branch November 1, 2023 01:28
@grunweg
Copy link
Collaborator Author

grunweg commented Nov 1, 2023

Thanks for the quick review!

fgdorais pushed a commit that referenced this pull request Nov 1, 2023
This also generalizes a universe from `Type` to `Sort` in `Set.range_eval`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy < 20s of review time. See the lifecycle page for guidelines. 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

3 participants