let Y be non empty set ; :: thesis: for G being Subset of (PARTITIONS Y)
for a being Element of Funcs (Y,BOOLEAN)
for PA being a_partition of Y holds 'not' (All (a,PA,G)) = Ex (('not' a),PA,G)

let G be Subset of (PARTITIONS Y); :: thesis: for a being Element of Funcs (Y,BOOLEAN)
for PA being a_partition of Y holds 'not' (All (a,PA,G)) = Ex (('not' a),PA,G)

let a be Element of Funcs (Y,BOOLEAN); :: thesis: for PA being a_partition of Y holds 'not' (All (a,PA,G)) = Ex (('not' a),PA,G)
let PA be a_partition of Y; :: thesis: 'not' (All (a,PA,G)) = Ex (('not' a),PA,G)
consider k3 being Function such that
A1: 'not' (All (a,PA,G)) = k3 and
A2: dom k3 = Y and
rng k3 c= BOOLEAN by FUNCT_2:def 2;
consider k4 being Function such that
A3: Ex (('not' a),PA,G) = k4 and
A4: dom k4 = Y and
rng k4 c= BOOLEAN by FUNCT_2:def 2;
for z being Element of Y holds ('not' (B_INF (a,(CompF (PA,G))))) . z = (B_SUP (('not' a),(CompF (PA,G)))) . z
proof
let z be Element of Y; :: thesis: ('not' (B_INF (a,(CompF (PA,G))))) . z = (B_SUP (('not' a),(CompF (PA,G)))) . z
per cases ( ( ( for x being Element of Y st x in EqClass (z,(CompF (PA,G))) holds
a . x = TRUE ) & ex x being Element of Y st
( x in EqClass (z,(CompF (PA,G))) & ('not' a) . x = TRUE ) ) or ( ( for x being Element of Y st x in EqClass (z,(CompF (PA,G))) holds
a . x = TRUE ) & ( for x being Element of Y holds
( not x in EqClass (z,(CompF (PA,G))) or not ('not' a) . x = TRUE ) ) ) or ( ex x being Element of Y st
( x in EqClass (z,(CompF (PA,G))) & not a . x = TRUE ) & ex x being Element of Y st
( x in EqClass (z,(CompF (PA,G))) & ('not' a) . x = TRUE ) ) or ( ex x being Element of Y st
( x in EqClass (z,(CompF (PA,G))) & not a . x = TRUE ) & ( for x being Element of Y holds
( not x in EqClass (z,(CompF (PA,G))) or not ('not' a) . x = TRUE ) ) ) )
;
suppose A5: ( ( for x being Element of Y st x in EqClass (z,(CompF (PA,G))) holds
a . x = TRUE ) & ex x being Element of Y st
( x in EqClass (z,(CompF (PA,G))) & ('not' a) . x = TRUE ) ) ; :: thesis: ('not' (B_INF (a,(CompF (PA,G))))) . z = (B_SUP (('not' a),(CompF (PA,G)))) . z
then consider x1 being Element of Y such that
A6: x1 in EqClass (z,(CompF (PA,G))) and
A7: ('not' a) . x1 = TRUE ;
'not' (a . x1) = TRUE by A7, MARGREL1:def 19;
then a . x1 = FALSE by MARGREL1:11;
hence ('not' (B_INF (a,(CompF (PA,G))))) . z = (B_SUP (('not' a),(CompF (PA,G)))) . z by A5, A6; :: thesis: verum
end;
suppose A8: ( ( for x being Element of Y st x in EqClass (z,(CompF (PA,G))) holds
a . x = TRUE ) & ( for x being Element of Y holds
( not x in EqClass (z,(CompF (PA,G))) or not ('not' a) . x = TRUE ) ) ) ; :: thesis: ('not' (B_INF (a,(CompF (PA,G))))) . z = (B_SUP (('not' a),(CompF (PA,G)))) . z
then (B_INF (a,(CompF (PA,G)))) . z = TRUE by BVFUNC_1:def 16;
then A9: ('not' (B_INF (a,(CompF (PA,G))))) . z = 'not' TRUE by MARGREL1:def 19;
(B_SUP (('not' a),(CompF (PA,G)))) . z = FALSE by A8, BVFUNC_1:def 17;
hence ('not' (B_INF (a,(CompF (PA,G))))) . z = (B_SUP (('not' a),(CompF (PA,G)))) . z by A9, MARGREL1:11; :: thesis: verum
end;
suppose A10: ( ex x being Element of Y st
( x in EqClass (z,(CompF (PA,G))) & not a . x = TRUE ) & ex x being Element of Y st
( x in EqClass (z,(CompF (PA,G))) & ('not' a) . x = TRUE ) ) ; :: thesis: ('not' (B_INF (a,(CompF (PA,G))))) . z = (B_SUP (('not' a),(CompF (PA,G)))) . z
then (B_INF (a,(CompF (PA,G)))) . z = FALSE by BVFUNC_1:def 16;
then A11: ('not' (B_INF (a,(CompF (PA,G))))) . z = 'not' FALSE by MARGREL1:def 19;
(B_SUP (('not' a),(CompF (PA,G)))) . z = TRUE by A10, BVFUNC_1:def 17;
hence ('not' (B_INF (a,(CompF (PA,G))))) . z = (B_SUP (('not' a),(CompF (PA,G)))) . z by A11, MARGREL1:11; :: thesis: verum
end;
suppose A12: ( ex x being Element of Y st
( x in EqClass (z,(CompF (PA,G))) & not a . x = TRUE ) & ( for x being Element of Y holds
( not x in EqClass (z,(CompF (PA,G))) or not ('not' a) . x = TRUE ) ) ) ; :: thesis: ('not' (B_INF (a,(CompF (PA,G))))) . z = (B_SUP (('not' a),(CompF (PA,G)))) . z
then consider x1 being Element of Y such that
A13: x1 in EqClass (z,(CompF (PA,G))) and
A14: a . x1 <> TRUE ;
('not' a) . x1 <> TRUE by A12, A13;
then 'not' (a . x1) <> TRUE by MARGREL1:def 19;
then 'not' (a . x1) = FALSE by XBOOLEAN:def 3;
hence ('not' (B_INF (a,(CompF (PA,G))))) . z = (B_SUP (('not' a),(CompF (PA,G)))) . z by A14, MARGREL1:11; :: thesis: verum
end;
end;
end;
then for u being set st u in Y holds
k3 . u = k4 . u by A1, A3;
hence 'not' (All (a,PA,G)) = Ex (('not' a),PA,G) by A1, A2, A3, A4, FUNCT_1:2; :: thesis: verum