reconsider IT = { <*k*> where k is Element of NAT : k < n } \/ {{} } as non empty set ;
IT is Tree-like
proof
thus
IT c= NAT *
TREES_1:def 5 ( ( for p being FinSequence of NAT st p in IT holds
ProperPrefixes p c= IT ) & ( for p being FinSequence of NAT
for k, n being Element of NAT st p ^ <*k*> in IT & n <= k holds
p ^ <*n*> in IT ) )
thus
for
p being
FinSequence of
NAT st
p in IT holds
ProperPrefixes p c= IT
for p being FinSequence of NAT
for k, n being Element of NAT st p ^ <*k*> in IT & n <= k holds
p ^ <*n*> in IT
let p be
FinSequence of
NAT ;
for k, n being Element of NAT st p ^ <*k*> in IT & n <= k holds
p ^ <*n*> in ITlet k,
m be
Element of
NAT ;
( p ^ <*k*> in IT & m <= k implies p ^ <*m*> in IT )
assume
p ^ <*k*> in IT
;
( not m <= k or p ^ <*m*> in IT )
then
(
p ^ <*k*> in { <*j*> where j is Element of NAT : j < n } or
p ^ <*k*> in {{} } )
by XBOOLE_0:def 3;
then consider l being
Element of
NAT such that A17:
p ^ <*k*> = <*l*>
and A18:
l < n
by TARSKI:def 1;
(len p) + (len <*k*>) =
len <*l*>
by A17, FINSEQ_1:35
.=
1
by FINSEQ_1:56
;
then
(len p) + 1
= 0 + 1
by FINSEQ_1:56;
then A21:
p = {}
;
then A22:
<*k*> = <*l*>
by A17, FINSEQ_1:47;
<*k*> . 1
= k
by FINSEQ_1:def 8;
then A24:
k = l
by A22, FINSEQ_1:def 8;
assume A25:
m <= k
;
p ^ <*m*> in IT
A26:
p ^ <*m*> = <*m*>
by A21, FINSEQ_1:47;
m < n
by A18, A24, A25, XXREAL_0:2;
then
p ^ <*m*> in { <*j*> where j is Element of NAT : j < n }
by A26;
hence
p ^ <*m*> in IT
by XBOOLE_0:def 3;
verum
end;
then reconsider IT = IT as Tree ;
IT, Seg (n + 1) are_equipotent
proof
defpred S1[
set ,
set ]
means ( ( $1
= {} & $2
= 1 ) or ex
n being
Element of
NAT st
( $1
= <*n*> & $2
= n + 2 ) );
A30:
for
x,
y,
z being
set st
x in IT &
S1[
x,
y] &
S1[
x,
z] holds
y = z
proof
let x,
y,
z be
set ;
( x in IT & S1[x,y] & S1[x,z] implies y = z )
assume that
x in IT
and A31:
( ( (
x = {} &
y = 1 ) or ex
n being
Element of
NAT st
(
x = <*n*> &
y = n + 2 ) ) & ( (
x = {} &
z = 1 ) or ex
n being
Element of
NAT st
(
x = <*n*> &
z = n + 2 ) ) )
;
y = z
hence
y = z
by A31;
verum
end;
A36:
for
x being
set st
x in IT holds
ex
y being
set st
S1[
x,
y]
consider f being
Function such that A43:
(
dom f = IT & ( for
x being
set st
x in IT holds
S1[
x,
f . x] ) )
from CLASSES1:sch 1(A36);
take
f
;
WELLORD2:def 4 ( f is one-to-one & proj1 f = IT & proj2 f = Seg (n + 1) )
thus
f is
one-to-one
( proj1 f = IT & proj2 f = Seg (n + 1) )
thus
dom f = IT
by A43;
proj2 f = Seg (n + 1)
thus
rng f c= Seg (n + 1)
XBOOLE_0:def 10 Seg (n + 1) is_a_prefix_of proj2 f
let x be
set ;
TARSKI:def 3 ( not x in Seg (n + 1) or x in proj2 f )
assume A70:
x in Seg (n + 1)
;
x in proj2 f
then reconsider k =
x as
Element of
NAT ;
A71:
1
<= k
by A70, FINSEQ_1:3;
A72:
k <= n + 1
by A70, FINSEQ_1:3;
{} in {{} }
by TARSKI:def 1;
then A74:
{} in IT
by XBOOLE_0:def 3;
then
S1[
{} ,
f . {} ]
by A43;
then A76:
1
in rng f
by A43, A74, FUNCT_1:def 5;
hence
x in proj2 f
by A71, A76, XXREAL_0:1;
verum
end;
hence
{ <*k*> where k is Element of NAT : k < n } \/ {{} } is finite Tree
by CARD_1:68; verum