-
Notifications
You must be signed in to change notification settings - Fork 14
Description
I enter incidence algebras in QPA as in the following example that works fine:
L:=[ [ [ "'x1'", "'x2'", "'x3'", "'x4'", "'x5'", "'x6'", "'x7'", "'x8'", "'x9'", "'x10'", "'x11'" ],
[ [ "'x1'", "'x2'" ], [ "'x1'", "'x3'" ], [ "'x1'", "'x5'" ], [ "'x2'", "'x4'" ], [ "'x2'", "'x6'" ], [ "'x3'", "'x4'" ],
[ "'x3'", "'x8'" ], [ "'x4'", "'x7'" ], [ "'x5'", "'x6'" ], [ "'x5'", "'x8'" ], [ "'x6'", "'x7'" ], [ "'x6'", "'x9'" ],
[ "'x7'", "'x10'" ], [ "'x8'", "'x9'" ], [ "'x9'", "'x10'" ], [ "'x10'", "'x11'" ] ] ] ];Temp:=[];for i in L do Append(Temp,[[i,Poset(i[1],i[2])]]);od;Temp2:=[];for i in Temp do Append(Temp2,[[i[1],PosetAlgebra(GF(3),i[2])]]);od;A:=Temp2[1][2];
However, for certain strange posets the same method gives an error as in the following example:
L:=[ [ [ "'x1'", "'x2'", "'x3'", "'x4'", "'x5'", "'x6'", "'x7'", "'x8'", "'x9'", "'x10'", "'x11'" ],
[ [ "'x1'", "'x2'" ], [ "'x1'", "'x3'" ], [ "'x2'", "'x4'" ], [ "'x2'", "'x6'" ], [ "'x3'", "'x4'" ], [ "'x3'", "'x6'" ],
[ "'x4'", "'x5'" ], [ "'x4'", "'x7'" ], [ "'x5'", "'x8'" ], [ "'x5'", "'x9'" ], [ "'x6'", "'x7'" ], [ "'x6'", "'x9'" ],
[ "'x7'", "'x8'" ], [ "'x8'", "'x10'" ], [ "'x9'", "'x10'" ], [ "'x10'", "'x11'" ] ] ] ];Temp:=[];for i in L do Append(Temp,[[i,Poset(i[1],i[2])]]);od;Temp2:=[];for i in Temp do Append(Temp2,[[i[1],PosetAlgebra(GF(3),i[2])]]);od;A:=Temp2[1][2];