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] - refactor(data/finite/set,data/set/finite): move most contents of one file to another #15166

Closed
wants to merge 5 commits into from

Conversation

urkud
Copy link
Member

@urkud urkud commented Jul 7, 2022

  • move most content of data.finite.set to data.set.finite;
  • use casesI nonempty_fintype _ instead of letI := fintype.of_finite; sometimes it lets us avoid classical.choice;
  • merge set.finite.of_fintype, set.finite_of_fintype, and set.finite_of_finite into set.to_finite;
  • rewrite set.finite_univ_iff and finite.of_finite_univ in terms of set.finite;
  • replace some assumptions [fintype (plift _)] with [finite _];
  • generalize set.cod_restrict and some lemmas to allow domain in Sort*, use it for finite.of_injective_finite.range.

Open in Gitpod

@urkud urkud added the awaiting-review The author would like community review of the PR label Jul 7, 2022
@urkud urkud requested a review from kmill July 7, 2022 15:14
@urkud
Copy link
Member Author

urkud commented Jul 7, 2022

@kmill This is a part of #15034

@kmill
Copy link
Collaborator

kmill commented Jul 7, 2022

Thanks, looks great!

bors r+

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-review The author would like community review of the PR labels Jul 7, 2022
bors bot pushed a commit that referenced this pull request Jul 7, 2022
…file to another (#15166)

* move most content of `data.finite.set` to `data.set.finite`;
* use `casesI nonempty_fintype _` instead of `letI := fintype.of_finite`; sometimes it lets us avoid `classical.choice`;
* merge `set.finite.of_fintype`, `set.finite_of_fintype`, and `set.finite_of_finite` into `set.to_finite`;
* rewrite `set.finite_univ_iff` and `finite.of_finite_univ` in terms of `set.finite`;
* replace some assumptions `[fintype (plift _)]` with `[finite _]`;
* generalize `set.cod_restrict` and some lemmas to allow domain in `Sort*`, use it for `finite.of_injective_finite.range`.
@bors
Copy link

bors bot commented Jul 7, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title refactor(data/finite/set,data/set/finite): move most contents of one file to another [Merged by Bors] - refactor(data/finite/set,data/set/finite): move most contents of one file to another Jul 7, 2022
@bors bors bot closed this Jul 7, 2022
@bors bors bot deleted the YK-set-finite-move-instances branch July 7, 2022 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants