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

let b be Real; :: thesis: ( not f is_+infty_improper_integrable_on b or ( f is_+infty_ext_Riemann_integrable_on b & improper_integral_+infty (f,b) = infty_ext_right_integral (f,b) ) or ( not f is_+infty_ext_Riemann_integrable_on b & improper_integral_+infty (f,b) = +infty ) or ( not f is_+infty_ext_Riemann_integrable_on b & improper_integral_+infty (f,b) = -infty ) )
assume A1: f is_+infty_improper_integrable_on b ; :: thesis: ( ( f is_+infty_ext_Riemann_integrable_on b & improper_integral_+infty (f,b) = infty_ext_right_integral (f,b) ) or ( not f is_+infty_ext_Riemann_integrable_on b & improper_integral_+infty (f,b) = +infty ) or ( not f is_+infty_ext_Riemann_integrable_on b & improper_integral_+infty (f,b) = -infty ) )
then consider Intf being PartFunc of REAL,REAL such that
A2: dom Intf = right_closed_halfline b and
A3: for x being Real st x in dom Intf holds
Intf . x = integral (f,b,x) and
A4: ( Intf is convergent_in+infty or Intf is divergent_in+infty_to+infty or Intf is divergent_in+infty_to-infty ) ;
per cases ( Intf is convergent_in+infty or Intf is divergent_in+infty_to+infty or Intf is divergent_in+infty_to-infty ) by A4;
suppose A5: Intf is convergent_in+infty ; :: thesis: ( ( f is_+infty_ext_Riemann_integrable_on b & improper_integral_+infty (f,b) = infty_ext_right_integral (f,b) ) or ( not f is_+infty_ext_Riemann_integrable_on b & improper_integral_+infty (f,b) = +infty ) or ( not f is_+infty_ext_Riemann_integrable_on b & improper_integral_+infty (f,b) = -infty ) )
end;
suppose A7: Intf is divergent_in+infty_to+infty ; :: thesis: ( ( f is_+infty_ext_Riemann_integrable_on b & improper_integral_+infty (f,b) = infty_ext_right_integral (f,b) ) or ( not f is_+infty_ext_Riemann_integrable_on b & improper_integral_+infty (f,b) = +infty ) or ( not f is_+infty_ext_Riemann_integrable_on b & improper_integral_+infty (f,b) = -infty ) )
for I being PartFunc of REAL,REAL st dom I = right_closed_halfline b & ( for x being Real st x in dom I holds
I . x = integral (f,b,x) ) holds
not I is convergent_in+infty
proof
let I be PartFunc of REAL,REAL; :: thesis: ( dom I = right_closed_halfline b & ( for x being Real st x in dom I holds
I . x = integral (f,b,x) ) implies not I is convergent_in+infty )

assume that
A8: dom I = right_closed_halfline b and
A9: for x being Real st x in dom I holds
I . x = integral (f,b,x) ; :: thesis: not I is convergent_in+infty
now :: thesis: for x being Element of REAL st x in dom Intf holds
Intf . x = I . x
let x be Element of REAL ; :: thesis: ( x in dom Intf implies Intf . x = I . x )
assume A10: x in dom Intf ; :: thesis: Intf . x = I . x
then Intf . x = integral (f,b,x) by A3;
hence Intf . x = I . x by A2, A8, A9, A10; :: thesis: verum
end;
then Intf = I by A2, A8, PARTFUN1:5;
hence not I is convergent_in+infty by A7, Th3; :: thesis: verum
end;
hence ( ( f is_+infty_ext_Riemann_integrable_on b & improper_integral_+infty (f,b) = infty_ext_right_integral (f,b) ) or ( not f is_+infty_ext_Riemann_integrable_on b & improper_integral_+infty (f,b) = +infty ) or ( not f is_+infty_ext_Riemann_integrable_on b & improper_integral_+infty (f,b) = -infty ) ) by A1, Def4, INTEGR10:def 5; :: thesis: verum
end;
suppose A11: Intf is divergent_in+infty_to-infty ; :: thesis: ( ( f is_+infty_ext_Riemann_integrable_on b & improper_integral_+infty (f,b) = infty_ext_right_integral (f,b) ) or ( not f is_+infty_ext_Riemann_integrable_on b & improper_integral_+infty (f,b) = +infty ) or ( not f is_+infty_ext_Riemann_integrable_on b & improper_integral_+infty (f,b) = -infty ) )
for I being PartFunc of REAL,REAL st dom I = right_closed_halfline b & ( for x being Real st x in dom I holds
I . x = integral (f,b,x) ) holds
not I is convergent_in+infty
proof
let I be PartFunc of REAL,REAL; :: thesis: ( dom I = right_closed_halfline b & ( for x being Real st x in dom I holds
I . x = integral (f,b,x) ) implies not I is convergent_in+infty )

assume that
A12: dom I = right_closed_halfline b and
A13: for x being Real st x in dom I holds
I . x = integral (f,b,x) ; :: thesis: not I is convergent_in+infty
now :: thesis: for x being Element of REAL st x in dom Intf holds
Intf . x = I . x
let x be Element of REAL ; :: thesis: ( x in dom Intf implies Intf . x = I . x )
assume A14: x in dom Intf ; :: thesis: Intf . x = I . x
then Intf . x = integral (f,b,x) by A3;
hence Intf . x = I . x by A2, A12, A13, A14; :: thesis: verum
end;
then Intf = I by A2, A12, PARTFUN1:5;
hence not I is convergent_in+infty by A11, Th4; :: thesis: verum
end;
hence ( ( f is_+infty_ext_Riemann_integrable_on b & improper_integral_+infty (f,b) = infty_ext_right_integral (f,b) ) or ( not f is_+infty_ext_Riemann_integrable_on b & improper_integral_+infty (f,b) = +infty ) or ( not f is_+infty_ext_Riemann_integrable_on b & improper_integral_+infty (f,b) = -infty ) ) by A1, Def4, INTEGR10:def 5; :: thesis: verum
end;
end;