def METHOD_NAME(*rules, objective=identity):
    """Select result of rules that minimizes objective.
    Examples
    ========
    >>> from diofant.core.strategies import minimize
    >>> rl = minimize(lambda x: x + 1, lambda x: x - 1)
    >>> rl(4)
    3
    """
    def minrule(expr):
        return min((rule(expr) for rule in rules), key=objective)
    return minrule