def PatternOptimizer(p1, p2, ign=False): return OpKeyOptimizer(PatternSub(p1, p2), ignore_newtrees=ign)
def OpSubOptimizer(op1, op2): return OpKeyOptimizer(OpSub(op1, op2))