let Z1 be Tree; :: thesis: for p being FinSequence of NAT st p in Z1 holds
for v being Element of Z1
for w being Element of Z1 | p st v = p ^ w holds
succ v, succ w are_equipotent
let p be FinSequence of NAT ; :: thesis: ( p in Z1 implies for v being Element of Z1
for w being Element of Z1 | p st v = p ^ w holds
succ v, succ w are_equipotent )
assume A1:
p in Z1
; :: thesis: for v being Element of Z1
for w being Element of Z1 | p st v = p ^ w holds
succ v, succ w are_equipotent
set T = Z1 | p;
let t be Element of Z1; :: thesis: for w being Element of Z1 | p st t = p ^ w holds
succ t, succ w are_equipotent
let t2 be Element of Z1 | p; :: thesis: ( t = p ^ t2 implies succ t, succ t2 are_equipotent )
assume A2:
t = p ^ t2
; :: thesis: succ t, succ t2 are_equipotent
A3:
for n being Element of NAT holds
( t ^ <*n*> in Z1 iff t2 ^ <*n*> in Z1 | p )
defpred S1[ set , set ] means for n being Element of NAT st $1 = t ^ <*n*> holds
$2 = t2 ^ <*n*>;
A8:
for x being set st x in succ t holds
ex y being set st S1[x,y]
consider f being Function such that
A10:
( dom f = succ t & ( for x being set st x in succ t holds
S1[x,f . x] ) )
from CLASSES1:sch 1(A8);
A11:
rng f = succ t2
f is one-to-one
proof
now let x1,
x2 be
set ;
:: thesis: ( x1 in dom f & x2 in dom f & f . x1 = f . x2 implies x1 = x2 )assume A17:
(
x1 in dom f &
x2 in dom f &
f . x1 = f . x2 )
;
:: thesis: x1 = x2then
x1 in { (t ^ <*n*>) where n is Element of NAT : t ^ <*n*> in Z1 }
by A10, TREES_2:def 5;
then consider m being
Element of
NAT such that A18:
(
x1 = t ^ <*m*> &
t ^ <*m*> in Z1 )
;
x2 in { (t ^ <*n*>) where n is Element of NAT : t ^ <*n*> in Z1 }
by A10, A17, TREES_2:def 5;
then consider k being
Element of
NAT such that A19:
(
x2 = t ^ <*k*> &
t ^ <*k*> in Z1 )
;
t2 ^ <*m*> =
f . x1
by A10, A17, A18
.=
t2 ^ <*k*>
by A10, A17, A19
;
hence
x1 = x2
by A18, A19, FINSEQ_1:46;
:: thesis: verum end;
hence
f is
one-to-one
by FUNCT_1:def 8;
:: thesis: verum
end;
hence
succ t, succ t2 are_equipotent
by A10, A11, WELLORD2:def 4; :: thesis: verum