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

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

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

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

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

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

let PT be set ; :: thesis: ( ( for a being set holds
( a in PT iff ( a in PS & a c= hw ) ) ) implies ( PT \/ (Pmin \ {hw}) is a_partition of X & PT \/ (Pmin \ {hw}) is_finer_than Pmin ) )

assume A4: for a being set holds
( a in PT iff ( a in PS & a c= hw ) ) ; :: thesis: ( PT \/ (Pmin \ {hw}) is a_partition of X & PT \/ (Pmin \ {hw}) is_finer_than Pmin )
A5: union Pmin = X by EQREL_1:def 6;
A6: union PS = X by EQREL_1:def 6;
set P = PT \/ (Pmin \ {hw});
A7: PT c= PT \/ (Pmin \ {hw}) by XBOOLE_1:7;
A8: h in PT by A1, A2, A4;
A9: Pmin \ {hw} c= PT \/ (Pmin \ {hw}) by XBOOLE_1:7;
A10: PT c= PS
proof
let a be set ; :: according to TARSKI:def 3 :: thesis: ( not a in PT or a in PS )
assume A11: a in PT ; :: thesis: a in PS
thus a in PS by A4, A11; :: thesis: verum
end;
then A12: PT c= bool X by XBOOLE_1:1;
A13: Pmin \ {hw} c= Pmin by XBOOLE_1:36;
A14: PT \/ (Pmin \ {hw}) c= bool X by A12, XBOOLE_1:8;
A15: now
let x, y be set ; :: thesis: ( x in PT & y in Pmin \ {hw} implies x misses y )
assume A16: ( x in PT & y in Pmin \ {hw} ) ; :: thesis: x misses y
A17: x c= hw by A4, A16;
A18: ( y in Pmin & not y in {hw} ) by A16, XBOOLE_0:def 5;
then A19: y <> hw by TARSKI:def 1;
now
assume x meets y ; :: thesis: contradiction
then consider a being set such that
A20: ( a in x & a in y ) by XBOOLE_0:3;
hw meets y by A17, A20, XBOOLE_0:3;
hence contradiction by A1, A18, A19, EQREL_1:def 6; :: thesis: verum
end;
hence x misses y ; :: thesis: verum
end;
A21: union (PT \/ (Pmin \ {hw})) = X
proof
thus union (PT \/ (Pmin \ {hw})) c= X :: according to XBOOLE_0:def 10 :: thesis: X c= union (PT \/ (Pmin \ {hw}))
proof
let a be set ; :: according to TARSKI:def 3 :: thesis: ( not a in union (PT \/ (Pmin \ {hw})) or a in X )
assume A22: a in union (PT \/ (Pmin \ {hw})) ; :: thesis: a in X
consider b being set such that
A23: ( a in b & b in PT \/ (Pmin \ {hw}) ) by A22, TARSKI:def 4;
thus a in X by A14, A23; :: thesis: verum
end;
thus X c= union (PT \/ (Pmin \ {hw})) :: thesis: verum
proof
let a be set ; :: according to TARSKI:def 3 :: thesis: ( not a in X or a in union (PT \/ (Pmin \ {hw})) )
assume A24: a in X ; :: thesis: a in union (PT \/ (Pmin \ {hw}))
consider b being set such that
A25: ( a in b & b in Pmin ) by A5, A24, TARSKI:def 4;
per cases ( b = hw or b <> hw ) ;
suppose A26: b = hw ; :: thesis: a in union (PT \/ (Pmin \ {hw}))
consider c being set such that
A27: ( a in c & c in PS ) by A6, A24, TARSKI:def 4;
A28: hw meets c by A25, A26, A27, XBOOLE_0:3;
per cases ( hw c= c or c c= hw ) by A3, A27, A28;
suppose hw c= c ; :: thesis: a in union (PT \/ (Pmin \ {hw}))
then A29: h c= c by A1, XBOOLE_1:1;
h meets c
proof
assume A30: h misses c ; :: thesis: contradiction
consider x being set such that
A31: x in h by XBOOLE_0:def 1;
thus contradiction by A29, A30, A31, XBOOLE_0:3; :: thesis: verum
end;
then h = c by A2, A27, EQREL_1:def 6;
hence a in union (PT \/ (Pmin \ {hw})) by A7, A8, A27, TARSKI:def 4; :: thesis: verum
end;
suppose c c= hw ; :: thesis: a in union (PT \/ (Pmin \ {hw}))
then c in PT by A4, A27;
hence a in union (PT \/ (Pmin \ {hw})) by A7, A27, TARSKI:def 4; :: thesis: verum
end;
end;
end;
suppose b <> hw ; :: thesis: a in union (PT \/ (Pmin \ {hw}))
end;
end;
end;
end;
now
let A be Subset of X; :: thesis: ( A in PT \/ (Pmin \ {hw}) implies ( A <> {} & ( for B being Subset of X holds
( not B in PT \/ (Pmin \ {hw}) or A = B or A misses B ) ) ) )

assume A32: A in PT \/ (Pmin \ {hw}) ; :: thesis: ( A <> {} & ( for B being Subset of X holds
( not B in PT \/ (Pmin \ {hw}) or A = B or A misses B ) ) )

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

thus for B being Subset of X holds
( not B in PT \/ (Pmin \ {hw}) or A = B or A misses B ) :: thesis: verum
proof
let B be Subset of X; :: thesis: ( not B in PT \/ (Pmin \ {hw}) or A = B or A misses B )
assume A33: B in PT \/ (Pmin \ {hw}) ; :: thesis: ( A = B or A misses B )
per cases ( A in PT or A in Pmin \ {hw} ) by A32, XBOOLE_0:def 3;
suppose A34: A in PT ; :: thesis: ( A = B or A misses B )
per cases ( B in PT or B in Pmin \ {hw} ) by A33, XBOOLE_0:def 3;
suppose B in PT ; :: thesis: ( A = B or A misses B )
hence ( A = B or A misses B ) by A10, A34, EQREL_1:def 6; :: thesis: verum
end;
suppose B in Pmin \ {hw} ; :: thesis: ( A = B or A misses B )
hence ( A = B or A misses B ) by A15, A34; :: thesis: verum
end;
end;
end;
suppose A35: A in Pmin \ {hw} ; :: thesis: ( A = B or A misses B )
per cases ( B in PT or B in Pmin \ {hw} ) by A33, XBOOLE_0:def 3;
suppose B in PT ; :: thesis: ( A = B or A misses B )
hence ( A = B or A misses B ) by A15, A35; :: thesis: verum
end;
suppose B in Pmin \ {hw} ; :: thesis: ( A = B or A misses B )
hence ( A = B or A misses B ) by A13, A35, EQREL_1:def 6; :: thesis: verum
end;
end;
end;
end;
end;
end;
hence PT \/ (Pmin \ {hw}) is a_partition of X by A14, A21, EQREL_1:def 6; :: thesis: PT \/ (Pmin \ {hw}) is_finer_than Pmin
let a be set ; :: according to SETFAM_1:def 2 :: thesis: ( not a in PT \/ (Pmin \ {hw}) or ex b1 being set st
( b1 in Pmin & a c= b1 ) )

assume A36: a in PT \/ (Pmin \ {hw}) ; :: thesis: ex b1 being set st
( b1 in Pmin & a c= b1 )

per cases ( a in PT or a in Pmin \ {hw} ) by A36, XBOOLE_0:def 3;
suppose a in PT ; :: thesis: ex b1 being set st
( b1 in Pmin & a c= b1 )

then a c= hw by A4;
hence ex b1 being set st
( b1 in Pmin & a c= b1 ) by A1; :: thesis: verum
end;
suppose a in Pmin \ {hw} ; :: thesis: ex b1 being set st
( b1 in Pmin & a c= b1 )

hence ex b1 being set st
( b1 in Pmin & a c= b1 ) by A13; :: thesis: verum
end;
end;