Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regular partitions: 1-regular partitions are mishandled on occasion #20584

Closed
darijgr opened this issue May 10, 2016 · 11 comments
Closed

Regular partitions: 1-regular partitions are mishandled on occasion #20584

darijgr opened this issue May 10, 2016 · 11 comments

Comments

@darijgr
Copy link
Contributor

darijgr commented May 10, 2016

1-regular partitions exist (although there is just one of them -- the empty one). Not all of the code behaves well at \ell=1, though; e.g., the iterator runs infinite loops once it's past [].

CC: @tscrim

Component: combinatorics

Keywords: partition, regular partition, border case

Author: Travis Scrimshaw

Branch/Commit: 7ba506c

Reviewer: Darij Grinberg

Issue created by migration from https://trac.sagemath.org/ticket/20584

@darijgr darijgr added this to the sage-7.3 milestone May 10, 2016
@tscrim
Copy link
Collaborator

tscrim commented Dec 11, 2017

@tscrim
Copy link
Collaborator

tscrim commented Dec 11, 2017

Commit: 2f0f912

@tscrim
Copy link
Collaborator

tscrim commented Dec 11, 2017

comment:1

Hey, I finally remembered to fix this. ^^;;


New commits:

2f0f912Better handle 1-regular partitions.

@tscrim
Copy link
Collaborator

tscrim commented Dec 11, 2017

Author: Travis Scrimshaw

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 11, 2017

Changed commit from 2f0f912 to 7ba506c

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 11, 2017

Branch pushed to git repo; I updated commit sha1. New commits:

9fb5274Merge branch 'public/combinat/fix_1_regular_partitions-20584' of git://trac.sagemath.org/sage into reg
7ba506cminor corrections

@darijgr
Copy link
Contributor Author

darijgr commented Dec 11, 2017

comment:4

Fixed a couple little things, one of which predated this ticket.

I don't know if there is an established way of guaranteeing that any function/method that takes a regular partition will still work with a 1-regular partition. Barring that, the only criterion are the doctests, right? Everything else LGTM.

@tscrim
Copy link
Collaborator

tscrim commented Dec 11, 2017

comment:5

Replying to @darijgr:

Fixed a couple little things, one of which predated this ticket.

Thanks.

I don't know if there is an established way of guaranteeing that any function/method that takes a regular partition will still work with a 1-regular partition. Barring that, the only criterion are the doctests, right? Everything else LGTM.

No, I don't think there is such a way other than those functions/methods having explicit checks. This is a degenerate case in terms of my applications (there is not really an [affine] sl1), so I'm not really worried.

@tscrim
Copy link
Collaborator

tscrim commented Dec 11, 2017

Reviewer: Travis Scrimshaw

@tscrim
Copy link
Collaborator

tscrim commented Dec 11, 2017

Changed reviewer from Travis Scrimshaw to Darij Grinberg

@vbraun
Copy link
Member

vbraun commented Dec 16, 2017

Changed branch from public/combinat/fix_1_regular_partitions-20584 to 7ba506c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants