let f be PartFunc of REAL,REAL; :: thesis: for b being Real st dom f = REAL & f is_-infty_improper_integrable_on b & f is_+infty_improper_integrable_on b & ( not improper_integral_-infty (f,b) = -infty or not improper_integral_+infty (f,b) = +infty ) & ( not improper_integral_-infty (f,b) = +infty or not improper_integral_+infty (f,b) = -infty ) holds
for b1 being Real st b1 <= b holds
(improper_integral_-infty (f,b)) + (improper_integral_+infty (f,b)) = (improper_integral_-infty (f,b1)) + (improper_integral_+infty (f,b1))

let b be Real; :: thesis: ( dom f = REAL & f is_-infty_improper_integrable_on b & f is_+infty_improper_integrable_on b & ( not improper_integral_-infty (f,b) = -infty or not improper_integral_+infty (f,b) = +infty ) & ( not improper_integral_-infty (f,b) = +infty or not improper_integral_+infty (f,b) = -infty ) implies for b1 being Real st b1 <= b holds
(improper_integral_-infty (f,b)) + (improper_integral_+infty (f,b)) = (improper_integral_-infty (f,b1)) + (improper_integral_+infty (f,b1)) )

assume that
A1: dom f = REAL and
A2: f is_-infty_improper_integrable_on b and
A3: f is_+infty_improper_integrable_on b and
A4: ( not improper_integral_-infty (f,b) = -infty or not improper_integral_+infty (f,b) = +infty ) and
A5: ( not improper_integral_-infty (f,b) = +infty or not improper_integral_+infty (f,b) = -infty ) ; :: thesis: for b1 being Real st b1 <= b holds
(improper_integral_-infty (f,b)) + (improper_integral_+infty (f,b)) = (improper_integral_-infty (f,b1)) + (improper_integral_+infty (f,b1))

A6: ( left_closed_halfline b c= dom f & right_closed_halfline b c= dom f ) by A1;
let b1 be Real; :: thesis: ( b1 <= b implies (improper_integral_-infty (f,b)) + (improper_integral_+infty (f,b)) = (improper_integral_-infty (f,b1)) + (improper_integral_+infty (f,b1)) )
assume A7: b1 <= b ; :: thesis: (improper_integral_-infty (f,b)) + (improper_integral_+infty (f,b)) = (improper_integral_-infty (f,b1)) + (improper_integral_+infty (f,b1))
then A8: ( f is_integrable_on ['b1,b'] & f | ['b1,b'] is bounded ) by A2;
A9: ( right_closed_halfline b1 c= dom f & [.b1,b.] c= dom f ) by A1;
per cases ( f is_-infty_ext_Riemann_integrable_on b or improper_integral_-infty (f,b) = +infty or improper_integral_-infty (f,b) = -infty ) by A2, Th22;
suppose f is_-infty_ext_Riemann_integrable_on b ; :: thesis: (improper_integral_-infty (f,b)) + (improper_integral_+infty (f,b)) = (improper_integral_-infty (f,b1)) + (improper_integral_+infty (f,b1))
then A10: improper_integral_-infty (f,b) = infty_ext_left_integral (f,b) by A2, Th22;
then A11: ( f is_-infty_improper_integrable_on b1 & improper_integral_-infty (f,b1) = infty_ext_left_integral (f,b1) ) by A1, A7, A2, Lm3;
A12: improper_integral_-infty (f,b) = (improper_integral_-infty (f,b1)) + (integral (f,b1,b)) by A7, A6, A8, A11, Lm7
.= (infty_ext_left_integral (f,b1)) + (integral (f,b1,b)) by A11, XXREAL_3:def 2 ;
per cases ( f is_+infty_ext_Riemann_integrable_on b or improper_integral_+infty (f,b) = +infty or improper_integral_+infty (f,b) = -infty ) by A3, Th27;
suppose A13: f is_+infty_ext_Riemann_integrable_on b ; :: thesis: (improper_integral_-infty (f,b)) + (improper_integral_+infty (f,b)) = (improper_integral_-infty (f,b1)) + (improper_integral_+infty (f,b1))
end;
end;
end;
suppose A17: improper_integral_-infty (f,b) = +infty ; :: thesis: (improper_integral_-infty (f,b)) + (improper_integral_+infty (f,b)) = (improper_integral_-infty (f,b1)) + (improper_integral_+infty (f,b1))
end;
suppose A20: improper_integral_-infty (f,b) = -infty ; :: thesis: (improper_integral_-infty (f,b)) + (improper_integral_+infty (f,b)) = (improper_integral_-infty (f,b1)) + (improper_integral_+infty (f,b1))
end;
end;