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 Z1 st v = w & not p,w are_c=-comparable holds
succ v = succ w

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 Z1 st v = w & not p,w are_c=-comparable holds
succ v = succ w )

assume A1: p in Z1 ; :: thesis: for v being Element of Z1 with-replacement (p,Z2)
for w being Element of Z1 st v = w & not p,w are_c=-comparable holds
succ v = succ w

set Z = Z1 with-replacement (p,Z2);
let v be Element of Z1 with-replacement (p,Z2); :: thesis: for w being Element of Z1 st v = w & not p,w are_c=-comparable holds
succ v = succ w

let w be Element of Z1; :: thesis: ( v = w & not p,w are_c=-comparable implies succ v = succ w )
assume that
A2: v = w and
A3: not p,w are_c=-comparable ; :: thesis: succ v = succ w
A4: not p is_a_prefix_of w by A3;
now :: thesis: for x being object holds
( ( x in succ v implies x in succ w ) & ( x in succ w implies x in succ v ) )
let x be object ; :: thesis: ( ( x in succ v implies x in succ w ) & ( x in succ w implies x in succ v ) )
thus ( x in succ v implies x in succ w ) :: thesis: ( x in succ w implies x in succ v )
proof
assume x in succ v ; :: thesis: x in succ w
then x in { (v ^ <*n*>) where n is Nat : v ^ <*n*> in Z1 with-replacement (p,Z2) } by TREES_2:def 5;
then consider n being Nat such that
A5: x = v ^ <*n*> and
A6: v ^ <*n*> in Z1 with-replacement (p,Z2) ;
reconsider n = n as Element of NAT by ORDINAL1:def 12;
x = v ^ <*n*> by A5;
then reconsider x9 = x as FinSequence of NAT ;
v ^ <*n*> in Z1 then x in { (w ^ <*m*>) where m is Nat : w ^ <*m*> in Z1 } by A2, A5;
hence x in succ w by TREES_2:def 5; :: thesis: verum
end;
assume x in succ w ; :: thesis: x in succ v
then x in { (w ^ <*n*>) where n is Nat : w ^ <*n*> in Z1 } by TREES_2:def 5;
then consider n being Nat such that
A9: x = w ^ <*n*> and
A10: w ^ <*n*> in Z1 ;
reconsider n = n as Element of NAT by ORDINAL1:def 12;
not p is_a_proper_prefix_of w ^ <*n*> by A4, TREES_1:9;
then v ^ <*n*> in Z1 with-replacement (p,Z2) by A1, A2, A10, TREES_1:def 9;
then x in { (v ^ <*m*>) where m is Nat : v ^ <*m*> in Z1 with-replacement (p,Z2) } by A2, A9;
hence x in succ v by TREES_2:def 5; :: thesis: verum
end;
hence succ v = succ w by TARSKI:2; :: thesis: verum