-
-
Notifications
You must be signed in to change notification settings - Fork 398
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #27467: weak order of permutations broken
From https://groups.google.com/forum/#!topic/sage-support/6kuvliWzi84: {{{ sage: for w in Permutations(3): ....: w, w.weak_covers() ....: ([1, 2, 3], []) ([1, 3, 2], [[1, 2, 3]]) ([2, 1, 3], [[1, 2, 3]]) ([2, 3, 1], [[3, 2, 1]]) ([3, 1, 2], [[3, 2, 1]]) ([3, 2, 1], [[3, 1, 2], [2, 3, 1]]) The fourth and fifth lines of the output are incorrect. The correct values should be ([2, 3, 1], [[2, 1, 3]]) ([3, 1, 2], [[1, 3, 2]]) }}} This manifests also in creating the weak order poset: {{{ sage: Permutations(3).weak_poset() ... ValueError: Hasse diagram contains cycles }}} This is a left-vs-right issue and `Permutation` multiplication being a little strange with respect to that. We also remove the multiplication argument and convention effects from `has_*_descent`. URL: https://trac.sagemath.org/27467 Reported by: tscrim Ticket author(s): Travis Scrimshaw Reviewer(s): Frédéric Chapoton, Darij Grinberg
- Loading branch information
Showing
3 changed files
with
108 additions
and
70 deletions.
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