[sage-combinat-devel] Gelfand-Zetlin subalgebras of SymmetricGroupAlgebras

2012-03-29 Thread Dima Pasechnik
Hi, I need to do a bit of linear algebra in Gelfand-Zetlin subalgebra of SymmetricGroupAlgebra. While its multiplicative generators, a.k.a Jucys-Murphy elements, are available (e.g. SymmetricGroupAlgebra(QQ,3).QS3.jucys_murphy(3)) is there a way to get a basis of this subalgebra? I guess it might

Re: [sage-combinat-devel] problem with inversions for Weyl group in 5.0 beta8

2012-03-29 Thread mshimo
Christian and Nicolas, I pushed trac_12774-coxeter-ms.patch. I moved it way up the queue and had no problems applying the rest of the queue. I temporarily broke some rules for putting the patch that high on the queue. E.g., I have a trac ticket but haven't put a version of the patch on trac just

Re: [sage-combinat-devel] problem with inversions for Weyl group in 5.0 beta8

2012-03-29 Thread mshimo
Christian and Nicolas, Is the following a decent way to determine whether "element" is an element of a Weyl group of a given Cartan type? hasattr(element, "domain") and hasattr(element.domain(), "cartan_type") and element.domain().cartan_type() == cartan_type E.g. is this likely to change or are

Re: [sage-combinat-devel] problem with inversions for Weyl group in 5.0 beta8

2012-03-29 Thread mshimo
Arrgh, my previous question obviously didn't make sense. I need to call the Coxeter group method something different like reflection_inversions (and the solution becomes trivial) or someone needs to tell me how to tell python not to run over the Coxeter group method (so the method is actually avai

Re: [sage-combinat-devel] problem with inversions for Weyl group in 5.0 beta8

2012-03-29 Thread Anne Schilling
Hi Mark, If I understand correctly, you can you getattr, see getattr(object, name[, default]) -> value Get a named attribute from an object; getattr(x, 'y') is equivalent to x.y. When a default argument is given, it is returned when the attribute doesn't exist; without it, an exc

Re: [sage-combinat-devel] problem with inversions for Weyl group in 5.0 beta8

2012-03-29 Thread mshimo
Nicolas, But I want the Weyl group version to use the output of the Coxeter version, which will be cached, and then make the (co)root variants if needed. How do I do that syntactically without running over the Coxeter version? --Mark >> Since WeylGroups has CoxeterGroups as a super category, to

Re: [sage-combinat-devel] problem with inversions for Weyl group in 5.0 beta8

2012-03-29 Thread Nicolas M. Thiery
On Thu, Mar 29, 2012 at 09:03:59PM +0200, Christian Stump wrote: > Since WeylGroups has CoxeterGroups as a super category, to me it seems > be perfectly reasonable to name both methods "inversions", The one > from WeylGroups then overwrite the one from CoxeterGroups Indeed. As for usual inheritan

Re: [sage-combinat-devel] coxeter groups category

2012-03-29 Thread Nicolas M. Thiery
On Thu, Mar 29, 2012 at 07:43:08PM +0200, Christian Stump wrote: > Just push it, if that doesn't create some conflict. Then I can see > what you mean above. +1 Nicolas -- Nicolas M. Thiéry "Isil" http://Nicolas.Thiery.name/ -- You received this message because yo

Re: [sage-combinat-devel] Re: subclassing polynomial rings

2012-03-29 Thread Nicolas M. Thiery
On Thu, Mar 29, 2012 at 12:09:55PM -0400, msh...@math.vt.edu wrote: > How does one make the subclass declaration dynamically? See sage.structure.dynamic_class.dynamic_class. You can do things like changing the class of the object under construction: def __init__(self): ...

Re: [sage-combinat-devel] problem with inversions for Weyl group in 5.0 beta8

2012-03-29 Thread mshimo
Christian, > Since WeylGroups has CoxeterGroups as a super category, to me it seems > be perfectly reasonable to name both methods "inversions", The one > from WeylGroups then overwrite the one from CoxeterGroups (or does it > happen to be the other way round, Nicolas?). To avoid confusion, maybe

Re: [sage-combinat-devel] problem with inversions for Weyl group in 5.0 beta8

2012-03-29 Thread Christian Stump
> Indeed, in trac_12774-coxeter-ms.patch, there is already a Coxeter group > element method which returns inversions in reflection form: > > sage: W = WeylGroup(['A',2],prefix="s") > sage: w = W.from_reduced_word([1,2,1]) > sage: w.length_decreasing_reflections_right() > [s1, s1*s2*s1, s2] > > If e

Re: [sage-combinat-devel] problem with inversions for Weyl group in 5.0 beta8

2012-03-29 Thread mshimo
Hi all, > Jean Michel wrote: > >> The list of inversions, in my view, should preferably be a list >> of reflections (which does not need the existence of roots and makes >> sense for abstract Coxeter groups). Indeed, in trac_12774-coxeter-ms.patch, there is already a Coxeter group elemen

Re: [sage-combinat-devel] coxeter groups category

2012-03-29 Thread Christian Stump
> I put my one rejected text hunk in a slightly different place > (not quite at the very bottom) I don't understand what you mean -- into another patch below in the queue or somewhere else in the py file? > May I push my changes to the sage-combinat server? > I will wait until I have an affirmati

Re: [sage-combinat-devel] problem with inversions for Weyl group in 5.0 beta8

2012-03-29 Thread Christian Stump
> In other words, something like this: > > sage: w.inversions() > [alpha[1], alpha[1] + alpha[2], alpha[2]] > > sage: w.inversions(reflections=True) > [s1,s1*s2*s1,s2] +1 what was again the point of having a list rather than a set? Christian -- You received this message because you are subscri

Re: [sage-combinat-devel] problem with inversions for Weyl group in 5.0 beta8

2012-03-29 Thread Daniel Bump
> Frederic, > > I pushed a patch (coxeter_ms.patch) to the sage-combinat server. > > Now you should get > > sage: W=WeylGroup(['A',2]) > sage: w=W.from_reduced_word([1,2,1]) > sage: w.inversions() > [alpha[1], alpha[1] + alpha[2], alpha[2]] > > which is much nicer. > > --Mark Jean Michel wro

Re: [sage-combinat-devel] Re: subclassing polynomial rings

2012-03-29 Thread mshimo
Simon, > class Foo(Bar): > def __init__(self, *args): > > Bar.__init__(self, *args) Duh. I forgot to explicitly declare Foo as a subclass of Bar. I have little object-oriented programming experience, having wasted my misspent youth on innumerable unreadable one-line Mathematic

[sage-combinat-devel] Re: subclassing polynomial rings

2012-03-29 Thread Simon King
Hi! On 2012-03-29, msh...@math.vt.edu wrote: > More seriously for me at the moment, > there is type enforcement going on somewhere. > If __init__ is called with a custom class, > failure occurs because the actual class instance is not received. I am puzzled. How do you attempt to inherit from t

Re: [sage-combinat-devel] coxeter groups category

2012-03-29 Thread mshimo
Christian and Nicolas, I put my one rejected text hunk in a slightly different place (not quite at the very bottom) and the rest of the queue applies! Zero doctest failures at my patch. Only a few when the entire queue is applied, and I saw all of these same failures when my patch was the last to

[sage-combinat-devel] Re: bug in LaurentPolynomialRing ?

2012-03-29 Thread Simon King
Hi! If someone is interested: I rebased my patch from #8972 relative to sage-5.0.beta10. It fixes various bugs, tends to improve timings, and needs review (and still needs the test suite to be run...). Cheers, Simon -- You received this message because you are subscribed to the Google Groups

Re: [sage-combinat-devel] subclassing polynomial rings

2012-03-29 Thread mshimo
Nicolas, > Instead, we need a mantra for requesting what the class is for > (uni/multi)variate polynomial rings in over ... > > As a temporary measure, one could do: > > def parent_class_of_multivariate_polynomial_ring(K): > return type(PolynomialRing(K,['x','y'])) There are additional

Re: [sage-combinat-devel] Re: coxeter groups category

2012-03-29 Thread Nicolas M. Thiery
On Thu, Mar 29, 2012 at 07:30:14AM +, Simon King wrote: > > «change the status of the ticket to *needs review* and change the milestone > > to sage-duplictate/invalid/wontfix. > > You should also comment on the ticket, explaining why it should be closed.» > > Really "needs review"?? I was tol

[sage-combinat-devel] Re: bug in LaurentPolynomialRing ?

2012-03-29 Thread Simon King
Hi all! On 2012-03-28, Nicolas M. Thiery wrote: > On Wed, Mar 28, 2012 at 10:04:44AM -0700, Mark Shimozono wrote: >> The fraction field of a Laurent polynomial ring S can't tell if one of >> its elements is in S. I recall that about two years ago I had opened a ticket on inversion and fraction f

[sage-combinat-devel] Re: coxeter groups category

2012-03-29 Thread Simon King
Hi Nicolas! On 2012-03-29, Nicolas M. Thiery wrote: > On Thu, Mar 29, 2012 at 12:01:26AM -0400, msh...@math.vt.edu wrote: >> I added the comment on #11122 but don't know how to change its >> status to "already done" or whatever it should be. > > From: > http://www.sagemath.org/doc/developer/trac

Re: [sage-combinat-devel] coxeter groups category

2012-03-29 Thread Nicolas M. Thiery
On Thu, Mar 29, 2012 at 12:01:26AM -0400, msh...@math.vt.edu wrote: > I added the comment on #11122 but don't know how to change its > status to "already done" or whatever it should be. From: http://www.sagemath.org/doc/developer/trac.html#reasons-to-invalidate-tickets «change the status of the