login  home  contents  what's new  discussion  bug reports     help  links  subscribe  changes  refresh  edit

Edit detail for #220 'StepThrough' is braindead revision 1 of 1

1
Editor:
Time: 2007/11/17 22:10:57 GMT-8
Note:

changed:
-
The 'StepThrough' category provides a function 'init()' which yields an initial element of the domain and a function 'nextItem(n)' which produces the element after 'n', or '"failed"' if there is no such element.

This sounds quite like an implementation of countable sets. But unfortunately, it isn't. The documentation says, that it is not required that all elements of the domain are eventually produced.

This given, *any* domain could belong to 'STEP'. Inspecting the domains in Axiom we find however, that (nearly) exactly those domains that contain a countable number of elements have 'STEP', while, for example 'EXPR' and 'Float' don't.

I would argue that this should be changed and I will provide an implementation shortly. There is little danger of breaking anything, since 'STEP' is only used at two different places, namely in 'GENPGCD' and in 'PFBRU'.

Martin

Submitted by : (unknown) at: 2007-11-17T22:10:57-08:00 (16 years ago)
Name :
Axiom Version :
Category : Severity : Status :
Optional subject :  
Optional comment :

The StepThrough category provides a function init() which yields an initial element of the domain and a function nextItem(n) which produces the element after n, or "failed" if there is no such element.

This sounds quite like an implementation of countable sets. But unfortunately, it isn't. The documentation says, that it is not required that all elements of the domain are eventually produced.

This given, any domain could belong to STEP. Inspecting the domains in Axiom we find however, that (nearly) exactly those domains that contain a countable number of elements have STEP, while, for example EXPR and Float don't.

I would argue that this should be changed and I will provide an implementation shortly. There is little danger of breaking anything, since STEP is only used at two different places, namely in GENPGCD and in PFBRU.

Martin