|   | 1 |  initial version  | 
Change function p to:
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.
 Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
 
                
                Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.