let q be NAT -defined the Instructions of SCMPDS -valued finite non halt-free Function; :: according to AMISTD_5:def 4 :: thesis: for b1 being set
for b2 being set holds
( not b1 c= b2 or for b3 being set holds
( not q c= b3 or for b4 being Element of NAT holds IC (Comput (b3,b2,b4)) in proj1 q ) )

let p be non empty q -autonomic FinPartState of SCMPDS; :: thesis: for b1 being set holds
( not p c= b1 or for b2 being set holds
( not q c= b2 or for b3 being Element of NAT holds IC (Comput (b2,b1,b3)) in proj1 q ) )

let s be State of SCMPDS; :: thesis: ( not p c= s or for b1 being set holds
( not q c= b1 or for b2 being Element of NAT holds IC (Comput (b1,s,b2)) in proj1 q ) )

assume A1: p c= s ; :: thesis: for b1 being set holds
( not q c= b1 or for b2 being Element of NAT holds IC (Comput (b1,s,b2)) in proj1 q )

let P be Instruction-Sequence of SCMPDS; :: thesis: ( not q c= P or for b1 being Element of NAT holds IC (Comput (P,s,b1)) in proj1 q )
assume A2: q c= P ; :: thesis: for b1 being Element of NAT holds IC (Comput (P,s,b1)) in proj1 q
let i be Element of NAT ; :: thesis: IC (Comput (P,s,i)) in proj1 q
set Csi = Comput (P,s,i);
set loc = IC (Comput (P,s,i));
set loc1 = (IC (Comput (P,s,i))) + 1;
assume not IC (Comput (P,s,i)) in dom q ; :: thesis: contradiction
then A4: not IC (Comput (P,s,i)) in dom q ;
set I = the Int_position := 0;
set q1 = q +* ((IC (Comput (P,s,i))) .--> ( the Int_position := 0));
set q2 = q +* ((IC (Comput (P,s,i))) .--> (halt SCMPDS));
reconsider P1 = P +* ((IC (Comput (P,s,i))) .--> ( the Int_position := 0)) as Instruction-Sequence of SCMPDS ;
reconsider P2 = P +* ((IC (Comput (P,s,i))) .--> (halt SCMPDS)) as Instruction-Sequence of SCMPDS ;
A6: dom ((IC (Comput (P,s,i))) .--> (halt SCMPDS)) = {(IC (Comput (P,s,i)))} by FUNCOP_1:13;
then A7: IC (Comput (P,s,i)) in dom ((IC (Comput (P,s,i))) .--> (halt SCMPDS)) by TARSKI:def 1;
A12: dom ((IC (Comput (P,s,i))) .--> ( the Int_position := 0)) = {(IC (Comput (P,s,i)))} by FUNCOP_1:13;
then A13: IC (Comput (P,s,i)) in dom ((IC (Comput (P,s,i))) .--> ( the Int_position := 0)) by TARSKI:def 1;
Y6: dom q misses dom ((IC (Comput (P,s,i))) .--> (halt SCMPDS)) by A4, A6, ZFMISC_1:50;
Y5: dom q misses dom ((IC (Comput (P,s,i))) .--> ( the Int_position := 0)) by A4, A12, ZFMISC_1:50;
P3: q +* ((IC (Comput (P,s,i))) .--> ( the Int_position := 0)) c= P1 by A2, FUNCT_4:123;
P4: q +* ((IC (Comput (P,s,i))) .--> (halt SCMPDS)) c= P2 by A2, FUNCT_4:123;
set Cs2i = Comput (P2,s,i);
set Cs1i = Comput (P1,s,i);
not p is q -autonomic
proof
((IC (Comput (P,s,i))) .--> (halt SCMPDS)) . (IC (Comput (P,s,i))) = halt SCMPDS by FUNCOP_1:72;
then A18: P2 . (IC (Comput (P,s,i))) = halt SCMPDS by A7, FUNCT_4:13;
((IC (Comput (P,s,i))) .--> ( the Int_position := 0)) . (IC (Comput (P,s,i))) = the Int_position := 0 by FUNCOP_1:72;
then A19: P1 . (IC (Comput (P,s,i))) = the Int_position := 0 by A13, FUNCT_4:13;
take P1 ; :: according to EXTPRO_1:def 10 :: thesis: ex b1 being set st
( q c= P1 & q c= b1 & ex b2, b3 being set st
( p c= b2 & p c= b3 & not for b4 being Element of NAT holds (Comput (P1,b2,b4)) | (proj1 p) = (Comput (b1,b3,b4)) | (proj1 p) ) )

take P2 ; :: thesis: ( q c= P1 & q c= P2 & ex b1, b2 being set st
( p c= b1 & p c= b2 & not for b3 being Element of NAT holds (Comput (P1,b1,b3)) | (proj1 p) = (Comput (P2,b2,b3)) | (proj1 p) ) )

q c= q +* ((IC (Comput (P,s,i))) .--> ( the Int_position := 0)) by Y5, FUNCT_4:32;
hence A25: q c= P1 by P3, XBOOLE_1:1; :: thesis: ( q c= P2 & ex b1, b2 being set st
( p c= b1 & p c= b2 & not for b3 being Element of NAT holds (Comput (P1,b1,b3)) | (proj1 p) = (Comput (P2,b2,b3)) | (proj1 p) ) )

q c= q +* ((IC (Comput (P,s,i))) .--> (halt SCMPDS)) by Y6, FUNCT_4:32;
hence A27: q c= P2 by P4, XBOOLE_1:1; :: thesis: ex b1, b2 being set st
( p c= b1 & p c= b2 & not for b3 being Element of NAT holds (Comput (P1,b1,b3)) | (proj1 p) = (Comput (P2,b2,b3)) | (proj1 p) )

take s ; :: thesis: ex b1 being set st
( p c= s & p c= b1 & not for b2 being Element of NAT holds (Comput (P1,s,b2)) | (proj1 p) = (Comput (P2,b1,b2)) | (proj1 p) )

take s ; :: thesis: ( p c= s & p c= s & not for b1 being Element of NAT holds (Comput (P1,s,b1)) | (proj1 p) = (Comput (P2,s,b1)) | (proj1 p) )
thus p c= s by A1; :: thesis: ( p c= s & not for b1 being Element of NAT holds (Comput (P1,s,b1)) | (proj1 p) = (Comput (P2,s,b1)) | (proj1 p) )
A28: (Comput (P1,s,i)) | (dom p) = (Comput (P,s,i)) | (dom p) by A25, A2, A1, EXTPRO_1:def 10;
thus p c= s by A1; :: thesis: not for b1 being Element of NAT holds (Comput (P1,s,b1)) | (proj1 p) = (Comput (P2,s,b1)) | (proj1 p)
A29: (Comput (P1,s,i)) | (dom p) = (Comput (P2,s,i)) | (dom p) by A25, A27, A1, EXTPRO_1:def 10;
take k = i + 1; :: thesis: not (Comput (P1,s,k)) | (proj1 p) = (Comput (P2,s,k)) | (proj1 p)
set Cs1k = Comput (P1,s,k);
A33: IC in dom p by AMISTD_5:6;
IC (Comput (P,s,i)) = IC ((Comput (P,s,i)) | (dom p)) by A33, FUNCT_1:49;
then IC (Comput (P1,s,i)) = IC (Comput (P,s,i)) by A28, A33, FUNCT_1:49;
then XX: CurInstr (P1,(Comput (P1,s,i))) = P1 . (IC (Comput (P,s,i))) by PBOOLE:143
.= the Int_position := 0 by A19 ;
A31: Comput (P1,s,k) = Following (P1,(Comput (P1,s,i))) by EXTPRO_1:3
.= Exec ((CurInstr (P1,(Comput (P1,s,i)))),(Comput (P1,s,i)))
.= Exec (( the Int_position := 0),(Comput (P1,s,i))) by XX ;
A32: IC (Exec (( the Int_position := 0),(Comput (P1,s,i)))) = succ (IC (Comput (P1,s,i))) by SCMPDS_2:45;
A33: IC in dom p by AMISTD_5:6;
A34: IC (Comput (P,s,i)) = IC ((Comput (P,s,i)) | (dom p)) by A33, FUNCT_1:49;
then IC (Comput (P1,s,i)) = IC (Comput (P,s,i)) by A28, A33, FUNCT_1:49;
then A35: IC (Comput (P1,s,k)) = succ (IC (Comput (P,s,i))) by A31, A32
.= (IC (Comput (P,s,i))) + 1 ;
set Cs2k = Comput (P2,s,k);
A36: Comput (P2,s,k) = Following (P2,(Comput (P2,s,i))) by EXTPRO_1:3
.= Exec ((CurInstr (P2,(Comput (P2,s,i)))),(Comput (P2,s,i))) ;
A37: P2 /. (IC (Comput (P2,s,i))) = P2 . (IC (Comput (P2,s,i))) by PBOOLE:143;
IC (Comput (P2,s,i)) = IC (Comput (P,s,i)) by A28, A34, A29, A33, FUNCT_1:49;
then A38: IC (Comput (P2,s,k)) = IC (Comput (P,s,i)) by A36, A18, A37, EXTPRO_1:def 3;
( IC ((Comput (P1,s,k)) | (dom p)) = IC (Comput (P1,s,k)) & IC ((Comput (P2,s,k)) | (dom p)) = IC (Comput (P2,s,k)) ) by A33, FUNCT_1:49;
hence not (Comput (P1,s,k)) | (proj1 p) = (Comput (P2,s,k)) | (proj1 p) by A35, A38; :: thesis: verum
end;
hence contradiction ; :: thesis: verum