Skip to content

[Merged by Bors] - feat: Ruzsa covering for sets - #8916

Closed
YaelDillies wants to merge 4 commits into
masterfrom
ruzsa_covering
Closed

YaelDillies wants to merge 4 commits into
masterfrom
ruzsa_covering

Conversation

@YaelDillies

Copy link
Copy Markdown
Contributor

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 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
Copy Markdown
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
Copy Markdown
Contributor 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.

@eric-wieser eric-wieser left a comment

Copy link
Copy Markdown
Member

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 YaelDillies mentioned this pull request Dec 9, 2023
9 of 20 tasks
@YaelDillies

Copy link
Copy Markdown
Contributor Author

I guess we can reference #1074 ?

@sgouezel

Copy link
Copy Markdown
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 Reply -awaiting-author to remove the label on your PR once you have addressed all comments. and removed awaiting-review labels Dec 19, 2023
@YaelDillies YaelDillies added awaiting-review and removed awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. easy < 20s of review time. See the lifecycle page for guidelines. labels Dec 19, 2023
@sgouezel

Copy link
Copy Markdown
Contributor

bors r+
Thanks!

@github-actions github-actions Bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review 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 <[email protected]>
@mathlib-bors

mathlib-bors Bot commented Dec 19, 2023

Copy link
Copy Markdown
Contributor

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.

3 participants