#14541: Family over enumerated set has wrong category
--------------------------------------------------------------+-------------
Reporter: cnassau | Owner:
nthiery
Type: defect | Status:
new
Priority: minor | Milestone:
sage-5.10
Component: categories | Resolution:
Keywords: Family, Category of finite enumerated sets | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
--------------------------------------------------------------+-------------
Comment (by nthiery):
Thanks for the report!
Hmm, that's annoying indeed. This stems from the fact that
{{{Permutations}}} still uses the old CombinatorialClass, and for those
it's not so easy to detect easily whether they are known to be finite.
As a workaround, line 832 of Family, when the input is a
CombinatorialClass, we could ask whether x.cardinality() != infinity. The
risk is to trigger the enumeration of the elements of the combinatorial
class which might take a while ... Or check if cardinality actually is
implemented (i.e. is not the default _cardinality_from_iterator), and if
yes call it.
Of course, the proper fix would be to revamp permutations to be an
enumerated set like has been done recently for tableaux.
Would you be willing to handle any of the above?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14541#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.