let R be RelStr ; :: thesis: ( R is finite implies R is with_finite_chromatic# )
set cR = the carrier of R;
assume A1: R is finite ; :: thesis: R is with_finite_chromatic#
per cases ( R is empty or not R is empty ) ;
suppose R is empty ; :: thesis: R is with_finite_chromatic#
then reconsider S = {} as a_partition of the carrier of R by EQREL_1:45;
for x being set st x in S holds
x is StableSet of R ;
then reconsider S = S as Coloring of R by DILWORTH:def 12;
take S ; :: according to MYCIELSK:def 2 :: thesis: S is finite
thus S is finite ; :: thesis: verum
end;
suppose A2: not R is empty ; :: thesis: R is with_finite_chromatic#
reconsider cRp1 = the carrier of R as non empty finite set by A2, A1;
set S = SmallestPartition the carrier of R;
deffunc H1( set ) -> set = {c1};
A3: SmallestPartition the carrier of R = { H1(x) where x is Element of cRp1 : S1[x] } by EQREL_1:37;
A4: { H1(x) where x is Element of cRp1 : S1[x] } is finite from PRE_CIRC:sch 1();
now :: thesis: for z being set st z in SmallestPartition the carrier of R holds
z is StableSet of R
let z be set ; :: thesis: ( z in SmallestPartition the carrier of R implies z is StableSet of R )
assume z in SmallestPartition the carrier of R ; :: thesis: z is StableSet of R
then ex x being Element of the carrier of R st z = {x} by A3;
hence z is StableSet of R by A2, SUBSET_1:33; :: thesis: verum
end;
then reconsider S = SmallestPartition the carrier of R as Coloring of R by DILWORTH:def 12;
take S ; :: according to MYCIELSK:def 2 :: thesis: S is finite
thus S is finite by A4; :: thesis: verum
end;
end;