-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
Notion of descent/major index in tableau.py is not mathematically standard #7983
Comments
comment:1
I have made a patch that resolves this issue. What I have done is renamed the old methods 'major_index' and 'descents' to 'i_major_index' and 'i_descents'. From what I can tell, only one other method refers to either of these methods and that is 'inversion', and I have not changed that at all except to refer to the new 'i_descents' (in particular I have not changed the name of 'inversion'). I have then made new methods called 'major_index' and 'descents' which use a more standard definition (i.e. the one on pages 361 and 363 of Enumerative Combinatorics Vol 2 by R. Stanley). |
Reviewer: jbandlow |
patch to fix tableaux major index |
comment:2
Attachment: Fix_Tableau_Major_Index_AR.patch.gz Thanks for the patch! While I don't have time for a full review now, the main issue with this patch is going to be backward compatibility. I'm pretty sure that the Macdonald polynomial code uses these functions, so sage --testall will probably fail after applying your patch. That part will not be too hard to fix, but the bigger problem is for people who have sage code on their own machine. When people upgrade sage and this change is included (without them necessarily knowing about it) this change could make their code behave in slightly wrong ways that are not obvious. We really try to avoid that. So I think the thing to do is to deprecate 'descents' and 'major_index' (look up deprecation in the developers guide), use 'i_descents' and 'i_major_index' for the existing statistics (as you have done) and give the classical statistics some new name. (Suggestions welcome!) |
comment:3
Replying to @jbandlow:
Yes, I thought this would be an issue. I actually made the patch a while ago but thought that precisely your objection would be raised. Anyways, I decided to send it in and see what would happen. It sounds like you have a good solution. About a new name: is "Major_Index" a bad idea? I don't know about sage's naming conventions. |
This comment has been minimized.
This comment has been minimized.
Changed keywords from none to combinat, tableaux |
comment:6
3 years... not bad. I've remade the patch from scratch (arattan's one didn't apply, unsurprisingly given its age) without renaming the existing The patch I attached does a few more things:
Here's stuff that has not been done (partly because I am not sure about them -- comments are welcome):
I have been building this patch on sage-5.10rc1 with only #8392 applied. |
Author: Jason Bandlow, Darij Grinberg |
Dependencies: #8392 |
This comment has been minimized.
This comment has been minimized.
Changed author from Jason Bandlow, Darij Grinberg to arattan, Darij Grinberg |
comment:9
Hey Darij, Two things I notice from a quick lookthrough:
I'll do a more through look-through and we can talk about 1. once I get to Orsay tomorrow. Best, Travis |
comment:10
Hi Travis, thanks for looking into this! I've updated the reference; is it correct now? As for Best regards, |
comment:11
Hi Darij, Thanks for your work on this. I think it reads a little odd to write that promotion is contrary to the paper by Stanley without giving a reference to what it actually is. Stanley's paper defines promotion on posets, whereas what you touched I think is promotion on tableaux. So it would be good to give a reference, for example the paper by Haiman, Discrete Math 99 (1992) 79-113. Best, Anne |
comment:12
Hi Anne, good point, thanks -- I've added the reference to Haiman, and also a better reference (Sagan's cyclic sieving paper) for the conflicting notation. If you agree, the Stanley reference can be removed (he defines promotion for linear extensions of posets, then claiming that this obviously defines it for tableaux -- this isn't really central to the paper, though). In other news, I've added documentation to See you both this evening, dg |
comment:13
Hi Darij,
Yes, probably you want that catabolism_sequence on the empty tableau is the empty tableau. The code only checks if the tableau is of height 1, but catabolism on the empty tableau is itself and hence it goes into an infinite loop. Best, Anne |
comment:14
Hi Anne, done! I've made one more minor change right now: Best regards, PS, in case this was Travis's concern: I've grepped for appearances of |
comment:15
Updated. |
Changed keywords from combinat, tableaux to combinat, tableaux, days49 |
implements the right notions of major index and descents for standard tableaux without changing the old ones; extends promotion_inverse to non-rectangular tableaux; fixes a couple minor issues and improves doc; version 8 |
comment:17
Attachment: trac_7983-major_index_and_other_tableau_fixes-dg.patch.gz Typo in a docstring fixed. |
This comment has been minimized.
This comment has been minimized.
Changed reviewer from jbandlow to Jason Bandlow, Travis Scrimshaw |
comment:18
Hey Darij, Here's the review patch. Travis |
comment:20
Let's see if I'm getting the syntax right... patchbot: apply trac_7983-major_index_and_other_tableau_fixes-dg.patch trac_7983-review-ts.patch |
Attachment: trac_7983-review-ts.patch.gz |
comment:21
Hey Darij, I noticed a duplicate reference of Best, Travis |
comment:22
Forgot to give the patchbot info. For patchbot: Apply: trac_7983-major_index_and_other_tableau_fixes-dg.patch trac_7983-review-ts.patch |
Merged: sage-5.12.beta0 |
Changed author from arattan, Darij Grinberg to Amarpreet Rattan, Darij Grinberg |
The 'descents' and 'major_index' methods of a Tableau return what are more properly known as 'i_descents' and the 'i_maj' statistic. These should be renamed accordingly, and the proper statistics put in their place. See, eg., Richard Stanley--Enumerative Combinatorics, Vol. 2 for a reference to the usual definition.
EDIT by Darij:
Apply:
Depends on #8392
CC: @darijgr @sagetrac-sage-combinat @anneschilling @tscrim
Component: combinatorics
Keywords: combinat, tableaux, days49
Author: Amarpreet Rattan, Darij Grinberg
Reviewer: Jason Bandlow, Travis Scrimshaw
Merged: sage-5.12.beta0
Issue created by migration from https://trac.sagemath.org/ticket/7983
The text was updated successfully, but these errors were encountered: