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
weak order of permutations broken #27467
Comments
This comment has been minimized.
This comment has been minimized.
comment:2
The problem is the multiplication for a permutation seems to have the oppose effect (by default):
So we need to override |
Author: Travis Scrimshaw |
comment:3
So the only way forward that I could see to make this work is to gut out the multiplication option for New commits:
|
Commit: |
This comment has been minimized.
This comment has been minimized.
comment:5
Moving all blocker/critical issues from 8.7 to 8.8. |
comment:6
Can someone review this? |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:9
Green patchbot. |
comment:10
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:12
Replying to @fchapoton:
Added.
Fixed.
It is at least no worse than what it is currently, but I think this makes it more consistent overall. Plus it fixes a definite bug. |
comment:13
ok, then. One should suggest somewhere loudly to use |
Reviewer: Frédéric Chapoton |
comment:14
Replying to @fchapoton:
Thank you.
Also referencing I am adding Darij as a reviewer since he gave me some comments on the ticket. |
Changed reviewer from Frédéric Chapoton to Frédéric Chapoton, Darij Grinberg |
comment:15
Possibly due to #27899, I'm getting
|
comment:16
Yes, probably correlated to this replacement in #27899 : n = self.semilength()
area = self.to_area_sequence()
- from sage.groups.perm_gps.permgroup_named import SymmetricGroup
- pi = SymmetricGroup(n).one()
+ pi = Permutations(n).one()
for j in range(n):
for i in range(area[j]):
- pi = pi.apply_simple_reflection(j-i)
- return Permutation(~pi)
+ pi = pi.apply_simple_reflection(j - i)
+ return ~pi |
comment:17
I concur, and it should just be a matter of swapping the left/right convention (which I guess should just mean returning |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:20
Sorry, I got sidetracked from this and forgot to do this last week. This is now fixed (although unfortunately we might have missed the next release cutoff...). Volker, it would be really nice if this could slip in to 8.8 since this is a relatively big bug in the combinatorics code. |
comment:21
set to positive again |
Changed branch from public/combinat/fix_weak_order_permutations-27467 to |
From https://groups.google.com/forum/#!topic/sage-support/6kuvliWzi84:
This manifests also in creating the weak order poset:
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 fromhas_*_descent
.CC: @sagetrac-sage-combinat @nthiery @fchapoton @darijgr @sagetrac-jeremy-l-martin
Component: combinatorics
Keywords: Coxeter group
Author: Travis Scrimshaw
Branch/Commit:
fa0450e
Reviewer: Frédéric Chapoton, Darij Grinberg
Issue created by migration from https://trac.sagemath.org/ticket/27467
The text was updated successfully, but these errors were encountered: