let Z1, Z2 be Tree; 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 ; ( 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
; 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); for w being Element of Z2 st t = p ^ w holds
succ t, succ w are_equipotent
let t2 be Element of Z2; ( t = p ^ t2 implies succ t, succ t2 are_equipotent )
assume A2:
t = p ^ t2
; succ t, succ t2 are_equipotent
then A3:
p is_a_prefix_of t
by TREES_1:1;
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*>;
A7:
for x being set st x in succ t holds
ex y being set st S1[x,y]
consider f being Function such that
A9:
( dom f = succ t & ( for x being set st x in succ t holds
S1[x,f . x] ) )
from CLASSES1:sch 1(A7);
then A18:
rng f = succ t2
by TARSKI:1;
f is one-to-one
proof
let x1 be
set ;
FUNCT_1:def 4 for b1 being set holds
( not x1 in proj1 f or not b1 in proj1 f or not f . x1 = f . b1 or x1 = b1 )let x2 be
set ;
( not x1 in proj1 f or not x2 in proj1 f or not f . x1 = f . x2 or x1 = x2 )
assume that A19:
x1 in dom f
and A20:
x2 in dom f
and A21:
f . x1 = f . x2
;
x1 = x2
consider m being
Element of
NAT such that A22:
x1 = t ^ <*m*>
and
t ^ <*m*> in Z1 with-replacement (
p,
Z2)
by A9, A19;
consider k being
Element of
NAT such that A23:
x2 = t ^ <*k*>
and
t ^ <*k*> in Z1 with-replacement (
p,
Z2)
by A9, A20;
t2 ^ <*m*> =
f . x1
by A9, A19, A22
.=
t2 ^ <*k*>
by A9, A20, A21, A23
;
hence
x1 = x2
by A22, A23, FINSEQ_1:33;
verum
end;
hence
succ t, succ t2 are_equipotent
by A9, A18, WELLORD2:def 4; verum