let Y be non empty set ; :: thesis: for G being Subset of (PARTITIONS Y) st G is independent holds
for P, Q being Subset of (PARTITIONS Y) st P c= G & Q c= G holds
(ERl ('/\' P)) * (ERl ('/\' Q)) c= (ERl ('/\' Q)) * (ERl ('/\' P))

let G be Subset of (PARTITIONS Y); :: thesis: ( G is independent implies for P, Q being Subset of (PARTITIONS Y) st P c= G & Q c= G holds
(ERl ('/\' P)) * (ERl ('/\' Q)) c= (ERl ('/\' Q)) * (ERl ('/\' P)) )

assume A1: G is independent ; :: thesis: for P, Q being Subset of (PARTITIONS Y) st P c= G & Q c= G holds
(ERl ('/\' P)) * (ERl ('/\' Q)) c= (ERl ('/\' Q)) * (ERl ('/\' P))

let P, Q be Subset of (PARTITIONS Y); :: thesis: ( P c= G & Q c= G implies (ERl ('/\' P)) * (ERl ('/\' Q)) c= (ERl ('/\' Q)) * (ERl ('/\' P)) )
assume that
A2: P c= G and
A3: Q c= G ; :: thesis: (ERl ('/\' P)) * (ERl ('/\' Q)) c= (ERl ('/\' Q)) * (ERl ('/\' P))
per cases ( P = {} or Q = {} or ( P <> {} & Q <> {} ) ) ;
suppose P = {} ; :: thesis: (ERl ('/\' P)) * (ERl ('/\' Q)) c= (ERl ('/\' Q)) * (ERl ('/\' P))
then A4: P = {} (PARTITIONS Y) ;
then A5: (ERl ('/\' P)) * (ERl ('/\' Q)) = (ERl (%O Y)) * (ERl ('/\' Q)) by Th1
.= (nabla Y) * (ERl ('/\' Q)) by PARTIT1:37
.= nabla Y by Th4 ;
(ERl ('/\' Q)) * (ERl ('/\' P)) = (ERl ('/\' Q)) * (ERl (%O Y)) by A4, Th1
.= (ERl ('/\' Q)) * (nabla Y) by PARTIT1:37
.= nabla Y by Th4 ;
hence (ERl ('/\' P)) * (ERl ('/\' Q)) c= (ERl ('/\' Q)) * (ERl ('/\' P)) by A5; :: thesis: verum
end;
suppose Q = {} ; :: thesis: (ERl ('/\' P)) * (ERl ('/\' Q)) c= (ERl ('/\' Q)) * (ERl ('/\' P))
then A6: Q = {} (PARTITIONS Y) ;
then A7: (ERl ('/\' Q)) * (ERl ('/\' P)) = (ERl (%O Y)) * (ERl ('/\' P)) by Th1
.= (nabla Y) * (ERl ('/\' P)) by PARTIT1:37
.= nabla Y by Th4 ;
(ERl ('/\' P)) * (ERl ('/\' Q)) = (ERl ('/\' P)) * (ERl (%O Y)) by A6, Th1
.= (ERl ('/\' P)) * (nabla Y) by PARTIT1:37
.= nabla Y by Th4 ;
hence (ERl ('/\' P)) * (ERl ('/\' Q)) c= (ERl ('/\' Q)) * (ERl ('/\' P)) by A7; :: thesis: verum
end;
suppose A8: ( P <> {} & Q <> {} ) ; :: thesis: (ERl ('/\' P)) * (ERl ('/\' Q)) c= (ERl ('/\' Q)) * (ERl ('/\' P))
let x, y be Element of Y; :: according to RELSET_1:def 2 :: thesis: ( not [x,y] in (ERl ('/\' P)) * (ERl ('/\' Q)) or [x,y] in (ERl ('/\' Q)) * (ERl ('/\' P)) )
assume [x,y] in (ERl ('/\' P)) * (ERl ('/\' Q)) ; :: thesis: [x,y] in (ERl ('/\' Q)) * (ERl ('/\' P))
then consider z being Element of Y such that
A9: [x,z] in ERl ('/\' P) and
A10: [z,y] in ERl ('/\' Q) by RELSET_1:51;
consider A being Subset of Y such that
A11: A in '/\' P and
A12: x in A and
A13: z in A by A9, PARTIT1:def 6;
consider B being Subset of Y such that
A14: B in '/\' Q and
A15: z in B and
A16: y in B by A10, PARTIT1:def 6;
consider hP being Function, FP being Subset-Family of Y such that
A17: dom hP = P and
A18: rng hP = FP and
A19: for d being set st d in P holds
hP . d in d and
A20: A = Intersect FP and
A <> {} by A11, BVFUNC_2:def 1;
consider hQ being Function, FQ being Subset-Family of Y such that
A21: dom hQ = Q and
A22: rng hQ = FQ and
A23: for d being set st d in Q holds
hQ . d in d and
A24: B = Intersect FQ and
B <> {} by A14, BVFUNC_2:def 1;
reconsider P = P, Q = Q as non empty Subset of (PARTITIONS Y) by A8;
deffunc H1( Element of P) -> Element of $1 = EqClass y,$1;
consider hP' being Function of P,(bool Y) such that
A25: for p being Element of P holds hP' . p = H1(p) from FUNCT_2:sch 4();
A26: for d being set st d in P holds
hP' . d in d
proof
let d be set ; :: thesis: ( d in P implies hP' . d in d )
assume d in P ; :: thesis: hP' . d in d
then reconsider d = d as Element of P ;
hP' . d = EqClass y,d by A25;
hence hP' . d in d ; :: thesis: verum
end;
deffunc H2( Element of Q) -> Element of $1 = EqClass x,$1;
consider hQ' being Function of Q,(bool Y) such that
A27: for p being Element of Q holds hQ' . p = H2(p) from FUNCT_2:sch 4();
A28: for d being set st d in Q holds
hQ' . d in d
proof
let d be set ; :: thesis: ( d in Q implies hQ' . d in d )
assume d in Q ; :: thesis: hQ' . d in d
then reconsider d = d as Element of Q ;
hQ' . d = EqClass x,d by A27;
hence hQ' . d in d ; :: thesis: verum
end;
reconsider FP' = rng hP', FQ' = rng hQ' as Subset-Family of Y ;
set A' = Intersect FP';
set B' = Intersect FQ';
A29: dom hP' = P by FUNCT_2:def 1;
for a being set st a in FP' holds
y in a
proof
let a be set ; :: thesis: ( a in FP' implies y in a )
assume a in FP' ; :: thesis: y in a
then consider b being set such that
A30: b in dom hP' and
A31: hP' . b = a by FUNCT_1:def 5;
reconsider b = b as Element of P by A30;
a = EqClass y,b by A25, A31;
hence y in a by EQREL_1:def 8; :: thesis: verum
end;
then A32: y in Intersect FP' by SETFAM_1:58;
A33: dom hQ' = Q by FUNCT_2:def 1;
for a being set st a in FQ' holds
x in a
proof
let a be set ; :: thesis: ( a in FQ' implies x in a )
assume a in FQ' ; :: thesis: x in a
then consider b being set such that
A34: b in dom hQ' and
A35: hQ' . b = a by FUNCT_1:def 5;
reconsider b = b as Element of Q by A34;
a = EqClass x,b by A27, A35;
hence x in a by EQREL_1:def 8; :: thesis: verum
end;
then A36: x in Intersect FQ' by SETFAM_1:58;
reconsider G' = G as non empty Subset of (PARTITIONS Y) by A2, A8;
deffunc H3( set ) -> set = $1;
A37: for d being Element of G' holds bool Y meets H3(d)
proof
let d be Element of G'; :: thesis: bool Y meets H3(d)
d meets d ;
hence bool Y meets d by XBOOLE_1:63; :: thesis: verum
end;
consider h' being Function of G',(bool Y) such that
A38: for d being Element of G' holds h' . d in H3(d) from FUNCT_2:sch 11(A37);
set h = (h' +* hP') +* hQ';
A39: dom ((h' +* hP') +* hQ') = (dom (h' +* hP')) \/ Q by A33, FUNCT_4:def 1
.= ((dom h') \/ P) \/ Q by A29, FUNCT_4:def 1
.= (G \/ P) \/ Q by FUNCT_2:def 1
.= G \/ Q by A2, XBOOLE_1:12
.= G by A3, XBOOLE_1:12 ;
A40: rng ((h' +* hP') +* hQ') c= (rng (h' +* hP')) \/ (rng hQ') by FUNCT_4:18;
rng (h' +* hP') c= (rng h') \/ (rng hP') by FUNCT_4:18;
then rng (h' +* hP') c= bool Y by XBOOLE_1:1;
then (rng (h' +* hP')) \/ (rng hQ') c= bool Y by XBOOLE_1:8;
then reconsider F = rng ((h' +* hP') +* hQ') as Subset-Family of Y by A40, XBOOLE_1:1;
A41: for d being set st d in P holds
((h' +* hP') +* hQ') . d = hP' . d
proof
let d be set ; :: thesis: ( d in P implies ((h' +* hP') +* hQ') . d = hP' . d )
assume A42: d in P ; :: thesis: ((h' +* hP') +* hQ') . d = hP' . d
then reconsider d' = d as Element of P ;
per cases ( d in Q or not d in Q ) ;
suppose A43: d in Q ; :: thesis: ((h' +* hP') +* hQ') . d = hP' . d
then A44: hQ . d in d by A23;
A45: hP . d in d by A19, A42;
A46: hP . d in FP by A17, A18, A42, FUNCT_1:def 5;
then A47: x in hP . d by A12, A20, SETFAM_1:58;
A48: z in hP . d by A13, A20, A46, SETFAM_1:58;
A49: hQ . d in FQ by A21, A22, A43, FUNCT_1:def 5;
then A50: y in hQ . d by A16, A24, SETFAM_1:58;
A51: z in hQ . d by A15, A24, A49, SETFAM_1:58;
thus ((h' +* hP') +* hQ') . d = hQ' . d by A33, A43, FUNCT_4:14
.= EqClass x,d' by A27, A43
.= hP . d by A45, A47, EQREL_1:def 8
.= EqClass z,d' by A45, A48, EQREL_1:def 8
.= hQ . d by A44, A51, EQREL_1:def 8
.= EqClass y,d' by A44, A50, EQREL_1:def 8
.= hP' . d by A25 ; :: thesis: verum
end;
suppose not d in Q ; :: thesis: ((h' +* hP') +* hQ') . d = hP' . d
hence ((h' +* hP') +* hQ') . d = (h' +* hP') . d by A33, FUNCT_4:12
.= hP' . d by A29, A42, FUNCT_4:14 ;
:: thesis: verum
end;
end;
end;
for d being set st d in G holds
((h' +* hP') +* hQ') . d in d
proof
let d be set ; :: thesis: ( d in G implies ((h' +* hP') +* hQ') . d in d )
assume A52: d in G ; :: thesis: ((h' +* hP') +* hQ') . d in d
G = (P \/ Q) \/ G by A2, A3, XBOOLE_1:8, XBOOLE_1:12
.= (G \ (P \/ Q)) \/ (P \/ Q) by XBOOLE_1:39 ;
then A53: ( d in G \ (P \/ Q) or d in P \/ Q ) by A52, XBOOLE_0:def 3;
per cases ( d in Q or d in P or d in G \ (P \/ Q) ) by A53, XBOOLE_0:def 3;
suppose A54: d in Q ; :: thesis: ((h' +* hP') +* hQ') . d in d
then ((h' +* hP') +* hQ') . d = hQ' . d by A33, FUNCT_4:14;
hence ((h' +* hP') +* hQ') . d in d by A28, A54; :: thesis: verum
end;
suppose A55: d in P ; :: thesis: ((h' +* hP') +* hQ') . d in d
then ((h' +* hP') +* hQ') . d = hP' . d by A41;
hence ((h' +* hP') +* hQ') . d in d by A26, A55; :: thesis: verum
end;
suppose A56: d in G \ (P \/ Q) ; :: thesis: ((h' +* hP') +* hQ') . d in d
then A57: d in G by XBOOLE_0:def 5;
A58: (h' +* hP') +* hQ' = h' +* (hP' +* hQ') by FUNCT_4:15;
not d in P \/ Q by A56, XBOOLE_0:def 5;
then not d in dom (hP' +* hQ') by A29, A33, FUNCT_4:def 1;
then ((h' +* hP') +* hQ') . d = h' . d by A58, FUNCT_4:12;
hence ((h' +* hP') +* hQ') . d in d by A38, A57; :: thesis: verum
end;
end;
end;
then Intersect F <> {} by A1, A39, BVFUNC_2:def 5;
then consider t being Element of Y such that
A59: t in Intersect F by SUBSET_1:10;
for a being set st a in FP' holds
t in a
proof
let a be set ; :: thesis: ( a in FP' implies t in a )
assume a in FP' ; :: thesis: t in a
then consider b being set such that
A60: b in dom hP' and
A61: hP' . b = a by FUNCT_1:def 5;
hP' . b = ((h' +* hP') +* hQ') . b by A41, A60;
then a in F by A2, A29, A39, A60, A61, FUNCT_1:def 5;
hence t in a by A59, SETFAM_1:58; :: thesis: verum
end;
then A62: t in Intersect FP' by SETFAM_1:58;
for a being set st a in FQ' holds
t in a
proof
let a be set ; :: thesis: ( a in FQ' implies t in a )
assume a in FQ' ; :: thesis: t in a
then consider b being set such that
A63: b in dom hQ' and
A64: hQ' . b = a by FUNCT_1:def 5;
reconsider b = b as Element of Q by A63;
hQ' . b = ((h' +* hP') +* hQ') . b by A63, FUNCT_4:14;
then a in F by A3, A33, A39, A63, A64, FUNCT_1:def 5;
hence t in a by A59, SETFAM_1:58; :: thesis: verum
end;
then A65: t in Intersect FQ' by SETFAM_1:58;
then Intersect FQ' in '/\' Q by A28, A33, BVFUNC_2:def 1;
then A66: [x,t] in ERl ('/\' Q) by A36, A65, PARTIT1:def 6;
Intersect FP' in '/\' P by A26, A29, A62, BVFUNC_2:def 1;
then [t,y] in ERl ('/\' P) by A32, A62, PARTIT1:def 6;
hence [x,y] in (ERl ('/\' Q)) * (ERl ('/\' P)) by A66, RELSET_1:51; :: thesis: verum
end;
end;