First time here? Check out the FAQ!
answered 2021-08-18 22:25:37 +0100
Change function p to:
p
def p(*t): t = min( (t[1],t[0],t[3],t[2]), t ) return SR.var(('p' + '_{}'*len(t)).format(*[str(i) for i in t]))
which will use the symmetry and use lexicographically smallest indices.