theorem Th40:
for
p being
Instruction-Sequence of
SCM+FSA for
s being
State of
SCM+FSA for
a being
read-write Int-Location for
Ig being
good really-closed MacroInstruction of
SCM+FSA st
s . (intloc 0) = 1 &
ProperBodyWhile>0 a,
Ig,
s,
p &
WithVariantWhile>0 a,
Ig,
s,
p holds
ex
f being
Function of
(product (the_Values_of SCM+FSA)),
NAT st
(
f is
on_data_only & ( for
k being
Nat holds
(
f . ((StepWhile>0 (a,Ig,p,s)) . (k + 1)) < f . ((StepWhile>0 (a,Ig,p,s)) . k) or
((StepWhile>0 (a,Ig,p,s)) . k) . a <= 0 ) ) )