let R be transitive antisymmetric with_finite_clique# RelStr ; ex A being Coloring of R st card A = clique# R
defpred S1[ Nat] means for P being transitive antisymmetric with_finite_clique# RelStr st clique# P = $1 holds
ex A being Coloring of P st card A = clique# P;
P1:
S1[ 0 ]
P2:
for n being Nat st S1[n] holds
S1[n + 1]
proof
let n be
Nat;
( S1[n] implies S1[n + 1] )
assume AA:
S1[
n]
;
S1[n + 1]
let P be
transitive antisymmetric with_finite_clique# RelStr ;
( clique# P = n + 1 implies ex A being Coloring of P st card A = clique# P )
assume A1:
clique# P = n + 1
;
ex A being Coloring of P st card A = clique# P
then A1a:
not
P is
empty
;
reconsider PP =
P as non
empty transitive antisymmetric with_finite_clique# RelStr by A1;
set M =
maximals PP;
set cP = the
carrier of
P;
set cPM = the
carrier of
P \ (maximals PP);
reconsider cPM = the
carrier of
P \ (maximals PP) as
Subset of
P ;
set PM =
subrelstr cPM;
cPM:
cPM = the
carrier of
(subrelstr cPM)
by YELLOW_0:def 15;
reconsider PM =
subrelstr cPM as
transitive antisymmetric with_finite_clique# RelStr ;
consider Ca being
finite Clique of
PM such that B1a:
card Ca = clique# PM
by Lheight;
C1b:
Ca is
Clique of
P
by SPClique;
consider C being
finite Clique of
P such that B1:
card C = n + 1
by A1, Lheight;
B1b:
C <> {}
by B1;
set cC =
C /\ cPM;
reconsider cC =
C /\ cPM as
finite Clique of
PM by SPClique1;
consider m being
Element of
P such that F1:
m in C
and G1:
m is_maximal_wrt C,the
InternalRel of
P
by A1a, B1b, BAGORDER:7;
G1a:
m is_maximal_in C
by G1, WAYBEL_4:def 25;
H1:
C /\ (maximals PP) = {m}
D1b:
cC = (C /\ the carrier of P) \ (C /\ (maximals PP))
by XBOOLE_1:50;
C /\ the
carrier of
P = C
by XBOOLE_1:28;
then D1:
card cC =
(card C) - (card {m})
by F1, H1, D1b, EULER_1:5
.=
(n + 1) - 1
by B1, CARD_1:50
.=
n
;
D1a:
clique# PM >= card cC
by Lheight;
E1:
clique# PM <= clique# P
by Hsubp0;
now assume A2:
clique# PM = n + 1
;
contradictionthen B2:
Ca <> {}
by B1a;
B2a:
not
PM is
empty
by A2;
then consider x being
Element of
PM such that D2e:
x in Ca
and D2:
x is_maximal_wrt Ca,the
InternalRel of
PM
by B2, BAGORDER:7;
D2a:
x is_maximal_in Ca
by D2, WAYBEL_4:def 25;
reconsider x9 =
x as
Element of
P by B2a, YELLOW_0:59;
consider y being
Element of
P such that E2:
y is_maximal_in [#] P
and F2:
(
x9 = y or
x9 < y )
by Pminmax;
set Cb =
Ca \/ {y};
then reconsider Cb =
Ca \/ {y} as
finite Clique of
P ;
y in maximals PP
by E2, Lmax;
then
not
y in Ca
by cPM, XBOOLE_0:def 5;
then G2:
card Cb = (n + 1) + 1
by B1a, A2, CARD_2:54;
card Cb <= n + 1
by A1, Lheight;
then
n + 1
<= n + 0
by G2, XREAL_1:8;
hence
contradiction
by XREAL_1:8;
verum end;
then
clique# PM < n + 1
by A1, E1, XXREAL_0:1;
then
clique# PM <= n
by NAT_1:13;
then
clique# PM = n
by D1, D1a, XXREAL_0:1;
then consider Aa being
Coloring of
PM such that K1:
card Aa = n
by AA;
reconsider Ab =
Aa as
finite set by K1;
set A =
Aa \/ {(maximals PP)};
L1b:
the
carrier of
P = cPM \/ (maximals PP)
by XBOOLE_1:45;
{(maximals PP)} is
a_partition of
maximals PP
by EQREL_1:48;
then L1:
Aa \/ {(maximals PP)} is
a_partition of the
carrier of
P
by XBOOLE_1:79, L1b, cPM, SPpart0;
then reconsider A =
Aa \/ {(maximals PP)} as
Coloring of
P by L1, LACpart;
take
A
;
card A = clique# P
not
maximals PP in Ab
by cPM, XBOOLE_1:38;
hence
card A = clique# P
by A1, K1, CARD_2:54;
verum
end;
for n being Nat holds S1[n]
from NAT_1:sch 2(P1, P2);
hence
ex A being Coloring of R st card A = clique# R
; verum