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: Ruzsa covering for sets #8916

Closed
wants to merge 4 commits into from

Conversation

YaelDillies
Copy link
Collaborator

Add a version covering for Set α and Nat.card.

From PFR


Open in Gitpod

Add a version covering for `Set α` and `Nat.card`.
@YaelDillies YaelDillies added awaiting-review The author would like community review of the PR easy < 20s of review time. See the lifecycle page for guidelines. t-combinatorics Combinatorics labels Dec 9, 2023
Comment on lines 72 to 74
-- `norm_cast` would find these automatically, but breaks `to_additive` when it does so
rw [←Finset.coe_mul, ←Finset.coe_mul, ←Finset.coe_div]
norm_cast
Copy link
Member

Choose a reason for hiding this comment

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

@fpvandoorn, any ideas? It looks like norm_cast is generating auxiliary lemmas, but the to_additive tag isn't being transferred to them.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is not norm_cast but lift, it seems.

Copy link
Member

@eric-wieser eric-wieser left a comment

Choose a reason for hiding this comment

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

I'd prefer to have an issue to reference in the comment about to_additive before merging; perhaps Floris knows of one that already exists.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@YaelDillies
Copy link
Collaborator Author

I guess we can reference #1074 ?

@sgouezel
Copy link
Contributor

If we agree that we want to use Nat.card, could you also remove the simp attribute on Nat.card_coe_set_eq?

@sgouezel sgouezel added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review The author would like community review of the PR labels Dec 19, 2023
@YaelDillies YaelDillies added awaiting-review The author would like community review of the PR and removed awaiting-author A reviewer has asked the author a question or requested changes easy < 20s of review time. See the lifecycle page for guidelines. labels Dec 19, 2023
@sgouezel
Copy link
Contributor

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 Dec 19, 2023
mathlib-bors bot pushed a commit that referenced this pull request Dec 19, 2023
Add a version covering for `Set α` and `Nat.card`.

From PFR



Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Dec 19, 2023

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat: Ruzsa covering for sets [Merged by Bors] - feat: Ruzsa covering for sets Dec 19, 2023
@mathlib-bors mathlib-bors bot closed this Dec 19, 2023
@mathlib-bors mathlib-bors bot deleted the ruzsa_covering branch December 19, 2023 13:41
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. t-combinatorics Combinatorics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants