Skip to content

[Merged by Bors] - chore: replace Fin.castIso and Fin.revPerm with Fin.cast and Fin.rev for the bump of Std#5847

Closed
Komyyy wants to merge 15 commits intomasterfrom
Komyyy/Fin.castIso
Closed

[Merged by Bors] - chore: replace Fin.castIso and Fin.revPerm with Fin.cast and Fin.rev for the bump of Std#5847
Komyyy wants to merge 15 commits intomasterfrom
Komyyy/Fin.castIso

Conversation

@Komyyy
Copy link
Copy Markdown
Contributor

@Komyyy Komyyy commented Jul 13, 2023

Some theorems in Data.Fin.Basic are copied to Std at the recent commit in Std.
These are written using Fin.cast and Fin.rev, so declarations using Fin.castIso and Fin.revPerm in Mathlib should be rewritten.


Open in Gitpod

@Komyyy Komyyy added the WIP Work in progress label Jul 13, 2023
@Komyyy Komyyy changed the title chore: replace Fin.castIso and Fin.revPerm with Fin.cast and Fin.rev chore: replace Fin.castIso and Fin.revPerm with Fin.cast and Fin.rev for the bump of Std Jul 13, 2023
@Komyyy Komyyy removed the WIP Work in progress label Jul 13, 2023
@Komyyy Komyyy added awaiting-review awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. and removed after-port labels Jul 13, 2023
@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 13, 2023
@Komyyy Komyyy mentioned this pull request Jul 14, 2023
@Ruben-VandeVelde
Copy link
Copy Markdown
Contributor

Are these changes improvements?

@Komyyy
Copy link
Copy Markdown
Contributor Author

Komyyy commented Jul 14, 2023

@Ruben-VandeVelde Recently, the definitions like Fin.cast & Fin.rev are moved to Std and the types of Fin.cast & Fin.rev changed from OrderIso & Equiv.Perm to functions both. To prevent confusions, Fin.cast & Fin.rev and these related theorems are rewritten to Fin.castIso and Fin.revPerm. So the current Mathlib has few theorems about Fin.cast & Fin.rev.
This PR rewrites the related theorems back to Fin.cast & Fin.rev.

@eric-wieser
Copy link
Copy Markdown
Member

I think this change is probably a good thing given that Std4 changed in the way it did, as the canonical form should usually be the lowest-common-denominator of all available bundlings.

@Komyyy Komyyy added the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Jul 20, 2023
@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 20, 2023
@Komyyy Komyyy added the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Jul 20, 2023
@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 20, 2023
@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 24, 2023
@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 25, 2023
@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 27, 2023
@Komyyy Komyyy 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 30, 2023
@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 31, 2023
@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 Aug 5, 2023
@Komyyy Komyyy 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 Aug 13, 2023
@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 Aug 13, 2023
@jcommelin jcommelin requested a review from kim-em September 8, 2023 10:08
@jcommelin
Copy link
Copy Markdown
Member

@semorrison Could you please take a look at this PR?

@kim-em kim-em added awaiting-author A reviewer has asked the author a question or requested changes. and removed awaiting-review labels Sep 12, 2023
Copy link
Copy Markdown
Member

@jcommelin jcommelin left a comment

Choose a reason for hiding this comment

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

One comment (applies in several places). Otherwise LGTM

Thanks for this PR!

bors d+

@bors
Copy link
Copy Markdown

bors bot commented Sep 12, 2023

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

@ghost ghost added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Sep 12, 2023
@Komyyy Komyyy removed the awaiting-author A reviewer has asked the author a question or requested changes. label Sep 16, 2023
@Komyyy
Copy link
Copy Markdown
Contributor Author

Komyyy commented Sep 16, 2023

bors r+

bors bot pushed a commit that referenced this pull request Sep 16, 2023
…in.rev` for the bump of Std (#5847)

Some theorems in `Data.Fin.Basic` are copied to Std at the recent commit in Std.
These are written using `Fin.cast` and `Fin.rev`, so declarations using `Fin.castIso` and `Fin.revPerm` in Mathlib should be rewritten.



Co-authored-by: Pol'tta / Miyahara Kō <52843868+Komyyy@users.noreply.github.com>
Co-authored-by: Johan Commelin <johan@commelin.net>
@bors
Copy link
Copy Markdown

bors bot commented Sep 16, 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: replace Fin.castIso and Fin.revPerm with Fin.cast and Fin.rev for the bump of Std [Merged by Bors] - chore: replace Fin.castIso and Fin.revPerm with Fin.cast and Fin.rev for the bump of Std Sep 16, 2023
@bors bors bot closed this Sep 16, 2023
@bors bors bot deleted the Komyyy/Fin.castIso branch September 16, 2023 07:20
kodyvajjha pushed a commit that referenced this pull request Sep 22, 2023
…in.rev` for the bump of Std (#5847)

Some theorems in `Data.Fin.Basic` are copied to Std at the recent commit in Std.
These are written using `Fin.cast` and `Fin.rev`, so declarations using `Fin.castIso` and `Fin.revPerm` in Mathlib should be rewritten.



Co-authored-by: Pol'tta / Miyahara Kō <52843868+Komyyy@users.noreply.github.com>
Co-authored-by: Johan Commelin <johan@commelin.net>
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.

5 participants