reconsider IT = { <*k*> where k is Element of NAT : k < n } \/ {{} } as non empty set ;
IT is Tree-like
proof
thus
IT c= NAT *
:: according to TREES_1:def 5 :: thesis: ( ( 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
:: thesis: 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 ;
:: thesis: 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 ;
:: thesis: ( p ^ <*k*> in IT & m <= k implies p ^ <*m*> in IT )
assume
p ^ <*k*> in IT
;
:: thesis: ( 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 A3:
(
p ^ <*k*> = <*l*> &
l < n )
by TARSKI:def 1;
(len p) + (len <*k*>) =
len <*l*>
by A3, FINSEQ_1:35
.=
1
by FINSEQ_1:56
;
then
(len p) + 1
= 0 + 1
by FINSEQ_1:56;
then A4:
p = {}
;
then
(
<*k*> = <*l*> &
<*k*> . 1
= k )
by A3, FINSEQ_1:47, FINSEQ_1:def 8;
then A5:
k = l
by FINSEQ_1:def 8;
assume
m <= k
;
:: thesis: p ^ <*m*> in IT
then
(
p ^ <*m*> = <*m*> &
m < n )
by A3, A4, A5, FINSEQ_1:47, XXREAL_0:2;
then
p ^ <*m*> in { <*j*> where j is Element of NAT : j < n }
;
hence
p ^ <*m*> in IT
by XBOOLE_0:def 3;
:: thesis: 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 ) );
A6:
for
x,
y,
z being
set st
x in IT &
S1[
x,
y] &
S1[
x,
z] holds
y = z
A11:
for
x being
set st
x in IT holds
ex
y being
set st
S1[
x,
y]
consider f being
Function such that A16:
(
dom f = IT & ( for
x being
set st
x in IT holds
S1[
x,
f . x] ) )
from CLASSES1:sch 1(A11);
take
f
;
:: according to WELLORD2:def 4 :: thesis: ( f is one-to-one & dom f = IT & rng f = Seg (n + 1) )
thus
f is
one-to-one
:: thesis: ( dom f = IT & rng f = Seg (n + 1) )
thus
dom f = IT
by A16;
:: thesis: rng f = Seg (n + 1)
thus
rng f c= Seg (n + 1)
:: according to XBOOLE_0:def 10 :: thesis: Seg (n + 1) is_a_prefix_of rng f
let x be
set ;
:: according to TARSKI:def 3 :: thesis: ( not x in Seg (n + 1) or x in rng f )
assume A28:
x in Seg (n + 1)
;
:: thesis: x in rng f
then reconsider k =
x as
Element of
NAT ;
A29:
( 1
<= k &
k <= n + 1 )
by A28, FINSEQ_1:3;
{} in {{} }
by TARSKI:def 1;
then A30:
{} in IT
by XBOOLE_0:def 3;
then
(
S1[
{} ,1] &
S1[
{} ,
f . {} ] )
by A16;
then A31:
1
in rng f
by A16, A30, FUNCT_1:def 5;
hence
x in rng f
by A29, A31, XXREAL_0:1;
:: thesis: verum
end;
hence
{ <*k*> where k is Element of NAT : k < n } \/ {{} } is finite Tree
by CARD_1:68; :: thesis: verum