defpred S1[ Nat] means for A being finite Chain st card the carrier of A = $1 holds
A, InclPoset $1 are_isomorphic ;
A1: S1[ 0 ]
proof 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: for A being finite Chain st card the carrier of A = n holds
A, InclPoset n are_isomorphic ; :: thesis: S1[n + 1]
let A be finite Chain ; :: thesis: ( card the carrier of A = n + 1 implies A, InclPoset (n + 1) are_isomorphic )
assume A5: card the carrier of A = n + 1 ; :: thesis: A, InclPoset (n + 1) are_isomorphic
n >= 0 by NAT_1:2;
then n + 1 >= 0 + 1 by XREAL_1:8;
then A6: ( n >= 1 or n + 1 = 1 ) by NAT_1:8;
the carrier of A <> {} by A5;
then reconsider A = A as non empty finite Chain ;
set b = Top A;
per cases ( n + 1 = 1 or n + 1 > 1 ) by A6, NAT_1:13;
suppose A7: n + 1 = 1 ; :: thesis: A, InclPoset (n + 1) are_isomorphic
then consider x being set such that
A8: the carrier of A = {x} by A5, CARD_2:60;
A, InclPoset 1 are_isomorphic
proof
set g = the carrier of A --> 0 ;
A9: rng (the carrier of A --> 0 ) = {0 } by FUNCOP_1:14;
A10: {0 } = the carrier of (InclPoset 1) by CARD_1:87, YELLOW_1:1;
then reconsider g = the carrier of A --> 0 as Function of A,(InclPoset 1) ;
g is isomorphic
proof
A11: g is one-to-one
proof
let x1, x2 be Element of A; :: according to WAYBEL_1:def 1 :: thesis: ( not g . x1 = g . x2 or x1 = x2 )
assume g . x1 = g . x2 ; :: thesis: x1 = x2
( x1 = x & x2 = x ) by A8, TARSKI:def 1;
hence x1 = x2 ; :: thesis: verum
end;
for e, f being Element of A holds
( e <= f iff g . e <= g . f )
proof
let e, f be Element of A; :: thesis: ( e <= f iff g . e <= g . f )
hereby :: thesis: ( g . e <= g . f implies e <= f )
assume e <= f ; :: thesis: g . e <= g . f
( g . e = 0 & g . f = 0 ) by FUNCOP_1:13;
hence g . e <= g . f ; :: thesis: verum
end;
assume g . e <= g . f ; :: thesis: e <= f
e = x by A8, TARSKI:def 1;
hence e <= f by A8, TARSKI:def 1; :: thesis: verum
end;
hence g is isomorphic by A9, A10, A11, WAYBEL_0:66; :: thesis: verum
end;
hence A, InclPoset 1 are_isomorphic by WAYBEL_1:def 8; :: thesis: verum
end;
hence A, InclPoset (n + 1) are_isomorphic by A7; :: thesis: verum
end;
suppose n + 1 > 1 ; :: thesis: A, InclPoset (n + 1) are_isomorphic
then A12: (n + 1) - 1 > 1 - 1 by XREAL_1:11;
A13: card (the carrier of A \ {(Top A)}) = (card the carrier of A) - (card {(Top A)}) by CARD_2:63
.= (n + 1) - 1 by A5, CARD_1:50
.= n ;
then reconsider Ab = the carrier of A \ {(Top A)} as non empty Subset of A by A12;
reconsider B = subrelstr Ab as finite Chain by Def1;
card the carrier of B = n by A13, YELLOW_0:def 15;
then B, InclPoset n are_isomorphic by A4;
then consider f being Function of B,(InclPoset n) such that
A14: f is isomorphic by WAYBEL_1:def 8;
A15: the carrier of B = the carrier of A \ {(Top A)} by YELLOW_0:def 15;
n <= n + 1 by NAT_1:11;
then n c= n + 1 by NAT_1:40;
then A16: n c= the carrier of (InclPoset (n + 1)) by YELLOW_1:1;
A17: the carrier of B,{(Top A)} form_upper_lower_partition_of A by A15, Th3;
A18: the carrier of (InclPoset n) = n by YELLOW_1:1;
A19: n + 1 = succ n by NAT_1:39
.= n \/ {n} by ORDINAL1:def 1 ;
then A20: the carrier of (InclPoset n) \/ {n} = the carrier of (InclPoset (n + 1)) by A18, YELLOW_1:1;
for a, b being Element of (InclPoset (n + 1)) st a in the carrier of (InclPoset n) & b in {n} holds
a < b
proof
let a, b be Element of (InclPoset (n + 1)); :: thesis: ( a in the carrier of (InclPoset n) & b in {n} implies a < b )
assume ( a in the carrier of (InclPoset n) & b in {n} ) ; :: thesis: a < b
then A21: ( a in n & b = n ) by TARSKI:def 1, YELLOW_1:1;
then ( a in { i where i is Element of NAT : i < n } & b = n ) by AXIOMS:30;
then consider h being Element of NAT such that
A22: ( h = a & h < n ) ;
a c= b
proof
assume not a c= b ; :: thesis: contradiction
then consider x being set such that
A23: ( x in a & not x in b ) by TARSKI:def 3;
x in { w where w is Element of NAT : w < h } by A22, A23, AXIOMS:30;
then consider w' being Element of NAT such that
A24: ( w' = x & w' < h ) ;
w' < n by A22, A24, XXREAL_0:2;
then w' in { t where t is Element of NAT : t < n } ;
hence contradiction by A21, A23, A24, AXIOMS:30; :: thesis: verum
end;
then A25: a <= b by YELLOW_1:3;
a <> b by A21;
hence a < b by A25, ORDERS_2:def 10; :: thesis: verum
end;
then A26: the carrier of (InclPoset n),{n} form_upper_lower_partition_of InclPoset (n + 1) by A20, Def3;
set X = InclPoset {(Top A)};
{(Top A)} c= {(Top A)} ;
then reconsider b' = {(Top A)} as non empty Subset of (InclPoset {(Top A)}) by YELLOW_1:1;
{n} c= n + 1 by A19, XBOOLE_1:7;
then reconsider n' = {n} as non empty Subset of (InclPoset (n + 1)) by YELLOW_1:1;
set X' = subrelstr b';
set Y' = subrelstr n';
A27: the carrier of (subrelstr b') = {(Top A)} by YELLOW_0:def 15;
set g = the carrier of (subrelstr b') --> n;
A28: dom (the carrier of (subrelstr b') --> n) = the carrier of (subrelstr b') by FUNCOP_1:19;
then reconsider g = the carrier of (subrelstr b') --> n as ManySortedSet of by PARTFUN1:def 4;
rng g c= {n} by FUNCOP_1:19;
then A29: rng g c= the carrier of (subrelstr n') by YELLOW_0:def 15;
for x being set st x in the carrier of (subrelstr b') holds
g . x in the carrier of (subrelstr n')
proof
let x be set ; :: thesis: ( x in the carrier of (subrelstr b') implies g . x in the carrier of (subrelstr n') )
assume x in the carrier of (subrelstr b') ; :: thesis: g . x in the carrier of (subrelstr n')
then g . x in rng g by A28, FUNCT_1:def 5;
hence g . x in the carrier of (subrelstr n') by A29; :: thesis: verum
end;
then A30: ( the carrier of (subrelstr n') = n' & the carrier of (subrelstr {(Top A)}) = {(Top A)} & g is Function of the carrier of (subrelstr b'),the carrier of (subrelstr n') ) by A28, FUNCT_2:5, YELLOW_0:def 15;
then reconsider g = g as Function of (subrelstr {(Top A)}),(subrelstr n') by A27;
A31: g is one-to-one by A30, PARTFUN1:70;
g . (Top A) in n' by A30, FUNCT_2:61;
then g . (Top A) = n by TARSKI:def 1;
then A32: rng g = the carrier of (subrelstr n') by A30, FUNCT_2:62;
A33: g is isomorphic
proof
for e, f being Element of (subrelstr {(Top A)}) holds
( e <= f iff g . e <= g . f )
proof
let e, f be Element of (subrelstr {(Top A)}); :: thesis: ( e <= f iff g . e <= g . f )
e in the carrier of (subrelstr {(Top A)}) ;
then A34: e in {(Top A)} by YELLOW_0:def 15;
reconsider e1 = e as Element of (subrelstr b') by A27, YELLOW_0:def 15;
f in the carrier of (subrelstr {(Top A)}) ;
then A35: f in {(Top A)} by YELLOW_0:def 15;
reconsider f1 = f as Element of (subrelstr b') by A27, YELLOW_0:def 15;
hereby :: thesis: ( g . e <= g . f implies e <= f )
assume e <= f ; :: thesis: g . e <= g . f
A36: g . e1 = n by FUNCOP_1:13;
g . f1 = n by FUNCOP_1:13;
hence g . e <= g . f by A36; :: thesis: verum
end;
assume g . e <= g . f ; :: thesis: e <= f
e = Top A by A34, TARSKI:def 1;
hence e <= f by A35, TARSKI:def 1; :: thesis: verum
end;
hence g is isomorphic by A31, A32, WAYBEL_0:66; :: thesis: verum
end;
reconsider A2 = the carrier of (InclPoset n), B2 = n' as Subset of (InclPoset (n + 1)) by A16, YELLOW_1:1;
n <= n + 1 by NAT_1:11;
then ( A2 = n & InclPoset n is full SubRelStr of InclPoset (n + 1) ) by Th1, YELLOW_1:1;
then ( InclPoset n = subrelstr A2 & the carrier of B = Ab & g is Function of (subrelstr {(Top A)}),(subrelstr B2) ) by YELLOW_0:def 15;
then consider h being Function of A,(InclPoset (n + 1)) such that
A37: ( h = f +* g & h is isomorphic ) by A14, A17, A26, A33, Th5;
thus A, InclPoset (n + 1) are_isomorphic by A37, WAYBEL_1:def 8; :: thesis: verum
end;
end;
end;
for n being Nat holds S1[n] from NAT_1:sch 2(A1, A3);
hence for A being finite Chain
for n being Nat st card the carrier of A = n holds
A, InclPoset n are_isomorphic ; :: thesis: verum