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: add missing hypothesis names to by_cases #8533

Closed
wants to merge 1 commit into from

Conversation

Ruben-VandeVelde
Copy link
Collaborator

I've also got a change to make this required, but I'd like to land this first.


Open in Gitpod

@Ruben-VandeVelde Ruben-VandeVelde added the awaiting-review The author would like community review of the PR label Nov 20, 2023
@alexjbest
Copy link
Member

Sorry but why do we want to make this required?

@Ruben-VandeVelde
Copy link
Collaborator Author

Lean 4 generally leans towards not introducing accessible names implicitly, and in fact doesn't introduce one in core by_cases; this only works because mathlib overrides the core implementation to expose it. This is inconsistent with most (all?) other tactics.

Of course, this PR is only desirable if the maintainers agree with that view; I'm not claiming that to be the case a priori (though I hope it is).

@alexjbest
Copy link
Member

alexjbest commented Nov 20, 2023

I certainly agree that implicitly introducing accessible names is a bug that should be fixed, I just missed the first time I looked the fact that in all your examples h is already used by name! Thanks!

maintainer merge

@alexjbest
Copy link
Member

maintainer merge

Copy link

🚀 Pull request has been placed on the maintainer queue by alexjbest.

@kmill
Copy link
Contributor

kmill commented Nov 20, 2023

Thanks!

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 Nov 20, 2023
mathlib-bors bot pushed a commit that referenced this pull request Nov 20, 2023
I've also got a change to make this required, but I'd like to land this first.
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Nov 20, 2023

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: add missing hypothesis names to by_cases [Merged by Bors] - chore: add missing hypothesis names to by_cases Nov 20, 2023
@mathlib-bors mathlib-bors bot closed this Nov 20, 2023
@mathlib-bors mathlib-bors bot deleted the by_cases-name branch November 20, 2023 19:06
alexkeizer pushed a commit that referenced this pull request Nov 21, 2023
I've also got a change to make this required, but I'd like to land this first.
grunweg pushed a commit that referenced this pull request Dec 15, 2023
I've also got a change to make this required, but I'd like to land this first.
awueth pushed a commit that referenced this pull request Dec 19, 2023
I've also got a change to make this required, but I'd like to land this first.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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