(c, ring)
return (lbp_key(lbp(c[0], ring.zero, Num(c[2]))), lbp_key(lbp(c[3], ring.zero, Num(c[5]))))
Key for comparing critical pairs.
Key for comparing critical pairs.
Key for comparing critical pairs .
def cp_key(c, ring):
    """
    Key for comparing critical pairs.
    """
    return (lbp_key(lbp(c[0], ring.zero, Num(c[2]))), lbp_key(lbp(c[3], ring.zero, Num(c[5]))))
def cp_key ( c , ring ) : return ( lbp_key ( lbp ( c [ 0 ] , ring . zero , Num ( c [ 2 ] ) ) ) , lbp_key ( lbp ( c [ 3 ] , ring . zero , Num ( c [ 5 ] ) ) ) )