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/list/nodup_permutations): nodup_permutations #8494
Closed
Conversation
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
Provide explicit embedding from a subtype of a disjuction into a sum type. If the disjunction is disjoint, upgrade to an equiv. Additionally, provide `subtype.imp_embedding`, lowering a subtype along an implication.
…of one element Additionally, a lemma proving that the cardinality of such a subtype is 1.
Using a cardinality argument, prove that the list of permutations of a list is nodup if the list is nodup. TODO: prove the reverse implication. Implementation: provide an explicit equiv between the perm Prop and the equiv over indices. TODO: prove that this equiv moves indices as expected TODO: generalize to sublists/embeddings
pechersky
added
the
awaiting-author
A reviewer has asked the author a question or requested changes
label
Aug 1, 2021
⏳ Alright! Looks like we need to wait for some dependencies:
💡 Don't worry, I will continue watching the list above and keep this comment updated. To add or remove a dependency please update this issue/PR description. Brought to you by Dependent Issues (:robot: ). Happy coding! |
github-actions
bot
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
Aug 1, 2021
This reverts commit 4d8c0b0.
this prevents needing to infer an additional instance in rewrites
github-actions
bot
added
the
merge-conflict
Please `git merge origin/master` then a bot will remove this label.
label
Aug 6, 2021
This was referenced Aug 9, 2021
Closed in favor of #8616 |
bors bot
pushed a commit
that referenced
this pull request
Aug 18, 2021
A simpler version of #8494 TODO: `nodup s.permutations ↔ nodup s` TODO: `count s s.permutations = (zip_with count s s.tails).prod` Co-authored-by: Yakov Pechersky <pechersky@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
awaiting-author
A reviewer has asked the author a question or requested changes
blocked-by-other-PR
This PR depends on another PR which is still in the queue. A bot manages this label via PR comment.
merge-conflict
Please `git merge origin/master` then a bot will remove this label.
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.
Using a cardinality argument, prove that the list of permutations of a list
is nodup if the list is nodup.
TODO: prove the reverse implication.
Implementation: provide an explicit equiv between
the perm Prop and the equiv over indices.
TODO: prove that this equiv moves indices as expected
TODO: generalize to sublists/embeddings