Memory full and Weyl group

asked 2022-02-17 02:01:07 +0100

BMC gravatar image

updated 2022-02-17 20:50:53 +0100

slelievre gravatar image

I have a problem of finding all regular intervals in the Coxeter group A9. When I use the code below for small groups A1 up to A4 I find the intervals. But for big groups like A7, A8 (these are symmetric groups S8 and S9), etc in sage 9.5 they say that the memory is full. Is there a way of cleaning the used memory so that I can get the last intervals? Because I want to see how the last few intervals look like. Down is the code.

W = WeylGroup('A9', prefix='s')
s1, s2, s3, s4, s5 = W.simple_reflections()
S = W.simple_reflections()
T = W.reflections()
for u in W:
    for v in W:
        if u != v and v != W.long_element() and u.bruhat_le(v):
            K = Set([t for t in T if u.bruhat_le(t*u) and (t*u).bruhat_le(v)])
            if K.cardinality() == v.length() - u.length():
                print([u, v])
edit retag flag offensive close merge delete

Comments

You can directly iterate over the Bruhat intervals using

sage: W = WeylGroup('A4', prefix='s')
sage: P = W.bruhat_poset()
sage: [(u,v) for u,v in P.relations_iterator()]
FrédéricC gravatar imageFrédéricC ( 2022-02-17 10:27:32 +0100 )edit

Why do you use Set instead of a list ?

FrédéricC gravatar imageFrédéricC ( 2022-02-17 18:53:13 +0100 )edit

and in fact maybe you can replace K=... by

K = sum(1 for t in T if u.bruhat_le(t*u) and (t*u).bruhat_le(v))

to compute directly the cardinality.

FrédéricC gravatar imageFrédéricC ( 2022-02-18 13:24:03 +0100 )edit