let R be non empty transitive antisymmetric with_finite_stability# RelStr ; for A being StableSet of R
for U being Clique-partition of (subrelstr (Upper A))
for L being Clique-partition of (subrelstr (Lower A)) st card A = stability# R & card U = stability# R & card L = stability# R holds
ex C being Clique-partition of R st card C = stability# R
let A be StableSet of R; for U being Clique-partition of (subrelstr (Upper A))
for L being Clique-partition of (subrelstr (Lower A)) st card A = stability# R & card U = stability# R & card L = stability# R holds
ex C being Clique-partition of R st card C = stability# R
let U be Clique-partition of (subrelstr (Upper A)); for L being Clique-partition of (subrelstr (Lower A)) st card A = stability# R & card U = stability# R & card L = stability# R holds
ex C being Clique-partition of R st card C = stability# R
let L be Clique-partition of (subrelstr (Lower A)); ( card A = stability# R & card U = stability# R & card L = stability# R implies ex C being Clique-partition of R st card C = stability# R )
assume that
A1:
card A = stability# R
and
B1:
card U = stability# R
and
C1:
card L = stability# R
; ex C being Clique-partition of R st card C = stability# R
D1:
not A is empty
by A1;
set aA = Upper A;
set bA = Lower A;
set cR = the carrier of R;
set Pa = subrelstr (Upper A);
set Pb = subrelstr (Lower A);
S2d:
Upper A = the carrier of (subrelstr (Upper A))
by YELLOW_0:def 15;
S2e:
Lower A = the carrier of (subrelstr (Lower A))
by YELLOW_0:def 15;
reconsider Pa = subrelstr (Upper A) as non empty transitive antisymmetric with_finite_stability# RelStr by D1;
A /\ (Upper A) = A
by XBOOLE_1:21;
then D1a:
A is StableSet of Pa
by SPAChain;
consider f being Function of A,U such that
E1:
f is bijective
and
E1a:
for x being set st x in A holds
x in f . x
by A1, B1, D1a, ACpart1;
E1b:
dom f = A
by D1, FUNCT_2:def 1;
E1d:
rng f = U
by E1, FUNCT_2:def 3;
reconsider Pb = subrelstr (Lower A) as non empty transitive antisymmetric with_finite_stability# RelStr by D1;
A /\ (Lower A) = A
by XBOOLE_1:21;
then F1a:
A is StableSet of Pb
by SPAChain;
consider g being Function of A,L such that
G1:
g is bijective
and
G1a:
for x being set st x in A holds
x in g . x
by A1, C1, F1a, ACpart1;
G1b:
dom g = A
by D1, FUNCT_2:def 1;
G1d:
rng g = L
by G1, FUNCT_2:def 3;
set h = f .\/ g;
set C = rng (f .\/ g);
I1a:
dom (f .\/ g) = (dom f) \/ (dom g)
by LEXBFS:def 2;
Y1a:
rng (f .\/ g) c= bool the carrier of R
proof
let x be
set ;
TARSKI:def 3 ( not x in rng (f .\/ g) or x in bool the carrier of R )
assume
x in rng (f .\/ g)
;
x in bool the carrier of R
then consider a being
set such that A2:
a in dom (f .\/ g)
and B2:
(f .\/ g) . a = x
by FUNCT_1:def 5;
C2:
(f .\/ g) . a = (f . a) \/ (g . a)
by A2, I1a, LEXBFS:def 2;
f . a in U
by A2, I1a, FUNCT_2:7;
then D2:
f . a c= the
carrier of
R
by S2d, XBOOLE_1:1;
g . a in L
by A2, I1a, FUNCT_2:7;
then
g . a c= the
carrier of
R
by S2e, XBOOLE_1:1;
then
x c= the
carrier of
R
by B2, C2, D2, XBOOLE_1:8;
hence
x in bool the
carrier of
R
;
verum
end;
Y1b:
union (rng (f .\/ g)) = the carrier of R
proof
now let x be
set ;
( ( x in union (rng (f .\/ g)) implies x in the carrier of R ) & ( x in [#] R implies b1 in union (rng (f .\/ g)) ) )assume
x in [#] R
;
b1 in union (rng (f .\/ g))then A2:
x in (Upper A) \/ (Lower A)
by A1, ABunion;
per cases
( x in Upper A or x in Lower A )
by A2, XBOOLE_0:def 3;
suppose
x in Upper A
;
b1 in union (rng (f .\/ g))then
x in union U
by S2d, EQREL_1:def 6;
then consider Y being
set such that A3:
x in Y
and B3:
Y in U
by TARSKI:def 4;
consider a being
set such that C3:
a in dom f
and D3:
Y = f . a
by B3, E1d, FUNCT_1:def 5;
E3:
(f .\/ g) . a in rng (f .\/ g)
by C3, I1a, E1b, G1b, FUNCT_1:12;
(f .\/ g) . a = (f . a) \/ (g . a)
by C3, I1a, E1b, G1b, LEXBFS:def 2;
then
x in (f .\/ g) . a
by A3, D3, XBOOLE_0:def 3;
hence
x in union (rng (f .\/ g))
by E3, TARSKI:def 4;
verum end; suppose
x in Lower A
;
b1 in union (rng (f .\/ g))then
x in union L
by S2e, EQREL_1:def 6;
then consider Y being
set such that A3:
x in Y
and B3:
Y in L
by TARSKI:def 4;
consider a being
set such that C3:
a in dom g
and D3:
Y = g . a
by B3, G1d, FUNCT_1:def 5;
E3:
(f .\/ g) . a in rng (f .\/ g)
by C3, I1a, E1b, G1b, FUNCT_1:12;
(f .\/ g) . a = (f . a) \/ (g . a)
by C3, I1a, E1b, G1b, LEXBFS:def 2;
then
x in (f .\/ g) . a
by A3, D3, XBOOLE_0:def 3;
hence
x in union (rng (f .\/ g))
by E3, TARSKI:def 4;
verum end; end; end;
hence
union (rng (f .\/ g)) = the
carrier of
R
by TARSKI:2;
verum
end;
Y1c:
now let a be
Subset of the
carrier of
R;
( a in rng (f .\/ g) implies ( a <> {} & ( for b being Subset of the carrier of R st b in rng (f .\/ g) & a <> b holds
not a meets b ) ) )assume
a in rng (f .\/ g)
;
( a <> {} & ( for b being Subset of the carrier of R st b in rng (f .\/ g) & a <> b holds
not a meets b ) )then consider x being
set such that B2:
x in dom (f .\/ g)
and C2:
(f .\/ g) . x = a
by FUNCT_1:def 5;
D2:
(f .\/ g) . x = (f . x) \/ (g . x)
by B2, I1a, LEXBFS:def 2;
set cfx =
f . x;
set cgx =
g . x;
E2:
f . x in U
by B2, I1a, FUNCT_2:7;
then reconsider cfx =
f . x as
Subset of
Pa ;
E2g:
g . x in L
by B2, I1a, FUNCT_2:7;
then reconsider cgx =
g . x as
Subset of
Pb ;
cfx <> {}
by E2, EQREL_1:def 6;
hence
a <> {}
by C2, D2;
for b being Subset of the carrier of R st b in rng (f .\/ g) & a <> b holds
not a meets blet b be
Subset of the
carrier of
R;
( b in rng (f .\/ g) & a <> b implies not a meets b )assume
b in rng (f .\/ g)
;
( a <> b implies not a meets b )then consider y being
set such that B2y:
y in dom (f .\/ g)
and C2y:
(f .\/ g) . y = b
by FUNCT_1:def 5;
D2y:
(f .\/ g) . y = (f . y) \/ (g . y)
by B2y, I1a, LEXBFS:def 2;
set cfy =
f . y;
set cgy =
g . y;
E2y:
f . y in U
by B2y, I1a, FUNCT_2:7;
then reconsider cfy =
f . y as
Subset of
Pa ;
E2yg:
g . y in L
by B2y, I1a, FUNCT_2:7;
then reconsider cgy =
g . y as
Subset of
Pb ;
assume FF2:
a <> b
;
not a meets bF2a:
cfx <> cfy
by E1, FF2, C2, C2y, B2, B2y, I1a, E1b, FUNCT_1:def 8;
F2g:
cgx <> cgy
by G1, FF2, C2, C2y, B2, B2y, I1a, G1b, FUNCT_1:def 8;
assume
a meets b
;
contradictionthen
a /\ b <> {}
by XBOOLE_0:def 7;
then consider z being
set such that F2b:
z in a /\ b
by XBOOLE_0:def 1;
G2:
z in a
by F2b, XBOOLE_0:def 4;
H2:
z in b
by F2b, XBOOLE_0:def 4;
set cfz =
f . z;
set cgz =
g . z;
per cases
( ( z in cfx & z in cfy ) or ( z in cfx & z in cgy ) or ( z in cgx & z in cfy ) or ( z in cgx & z in cgy ) )
by G2, H2, C2, C2y, D2, D2y, XBOOLE_0:def 3;
suppose S1:
(
z in cfx &
z in cgy )
;
contradictionC3:
z in A
by S1, S2d, S2e, ABAC0;
D3:
z in f . z
by S1, S2d, S2e, ABAC0, E1a;
E3:
f . z in U
by S1, S2d, S2e, ABAC0, FUNCT_2:7;
then reconsider cfz =
f . z as
Subset of
Pa ;
z in cfx /\ cfz
by S1, D3, XBOOLE_0:def 4;
then
cfz meets cfx
by XBOOLE_0:def 7;
then
cfz = cfx
by E2, E3, EQREL_1:def 6;
then F3:
z = x
by E1, B2, C3, I1a, E1b, FUNCT_1:def 8;
D3g:
z in g . z
by S1, S2d, S2e, ABAC0, G1a;
E3g:
g . z in L
by S1, S2d, S2e, ABAC0, FUNCT_2:7;
then reconsider cgz =
g . z as
Subset of
Pb ;
z in cgz /\ cgy
by S1, D3g, XBOOLE_0:def 4;
then
cgz meets cgy
by XBOOLE_0:def 7;
then
cgz = cgy
by E2yg, E3g, EQREL_1:def 6;
hence
contradiction
by F3, FF2, C2, C2y, G1, B2y, C3, I1a, G1b, FUNCT_1:def 8;
verum end; suppose S1:
(
z in cgx &
z in cfy )
;
contradictionC3:
z in A
by S1, S2d, S2e, ABAC0;
D3:
z in f . z
by S1, S2d, S2e, ABAC0, E1a;
E3:
f . z in U
by S1, S2d, S2e, ABAC0, FUNCT_2:7;
then reconsider cfz =
f . z as
Subset of
Pa ;
z in cfy /\ cfz
by S1, D3, XBOOLE_0:def 4;
then
cfz meets cfy
by XBOOLE_0:def 7;
then
cfz = cfy
by E2y, E3, EQREL_1:def 6;
then F3:
z = y
by E1, B2y, C3, I1a, E1b, FUNCT_1:def 8;
D3g:
z in g . z
by S1, S2d, S2e, ABAC0, G1a;
E3g:
g . z in L
by S1, S2d, S2e, ABAC0, FUNCT_2:7;
then reconsider cgz =
g . z as
Subset of
Pb ;
z in cgz /\ cgx
by S1, D3g, XBOOLE_0:def 4;
then
cgz meets cgx
by XBOOLE_0:def 7;
then
cgz = cgx
by E2g, E3g, EQREL_1:def 6;
hence
contradiction
by F3, FF2, C2, C2y, G1, B2, C3, I1a, G1b, FUNCT_1:def 8;
verum end; end; end;
Z1:
for x being set st x in rng (f .\/ g) holds
x is Clique of R
proof
let c be
set ;
( c in rng (f .\/ g) implies c is Clique of R )
assume
c in rng (f .\/ g)
;
c is Clique of R
then consider x being
set such that B2:
x in dom (f .\/ g)
and C2:
c = (f .\/ g) . x
by FUNCT_1:def 5;
D2:
c = (f . x) \/ (g . x)
by B2, C2, I1a, LEXBFS:def 2;
set cf =
f . x;
set cg =
g . x;
f . x in U
by B2, I1a, FUNCT_2:7;
then G2b:
f . x is
Clique of
Pa
by LCpart;
then G2a:
f . x is
Clique of
R
by SPClique;
g . x in L
by B2, I1a, FUNCT_2:7;
then H2b:
g . x is
Clique of
Pb
by LCpart;
then H2a:
g . x is
Clique of
R
by SPClique;
then reconsider c9 =
c as
Subset of
R by D2, G2a, XBOOLE_1:8;
now let a,
b be
Element of
R;
( a in c9 & b in c9 & a <> b & not b1 <= b2 implies b2 <= b1 )assume that A3:
a in c9
and B3:
b in c9
and C3:
a <> b
;
( b1 <= b2 or b2 <= b1 )E3:
x in f . x
by B2, I1a, E1a;
F3:
x in g . x
by B2, I1a, G1a;
reconsider x =
x as
Element of
R by B2, I1a, E1b, G1b;
per cases
( ( a in f . x & b in f . x ) or ( a in f . x & b in g . x ) or ( a in g . x & b in f . x ) or ( a in g . x & b in g . x ) )
by A3, B3, D2, XBOOLE_0:def 3;
suppose S1:
(
a in f . x &
b in g . x )
;
( b1 <= b2 or b2 <= b1 )A4:
(
x = a or
x <= a )
by E3, S1, B2, I1a, G2b, PabSmin;
B4:
(
x = b or
b <= x )
by F3, S1, B2, I1a, H2b, PbeSmax;
thus
(
a <= b or
b <= a )
by C3, A4, B4, YELLOW_0:def 2;
verum end; suppose S1:
(
a in g . x &
b in f . x )
;
( b1 <= b2 or b2 <= b1 )A4:
(
x = a or
a <= x )
by F3, S1, B2, I1a, H2b, PbeSmax;
B4:
(
x = b or
x <= b )
by E3, S1, B2, I1a, G2b, PabSmin;
thus
(
a <= b or
b <= a )
by C3, A4, B4, YELLOW_0:def 2;
verum end; end; end;
hence
c is
Clique of
R
by DClique;
verum
end;
H1:
f .\/ g is one-to-one
proof
let x1,
x2 be
set ;
FUNCT_1:def 8 ( not x1 in proj1 (f .\/ g) or not x2 in proj1 (f .\/ g) or not (f .\/ g) . x1 = (f .\/ g) . x2 or x1 = x2 )
assume that A2:
x1 in dom (f .\/ g)
and B2:
x2 in dom (f .\/ g)
and C2:
(f .\/ g) . x1 = (f .\/ g) . x2
;
x1 = x2
D2:
(f .\/ g) . x1 is
Clique of
R
by Z1, A2, FUNCT_1:12;
D2b:
(f .\/ g) . x1 = (f . x1) \/ (g . x1)
by I1a, A2, LEXBFS:def 2;
(
x1 in f . x1 &
x1 in g . x1 )
by A2, I1a, E1a, G1a;
then D2a:
x1 in (f .\/ g) . x1
by D2b, XBOOLE_0:def 3;
E2b:
(f .\/ g) . x2 = (f . x2) \/ (g . x2)
by I1a, B2, LEXBFS:def 2;
(
x2 in f . x2 &
x2 in g . x2 )
by B2, I1a, E1a, G1a;
then
x2 in (f .\/ g) . x2
by E2b, XBOOLE_0:def 3;
hence
x1 = x2
by I1a, A2, B2, C2, D2, D2a, ACClique;
verum
end;
reconsider C = rng (f .\/ g) as Clique-partition of R by Y1a, Y1b, Y1c, EQREL_1:def 6, Z1, LCpart;
take
C
; card C = stability# R
card C =
card (f .\/ g)
by H1, PRE_POLY:19
.=
card A
by I1a, E1b, G1b, CARD_1:104
;
hence
card C = stability# R
by A1; verum