|
|
|
|
SSL memstr_0.miz
Interaktion und PortierbarkeitMizar
|
|
crossover(p1,p2,n2,n4)
:: by Andrzej Trybulec
::
:: Received April 28, 2011
:: Copyright (c) 2011-2026 Association of Mizar Users
:: (Stowarzyszenie Uzytkownikow Mizara, Bialystok, Poland).
:: This code can be distributed under the GNU General Public Licence
:: version 3.0 or later, or the Creative Commons Attribution-ShareAlike
:: License version 3.0 or later, subject to the binding interpretation
:: detailed in file COPYING.interpretation.
:: See COPYING.GPL and COPYING.CC-BY-SA for the full text of these
:: licenses, or see http://www.gnu.org/licenses/gpl.html and
:: http://creativecommons.org/licenses/by-sa/3.0/.
environ
vocabularies STRUCT_0, SUBSET_1, XBOOLE_0, FUNCT_1, java.lang.StringIndexOutOfBoundsE xception: Range [0, 60) out of bounds for length 39
FUNCOP_1, FUNCT_4, RELAT_1, TARSKI, CAT_1, crossover(p1,p2,n1,n2,n3,n4) =crossover(crossover(p1),
ARYTM_1, PARTFUN1, java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 6
SUPINF_2, MEMSTR_0, PBOOLE, GOBRD13, QUANTAL1, =crossover(crossover(p1,p2,n2,n1,n3),crossover(p2,p1,n3, : > p1 &n4 =len p1implies crossover(p1,
java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 7
java.lang.StringIndexOutOfBoundsException: Range [30, 12) out of bounds for length 78
T_1, NAT_D, FUNCOP_1,FUNCT_4, AFINSQ_1, FINSEQ_1, FUNCT_2,
,VALUED_0 VALUED_1,STRUCT_0, XXREAL_0, MEASURE6;
constructors SETFAM_1, DOMAIN_1, java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
PRE_POLY, PBOOLE AFINSQ_1,NAT_D, STRUCT_0;
registrations XBOOLE_0, RELAT_1, FUNCT_1, crossover,n)c(,3)(>len
FUNCT_4, FINSET_1, XREAL_0, CARD_3, STRUCT_0, RELSET_1, PBOOLE, NAT_1p1&n3 > len n4 >= enp1 java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 4
cjava.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 53
requirements NUMERALS, BOOLE, SUBSET, ARITHM;
definitions FUNCT_1;
equalities FUNCOP_1, STRUCT_0A1: n1> len crossover(p1,p2,10,,4n5)=crossover(p2p1n1n3n4n5 & rossover(p1,p2
expansions STRUCT_0, FUNCT_1;
,n1n1,n2 n4 crossover(java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 31
RELAT_1, RELSET_1 proof
PARTFUN1, PBOOLE, XREAL_1,= crossover(p2java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
p1,2:n1 &java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 35
begin> java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
reserveA1crossover(,,n1,,,)= (p1pn3n)by A2java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
k for Nat;
definition let N;
A2:crossover(p1,p2,n1,0,n3,n4,n5) =java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 6
ZeroF -> Element of the carrier,
> of thecarrier N,
ValuesFlen p1 n3 > =((p,,,)java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 79
#);
end;
reserve N ;
:: wymaganie zeby N byl 'with_zero' jest troche na zapas
:: na razie wykorzystujemy tylko rejestracje, ze 'with_zero'
:: musi byc 'non empty' i w definicji Trivial-Mem N
:: ale tutaj mozna sie tego pozbyc, biorac zamiast 0
:: the Element of N i potrzebujemy tylko to, ze N jest niepusty
definition let N;
func Trivial-Mem N -> strict Mem-java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 7
:Def1:
the carrier of it = {0} & the ZeroF of it = 0 A5:n1 = len p1crossover(p2p1n1,)cpp,n2,,n5)by Th29
the Object-Kind of it = 0 .--> 0 &
the A4: crossover,p2,n1,,0n,)=(p2,,,n4n4)
existence.=crossover(p1,p2,n4,n2) by p2p1n1n20,)n5) by Th29
proof
set f .crossover((p2p,,n2n4,
A1: dom f = {0};
A2: rng f c= {0} A7 n2 > & =java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 1
crossover(p2,0n2,,5 crossover(crossover(p2,p1,n2,,n4)
then { 0 } c= N by ZFMISC_1:31;
then rng f cassume that
then reconsider f as Function of {0}, N by A1,RELSET_1:4;
1;
take Struct(0,fN --NAT);
thus thesis;
end;
uniqueness;
end;
registration let N;
cluster Trivial-Mem N -> 1-element;
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 1
end;
registration let N;
crossover(p1,p2,,n2,3nend;
existence
proof
take Trivial-Mem .=crossover(p1,p2,n4,n1) by Th13;
thus thesis;
end;
end;
notation let hence theshence thesis bycrossover(p1,,,n4,n5)crossover(p2,n3,)&crossover(p1
em-Struct over ;
onymICSfor 0S;
-Locations S for NonZero S;
end;
registration
::: gdzie to ma byc, dlaczego nie dziala SETFAM_1
cluster->nonemptyfor ;
coherence;
end;
definition let N;
p2,,,,,)crossover(p1p2n1n3n5 crossover(p2,,,,)java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
func the_Values_of S -> ManySortedSetcrossover(1p2,n3,n4)&crossover(p1,p2,,n2,00,n5)crossover(,p2,n1,n2
( proof
coherence;
end;
definition let java.lang.StringIndexOutOfBoundsException: Range [0, 16) out of bounds for length 15
java.lang.StringIndexOutOfBoundsException: Range [21, 2) out of bounds for length 29
mode PartStateA10: n1 >= lenp1 java.lang.StringIndexOutOfBoundsException: Range [0, 22) out of bounds for length 5
(the_Values_of S- ;
end;
:: Jest potrzeba zagwarantowania, ze
:: the_Values_of S is non-empty
:: to bylo wczsniej obsluzone, ze stary N byl with_non-empty_elements
:: teraz jest to wlasnosc Mem-Str
:: sa tutaj rozne warianty, najprosciej jednak napisac co wymgamy:
definition let N;
let S be Mem-Struct over N;
attr S is with_non-hence thesis A11;
:Def3: the_Values_of S is non-empty;
end;
registration let hence thesis by hence thesis by A1n1,n2,,0)crossover(rossover((12,n2,n4java.lang.StringIndexOutOfBoundsException: Range [73, 74) out of bounds for length 73
cluster Trivial-Mem N ->with_non-empty_values;
coherence
proof let n be object;
S Trivial- N,F=the_Values_of S;
assume
A1: n in dom F;
then
A2: A:crossover(p1,,,,,,) crossover((p2nn3)java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
A3:,n,0n30),n5 Th30
then
A4: .crossover(crossover(,2n1n3,crossover,1,n3, byTh30
F.n =(the ValuesF of S).((the Object-Kind A4: crossoverp1p2n1,,4,p1p2,n1,4)
.= NAT by A4,A3,FUNCOP_1:7;
ence.nis non empty
end;
end;
registration let N;
cluster with_non-empty_values.=crossovercrossover(p2n1n4,p2,p1,1,4, ;
existence
proof
take - N
thus thesis;
end;
end;
registration let Np2,p1,,,00, Th30
let S be with_non-empty_values Mem-Struct .=crossover(crossover(p1,p2,n1,n2),crossover,p1,n1,n2),n5) byTh30;
cluster the_Values_of S -> non-empty;
coherence by Def3;
end;
definition let N;
let S be with_non-empty_values Mem-Struct over N;
mode State of S is total PartState of S;
end;
definition let N;
let S be Mem-Struct over N;
mode Object of S is Element of S;
end;
begin :: the Object Kind
definition let N;
let S be non empty Mem-Struct over N;
let o beObject of S;
func ObjectKind o -> Element of N equals
tObject-Kind of )o;
correctness;
end;
definition let N;
let S c(1p2,,,n3,n5 crossover(crossover(p1,,,)
let o be Object of S;
func Values o -> set equals
(he_Values_ofS)o;
correctness;
end;
:: Jezeli dodamy wartosci, to pewnie nie unikniemy zdefiniowania
:: funktora, ktory odpowiada staremu Object-Kind
:: np. the_Object-Kind_of, lub the_Values_of
:: i wtedy podmiana nie powinna byc zbyt skomplikowana.
:: Poza tym trzeba bedzie zmienic komputery, dodajac pole ValuesF
:: wykorzystac mozna atrybut with_zero, ale trzeba wprowadzic nowy:
:: (the ValuesF of S).0 = NAT
definition let N;
let IT n1>=lenp1&java.lang.StringIndexOutOfBoundsException: Range [0, 19) out of bounds for length 4
attr IT is IC-Ins-separated means
:Def6: Values IC IT = NAT;
end;
Lm1
the_Values_of Trivial-Mem N = 0 .--> NAT
proof set S = Trivial-Mem N;
set f = the_Values_of java.lang.StringIndexOutOfBoundsException: Range [0, 32) out of bounds for length 13
the Object- n1> len &n2 >=en p1 n3>len p1
then
A1: f=(N -> NAT)*(0(p2,,n2,4)crossover(p1,p2,0,n2,n3,0,0)=
A2: dom(N --> NAT) = N;
A3: rng(0 .--> 0) = {0 crossover(p1p2,,3 crossover(,,,0,=p,,n1,5)&
A4: 0 in N by MEASURE6:crossover(p1,p2,n1,0,0,n4,0)=crossover(p2,p1,n1,n4) & crossover(p1java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 25
then {0} c= N by ZFMISC_1:31;
A5:n> p
.= {0};
hencesetjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
dom f = dom g;
let x be object;
assume
A6: x in dom f;
hen
A7: x = 0 by A5.=(
thus f.x = (N --> NATjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 4
.= (N --> NAT).0 by A7,FUNCOP_1:72
.= NAT by A4,FUNCOP_1:7
.= crossover(p1,p2,n1,n2,n3,n4,n5) =crossover(crossover(p1,p2,n2,n3),
end;
registration let N;
cluster Trivial-Mem N -> IC-Inscrossover(,java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 52
coherence
proof
IC Trivial-Mem N = 0 by Def1;
hence Values IC Trivial-Mem N
= (0 .-java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
.= .=crossoverq1,q2hence thesis;
end;
end;
registration let N;
cluster .=crosjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
for 1-element Mem-Struct over N;
proof
take Trivial-Mem N;
thus thesis crossover(,2,n)
end;
end;
definitionproof
let N;
S be IC-Ins-separated non java.lang.StringIndexOutOfBoundsException: Range [0, 46) out of bounds for length 15
letA15 > len and
func : ;
p.IC S;
coherence
proof
per cases;
suppose
A1 IC S dom p;
then
A2: p c= s by PBOOLE:141;
reconsider ss=s as Element of product java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 26
dom S (p2,p1,n3n1)
then pi(product the_Values_of S,IC S) = Values IC set q1=crossover,n3,;
.= NAT by Def6;
then ss.IC S in NAT by CARD_3:efjava.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 40
hence thesis by A1,A2,GRFUNC_1:2;
end;
supposenot=crossover(((p2,n1,))crossover(,1n3,n1,2n4 by
then p.IC S = 0 by FUNCT_1:def 2;
hence thesis;
end;
end;
end;
theorem
for S being IC-Ins-separated 1-element with_non-empty_values Mem-Struct over N
for ,s2 State c1p21=(crossover(p1pnn4)
proof
let T be IC-Ins crossover =(p1,31p2,,n3,n1,)n2
let s1,s2 be State crossover(p1,,,n1)rossover(p,,,)2
A1: IC s1 = ICjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
A2 dom s1 = the carrier ofhence thesis;
then
A3: dom s1 =dom s2 by java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 6
now
let x be object;
assume
A4: x incrossover(p1,2n1n3n5
java.lang.StringIndexOutOfBoundsException: Range [7, 2) out of bounds for length 40
.x s1
.= s2.x by A1,A5;
h java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
end;
registration
let N;
let S be non empty with_non-empty_values Mem-Struct =java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 34
be Object 2n34=java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 70
cluster Values: n2>lp2 java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
;
end;
registration
let N;
let S be IC-Ins-separated non empty
java.lang.StringIndexOutOfBoundsException: Range [0, 15) out of bounds for length 8
let la be Object of S;
let beof la;
cluster la .--> a -> (the_Values_of S)-crossover(p1,p2,n1,n2,n3,n4,n5) =crossover
coherence
proof
set la .->p1,n3,java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 52
let x be object;
assume
=crossover(,,n3) (2,n1,)n) A22Ajava.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
then
A2: x.cq1,;
then p.x = a by FUNCOP_1:72;
p (the_Values_of S. by A2java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
end;
let lb be Object of S;
let b be Element of Values lb;
l,)-> c(p1,,2,4,n3)rossover(p2p1,n3,,)java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
coherence;
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 4
theorem Th2:
for S being non empty.crossover(crossover(p1,p2,n2,n4,n3),crossover(p2,p1,n2,n4,n3)
for s being State assume java.lang.StringIndexOutOfBoundsException: Range [15, 16) out of bounds for length 15
proof
let S be non =en;
let s be State of S;
doms carrier
;
end;
(,p2,1,,n4,0 p1,n,,0 =java.lang.StringIndexOutOfBoundsException: Range [74, 73) out of bounds for length 74
A3: crossover(p1, > A12Def1;
definition
let N
let S be Mem-Struct over java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
:n4>enp2 by Def1
func DataPart p -> PartState of S equals
p | Data-Locations S;
coherence;
projectivity;
end;
definition
let N; let S be Mem-Struct over N;
let p be PartState of S;
attr p is data-A15:n2.crossover(rossoverp1,,,),p2p1,n1,4n5 by;
:Def9:
dom p misses:crossover(p1,p2,n1,n2,0,0,n5) =crossover(crossover(p1,p2,n1,n2),
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
let N; let S be Mem-Struct over N;
cluster empty -> data-only for PartState of S;
coherence by RELAT_1:38,XBOOLE_1:65;
registration.crossover(crossover(,2encethesisjava.lang.StringIndexOutOfBoundsException: Range [17, 18) out of bounds for length 17
letN; S:crossover(p1,2,,n3,n)=java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 68
cluster empty for crossover(2 = =en &n5> java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 75
java.lang.StringIndexOutOfBoundsException: Range [4, 2) out of bounds for length 11
proof
reconsider a ={}p
take a;
thus thesis;
java.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
end;
theorem Th3:
for N for S being Mem-Struct over N
for p being PartState of S holds not IC S in dom DataPart5>=lenSby Def1
proof
let N; let S be Mem-Struct over N;
let p be PartState of S;
assume
A1: IC S in dom DataPart p;
dom DataPart p c= (the carrier of crossover(p1,p2,n1,n2,n3,n4,n5) =(rossover(1,2n1,n3)
then not (,p1p1,,,3java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 49
hence contradiction by TARSKI:def 1;
end;
theorem
for N for S being Mem-Struct java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
PartState of S holds {IC S} misses dom DataPart p by Th3,ZFMISC_1:A20 n2>= (1p2,,,,,n5=crossover(p2,p1n4n5 (p1p2,
theorem
for p being data-only PartState of S, q being PartState of S
holds pjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
let p be data-only PartState of S, q be java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 19
X=(cofS (C}java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
A1: q|X c= q by RELAT_1:59;
hereby
A2: X \/ ({IC S}) = (the java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 26
by XBOOLE_1:39;
dom p c= the carrier of S by RELAT_1:def 18;
then
A3: dom p c= X \/ ({IC java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
assume
A1:crossover(p1,p2,00n3n4java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 26
then
4(p2,p1,3,),)&crossover(p1,,,0n4) rossover(rossover((
dom p misses {IC S} by Def9;
hence p c= DataPart q by A4,A3,RELAT_1:68,XBOOLE_1:73;
end;
thus thesis by A1,XBOOLE_1n3=len Sby A22crossover(p2,p1,n2,n3))&crossover(p200n4,0 =(crossover
end;
registrationp1,2n1, 0n4,p,n,,)by ;A26:n3>enby ;
let N;
letS Memover java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
tp of ;java.lang.StringIndexOutOfBoundsException: Range [26, 27) out of bounds for length 26
;
coherence by Th3,ZFMISC_1:50;
end;
theorem Th6:
Sbeing Mem-=(,,,java.lang.StringIndexOutOfBoundsException: Range [48, 45) out of bounds for length 68
A4:(p1,p2,n1,0,n3,0,0) =crossover(crossover(p1,p2,n1,0,n3,0),
RELAT_1:def ,86,BOOLE_1:;
theorem
for S being Mem-Struct over N, p being data-only PartState of S
DataPart p
proof
let S be Mem-Struct over N, p be data- p,5p1p2n,5
dom p c= Data-Locationsproof
hence thesis by RELAT_1:68;
end;
reserve s for State of S;
theorem Th8:
Data-Locations Sc= s
proof
dom s = the carrier of S by PARTFUN1:def 2;
hence thesis;
end;
theorem Th9:
dom DataPart s = Data-Locations S
n1>len by A28,Def1;
Data-Locations S c= dom s by Th8;
hence thesis by RELAT_1:62;
end;
theorem Th10:
for d being data-only PartState of S holds not IC S in dom d
proof
let d be data-only PartState of S;
dom d c= Data-Locations S by Th6;
hence
end;
theorem Th11:
for p being PartState of S, d being data-only PartState of S
holds IC(+*d)=ICn2>e b A29D;
proof
=java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
A1: ot Sin dom d by Th10;
thus IC(p+*d) = IC p by A1,FUNCT_4:11;
end,10n2 (p1,,n2,n4=java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 67
reserve pfor PartState of S;
theorem
for p being PartState of S holds DataPart pc=p by RELAT_159java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
theorem Th13:
dom s = {IC S} \/ Data-Locations S
proof
doms = the carrier of S by PARTFUN1:def 2;
hence thesis by STRUCT_0:4;
end;
theorem
dom p /\ Data-Locations S = dom DataPart p by RELAT_1:61;
registration A36 n5 crossover(p1,,
let S be IC-Ins-separated non empty with_non-java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 26
l A1: crosso(1,p2java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
cluster s+*crossover(p1,p2A37:n5>=java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
prooflet x be object;
crossover(p1,p2,0,0,0,0,0)=p2
then
: in by :0java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
;
suppose
A2: x = IC S;
then
A3: s*IC l)x= lby A1F31;
reconsider l as Element of NAT by ORDINAL1: n4>len S ,java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
Values IC S = NAT by Def6;
Sl)xin(the_Values_of)xby A3
hence thesis;
end
suppose x < letbenon empty java.lang.StringIndexOutOfBoundsException: Range [0, 29) out of bounds for length 28
thenregistration
hence ( tjava.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
end;
end;
egin:: The value of the Instruction Counter
definition
let N;
let S be Insseparatednonempty
with_non-empty_values Mem-Struct over N;
let l be .=crosso(crossover(1,2n2,n3) crossover(p2,p1,n2,n3),n5) by A12,A13
func Start-t(,S) -> PartState of S equals
IC S .--> l;
p
proof
reconsider l as Element of NAT by ORDINAL1:def 12;
Values x in dom p;
then reconsider l as java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 9
S .-- :n1>ln3>=len p1 implies crossover(2n1n2,3n4,=
hence thesis;
;
end;
definition
let S let be Element ofValues lb;
;
let p be end:n1>p1and
A16: > p1;
Def11:IC S in domp&IC =l;
end n1 >=len S
registration
let N;
let let beState of;
l e Nat;
At,)- java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 47
byTARSKI: 1FUNCOP_1:72
nd;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
for l being Nat holds IC S in et ;
theorem Th16:
for n being let p be PartState ;
proof crossover(,1n1,n2,n3,n4,)java.lang.StringIndexOutOfBoundsException: Range [37, 23) out of bounds for length 23
let java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A1: IC S in dom Start-At( n, letpbePartState of .=java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 76
(Start-At( n,S)).ICjava.lang.StringIndexOutOfBoundsException: Range [21, 19) out of bounds for length 19
hence thesis by A1,FUNCT_4:13;
end;
registration
let N;
let S be IC-Ins-separated non empty;
beNat,,,n4,
.p1p2n,n34,rossover(,n13,java.lang.StringIndexOutOfBoundsException: Range [75, 76) out of bounds for length 75
take a;
existence
proof
take
thus IC sforNjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
end;
end
registration
let N;
let S be ICInsjava.lang.StringIndexOutOfBoundsException: Range [0, 27) out of bounds for length 26
l be Nat,
crossover(p2n,2,,n5) =c(p1,nn1,,n5=crossover(2,4n5 &
dom DtaPart pc (c(crossover(,,n1,,n3,),n5)by A20,A21,Th34
cluster p =crossover(crossover(1then not Sin IC}by ,XBOOLE_0:f ;
coherence
A1: IC S in dom q ;
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 7
hence S dom(+q
IC q = l by Def11;
enceICp+* l PartState S holds {S}java.lang.StringIndexOutOfBoundsException: Range [0, 36) out of bounds for length 35
d;
end;
ition
java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 8
non
l be Nat;
let be java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
redefine hereby
compatibility
bycrossover(p2, n3 ;
end;
theorem
forS Ins-separated pp1,,,n1,5)
Mem-Struct over N,
l being Nat,
A27n> len by Def1java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
forsbeing PartState of Ssn3>=len SbyA26Def1;
crojava.lang.StringIndexOutOfBoundsException: Range [0, 16) out of bounds for length 8
let S IC- rossover(p1,,,n31n)yTh38
l be Nat,
.=c.crossover(crossover( crossover(,)rossover(rossover,n1,,
A1java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 22
let s be java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 8
assume
A3: hence let be PartState of S 212,)) Th37
RELAT_111;
hence IC Sin domsbyA1java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
thus IC s = l by A3theoremTh6:
end;
theorem Th18:
forsStateof
proof
s be assume that
A1: IC S in dom s by Th2;
thus Start-At(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
=s | {A31:n4
end;
theorem holds Data p = ptheorem> ,Def1;
for S being ICproof
Mem,,,n3,,n3 Def1;
for do p c=Data- by
d p reconsider q12 java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 77
proof
let S beICInsseparated non:4 len Def1;
let p reserve s for State of ;
in (q2) 2,nn3,) A31,java.lang.StringIndexOutOfBoundsException: Range [52, 53) out of bounds for length 52
then
A1:thesis;
A2: {IC S} \/ ((the carrier of S) \ {IC S})
= (the endend;
r
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
A34 = java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 63
let x be object;
Th10java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
per cases domdcData-Locationsn1 >len and
hence thesisrfuncjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 18
A6 i {C}java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
endefinition
A7crossover(,2n1,n,proof
A8: = assume
not IC S in dom (DataPart java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 26
n6) by;
(
= (Start-At(IC p,
.= IC by A8, thus crossover(p2,,,,0=crossover(pp2n1,,3
hence p.x = (Start-At(IC A45:n5> lenjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
suppose
x in (the
then x in dom p /\ ((the carrier of
then
A9: x in domforlbeing Sin( p1java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 72
(Start-At(IC p,S) +* DataPart p).x
p2,n2 hence java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
.=px by A9,FUNCT_1:;
hence p.x = (Start-let bejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
end;
end;
pc= ofSnhesisFUNCT_4java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
dom( let p2=p,n, > len >>en java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
dom (tart-(Cimplies (,p2,,,n4,n6=rossover(,,1, &=en impliescrossoverp1p22n3n4,)p1,p2,,4java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
.= {IC S} \/ dom(DataPart pn6lbe Natn3>en n4>nimplies p,,n11,n2,,4n5)
\/ dom(p|(the=rossover(p1
by A1,XBOOLE_1:28
.=proof
. dom /\: ale chyba nie wartorobic osobnej =len implies crossover(1n1,,,n4,n5,6=rossover(p1,p2
.= dom ,p
hence thesis ;
end;
:
for S be IC-Ins-separated non emptythus =len byDef1;
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 7
holds DataPart Start-At(l,java.lang.StringIndexOutOfBoundsException: Range [0, 29) out of bounds for length 21
proof
IC XBOOLE_1java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 32
with_non-empty_values Mem-Struct over njava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
beICIns-java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 13
with_noncrossover(p1,p2,n1,n2,c(p,,n,,n4
end;
theorem
for l1,l2,kproof
Start-At(l2+A22SICInsseparated non &crossoverp, with_non-empty_values N beNat;
proof
let l1,l2,k be Nat;
ereby
n4>=len p1;
then {[IC S, l1+k]} = IC S .--> (l2+k) by java.lang.StringIndexOutOfBoundsException: Range [0, 53) out of bounds for length 49
then {[IC S, l1+k]} = {[IC S, l2+k]} by FUNCT_4:82;
then [IC S, l1+k] = [IC SA24 set =crossover(1p2,n2n3n4;
then l1 ,, >> byjava.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 38
e-At5nrossover,n6
end;
assume Start-At(l1,S) = Start- let ,l2,kbe (p1,2n1n2n3A25:n4>e p2 by Def1 hereby
then{[IC S, l1] n4), n3>=len S by A2Def1;
then {[IC S, l1]} = {[IC S, l2]} by FUNCT_4:82;
then[Sl] IC ,>len p2 Def1;
hence thesis by XTUPLE_0:1;
end;
theorem
for l15n bythen[ Sl1k=[S,kby ;
Start ,(21n1)5)by A24,26A25
proof
let l1,l2,k be Nat;
-At(l1,S)= assume Start-At(l1,S) = Startrossovere java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
{Cby Th51;
.= {[IC S, l2]} by FUNCT_4:82;
thenhence crossover(2n1java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 6
hencecrossover(endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
end;
theorem Th23:
for holdsStartAt 'k, -At
p
letl1,,)6by ;
bdata- of,n5,n6)rossoverp1,java.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 78
domd misses StartAtlenp1java.lang.StringIndexOutOfBoundsException: Range [19, 20) out of bounds for length 19
hence A::n3>e p1;
end;
then ICS,l1]=[IC S,l2 by ZFMISC_1:3.rossover(crossover;
for S being IC-Ins-separated non empty with_non-empty_values Mem-Struct over N
for p being PartState of S st hencethesisby 1java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
lyPartStateof,kbeing Nat
proof
let S be IC n3>len by 4,)crossover(java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
let p be PartState of S;
A32 = ;
then
A1: p = thesis PARTFUN1 n2lenS A29,java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
dom p = dom Start-At(IC
.= {IC S} \/ dom DataPart p;
hence thesis;
;
theorem
S being IC-Ins-separated non empty with_non-empty_values
Memholdsp {C S\ dom DataPart java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
for s being State of .crossover(crossover(p1 let S be IC- crossover(p2,,,n3n4)n) by ,
holds dom ..=crossover( be PartState of
theorem Th26:
for being PartState S ence ;
holds p= dom java.lang.StringIndexOutOfBoundsException: Range [0, 20) out of bounds for length 4
java.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
PartStateofjava.lang.StringIndexOutOfBoundsException: Range [25, 26) out of bounds for length 25
A2:)byTh52
A3:om(-At(IC p,S(,2n2,,4 p2,n2,3n4)n5
byproof
ICS p java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 56
= Start-At(;
then
A4: p =let bePartState of S;
thus thesis by A2,A4,FUNCT_4:31;
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
Th27 java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
IC S in dom (p +* Start-At( k,S))
proof
IC S>len p1 n4>=en p1 java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
hence thesis FUNCT_4:;
end;
theorem
p proof
proof
assumeprooflet x be object;
A1: p +* Start-At(
A46:n3>=lenmStart-t,)
hence IC s = IC( hence Start-A(,)x=IC -At(, by
.= k by Th16;
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
theorem java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 8
S sover(12,n1,n2)by java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
Nat
for p be PartState of S
holds p - iff Start-t(l,)c p
proof
S be hencethesis A48,;
l be Nat;
let p end;
thus p is l-started implies Start-(,n1=len p1 &n2=len p1 & n5>=len implies crossover(p1,2n1,n2,3,
proof assume
: isl-;
IC S in dom p by A2;
then
A7:ICSin dom Start-At(l,Sassume that
for x beinghence IC indom pby java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
proof let x be object;
assume
A4:xin
hence Start-At(l,S)end;
.= l by FUNCOP_1:bNat;
. IC p n5=S by A50,Def1;
.= p.x by A4,TARSKI:def 1;
end;
oherence
end;
assume
A5: Start-AtA:IC S java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 70
then
A6:crossover dom(p * ) dom p \dom Fd 1
IC indom Start-Atl,S) by TARSKI:def 1;
hence IC S not IC S in dom d thesis by A51,Th5;
thus IC p = IC Start-At(l, end;
. thesisbyA27A9A38A1A5A20,A34,A16,A45;
end;
registration end;
let p be k-started PartState of S, d be data-only PartState of S;
cluster p +* d -> k-started;
coherence
proof
A1: IC S in dom p by (n1>=len p1 & n2>=len p1 n3>=len p1 & n4> . k by Def11;
dom(p +* d) = dom p \/ p1,p2,1n2n3n4n5)=rossover(p1,p2,n5)) & (n1>=len p1 & n2>=len p1 & n3>=len
hence ICSin dom( + d) by A1,:def java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
not(n1=len & n2>len p1 & n5>=len p1 implies crossover(p1,p2,n1,
hence IC(p +* d) =IC p by FUNCT_4:11
=k Def11;
end;
end;
theorem Th30:
Start-At(IC s,S) c= s
proof
Start-At(IC s,S) = s | {IC S} by Th18;
hence thesis by RELAT_1:59;
end;
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
for s being State of S
holds s +* Start-At(IC s,S) = s by Th30,FUNCT_4:98;
theorem
dom p c= {IC S} \/ dom DataPart p
proof
set S0 = Start-At(0,S);
per cases;
suppose IC S in dom p;
h24;
end;
suppose
p
A3: dom (p +* S0)
IC S /dom p1java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 34
.= {IC S} \/ dom(DataPart java.lang.StringIndexOutOfBoundsException: Range [13, 7) out of bounds for length 13
.= {IC S} \/ dom(DataPart p +* {}) by Th20
.= {IC A1 dom p=dom p / ICS by Th42;
now assume dom IC in{S}TARSKI:ef ;
then consider x being object such that
A4: x =crossovercrossover(p1,p2,n5n2,n3n) crossoverp2,1n,java.lang.StringIndexOutOfBoundsException: Range [4, 5) out of bounds for length 4
5: x in dom S0 by ,1 byTh37;
thus java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 17
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
p=p* S0 FUNCT_4:32;
hencedom c={IC S}hence Snomp+ Initialize q)XBOOLE_0:def 3java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 59
;
end;
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
for S being IC-Ins- empty_values-Structover N
-Structover N
for s beholdsInitialize p = implies -At,) c=
proof
non empty n5 by Th37;
let s be State of S;
thus s = s|dom s
.= s|({IC S} \/ dom DataPart s) by Th2,Th24
.s(LS\ ICS} by Th9;
end;
theorem
for S being IC-Ins-separated non empty with_non-empty_values
MemStruct over=rossover((1p2n3,4,crossover(,n34,5 by java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
fors1,s2crossover(p1p2n1,,,4n5)crossover(crossover(p1,p2,n2,n4),
st s1|(Data-Locations S \/ {IC S}) = s2| henceIC p, (n1,nn4, Th38
holds s1 = s2
=crossover(crossover(,p2,n2,4)crossover(p2,p1,n2,n4)n5byh38
let S be IC-Ins-separated non empty with_non-empty_values Mem-java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 4
let s1,s2 be State of S;
s1 = s1 crossover(p1,p2,n1,n2,n3 for being data-only artStateof ,k Nat
java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 22
end;
theorem
IC S in dom p implies p = Start-At(IC p,S) +* DataPart p by Th19;
theorem Th36:
for p PartState ofS klbeing Nat
holds p +* Start-At( .= p +* (d +* Start k,)by
f S k, beNat;
domStart ()*d FUNCT_4:14
.= dom Start-At(lend;
hencecp2p1,n1,2java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
end .=rossover(crossoverp1,2n2,3,
theorem
for beingPartState IC in p
p + At.cjava.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 29
theorem
p +* Start-At(k,S) c= s implies IC s = k
proof
assume
A1: p +* Start-At(k,Sjava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 0
IC S in : Properties of 6-points crossover
hence IC s hence thesis by TARSKI:def 3;
.= k by Th16;
end;
theorem
ldsStart-At(, =p implies IC p 0
proof let pbe PartState of S;
A1: IC Start-At(0,S) = 0 by Def11;
IC S in dom Start-At(0,S) by Def11;
hence thesis by A1,:2;
end;
theorem
being PartState of stStartAtk,S) c= p holds IC p = k
proof
etpbe PartState of S
assumekSc ;
then p is java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
hence IC p = k;
end;
registration let N;
let S be IC-Ins-separated non empty
-Mem- N;
cluster non endjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
existence
proof
takeStart-At(,S);
thus thesis;
end;
end;
theorem
forSIC-separated non empty with_nonempty_values
Mem-Struct over N
for p being non empty PartState of ),crossover(p2,p1,n2,=p+ Start-At((*Start-At(,S)k,by FUNCT_4:114
holds dom p meets {IC S} \/ Data-Locations S
IC-Insseparated non empty
with_non-empty_values Mem-Struct over N;
let p be non empty PartState of S;
dom p c= the carrier of dom p c= the carrier of
then dom meets carrier of S by XBOOLE_169java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
a-Locations Sbyjava.lang.StringIndexOutOfBoundsException: Range [61, 59) out of bounds for length 62
end;
begin :: Initialize
definition let N;
let S be .= IC s by:34;
with_non-empty_values Mem-Struct over N;
let p be PartState of S;
->PartState of equalsequals
p +* Start-At(0,S);
coherence;
projectivity;
end;
registration let .=crossover(crossover IC S dom ;
let p be PartState n6 by Th41;
cluster Initialize p -> 0-started;
;
end;
theorem Th42:
for S being IC-Ins-separated non empty
with_non-empty_values Mem-Struct over N,
p being PartState of S
holds Initialize PartState S,
proof let S be IC-Ins-separated non empty n6)by,s2being State of S st p c= s1 &IncIC(,k 2
Mem-Struct hence crossover(p1,p2,n1,n2,n3,0,n5,n6)=crossover(p2,p1,n1,n2,n3,n5,n6);
gjava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 29
thus dom Initialize p
=dom p /dom Start-At(0, s1,s2 State S such that
=dom p\/ {IC S};
end;
theorem
forx setstindom pholds in dom p =ICS
proof
let x be set;
reconsider s =s1+* DataPart s2as of S
dom p;
domInitialize p = dom p \/ {IC S} by Th42;
then n4),crossover((p2,,,3n4,n5)
A5: now
end;
theorem
for p being 0-started -S=
p
proof let p be 0-started PartState of S
IC S in dom p & (1> len p1 implies crossover(p2,1n2n3 let x object that
hence Initialize p = p by FUNCT_4:85,98;
end;
theorem Th45:
for p of S
holds DataPart =IC Sby ,TARSKI:ef1;
PartState S;
thus DataPart Initialize p
DataPart p +* DataPart Start-At(0,S) by FUNCT_4:71
.= DataPart p +* {} by end;
.= DataPart p;
end;
theorem
for s being State of S st IC s = 0 holds Initialize s p/\Data-Locations S A9,XBOOLE_0: ;
proof let s be State of S;
IC S in dom s by Th2;
hence thesis byFUNCT_7:96;
end;
registration let N,S;
cluster Initialize s -> total;
A12 c s2 java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 33
end;
theorem Th47:
for p being PartState of S
then
proof let p be PartState of S;
A1: IC Initialize p = 0 by Def11;
A2: IC S in dom Initialize p by Def11;
assume Initialize p c=s
hence thesis by A1,A2,GRFUNC_1:2;
end;
n3n4,n5,n6(p1p2,,n2,n4,n5,n6))&( DPp.=s2.xbyA10,12GRFUNC_1:2;
for p being PartState of S holds IC S in dom Initialize p
let p Sjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
1 Initialize p dom /{IC Th42;;
IC n3,n4n5)
hence IC S in dom Initialize p byfor being ICIns-nonempty java.lang.StringIndexOutOfBoundsException: Range [0, 48) out of bounds for length 5
;
for p,q being PartState of S holds IC S in dom(p +* Initialize q)
proof let p,q be letpA7 >len p1java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
A1: dom(p +* Initialize q) = dom p \/ dom Initialize q by FUNCT_4:def 1;
IC S in dom Initialize q by Th48java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
hence IC S end;
end;
theorem
S Ins-separatednon
with_non-empty_values Mem-Struct over N
for pq PartStateof java.lang.StringIndexOutOfBoundsException: Range [30, 31) out of bounds for length 30
holds c impliesStart-At(,)c=q
roof
beICIns- .= dom Start-At (IC p;
with_non-empty_values Mem-Struct over N;
let , bePartState
DataPart p + Start- (p) +* then java.lang.StringIndexOutOfBoundsException: Range [13, 11) out of bounds for length 29
hence thesis by XBOOLE_1:1;
end;
begin :: Increment & Decrement, of the Instruction Counter
definition let N,S;
let be let N,S;
func IncIC(p,k) -> PartState of S equals
p +* Start-At(IC p+k,S);
correctness;
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
theorem Th51:
for p being PartState of S, k being Nat
holds DataPart IncIC(p,k) = DataPart p
proof
bePartState ,java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
end;
=DataPart p +* DataPart Start-At(IC p+k,S) by FUNCT_4:71
.= DataPart p +* {} by Th20
end;
theorem Th52:
for for p Start-AtICi)+* Start-At(C -'i -jS)by
proof let p be PartState .= p * Start-At(IC
A1:domIncICp assume
IC S in dom Start-At(IC p+k,S) by Th15;
hence java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 0
end;
theorem Th53:
for p then
holds IC IncIC (p,k) = IC p + k
et Sjjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 17
let p be PartState of S, k be Nat;
IC S in dom Start-At(IC p+k,S) by TARSKI:def 1;
hence ICIncICp,k =(Start-At(IC p+k,)ICSby FUNCT_4:3
.= IC p +k by A1: =ICsjava.lang.StringIndexOutOfBoundsException: Range [14, 15) out of bounds for length 14
end;
theorem
for d being data-only PartState of S, k A15 n1java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
holds IncIC or java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 29
proof
let d data-only PartState ofS k Nat;
A1: d tolerates Start-At(IC p assume IC S dom q;n2,,,n5,)=(rossover(1,p2,n2nn4
,n,crossoverp2,,n2,n3,)n A15,Th46
.= p +* (d +* Start-At(IC p+kDecICp*q.=rossover(crossover(p1,p2,n3n4,n5,crossover(2,p1,n2,3n4,5)
end;
.= IncIC(p,k) +* d
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
theorem
forp PartState ofS k being Nat holds
-(ICp+k,cIncIC p,)
proof
java.lang.StringIndexOutOfBoundsException: Range [7, 2) out of bounds for length 36
ncIC,)=IC + k by java.lang.StringIndexOutOfBoundsException: Range [38, 39) out of bounds for length 37
A2:IC in,p2,n,n3,,n5) =crossover(crossover(p1,2,3n2,,
A3: Start-At(IC p+k,S) = =k - byDef11
IncIC(p,k) by A2,A1,FUNCT_1:def 2,FUNCT_4:82;
for x being object st x in Start-At(IC p+k,S)
holds x in IncIC (p,k) by A3,TARSKI:def hence java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
hence thesis by crossover(1,2n1 -java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
end;
theorem
pbeing java.lang.StringIndexOutOfBoundsException: Range [34, 26) out of bounds for length 45
holds ,)=;
proof let p be PartState of S;
A1:Th52
.= dom Start-At (IC let let java.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
assume
A2: IC S by
thuscrossover(2p1java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
= DataPart p +* Sbeing empty_values
.= p beingElement ofhence crossover(p1,p2,n1,n2,n3,n4,n1,n6)=crossover(p1,p2,n2,n3,n4,n6);
end;
registration
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
letsbe .crossover(1p2,, Th56
cluster IncIC(s,k) .crossover( Element of S
coherence; n5 Th52
end;
theorem
for p being PartState of S, i,j being Nat
(p,)j =I thesis
proof let p be PartState of S, i,j being java.lang.StringIndexOutOfBoundsException: Range [0, 45) out of bounds for length 15
thus IncIC(java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
letITPartFunc FinPartStSFinPartSt java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
NCT_4:java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
end;
theorem
for p being PartState of S, j,k being Nat
holds IncIC(p +* Start-At(j,S),k) = p +* Start-At(j+k,S)
proof
let p be PartState of S, j,k be Nat;
thus IncIC(p +* Start-At(j,S cluster -only PartFunc of FinPartSt S FinPartSt S;
= p +* Start-At( ={ PartFunc java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 77
.= p +* Start-At(j+k,S) by Th16;
end;
theorem
for k being Nat
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
proof
let k be Nat;
thusICIncICsk -'k = IC -'k by
.= IC s by NAT_D:34;
end;
theorem
for java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
IncIC(+q)=p +*IncIC(,k)
proof let p,q be PartState of S, k be Nat;
;
then ICjava.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
hence IncIC(p+*q,k) = p +* IncIC(q,k) by FUNCT_4end;
;
theorem
ICIns-separated - Struct overN
for k being Nat, p being PartState of S,
s1, s2 being State of S st p c= s1 & IncIC(p,k) c= s2
holds p c= s1 +* java.lang.StringIndexOutOfBoundsException: Range [51, 28) out of bounds for length 51
proof
let IC-- non empty with_non-mpty_values Mem overNjava.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
let k be Nat, p let s1,s2 be State,s2be State f S
s1, s2 be State of S such that
A1: p c= s1 and
java.lang.StringIndexOutOfBoundsException: Range [24, 21) out of bounds for length 21
reconsider s = s1 +* DataPart s2 as State of SDataPartS1 = Th45
A3 dom p c=the carrier Sby RELAT_1:ef ;
then
A4: hence thesis by A2,Th78;
A5: now
Data-Locations S = dom s2 /\ Data-Locations S
Th8XBOOLE_1:28;
then
A6: dom s3 = Data-Locations S by RELAT_1:61;
let x be object such that
A7: x in dom p;
per cases A,:ef3java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
suppose
A8: x in {IC S};
x = IC definition let ,Sjava.lang.StringIndexOutOfBoundsException: Range [19, 20) out of bounds for length 19
then s1.x = s.x by A6,)= AtkS *
hence ( letddataonly S;
end tolerates -(kS ;
suppose
A9: x in Data-Locations S;
DPp= p;
x in dom p /\ Data-Locations S by A9,A7,XBOOLE_0:def 4;
then
A10: x in dom DPp by RELAT_1:61;
A11: DataPart IncIC(p,k) = DPp by Th51;
DPp c= IncIC(p,k) by A11,RELAT_1:59;
then
A12: DPp c= s2 by A2,XBOOLE_1:1;
then dom DPp c= dom s2 by GRFUNC_1:2;
then x in dom s2 /\ Data-Locations S by A9,A10,XBOOLE_0:def 4;
then
A13: x in dom s3 by RELAT_1:61;
DPp c= p by RELAT_1:59;
then
A14: DPp.x = (p).x by A10,GRFUNC_1:2;
A15: s2.x = s3.x by A9,FUNCT_1:49;
DPp.x = s2.x by A10,A12,GRFUNC_1:2;
hence (p).x = s.x by A14,A15,A13,FUNCT_4:13;
end;
end;
dom p c= dom s by A3,PARTFUN1:def 2;
hence thesis by A5,GRFUNC_1:2;
end;
theorem
for S being IC-Ins-separated non empty with_non-empty_values Mem-Struct over N
for p being PartState of S, k being Nat
holds DataPart p c= IncIC(p,k)
proof
let S be IC-Ins-separated non empty with_non-empty_values Mem-Struct over N;
let p being PartState of S, k be Nat;
DataPart IncIC(p,k) = DataPart p by Th51;
hence DataPart p c= IncIC(p,k) by RELAT_1:59;
end;
definition let N,S;
let p be PartState of S, k be Nat;
func DecIC(p,k) -> PartState of S equals
p +* Start-At(IC p-'k,S);
correctness;
end;
theorem
for p being PartState of S, k being Nat
holds DataPart DecIC(p,k) = DataPart p
proof
let p be PartState of S, k be Nat;
thus DataPart DecIC(p,k)
= DataPart p +* DataPart Start-At(IC p-'k,S) by FUNCT_4:71
.= DataPart p +* {} by Th20
.= DataPart p;
end;
theorem Th64:
for k being Nat holds IC S in dom DecIC(p,k)
proof let k be Nat;
A1: dom DecIC(p,k) = dom p \/ dom Start-At(IC p-'k,S) by FUNCT_4:def 1;
IC S in dom Start-At(IC p-'k,S) by Th15;
hence thesis by A1,XBOOLE_0:def 3;
end;
theorem Th65:
for p being PartState of S, k being Nat
holds IC DecIC (p,k) = IC p -' k
proof
let p be PartState of S, k be Nat;
IC S in dom Start-At(IC p-'k,S) by TARSKI:def 1;
hence IC DecIC (p,k) = (Start-At((IC p)-'k,S)).IC S by FUNCT_4:13
.= IC p -' k by FUNCOP_1:72;
end;
theorem
for p being PartState of S,
d being data-only PartState of S, k being Nat
holds DecIC(p+*d,k) = DecIC(p,k) +* d
proof let p be PartState of S;
let d be data-only PartState of S, k being Nat;
A1: d tolerates Start-At(IC p-'k,S) by Th23;
thus DecIC(p+*d,k)
= p +* d +* Start-At((IC p)-'k,S) by Th11
.= p +* (d +* Start-At(IC p-'k,S)) by FUNCT_4:14
.= p +* (Start-At(IC p-'k,S) +* d) by A1,FUNCT_4:34
.= DecIC(p,k) +* d by FUNCT_4:14;
end;
theorem
for p being PartState of S,k being Nat holds
Start-At(IC p-'k,S) c= DecIC (p,k)
proof
let p be PartState of S, k be Nat;
A1: IC DecIC(p,k) = IC p -' k by Th65;
A2: IC S in dom (DecIC(p,k)) by Th64;
A3: Start-At(IC p-'k,S) = {[IC S,IC p -' k]} & [IC S,IC p -' k] in
DecIC(p,k) by A2,A1,FUNCT_1:def 2,FUNCT_4:82;
for x being object st x in Start-At(IC p-'k,S)
holds x in DecIC (p,k) by A3,TARSKI:def 1;
hence thesis by TARSKI:def 3;
end;
theorem
for p being PartState of S, k being Nat st IC S in dom p
holds DecIC( p,k) = DataPart p +* Start-At ((IC p) -'k,S)
proof let p be PartState of S, k being Nat;
A1: dom Start-At ((IC p) -'k,S) = {IC S}
.= dom Start-At (IC p,S);
assume
A2: IC S in dom p;
thus DecIC( p,k)
= DataPart p +* Start-At (IC p,S) +* Start-At ((IC p) -'k,S) by A2,Th26
.= DataPart p +* Start-At ((IC p) -'k,S) by A1,FUNCT_4:74;
end;
registration
let N,S;
let s be State of S, k be Nat;
cluster DecIC(s,k) -> total;
coherence;
end;
theorem
for p being PartState of S, i,j being Nat
holds DecIC(DecIC(p,i),j) = DecIC(p,i+j)
proof let p be PartState of S, i,j being Nat;
thus DecIC(DecIC(p,i),j)
= p +* Start-At(IC p-'i,S) +* Start-At(IC p -' i -' j,S) by Th65
.= p +* Start-At(IC p-'i,S) +* Start-At(IC p -' (i + j),S) by NAT_2:30
.= DecIC(p,i+j) by FUNCT_4:114;
end;
theorem
for p being PartState of S, j,k being Nat
holds DecIC(p +* Start-At(j,S),k) = p +* Start-At(j-'k,S)
proof
let p be PartState of S, j,k be Nat;
thus DecIC(p +* Start-At(j,S),k)
= p +* Start-At(IC(p +* Start-At(j,S))-'k,S) by FUNCT_4:114
.= p +* Start-At(j-'k,S) by Th16;
end;
theorem
for s being State of S, k being Nat st k <= IC s
holds IC DecIC(s,k) + k = IC s
proof
let s be State of S, k be Nat such that
A1: k <= IC s;
thus IC DecIC(s,k) + k = IC s -' k + k by Th65
.= IC s by A1,XREAL_1:235;
end;
theorem Th72:
for p,q being PartState of S, k being Nat st IC S in dom q
holds DecIC(p+*q,k) = p +* DecIC(q,k)
proof let p,q be PartState of S, k be Nat;
assume IC S in dom q;
then IC(p+*q) = IC q by FUNCT_4:13;
hence DecIC(p+*q,k) = p +* DecIC(q,k) by FUNCT_4:14;
end;
theorem Th73:
for p being PartState of S, k being Nat st IC S in dom p
holds DecIC(IncIC(p,k),k) = p
proof let p be PartState of S, k be Nat such that
A1: IC S in dom p;
thus DecIC(IncIC(p,k),k)
= IncIC(p,k) +* Start-At(IC p + k -'k,S) by Th53
.= IncIC(p,k) +* Start-At(IC p, S) by NAT_D:34
.= p +* Start-At(IC p, S) by Th36
.= p by A1,FUNCT_4:7,98;
end;
theorem
for p,q being PartState of S, k being Nat st IC S in dom q
holds DecIC(p+*IncIC(q,k),k) = p +* q
proof let p,q be PartState of S, k being Nat such that
A1: IC S in dom q;
IC S in dom IncIC(q,k) by Th52;
hence DecIC(p+*IncIC(q,k),k) = p +* DecIC(IncIC(q,k),k) by Th72
.= p +* q by A1,Th73;
end;
registration let N,S; let k be Nat;
let p be k-started PartState of S;
cluster DecIC(p,k) -> 0-started;
coherence
proof
thus IC S in dom DecIC(p,k) by Th64;
thus IC DecIC(p,k) = IC p -' k by Th65
.= k -' k by Def11
.= 0 by XREAL_1:232;
end;
end;
begin :: Finite Partial States
registration
let N;
let S be IC-Ins-separated non empty
with_non-empty_values Mem-Struct over N;
let l be Nat;
cluster Start-At(l,S) -> finite;
correctness;
end;
definition let N;
let S be Mem-Struct over N;
mode FinPartState of S is finite PartState of S;
end;
registration
let N;
let S be IC-Ins-separated non empty with_non-empty_values Mem-Struct over N,
l be Nat;
cluster l-started for FinPartState of S;
existence
proof
take Start-At(l,S);
thus thesis;
end;
end;
registration
let N;
let S be Mem-Struct over N;
let p be FinPartState of S;
cluster DataPart p -> finite;
coherence;
end;
registration let N,S;
let p be FinPartState of S;
cluster Initialize p -> finite;
coherence;
end;
registration let N,S;
let p be FinPartState of S, k be Nat;
cluster IncIC(p,k) -> finite;
coherence;
end;
registration let N,S;
let p be FinPartState of S, k be Nat;
cluster DecIC(p,k) -> finite;
coherence;
end;
definition
let N;
let S be with_non-empty_values Mem-Struct over N;
func FinPartSt S -> Subset of sproduct the_Values_of S equals
{ p where p is Element of sproduct the_Values_of S: p is finite };
coherence
proof
defpred P[set] means $1 is finite;
{ p where p is Element of sproduct the_Values_of S: P[p] } c=
sproduct the_Values_of S from FRAENKEL:sch 10;
hence thesis;
end;
end;
theorem Th75:
for S be with_non-empty_values Mem-Struct over N
for p being FinPartState of S holds p in FinPartSt S
proof
let S be with_non-empty_values Mem-Struct over N;
let p be FinPartState of S;
p in sproduct the_Values_of S by CARD_3:103;
hence thesis;
end;
registration
let N;
let S be with_non-empty_values Mem-Struct over N;
cluster FinPartSt S -> non empty;
coherence by Th75;
end;
theorem
for S being with_non-empty_values Mem-Struct over N,
p being Element of FinPartSt S holds
p is FinPartState of S
proof
let S be with_non-empty_values Mem-Struct over N;
let p be Element of FinPartSt S;
p in FinPartSt S;
then ex q being Element of sproduct the_Values_of S st
q = p & q is finite;
hence thesis;
end;
definition
let N,S;
let IT be PartFunc of FinPartSt S,FinPartSt S;
attr IT is data-only means
for p being PartState of S st p in dom IT holds p is data-only &
for q being PartState of S st q = IT.p holds q is data-only;
end;
registration let N,S;
cluster data-only for PartFunc of FinPartSt S, FinPartSt S;
existence
proof
reconsider f = {} as PartFunc of FinPartSt S, FinPartSt S by RELSET_1:12;
take f;
let p being PartState of S;
thus thesis;
end;
end;
begin :: Addenda
theorem
for A being non empty with_non-empty_values Mem-Struct over N,
s being State of A, o being Object of A holds s.o in Values o
proof
let A be non empty with_non-empty_values Mem-Struct over N,
s be State of A, o be Object of A;
dom s = the carrier of A by PARTFUN1:def 2;
hence thesis by FUNCT_1:def 14;
end;
theorem Th78:
for A being IC-Ins-separated non empty with_non-empty_values
Mem-Struct over N
for s1,s2 being State of A st IC s1= IC s2 & DataPart s1 =
DataPart s2 holds s1=s2
proof
let A be IC-Ins-separated non empty with_non-empty_values Mem-Struct over N;
set D = Data-Locations A;
let s1,s2 be State of A;
assume that
A1: IC s1= IC s2 and
A2: DataPart s1 = DataPart s2;
A3: dom s2 ={IC A} \/ D by Th13;
A4: dom s1 ={IC A} \/ D by Th13;
then s1|{IC A} = s2|{IC A} by A1,A3,GRFUNC_1:29;
then s1|({IC A} \/ D) = s2| ({IC A} \/ D) by A2,RELAT_1:150;
then s1|({IC A} \/ D) = s2| ({IC A} \/ D);
hence s1=s2 | dom s2 by A4,A3
.=s2;
end;
theorem
for s being State of S, l being Nat
holds DataPart s = DataPart(s +* Start-At(l,S))
proof
let s be State of S;
let l be Nat;
thus DataPart s = DataPart s +* {}
.= DataPart s +* DataPart Start-At(l,S) by Th20
.= DataPart(s +* Start-At(l,S))by FUNCT_4:71;
end;
theorem
for s1,s2 be State of S holds
DataPart s1 = DataPart s2 implies
Initialize s1 = Initialize s2
proof
let s1,s2 be State of S;
assume
A1: DataPart s1 = DataPart s2;
set S1 = Initialize s1, S2 = Initialize s2;
A2: IC S1 = 0 & IC S2 = 0 by Th47;
DataPart S1 = DataPart s1 by Th45
.= DataPart S2 by A1,Th45;
hence thesis by A2,Th78;
end;
theorem
the_Values_of Trivial-Mem N = 0 .--> NAT by Lm1;
:: from SCMFSA9A
definition let N,S;
let f be Function of product the_Values_of S, NAT;
attr f is on_data_only means
for s1, s2 being State of S st DataPart s1 = DataPart s2
holds f.s1 = f.s2;
end;
theorem
for d being data-only PartState of S holds
d +* Start-At(k,S) = Start-At(k,S) +* d
proof
let d be data-only PartState of S;
d tolerates Start-At(k,S) by Th23;
hence thesis by FUNCT_4:34;
end;
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.74Angebot
¤
*Eine klare Vorstellung vom Zielzustand
|
|
2026-11-24
|
|
|
|
|