let f be PartFunc of REAL,REAL; :: thesis: for c being Real st left_closed_halfline c c= dom f & f is_-infty_improper_integrable_on c & improper_integral_-infty (f,c) = infty_ext_left_integral (f,c) holds
for b being Real st b <= c holds
( f is_-infty_improper_integrable_on b & improper_integral_-infty (f,b) = infty_ext_left_integral (f,b) )

let c be Real; :: thesis: ( left_closed_halfline c c= dom f & f is_-infty_improper_integrable_on c & improper_integral_-infty (f,c) = infty_ext_left_integral (f,c) implies for b being Real st b <= c holds
( f is_-infty_improper_integrable_on b & improper_integral_-infty (f,b) = infty_ext_left_integral (f,b) ) )

assume that
A1: left_closed_halfline c c= dom f and
A2: f is_-infty_improper_integrable_on c and
A3: improper_integral_-infty (f,c) = infty_ext_left_integral (f,c) ; :: thesis: for b being Real st b <= c holds
( f is_-infty_improper_integrable_on b & improper_integral_-infty (f,b) = infty_ext_left_integral (f,b) )

let b be Real; :: thesis: ( b <= c implies ( f is_-infty_improper_integrable_on b & improper_integral_-infty (f,b) = infty_ext_left_integral (f,b) ) )
assume A4: b <= c ; :: thesis: ( f is_-infty_improper_integrable_on b & improper_integral_-infty (f,b) = infty_ext_left_integral (f,b) )
consider I being PartFunc of REAL,REAL such that
A5: dom I = left_closed_halfline c and
A6: for x being Real st x in dom I holds
I . x = integral (f,x,c) and
A7: ( I is convergent_in-infty or I is divergent_in-infty_to+infty or I is divergent_in-infty_to-infty ) by A2;
A8: now :: thesis: not I is divergent_in-infty_to+infty end;
A9: now :: thesis: not I is divergent_in-infty_to-infty end;
-infty < b by XREAL_0:def 1, XXREAL_0:12;
then reconsider LB = ].-infty,b.] as non empty Subset of REAL by XXREAL_1:2;
deffunc H1( Element of LB) -> Element of REAL = In ((integral (f,$1,b)),REAL);
consider Intf being Function of LB,REAL such that
A10: for x being Element of LB holds Intf . x = H1(x) from FUNCT_2:sch 4();
A11: dom Intf = LB by FUNCT_2:def 1;
then reconsider Intf = Intf as PartFunc of REAL,REAL by RELSET_1:5;
A12: for x being Real st x in dom Intf holds
Intf . x = integral (f,x,b)
proof
let x be Real; :: thesis: ( x in dom Intf implies Intf . x = integral (f,x,b) )
assume x in dom Intf ; :: thesis: Intf . x = integral (f,x,b)
then Intf . x = In ((integral (f,x,b)),REAL) by A10, A11;
hence Intf . x = integral (f,x,b) ; :: thesis: verum
end;
A13: for r being Real ex g being Real st
( g < r & g in dom Intf )
proof
let r be Real; :: thesis: ex g being Real st
( g < r & g in dom Intf )

set R = min (b,r);
consider g being Real such that
A14: ( g < min (b,r) & g in dom I ) by A7, A8, A9, LIMFUNC1:45;
A15: ( min (b,r) <= b & min (b,r) <= r ) by XXREAL_0:17;
then A16: ( g < b & g < r ) by A14, XXREAL_0:2;
g in ].-infty,b.] by A15, A14, XXREAL_0:2, XXREAL_1:234;
hence ex g being Real st
( g < r & g in dom Intf ) by A11, A16; :: thesis: verum
end;
consider g being Real such that
A17: for g1 being Real st 0 < g1 holds
ex r being Real st
for r1 being Real st r1 < r & r1 in dom I holds
|.((I . r1) - g).| < g1 by A7, A8, A9, LIMFUNC1:45;
set G = g - (integral (f,b,c));
A18: for g1 being Real st 0 < g1 holds
ex r being Real st
for r1 being Real st r1 < r & r1 in dom Intf holds
|.((Intf . r1) - (g - (integral (f,b,c)))).| < g1
proof
let g1 be Real; :: thesis: ( 0 < g1 implies ex r being Real st
for r1 being Real st r1 < r & r1 in dom Intf holds
|.((Intf . r1) - (g - (integral (f,b,c)))).| < g1 )

assume 0 < g1 ; :: thesis: ex r being Real st
for r1 being Real st r1 < r & r1 in dom Intf holds
|.((Intf . r1) - (g - (integral (f,b,c)))).| < g1

then consider r being Real such that
A19: for r1 being Real st r1 < r & r1 in dom I holds
|.((I . r1) - g).| < g1 by A17;
set R = min (b,r);
for r1 being Real st r1 < min (b,r) & r1 in dom Intf holds
|.((Intf . r1) - (g - (integral (f,b,c)))).| < g1
proof
let r1 be Real; :: thesis: ( r1 < min (b,r) & r1 in dom Intf implies |.((Intf . r1) - (g - (integral (f,b,c)))).| < g1 )
assume that
A20: r1 < min (b,r) and
A21: r1 in dom Intf ; :: thesis: |.((Intf . r1) - (g - (integral (f,b,c)))).| < g1
( min (b,r) <= r & min (b,r) <= b ) by XXREAL_0:17;
then A22: ( r1 < r & r1 < b ) by A20, XXREAL_0:2;
A23: dom Intf c= dom I by A4, A5, A11, XXREAL_1:42;
then A24: |.((I . r1) - g).| < g1 by A22, A19, A21;
A25: r1 <= c by A5, A21, A23, XXREAL_1:2;
then A26: ( f is_integrable_on ['r1,c'] & f | ['r1,c'] is bounded ) by A2;
A27: [.r1,c.] = ['r1,c'] by A25, INTEGRA5:def 3;
then ['r1,c'] c= ].-infty,c.] by XXREAL_1:265;
then A28: ['r1,c'] c= dom f by A1;
A29: b in ['r1,c'] by A22, A4, A27, XXREAL_1:1;
(I . r1) - g = (integral (f,r1,c)) - g by A6, A21, A23
.= ((integral (f,r1,b)) + (integral (f,b,c))) - g by A25, A26, A28, A29, INTEGRA6:17
.= (integral (f,r1,b)) - (g - (integral (f,b,c))) ;
hence |.((Intf . r1) - (g - (integral (f,b,c)))).| < g1 by A21, A24, A12; :: thesis: verum
end;
hence ex r being Real st
for r1 being Real st r1 < r & r1 in dom Intf holds
|.((Intf . r1) - (g - (integral (f,b,c)))).| < g1 ; :: thesis: verum
end;
hence A30: f is_-infty_improper_integrable_on b by A11, A12, A13, A1, A2, A4, Lm2, LIMFUNC1:45; :: thesis: improper_integral_-infty (f,b) = infty_ext_left_integral (f,b)
then f is_-infty_ext_Riemann_integrable_on b by A11, A12, A13, A18, LIMFUNC1:45, INTEGR10:def 6;
hence improper_integral_-infty (f,b) = infty_ext_left_integral (f,b) by A30, Th22; :: thesis: verum