let S be non empty non void ManySortedSign ; for X being non-empty ManySortedSet of the carrier of S
for t being Element of (Free (S,X)) holds deg t >= height t
let X be non-empty ManySortedSet of the carrier of S; for t being Element of (Free (S,X)) holds deg t >= height t
let t be Element of (Free (S,X)); deg t >= height t
defpred S1[ Element of (Free (S,X))] means deg $1 >= height $1;
A1:
for s being SortSymbol of S
for x being Element of X . s holds S1[x -term ]
by TREES_1:42;
A2:
for o being OperSymbol of S
for p being Element of Args (o,(Free (S,X))) st ( for t being Element of (Free (S,X)) st t in rng p holds
S1[t] ) holds
S1[o -term p]
proof
let o be
OperSymbol of
S;
for p being Element of Args (o,(Free (S,X))) st ( for t being Element of (Free (S,X)) st t in rng p holds
S1[t] ) holds
S1[o -term p]let p be
Element of
Args (
o,
(Free (S,X)));
( ( for t being Element of (Free (S,X)) st t in rng p holds
S1[t] ) implies S1[o -term p] )
assume A3:
for
t being
Element of
(Free (S,X)) st
t in rng p holds
S1[
t]
;
S1[o -term p]
per cases
( the_arity_of o = {} or the_arity_of o <> {} )
;
suppose A4:
the_arity_of o <> {}
;
S1[o -term p]set i = the
Element of
dom (the_arity_of o);
dom (the_arity_of o) <> {}
by A4;
then A9:
( the
Element of
dom (the_arity_of o) in dom (the_arity_of o) &
dom (the_arity_of o) = dom p )
by MSUALG_3:6;
then
(
p /. the
Element of
dom (the_arity_of o) = p . the
Element of
dom (the_arity_of o) &
p . the
Element of
dom (the_arity_of o) in rng p )
by PARTFUN1:def 6, FUNCT_1:def 3;
then
height (p /. the Element of dom (the_arity_of o)) in { (height t1) where t1 is Element of (Free (S,X)) : t1 in rng p }
;
then reconsider I =
{ (height t1) where t1 is Element of (Free (S,X)) : t1 in rng p } as non
empty finite natural-membered set by Th25;
reconsider n =
union I as
Nat ;
union I in I
by SIMPLEX0:9;
then consider t1 being
Element of
(Free (S,X)) such that A7:
(
n = height t1 &
t1 in rng p )
;
consider i being
object such that A8:
(
i in dom p &
t1 = p . i )
by A7, FUNCT_1:def 3;
reconsider i =
i as
Element of
NAT by A8;
A5:
height (o -term p) = n + 1
by A4, Th26;
deffunc H1(
object )
-> Nat =
deg (p /. $1);
consider g being
Function such that A6:
(
dom g = dom (the_arity_of o) & ( for
i being
object st
i in dom (the_arity_of o) holds
g . i = H1(
i) ) )
from FUNCT_1:sch 3();
dom g = Seg (len (the_arity_of o))
by A6, FINSEQ_1:def 3;
then reconsider g =
g as
FinSequence by FINSEQ_1:def 2;
rng g c= NAT
then reconsider g =
g as
FinSequence of
NAT by FINSEQ_1:def 4;
then B3:
deg (o -term p) = (Sum g) + 1
by A6, Th29;
(
Sum g >= g . i &
g . i = H1(
i) &
H1(
i)
= deg t1 &
deg t1 >= n )
by A3, A7, A8, A9, A6, PARTFUN1:def 6, POLYNOM3:4;
then
Sum g >= n
by XXREAL_0:2;
hence
deg (o -term p) >= height (o -term p)
by B3, A5, XREAL_1:6;
verum end; end;
end;
thus
S1[t]
from MSAFREE5:sch 2(A1, A2); verum