let Z1, Z2 be Tree; :: thesis: for p being FinSequence of NAT st p in Z1 holds
for v being Element of Z1 with-replacement p,Z2
for w being Element of Z2 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 with-replacement p,Z2
for w being Element of Z2 st v = p ^ w holds
succ v, succ w are_equipotent )
assume A1:
p in Z1
; :: thesis: for v being Element of Z1 with-replacement p,Z2
for w being Element of Z2 st v = p ^ w holds
succ v, succ w are_equipotent
set T = Z1 with-replacement p,Z2;
let t be Element of Z1 with-replacement p,Z2; :: thesis: for w being Element of Z2 st t = p ^ w holds
succ t, succ w are_equipotent
let t2 be Element of Z2; :: thesis: ( t = p ^ t2 implies succ t, succ t2 are_equipotent )
assume A2:
t = p ^ t2
; :: thesis: succ t, succ t2 are_equipotent
then A3:
p is_a_prefix_of t
by TREES_1:8;
A4:
for n being Element of NAT holds
( t ^ <*n*> in Z1 with-replacement p,Z2 iff t2 ^ <*n*> in Z2 )
defpred S1[ set , set ] means for n being Element of NAT st $1 = t ^ <*n*> holds
$2 = t2 ^ <*n*>;
A10:
for x being set st x in succ t holds
ex y being set st S1[x,y]
consider f being Function such that
A12:
( dom f = succ t & ( for x being set st x in succ t holds
S1[x,f . x] ) )
from CLASSES1:sch 1(A10);
A13:
rng f = succ t2
f is one-to-one
hence
succ t, succ t2 are_equipotent
by A12, A13, WELLORD2:def 4; :: thesis: verum