Skip to content

[Merged by Bors] - chore: remove Data/UnionFind#14556

Closed
grunweg wants to merge 3 commits intomasterfrom
MR-remove-unionfind
Closed

[Merged by Bors] - chore: remove Data/UnionFind#14556
grunweg wants to merge 3 commits intomasterfrom
MR-remove-unionfind

Conversation

@grunweg
Copy link
Copy Markdown
Contributor

@grunweg grunweg commented Jul 9, 2024

Its implementation has been improved in lean4lean and batteries; the mathlib implementation can be removed in favour of these.

Searching github for 'import Mathlib.Data.UnionFind' only yields forks of mathlib (either explicit or manual); hence this seems safe to remove without a deprecation period.


Search query used: https://github.com/search?q=lang%3ALean+%22import+Mathlib.Data.UnionFind%22&type=code&p=1

Open in Gitpod

Its implementation has been improved in lean4lean and batteries;
the mathlib implementation can be removed in favour of these.

Searching github for 'import Mathlib.Data.UnionFind' only yields forks
of mathlib (either explicit or manual); hence this seems safe to remove
without a deprecation period.
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jul 9, 2024

PR summary e440615b6c

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.Data.UnionFind 38 0 -38 (-100.00%)
Import changes for all files
Files Import difference
Mathlib.Data.UnionFind -38

Declarations diff

- UFModel
- UFModel.Agrees
- UFModel.Models
- UFNode
- UnionFind
- find
- findAux
- get_eq
- get_eq'
- link
- lt_rankMax
- lt_rankMax'
- mk'
- mkEmpty
- model'
- parent_eq
- parent_eq'
- parent_lt
- rank
- rankMax
- rankMaxAux
- rank_lt
- set
- setParentBump
- size
- union
-- rank_eq
-- setParent
-- size_eq
---- empty
---- push

You can run this locally as follows
## summary with just the declaration names:
./scripts/no_lost_declarations.sh short <optional_commit>

## more verbose report:
./scripts/no_lost_declarations.sh <optional_commit>

@ghost ghost added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jul 9, 2024
@kim-em
Copy link
Copy Markdown
Contributor

kim-em commented Jul 10, 2024

bors d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jul 10, 2024

✌️ grunweg can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@github-actions github-actions bot added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Jul 10, 2024
@grunweg grunweg added awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. and removed merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) labels Jul 10, 2024
@github-actions github-actions bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Jul 10, 2024
@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Jul 10, 2024

Thanks for the quick review!
bors r+

mathlib-bors bot pushed a commit that referenced this pull request Jul 10, 2024
Its implementation has been improved in `lean4lean` and `batteries`; the mathlib implementation can be removed in favour of these.

Searching github for 'import Mathlib.Data.UnionFind' only yields forks of mathlib (either explicit or manual); hence this seems safe to remove without a deprecation period.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jul 10, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: remove Data/UnionFind [Merged by Bors] - chore: remove Data/UnionFind Jul 10, 2024
@mathlib-bors mathlib-bors bot closed this Jul 10, 2024
@mathlib-bors mathlib-bors bot deleted the MR-remove-unionfind branch July 10, 2024 11:07
@adomani adomani mentioned this pull request Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants