-
Notifications
You must be signed in to change notification settings - Fork 298
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/list/perm): perm.permutations #8587
Conversation
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
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.
LGTM 🎉! Thanks again.
@pechersky, do you have any interest in trying to golf any proofs?
bors d+ It seems this is hitting a random timeout though, so lets not merge until CI passes. |
✌️ digama0 can now approve this pull request. To approve and merge a pull request, simply reply with |
bors r+ |
This proves the theorem from [Zulip](https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/perm.20of.20permutations): ```lean theorem perm.permutations {s t : list α} (h : s ~ t) : permutations s ~ permutations t := ... ``` It also introduces a `permutations'` function which has simpler equations (and indeed, this function is used to prove the theorem, because it is relatively easier to prove `perm.permutations'` first).
Pull request successfully merged into master. Build succeeded: |
This proves the theorem from Zulip:
It also introduces a
permutations'
function which has simpler equations (and indeed, this function is used to prove the theorem, because it is relatively easier to proveperm.permutations'
first).