X = Orthogonal_Grassmannian( 2 , 11 )
n = X.Cartan_Degree()
print( X )
print()
assert X.Is_Adjoint() , \
'The homogeneous variety X is not adjoint.'
fw = X.Basis('fw')
Rho = sum(fw.values())
r = (X.Dimension()-1)/2
print( 'We have '+str(X.Dimension())+' = dim X = 2*r+1 for r='+str(r)+'.' )
print()
i = 3
print( 'Decompose H^0( G/P , wedge^'+str(i)+' T_{G/P} ):' )
TotalCounter = 0
Restiction = ''
if i <= r :
for p in [ 0 .. floor(i/2) ] :
print( 'Konstant´s decomposition for i='+str(i-2*p)+' and j='+str(p)+':' )
Counter = 0
for Counter , Weight in enumerate( X.Kostant_Space(i-2*p,p,Restiction) , start=1 ) :
TotalCounter += 1
if X.Is_Regular( Weight+Rho ) : Regular = bcolors.OKGREEN+'regular'+bcolors.ENDC
else : Regular = bcolors.FAIL+'singular'+bcolors.ENDC
print( 3*' ' , str(TotalCounter)+')' , 'Weight '+bcolors.OKBLUE+str(Weight)+bcolors.ENDC+' and its sum with rho is '+Regular+'.' )
if Counter == 0 : print( 3*' ' , 'None.' )
for p in [ 0 .. floor(i/2-1/2) ] :
print( 'Konstant´s decomposition for i='+str(i-2*p-1)+' and j='+str(p+1)+':' )
Counter = 0
for Counter , Weight in enumerate( X.Kostant_Space(i-2*p-1,p+1,Restiction) , start=1 ) :
TotalCounter += 1
if X.Is_Regular( Weight+Rho ) : Regular = bcolors.OKGREEN+'regular'+bcolors.ENDC
else : Regular = bcolors.WARNING+'singular'+bcolors.ENDC
print( 3*' ' , str(TotalCounter)+')' , 'Weight '+bcolors.OKBLUE+str(Weight)+bcolors.ENDC+' and its sum with rho is '+Regular+'.' )
if Counter == 0 : print( 3*' ' , 'None.' )
else :
for p in [ 0 .. r-ceil(i/2) ] :
print( 'Konstant´s decomposition for i='+str(i+1+2*p)+' and j='+str(-p-1)+':' )
Counter = 0
for Counter , Weight in enumerate( X.Kostant_Space(i+1+2*p,-p-1,Restiction) , start=1 ) :
TotalCounter += 1
if X.Is_Regular( Weight+Rho ) : Regular = bcolors.OKGREEN+'regular'+bcolors.ENDC
else : Regular = bcolors.WARNING+'singular'+bcolors.ENDC
print( 3*' ' , str(TotalCounter)+')' , 'Weight '+bcolors.OKBLUE+str(Weight)+bcolors.ENDC+' and its sum with rho is '+Regular+'.' )
if Counter == 0 : print( 3*' ' , 'None.' )
for p in [ 0 .. r-ceil(i/2-1/2) ] :
print( 'Konstant´s decomposition for i='+str(i+2*p)+' and j='+str(-p-2)+':' )
Counter = 0
for Counter , Weight in enumerate( X.Kostant_Space(i+2*p,-p-2,Restiction) , start=1 ) :
TotalCounter += 1
if X.Is_Regular( Weight+Rho ) : Regular = bcolors.OKGREEN+'regular'+bcolors.ENDC
else : Regular = bcolors.WARNING+'singular'+bcolors.ENDC
print( 3*' ' , str(TotalCounter)+')' , 'Weight '+bcolors.OKBLUE+str(Weight)+bcolors.ENDC+' and its sum with rho is '+Regular+'.' )
if Counter == 0 : print( 3*' ' , 'None.' )