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] - feat: minimal port of Fintype #429

Closed
wants to merge 12 commits into from

Conversation

semorrison
Copy link
Contributor

This is a bare minimum port of the definitions of Finset / Multiset / Fintype. I am hoping that these are enough to port the fin_cases tactic. (i.e. replacing the unfinished work in #346, which still had sorries in the corresponding material)

Where possible I have started by copying and pasting the output from mathlib3port.

@semorrison semorrison added the awaiting-review The author would like community review of the PR label Sep 19, 2022
@digama0 digama0 changed the title feat(Data/Fintype/Basic.lean): minimal port of Fintype feat: minimal port of Fintype Sep 19, 2022
@digama0
Copy link
Member

digama0 commented Sep 19, 2022

Note: the commit convention for lean 4 no longer puts the file name in the commit message.

@semorrison
Copy link
Contributor Author

@digama0, the linter is asking for doc-strings on the fields on structures. I wouldn't totally object to switching to this standard, but I'm pretty sure this is not intentional. If you agree, I can investigate fixing the linter.

@digama0
Copy link
Member

digama0 commented Sep 19, 2022

It is intentional, although I don't mind nolinting the definitions if you think we should delay documenting it. (Use runLinter --update to update the nolints file.)

@digama0
Copy link
Member

digama0 commented Sep 22, 2022

I made some minor style changes and golfed the proof of perm_inv_core. If it all looks good to you then:

bors d+

@bors
Copy link

bors bot commented Sep 22, 2022

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

@semorrison
Copy link
Contributor Author

Thanks, looks great.

bors merge

bors bot pushed a commit that referenced this pull request Sep 23, 2022
This is a bare minimum port of the definitions of `Finset` / `Multiset` / `Fintype`. I am hoping that these are enough to port the `fin_cases` tactic. (i.e. replacing the unfinished work in #346, which still had sorries in the corresponding material)

Where possible I have started by copying and pasting the output from `mathlib3port`.



Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Co-authored-by: Mario Carneiro <di.gama@gmail.com>
@bors
Copy link

bors bot commented Sep 23, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat: minimal port of Fintype [Merged by Bors] - feat: minimal port of Fintype Sep 23, 2022
@bors bors bot closed this Sep 23, 2022
@bors bors bot deleted the semorrison/minimal_fintype branch September 23, 2022 02:48
bors bot pushed a commit that referenced this pull request Oct 7, 2022
- [x] depends on: #429

Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
bors bot pushed a commit that referenced this pull request Oct 8, 2022
- [x] depends on: #429

Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-review The author would like community review of the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants