I have been trying to use incidence algebras, but immediately stumbled on a problem: how to enter elements when the elements of the underlying posets are complicated?
In the example below, I tried a cumbersome hack to enter some elements. It seemingly works, but these elements are not treated equaly as for instance the .an_element()
R = posets.YoungDiagramPoset([2,2]).incidence_algebra(QQ)
A1 = R.product_on_basis((1,1),(1,1))
A2 = R.product_on_basis((0,0),(0,0))
A3 = 3*A1 + 7*A2
ane = R.an_element()
print(A1,A1.parent())
print(ane,ane.parent())
print(ane.to_matrix())
print(A1.to_matrix())
The last statement gives an error "ValueError: tuple.index(x): x not in tuple" showing that my handcrafted elements are not full citizens in R. How am I supposed to enter my elements?