let R be transitive antisymmetric with_finite_stability# RelStr ; :: thesis: ex C being Clique-partition of R st card C = stability# R
per cases ( R is finite or not R is finite ) ;
suppose R is finite ; :: thesis: ex C being Clique-partition of R st card C = stability# R
end;
suppose S0: not R is finite ; :: thesis: ex C being Clique-partition of R st card C = stability# R
defpred S1[ Nat] means for P being non empty transitive antisymmetric with_finite_stability# RelStr st stability# P = $1 holds
ex C being Clique-partition of P st card C = stability# P;
P1: S1[ 0 ] ;
P2: for k being Nat st S1[k] holds
S1[k + 1]
proof
let k be Nat; :: thesis: ( S1[k] implies S1[k + 1] )
assume A: S1[k] ; :: thesis: S1[k + 1]
let P be non empty transitive antisymmetric with_finite_stability# RelStr ; :: thesis: ( stability# P = k + 1 implies ex C being Clique-partition of P st card C = stability# P )
assume B: stability# P = k + 1 ; :: thesis: ex C being Clique-partition of P st card C = stability# P
consider C being non empty Subset of P such that
C: C is strong-chain and
D: for D being Subset of P holds
( not D is strong-chain or not C c< D ) by Maxsc;
set cP = the carrier of P;
per cases ( C = the carrier of P or C <> the carrier of P ) ;
suppose S1: C = the carrier of P ; :: thesis: ex C being Clique-partition of P st card C = stability# P
for x being set st x in {C} holds
x is Clique of P by C, TARSKI:def 1;
then reconsider Cp = {C} as Clique-partition of P by LCpart, S1, EQREL_1:48;
take Cp ; :: thesis: card Cp = stability# P
R: the carrier of P = [#] P ;
thus card Cp = 1 by CARD_1:50
.= stability# P by R, C, S1, Width3 ; :: thesis: verum
end;
suppose C <> the carrier of P ; :: thesis: ex C being Clique-partition of P st card C = stability# P
then S1a: C c< the carrier of P by XBOOLE_0:def 8;
set cP9 = the carrier of P \ C;
E: the carrier of P \ (the carrier of P \ C) = the carrier of P /\ C by XBOOLE_1:48
.= C by XBOOLE_1:28 ;
reconsider cP9 = the carrier of P \ C as Subset of P ;
set P9 = subrelstr cP9;
cP9 <> {} by S1a, XBOOLE_1:105;
then reconsider P9 = subrelstr cP9 as non empty transitive antisymmetric with_finite_stability# RelStr ;
cP9c: cP9 = the carrier of P9 by YELLOW_0:def 15;
G: stability# P9 <= k + 1 by B, Wsubp0;
H: stability# P9 <> k + 1
proof
assume AA: stability# P9 = k + 1 ; :: thesis: contradiction
consider A being finite StableSet of P9 such that
A1: card A = stability# P9 by Lwidth;
reconsider A9 = A as non empty finite StableSet of P by A1, SPAChain1;
defpred S2[ set , set , set ] means for c being set holds
( not c in $2 or not $1 /\ $3 c= c or ex d being set st
( d in $2 & d <> c & $3 /\ d <> {} ) );
defpred S3[ finite Subset of P, set ] means for p being Clique-partition of (subrelstr $1) st card p <= stability# P holds
S2[$1,p,$2];
defpred S4[ set , set ] means ex S being non empty finite Subset of P st
( $2 = S & $1 in $2 & S3[S,C \/ {$1}] );
P: for x being set st x in A holds
ex y being set st S4[x,y]
proof
let a be set ; :: thesis: ( a in A implies ex y being set st S4[a,y] )
assume A2: a in A ; :: thesis: ex y being set st S4[a,y]
A c= the carrier of P by cP9c, XBOOLE_1:1;
then {a} c= the carrier of P by A2, ZFMISC_1:37;
then reconsider Ca = C \/ {a} as Subset of P by XBOOLE_1:8;
then consider S being non empty finite Subset of P such that
B2: S3[S,Ca] by Lsc;
take S ; :: thesis: S4[a,S]
take S ; :: thesis: ( S = S & a in S & S3[S,C \/ {a}] )
thus S = S ; :: thesis: ( a in S & S3[S,C \/ {a}] )
now
assume A3: not a in S ; :: thesis: contradiction
A3b: S /\ C c= S /\ Ca
proof
let x be set ; :: according to TARSKI:def 3 :: thesis: ( not x in S /\ C or x in S /\ Ca )
assume x in S /\ C ; :: thesis: x in S /\ Ca
then ( x in S & x in C ) by XBOOLE_0:def 4;
then ( x in S & x in Ca ) by XBOOLE_0:def 3;
hence x in S /\ Ca by XBOOLE_0:def 4; :: thesis: verum
end;
S /\ Ca c= S /\ C
proof
let x be set ; :: according to TARSKI:def 3 :: thesis: ( not x in S /\ Ca or x in S /\ C )
assume A4: x in S /\ Ca ; :: thesis: x in S /\ C
then B4: x in S by XBOOLE_0:def 4;
x in Ca by A4, XBOOLE_0:def 4;
then ( x in C or x in {a} ) by XBOOLE_0:def 3;
hence x in S /\ C by B4, A3, TARSKI:def 1, XBOOLE_0:def 4; :: thesis: verum
end;
then A3a: S /\ C = S /\ Ca by A3b, XBOOLE_0:def 10;
consider p being Clique-partition of (subrelstr S) such that
B3: card p <= stability# P and
C3: not S2[S,p,C] by C, Lsc;
consider c being set such that
D3: c in p and
E3: S /\ C c= c and
F3: for d being set st d in p & d <> c holds
C /\ d = {} by C3;
for d being set st d in p & d <> c holds
Ca /\ d = {}
proof
let d be set ; :: thesis: ( d in p & d <> c implies Ca /\ d = {} )
assume that
A4: d in p and
B4: d <> c ; :: thesis: Ca /\ d = {}
hence Ca /\ d = {} ; :: thesis: verum
end;
hence contradiction by D3, E3, B3, A3a, B2; :: thesis: verum
end;
hence a in S ; :: thesis: S3[S,C \/ {a}]
thus S3[S,C \/ {a}] by B2; :: thesis: verum
end;
consider f being Function such that
C1: dom f = A and
E1: for x being set st x in A holds
S4[x,f . x] from CLASSES1:sch 1(P);
D1a: rng f is finite by C1, FINSET_1:26;
set SS = union (rng f);
C1bb: for x being set st x in rng f holds
x is finite
proof
let x be set ; :: thesis: ( x in rng f implies x is finite )
assume x in rng f ; :: thesis: x is finite
then consider a being set such that
A2: a in dom f and
B2: x = f . a by FUNCT_1:def 5;
consider S being non empty finite Subset of P such that
C2: f . a = S and
( a in f . a & S3[S,C \/ {a}] ) by C1, A2, E1;
thus x is finite by C2, B2; :: thesis: verum
end;
C1c: union (rng f) c= the carrier of P
proof
let x be set ; :: according to TARSKI:def 3 :: thesis: ( not x in union (rng f) or x in the carrier of P )
assume x in union (rng f) ; :: thesis: x in the carrier of P
then consider y being set such that
A2: x in y and
B2: y in rng f by TARSKI:def 4;
consider a being set such that
C2: a in dom f and
D2: y = f . a by B2, FUNCT_1:def 5;
consider S being non empty finite Subset of P such that
E2: f . a = S and
( a in f . a & S3[S,C \/ {a}] ) by C1, C2, E1;
thus x in the carrier of P by A2, D2, E2; :: thesis: verum
end;
C1a: A9 c= union (rng f)
proof
let x be set ; :: according to TARSKI:def 3 :: thesis: ( not x in A9 or x in union (rng f) )
assume A2: x in A9 ; :: thesis: x in union (rng f)
then consider S being non empty finite Subset of P such that
f . x = S and
D2: x in f . x and
S3[S,C \/ {x}] by E1;
f . x in rng f by A2, C1, FUNCT_1:12;
hence x in union (rng f) by D2, TARSKI:def 4; :: thesis: verum
end;
then reconsider SS = union (rng f) as non empty finite Subset of P by C1bb, D1a, FINSET_1:25, C1c;
set SSp = subrelstr SS;
cSS: SS = the carrier of (subrelstr SS) by YELLOW_0:def 15;
consider p being Clique-partition of (subrelstr SS) such that
F1: card p <= stability# P and
G1: not S2[SS,p,C] by C, Lsc;
consider c being set such that
H1: c in p and
I1: SS /\ C c= c and
J1: for d being set st d in p & d <> c holds
C /\ d = {} by G1;
reconsider c = c as Element of p by H1;
A9 = A9 /\ SS by C1a, XBOOLE_1:28;
then reconsider A = A9 as non empty finite StableSet of (subrelstr SS) by SPAChain;
K1: stability# (subrelstr SS) >= card A by Lwidth;
card p >= stability# (subrelstr SS) by Chpw;
then card p >= card A by K1, XXREAL_0:2;
then consider a being Element of A such that
L1: c /\ A = {a} by ACpart2, F1, A1, AA, B, XXREAL_0:1;
a in c /\ A by L1, TARSKI:def 1;
then M1: a in c by XBOOLE_0:def 4;
consider S being non empty finite Subset of P such that
N1: f . a = S and
O1: a in f . a and
P1: S3[S,C \/ {a}] by E1;
deffunc H1( set ) -> Element of bool the carrier of P = $1 /\ S;
defpred S5[ set ] means $1 meets S;
set Sp = { H1(e) where e is Element of p : S5[e] } ;
R1: S c= SS
proof
let x be set ; :: according to TARSKI:def 3 :: thesis: ( not x in S or x in SS )
assume A2: x in S ; :: thesis: x in SS
S in rng f by N1, C1, FUNCT_1:12;
hence x in SS by A2, TARSKI:def 4; :: thesis: verum
end;
then reconsider Sp = { H1(e) where e is Element of p : S5[e] } as a_partition of S by cSS, PUA2MSS1:11;
for x being set st x in Sp holds
x is Clique of (subrelstr S)
proof
let x be set ; :: thesis: ( x in Sp implies x is Clique of (subrelstr S) )
assume x in Sp ; :: thesis: x is Clique of (subrelstr S)
then consider e being Element of p such that
A2: x = e /\ S and
e meets S ;
e is Clique of (subrelstr SS) by LCpart;
then e is Clique of P by SPClique;
hence x is Clique of (subrelstr S) by A2, SPClique1; :: thesis: verum
end;
then reconsider Sp = Sp as Clique-partition of (subrelstr S) by YELLOW_0:def 15, LCpart;
T1a: Sp = { H1(e) where e is Element of p : S5[e] } ;
T1b: card Sp <= card p from DILWORTH:sch 1(T1a);
set cc = c /\ S;
c meets S by M1, N1, O1, XBOOLE_0:3;
then U1: c /\ S in Sp ;
S /\ (C \/ {a}) c= c /\ S
proof
let x be set ; :: according to TARSKI:def 3 :: thesis: ( not x in S /\ (C \/ {a}) or x in c /\ S )
assume A2: x in S /\ (C \/ {a}) ; :: thesis: x in c /\ S
then B2: x in S by XBOOLE_0:def 4;
C2: x in C \/ {a} by A2, XBOOLE_0:def 4;
end;
then consider d being set such that
V1: d in Sp and
W1: d <> c /\ S and
X1: (C \/ {a}) /\ d <> {} by U1, T1b, F1, XXREAL_0:2, P1;
consider dd being Element of p such that
Y1: d = dd /\ S and
dd meets S by V1;
C /\ dd = {} by Y1, W1, J1;
then Z1a: C /\ d = {} /\ S by Y1, XBOOLE_1:16
.= {} ;
(C /\ d) \/ ({a} /\ d) <> {} by X1, XBOOLE_1:23;
then consider x being set such that
Y1a: x in {a} /\ d by Z1a, XBOOLE_0:def 1;
( x in {a} & x in d ) by Y1a, XBOOLE_0:def 4;
then a in d by TARSKI:def 1;
then a in dd by Y1, XBOOLE_0:def 4;
then c meets dd by M1, XBOOLE_0:3;
hence contradiction by Y1, W1, EQREL_1:def 6; :: thesis: verum
end;
then stability# P9 < k + 1 by G, XXREAL_0:1;
then Ha: stability# P9 <= k by NAT_1:13;
consider A being finite StableSet of P such that
I: card A = stability# P by Lwidth;
Y: stability# P9 = k
proof
per cases ( A /\ C = {} or A /\ C <> {} ) ;
suppose S2: A /\ C = {} ; :: thesis: stability# P9 = k
A c= cP9
proof
let x be set ; :: according to TARSKI:def 3 :: thesis: ( not x in A or x in cP9 )
assume A3: x in A ; :: thesis: x in cP9
then not x in C by S2, XBOOLE_0:def 4;
hence x in cP9 by A3, XBOOLE_0:def 5; :: thesis: verum
end;
hence stability# P9 = k by B, H, I, Wsubp1; :: thesis: verum
end;
suppose A /\ C <> {} ; :: thesis: stability# P9 = k
then consider x being set such that
A3: x in A /\ C by XBOOLE_0:def 1;
B3: x in A by A3, XBOOLE_0:def 4;
C3: x in C by A3, XBOOLE_0:def 4;
set A9 = A \ {x};
{x} c= A by B3, ZFMISC_1:37;
then D3: A = (A \ {x}) \/ {x} by XBOOLE_1:45;
x in {x} by TARSKI:def 1;
then not x in A \ {x} by XBOOLE_0:def 5;
then D4a: card A = (card (A \ {x})) + 1 by D3, CARD_2:54;
E4: A \ {x} c= A by XBOOLE_1:36;
A \ {x} c= cP9
proof
let xx be set ; :: according to TARSKI:def 3 :: thesis: ( not xx in A \ {x} or xx in cP9 )
assume A5: xx in A \ {x} ; :: thesis: xx in cP9
then B5: xx in A by XBOOLE_0:def 5;
not xx in {x} by A5, XBOOLE_0:def 5;
then xx <> x by TARSKI:def 1;
then not xx in C by B3, C3, B5, C, ACClique;
hence xx in cP9 by A5, XBOOLE_0:def 5; :: thesis: verum
end;
then F4: A \ {x} c= A /\ cP9 by E4, XBOOLE_1:19;
A /\ cP9 c= A \ {x}
proof
let xx be set ; :: according to TARSKI:def 3 :: thesis: ( not xx in A /\ cP9 or xx in A \ {x} )
assume A5: xx in A /\ cP9 ; :: thesis: xx in A \ {x}
then B5: xx in A by XBOOLE_0:def 4;
xx in cP9 by A5, XBOOLE_0:def 4;
then x <> xx by C3, XBOOLE_0:def 5;
then not xx in {x} by TARSKI:def 1;
hence xx in A \ {x} by B5, XBOOLE_0:def 5; :: thesis: verum
end;
then A \ {x} = A /\ cP9 by F4, XBOOLE_0:def 10;
then reconsider A9 = A \ {x} as StableSet of P9 by SPAChain;
stability# P9 >= card A9 by Lwidth;
hence stability# P9 = k by D4a, I, B, Ha, XXREAL_0:1; :: thesis: verum
end;
end;
end;
then consider Cp9 being Clique-partition of P9 such that
Z: card Cp9 = stability# P9 by A;
set Cp = Cp9 \/ {(the carrier of P \ cP9)};
Zk: Cp9 is finite by Z;
cP9 <> the carrier of P by E, XBOOLE_1:37;
then Zl: cP9 c< the carrier of P by XBOOLE_0:def 8;
then reconsider Cp = Cp9 \/ {(the carrier of P \ cP9)} as a_partition of the carrier of P by cP9c, SPpart;
now
let x be set ; :: thesis: ( x in Cp implies b1 is Clique of P )
assume A2: x in Cp ; :: thesis: b1 is Clique of P
per cases ( x in Cp9 or x in {(the carrier of P \ cP9)} ) by A2, XBOOLE_0:def 3;
suppose x in {(the carrier of P \ cP9)} ; :: thesis: b1 is Clique of P
hence x is Clique of P by C, E, TARSKI:def 1; :: thesis: verum
end;
end;
end;
then reconsider Cp = Cp as Clique-partition of P by LCpart;
take Cp ; :: thesis: card Cp = stability# P
not the carrier of P \ cP9 in Cp9
proof
assume the carrier of P \ cP9 in Cp9 ; :: thesis: contradiction
then the carrier of P c= cP9 \/ cP9 by cP9c, XBOOLE_1:44;
hence contradiction by Zl, XBOOLE_1:60; :: thesis: verum
end;
hence card Cp = stability# P by B, Y, Z, Zk, CARD_2:54; :: thesis: verum
end;
end;
end;
for k being Nat holds S1[k] from NAT_1:sch 2(P1, P2);
hence ex C being Clique-partition of R st card C = stability# R by S0; :: thesis: verum
end;
end;