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

Change DecomposeTensorProduct to ensure it produces a *sorted* list of highest weights, and document this #5158

Merged
merged 1 commit into from
Oct 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/lierep.gd
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ DeclareOperation( "DominantCharacter", [ IsRootSystem, IsList ] );
## with highest weight <M>w_i</M> for <M>i = 1, 2</M>.
## Let <M>W = V_1 \otimes V_2</M>.
## Then in general <M>W</M> is a reducible <A>L</A>-module. Now this function
## returns a list of two lists. The first of these is the list of highest
## returns a list of two lists. The first of these is the sorted list of highest
## weights of the irreducible modules occurring in the decomposition of
## <M>W</M> as a direct sum of irreducible modules. The second list contains
## the multiplicities of these weights (i.e., the number of copies of
Expand Down Expand Up @@ -587,8 +587,8 @@ DeclareOperation( "DecomposeTensorProduct", [ IsLieAlgebra, IsList, IsList ] );
## [ [ [ 1, 1, 0, 0 ], [ 2, 0, 0, 0 ], [ 0, 0, 1, 0 ], [ 0, 1, 0, 0 ],
## [ 1, 0, 0, 0 ], [ 0, 0, 0, 0 ] ], [ 1, 1, 4, 6, 14, 21 ] ]
## gap> DecomposeTensorProduct( L, [ 1, 0, 0, 0 ], [ 0, 0, 1, 0 ] );
## [ [ [ 1, 0, 1, 0 ], [ 1, 0, 0, 0 ], [ 0, 0, 0, 1 ], [ 0, 1, 0, 0 ],
## [ 2, 0, 0, 0 ], [ 0, 0, 1, 0 ], [ 1, 1, 0, 0 ] ],
## [ [ [ 0, 0, 0, 1 ], [ 0, 0, 1, 0 ], [ 0, 1, 0, 0 ], [ 1, 0, 0, 0 ],
## [ 1, 0, 1, 0 ], [ 1, 1, 0, 0 ], [ 2, 0, 0, 0 ] ],
## [ 1, 1, 1, 1, 1, 1, 1 ] ]
## gap> DimensionOfHighestWeightModule( L, [ 1, 2, 3, 4 ] );
## 79316832731136
Expand Down
8 changes: 4 additions & 4 deletions lib/lierep.gi
Original file line number Diff line number Diff line change
Expand Up @@ -1306,10 +1306,10 @@ InstallMethod( DecomposeTensorProduct,

nu:= mu[1]-rho;
mult:= ch1[2][i]*( (-1)^Length(mu[2]) );
p:= Position( wts, nu );
if p = fail then
Add( wts, nu );
Add( mlts, mult );
p:= PositionSorted( wts, nu );
if not IsBound( wts[p] ) or wts[p] <> nu then
Add( wts, nu, p );
Add( mlts, mult, p );
else
mlts[p]:= mlts[p]+mult;
if mlts[p] = 0 then
Expand Down
29 changes: 29 additions & 0 deletions tst/testinstall/algsc.tst
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#@local T0,T1,T2,T3,a,b,c,coeff,der,e,fam,g,gens,i,id,j,k,l1,l2,l3,lcs,orb
#@local TestMonomialUseLattice_Orig,permgrp,ps,q,s,s1,s2,s3,sc,t,theta
#@local U,ucs,v,vecs,vectors,w,z,A,V,W
#@local L,l
gap> START_TEST("algsc.tst");

#############################################################################
Expand Down Expand Up @@ -218,6 +219,34 @@ gap> LieCentralizer( l1, ps );
gap> LieNormalizer( l1, ps );
<Lie algebra of dimension 4 over Rationals>

# Test added for DecomposeTensorProduct
gap> L := SimpleLieAlgebra( "A", 3, Rationals );;
gap> v := [1,3,1];;
gap> w := [4,1,4];;
gap> l := DecomposeTensorProduct( L, v, w );
[ [ [ 0, 0, 8 ], [ 0, 1, 6 ], [ 0, 2, 4 ], [ 0, 2, 8 ], [ 0, 3, 2 ],
[ 0, 3, 6 ], [ 0, 4, 0 ], [ 0, 4, 4 ], [ 0, 5, 2 ], [ 0, 6, 0 ],
[ 1, 0, 5 ], [ 1, 0, 9 ], [ 1, 1, 3 ], [ 1, 1, 7 ], [ 1, 2, 1 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