I don't know about efficient, but in the species code I use 
libgap.RightTransveral(group, subgroup):

    def structures(self, *labels):
        labels = _label_sets(self.parent()._arity, labels)
        n = tuple([len(U) for U in labels])
        S = _SymmetricGroup(sum(n)).young_subgroup(n)
        l = [e for l in labels for e in l]
        if self._mc == n:
            for rep in libgap.RightTransversal(S, self._dis):
                yield tuple(S(rep)._act_on_list_on_position(l))

Does this help?

Martin
On Tuesday, 3 February 2026 at 14:25:12 UTC+1 [email protected] 
wrote:

> Hi,
>
> I have a permutation group (a Weyl group in fact) and a subgroup given by 
> explicit generators. I would like to iterate over representatives for the 
> cosets of this group. Is there an efficient way to do this in Sage?
>
> I asked ChatGPT and it gave me all kinds of plausible looking commands, 
> none of which actually existed...
>
> Thanks!
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/sage-support/0e43eeed-7b19-4270-9aa3-2d1939ffac2an%40googlegroups.com.

Reply via email to