let Omega be non empty set ; for Sigma being SigmaField of Omega
for Prob being Probability of Sigma
for A being SetSequence of Sigma holds
( ( Partial_Sums (Prob * A) is convergent implies ( Prob . (lim_sup A) = 0 & Prob . (lim_inf (@Complement A)) = 1 ) ) & ( A is_all_independent_wrt Prob & Partial_Sums (Prob * A) is divergent_to+infty implies ( Prob . (lim_inf (@Complement A)) = 0 & Prob . (lim_sup A) = 1 ) ) )
let Sigma be SigmaField of Omega; for Prob being Probability of Sigma
for A being SetSequence of Sigma holds
( ( Partial_Sums (Prob * A) is convergent implies ( Prob . (lim_sup A) = 0 & Prob . (lim_inf (@Complement A)) = 1 ) ) & ( A is_all_independent_wrt Prob & Partial_Sums (Prob * A) is divergent_to+infty implies ( Prob . (lim_inf (@Complement A)) = 0 & Prob . (lim_sup A) = 1 ) ) )
let Prob be Probability of Sigma; for A being SetSequence of Sigma holds
( ( Partial_Sums (Prob * A) is convergent implies ( Prob . (lim_sup A) = 0 & Prob . (lim_inf (@Complement A)) = 1 ) ) & ( A is_all_independent_wrt Prob & Partial_Sums (Prob * A) is divergent_to+infty implies ( Prob . (lim_inf (@Complement A)) = 0 & Prob . (lim_sup A) = 1 ) ) )
let A be SetSequence of Sigma; ( ( Partial_Sums (Prob * A) is convergent implies ( Prob . (lim_sup A) = 0 & Prob . (lim_inf (@Complement A)) = 1 ) ) & ( A is_all_independent_wrt Prob & Partial_Sums (Prob * A) is divergent_to+infty implies ( Prob . (lim_inf (@Complement A)) = 0 & Prob . (lim_sup A) = 1 ) ) )
A1:
( Partial_Sums (Prob * A) is convergent implies Prob . (lim_inf (Complement A)) = 1 )
A5:
for A being SetSequence of Sigma st Partial_Sums (Prob * A) is convergent holds
Prob . (lim_sup A) = 0
for B being SetSequence of Sigma st B is_all_independent_wrt Prob & Partial_Sums (Prob * B) is divergent_to+infty holds
( Prob . (lim_inf (@Complement B)) = 0 & Prob . (lim_sup B) = 1 )
proof
let B be
SetSequence of
Sigma;
( B is_all_independent_wrt Prob & Partial_Sums (Prob * B) is divergent_to+infty implies ( Prob . (lim_inf (@Complement B)) = 0 & Prob . (lim_sup B) = 1 ) )
assume that A7:
B is_all_independent_wrt Prob
and A8:
Partial_Sums (Prob * B) is
divergent_to+infty
;
( Prob . (lim_inf (@Complement B)) = 0 & Prob . (lim_sup B) = 1 )
A9:
Prob . (@lim_sup B) = Prob . (lim_sup B)
by Th15;
A10:
Prob . (@lim_inf (@Complement B)) = Prob . (lim_inf (@Complement B))
by Th15;
for
B being
SetSequence of
Sigma st
B is_all_independent_wrt Prob &
Partial_Sums (Prob * B) is
divergent_to+infty holds
(
Prob . (@lim_inf (@Complement B)) = 0 &
Prob . (@lim_sup B) = 1 )
proof
let B be
SetSequence of
Sigma;
( B is_all_independent_wrt Prob & Partial_Sums (Prob * B) is divergent_to+infty implies ( Prob . (@lim_inf (@Complement B)) = 0 & Prob . (@lim_sup B) = 1 ) )
assume that A11:
B is_all_independent_wrt Prob
and A12:
Partial_Sums (Prob * B) is
divergent_to+infty
;
( Prob . (@lim_inf (@Complement B)) = 0 & Prob . (@lim_sup B) = 1 )
A13:
for
Q being
SetSequence of
Sigma holds
@Intersect_Shift_Seq Q is
non-descending
A14:
@Intersect_Shift_Seq (@Complement B) is
non-descending
by A13;
A15:
Prob . (@lim_inf (@Complement B)) = lim (Prob * (@Intersect_Shift_Seq (@Complement B)))
by A14, PROB_2:20;
A16:
for
n being
Element of
NAT holds
(Prob * (@Intersect_Shift_Seq (@Complement B))) . n = 0
proof
let n be
Element of
NAT ;
(Prob * (@Intersect_Shift_Seq (@Complement B))) . n = 0
dom (Prob * (@Intersect_Shift_Seq (@Complement B))) = NAT
by FUNCT_2:def 1;
then A17:
(Prob * (@Intersect_Shift_Seq (@Complement B))) . n = Prob . ((@Intersect_Shift_Seq (@Complement B)) . n)
by FUNCT_1:22;
(@Intersect_Shift_Seq (@Complement B)) . n = Intersection (@Shift_Seq ((@Complement B),n))
by Def12;
then A18:
(Prob * (@Intersect_Shift_Seq (@Complement B))) . n = Prob . (Intersection (@Partial_Intersection (@Shift_Seq ((@Complement B),n))))
by PROB_3:33, A17;
@Partial_Intersection (@Shift_Seq ((@Complement B),n)) is
non-ascending
by PROB_3:31;
then A19:
(Prob * (@Intersect_Shift_Seq (@Complement B))) . n = lim (Prob * (@Partial_Intersection (@Shift_Seq ((@Complement B),n))))
by PROB_1:def 13, A18;
A20:
for
k being
Element of
NAT holds
(Prob * (@Partial_Intersection (@Complement (@Shift_Seq (B,n))))) . k <= ((1 + (Partial_Sums (Prob * (@Shift_Seq (B,n))))) ") . k
proof
let k be
Element of
NAT ;
(Prob * (@Partial_Intersection (@Complement (@Shift_Seq (B,n))))) . k <= ((1 + (Partial_Sums (Prob * (@Shift_Seq (B,n))))) ") . k
A21:
for
k being
Element of
NAT holds
@Shift_Seq (
B,
k)
is_all_independent_wrt Prob
A28:
for
A being
SetSequence of
Sigma for
n being
Element of
NAT holds
(Partial_Product (Prob * (@Complement A))) . n <= ((1 + (Partial_Sums (Prob * A))) . n) "
dom (Prob * (@Partial_Intersection (@Complement (@Shift_Seq (B,n))))) = NAT
by FUNCT_2:def 1;
then
(Prob * (@Partial_Intersection (@Complement (@Shift_Seq (B,n))))) . k = Prob . ((@Partial_Intersection (@Complement (@Shift_Seq (B,n)))) . k)
by FUNCT_1:22;
then
(Prob * (@Partial_Intersection (@Complement (@Shift_Seq (B,n))))) . k = (Partial_Product (Prob * (@Complement (@Shift_Seq (B,n))))) . k
by A21, Th10;
then
(Prob * (@Partial_Intersection (@Complement (@Shift_Seq (B,n))))) . k <= ((1 + (Partial_Sums (Prob * (@Shift_Seq (B,n))))) . k) "
by A28;
hence
(Prob * (@Partial_Intersection (@Complement (@Shift_Seq (B,n))))) . k <= ((1 + (Partial_Sums (Prob * (@Shift_Seq (B,n))))) ") . k
by VALUED_1:10;
verum
end;
A41:
Partial_Sums (Prob * (@Shift_Seq (B,n))) is
divergent_to+infty
proof
per cases
( n = 0 or n <> 0 )
;
suppose
n <> 0
;
Partial_Sums (Prob * (@Shift_Seq (B,n))) is divergent_to+infty then A42:
n - 1 is
Element of
NAT
by NAT_1:20;
consider y being
Element of
NAT such that A43:
y = n - 1
by A42;
set B2 =
NAT --> (- ((Partial_Sums (Prob * B)) . y));
A44:
(Partial_Sums (Prob * B)) + (NAT --> (- ((Partial_Sums (Prob * B)) . y))) is
divergent_to+infty
by A12, LIMFUNC1:45;
for
r being
Real ex
q being
Element of
NAT st
for
m being
Element of
NAT st
q <= m holds
r < (Partial_Sums (Prob * (@Shift_Seq (B,n)))) . m
proof
let r be
Real;
ex q being Element of NAT st
for m being Element of NAT st q <= m holds
r < (Partial_Sums (Prob * (@Shift_Seq (B,n)))) . m
for
r being
Real ex
q being
Element of
NAT st
for
m being
Element of
NAT st
q <= m holds
r < (Partial_Sums (Prob * (@Shift_Seq (B,n)))) . m
proof
let r be
Real;
ex q being Element of NAT st
for m being Element of NAT st q <= m holds
r < (Partial_Sums (Prob * (@Shift_Seq (B,n)))) . m
A45:
for
m being
Element of
NAT st
n <= m holds
((Partial_Sums (Prob * B)) + (NAT --> (- ((Partial_Sums (Prob * B)) . y)))) . m = (Partial_Sums (Prob * (@Shift_Seq (B,n)))) . (m - n)
proof
let m be
Element of
NAT ;
( n <= m implies ((Partial_Sums (Prob * B)) + (NAT --> (- ((Partial_Sums (Prob * B)) . y)))) . m = (Partial_Sums (Prob * (@Shift_Seq (B,n)))) . (m - n) )
assume
n <= m
;
((Partial_Sums (Prob * B)) + (NAT --> (- ((Partial_Sums (Prob * B)) . y)))) . m = (Partial_Sums (Prob * (@Shift_Seq (B,n)))) . (m - n)
then consider knat being
Nat such that A46:
m = n + knat
by NAT_1:10;
reconsider knat =
knat as
Element of
NAT by ORDINAL1:def 13;
defpred S1[
Element of
NAT ]
means ((Partial_Sums (Prob * B)) + (NAT --> (- ((Partial_Sums (Prob * B)) . y)))) . (n + $1) = (Partial_Sums (Prob * (@Shift_Seq (B,n)))) . ((n + $1) - n);
A47:
S1[
0 ]
proof
dom ((Partial_Sums (Prob * B)) + (NAT --> (- ((Partial_Sums (Prob * B)) . y)))) = NAT
by FUNCT_2:def 1;
then
((Partial_Sums (Prob * B)) + (NAT --> (- ((Partial_Sums (Prob * B)) . y)))) . n = ((Partial_Sums (Prob * B)) . n) + ((NAT --> (- ((Partial_Sums (Prob * B)) . y))) . n)
by VALUED_1:def 1;
then
((Partial_Sums (Prob * B)) + (NAT --> (- ((Partial_Sums (Prob * B)) . y)))) . n = ((Partial_Sums (Prob * B)) . n) + (- ((Partial_Sums (Prob * B)) . (n - 1)))
by A43, FUNCOP_1:13;
then
((Partial_Sums (Prob * B)) + (NAT --> (- ((Partial_Sums (Prob * B)) . y)))) . n = ((Partial_Sums (Prob * B)) . n) - ((Partial_Sums (Prob * B)) . (n - 1))
;
then A48:
((Partial_Sums (Prob * B)) + (NAT --> (- ((Partial_Sums (Prob * B)) . y)))) . n = (((Partial_Sums (Prob * B)) . (n - 1)) + ((Prob * B) . ((n - 1) + 1))) - ((Partial_Sums (Prob * B)) . (n - 1))
by A42, SERIES_1:def 1;
dom (Prob * (@Shift_Seq (B,n))) = NAT
by FUNCT_2:def 1;
then A49:
(Prob * (@Shift_Seq (B,n))) . 0 = Prob . ((@Shift_Seq (B,n)) . 0)
by FUNCT_1:22;
A50:
(@Shift_Seq (B,n)) . 0 = B . (0 + n)
by NAT_1:def 3;
dom (Prob * B) = NAT
by FUNCT_2:def 1;
then
((Partial_Sums (Prob * B)) + (NAT --> (- ((Partial_Sums (Prob * B)) . y)))) . n = (Prob * (@Shift_Seq (B,n))) . 0
by FUNCT_1:22, A50, A49, A48;
hence
S1[
0 ]
by SERIES_1:def 1;
verum
end;
A51:
for
k being
Element of
NAT st
S1[
k] holds
S1[
k + 1]
for
k being
Element of
NAT holds
S1[
k]
from NAT_1:sch 1(A47, A51);
then
((Partial_Sums (Prob * B)) + (NAT --> (- ((Partial_Sums (Prob * B)) . y)))) . (n + knat) = (Partial_Sums (Prob * (@Shift_Seq (B,n)))) . ((n + knat) - n)
;
hence
((Partial_Sums (Prob * B)) + (NAT --> (- ((Partial_Sums (Prob * B)) . y)))) . m = (Partial_Sums (Prob * (@Shift_Seq (B,n)))) . (m - n)
by A46;
verum
end;
A57:
ex
q being
Element of
NAT st
for
m being
Element of
NAT st
q + n <= m + n holds
r < ((Partial_Sums (Prob * B)) + (NAT --> (- ((Partial_Sums (Prob * B)) . y)))) . (m + n)
ex
s being
Element of
NAT st
for
m being
Element of
NAT st
s <= m holds
r < (Partial_Sums (Prob * (@Shift_Seq (B,n)))) . m
hence
ex
q being
Element of
NAT st
for
m being
Element of
NAT st
q <= m holds
r < (Partial_Sums (Prob * (@Shift_Seq (B,n)))) . m
;
verum
end;
hence
ex
q being
Element of
NAT st
for
m being
Element of
NAT st
q <= m holds
r < (Partial_Sums (Prob * (@Shift_Seq (B,n)))) . m
;
verum
end; hence
Partial_Sums (Prob * (@Shift_Seq (B,n))) is
divergent_to+infty
by LIMFUNC1:def 4;
verum end; end;
end;
A61:
for
A being
SetSequence of
Sigma st
Partial_Sums (Prob * A) is
divergent_to+infty holds
(
lim ((1 + (Partial_Sums (Prob * A))) ") = 0 &
(1 + (Partial_Sums (Prob * A))) " is
convergent )
@Partial_Intersection (@Complement (@Shift_Seq (B,n))) is
non-ascending
by PROB_3:31;
then A67:
(
Prob * (@Partial_Intersection (@Complement (@Shift_Seq (B,n)))) is
convergent &
(1 + (Partial_Sums (Prob * (@Shift_Seq (B,n))))) " is
convergent )
by PROB_1:def 13, A41, A61;
A68:
lim ((1 + (Partial_Sums (Prob * (@Shift_Seq (B,n))))) ") = 0
by A41, A61;
A69:
for
k being
Element of
NAT holds
0 <= (Prob * (@Partial_Intersection (@Complement (@Shift_Seq (B,n))))) . k
A70:
lim (Prob * (@Partial_Intersection (@Complement (@Shift_Seq (B,n))))) <= 0
by A67, A20, SEQ_2:32, A68;
@Complement (@Shift_Seq (B,n)) = @Shift_Seq (
(@Complement B),
n)
proof
for
k being
set st
k in NAT holds
(@Complement (@Shift_Seq (B,n))) . k = (@Shift_Seq ((@Complement B),n)) . k
proof
let k be
set ;
( k in NAT implies (@Complement (@Shift_Seq (B,n))) . k = (@Shift_Seq ((@Complement B),n)) . k )
assume
k in NAT
;
(@Complement (@Shift_Seq (B,n))) . k = (@Shift_Seq ((@Complement B),n)) . k
then reconsider k =
k as
Element of
NAT ;
A71:
(@Complement (@Shift_Seq (B,n))) . k = ((B ^\ n) . k) `
by PROB_1:def 4;
(@Shift_Seq ((@Complement B),n)) . k = (@Complement B) . (k + n)
by NAT_1:def 3;
then
(@Shift_Seq ((@Complement B),n)) . k = (B . (k + n)) `
by PROB_1:def 4;
hence
(@Complement (@Shift_Seq (B,n))) . k = (@Shift_Seq ((@Complement B),n)) . k
by A71, NAT_1:def 3;
verum
end;
hence
@Complement (@Shift_Seq (B,n)) = @Shift_Seq (
(@Complement B),
n)
by FUNCT_2:18;
verum
end;
hence
(Prob * (@Intersect_Shift_Seq (@Complement B))) . n = 0
by A69, A67, SEQ_2:31, A70, A19;
verum
end;
set B2 =
NAT --> 0;
A72:
ex
n being
Element of
NAT st
(NAT --> 0) . n = 0
A73:
lim (NAT --> 0) = 0
by A72, SEQ_4:40;
A74:
(
NAT --> 0 is
convergent & ex
k being
Element of
NAT st
for
n being
Element of
NAT st
k <= n holds
(NAT --> 0) . n = (Prob * (@Intersect_Shift_Seq (@Complement B))) . n )
(
Prob . (@lim_inf (@Complement B)) = 0 &
(Prob . (@lim_inf (@Complement B))) + (Prob . (@lim_sup B)) = 1 )
by A15, A74, SEQ_4:32, A73, Th15;
hence
(
Prob . (@lim_inf (@Complement B)) = 0 &
Prob . (@lim_sup B) = 1 )
;
verum
end;
hence
(
Prob . (lim_inf (@Complement B)) = 0 &
Prob . (lim_sup B) = 1 )
by A9, A10, A7, A8;
verum
end;
hence
( ( Partial_Sums (Prob * A) is convergent implies ( Prob . (lim_sup A) = 0 & Prob . (lim_inf (@Complement A)) = 1 ) ) & ( A is_all_independent_wrt Prob & Partial_Sums (Prob * A) is divergent_to+infty implies ( Prob . (lim_inf (@Complement A)) = 0 & Prob . (lim_sup A) = 1 ) ) )
by A5, A1; verum