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

feat(data/list/nodup_permutations): nodup_permutations #8494

Closed
wants to merge 30 commits into from

Conversation

pechersky
Copy link
Collaborator

@pechersky pechersky commented Aug 1, 2021

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


Open in Gitpod

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 pechersky added the awaiting-author A reviewer has asked the author a question or requested changes label Aug 1, 2021
@github-actions
Copy link

github-actions bot commented 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 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
@github-actions github-actions bot added the merge-conflict Please `git merge origin/master` then a bot will remove this label. label Aug 6, 2021
@pechersky
Copy link
Collaborator Author

Closed in favor of #8616

@pechersky pechersky closed this Aug 15, 2021
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>
@pechersky pechersky deleted the pechersky/nodup-permutations branch November 29, 2021 02:35
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant