let x be set ; :: according to AMI_1:def 29 :: thesis: ( not x in dom Sorting-Function or ex b1 being Element of sproduct the Object-Kind of SCM+FSA st
( x = b1 & (Initialized Bubble-Sort-Algorithm ) +* b1 is Element of sproduct the Object-Kind of SCM+FSA & Sorting-Function . b1 c= Result ((Initialized Bubble-Sort-Algorithm ) +* b1) ) )
assume
x in dom Sorting-Function
; :: thesis: ex b1 being Element of sproduct the Object-Kind of SCM+FSA st
( x = b1 & (Initialized Bubble-Sort-Algorithm ) +* b1 is Element of sproduct the Object-Kind of SCM+FSA & Sorting-Function . b1 c= Result ((Initialized Bubble-Sort-Algorithm ) +* b1) )
then consider w being FinSequence of INT such that
A1:
x = (fsloc 0 ) .--> w
by Th60;
reconsider s = x as FinPartState of SCM+FSA by A1;
set p = Initialized Bubble-Sort-Algorithm ;
A2:
dom s = {(fsloc 0 )}
by A1, FUNCOP_1:19;
take
s
; :: thesis: ( x = s & (Initialized Bubble-Sort-Algorithm ) +* s is Element of sproduct the Object-Kind of SCM+FSA & Sorting-Function . s c= Result ((Initialized Bubble-Sort-Algorithm ) +* s) )
thus
x = s
; :: thesis: ( (Initialized Bubble-Sort-Algorithm ) +* s is Element of sproduct the Object-Kind of SCM+FSA & Sorting-Function . s c= Result ((Initialized Bubble-Sort-Algorithm ) +* s) )
A3:
(Initialized Bubble-Sort-Algorithm ) +* s is autonomic
by A1, Th68;
A4:
dom (Initialized Bubble-Sort-Algorithm ) misses dom s
by A1, Th46;
then A8:
(Initialized Bubble-Sort-Algorithm ) +* s is halting
by AMI_1:def 26;
thus
(Initialized Bubble-Sort-Algorithm ) +* s is pre-program of SCM+FSA
by A1, A5, Th68, AMI_1:def 26; :: thesis: Sorting-Function . s c= Result ((Initialized Bubble-Sort-Algorithm ) +* s)
consider z being FinSequence of REAL such that
A9:
( w,z are_fiberwise_equipotent & z is non-increasing & z is FinSequence of INT & Sorting-Function . s = (fsloc 0 ) .--> z )
by A1, Th61;
consider t being State of SCM+FSA such that
A10:
(Initialized Bubble-Sort-Algorithm ) +* s c= t
by CARD_3:97;
consider u being FinSequence of REAL such that
A11:
( w,u are_fiberwise_equipotent & u is non-increasing & u is FinSequence of INT & (Result t) . (fsloc 0 ) = u )
by A1, A10, Th67;
A12:
u = z
by A9, A11, CLASSES1:84, RFINSEQ:36;
fsloc 0 in the carrier of SCM+FSA
;
then A13:
fsloc 0 in dom (Result t)
by AMI_1:79;
s c= (Initialized Bubble-Sort-Algorithm ) +* s
by FUNCT_4:26;
then A14:
dom s c= dom ((Initialized Bubble-Sort-Algorithm ) +* s)
by RELAT_1:25;
A15:
dom ((fsloc 0 ) .--> z) = {(fsloc 0 )}
by FUNCOP_1:19;
Result ((Initialized Bubble-Sort-Algorithm ) +* s) = (Result t) | (dom ((Initialized Bubble-Sort-Algorithm ) +* s))
by A3, A8, A10, AMI_1:def 28;
hence
Sorting-Function . s c= Result ((Initialized Bubble-Sort-Algorithm ) +* s)
by A2, A9, A11, A12, A13, A14, A15, FUNCT_4:90, RELAT_1:186; :: thesis: verum