let Omega, I be non empty set ; :: thesis: for Sigma being SigmaField of Omega
for P being Probability of Sigma
for a being Element of Sigma
for F being ManySortedSigmaField of I,Sigma st F is_independent_wrt P & a in tailSigmaField F,I & not P . a = 0 holds
P . a = 1

let Sigma be SigmaField of Omega; :: thesis: for P being Probability of Sigma
for a being Element of Sigma
for F being ManySortedSigmaField of I,Sigma st F is_independent_wrt P & a in tailSigmaField F,I & not P . a = 0 holds
P . a = 1

let P be Probability of Sigma; :: thesis: for a being Element of Sigma
for F being ManySortedSigmaField of I,Sigma st F is_independent_wrt P & a in tailSigmaField F,I & not P . a = 0 holds
P . a = 1

let a be Element of Sigma; :: thesis: for F being ManySortedSigmaField of I,Sigma st F is_independent_wrt P & a in tailSigmaField F,I & not P . a = 0 holds
P . a = 1

let F be ManySortedSigmaField of I,Sigma; :: thesis: ( F is_independent_wrt P & a in tailSigmaField F,I & not P . a = 0 implies P . a = 1 )
assume A0: F is_independent_wrt P ; :: thesis: ( not a in tailSigmaField F,I or P . a = 0 or P . a = 1 )
assume A1: a in tailSigmaField F,I ; :: thesis: ( P . a = 0 or P . a = 1 )
set Ie = I \ ({} I);
A2: ( a in tailSigmaField F,I implies a in sigUn F,(I \ ({} I)) )
proof
assume Z: a in tailSigmaField F,I ; :: thesis: a in sigUn F,(I \ ({} I))
sigUn F,(I \ ({} I)) in futSigmaFields F,I by Def7;
hence a in sigUn F,(I \ ({} I)) by Z, SETFAM_1:def 1; :: thesis: verum
end;
A3: for E being finite Subset of I
for p, q being Event of Sigma st p in sigUn F,E & q in tailSigmaField F,I holds
p,q are_independent_respect_to P
proof
let E be finite Subset of I; :: thesis: for p, q being Event of Sigma st p in sigUn F,E & q in tailSigmaField F,I holds
p,q are_independent_respect_to P

let p, q be Event of Sigma; :: thesis: ( p in sigUn F,E & q in tailSigmaField F,I implies p,q are_independent_respect_to P )
assume B0: ( p in sigUn F,E & q in tailSigmaField F,I ) ; :: thesis: p,q are_independent_respect_to P
for E being finite Subset of I holds q in sigUn F,(I \ E)
proof
let E be finite Subset of I; :: thesis: q in sigUn F,(I \ E)
sigUn F,(I \ E) in futSigmaFields F,I by Def7;
hence q in sigUn F,(I \ E) by B0, SETFAM_1:def 1; :: thesis: verum
end;
then B1: q in sigUn F,(I \ E) ;
per cases ( ( E <> {} & I \ E <> {} ) or not E <> {} or not I \ E <> {} ) ;
suppose C0: ( E <> {} & I \ E <> {} ) ; :: thesis: p,q are_independent_respect_to P
then reconsider E = E as non empty Subset of I ;
reconsider IE = I \ E as non empty Subset of I by C0;
E misses IE by XBOOLE_1:79;
then P . (p /\ q) = (P . p) * (P . q) by A0, B0, B1, Th14;
hence p,q are_independent_respect_to P by PROB_2:def 5; :: thesis: verum
end;
suppose C1: ( not E <> {} or not I \ E <> {} ) ; :: thesis: p,q are_independent_respect_to P
end;
end;
end;
A4: for p, q being Event of Sigma st p in finSigmaFields F,I & q in tailSigmaField F,I holds
p,q are_independent_respect_to P
proof
let p, q be Event of Sigma; :: thesis: ( p in finSigmaFields F,I & q in tailSigmaField F,I implies p,q are_independent_respect_to P )
assume B0: ( p in finSigmaFields F,I & q in tailSigmaField F,I ) ; :: thesis: p,q are_independent_respect_to P
then consider E being finite Subset of I such that
B1: p in sigUn F,E by Def10;
thus p,q are_independent_respect_to P by B0, B1, A3; :: thesis: verum
end;
reconsider T = tailSigmaField F,I as SigmaField of Omega by Th16;
a5: T c= sigma T by PROB_1:def 14;
A6: sigma (finSigmaFields F,I) = sigUn F,(I \ ({} I))
proof
thus sigma (finSigmaFields F,I) c= sigUn F,(I \ ({} I)) :: according to XBOOLE_0:def 10 :: thesis: sigUn F,(I \ ({} I)) c= sigma (finSigmaFields F,I)
proof
finSigmaFields F,I c= sigma (Union (F | (I \ ({} I))))
proof
let X be set ; :: according to TARSKI:def 3 :: thesis: ( not X in finSigmaFields F,I or X in sigma (Union (F | (I \ ({} I)))) )
assume X in finSigmaFields F,I ; :: thesis: X in sigma (Union (F | (I \ ({} I))))
then consider E being finite Subset of I such that
E0: X in sigUn F,E by Def10;
F | E c= F | (I \ ({} I)) by RELAT_1:104;
then E2: union (rng (F | E)) c= union (rng (F | (I \ ({} I)))) by RELAT_1:25, ZFMISC_1:95;
Union (F | (I \ ({} I))) c= sigma (Union (F | (I \ ({} I)))) by PROB_1:def 14;
then Union (F | E) c= sigma (Union (F | (I \ ({} I)))) by E2, XBOOLE_1:1;
then sigma (Union (F | E)) c= sigma (Union (F | (I \ ({} I)))) by PROB_1:def 14;
hence X in sigma (Union (F | (I \ ({} I)))) by E0; :: thesis: verum
end;
hence sigma (finSigmaFields F,I) c= sigUn F,(I \ ({} I)) by PROB_1:def 14; :: thesis: verum
end;
Union (F | (I \ ({} I))) c= sigma (finSigmaFields F,I)
proof
let x be set ; :: according to TARSKI:def 3 :: thesis: ( not x in Union (F | (I \ ({} I))) or x in sigma (finSigmaFields F,I) )
assume E0: x in Union (F | (I \ ({} I))) ; :: thesis: x in sigma (finSigmaFields F,I)
dom F c= I \ ({} I) ;
then x in union (rng F) by E0, RELAT_1:97;
then consider y being set such that
E1: ( x in y & y in rng F ) by TARSKI:def 4;
consider i being set such that
E2: ( i in dom F & y = F . i ) by E1, FUNCT_1:def 5;
defpred S1[ set ] means ex i being set st
( i in I & $1 in F . i );
consider X being set such that
E3: for z being set holds
( z in X iff ( z in finSigmaFields F,I & S1[z] ) ) from XBOOLE_0:sch 1();
E4: x in X
proof
x in finSigmaFields F,I
proof
D0: dom (F | {i}) = (dom F) /\ {i} by RELAT_1:90
.= {i} by E2, ZFMISC_1:52 ;
then rng (F | {i}) = {((F | {i}) . i)} by FUNCT_1:14;
then D1: union (rng (F | {i})) = (F | {i}) . i by ZFMISC_1:31;
i in dom (F | {i}) by D0, TARSKI:def 1;
then D2: Union (F | {i}) = F . i by D1, FUNCT_1:70;
i in I by E2;
then for z being set st z in {i} holds
z in I by TARSKI:def 1;
then reconsider E = {i} as finite Subset of I by TARSKI:def 3;
reconsider Fi = F . i as SigmaField of Omega by E2, Def2;
D3: sigma Fi c= Fi by PROB_1:def 14;
Fi c= sigma Fi by PROB_1:def 14;
then D4: sigUn F,E = F . i by D2, D3, XBOOLE_0:def 10;
reconsider x = x as Subset of Omega by E1, E2;
thus x in finSigmaFields F,I by D4, E2, E1, Def10; :: thesis: verum
end;
hence x in X by E3, E2, E1; :: thesis: verum
end;
for z being set st z in X holds
z in finSigmaFields F,I by E3;
then E5: X c= finSigmaFields F,I by TARSKI:def 3;
finSigmaFields F,I c= sigma (finSigmaFields F,I) by PROB_1:def 14;
hence x in sigma (finSigmaFields F,I) by E4, E5, TARSKI:def 3; :: thesis: verum
end;
hence sigUn F,(I \ ({} I)) c= sigma (finSigmaFields F,I) by PROB_1:def 14; :: thesis: verum
end;
A7: for u, v being Event of Sigma st u in sigUn F,(I \ ({} I)) & v in tailSigmaField F,I holds
u,v are_independent_respect_to P
proof
let u, v be Event of Sigma; :: thesis: ( u in sigUn F,(I \ ({} I)) & v in tailSigmaField F,I implies u,v are_independent_respect_to P )
assume Z: ( u in sigUn F,(I \ ({} I)) & v in tailSigmaField F,I ) ; :: thesis: u,v are_independent_respect_to P
C0: not finSigmaFields F,I is empty
proof
consider E being finite Subset of I;
{} in sigUn F,E by PROB_1:42;
hence not finSigmaFields F,I is empty by Def10; :: thesis: verum
end;
c0: finSigmaFields F,I c= Sigma
proof
let x be set ; :: according to TARSKI:def 3 :: thesis: ( not x in finSigmaFields F,I or x in Sigma )
assume x in finSigmaFields F,I ; :: thesis: x in Sigma
then consider E being finite Subset of I such that
D0: x in sigUn F,E by Def10;
Union (F | E) c= Sigma
proof
let y be set ; :: according to TARSKI:def 3 :: thesis: ( not y in Union (F | E) or y in Sigma )
assume y in Union (F | E) ; :: thesis: y in Sigma
then consider S being set such that
F0: ( y in S & S in rng (F | E) ) by TARSKI:def 4;
thus y in Sigma by F0; :: thesis: verum
end;
then sigma (Union (F | E)) c= Sigma by PROB_1:def 14;
hence x in Sigma by D0; :: thesis: verum
end;
B2: finSigmaFields F,I is intersection_stable
proof
for x, y being set st x in finSigmaFields F,I & y in finSigmaFields F,I holds
x /\ y in finSigmaFields F,I
proof
let x, y be set ; :: thesis: ( x in finSigmaFields F,I & y in finSigmaFields F,I implies x /\ y in finSigmaFields F,I )
assume D0: ( x in finSigmaFields F,I & y in finSigmaFields F,I ) ; :: thesis: x /\ y in finSigmaFields F,I
then consider E1 being finite Subset of I such that
D1: x in sigUn F,E1 by Def10;
consider E2 being finite Subset of I such that
D2: y in sigUn F,E2 by D0, Def10;
for z being set
for E1, E2 being finite Subset of I st z in sigUn F,E1 holds
z in sigUn F,(E1 \/ E2)
proof
let z be set ; :: thesis: for E1, E2 being finite Subset of I st z in sigUn F,E1 holds
z in sigUn F,(E1 \/ E2)

let E1, E2 be finite Subset of I; :: thesis: ( z in sigUn F,E1 implies z in sigUn F,(E1 \/ E2) )
assume Z: z in sigUn F,E1 ; :: thesis: z in sigUn F,(E1 \/ E2)
reconsider E3 = E1 \/ E2 as finite Subset of I ;
F1: Union (F | E1) c= Union (F | E3)
proof
let X be set ; :: according to TARSKI:def 3 :: thesis: ( not X in Union (F | E1) or X in Union (F | E3) )
assume X in Union (F | E1) ; :: thesis: X in Union (F | E3)
then consider S being set such that
G0: ( X in S & S in rng (F | E1) ) by TARSKI:def 4;
F | E3 = (F | E1) \/ (F | E2) by RELAT_1:107;
then rng (F | E3) = (rng (F | E1)) \/ (rng (F | E2)) by RELAT_1:26;
then S in rng (F | E3) by G0, XBOOLE_0:def 3;
hence X in Union (F | E3) by G0, TARSKI:def 4; :: thesis: verum
end;
Union (F | E3) c= sigma (Union (F | E3)) by PROB_1:def 14;
then Union (F | E1) c= sigma (Union (F | E3)) by F1, XBOOLE_1:1;
then sigma (Union (F | E1)) c= sigma (Union (F | E3)) by PROB_1:def 14;
hence z in sigUn F,(E1 \/ E2) by Z; :: thesis: verum
end;
then ( x in sigUn F,(E1 \/ E2) & y in sigUn F,(E2 \/ E1) ) by D1, D2;
then x /\ y in sigUn F,(E1 \/ E2) by FINSUB_1:def 2;
hence x /\ y in finSigmaFields F,I by Def10; :: thesis: verum
end;
hence finSigmaFields F,I is intersection_stable by FINSUB_1:def 2; :: thesis: verum
end;
tailSigmaField F,I c= Sigma
proof
let x be set ; :: according to TARSKI:def 3 :: thesis: ( not x in tailSigmaField F,I or x in Sigma )
assume d0: x in tailSigmaField F,I ; :: thesis: x in Sigma
set Ie = I \ ({} I);
sigUn F,(I \ ({} I)) in futSigmaFields F,I by Def7;
then D1: x in sigma (Union (F | (I \ ({} I)))) by d0, SETFAM_1:def 1;
Union (F | (I \ ({} I))) c= Sigma
proof
let y be set ; :: according to TARSKI:def 3 :: thesis: ( not y in Union (F | (I \ ({} I))) or y in Sigma )
assume y in Union (F | (I \ ({} I))) ; :: thesis: y in Sigma
then consider S being set such that
F0: ( y in S & S in rng (F | (I \ ({} I))) ) by TARSKI:def 4;
thus y in Sigma by F0; :: thesis: verum
end;
then sigma (Union (F | (I \ ({} I)))) c= Sigma by PROB_1:def 14;
hence x in Sigma by D1; :: thesis: verum
end;
hence u,v are_independent_respect_to P by Th8, c0, C0, A4, B2, Z, A6, a5; :: thesis: verum
end;
a,a are_independent_respect_to P by A1, A2, A7;
then P . (a /\ a) = (P . a) * (P . a) by PROB_2:def 5;
hence ( P . a = 0 or P . a = 1 ) by Th15; :: thesis: verum