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: Remove ball and bex from lemma names #10816

Closed
wants to merge 9 commits into from

Conversation

YaelDillies
Copy link
Collaborator

ball for "bounded forall" and bex for "bounded exists" are from experience very confusing abbreviations. This PR renames them to forall_mem and exists_mem in the few Set lemma names that mention them.

Also deprecate ball_image_of_ball, mem_image_elim, mem_image_elim_on since those lemmas are duplicates of the renamed lemmas (apart from argument order and implicitness, which I am also fixing by making the binder in the RHS of forall_mem_image semi-implicit), have obscure names and are completely unused.


Open in Gitpod

`ball` for "bounded forall" and `bex` for "bounded exists" are from experience very confusing abbreviations. This PR renames them to `forall_mem` and `exists_mem` in the few `Set` lemma names that mention them.

Also deprecate `ball_image_of_ball`, `mem_image_elim`, `mem_image_elim_on` since those lemmas are duplicates of the renamed lemmas (apart from argument order and implicitness, which I am also fixing by making the binder in the RHS of `forall_mem_image` semi-implicit), have obscure names and are completely unused.
@YaelDillies YaelDillies added awaiting-review The author would like community review of the PR awaiting-CI labels Feb 21, 2024
Mathlib.lean Outdated Show resolved Hide resolved
Mathlib.lean Outdated Show resolved Hide resolved
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. label Feb 21, 2024
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. label Feb 21, 2024
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. label Mar 1, 2024
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. label Mar 2, 2024
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. label Mar 5, 2024
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. label Mar 5, 2024
@sgouezel
Copy link
Contributor

sgouezel commented Mar 6, 2024

Let's get this in
bors r+
Thanks!

@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 6, 2024
mathlib-bors bot pushed a commit that referenced this pull request Mar 6, 2024
`ball` for "bounded forall" and `bex` for "bounded exists" are from experience very confusing abbreviations. This PR renames them to `forall_mem` and `exists_mem` in the few `Set` lemma names that mention them.

Also deprecate `ball_image_of_ball`, `mem_image_elim`, `mem_image_elim_on` since those lemmas are duplicates of the renamed lemmas (apart from argument order and implicitness, which I am also fixing by making the binder in the RHS of `forall_mem_image` semi-implicit), have obscure names and are completely unused.
mathlib-bors bot pushed a commit that referenced this pull request Mar 6, 2024
`ball` for "bounded forall" and `bex` for "bounded exists" are from experience very confusing abbreviations. This PR renames them to `forall_mem` and `exists_mem` in the few `Set` lemma names that mention them.

Also deprecate `ball_image_of_ball`, `mem_image_elim`, `mem_image_elim_on` since those lemmas are duplicates of the renamed lemmas (apart from argument order and implicitness, which I am also fixing by making the binder in the RHS of `forall_mem_image` semi-implicit), have obscure names and are completely unused.
@jcommelin
Copy link
Member

bors r+

mathlib-bors bot pushed a commit that referenced this pull request Mar 8, 2024
`ball` for "bounded forall" and `bex` for "bounded exists" are from experience very confusing abbreviations. This PR renames them to `forall_mem` and `exists_mem` in the few `Set` lemma names that mention them.

Also deprecate `ball_image_of_ball`, `mem_image_elim`, `mem_image_elim_on` since those lemmas are duplicates of the renamed lemmas (apart from argument order and implicitness, which I am also fixing by making the binder in the RHS of `forall_mem_image` semi-implicit), have obscure names and are completely unused.
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Mar 8, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: Remove ball and bex from lemma names [Merged by Bors] - chore: Remove ball and bex from lemma names Mar 8, 2024
@mathlib-bors mathlib-bors bot closed this Mar 8, 2024
@mathlib-bors mathlib-bors bot deleted the banish_ball_bex branch March 8, 2024 08:08
urkud added a commit that referenced this pull request Mar 11, 2024
... as a `@[deprecated] alias`

Also add dates to some theorems deprecated in #10816,
deprecate `Set.exists_range_iff'`,
and use `simp`-normal form in the definition of `ParacompactSpace`.
mathlib-bors bot pushed a commit that referenced this pull request Mar 12, 2024
... as a `@[deprecated] alias`

Also add dates to some theorems deprecated in #10816,
deprecate `Set.exists_range_iff'`,
and use `simp`-normal form in the definition of `ParacompactSpace`.
kbuzzard pushed a commit that referenced this pull request Mar 12, 2024
`ball` for "bounded forall" and `bex` for "bounded exists" are from experience very confusing abbreviations. This PR renames them to `forall_mem` and `exists_mem` in the few `Set` lemma names that mention them.

Also deprecate `ball_image_of_ball`, `mem_image_elim`, `mem_image_elim_on` since those lemmas are duplicates of the renamed lemmas (apart from argument order and implicitness, which I am also fixing by making the binder in the RHS of `forall_mem_image` semi-implicit), have obscure names and are completely unused.
kbuzzard pushed a commit that referenced this pull request Mar 12, 2024
... as a `@[deprecated] alias`

Also add dates to some theorems deprecated in #10816,
deprecate `Set.exists_range_iff'`,
and use `simp`-normal form in the definition of `ParacompactSpace`.
dagurtomas pushed a commit that referenced this pull request Mar 22, 2024
`ball` for "bounded forall" and `bex` for "bounded exists" are from experience very confusing abbreviations. This PR renames them to `forall_mem` and `exists_mem` in the few `Set` lemma names that mention them.

Also deprecate `ball_image_of_ball`, `mem_image_elim`, `mem_image_elim_on` since those lemmas are duplicates of the renamed lemmas (apart from argument order and implicitness, which I am also fixing by making the binder in the RHS of `forall_mem_image` semi-implicit), have obscure names and are completely unused.
dagurtomas pushed a commit that referenced this pull request Mar 22, 2024
... as a `@[deprecated] alias`

Also add dates to some theorems deprecated in #10816,
deprecate `Set.exists_range_iff'`,
and use `simp`-normal form in the definition of `ParacompactSpace`.
utensil pushed a commit that referenced this pull request Mar 26, 2024
`ball` for "bounded forall" and `bex` for "bounded exists" are from experience very confusing abbreviations. This PR renames them to `forall_mem` and `exists_mem` in the few `Set` lemma names that mention them.

Also deprecate `ball_image_of_ball`, `mem_image_elim`, `mem_image_elim_on` since those lemmas are duplicates of the renamed lemmas (apart from argument order and implicitness, which I am also fixing by making the binder in the RHS of `forall_mem_image` semi-implicit), have obscure names and are completely unused.
utensil pushed a commit that referenced this pull request Mar 26, 2024
... as a `@[deprecated] alias`

Also add dates to some theorems deprecated in #10816,
deprecate `Set.exists_range_iff'`,
and use `simp`-normal form in the definition of `ParacompactSpace`.
mathlib-bors bot pushed a commit that referenced this pull request Apr 8, 2024
Follow-up to #10816.

Remaining places containing such lemmas are
- `Option.bex_ne_none` and `Option.ball_ne_none`: defined in Lean core
- `Nat.decidableBallLT` and `Nat.decidableBallLE`: defined in Lean core
- `bef_def` is still used in a number of places and could be renamed
- `BAll.imp_{left,right}`, `BEx.imp_{left,right}`, `BEx.intro` and `BEx.elim`

I only audited the first ~150 lemmas mentioning "ball"; too many lemmas named after Metric.ball/openBall/closedBall.



Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
Louddy pushed a commit that referenced this pull request Apr 15, 2024
`ball` for "bounded forall" and `bex` for "bounded exists" are from experience very confusing abbreviations. This PR renames them to `forall_mem` and `exists_mem` in the few `Set` lemma names that mention them.

Also deprecate `ball_image_of_ball`, `mem_image_elim`, `mem_image_elim_on` since those lemmas are duplicates of the renamed lemmas (apart from argument order and implicitness, which I am also fixing by making the binder in the RHS of `forall_mem_image` semi-implicit), have obscure names and are completely unused.
Louddy pushed a commit that referenced this pull request Apr 15, 2024
... as a `@[deprecated] alias`

Also add dates to some theorems deprecated in #10816,
deprecate `Set.exists_range_iff'`,
and use `simp`-normal form in the definition of `ParacompactSpace`.
Louddy pushed a commit that referenced this pull request Apr 15, 2024
Follow-up to #10816.

Remaining places containing such lemmas are
- `Option.bex_ne_none` and `Option.ball_ne_none`: defined in Lean core
- `Nat.decidableBallLT` and `Nat.decidableBallLE`: defined in Lean core
- `bef_def` is still used in a number of places and could be renamed
- `BAll.imp_{left,right}`, `BEx.imp_{left,right}`, `BEx.intro` and `BEx.elim`

I only audited the first ~150 lemmas mentioning "ball"; too many lemmas named after Metric.ball/openBall/closedBall.



Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
atarnoam pushed a commit that referenced this pull request Apr 16, 2024
Follow-up to #10816.

Remaining places containing such lemmas are
- `Option.bex_ne_none` and `Option.ball_ne_none`: defined in Lean core
- `Nat.decidableBallLT` and `Nat.decidableBallLE`: defined in Lean core
- `bef_def` is still used in a number of places and could be renamed
- `BAll.imp_{left,right}`, `BEx.imp_{left,right}`, `BEx.intro` and `BEx.elim`

I only audited the first ~150 lemmas mentioning "ball"; too many lemmas named after Metric.ball/openBall/closedBall.



Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
uniwuni pushed a commit that referenced this pull request Apr 19, 2024
... as a `@[deprecated] alias`

Also add dates to some theorems deprecated in #10816,
deprecate `Set.exists_range_iff'`,
and use `simp`-normal form in the definition of `ParacompactSpace`.
uniwuni pushed a commit that referenced this pull request Apr 19, 2024
Follow-up to #10816.

Remaining places containing such lemmas are
- `Option.bex_ne_none` and `Option.ball_ne_none`: defined in Lean core
- `Nat.decidableBallLT` and `Nat.decidableBallLE`: defined in Lean core
- `bef_def` is still used in a number of places and could be renamed
- `BAll.imp_{left,right}`, `BEx.imp_{left,right}`, `BEx.intro` and `BEx.elim`

I only audited the first ~150 lemmas mentioning "ball"; too many lemmas named after Metric.ball/openBall/closedBall.



Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
callesonne pushed a commit that referenced this pull request Apr 22, 2024
`ball` for "bounded forall" and `bex` for "bounded exists" are from experience very confusing abbreviations. This PR renames them to `forall_mem` and `exists_mem` in the few `Set` lemma names that mention them.

Also deprecate `ball_image_of_ball`, `mem_image_elim`, `mem_image_elim_on` since those lemmas are duplicates of the renamed lemmas (apart from argument order and implicitness, which I am also fixing by making the binder in the RHS of `forall_mem_image` semi-implicit), have obscure names and are completely unused.
callesonne pushed a commit that referenced this pull request Apr 22, 2024
... as a `@[deprecated] alias`

Also add dates to some theorems deprecated in #10816,
deprecate `Set.exists_range_iff'`,
and use `simp`-normal form in the definition of `ParacompactSpace`.
callesonne pushed a commit that referenced this pull request Apr 22, 2024
Follow-up to #10816.

Remaining places containing such lemmas are
- `Option.bex_ne_none` and `Option.ball_ne_none`: defined in Lean core
- `Nat.decidableBallLT` and `Nat.decidableBallLE`: defined in Lean core
- `bef_def` is still used in a number of places and could be renamed
- `BAll.imp_{left,right}`, `BEx.imp_{left,right}`, `BEx.intro` and `BEx.elim`

I only audited the first ~150 lemmas mentioning "ball"; too many lemmas named after Metric.ball/openBall/closedBall.



Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
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

4 participants