theorem Th3:
  j <= i implies max(0,i-j) = i-j
proof
  assume j <= i;
  then j-j <= i-j by XREAL_1:9;
  hence thesis by XXREAL_0:def 10;
end;
