let p be FinSequence of NAT ; for T, T1 being Tree st p in T holds
T1 = (T with-replacement (p,T1)) | p
let T, T1 be Tree; ( p in T implies T1 = (T with-replacement (p,T1)) | p )
assume A1:
p in T
; T1 = (T with-replacement (p,T1)) | p
then A2:
p in T with-replacement (p,T1)
by Def9;
thus
T1 c= (T with-replacement (p,T1)) | p
XBOOLE_0:def 10 (T with-replacement (p,T1)) | p is_a_prefix_of T1
let x be object ; TARSKI:def 3 ( not x in (T with-replacement (p,T1)) | p or x in T1 )
assume A4:
x in (T with-replacement (p,T1)) | p
; x in T1
then reconsider q = x as FinSequence of NAT by Th18;
A5:
p ^ q in T with-replacement (p,T1)
by A2, A4, Def6;
( ex r being FinSequence of NAT st
( r in T1 & p ^ q = p ^ r ) implies q in T1 )
by FINSEQ_1:33;
hence
x in T1
by A1, A5, A6, Def9; verum