reserve x,y,z,w for ExtReal,
  r for Real;
reserve f,g for ExtReal;

theorem
  0 <= y & y < +infty implies z = z + y - y
proof
  assume 0 <= y & y < +infty;
  then y in REAL by XXREAL_0:14;
  hence thesis by Th22;
end;
