let R be transitive antisymmetric with_finite_clique# RelStr ; :: thesis: 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;
A1: S1[ 0 ]
proof
let P be transitive antisymmetric with_finite_clique# RelStr ; :: thesis: ( clique# P = 0 implies ex A being Coloring of P st card A = clique# P )
assume A2: clique# P = 0 ; :: thesis: ex A being Coloring of P st card A = clique# P
then P is empty ;
then reconsider C = {} as Coloring of P by EQREL_1:45;
take C ; :: thesis: card C = clique# P
thus card C = clique# P by A2; :: thesis: verum
end;
A3: for n being Nat st S1[n] holds
S1[n + 1]
proof
let n be Nat; :: thesis: ( S1[n] implies S1[n + 1] )
assume A4: S1[n] ; :: thesis: S1[n + 1]
let P be transitive antisymmetric with_finite_clique# RelStr ; :: thesis: ( clique# P = n + 1 implies ex A being Coloring of P st card A = clique# P )
assume A5: clique# P = n + 1 ; :: thesis: ex A being Coloring of P st card A = clique# P
then A6: not P is empty ;
reconsider PP = P as non empty transitive antisymmetric with_finite_clique# RelStr by A5;
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;
A7: 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
A8: card Ca = clique# PM by Def4;
A9: Ca is Clique of P by Th28;
consider C being finite Clique of P such that
A10: card C = n + 1 by A5, Def4;
A11: C <> {} by A10;
set cC = C /\ cPM;
reconsider cC = C /\ cPM as finite Clique of PM by Th29;
consider m being Element of P such that
A12: m in C and
A13: m is_maximal_wrt C, the InternalRel of P by A6, A11, BAGORDER:6;
A14: m is_maximal_in C by A13, WAYBEL_4:def 24;
A15: C /\ (maximals PP) = {m}
proof
thus C /\ (maximals PP) c= {m} :: according to XBOOLE_0:def 10 :: thesis: {m} c= C /\ (maximals PP)
proof
let a be object ; :: according to TARSKI:def 3 :: thesis: ( not a in C /\ (maximals PP) or a in {m} )
assume A16: a in C /\ (maximals PP) ; :: thesis: a in {m}
then A17: a in C by XBOOLE_0:def 4;
A18: a in maximals PP by A16, XBOOLE_0:def 4;
reconsider a9 = a as Element of P by A16;
A19: a9 is_maximal_in [#] P by A18, Def10;
hence a in {m} by TARSKI:def 1; :: thesis: verum
end;
thus {m} c= C /\ (maximals PP) :: thesis: verum
proof
let a be object ; :: according to TARSKI:def 3 :: thesis: ( not a in {m} or a in C /\ (maximals PP) )
assume a in {m} ; :: thesis: a in C /\ (maximals PP)
then A21: a = m by TARSKI:def 1;
now :: thesis: a in maximals PP
assume A22: not a in maximals PP ; :: thesis: contradiction
consider y being Element of P such that
A23: y is_maximal_in [#] P and
A24: ( m = y or m < y ) by A6, Th38;
set Cm = C \/ {y};
then reconsider Cm = C \/ {y} as finite Clique of P ;
not y in C by A21, A22, A23, Def10, A24, A14, WAYBEL_4:55;
then card Cm = (card C) + 1 by CARD_2:41;
then (n + 1) + 1 <= (n + 1) + 0 by A10, A5, Def4;
hence contradiction by XREAL_1:6; :: thesis: verum
end;
hence a in C /\ (maximals PP) by A21, A12, XBOOLE_0:def 4; :: thesis: verum
end;
end;
A25: cC = (C /\ the carrier of P) \ (C /\ (maximals PP)) by XBOOLE_1:50;
C /\ the carrier of P = C by XBOOLE_1:28;
then A26: card cC = (card C) - (card {m}) by A12, A15, A25, EULER_1:4
.= (n + 1) - 1 by A10, CARD_1:30
.= n ;
A27: clique# PM >= card cC by Def4;
A28: clique# PM <= clique# P by Th42;
now :: thesis: not clique# PM = n + 1
assume A29: clique# PM = n + 1 ; :: thesis: contradiction
then A30: Ca <> {} by A8;
A31: not PM is empty by A29;
then consider x being Element of PM such that
A32: x in Ca and
A33: x is_maximal_wrt Ca, the InternalRel of PM by A30, BAGORDER:6;
A34: x is_maximal_in Ca by A33, WAYBEL_4:def 24;
reconsider x9 = x as Element of P by A31, YELLOW_0:58;
consider y being Element of P such that
A35: y is_maximal_in [#] P and
A36: ( x9 = y or x9 < y ) by Th38;
set Cb = Ca \/ {y};
then reconsider Cb = Ca \/ {y} as finite Clique of P ;
y in maximals PP by A35, Def10;
then not y in Ca by A7, XBOOLE_0:def 5;
then A37: card Cb = (n + 1) + 1 by A8, A29, CARD_2:41;
card Cb <= n + 1 by A5, Def4;
then n + 1 <= n + 0 by A37, XREAL_1:6;
hence contradiction by XREAL_1:6; :: thesis: verum
end;
then clique# PM < n + 1 by A5, A28, XXREAL_0:1;
then clique# PM <= n by NAT_1:13;
then clique# PM = n by A26, A27, XXREAL_0:1;
then consider Aa being Coloring of PM such that
A38: card Aa = n by A4;
reconsider Ab = Aa as finite set by A38;
set A = Aa \/ {(maximals PP)};
A39: the carrier of P = cPM \/ (maximals PP) by XBOOLE_1:45;
{(maximals PP)} is a_partition of maximals PP by EQREL_1:39;
then A40: Aa \/ {(maximals PP)} is a_partition of the carrier of P by A39, A7, Th3, XBOOLE_1:79;
now :: thesis: for x being set st x in Aa \/ {(maximals PP)} holds
x is StableSet of P
let x be set ; :: thesis: ( x in Aa \/ {(maximals PP)} implies b1 is StableSet of P )
assume A41: x in Aa \/ {(maximals PP)} ; :: thesis: b1 is StableSet of P
end;
then reconsider A = Aa \/ {(maximals PP)} as Coloring of P by A40, Def12;
take A ; :: thesis: card A = clique# P
not maximals PP in Ab by A7, XBOOLE_1:38;
hence card A = clique# P by A5, A38, CARD_2:41; :: thesis: verum
end;
for n being Nat holds S1[n] from NAT_1:sch 2(A1, A3);
hence ex A being Coloring of R st card A = clique# R ; :: thesis: verum