#
# super(f) applies the super-map to symmetric function f, assuming f is
# expressed in terms of the bases known to SF. The output is a symmetric
# function in the omega subalgebra involving q.i and p.j.
#
# Note: terms in f involving the special bases of QF (i.e., q, Q[], P[])
# are ignored. They do not get super-ized. (I suppose this is a bug.)
#
`QF/super`:=proc() local f,sp,j,mu,d;
  f:=args[1]; sp:=SF['varset'](f,{'e','h','s[]'});
  f:=subs({seq(cat('e',j)=cat('q',j),j=1..sp['e'])},f);
  f:=subs({seq(cat('h',j)=cat('q',j),j=1..sp['h'])},f);
  f:=subs({seq(s[op(mu)]=linalg['det'](SF['jt_matrix'](mu,[],'q')),
    mu=sp['s'])},f);
  f:=SF['top'](f); d:=SF['varset'](f,'p');
  subs({seq(cat('p',j)=(1-(-1)^j)*cat('p',j),j=1..d)},f);
end:
#
save `QF/super`, cat(HomeLib,`/QF/super.m`);
read cat(HomeLib,`/help/QF/super`);
quit;

