let X be set ; for P being a_partition of X ex EqR being Equivalence_Relation of X st P = Class EqR
let P be a_partition of X; ex EqR being Equivalence_Relation of X st P = Class EqR
A1:
( X <> {} implies ex EqR being Equivalence_Relation of X st P = Class EqR )
proof
defpred S1[
object ,
object ]
means ex
A being
Subset of
X st
(
A in P & $1
in A & $2
in A );
assume
X <> {}
;
ex EqR being Equivalence_Relation of X st P = Class EqR
A2:
for
x,
y,
z being
object st
S1[
x,
y] &
S1[
y,
z] holds
S1[
x,
z]
proof
let x,
y,
z be
object ;
( S1[x,y] & S1[y,z] implies S1[x,z] )
given A being
Subset of
X such that A3:
A in P
and A4:
(
x in A &
y in A )
;
( not S1[y,z] or S1[x,z] )
given B being
Subset of
X such that A5:
B in P
and A6:
(
y in B &
z in B )
;
S1[x,z]
(
A = B or
A misses B )
by A3, A5, Def4;
hence
S1[
x,
z]
by A3, A4, A6, XBOOLE_0:3;
verum
end;
A7:
union P = X
by Def4;
A8:
for
x being
object st
x in X holds
S1[
x,
x]
A11:
for
x,
y being
object st
S1[
x,
y] holds
S1[
y,
x]
;
consider R being
Equivalence_Relation of
X such that A12:
for
x,
y being
object holds
(
[x,y] in R iff (
x in X &
y in X &
S1[
x,
y] ) )
from EQREL_1:sch 1(A8, A11, A2);
take
R
;
P = Class R
hence
P = Class R
by SETFAM_1:31;
verum
end;
( X = {} implies ex EqR being Equivalence_Relation of X st P = Class EqR )
hence
ex EqR being Equivalence_Relation of X st P = Class EqR
by A1; verum