let I be Program of SCM+FSA; ( I is paraclosed iff for s being State of SCM+FSA
for P being the Instructions of SCM+FSA -valued ManySortedSet of NAT holds I is_closed_on s,P )
thus
( I is paraclosed implies for s being State of SCM+FSA
for P being the Instructions of SCM+FSA -valued ManySortedSet of NAT holds I is_closed_on s,P )
( ( for s being State of SCM+FSA
for P being the Instructions of SCM+FSA -valued ManySortedSet of NAT holds I is_closed_on s,P ) implies I is paraclosed )proof
assume A1:
I is
paraclosed
;
for s being State of SCM+FSA
for P being the Instructions of SCM+FSA -valued ManySortedSet of NAT holds I is_closed_on s,P
let s be
State of
SCM+FSA;
for P being the Instructions of SCM+FSA -valued ManySortedSet of NAT holds I is_closed_on s,Plet P be the
Instructions of
SCM+FSA -valued ManySortedSet of
NAT ;
I is_closed_on s,Plet k be
Element of
NAT ;
SCMFSA7B:def 7 IC (Comput ((P +* I),(Initialize s),k)) in dom I
yy:
Start-At (
0,
SCM+FSA)
c= Initialize s
by FUNCT_4:26;
I c= P +* I
by FUNCT_4:26;
hence
IC (Comput ((P +* I),(Initialize s),k)) in dom I
by A1, yy, SCMFSA6B:def 2;
verum
end;
assume A2:
for s being State of SCM+FSA
for P being the Instructions of SCM+FSA -valued ManySortedSet of NAT holds I is_closed_on s,P
; I is paraclosed
let s be State of SCM+FSA; SCMFSA6B:def 2 for b1 being set holds
( not I c= b1 or for b2 being Element of NAT holds
( not Start-At (0,SCM+FSA) c= s or IC (Comput (b1,s,b2)) in proj1 I ) )
let P be the Instructions of SCM+FSA -valued ManySortedSet of NAT ; ( not I c= P or for b1 being Element of NAT holds
( not Start-At (0,SCM+FSA) c= s or IC (Comput (P,s,b1)) in proj1 I ) )
assume A3:
I c= P
; for b1 being Element of NAT holds
( not Start-At (0,SCM+FSA) c= s or IC (Comput (P,s,b1)) in proj1 I )
let n be Element of NAT ; ( not Start-At (0,SCM+FSA) c= s or IC (Comput (P,s,n)) in proj1 I )
assume A4:
Start-At (0,SCM+FSA) c= s
; IC (Comput (P,s,n)) in proj1 I
A5:
P = P +* I
by A3, FUNCT_4:103, FUNCT_4:104;
A6:
s = Initialize s
by A4, FUNCT_4:103, FUNCT_4:104;
I is_closed_on s,P
by A2;
hence
IC (Comput (P,s,n)) in dom I
by A5, A6, Def7; verum