reserve x for set;
reserve a,b,c,d for ExtReal;

theorem
  max(a,b) = a or max(a,b) = b by Def9;
