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(data/finset/noncomm_prod): add noncomm_prod_mul_distrib #12524

Closed
wants to merge 9 commits into from

Conversation

nomeata
Copy link
Collaborator

@nomeata nomeata commented Mar 8, 2022

The non-commutative version of finset.sum_union.


Open in Gitpod

adding `list.prod_commute`, `multiset.noncomm_prod_commute` and
`finset.noncomm_prod_commute`.
The non-commutative version of `finset.sum_union`
@nomeata nomeata added the awaiting-review The author would like community review of the PR label Mar 8, 2022
@leanprover-community-bot-assistant leanprover-community-bot-assistant added the blocked-by-other-PR This PR depends on another PR which is still in the queue. A bot manages this label via PR comment. label Mar 8, 2022
nomeata and others added 2 commits March 8, 2022 11:07
@leanprover-community-bot-assistant leanprover-community-bot-assistant removed the blocked-by-other-PR This PR depends on another PR which is still in the queue. A bot manages this label via PR comment. label Mar 8, 2022
@leanprover-community-bot-assistant
Copy link
Collaborator

This PR/issue depends on:

Comment on lines 283 to 293
noncomm_prod s (f * g)
begin
intros x hx y hy,
by_cases h : x = y, { subst h },
apply commute.mul_left; apply commute.mul_right,
{ exact comm_ff x hx y hy },
{ exact (comm_gf y hy x hx (ne.symm h)).symm },
{ exact comm_gf x hx y hy h },
{ exact comm_gg x hx y hy },
end
= noncomm_prod s f comm_ff * noncomm_prod s g comm_gg :=
Copy link
Member

Choose a reason for hiding this comment

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

I think the statement would become more readable if you extracted the subproof into a separate aux-lemma.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Like this?

@jcommelin jcommelin 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 Mar 11, 2022
@nomeata nomeata 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 labels Mar 11, 2022
Copy link
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.

Thanks 🎉

bors merge

@leanprover-community-bot-assistant leanprover-community-bot-assistant 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 Mar 11, 2022
bors bot pushed a commit that referenced this pull request Mar 11, 2022
The non-commutative version of `finset.sum_union`.
@bors
Copy link

bors bot commented Mar 11, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(data/finset/noncomm_prod): add noncomm_prod_mul_distrib [Merged by Bors] - feat(data/finset/noncomm_prod): add noncomm_prod_mul_distrib Mar 11, 2022
@bors bors bot closed this Mar 11, 2022
@bors bors bot deleted the joachim/noncomm_prod_mul_distrib branch March 11, 2022 20:58
laurentbartholdi pushed a commit that referenced this pull request Mar 17, 2022
The non-commutative version of `finset.sum_union`.
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

3 participants