Open tscrim opened 11 years ago
Description changed:
---
+++
@@ -17,14 +17,14 @@
[3, 3, 3]
# Continues looping for forever (which I guess is okay)
sage: L.is_finite()
-True
+# Loops for forever
sage: L.category()
-Category of finite enumerated sets
+Category of sets
sage: L2 = IntegerListsLex(NonNegativeIntegers(), max_length=3)
sage: L2.is_finite()
-True
+# Loops for forever
sage: L2.category()
-Category of finite enumerated sets
+Category of sets
The last two are not correct, and this would likely need moderate checking of combinations of the input arguments.
Dependencies: #13605
Description changed:
---
+++
@@ -17,14 +17,14 @@
[3, 3, 3]
# Continues looping for forever (which I guess is okay)
sage: L.is_finite()
-# Loops for forever
+True
sage: L.category()
-Category of sets
+Category of finite enumerated sets
sage: L2 = IntegerListsLex(NonNegativeIntegers(), max_length=3)
sage: L2.is_finite()
-# Loops for forever
+True
sage: L2.category()
-Category of sets
+Category of finite enumerated sets
The last two are not correct, and this would likely need moderate checking of combinations of the input arguments.
Without #13605 applied, the is_finite()
loops for forever and the category is just Category of sets
.
Description changed:
---
+++
@@ -1,7 +1,7 @@
`IntegerListsLex` has some issues with finiteness:
-sage: L = IntegerListsLex(NonNegativeIntegers(), max_length=3, ceiling=lamabda i: 3) +sage: L = IntegerListsLex(NonNegativeIntegers(), max_length=3, ceiling=lambda i: 3) sage: L Integer lists of sum in <class 'sage.sets.non_negative_integers.NonNegativeIntegers'> satisfying certain constraints sage: for x in L:
is this issue fixed meanwhile?
L.is_finite() # is false with recent sage
L2.is_finite() # is false with recent sage
Now the first answer is wrong.
It seems to me that this issue is outdated: IntegersListsLex
does not take NonNegativeIntegers
as first argument anymore.
IntegerListsLex
has some issues with finiteness:The last two are not correct, and this would likely need moderate checking of combinations of the input arguments.
Depends on #13605
Component: combinatorics
Keywords: finite sets, integer lists
Issue created by migration from https://trac.sagemath.org/ticket/13749