begin
:: deftheorem defines = TREES_4:def 1 :
for T1, T2 being DecoratedTree holds
( T1 = T2 iff ( dom T1 = dom T2 & ( for p being Node of T1 holds T1 . p = T2 . p ) ) );
theorem Th1:
theorem Th2:
Lm2:
for n being Element of NAT
for p being FinSequence st n < len p holds
( n + 1 in dom p & p . (n + 1) in rng p )
:: deftheorem defines root-tree TREES_4:def 2 :
for x being set holds root-tree x = (elementary_tree 0) --> x;
theorem Th3:
theorem
theorem Th5:
theorem
:: deftheorem Def3 defines -flat_tree TREES_4:def 3 :
for x being set
for p being FinSequence
for b3 being DecoratedTree holds
( b3 = x -flat_tree p iff ( dom b3 = elementary_tree (len p) & b3 . {} = x & ( for n being Element of NAT st n < len p holds
b3 . <*n*> = p . (n + 1) ) ) );
theorem
theorem Th8:
theorem Th9:
:: deftheorem Def4 defines -tree TREES_4:def 4 :
for x being set
for p being FinSequence st p is DTree-yielding holds
for b3 being DecoratedTree holds
( b3 = x -tree p iff ( ex q being DTree-yielding FinSequence st
( p = q & dom b3 = tree (doms q) ) & b3 . {} = x & ( for n being Element of NAT st n < len p holds
b3 | <*n*> = p . (n + 1) ) ) );
:: deftheorem defines -tree TREES_4:def 5 :
for x being set
for T being DecoratedTree holds x -tree T = x -tree <*T*>;
:: deftheorem defines -tree TREES_4:def 6 :
for x being set
for T1, T2 being DecoratedTree holds x -tree (T1,T2) = x -tree <*T1,T2*>;
theorem Th10:
theorem Th11:
theorem Th12:
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
begin
:: deftheorem Def7 defines <- TREES_4:def 7 :
for T, T9 being DecoratedTree
for x being set
for b4 being DecoratedTree holds
( b4 = (T,x) <- T9 iff ( ( for p being FinSequence holds
( p in dom b4 iff ( p in dom T or ex q being Node of T ex r being Node of T9 st
( q in Leaves (dom T) & T . q = x & p = q ^ r ) ) ) ) & ( for p being Node of T st ( not p in Leaves (dom T) or T . p <> x ) holds
b4 . p = T . p ) & ( for p being Node of T
for q being Node of T9 st p in Leaves (dom T) & T . p = x holds
b4 . (p ^ q) = T9 . q ) ) );
theorem
begin
theorem Th24:
theorem Th25:
theorem
theorem Th27:
theorem Th28:
theorem Th29:
theorem Th30:
theorem
theorem