let S be non void Signature; for X, Y being non-empty ManySortedSet of the carrier of S
for t being Term of S,Y st variables_in t c= X holds
t is Term of S,X
let X, Y be non-empty ManySortedSet of the carrier of S; for t being Term of S,Y st variables_in t c= X holds
t is Term of S,X
defpred S1[ DecoratedTree] means ( Y variables_in $1 c= X implies $1 is Term of S,X );
let t be Term of S,Y; ( variables_in t c= X implies t is Term of S,X )
A1:
for o being OperSymbol of S
for p being ArgumentSeq of Sym (o,Y) st ( for t being Term of S,Y st t in rng p holds
S1[t] ) holds
S1[[o, the carrier of S] -tree p]
proof
let o be
OperSymbol of
S;
for p being ArgumentSeq of Sym (o,Y) st ( for t being Term of S,Y st t in rng p holds
S1[t] ) holds
S1[[o, the carrier of S] -tree p]let p be
ArgumentSeq of
Sym (
o,
Y);
( ( for t being Term of S,Y st t in rng p holds
S1[t] ) implies S1[[o, the carrier of S] -tree p] )
assume that A2:
for
t being
Term of
S,
Y st
t in rng p &
Y variables_in t c= X holds
t is
Term of
S,
X
and A3:
Y variables_in ([o, the carrier of S] -tree p) c= X
;
[o, the carrier of S] -tree p is Term of S,X
len p = len (the_arity_of o)
by MSATERM:22;
then reconsider p =
p as
ArgumentSeq of
Sym (
o,
X)
by A4, MSATERM:24;
(Sym (o,X)) -tree p is
Term of
S,
X
;
hence
[o, the carrier of S] -tree p is
Term of
S,
X
by MSAFREE:def 9;
verum
end;
assume
variables_in t c= X
; t is Term of S,X
then A8:
Y variables_in t c= X
by Th15;
A9:
for s being SortSymbol of S
for x being Element of Y . s holds S1[ root-tree [x,s]]
proof
let s be
SortSymbol of
S;
for x being Element of Y . s holds S1[ root-tree [x,s]]let x be
Element of
Y . s;
S1[ root-tree [x,s]]
assume
Y variables_in (root-tree [x,s]) c= X
;
root-tree [x,s] is Term of S,X
then A10:
(Y variables_in (root-tree [x,s])) . s c= X . s
;
(Y variables_in (root-tree [x,s])) . s = {x}
by Th12;
then
x in X . s
by A10, ZFMISC_1:31;
hence
root-tree [x,s] is
Term of
S,
X
by MSATERM:4;
verum
end;
for t being Term of S,Y holds S1[t]
from MSATERM:sch 1(A9, A1);
hence
t is Term of S,X
by A8; verum