theorem Th47:
  f is A-measurable & A c= dom f implies max-f is A-measurable
proof
  assume that
A1: f is A-measurable and
A2: A c= dom f;
  R_EAL f is A-measurable by A1;
  then max-(R_EAL f) is A-measurable by A2,MESFUNC2:26;
  then R_EAL(max-f) is A-measurable by Th30;
  hence thesis;
end;
