import proveit
theory = proveit.Theory() # the theorem's theory
from proveit import x, y, defaults
from proveit.numbers.ordering import max_def_bin
%proving max_x_x_is_x
defaults.assumptions = max_x_x_is_x.conditions
max_def_bin
max_def_bin_inst = max_def_bin.instantiate({x: x, y: x})
The rhs of the max_def_bin_inst above cannot be simplified until we explicitly establish that the second condition is False.
from proveit.numbers.ordering import not_less_from_less_eq
not_less_from_less_eq
not_less_from_less_eq.instantiate({x: x, y: x})
Now we can simplify the Max(x, x) definition in max_def_bin_inst:
max_def_bin_inst.inner_expr().rhs.simplify()
%qed