let S be non empty non void ManySortedSign ; :: thesis: for A being non-empty MSAlgebra of S
for V being Variables of A
for t being c-Term of A,V
for f being ManySortedFunction of V,the Sorts of A ex vt being finite DecoratedTree st vt is_an_evaluation_of t,f
let A be non-empty MSAlgebra of S; :: thesis: for V being Variables of A
for t being c-Term of A,V
for f being ManySortedFunction of V,the Sorts of A ex vt being finite DecoratedTree st vt is_an_evaluation_of t,f
let V be Variables of A; :: thesis: for t being c-Term of A,V
for f being ManySortedFunction of V,the Sorts of A ex vt being finite DecoratedTree st vt is_an_evaluation_of t,f
let t be c-Term of A,V; :: thesis: for f being ManySortedFunction of V,the Sorts of A ex vt being finite DecoratedTree st vt is_an_evaluation_of t,f
let f be ManySortedFunction of V,the Sorts of A; :: thesis: ex vt being finite DecoratedTree st vt is_an_evaluation_of t,f
defpred S1[ set ] means ex t being c-Term of A,V ex vt being finite DecoratedTree st
( t = $1 & vt is_an_evaluation_of t,f );
A1:
for s being SortSymbol of S
for x being Element of the Sorts of A . s holds S1[ root-tree [x,s]]
proof
let s be
SortSymbol of
S;
:: thesis: for x being Element of the Sorts of A . s holds S1[ root-tree [x,s]]let x be
Element of the
Sorts of
A . s;
:: thesis: S1[ root-tree [x,s]]
reconsider t =
root-tree [x,s] as
c-Term of
A,
V by Th6;
take
t
;
:: thesis: ex vt being finite DecoratedTree st
( t = root-tree [x,s] & vt is_an_evaluation_of t,f )
take
root-tree x
;
:: thesis: ( t = root-tree [x,s] & root-tree x is_an_evaluation_of t,f )
thus
t = root-tree [x,s]
;
:: thesis: root-tree x is_an_evaluation_of t,f
thus
root-tree x is_an_evaluation_of t,
f
by Th31;
:: thesis: verum
end;
A2:
for s being SortSymbol of S
for v being Element of V . s holds S1[ root-tree [v,s]]
proof
let s be
SortSymbol of
S;
:: thesis: for v being Element of V . s holds S1[ root-tree [v,s]]let x be
Element of
V . s;
:: thesis: S1[ root-tree [x,s]]
reconsider t =
root-tree [x,s] as
c-Term of
A,
V by Th8;
take
t
;
:: thesis: ex vt being finite DecoratedTree st
( t = root-tree [x,s] & vt is_an_evaluation_of t,f )
take
root-tree ((f . s) . x)
;
:: thesis: ( t = root-tree [x,s] & root-tree ((f . s) . x) is_an_evaluation_of t,f )
thus
t = root-tree [x,s]
;
:: thesis: root-tree ((f . s) . x) is_an_evaluation_of t,f
thus
root-tree ((f . s) . x) is_an_evaluation_of t,
f
by Th32;
:: thesis: verum
end;
A3:
for o being OperSymbol of S
for p being ArgumentSeq of o,A,V st ( for t being c-Term of A,V st t in rng p holds
S1[t] ) holds
S1[(Sym o,(the Sorts of A \/ V)) -tree p]
proof
let o be
OperSymbol of
S;
:: thesis: for p being ArgumentSeq of o,A,V st ( for t being c-Term of A,V st t in rng p holds
S1[t] ) holds
S1[(Sym o,(the Sorts of A \/ V)) -tree p]let p be
ArgumentSeq of
o,
A,
V;
:: thesis: ( ( for t being c-Term of A,V st t in rng p holds
S1[t] ) implies S1[(Sym o,(the Sorts of A \/ V)) -tree p] )
assume A4:
for
t being
c-Term of
A,
V st
t in rng p holds
ex
u being
c-Term of
A,
V ex
vt being
finite DecoratedTree st
(
u = t &
vt is_an_evaluation_of u,
f )
;
:: thesis: S1[(Sym o,(the Sorts of A \/ V)) -tree p]
A5:
dom p = Seg (len p)
by FINSEQ_1:def 3;
defpred S2[
set ,
set ]
means ex
t being
c-Term of
A,
V ex
vt being
finite DecoratedTree st
( $2
= vt &
t = p . $1 &
vt is_an_evaluation_of t,
f );
A6:
for
e being
set st
e in dom p holds
ex
u being
set st
S2[
e,
u]
consider q being
Function such that A8:
(
dom q = dom p & ( for
x being
set st
x in dom p holds
S2[
x,
q . x] ) )
from CLASSES1:sch 1(A6);
reconsider q =
q as
FinSequence by A5, A8, FINSEQ_1:def 2;
A9:
len p = len q
by A8, FINSEQ_3:31;
then reconsider q =
q as
DTree-yielding FinSequence by TREES_3:26;
then
ex
vt being
finite DecoratedTree st
(
vt = ((Den o,A) . (roots q)) -tree q &
vt is_an_evaluation_of (Sym o,(the Sorts of A \/ V)) -tree p,
f )
by A9, Th33;
hence
S1[
(Sym o,(the Sorts of A \/ V)) -tree p]
;
:: thesis: verum
end;
for t being c-Term of A,V holds S1[t]
from MSATERM:sch 2(A1, A2, A3);
then
ex u being c-Term of A,V ex vt being finite DecoratedTree st
( u = t & vt is_an_evaluation_of u,f )
;
hence
ex vt being finite DecoratedTree st vt is_an_evaluation_of t,f
; :: thesis: verum