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 b2 being Real st b <= b2 holds
(improper_integral_-infty (f,b)) + (improper_integral_+infty (f,b)) = (improper_integral_-infty (f,b2)) + (improper_integral_+infty (f,b2))

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 b2 being Real st b <= b2 holds
(improper_integral_-infty (f,b)) + (improper_integral_+infty (f,b)) = (improper_integral_-infty (f,b2)) + (improper_integral_+infty (f,b2)) )

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 b2 being Real st b <= b2 holds
(improper_integral_-infty (f,b)) + (improper_integral_+infty (f,b)) = (improper_integral_-infty (f,b2)) + (improper_integral_+infty (f,b2))

let b2 be Real; :: thesis: ( b <= b2 implies (improper_integral_-infty (f,b)) + (improper_integral_+infty (f,b)) = (improper_integral_-infty (f,b2)) + (improper_integral_+infty (f,b2)) )
assume A6: b <= b2 ; :: thesis: (improper_integral_-infty (f,b)) + (improper_integral_+infty (f,b)) = (improper_integral_-infty (f,b2)) + (improper_integral_+infty (f,b2))
A7: ( left_closed_halfline b c= dom f & right_closed_halfline b c= dom f ) by A1;
A8: ( left_closed_halfline b2 c= dom f & [.b,b2.] c= dom f ) by A1;
A9: ( f is_integrable_on ['b,b2'] & f | ['b,b2'] is bounded ) by A6, A3;
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 f is_+infty_ext_Riemann_integrable_on b ; :: thesis: (improper_integral_-infty (f,b)) + (improper_integral_+infty (f,b)) = (improper_integral_-infty (f,b2)) + (improper_integral_+infty (f,b2))
then A10: improper_integral_+infty (f,b) = infty_ext_right_integral (f,b) by A3, Th27;
then A11: ( f is_+infty_improper_integrable_on b2 & improper_integral_+infty (f,b2) = infty_ext_right_integral (f,b2) ) by A6, A1, A3, Th30;
A12: improper_integral_+infty (f,b) = (improper_integral_+infty (f,b2)) + (integral (f,b,b2)) by A6, A7, A9, A11, Th31
.= (infty_ext_right_integral (f,b2)) + (integral (f,b,b2)) 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 A2, Th22;
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,b2)) + (improper_integral_+infty (f,b2))
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,b2)) + (improper_integral_+infty (f,b2))
end;
suppose A20: improper_integral_+infty (f,b) = -infty ; :: thesis: (improper_integral_-infty (f,b)) + (improper_integral_+infty (f,b)) = (improper_integral_-infty (f,b2)) + (improper_integral_+infty (f,b2))
end;
end;