00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051 #include "cartanset.h"
00052 #include "complexredgp.h"
00053 #include "setutils.h"
00054 #include <set>
00055
00056 #include <cassert>
00057 #include "rootdata.h"
00058 #include "tags.h"
00059
00060
00061 namespace atlas {
00062
00063 namespace cartanset{
00064
00065 void crossPart(weyl::WeylWord&, const weyl::WeylWord&,
00066 const weyl::WeylGroup&);
00067
00068 void cayleyPart(rootdata::RootList&, const weyl::WeylWord&,
00069 const rootdata::RootDatum&, const weyl::WeylGroup&);
00070
00071 void crossTransform(rootdata::RootList&,
00072 const weyl::WeylWord&, const rootdata::RootDatum&);
00073
00074 unsigned long makeRepresentative(const gradings::Grading&,
00075 const rootdata::RootList&,
00076 const cartanclass::Fiber&);
00077
00078 void transformGrading(gradings::Grading&,
00079 const rootdata::RootList&,
00080 const rootdata::RootList&,
00081 const rootdata::RootDatum&);
00082
00083 bool isImaginary(const latticetypes::LatticeElt& v,
00084 const weyl::TwistedInvolution& tw,
00085 const weyl::WeylGroup&,
00086 const rootdata::RootDatum&,
00087 const latticetypes::LatticeMatrix& distinguished);
00088
00089 bool checkDecomposition(const weyl::TwistedInvolution& ti,
00090 const weyl::WeylWord& cross,
00091 const rootdata::RootList& cayley,
00092 const weyl::WeylGroup&,
00093 const rootdata::RootDatum&,
00094 const latticetypes::LatticeMatrix& distinguished);
00095
00096 const size_t UndefMostSplit = ~0ul;
00097 const realform::RealForm UndefRealForm = ~0ul;
00098
00099 }
00100
00101
00102
00103
00104
00105
00106
00107 namespace cartanset {
00108
00109
00110 CartanClassSet::CartanClassSet
00111 (const complexredgp::ComplexReductiveGroup& parent,
00112 const latticetypes::LatticeMatrix& q)
00113 : d_parent(parent)
00114
00115
00116 , d_cartan(1,new cartanclass::CartanClass(parent.rootDatum(),q))
00117
00118
00119 , d_twistedInvolution(1,TwistedInvolution(weyl::WeylElt()))
00120 , d_ordering(1)
00121
00122
00123 , d_fundamental(d_cartan[0]->fiber())
00124
00125
00126
00127
00128
00129 , d_dualFundamental(rootdata::RootDatum(parent.rootDatum(),tags::DualTag())
00130 ,dualBasedInvolution(q,parent.rootDatum()))
00131
00132
00133 , d_realFormLabels(1,realform::RealFormList(d_fundamental.numRealForms()))
00134
00135 , d_dualRealFormLabels()
00136
00137
00138 , d_support(numRealForms(),bitmap::BitMap(1))
00139 , d_dualSupport(numDualRealForms(),bitmap::BitMap(1))
00140
00141 , d_status(numRealForms())
00142 , d_mostSplit(numRealForms(),UndefMostSplit)
00143 {
00144
00145
00146 for (size_t i=0; i<numRealForms(); ++i)
00147 d_realFormLabels[0][i]=i;
00148
00149
00150 correlateDualForms(rootdata::RootDatum(parent.rootDatum(),tags::DualTag())
00151 ,weyl::WeylGroup(parent.weylGroup(),tags::DualTag()));
00152
00153
00154 updateSupports(0);
00155
00156
00157
00158 updateStatus(0);
00159 }
00160
00161
00162
00163
00164
00165 CartanClassSet::~CartanClassSet()
00166 {
00167 for (size_t j = 0; j < d_cartan.size(); ++j)
00168 delete d_cartan[j];
00169 }
00170
00171
00172
00173
00174
00175
00176
00177
00178
00179
00180
00181
00182
00183
00184
00185
00186
00187
00188
00189
00190
00191
00192
00193
00194
00195 void CartanClassSet::extend(realform::RealForm rf)
00196 {
00197 if (d_status.isMember(rf))
00198 return;
00199
00200 size_t prev_Cartans=d_cartan.size();
00201 bitmap::BitMap prev_status=d_status;
00202
00203 try
00204 {
00205 const rootdata::RootDatum dualRootDatum(rootDatum(),tags::DualTag());
00206 const weyl::WeylGroup dualWeylGroup(weylGroup(),tags::DualTag());
00207
00208 std::set<poset::Link> lks;
00209
00210
00211 for (size_t j = 0; j < d_cartan.size(); ++j)
00212 {
00213 if (not isDefined(rf,j))
00214 continue;
00215
00216 rootdata::RootSet rs=noncompactPosRootSet(rf,j);
00217
00218 for (rootdata::RootSet::iterator it = rs.begin(); it(); ++it)
00219 {
00220
00221
00222 TwistedInvolution tw=reflection(*it,d_twistedInvolution[j]);
00223
00224
00225
00226
00227 canonicalize(tw);
00228 size_t k = setutils::find_index(d_twistedInvolution,tw);
00229 lks.insert(std::make_pair(j,k));
00230 if (k == d_twistedInvolution.size())
00231 {
00232 d_twistedInvolution.push_back(tw);
00233 addCartan(tw);
00234 correlateForms();
00235 correlateDualForms(dualRootDatum,dualWeylGroup);
00236 updateSupports(k);
00237 }
00238 }
00239 }
00240
00241
00242 std::vector<poset::Link> lk(lks.begin(),lks.end());
00243 d_ordering.resize(d_cartan.size());
00244 d_ordering.extend(lk);
00245
00246
00247 updateStatus(prev_Cartans);
00248
00249 }
00250
00251 catch (...)
00252 {
00253 d_cartan.resize(prev_Cartans);
00254 d_twistedInvolution.resize(prev_Cartans);
00255 d_ordering.resize(prev_Cartans);
00256 d_realFormLabels.resize(prev_Cartans);
00257 d_dualRealFormLabels.resize(prev_Cartans);
00258
00259 for (size_t i=0; i<numRealForms(); ++i)
00260 {
00261 d_support[i].set_capacity(prev_Cartans);
00262 d_dualSupport[i].set_capacity(prev_Cartans);
00263 }
00264 d_status.swap(prev_status);
00265 prev_status.andnot(d_status);
00266 for (bitmap::BitMap::iterator it=prev_status.begin(); it(); ++it)
00267 d_mostSplit[*it]=UndefMostSplit;
00268 throw;
00269 }
00270 }
00271
00272
00273
00274
00275
00276
00277
00278
00279
00280
00281 std::vector<weyl::WeylEltList> CartanClassSet::expand() const
00282 {
00283 const weyl::WeylGroup& W = weylGroup();
00284 std::vector<weyl::WeylEltList> result(d_cartan.size());
00285
00286 for (size_t j = 0; j < d_cartan.size(); ++j) {
00287 W.twistedConjugacyClass(result[j],d_twistedInvolution[j]);
00288 }
00289
00290 return result;
00291 }
00292
00293
00294
00295
00296
00297
00298 void CartanClassSet::addCartan(rootdata::RootNbr rn, size_t j)
00299 {
00300 const rootdata::RootDatum& rd = rootDatum();
00301 latticetypes::LatticeMatrix q;
00302 rd.rootReflection(q,rn);
00303 q *= cartan(j).involution();
00304 d_cartan.push_back(new cartanclass::CartanClass(rd,q));
00305 }
00306
00307
00308 }
00309
00310
00311
00312
00313
00314
00315
00316 namespace cartanset {
00317
00318
00319
00320
00321
00322
00323
00324
00325
00326
00327
00328
00329 TwistedInvolution
00330 CartanClassSet::reflection(rootdata::RootNbr rn,const TwistedInvolution& tw)
00331 const
00332 {
00333 const weyl::WeylGroup& W = weylGroup();
00334
00335 weyl::WeylWord rw=rootDatum().reflectionWord(rn);
00336
00337 TwistedInvolution result=tw;
00338 for (size_t i=rw.size(); i-->0; )
00339 W.leftMult(result,rw[i]);
00340
00341 return result;
00342 }
00343
00344 rootdata::RootSet CartanClassSet::noncompactPosRootSet
00345 (realform::RealForm rf, size_t j) const
00346
00347
00348
00349
00350 {
00351 const cartanclass::Fiber& f = cartan(j).fiber();
00352 unsigned long x = CartanClassSet::representative(rf,j);
00353
00354 rootdata::RootSet result=f.noncompactRoots(x);
00355 result &= rootDatum().posRootSet();
00356 return result;
00357 }
00358
00359
00360
00361 void CartanClassSet::correlateForms()
00362
00363
00364
00365
00366
00367
00368
00369
00370
00371
00372
00373
00374
00375
00376
00377
00378
00379
00380 {
00381 using namespace cartanclass;
00382 using namespace gradings;
00383 using namespace partition;
00384 using namespace rootdata;
00385 using namespace weyl;
00386
00387 const RootDatum& rd = rootDatum();
00388
00389 const WeylGroup& W = weylGroup();
00390
00391 const Fiber& fundf = fundamental();
00392 const Fiber& f = d_cartan.back()->fiber();
00393
00394 const TwistedInvolution& ti = d_twistedInvolution.back();
00395
00396
00397 RootList so;
00398 WeylWord ww;
00399 cayley_and_cross_part(so,ww,ti,rd,W);
00400
00401 assert(checkDecomposition(ti,ww,so,W,rd,distinguished()));
00402
00403 const Partition& pi = f.weakReal();
00404 realform::RealFormList rfl(f.numRealForms());
00405
00406
00407 for (size_t j = 0; j < rfl.size(); ++j) {
00408 unsigned long y = pi.classRep(j);
00409 Grading gr=f.grading(y);
00410 RootList rl = f.simpleImaginary();
00411
00412 transformGrading(gr,rl,so,rd);
00413 for (size_t i = 0; i < so.size(); ++i)
00414 gr.set(rl.size()+i);
00415 copy(so.begin(),so.end(),back_inserter(rl));
00416 crossTransform(rl,ww,rd);
00417
00418
00419
00420 for (size_t i = 0; i < rl.size(); ++i)
00421 assert(fundf.imaginaryRootSet().isMember(rl[i]));
00422
00423 unsigned long x = makeRepresentative(gr,rl,fundf);
00424 realform::RealForm rf = fundf.weakReal()(x);
00425 rfl[j] = rf;
00426 }
00427
00428 d_realFormLabels.push_back(rfl);
00429 }
00430
00431 void CartanClassSet::correlateDualForms(const rootdata::RootDatum& rd,
00432 const weyl::WeylGroup& W)
00433
00434 {
00435 using namespace cartanclass;
00436 using namespace gradings;
00437 using namespace latticetypes;
00438 using namespace partition;
00439 using namespace rootdata;
00440 using namespace weyl;
00441
00442 const Fiber& fundf = dualFundamental();
00443 const Fiber& f = d_cartan.back()->dualFiber();
00444
00445
00446
00447 LatticeMatrix q = fundf.involution();
00448 q *= f.involution();
00449 WeylWord tiww=rd.word_of_inverse_matrix(q);
00450 TwistedInvolution ti(WeylElt(tiww,W));
00451
00452
00453 RootList so;
00454 WeylWord ww;
00455 cayley_and_cross_part(so,ww,ti,rd,W);
00456
00457 assert(checkDecomposition(ti,ww,so,W,rd,fundf.involution()));
00458
00459
00460 const Partition& pi = f.weakReal();
00461 realform::RealFormList rfl(f.numRealForms());
00462
00463
00464 for (size_t j = 0; j < rfl.size(); ++j) {
00465 unsigned long y = pi.classRep(j);
00466 Grading gr=f.grading(y);
00467 RootList rl = f.simpleImaginary();
00468 transformGrading(gr,rl,so,rd);
00469 for (size_t i = 0; i < so.size(); ++i)
00470 gr.set(rl.size()+i);
00471 copy(so.begin(),so.end(),back_inserter(rl));
00472 crossTransform(rl,ww,rd);
00473
00474
00475
00476
00477 for (size_t i = 0; i < rl.size(); ++i)
00478 assert(fundf.imaginaryRootSet().isMember(rl[i]));
00479
00480
00481 unsigned long x = makeRepresentative(gr,rl,fundf);
00482 realform::RealForm rf = fundf.weakReal()(x);
00483 rfl[j] = rf;
00484 }
00485
00486 d_dualRealFormLabels.push_back(rfl);
00487 }
00488
00489 void CartanClassSet::updateStatus(size_t prev)
00490
00491
00492
00493
00494
00495
00496
00497
00498
00499
00500
00501 {
00502 for (size_t j = prev; j<d_cartan.size(); ++j)
00503 {
00504
00505 const cartanclass::Fiber& f = cartan(j).fiber();
00506 const partition::Partition& pi = f.weakReal();
00507 const realform::RealFormList& rfl = realFormLabels(j);
00508
00509 for (unsigned long c = 0; c < pi.classCount(); ++c)
00510 {
00511 if (cartan(j).isMostSplit(c))
00512 {
00513 d_status.insert(rfl[c]);
00514 d_mostSplit[rfl[c]] = j;
00515
00516 }
00517 }
00518
00519 }
00520
00521 return;
00522 }
00523
00524 void CartanClassSet::updateSupports(size_t last)
00525
00526
00527
00528
00529
00530
00531
00532
00533
00534
00535
00536
00537 {
00538 using namespace bitmap;
00539
00540 for (size_t j = 0; j < d_support.size(); ++j)
00541 d_support[j].set_capacity(last+1);
00542
00543 for (size_t j = 0; j < d_dualSupport.size(); ++j)
00544 d_dualSupport[j].set_capacity(last+1);
00545
00546 const realform::RealFormList& rfl = realFormLabels(last);
00547
00548 for (size_t j = 0; j < rfl.size(); ++j) {
00549 d_support[rfl[j]].insert(last);
00550 }
00551
00552 const realform::RealFormList& drfl = dualRealFormLabels(last);
00553
00554 for (size_t j = 0; j < drfl.size(); ++j) {
00555 d_dualSupport[drfl[j]].insert(last);
00556 }
00557 }
00558
00559 void CartanClassSet::updateTwistedInvolutions
00560 (std::vector<weyl::WeylEltList>& known,
00561 const TwistedInvolution& tw)
00562
00563
00564
00565
00566
00567 {
00568
00569 d_twistedInvolution.push_back(tw);
00570
00571 weyl::WeylEltList wl; weylGroup().twistedConjugacyClass(wl,tw);
00572
00573 known.push_back(weyl::WeylEltList());
00574 known.back().swap(wl);
00575 }
00576
00577
00578
00579
00580
00581
00582
00583
00584
00585
00586
00587
00588
00589
00590
00591
00592 unsigned long CartanClassSet::fiberSize(realform::RealForm rf, size_t cn) const
00593 {
00594 cartanclass::adjoint_fiber_orbit wrf = real_form_part(rf,cn);
00595
00596
00597 const cartanclass::Fiber& f = cartan(cn).fiber();
00598 const cartanclass::StrongRealFormRep& srf = f.strongRepresentative(wrf);
00599
00600 assert(srf.second==f.central_square_class(wrf));
00601
00602 const partition::Partition& pi =f.strongReal(srf.second);
00603
00604
00605
00606
00607
00608 size_t c = pi(srf.first);
00609 return pi.classSize(c);
00610 }
00611
00612
00613
00614
00615
00616
00617
00618
00619
00620 unsigned long CartanClassSet::dualFiberSize(realform::RealForm rf, size_t cn)
00621 const
00622 {
00623 cartanclass::adjoint_fiber_orbit wrf = dual_real_form_part(rf,cn);
00624
00625 const cartanclass::Fiber& df = cartan(cn).dualFiber();
00626 const cartanclass::StrongRealFormRep& srf = df.strongRepresentative(wrf);
00627
00628 assert(srf.second==df.central_square_class(wrf));
00629
00630 const partition::Partition& pi = df.strongReal(srf.second);
00631
00632 size_t c = pi(srf.first);
00633
00634 return pi.classSize(c);
00635 }
00636
00637
00638
00639
00640
00641 size_t CartanClassSet::numInvolutions() const
00642 {
00643 size_t count = 0;
00644
00645 for (size_t cn = 0; cn < d_cartan.size(); ++cn)
00646 count += cartan(cn).orbitSize();
00647
00648 return count;
00649 }
00650
00651
00652
00653
00654
00655 size_t CartanClassSet::numInvolutions(const bitmap::BitMap& Cartan_classes)
00656 const
00657 {
00658 size_t count = 0;
00659
00660 for (bitmap::BitMap::iterator it=Cartan_classes.begin(); it(); ++it)
00661 count += cartan(*it).orbitSize();
00662
00663 return count;
00664 }
00665
00666
00667
00668
00669
00670
00671
00672
00673 unsigned long CartanClassSet::representative(realform::RealForm rf, size_t cn)
00674 const
00675 {
00676 return cartan(cn).fiber().weakReal().classRep(real_form_part(rf,cn));
00677 }
00678
00679
00680
00681
00682
00683
00684
00685
00686 unsigned long CartanClassSet::dualRepresentative(realform::RealForm rf,
00687 size_t cn) const
00688 {
00689 return
00690 cartan(cn).dualFiber().weakReal().classRep(dual_real_form_part(rf,cn));
00691 }
00692
00693
00694 latticetypes::LatticeMatrix
00695 CartanClassSet::involutionMatrix(const weyl::TwistedInvolution& tw)
00696 const
00697 {
00698 weyl::WeylWord ww;
00699 weylGroup().out(ww,tw.w());
00700 latticetypes::LatticeMatrix result;
00701 rootdata::toMatrix(result, ww,rootDatum());
00702 result *= distinguished();
00703 return result;
00704 }
00705
00706
00707
00708
00709 void CartanClassSet::twistedAct
00710 (const weyl::TwistedInvolution& tw,latticetypes::LatticeElt& v) const
00711 {
00712 distinguished().apply(v,v);
00713 weylGroup().act(rootDatum(),tw.w(),v);
00714 }
00715
00716 bool isImaginary (const latticetypes::LatticeElt& v,
00717 const weyl::TwistedInvolution& tw,
00718 const weyl::WeylGroup& W,
00719 const rootdata::RootDatum& rd,
00720 const latticetypes::LatticeMatrix& distinguished)
00721 {
00722 latticetypes::LatticeElt x=v;
00723 distinguished.apply(x,x);
00724 W.act(rd,tw.w(),x);
00725 return x==v;
00726 }
00727
00728
00729
00730
00731 latticetypes::LatticeElt
00732 CartanClassSet::posRealRootSum(const TwistedInvolution& tw) const
00733 {
00734 cartanclass::InvolutionData d(rootDatum(),involutionMatrix(tw));
00735 return rootDatum().twoRho(d.real_roots());
00736 }
00737
00738
00739
00740
00741 latticetypes::LatticeElt
00742 CartanClassSet::posImaginaryRootSum(const TwistedInvolution& tw) const
00743 {
00744 cartanclass::InvolutionData d(rootDatum(),involutionMatrix(tw));
00745 return rootDatum().twoRho(d.imaginary_roots());
00746 }
00747
00748
00749
00750
00751
00752
00753
00754 const weyl::WeylElt
00755 CartanClassSet::canonicalize(TwistedInvolution &sigma) const
00756 {
00757 const rootdata::RootDatum& rd=rootDatum();
00758
00759 weyl::WeylElt w;
00760 latticetypes::LatticeElt rrs=posRealRootSum(sigma);
00761
00762 {
00763 size_t i;
00764 do
00765 for (i=0; i<rd.semisimpleRank(); ++i)
00766 if (latticetypes::scalarProduct(rd.simpleCoroot(i),rrs) < 0 )
00767 {
00768 rd.reflection(rrs,rd.simpleRootNbr(i));
00769 weylGroup().twistedConjugate(sigma,i);
00770 weylGroup().mult(w,i);
00771 break;
00772 }
00773 while (i!=rd.semisimpleRank());
00774 }
00775
00776
00777
00778
00779
00780
00781
00782 latticetypes::LatticeElt irs=posImaginaryRootSum(sigma);
00783
00784 bitset::RankFlags simple_orth;
00785
00786 for (size_t i=0; i < rd.semisimpleRank(); ++i)
00787 if (latticetypes::scalarProduct(rd.simpleCoroot(i),rrs) == 0)
00788 simple_orth.set(i);
00789
00790 {
00791 bitset::RankFlags::iterator it;
00792 do
00793 for (it=simple_orth.begin(); it(); ++it)
00794 if (latticetypes::scalarProduct(rd.simpleCoroot(*it),irs) < 0)
00795 {
00796 rd.reflection(irs,rd.simpleRootNbr(*it));
00797 weylGroup().twistedConjugate(sigma,*it);
00798 weylGroup().mult(w,*it);
00799 break;
00800 }
00801 while (it());
00802 }
00803
00804
00805
00806
00807
00808
00809 for (bitset::RankFlags::iterator it=simple_orth.begin(); it(); ++it)
00810 if (latticetypes::scalarProduct(rd.simpleCoroot(*it),irs) > 0)
00811 simple_orth.reset(*it);
00812
00813
00814
00815
00816
00817
00818
00819
00820
00821
00822
00823
00824
00825
00826 {
00827 bitset::RankFlags::iterator it;
00828 do
00829 {
00830 latticetypes::LatticeElt x=rd.twoRho();
00831 twistedAct(sigma,x);
00832
00833 for (it=simple_orth.begin(); it(); ++it)
00834 if (latticetypes::scalarProduct(rd.simpleCoroot(*it),x) < 0)
00835 {
00836 weylGroup().twistedConjugate(sigma,*it);
00837 weylGroup().mult(w,*it);
00838 break;
00839 }
00840 }
00841 while (it());
00842 }
00843
00844 return w;
00845 }
00846
00847
00848
00849
00850
00851 size_t CartanClassSet::classNumber(TwistedInvolution sigma) const
00852 {
00853 canonicalize(sigma);
00854 return setutils::find_index(d_twistedInvolution,sigma);
00855 }
00856
00857
00858
00859
00860
00861
00862
00863
00864
00865
00866
00867 size_t CartanClassSet::cayley(size_t j, size_t i, weyl::WeylElt* conjugator)
00868 const
00869 {
00870 cartanclass::InvolutionData d
00871 (rootDatum(),involutionMatrix(d_twistedInvolution[j]));
00872 atlas::rootdata::RootNbr rn = d.imaginary_basis()[i];
00873
00874 weyl::WeylWord rw=rootDatum().reflectionWord(rn);
00875
00876 TwistedInvolution ti=d_twistedInvolution[j]; weylGroup().leftMult(ti,rw);
00877
00878 if (conjugator==NULL) canonicalize(ti);
00879 else *conjugator=canonicalize(ti);
00880
00881 return setutils::find_index(d_twistedInvolution,ti);
00882 }
00883
00884
00885
00886
00887
00888
00889
00890
00891 unsigned long
00892 CartanClassSet::KGB_size(realform::RealForm rf,
00893 const bitmap::BitMap& Cartan_classes) const
00894 {
00895 unsigned long result=0;
00896 for (bitmap::BitMap::iterator it = Cartan_classes.begin(); it(); ++it)
00897 result += cartan(*it).orbitSize() * fiberSize(rf,*it);
00898
00899 return result;
00900
00901 }
00902
00903 unsigned long
00904 CartanClassSet::block_size(realform::RealForm rf, realform::RealForm drf,
00905 const bitmap::BitMap& Cartan_classes) const
00906 {
00907 unsigned long result=0;
00908 for (bitmap::BitMap::iterator it = Cartan_classes.begin(); it(); ++it)
00909 {
00910 unsigned long cn=*it;
00911 result +=
00912 cartan(cn).orbitSize() * fiberSize(rf,cn) * dualFiberSize(drf,cn);
00913 }
00914
00915 return result;
00916
00917 }
00918
00919 }
00920
00921
00922
00923
00924
00925
00926
00927
00928
00929
00930 namespace cartanset {
00931
00932 unsigned long blockSize(realform::RealForm rf, realform::RealForm drf,
00933 const CartanClassSet& ccl)
00934
00935
00936
00937
00938
00939
00940
00941
00942
00943
00944 {
00945 bitmap::BitMap b = ccl.support(rf);
00946 b &= ccl.dualSupport(drf);
00947
00948 return ccl.block_size(rf,drf,b);
00949 }
00950
00951 unsigned long kgbSize(realform::RealForm rf, const CartanClassSet& ccl)
00952
00953
00954
00955
00956
00957
00958
00959
00960
00961
00962 {
00963 return ccl.KGB_size(rf,ccl.support(rf));
00964 }
00965
00966
00967
00968
00969
00970
00971
00972
00973
00974
00975
00976
00977
00978
00979
00980
00981
00982
00983 void cayley_and_cross_part(rootdata::RootList& so,
00984 weyl::WeylWord& cross,
00985 const weyl::TwistedInvolution& ti,
00986 const rootdata::RootDatum& rd,
00987 const weyl::WeylGroup& W)
00988 {
00989 std::vector<signed char> dec=W.involution_expr(ti);
00990 TwistedInvolution tw;
00991
00992 so.clear();
00993
00994 for (size_t j=dec.size(); j-->0; )
00995 if (dec[j]>=0)
00996 {
00997 weyl::Generator s=dec[j];
00998 so.push_back(rd.simpleRootNbr(s));
00999 W.leftMult(tw,s);
01000 }
01001 else
01002 {
01003 weyl::Generator s=~dec[j];
01004 cross.push_back(s);
01005 W.twistedConjugate(tw,s);
01006 for (size_t i = 0; i < so.size(); ++i)
01007 rd.rootReflect(so[i],s);
01008 }
01009
01010 assert(tw==ti);
01011 rootdata::strongOrthogonalize(so,rd);
01012 }
01013
01014 }
01015
01016
01017
01018
01019
01020
01021
01022 namespace cartanset {
01023
01024 void cayleyPart(rootdata::RootList& so,
01025 const weyl::WeylWord& wi,
01026 const rootdata::RootDatum& rd,
01027 const weyl::WeylGroup& W)
01028
01029
01030
01031
01032
01033
01034
01035
01036
01037
01038
01039
01040
01041
01042
01043
01044
01045
01046
01047 {
01048 using namespace rootdata;
01049 using namespace weyl;
01050
01051 TwistedInvolution tw;
01052 so.clear();
01053
01054 for (size_t j = 0; j < wi.size(); ++j) {
01055 Generator s = wi[j];
01056 if (W.hasTwistedCommutation(s,tw)) {
01057 so.push_back(rd.simpleRootNbr(s));
01058 W.leftMult(tw,s);
01059 }
01060 else {
01061 for (size_t i = 0; i < so.size(); ++i)
01062 so[i] = rd.rootPermutation(s)[so[i]];
01063 W.twistedConjugate(tw,s);
01064 }
01065 }
01066
01067 strongOrthogonalize(so,rd);
01068 }
01069
01070 void crossPart(weyl::WeylWord& ww, const weyl::WeylWord& wi,
01071 const weyl::WeylGroup& W)
01072
01073
01074
01075
01076
01077
01078
01079
01080
01081
01082 {
01083 using namespace weyl;
01084
01085 TwistedInvolution tw;
01086 ww.clear();
01087
01088 for (size_t j = 0; j < wi.size(); ++j) {
01089 Generator s = wi[j];
01090 if (W.hasTwistedCommutation(s,tw)) {
01091 W.leftMult(tw,s);
01092 } else {
01093 ww.push_back(s);
01094 W.twistedConjugate(tw,s);
01095 }
01096 }
01097 }
01098
01099 void crossTransform(rootdata::RootList& rl,
01100 const weyl::WeylWord& ww,
01101 const rootdata::RootDatum& rd)
01102
01103
01104
01105
01106
01107
01108
01109 {
01110
01111 for (size_t j = ww.size(); j-->0;) {
01112 setutils::Permutation a = rd.rootPermutation(ww[j]);
01113 for (size_t i = 0; i < rl.size(); ++i)
01114 rl[i] = a[rl[i]];
01115 }
01116 }
01117
01118 unsigned long makeRepresentative(const gradings::Grading& gr,
01119 const rootdata::RootList& rl,
01120 const cartanclass::Fiber& fundf)
01121
01122
01123
01124
01125
01126
01127
01128
01129
01130
01131 {
01132 using namespace bitset;
01133 using namespace cartanclass;
01134 using namespace latticetypes;
01135 using namespace gradings;
01136 using namespace rootdata;
01137
01138 RootSet brs =
01139 fundf.noncompactRoots(0);
01140 Grading bgr =
01141 restrictGrading(brs,rl);
01142 SmallBitVector bc(bgr,rl.size());
01143
01144
01145 SmallBitVector rhs(gr,rl.size());
01146 rhs += bc;
01147
01148
01149 SmallBitVectorList cl(fundf.adjointFiberRank(),bc);
01150 for (size_t j = 0; j < cl.size(); ++j) {
01151 Grading gr1 = restrictGrading(fundf.noncompactRoots(1 << j),rl);
01152 cl[j] += SmallBitVector(gr1,rl.size());
01153 }
01154
01155
01156 RankFlags x;
01157 firstSolution(x,cl,rhs);
01158
01159 return x.to_ulong();
01160 }
01161
01162 void transformGrading(gradings::Grading& gr,
01163 const rootdata::RootList& rl,
01164 const rootdata::RootList& so,
01165 const rootdata::RootDatum& rd)
01166
01167
01168
01169
01170
01171
01172
01173
01174
01175
01176
01177
01178
01179
01180
01181
01182
01183
01184
01185
01186
01187 {
01188 for (size_t i = 0; i < rl.size(); ++i)
01189 for (size_t j = 0; j < so.size(); ++j)
01190 if (rd.sumIsRoot(rl[i],so[j]))
01191 gr.flip(i);
01192 }
01193
01194
01195
01196
01197
01198
01199
01200
01201 bool checkDecomposition(const weyl::TwistedInvolution& ti,
01202 const weyl::WeylWord& ww,
01203 const rootdata::RootList& so,
01204 const weyl::WeylGroup& W,
01205 const rootdata::RootDatum& rd,
01206 const latticetypes::LatticeMatrix& q)
01207 {
01208 using namespace rootdata;
01209 using namespace weyl;
01210
01211 TwistedInvolution tw;
01212
01213
01214 for (size_t j = 0; j < ww.size(); ++j)
01215 W.twistedConjugate(tw,ww[j]);
01216
01217
01218 for (size_t j = 0; j < so.size(); ++j) {
01219 assert(isImaginary(rd.root(so[j]),tw,W,rd,q));
01220 W.leftMult(tw,rd.reflectionWord(so[j]));
01221 }
01222
01223 return tw == ti;
01224 }
01225
01226 }
01227 }