let R be non empty connected Poset; :: thesis: union (rng (FinOrd-Approx R)) is Order of (Fin the carrier of R)
set IR = the InternalRel of R;
set CR = the carrier of R;
set X = union (rng (FinOrd-Approx R));
set FOAR = FinOrd-Approx R;
set FOAR0 = { [a,b] where a, b is Element of Fin the carrier of R : ( a = {} or ( a <> {} & b <> {} & PosetMax a <> PosetMax b & [(PosetMax a),(PosetMax b)] in the InternalRel of R ) ) } ;
A1: (FinOrd-Approx R) . 0 = { [a,b] where a, b is Element of Fin the carrier of R : ( a = {} or ( a <> {} & b <> {} & PosetMax a <> PosetMax b & [(PosetMax a),(PosetMax b)] in the InternalRel of R ) ) } by Def16;
now
let x be set ; :: thesis: ( x in union (rng (FinOrd-Approx R)) implies x in [:(Fin the carrier of R),(Fin the carrier of R):] )
assume A2: x in union (rng (FinOrd-Approx R)) ; :: thesis: x in [:(Fin the carrier of R),(Fin the carrier of R):]
consider Y being set such that
A3: ( x in Y & Y in rng (FinOrd-Approx R) ) by A2, TARSKI:def 4;
rng (FinOrd-Approx R) c= bool [:(Fin the carrier of R),(Fin the carrier of R):] by RELAT_1:def 19;
hence x in [:(Fin the carrier of R),(Fin the carrier of R):] by A3; :: thesis: verum
end;
then union (rng (FinOrd-Approx R)) c= [:(Fin the carrier of R),(Fin the carrier of R):] by TARSKI:def 3;
then reconsider X = union (rng (FinOrd-Approx R)) as Relation of (Fin the carrier of R) ;
A4: now
now
let x be set ; :: thesis: ( x in Fin the carrier of R implies [x,x] in X )
assume A5: x in Fin the carrier of R ; :: thesis: [x,x] in X
A6: ( x c= the carrier of R & x is finite ) by A5, FINSUB_1:def 5;
0 in NAT ;
then 0 in dom (FinOrd-Approx R) by Def16;
then A7: (FinOrd-Approx R) . 0 in rng (FinOrd-Approx R) by FUNCT_1:def 5;
reconsider x' = x as Element of Fin the carrier of R by A5;
defpred S1[ Element of NAT ] means for x being Element of Fin the carrier of R st card x = $1 holds
[x,x] in union (rng (FinOrd-Approx R));
A8: S1[ 0 ]
proof
let x be Element of Fin the carrier of R; :: thesis: ( card x = 0 implies [x,x] in union (rng (FinOrd-Approx R)) )
assume A9: card x = 0 ; :: thesis: [x,x] in union (rng (FinOrd-Approx R))
x = {} by A9;
then [x,x] in (FinOrd-Approx R) . 0 by A1;
hence [x,x] in union (rng (FinOrd-Approx R)) by A7, TARSKI:def 4; :: thesis: verum
end;
A10: for n being Element of NAT st S1[n] holds
S1[n + 1]
proof
let n be Element of NAT ; :: thesis: ( S1[n] implies S1[n + 1] )
assume A11: for x being Element of Fin the carrier of R st card x = n holds
[x,x] in union (rng (FinOrd-Approx R)) ; :: thesis: S1[n + 1]
let y be Element of Fin the carrier of R; :: thesis: ( card y = n + 1 implies [y,y] in union (rng (FinOrd-Approx R)) )
assume A12: card y = n + 1 ; :: thesis: [y,y] in union (rng (FinOrd-Approx R))
per cases ( y = {} or y <> {} ) ;
suppose A13: y <> {} ; :: thesis: [y,y] in union (rng (FinOrd-Approx R))
set z = y \ {(PosetMax y)};
reconsider z = y \ {(PosetMax y)} as Element of Fin the carrier of R by Th38;
card z = n by A12, Lm1;
then [z,z] in union (rng (FinOrd-Approx R)) by A11;
hence [y,y] in union (rng (FinOrd-Approx R)) by A13, Th36; :: thesis: verum
end;
end;
end;
A14: for n being Element of NAT holds S1[n] from NAT_1:sch 1(A8, A10);
consider n being Nat such that
A15: x,n are_equipotent by A6, CARD_1:74;
card x' = n by A15, CARD_1:def 5;
hence [x,x] in X by A14; :: thesis: verum
end;
hence X is_reflexive_in Fin the carrier of R by RELAT_2:def 1; :: thesis: ( X is_antisymmetric_in Fin the carrier of R & X is_transitive_in Fin the carrier of R )
now
let x, y be set ; :: thesis: ( x in Fin the carrier of R & y in Fin the carrier of R & [x,y] in X & [y,x] in X implies x = y )
assume A17: ( x in Fin the carrier of R & y in Fin the carrier of R & [x,y] in X & [y,x] in X ) ; :: thesis: x = y
reconsider x' = x as Element of Fin the carrier of R by A17;
A18: ( x c= the carrier of R & x is finite ) by A17, FINSUB_1:def 5;
defpred S1[ Element of NAT ] means for x, y being Element of Fin the carrier of R st card x = $1 & [x,y] in X & [y,x] in X holds
x = y;
now
let a, b be Element of Fin the carrier of R; :: thesis: ( card a = 0 & [a,b] in X & [b,a] in X implies a = b )
assume A19: ( card a = 0 & [a,b] in X & [b,a] in X ) ; :: thesis: a = b
reconsider a' = a as finite set ;
a' = {} by A19;
hence a = b by A19, Th37; :: thesis: verum
end;
then A20: S1[ 0 ] ;
now
let n be Element of NAT ; :: thesis: ( ( for a, b being Element of Fin the carrier of R st card a = n & [a,b] in X & [b,a] in X holds
a = b ) implies for a, b being Element of Fin the carrier of R st card a = n + 1 & [a,b] in X & [b,a] in X holds
b4 = b5 )

assume A21: for a, b being Element of Fin the carrier of R st card a = n & [a,b] in X & [b,a] in X holds
a = b ; :: thesis: for a, b being Element of Fin the carrier of R st card a = n + 1 & [a,b] in X & [b,a] in X holds
b4 = b5

let a, b be Element of Fin the carrier of R; :: thesis: ( card a = n + 1 & [a,b] in X & [b,a] in X implies b2 = b3 )
assume A22: ( card a = n + 1 & [a,b] in X & [b,a] in X ) ; :: thesis: b2 = b3
per cases ( a = {} or ( a <> {} & b <> {} & PosetMax a <> PosetMax b & [(PosetMax a),(PosetMax b)] in the InternalRel of R ) or ( a <> {} & b <> {} & PosetMax a = PosetMax b & [(a \ {(PosetMax a)}),(b \ {(PosetMax b)})] in X ) ) by A22, Th36;
suppose a = {} ; :: thesis: b2 = b3
hence a = b by A22; :: thesis: verum
end;
suppose A23: ( a <> {} & b <> {} & PosetMax a <> PosetMax b & [(PosetMax a),(PosetMax b)] in the InternalRel of R ) ; :: thesis: b2 = b3
now
per cases ( b = {} or ( b <> {} & a <> {} & PosetMax b <> PosetMax a & [(PosetMax b),(PosetMax a)] in the InternalRel of R ) or ( b <> {} & a <> {} & PosetMax b = PosetMax a & [(b \ {(PosetMax b)}),(a \ {(PosetMax a)})] in X ) ) by A22, Th36;
suppose ( b <> {} & a <> {} & PosetMax b = PosetMax a & [(b \ {(PosetMax b)}),(a \ {(PosetMax a)})] in X ) ; :: thesis: a = b
hence a = b by A23; :: thesis: verum
end;
end;
end;
hence a = b ; :: thesis: verum
end;
suppose A24: ( a <> {} & b <> {} & PosetMax a = PosetMax b & [(a \ {(PosetMax a)}),(b \ {(PosetMax b)})] in X ) ; :: thesis: b2 = b3
now
per cases ( b = {} or ( b <> {} & a <> {} & PosetMax b <> PosetMax a & [(PosetMax b),(PosetMax a)] in the InternalRel of R ) or ( b <> {} & a <> {} & PosetMax b = PosetMax a & [(b \ {(PosetMax b)}),(a \ {(PosetMax a)})] in X ) ) by A22, Th36;
suppose ( b <> {} & a <> {} & PosetMax b <> PosetMax a & [(PosetMax b),(PosetMax a)] in the InternalRel of R ) ; :: thesis: a = b
hence a = b by A24; :: thesis: verum
end;
suppose A25: ( b <> {} & a <> {} & PosetMax b = PosetMax a & [(b \ {(PosetMax b)}),(a \ {(PosetMax a)})] in X ) ; :: thesis: a = b
reconsider a' = a as finite set ;
reconsider b' = b as finite set ;
set za = a' \ {(PosetMax a)};
set zb = b' \ {(PosetMax b)};
reconsider za = a' \ {(PosetMax a)}, zb = b' \ {(PosetMax b)} as Element of Fin the carrier of R by Th38;
card za = n by A22, Lm1;
then A26: za = zb by A21, A24, A25;
now
let z be set ; :: thesis: ( z in {(PosetMax a)} implies z in a )
assume A27: z in {(PosetMax a)} ; :: thesis: z in a
z = PosetMax a by A27, TARSKI:def 1;
hence z in a by A25, Def15; :: thesis: verum
end;
then {(PosetMax a)} c= a by TARSKI:def 3;
then A28: a = {(PosetMax a)} \/ za by XBOOLE_1:45;
now
let z be set ; :: thesis: ( z in {(PosetMax b)} implies z in b )
assume A29: z in {(PosetMax b)} ; :: thesis: z in b
z = PosetMax b by A29, TARSKI:def 1;
hence z in b by A25, Def15; :: thesis: verum
end;
then {(PosetMax b)} c= b by TARSKI:def 3;
hence a = b by A25, A26, A28, XBOOLE_1:45; :: thesis: verum
end;
end;
end;
hence a = b ; :: thesis: verum
end;
end;
end;
then A30: for n being Element of NAT st S1[n] holds
S1[n + 1] ;
A31: for n being Element of NAT holds S1[n] from NAT_1:sch 1(A20, A30);
consider n being Nat such that
A32: x,n are_equipotent by A18, CARD_1:74;
card x' = n by A32, CARD_1:def 5;
hence x = y by A17, A31; :: thesis: verum
end;
hence X is_antisymmetric_in Fin the carrier of R by RELAT_2:def 4; :: thesis: X is_transitive_in Fin the carrier of R
now
let x, y, z be set ; :: thesis: ( x in Fin the carrier of R & y in Fin the carrier of R & z in Fin the carrier of R & [x,y] in X & [y,z] in X implies [x,z] in X )
assume A34: ( x in Fin the carrier of R & y in Fin the carrier of R & z in Fin the carrier of R & [x,y] in X & [y,z] in X ) ; :: thesis: [x,z] in X
defpred S1[ Element of NAT ] means for a, b, c being Element of Fin the carrier of R st card a = $1 & [a,b] in X & [b,c] in X holds
[a,c] in X;
now
let a, b, c be Element of Fin the carrier of R; :: thesis: ( card a = 0 & [a,b] in X & [b,c] in X implies [a,c] in X )
assume A35: ( card a = 0 & [a,b] in X & [b,c] in X ) ; :: thesis: [a,c] in X
reconsider a' = a as finite set ;
a' = {} by A35;
hence [a,c] in X by Th36; :: thesis: verum
end;
then A36: S1[ 0 ] ;
now
let n be Element of NAT ; :: thesis: ( ( for a, b, c being Element of Fin the carrier of R st card a = n & [a,b] in X & [b,c] in X holds
[a,c] in X ) implies for a, b, c being Element of Fin the carrier of R st card a = n + 1 & [a,b] in X & [b,c] in X holds
[b5,b7] in X )

assume A37: for a, b, c being Element of Fin the carrier of R st card a = n & [a,b] in X & [b,c] in X holds
[a,c] in X ; :: thesis: for a, b, c being Element of Fin the carrier of R st card a = n + 1 & [a,b] in X & [b,c] in X holds
[b5,b7] in X

let a, b, c be Element of Fin the carrier of R; :: thesis: ( card a = n + 1 & [a,b] in X & [b,c] in X implies [b2,b4] in X )
assume A38: ( card a = n + 1 & [a,b] in X & [b,c] in X ) ; :: thesis: [b2,b4] in X
per cases ( a = {} or ( a <> {} & b <> {} & PosetMax a <> PosetMax b & [(PosetMax a),(PosetMax b)] in the InternalRel of R ) or ( a <> {} & b <> {} & PosetMax a = PosetMax b & [(a \ {(PosetMax a)}),(b \ {(PosetMax b)})] in union (rng (FinOrd-Approx R)) ) ) by A38, Th36;
suppose a = {} ; :: thesis: [b2,b4] in X
hence [a,c] in X by Th36; :: thesis: verum
end;
suppose A39: ( a <> {} & b <> {} & PosetMax a <> PosetMax b & [(PosetMax a),(PosetMax b)] in the InternalRel of R ) ; :: thesis: [b2,b4] in X
now
per cases ( b = {} or ( b <> {} & c <> {} & PosetMax b <> PosetMax c & [(PosetMax b),(PosetMax c)] in the InternalRel of R ) or ( b <> {} & c <> {} & PosetMax b = PosetMax c & [(b \ {(PosetMax b)}),(c \ {(PosetMax c)})] in union (rng (FinOrd-Approx R)) ) ) by A38, Th36;
end;
end;
hence [a,c] in X ; :: thesis: verum
end;
suppose A42: ( a <> {} & b <> {} & PosetMax a = PosetMax b & [(a \ {(PosetMax a)}),(b \ {(PosetMax b)})] in union (rng (FinOrd-Approx R)) ) ; :: thesis: [b2,b4] in X
now
per cases ( b = {} or ( b <> {} & c <> {} & PosetMax b <> PosetMax c & [(PosetMax b),(PosetMax c)] in the InternalRel of R ) or ( b <> {} & c <> {} & PosetMax b = PosetMax c & [(b \ {(PosetMax b)}),(c \ {(PosetMax c)})] in union (rng (FinOrd-Approx R)) ) ) by A38, Th36;
suppose b = {} ; :: thesis: [a,c] in X
hence [a,c] in X by A42; :: thesis: verum
end;
suppose ( b <> {} & c <> {} & PosetMax b <> PosetMax c & [(PosetMax b),(PosetMax c)] in the InternalRel of R ) ; :: thesis: [a,c] in X
hence [a,c] in X by A42, Th36; :: thesis: verum
end;
suppose A43: ( b <> {} & c <> {} & PosetMax b = PosetMax c & [(b \ {(PosetMax b)}),(c \ {(PosetMax c)})] in union (rng (FinOrd-Approx R)) ) ; :: thesis: [a,c] in X
set z = a \ {(PosetMax a)};
reconsider z = a \ {(PosetMax a)} as Element of Fin the carrier of R by Th38;
A44: card z = n by A38, Lm1;
A45: ( c c= the carrier of R & c is finite ) by FINSUB_1:def 5;
reconsider c' = c as finite set ;
set zc = c' \ {(PosetMax c)};
c' \ {(PosetMax c)} c= the carrier of R by A45, XBOOLE_1:1;
then reconsider zc = c' \ {(PosetMax c)} as Element of Fin the carrier of R by FINSUB_1:def 5;
A46: ( b c= the carrier of R & b is finite ) by FINSUB_1:def 5;
reconsider b' = b as finite set ;
set zb = b' \ {(PosetMax b)};
b' \ {(PosetMax b)} c= the carrier of R by A46, XBOOLE_1:1;
then reconsider zb = b' \ {(PosetMax b)} as Element of Fin the carrier of R by FINSUB_1:def 5;
[z,zb] in union (rng (FinOrd-Approx R)) by A42;
then [z,zc] in union (rng (FinOrd-Approx R)) by A37, A43, A44;
hence [a,c] in X by A42, A43, Th36; :: thesis: verum
end;
end;
end;
hence [a,c] in X ; :: thesis: verum
end;
end;
end;
then A47: for n being Element of NAT st S1[n] holds
S1[n + 1] ;
A48: for n being Element of NAT holds S1[n] from NAT_1:sch 1(A36, A47);
reconsider x' = x as Element of Fin the carrier of R by A34;
( x c= the carrier of R & x is finite ) by A34, FINSUB_1:def 5;
then consider n being Nat such that
A49: x,n are_equipotent by CARD_1:74;
card x' = n by A49, CARD_1:def 5;
hence [x,z] in X by A34, A48; :: thesis: verum
end;
hence X is_transitive_in Fin the carrier of R by RELAT_2:def 8; :: thesis: verum
end;
then reconsider R = union (rng (FinOrd-Approx R)) as Relation of (Fin the carrier of R) ;
( dom R = Fin the carrier of R & field R = Fin the carrier of R ) by A4, ORDERS_1:98;
hence union (rng (FinOrd-Approx R)) is Order of (Fin the carrier of R) by A4, PARTFUN1:def 4, RELAT_2:def 9, RELAT_2:def 12, RELAT_2:def 16; :: thesis: verum