let x0 be Real; :: thesis: for S being RealNormSpace
for f1, f2 being PartFunc of REAL, the carrier of S st x0 in (dom f1) /\ (dom f2) & f1 is_continuous_in x0 & f2 is_continuous_in x0 holds
( f1 + f2 is_continuous_in x0 & f1 - f2 is_continuous_in x0 )

let S be RealNormSpace; :: thesis: for f1, f2 being PartFunc of REAL, the carrier of S st x0 in (dom f1) /\ (dom f2) & f1 is_continuous_in x0 & f2 is_continuous_in x0 holds
( f1 + f2 is_continuous_in x0 & f1 - f2 is_continuous_in x0 )

let f1, f2 be PartFunc of REAL, the carrier of S; :: thesis: ( x0 in (dom f1) /\ (dom f2) & f1 is_continuous_in x0 & f2 is_continuous_in x0 implies ( f1 + f2 is_continuous_in x0 & f1 - f2 is_continuous_in x0 ) )
assume A1: x0 in (dom f1) /\ (dom f2) ; :: thesis: ( not f1 is_continuous_in x0 or not f2 is_continuous_in x0 or ( f1 + f2 is_continuous_in x0 & f1 - f2 is_continuous_in x0 ) )
assume A2: ( f1 is_continuous_in x0 & f2 is_continuous_in x0 ) ; :: thesis: ( f1 + f2 is_continuous_in x0 & f1 - f2 is_continuous_in x0 )
A3: dom (f1 + f2) = (dom f1) /\ (dom f2) by VFUNCT_1:def 1;
A4: x0 in dom (f1 + f2) by A1, VFUNCT_1:def 1;
now :: thesis: for s1 being Real_Sequence st rng s1 c= dom (f1 + f2) & s1 is convergent & lim s1 = x0 holds
( (f1 + f2) /* s1 is convergent & (f1 + f2) /. x0 = lim ((f1 + f2) /* s1) )
let s1 be Real_Sequence; :: thesis: ( rng s1 c= dom (f1 + f2) & s1 is convergent & lim s1 = x0 implies ( (f1 + f2) /* s1 is convergent & (f1 + f2) /. x0 = lim ((f1 + f2) /* s1) ) )
assume that
A5: rng s1 c= dom (f1 + f2) and
A6: ( s1 is convergent & lim s1 = x0 ) ; :: thesis: ( (f1 + f2) /* s1 is convergent & (f1 + f2) /. x0 = lim ((f1 + f2) /* s1) )
A7: rng s1 c= (dom f1) /\ (dom f2) by A5, VFUNCT_1:def 1;
( dom (f1 + f2) c= dom f1 & dom (f1 + f2) c= dom f2 ) by A3, XBOOLE_1:17;
then A8: ( rng s1 c= dom f1 & rng s1 c= dom f2 ) by A5, XBOOLE_1:1;
then A9: ( f1 /* s1 is convergent & f2 /* s1 is convergent ) by A2, A6;
then (f1 /* s1) + (f2 /* s1) is convergent by NORMSP_1:19;
hence (f1 + f2) /* s1 is convergent by A7, Th2; :: thesis: (f1 + f2) /. x0 = lim ((f1 + f2) /* s1)
A10: ( f1 /. x0 = lim (f1 /* s1) & f2 /. x0 = lim (f2 /* s1) ) by A2, A6, A8;
thus (f1 + f2) /. x0 = (f1 /. x0) + (f2 /. x0) by A4, VFUNCT_1:def 1
.= lim ((f1 /* s1) + (f2 /* s1)) by A9, A10, NORMSP_1:25
.= lim ((f1 + f2) /* s1) by A7, Th2 ; :: thesis: verum
end;
hence f1 + f2 is_continuous_in x0 by A4; :: thesis: f1 - f2 is_continuous_in x0
A11: dom (f1 - f2) = (dom f1) /\ (dom f2) by VFUNCT_1:def 2;
A12: x0 in dom (f1 - f2) by A1, VFUNCT_1:def 2;
now :: thesis: for s1 being Real_Sequence st rng s1 c= dom (f1 - f2) & s1 is convergent & lim s1 = x0 holds
( (f1 - f2) /* s1 is convergent & (f1 - f2) /. x0 = lim ((f1 - f2) /* s1) )
let s1 be Real_Sequence; :: thesis: ( rng s1 c= dom (f1 - f2) & s1 is convergent & lim s1 = x0 implies ( (f1 - f2) /* s1 is convergent & (f1 - f2) /. x0 = lim ((f1 - f2) /* s1) ) )
assume that
A13: rng s1 c= dom (f1 - f2) and
A14: ( s1 is convergent & lim s1 = x0 ) ; :: thesis: ( (f1 - f2) /* s1 is convergent & (f1 - f2) /. x0 = lim ((f1 - f2) /* s1) )
A15: rng s1 c= (dom f1) /\ (dom f2) by A13, VFUNCT_1:def 2;
( dom (f1 - f2) c= dom f1 & dom (f1 - f2) c= dom f2 ) by A11, XBOOLE_1:17;
then A16: ( rng s1 c= dom f1 & rng s1 c= dom f2 ) by A13, XBOOLE_1:1;
then A17: ( f1 /* s1 is convergent & f2 /* s1 is convergent ) by A2, A14;
then (f1 /* s1) - (f2 /* s1) is convergent by NORMSP_1:20;
hence (f1 - f2) /* s1 is convergent by A15, Th2; :: thesis: (f1 - f2) /. x0 = lim ((f1 - f2) /* s1)
A18: ( f1 /. x0 = lim (f1 /* s1) & f2 /. x0 = lim (f2 /* s1) ) by A2, A14, A16;
thus (f1 - f2) /. x0 = (f1 /. x0) - (f2 /. x0) by A12, VFUNCT_1:def 2
.= lim ((f1 /* s1) - (f2 /* s1)) by A18, A17, NORMSP_1:26
.= lim ((f1 - f2) /* s1) by A15, Th2 ; :: thesis: verum
end;
hence f1 - f2 is_continuous_in x0 by A12; :: thesis: verum