-
Notifications
You must be signed in to change notification settings - Fork 297
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
feat(data/fin*): uniqueness of increasing bijection #2258
Merged
Merged
Changes from 13 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
096df9c
feat(data/fin*): uniqueness of increasing bijection
sgouezel 628a183
protect
sgouezel 939b2db
remove tidy call
sgouezel caff7ea
Update src/data/finset.lean
sgouezel 571a029
Update src/data/finset.lean
sgouezel 1d4ccc6
Update src/data/fintype/card.lean
sgouezel c166c60
Update src/data/fintype/card.lean
sgouezel eac6efe
Update src/data/fintype/card.lean
sgouezel 2e8c39f
prove prod_add, and use this to prove sum_pow_mul_eq_add_pow
ChrisHughes24 6be6211
Merge remote-tracking branch 'origin/master' into HEAD
ChrisHughes24 215f0b7
forgot to save
ChrisHughes24 2a2690f
fix build
ChrisHughes24 9399bee
remove card_sub_card
ChrisHughes24 abbd9e6
Merge branch 'master' into sgouezel_fin
mergify[bot] c1ba5a8
Merge branch 'master' into sgouezel_fin
mergify[bot] ff311f0
Merge branch 'master' into sgouezel_fin
mergify[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did a bit of a refactor of this lemma yesterday. I first proved the lemma
prod_add {α R : Type*} [comm_semiring R] (f g : α → R) (s : finset α) : s.prod (λ a, f a + g a) = s.powerset.sum (λ t : finset α, t.prod f * (s.filter (∉ t)).prod g)
and restated this lemma using afinset α
instead of the whole ofα
andfinset.powerset
in place offinset.univ
, and proving it usingprod_add
. Are you happy for me to push these changes to this branch?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, thanks!