let r be real number ; :: thesis: for f, g being ext-real number st r + f = r + g holds
f = g

let f, g be ext-real number ; :: thesis: ( r + f = r + g implies f = g )
assume A1: r + f = r + g ; :: thesis: f = g
per cases ( f in REAL or f = +infty or f = -infty ) by XXREAL_0:14;
suppose A2: f in REAL ; :: thesis: f = g
then A3: ex c, d being complex number st
( r = c & g = d & r + g = c + d ) by Def2;
ex a, b being complex number st
( r = a & f = b & r + f = a + b ) by A2, Def2;
hence f = g by A1, A3; :: thesis: verum
end;
suppose A4: f = +infty ; :: thesis: f = g
then r + f = +infty by Def2;
hence f = g by A1, A4, Lm8; :: thesis: verum
end;
suppose A5: f = -infty ; :: thesis: f = g
then r + f = -infty by Def2;
hence f = g by A1, A5, Lm9; :: thesis: verum
end;
end;