let X, h be non empty set ; :: thesis: ( h c= X implies for Pmax being a_partition of X st ex hy being set st
( hy in Pmax & hy c= h ) & ( for x being set holds
( not x in Pmax or x c= h or h c= x or h misses x ) ) holds
for Pb being set st ( for x being set holds
( x in Pb iff ( x in Pmax & x misses h ) ) ) holds
( Pb \/ {h} is a_partition of X & Pmax is_finer_than Pb \/ {h} & ( for Pmin being a_partition of X st Pmax is_finer_than Pmin holds
for hw being set st hw in Pmin & h c= hw holds
Pb \/ {h} is_finer_than Pmin ) ) )

assume A1: h c= X ; :: thesis: for Pmax being a_partition of X st ex hy being set st
( hy in Pmax & hy c= h ) & ( for x being set holds
( not x in Pmax or x c= h or h c= x or h misses x ) ) holds
for Pb being set st ( for x being set holds
( x in Pb iff ( x in Pmax & x misses h ) ) ) holds
( Pb \/ {h} is a_partition of X & Pmax is_finer_than Pb \/ {h} & ( for Pmin being a_partition of X st Pmax is_finer_than Pmin holds
for hw being set st hw in Pmin & h c= hw holds
Pb \/ {h} is_finer_than Pmin ) )

let Pmax be a_partition of X; :: thesis: ( ex hy being set st
( hy in Pmax & hy c= h ) & ( for x being set holds
( not x in Pmax or x c= h or h c= x or h misses x ) ) implies for Pb being set st ( for x being set holds
( x in Pb iff ( x in Pmax & x misses h ) ) ) holds
( Pb \/ {h} is a_partition of X & Pmax is_finer_than Pb \/ {h} & ( for Pmin being a_partition of X st Pmax is_finer_than Pmin holds
for hw being set st hw in Pmin & h c= hw holds
Pb \/ {h} is_finer_than Pmin ) ) )

assume that
A2: ex hy being set st
( hy in Pmax & hy c= h ) and
A3: for x being set holds
( not x in Pmax or x c= h or h c= x or h misses x ) ; :: thesis: for Pb being set st ( for x being set holds
( x in Pb iff ( x in Pmax & x misses h ) ) ) holds
( Pb \/ {h} is a_partition of X & Pmax is_finer_than Pb \/ {h} & ( for Pmin being a_partition of X st Pmax is_finer_than Pmin holds
for hw being set st hw in Pmin & h c= hw holds
Pb \/ {h} is_finer_than Pmin ) )

A4: union Pmax = X by EQREL_1:def 6;
let Pb be set ; :: thesis: ( ( for x being set holds
( x in Pb iff ( x in Pmax & x misses h ) ) ) implies ( Pb \/ {h} is a_partition of X & Pmax is_finer_than Pb \/ {h} & ( for Pmin being a_partition of X st Pmax is_finer_than Pmin holds
for hw being set st hw in Pmin & h c= hw holds
Pb \/ {h} is_finer_than Pmin ) ) )

assume A5: for x being set holds
( x in Pb iff ( x in Pmax & x misses h ) ) ; :: thesis: ( Pb \/ {h} is a_partition of X & Pmax is_finer_than Pb \/ {h} & ( for Pmin being a_partition of X st Pmax is_finer_than Pmin holds
for hw being set st hw in Pmin & h c= hw holds
Pb \/ {h} is_finer_than Pmin ) )

set P = Pb \/ {h};
A6: Pb c= Pb \/ {h} by XBOOLE_1:7;
A7: h in {h} by TARSKI:def 1;
A8: {h} c= Pb \/ {h} by XBOOLE_1:7;
A9: now
let s be set ; :: thesis: ( s in Pmax & h c= s implies h = s )
assume A10: ( s in Pmax & h c= s ) ; :: thesis: h = s
consider hy being set such that
A11: ( hy in Pmax & hy c= h ) by A2;
hy <> {} by A11, EQREL_1:def 6;
then hy meets s by A10, A11, Lm4, XBOOLE_1:1;
then s = hy by A10, A11, EQREL_1:def 6;
hence h = s by A10, A11, XBOOLE_0:def 10; :: thesis: verum
end;
A12: Pb c= Pmax
proof
let s be set ; :: according to TARSKI:def 3 :: thesis: ( not s in Pb or s in Pmax )
assume A13: s in Pb ; :: thesis: s in Pmax
thus s in Pmax by A5, A13; :: thesis: verum
end;
then A14: Pb c= bool X by XBOOLE_1:1;
{h} c= bool X
proof
let s be set ; :: according to TARSKI:def 3 :: thesis: ( not s in {h} or s in bool X )
assume s in {h} ; :: thesis: s in bool X
then s = h by TARSKI:def 1;
hence s in bool X by A1; :: thesis: verum
end;
then A15: Pb \/ {h} c= bool X by A14, XBOOLE_1:8;
A16: union (Pb \/ {h}) = X
proof
thus union (Pb \/ {h}) c= X :: according to XBOOLE_0:def 10 :: thesis: X c= union (Pb \/ {h})
proof
let s be set ; :: according to TARSKI:def 3 :: thesis: ( not s in union (Pb \/ {h}) or s in X )
assume A17: s in union (Pb \/ {h}) ; :: thesis: s in X
consider t being set such that
A18: ( s in t & t in Pb \/ {h} ) by A17, TARSKI:def 4;
thus s in X by A15, A18; :: thesis: verum
end;
thus X c= union (Pb \/ {h}) :: thesis: verum
proof
let s be set ; :: according to TARSKI:def 3 :: thesis: ( not s in X or s in union (Pb \/ {h}) )
assume A19: s in X ; :: thesis: s in union (Pb \/ {h})
consider t being set such that
A20: ( s in t & t in Pmax ) by A4, A19, TARSKI:def 4;
end;
end;
now
let A be Subset of X; :: thesis: ( A in Pb \/ {h} implies ( A <> {} & ( for B being Subset of X holds
( not B in Pb \/ {h} or A = B or A misses B ) ) ) )

assume A23: A in Pb \/ {h} ; :: thesis: ( A <> {} & ( for B being Subset of X holds
( not B in Pb \/ {h} or A = B or A misses B ) ) )

now end;
hence A <> {} ; :: thesis: for B being Subset of X holds
( not B in Pb \/ {h} or A = B or A misses B )

thus for B being Subset of X holds
( not B in Pb \/ {h} or A = B or A misses B ) :: thesis: verum
proof
let B be Subset of X; :: thesis: ( not B in Pb \/ {h} or A = B or A misses B )
assume A24: B in Pb \/ {h} ; :: thesis: ( A = B or A misses B )
per cases ( A in Pb or A in {h} ) by A23, XBOOLE_0:def 3;
suppose A25: A in Pb ; :: thesis: ( A = B or A misses B )
per cases ( B in Pb or B in {h} ) by A24, XBOOLE_0:def 3;
suppose B in Pb ; :: thesis: ( A = B or A misses B )
hence ( A = B or A misses B ) by A12, A25, EQREL_1:def 6; :: thesis: verum
end;
suppose B in {h} ; :: thesis: ( A = B or A misses B )
then B = h by TARSKI:def 1;
hence ( A = B or A misses B ) by A5, A25; :: thesis: verum
end;
end;
end;
suppose A26: A in {h} ; :: thesis: ( A = B or A misses B )
per cases ( B in Pb or B in {h} ) by A24, XBOOLE_0:def 3;
suppose A27: B in Pb ; :: thesis: ( A = B or A misses B )
A = h by A26, TARSKI:def 1;
hence ( A = B or A misses B ) by A5, A27; :: thesis: verum
end;
suppose B in {h} ; :: thesis: ( A = B or A misses B )
end;
end;
end;
end;
end;
end;
hence Pb \/ {h} is a_partition of X by A15, A16, EQREL_1:def 6; :: thesis: ( Pmax is_finer_than Pb \/ {h} & ( for Pmin being a_partition of X st Pmax is_finer_than Pmin holds
for hw being set st hw in Pmin & h c= hw holds
Pb \/ {h} is_finer_than Pmin ) )

thus Pmax is_finer_than Pb \/ {h} :: thesis: for Pmin being a_partition of X st Pmax is_finer_than Pmin holds
for hw being set st hw in Pmin & h c= hw holds
Pb \/ {h} is_finer_than Pmin
proof
let x be set ; :: according to SETFAM_1:def 2 :: thesis: ( not x in Pmax or ex b1 being set st
( b1 in Pb \/ {h} & x c= b1 ) )

assume A28: x in Pmax ; :: thesis: ex b1 being set st
( b1 in Pb \/ {h} & x c= b1 )

per cases ( x c= h or not x c= h ) ;
suppose x c= h ; :: thesis: ex b1 being set st
( b1 in Pb \/ {h} & x c= b1 )

hence ex b1 being set st
( b1 in Pb \/ {h} & x c= b1 ) by A7, A8; :: thesis: verum
end;
suppose A29: not x c= h ; :: thesis: ex b1 being set st
( b1 in Pb \/ {h} & x c= b1 )

per cases ( h c= x or h misses x ) by A3, A28, A29;
suppose h c= x ; :: thesis: ex b1 being set st
( b1 in Pb \/ {h} & x c= b1 )

then h = x by A9, A28;
hence ex b1 being set st
( b1 in Pb \/ {h} & x c= b1 ) by A7, A8; :: thesis: verum
end;
suppose h misses x ; :: thesis: ex b1 being set st
( b1 in Pb \/ {h} & x c= b1 )

then x in Pb by A5, A28;
hence ex b1 being set st
( b1 in Pb \/ {h} & x c= b1 ) by A6; :: thesis: verum
end;
end;
end;
end;
end;
let Pmin be a_partition of X; :: thesis: ( Pmax is_finer_than Pmin implies for hw being set st hw in Pmin & h c= hw holds
Pb \/ {h} is_finer_than Pmin )

assume A30: Pmax is_finer_than Pmin ; :: thesis: for hw being set st hw in Pmin & h c= hw holds
Pb \/ {h} is_finer_than Pmin

let hw be set ; :: thesis: ( hw in Pmin & h c= hw implies Pb \/ {h} is_finer_than Pmin )
assume A31: ( hw in Pmin & h c= hw ) ; :: thesis: Pb \/ {h} is_finer_than Pmin
let s be set ; :: according to SETFAM_1:def 2 :: thesis: ( not s in Pb \/ {h} or ex b1 being set st
( b1 in Pmin & s c= b1 ) )

assume A32: s in Pb \/ {h} ; :: thesis: ex b1 being set st
( b1 in Pmin & s c= b1 )

per cases ( s in Pb or s in {h} ) by A32, XBOOLE_0:def 3;
suppose s in Pb ; :: thesis: ex b1 being set st
( b1 in Pmin & s c= b1 )

then s in Pmax by A5;
then consider t being set such that
A33: ( t in Pmin & s c= t ) by A30, SETFAM_1:def 2;
thus ex b1 being set st
( b1 in Pmin & s c= b1 ) by A33; :: thesis: verum
end;
suppose s in {h} ; :: thesis: ex b1 being set st
( b1 in Pmin & s c= b1 )

then s = h by TARSKI:def 1;
hence ex b1 being set st
( b1 in Pmin & s c= b1 ) by A31; :: thesis: verum
end;
end;