Quelle aescip_1.miz
Sprache: Mizar
|
|
:: Formalization of the Advanced Encryption Standard -- Part {I}
:: by Kenichi Arai and Hiroyuki Okazaki
::
:: Received October 7, 2013
:: Copyright (c) 2013-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
beElement of4-uples_on(-tuples_on( 8tuples_on BOOLEAN));
ARYTM_1, FUNCT_2, FINSEQ_2, NAT_1, MARGREL1, ZFMISC_1, SUBSET_1, NUMBERS,
,t -java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for l ength 61
notations TARSKI, XBOOLE_0, then 8+(i0-'1)*8+(j0-'1)*32 32(-1* XREAL_1:6;
,PARTFUN1 BINOP_1, CARD_1, java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 10
XXREAL_0 NAT_1, INT_1, NAT_D, FINSEQ_1, FINSEQ_2, MARGREL1, FINSEQ_4,
FINSEQ_6DESCIP_1java.lang.StringIndexOutOfBoundsException: Range [25, 26) out of bounds for length 25
constructors RELSET_1, FINSEQ_4, +j- in4-java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 60
registrations FINSEQ_1, RELSET_1 then(-')32then
java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 67
java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 52
FINSEQ_1 ;
theorems TARSKI thus /\ B={
NAT_1, INT_1, FINSEQ_1
RFINSEQeassumed P
WSIERP_1, XCMPLX_1, FINSEQ_3;
schemes FUNCT_2, FINSEQ_1, NAT_1, BINOP_1, RECDEF_1;
begin :: Preliminaries
theorem XLMOD02::x def 1;
,mst 0()mod >0
holds (k+1) mod m = (k mod m)+1
proof
let k,m be Nat;
assume
C1: m <> holdc
(A16: x = k1 & 1+(i-'1)*8+(j-'1)*32 <= bjava.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 52
P1: (k mod m)+1-1 <= m-1 by java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 15
P2: (k+1) mod m = Q1 kjava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 53
k mod m < m-1
assume not k mod m
then (k+1) mod m = Element 4java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 20
.= 0 by INT_1:50;
hence contradiction by C1;
end;
then proof
k1 modm k m)1 NAT_D:,;
end;
java.lang.StringIndexOutOfBoundsException: Range [6, 4) out of bounds for length 21
for k,m be then i')<(i0-1 14P2P4 assume
proof
let k,m be Nat;
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 43
C1: m > (+)mod <> 0;< 0
Q11: k in Seg4;
.= ((k+1) div m (i-1+) (') by :;
then
P1: ((k+1) div m)*m+(k mod m)-(k mod m) = (k div mtjava.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
INT_1,java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
thus (-)+1)32+java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 57
then
end;
theorem A14 (-java.lang.StringIndexOutOfBoundsException: Range [0, 13) out of bounds for length 12
: beo8java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 49
proof
let km Nat;
((')1* = (-1* java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 51
C1: m
then (k mod m)+1 <= m by NAT_D:1,NAT_1:A13:(i0-1*++(0-')*32<= (i-' PiNatset]means
then
P1: (k mod m)+1-1 <= m-1 by ex textij,keyij be Element8-)32by XREAL_1java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
P2: (k+1) mod st java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 79
assume not k mod m = m-1;
then k mod m < m-1 by XXREAL_0:1,P1;
k +1<m-11 forbe st in4 - java.lang.StringIndexOutOfBoundsException: Range [79, 78) out of bounds for length 79
hence contradiction by P2,NAT_D:24,C1;
end;
theorem XLMOD01X:
for k, Nat m <> java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 19
holds (k+1) div m A150 A /BbXBOOLE_0defproof
proof
let k,m be Nat;
assume
:xinA& xin Bby Nat
then
P3: k mod m = m-1 by XLMOD02X;
P4: k+1 = ((k+1) consider k1 be Nat suchthat
.= ((k+1) div m)*m by C1;
P5: k = (k div m )*m+(k mod m) by INT_1:59,C1
A16: x = k1 &1(-'1)819 j in Seg4;
thus ;
.= (( considerk2 be Natsuch that
java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 4
theorem XLMOD03:
for k,m be Nat holds (k-m) mod m = k mod m
proof
let k,m be Nat;
thus (k-m) mod m = (k+m*(-1)) mod m
.=hentextk.j rng(extk)by FUNCT_13java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
end;
theorem XLMOD04:
for k,m be Nat st m <> 0 holds (k-m) div m = (k div m)-1
proof
let k,m be Nat;
assume
AS: m <> 0;
thus (k-m) div m = (k+m*(-1)) div m
.= (k div m)+-1 by AS,NAT_D:61
. kdiv m)1java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 75
end;
definition
, be Nat X, beexbeoftuples_onBOOLEAN st =
let F be Function of X, m-tuples_on(n-tuples_on D);
let x bek <=1+i-18(j-'1)327by LMStat0P,;
redefine func . > mid (xx1,1+(i-'1)*8+(j-'1)*-1*-)321-18(')+7java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
coherence
proof
F.x in m-tuples_on(n-tuples_onlet i,j be Nat;
hencethesis;
end;
end;
definition
let m be Nat, X,Y,Dassume
let F be Function of [:X,Y:], m-tuples_on D;
let x be Element of X,y be Element of Y;
> Element of m-tuples_on D;
oherence
proof
F.(x,y) in m-tuples_on D;
hence thesis;
nd
end;
theorem LM01:
for m, Element of (BOOLEAN)* by FINSEQ_1:def 11;
F1,F2 be Element of m-tuples_on (n-tuples_on D) st for then beElementof (-tuples_on(8tuples_on)
st i in Seg m & j in Seg n
holds (F1.i).j = (F2.i).j)by DefStatearray,4;
proof
let stjava.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 48
,F2 be Element of m-tuples_on (n-tuples_on D);
assume
AS: for i,j be Nat st i in Seg m & j in Seg n
holds (F1.i).j = (F2.i).j;
F1 in m- olds exbe18()Element by java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
then
P1: exs be Element of (n- st textij = (text.i).j & =key.i.j &
F2 in m-tuples_on (n-tuples_on D);
then
P2: ex s be Element of (n-tuples_on D)* st F2 = s & len s = m;
nowhenceby4,:java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
1 =i i)j & java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 52
then
P4: i in Seg m by P1;
then i in dom F1 by FINSEQ_1 (z.).j = -(kjava.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 45
then F1.i in rng F1 by FUNCT_1:3;
then F1.i in n-tuples_on D;
then
P6: ex s be Element of D* st F1.i = s & len s = n;
reconsiderF1i = F1.ias ofD*
i Q110: 1 <=i =4byA4,1java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
then F2.i in rng F2 by FUNCT_1:3;
then F2.i in n-tuples_on D;
then
R6 java.lang.StringIndexOutOfBoundsException: Range [15, 12) out of bounds for length 79
then reconsider F2i = F2.i as Element of D*;
now let j Nat;
(i-'18(j-)32<=2496 bythusthesis by A2java.lang.StringIndexOutOfBoundsException: Range [22, 23) out of bounds for length 22
then j in Seg nQ135:1-18-32< +7XREAL_1;
hence F1i.j = F2i.j by AS,P4;
hence
F1. =iby R,java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 37
;
F2by P1,,:14
end;
theorem LMGSEQ4:
for D be non empty set, x1,x2,x3,x4 be Element of D
holds *x1x2x, * is Element of4tuples_on)
proof
let D be non empty 44 4-tuples_on(4-tuples_on
reconsider x1234 = < .=( x,+(i-'1)8(j-1)*32,1+(i--'1)*8+j-1*+)n
P1: len x1234 = FINSEQ_4:6;
D* ;
then x1234 in
hence thesis;
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
theorem holds for i i,j be Nat st i in Seg &jin 4
for D be holds ex tkeyij ofjava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 40
thesisby FUNCT_219;
proof
let D be non empty set, x1,java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 4
).i) Op-(textij,eyij;
P1: len x12345 = 5 by FINSEQ_4:78;
x12345 in D* by FINSEQ_1:def 11;
then x12345 in 5-tuples_on D by P1;
hence thesis;
A2 for text,key be Element
theorem
benonemptyset x1,x2,x3,x4,5x6, java.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 65
holds <* x1,x2,x3, holdstextijp
proof
let y be object
nsiderx1234 *x 4tuples_onjava.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 63
by LMGSEQ4then
reconsider x5678 = <* x5,x6,x7on 8tuples_on BOOLEAN)*
by LMGSEQ4; st s&lens=4java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
D c= D;
hence thesis by FINSEQ_2:109;
end;
theorem LMGSEQ10Element 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
for D be non empty set, x1,x2,x3,x4,x5java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
holds <* Q12forkbeNatkexzbeingElementof java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 52
proof
proof
Dbenon empty set,,,,,,x6, java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
45 <* ,,,4x5 > asof 5tuples_on D
by LMGSEQ5;
reconsider x67890 = <* x6,x7,x8,x9,x10 *> as Element of 5-tuples_on D
by LMGSEQ5;
D=Djava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
hence thesis by FINSEQ_2:109;
end;
theorem LMGSEQ16:
for D be non empty set, x1,x2,x3,x4,x5,x6,x7,x8 be Element of (4-tuples_on D)
holds <* x1^x5,x2^x6,x3^x7,x4^x8 *> is
entof 4tuples_on (8-tuples_on D)
proof
let D be non empty set,
x1,x2,x3,x4,x5,x6,x7,x8 be Element of (4-tuples_on D);
X1: D c= D;
then
P1: x1^x5 is Element of 8-tuples_on java.lang.StringIndexOutOfBoundsException: Range [0, 37) out of bounds for length 31
P2: x2^x6 is Element of java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 6
P3: x3^x7 is Element java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
x4^x8 is Element of 8-tuples_on D by X1,FINSEQ_2:109;
hence thesis by P1,P2,P3,LMGSEQ4;
end;
theorem
for D be non empty set, x be Element of 4-tuples_on(4-tuples_on D),
k be Element of NAT st k in Seg 4 holds
ex x1,x2, assume k Seg 128;
x3 = then 1 < ')+ LMStat0;
let D be non empty set, [,z]
beElement NAT;
proof
AS: k in Seg 4;
x in 4-tuples_on(4-tuples_on D);
then ex s be java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 10
then k in dom x by then reconsider z . Element of: in java.lang.StringIndexOutOfBoundsException: Range [16, 14) out of bounds for length 17
then FUNCT_1java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
then x.k in 4-tuples_on (D);
then
Q13: ex s be Element of D* st x.k = s & len s = 4;
then reconsider xk = x.k as Element of D*;
1 in Seg ;
then 1 in dom xk by Q13,FINSEQ_1:def 3;
then xk.then-'8(-132i1*(-) -'*+-132
then reconsider x1 = xk.1 as Element of D;
2in 4java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
then 2 in dom xk by Q13,FINSEQ_1:def 3;
then xk2in byUNCT_1:java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
then reconsider x2 = xk.2 as Element of D;
3 in Seg 4;
then 3 in dom xk by Q13,FINSEQ_1:defG4 n in eg by ;
then xk.3in rng reconsider z = zij.n as Eleme
then reconsider take z;
4in Seg java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 27
then 4 in dom xk by Q13, xFinSequence
reconsiderpas that
then reconsider x4 = xk.4 as Element of D;
take x1 p=4by P3,FINSEQ_1be i Seg128
holdsPK[x.] from sch 5(;
Q14: then tuples_on8tuples_onBOOLEAN));
theorem INV00:
for X,Y be non empty set, f be Function of X,Y, g reconsiderxasElement java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 70
java.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
(y Element Yholds f.(.y
java.lang.StringIndexOutOfBoundsException: Range [34, 2) out of bounds for length 67
g = f" & f = g"
proof
let hol z). = mid (,1'1)*8+(j-'1)*32,1+(i-'1)*8+(j-'1)*32+7)
proo
A1: for x be Element of X java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 21
e
A2: for y be Element of Y holds f.(g.y) = y; dom z by def B;
now let - - );
t
.then -;
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
P2: g*f i-1*+j'1*32<24+java.lang.StringIndexOutOfBoundsException: Range [36, 8) out of bounds for length 8
now let y be Element of Y;
thus (f*g).y = f.(g.y) by FUNCT_2:15
.= y by A2;
end;
then
P4: f*g = id Y by FUNCT_2:124;
thus
P5: f is one-to-one & f is onto by java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
<<0,,,*><0,,00><,0,0*^*00,>ex java.lang.StringIndexOutOfBoundsException: Range [27, 25) out of bounds for length 61
<000*^*,,,*,<*0,00><000,0>*>as
rng f = Y by P5,FUNCT_2:def 3;
tuples_on(8tuples_on by,LMGSEQ16
rng g = X by P6,FUNCT_2:def 3;
hence f = g" by FUNCT_2:30, holdsex textij econsider PP12=< 0,,*>*0,,>*,,><0,,
java.lang.StringIndexOutOfBoundsException: Range [20, 21) out of bounds for length 20
definition
func AES-Statearray -> Function of 128-reconsider =< *Element -tuples_on(-tuples_on BOOLEAN)) st P[k,zk]
4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)) means
:DefStatearray:
for input be Element of 128-tuples_on BOOLEAN
fori,beNat st i in Seg 4j 4
holds java.lang.StringIndexOutOfBoundsException: Range [28, 26) out of bounds for length 67
java.lang.StringIndexOutOfBoundsException: Range [23, 14) out of bounds for length 73
l kbe;
proof
defpred P0[Element of 128-tuples_on BOOLEAN,set] means
of -tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
st $2 = z & for i then kintext Q01,FINSEQ_1:def 3;
holds (z.)j=mid ($1,1+i'1)8 text.in java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 45
A1 beingof -java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 48
ex z be reconsiderPP15: sbe Elementof 8-*st.k &java.lang.StringIndexOutOfBoundsException: Range [70, 69) out of bounds for length 76
0,0*^000>*0,^0000*
proof
let x be defpred Pi[Nat PiNatset]means
x in 128-tuples_on BOOLEAN ex textij beElement of 8-tuples_on BOOLEAN st textij = (textk).$1 &
then
A01: ex s be Element of (BOOLEAN)* st x $2 SBT.textij)
defpred P[Nat,set] means
ex beElement of(-tuples_on (-tuples_on BOOLEAN))
st $2 = zi & for j be Nat st j in Seg 4
zij=mid(,+($1-1*java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
mejin ;
ex x being Element of (4-tuples_on (8-tuples_on BOOLEAN)) st P[k, Element of 10-tuples_on (4-tuples_on (8-tuples_on BOOLEAN)) by LMGSEQ10;
proof
let k be A1: len Q0 = 5 & Q0.1P .2= .3= PP8 .4= &jintextk java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
(extkj (java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 38
Q110: 1 <= k & k3A1
then 1-1 <= k-1 by XREAL_1:9;
then k-'1 = k-1 by XREAL_0:def 2;
110,XREAL_19;
then
Q112: (k-'1)*8 <= 3*8 by XREAL_1:64;
means
$2 = mid (x,1+(k-'1)*8+($1- 2inSeg5
Q12: for j be Nat st j then2: dom zk= for j 4
ex xi being Element of (8-tuples_on BOOLEAN) st Pi[j,xi]
proof
let j be Nat;
assume j in Seg 4;
then
Q130: 1 <= j & j <= 4 by FINSEQ_1:1;
then 1-1 <= j-1 by XREAL_1:9;
then -',FINSEQ_1:def ;
then j-'1 <= 4-1 by Q130,XREAL_1:9;
then
Q133: (j-'1)*32 <= 3*32 by XREAL_1:64;
(k-)+-)32< Q112;
then
Q134 +(-1)t3 omby: A1;
Q136 1 st 4 holds
+ <= +(k*8(:.Pjava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 36
Q14: 1 e hencethesisjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
by Q134,XXREAL_0:2,A01;
Q150: 1+0 <= 1+(k-'1)*8+(j-'15in ;
reconsidermmd =midx,1+k-1*+j-1)32java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
1+(k-'1)*8+(j-'1)*java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
1+(k-'1)*8+(j-'1)*32+0 <= R:IT.5 = A1,FINSEQ_1:ef7java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
1in 5;
(1+(k-'1)*8+(j-'1)*32+7)-'(1+(k-'1)*8+(j-'1)*32)+1
by FINSEQ_6:118,Q14,Q136,A01,Q150
.= 7 holds P[iz then
.= 8;
R10: IT.(5+1 . A1,3;
then reconsider xi = mid (x,1+(k-'1) reconsider z as Element of(- = PP11;
1+(k-'1)*8+(j-'1)*32+7) as Element of (8-tuples_on BOOLEAN);
xi = mid (x,1+(k-'1)*8+(j-'1)*32,1+(k-'1)*8+(j-'1)*32+7);
hence thesis;
end;
consider zi be FinSequence of (8-tuples_on BOOLEAN) such that
Q13: domzi=Seg ibe stiSeg
holds Pi[i,zi.i] from FINSEQ_1:sch 5(Q12);
Q14: len zi = 4 by Q13,FINSEQ_1:def 3;
reconsider zi as Element of (8-tuples_on BOOLEAN)* by FINSEQ_1:def 11;
zi in 4tuples_on(tuples_on BOOLEAN) by Q14;
then reconsider zi as Element of 4-tuples_on (8-tuples_on BOOLEAN);
for j be Nat st j in Seg 4
holds zi.j = mid (x,1+(k-'1)*8+(j-'1)*32,1+(k-'1)*8+(j-'1)*32+7)
by Q13;
hence thesis;
end;
erz FinSequence 4tuples_on (8tuples_on BOOLEAN)suchthat
Q2: dom z = Seg 4 &
for i be Nat st i in Seg 4 holds P[i,z.i] from FINSEQ_1:sch 5(Q1);
Q3: lenz =4byQ2FINSEQ_1def 3
0,,00*><,0,*,<,0,0*0,,* >&
by FINSEQ_1:def 11;
z 4-uples_on(-tuples_on (8tuples_on BOOLEAN))by Q3;
then reconsider z as
Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
for i,j be Nat st i in Seg 4 & j in Seg 4
holds (z.i).j = mid (x,1+(i-'1)*8+(j-'1)*32,1+(i-'1)*8+(j-'1)*32+7)
proof
let i,j be Nat;
assume
P11: i in Seg 4 & j in Seg 4;
then consider zi be Element of (4-tuples_on (8-tuples_on BOOLEAN))
such that
P12: z.i = zi & for j be Nat st j in Seg 4
holds zi.j = mid (x,1+(i-'1)*8+(j-'1)*32,1+(i-'1)*8+(j-'1)*32+7) by Q2;
thus (z.i).j = mid (x,1+(i-'1)*8+(j-'1)*32,1+(i-'1)*8+(j-'1)*32+7)
by P11;
end;
hence ex z be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
st P0[x,z];
end;
consider I be Function of 128-tuples_on BOOLEAN,
4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)) such that
A2: for x being Element of 128-tuples_on BOOLEAN
holds P0[x,I.x] from FUNCT_2:sch 3(A1);
now let input be Element of 128-tuples_on BOOLEAN;
ex z be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
st I.input = z & for i,j be Nat st i in Seg 4 & j in Seg 4
holds (z.i).j = mid (input,1+(i-'1)*8+(j-'1)*32,1+(i-'1)*8+(j-'1)*32+7)
by A2;
hence for unction 4-(4tuples_on(-tuples_on BOOLEAN)),
holds ((I.input).i).j = mid (input,1+(i-'1)*8+(j-'1)*32,
1+(i-'1)*8+(j-'1)*32+7);
end;
hence thesis;
end;
uniqueness
proof
let H1,H2 be Function of 128-tuples_on BOOLEAN,
4-tuples_on(4-tuples_on (8 rinput beElementof 4tuples_on(4tuples_on (8-BOOLEAN)
assume
A1: for ijbe Nat st i in 4& j in holds
for i,j be Nat st i in Seg 4exinputij Element of 8tuples_onBOOLEANst = (input.i). &
holds ((H1.input).i).j = mid (input,1+(i-'1)*8+(j-'1)*32,
1+(i-'1)*8+(j-'1)*32+7);
ssume
A2: for input be Element of 128-tuples_on BOOLEAN
for i,j be Nat st i in Seg 4 & j in Seg 4
holds ((H2.input).i).j = mid (input,1+(i- Element of 4-4tuples_on 8tuples_on )means
1+(i-'1)*8+(j-'1)*32+7);
now let input be Element of 128-tuples_on BOOLEAN;
(H1.input) in 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
then
P3: ex s be Element of (4-tuples_on (8-tuples_on BOOLEAN))*
st (H1.input) = s & len s = 4;
(H2.input) in 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
then
P4: ex s be Element of (4-tuples_on (8-tuples_on BOOLEAN))*
st (H2.input) = s & len s = 4;
now let i be Nat;
assume 1 <=i & i <= len (H1.input);
then
P6: i in Seg 4 by P3;
then i in dom(H1.input) by FINSEQ_1:def 3,P3;
then (H1.input).i in rng (H1.input) by FUNCT_1:3;
then (H1.input).i in 4-tuples_on (8-tuples_on BOOLEAN);
then
P8: ex s be Element of (8-tuples_on BOOLEAN)*
st (H1.input).i = s & len s = 4;
reconsider H1i = (H1.input).i as
Element of (8-tuples_on BOOLEAN)* by P8;
i in dom(H2.input) by FINSEQ_1:def 3,P4,P6;
then (H2.input).i in rng (H2.input) by FUNCT_1:3;
then (H2.input).i in 4-tuples_on (8-tuples_on BOOLEAN);
then
P11: ex s be Element of (8-tuples_on BOOLEAN)*
st (H2.input).i = s & len s = 4;
reconsider H2i = (H2.input).i as
Element of (8-tuples_on BOOLEAN)* by P11;
now let j be Nat;
assume 1 <=j & j <= len H1i;
then
P14: j in Seg 4 by P8;
then ((H1.input).i).j = mid (input,1+(i-'1)*8+(j-'1)*32,
1+(i-java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
hence H1i.j = H2i.j by A2,P6,P14;
end;
hence (H1.input).i = (H2.input).i by P8,P11,FINSEQ_1:def 18;
end;
hence H1.input = H2.input by P3,P4,FINSEQ_1:def 18;
end;
hence H1 = A1 for textElement4-4(- BOOLEANjava.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
end;
end;
theorem LMStat0:
for k be Nat st 1 <= k & k <= 128 ex i,j be Nat st i in Seg 4 & j in Seg 4 &
1+(i-'1)*8+(j-'1)*32 <= k & k <= 1+(i-'1)*8+(j-'1)*32+7
proof
let k be Nat;
assume
A1: 1 <= k & k <= 128;
A3: k = 32*(k div 32)+(k mod 32) by NAT_D:2Aex Elementof4tuples_on-(-BOOLEAN))
reconsider m = k div 32 as Nat;
reconsider n = k mod 32 as Nat;
k div 32 <= (32*4) div 32 by A1,NAT_2:24;
then
: m< ;
per cases;
suppose
A4: n = 0;
A5: 1 <= m
proof
assume beElementtuples_on(4(-java.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 76
then m = 0 by NAT_1:14;
hence contradiction by A1,A3,A4;
end;
set j =m;
A8: j in Seg 4 by M1,A5;
set i = 4;
A10: i in Seg 4;
A11: j-'1 = j-1 by XREAL_1:233,A5;
A13: k = 32*(k div 32)+(k mod 32) by NAT_D:2
. 32(j-'1)*((i-)+) byA4A11
.= 32*(j-'1)+8*((i-'1)+1) by XREAL_1:233
.= 1+(i-'1)*8+(j-'1)*32+7;
1+(i-'1)*8+(j-'1)*32+0 <= 1+(i-'1)*8+(j-'1)*32+7 by XREAL_1:7;
hence ex i,j be Nat st i in Seg 4 & j in Seg 4 &
1+(i-'1)*8+(j- <0,,,*^*,,,*,*,,0><000,0* *>
end;
suppose
.3= <,00,><0100><*,,*^<,,,0*>
then
XX0: 1 <= n by NAT_1:14;
XX1:n<by NAT_D:;
m <> 4
proof
assume
U1: m = 4;
U2: k = 32*4+n by NAT_D:2,U1
.= 128+n;
128+ =128n ,XREAL_1
hence contradiction by U2,XXREAL_0:2,A1;
end;
then m < 4 by XXREAL_0:1,M1 <000*^*,0,,*,*,000>*,,,* *>
then
A15:m <=4by NAT_1:13;
A16: 1 <= m+1 by NAT_1:11;
set j = m+1;
A18: j in Seg 4 by A15,A16;
:-1=j-1 by XREAL_1233NAT_1:11
.=m;
A20: k = 32*(j-'1)+n by NAT_D:2,A19;
A22: n = 8*(n div 8)+(n mod 8) by NAT_D:2;
s =n 8as java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
reconsider t = n 7=< 0100><0000>,*0,,,0*^<*0,0,0*>,
n <*0,00,0*^*,,,*><00,0>^<0,,,* > &
then
M2: n div 8 <= 4;
now per cases;
suppose
A23: t = 0;
A24: 1 <= s
proof
assume not 1 <= s;
then n = 8*0+0 by NAT_1:14,A22,A23;
hence contradiction by A14;
end;
set i = s;
A28: i in Seg 4 by M2,A24;
29: i-'1 = i-1 by XREAL_1233A24
A30: n = 8*s+0 by NAT_D:2,A23
.= *(-1+8*1 by java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
1(i--11)320<=+i-1(-1*7XREAL_17java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
hence ex i,j be Nat st i in Seg 4 & jR2.0 *<*,011*>^*0110>0000*^*,,,*,
1+(i-'1)*8+(j-'1)*32 <= k & k <= 1+(i-'1)*8+(j-'1)*32+7
by A28,A18,A30
end;
suppose
t <> 0;
then
XX0: 1 <=R1in 10-java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 59
XXX1: t <= 8 by NAT_D:1;
s < 4
proof
assume
U1: s = 4;
U2: n = 8*4+t by NAT_D:2,U1
.= 32+t;
32+1 <= 32+then
hence contradiction by U2,XXREAL_0:2,XX1;
end
then s < 4 by XXREAL_0:1,M2;
then
B15: s+1 <= 4 by NAT_1:13;
B16: 1 <= s+1 by NAT_1:11;
set i=s1;
B18: i in Seg 4 by B15,B16;
B19: i-'1 = i-1 by XREAL_1:233,NAT_1:11
.=s;
B20: n = 8*(i-'1)+t by NAT_D:2,B19;
B220:32(-1+8(-1+1 = 32*(j-1+8(i-1+t byXX0,XREAL_1:7;
32*(j-'1)+8*(i-'1)+t <= 32*(j-'1)+8*(i-'1)+8 by XXX1,XREAL_1:7;
then k <= 1+8*(i-'1)+32*(j-'1)+7 by assume 1 <= i & i <= len R1;
hence ex i,j be Nat st i in Seg 4 & j in Seg 4 &
1+(i-'1)*8+(j-'1)*32 <= k & k <= 1+(i-'1)*8+(j-'1)*32+7
by B220,A20,B20,B18,A18;
end;
end;
hence ex i,j be Nat st i in Seg 4 & j in Seg 4 & 1+(i-'1)*8+(j-'1)*32 <= k &
k <= 1+(i-'1)*8+(j-'1)*32+7;
end;
end;
theorem LMStat2A:
for i,j,i0,j0 be Nat st i in Seg 4 & j in Seg 4 & i0 in Seg 4 &
j0 in Seg 4 & not (i = i0 & j = j0)
holds {k where k is Nat : 1+(i-'1)*8+(j-'1)*32 <= k &
k <= 8+(i-'1)*8+(j-'1)*32} /\ {k where k is Nat :
1+(i0-'1)*8+(j0-'1)*32 <= k & k <= 8+(i0-'1)*8+(j0-'1)*32} = {}
proof
let i,j,i0,j0 be Nat;
assume
AS: i in Seg 4 & j in Seg 4 & i0 in Seg 4 &
j0 in Seg 4 & not (i = i0 & j = j0);
set A = {k where k is Nat : 1+(i-'1)*8+(j-'1)*32 <= k &
k <= 8+(i-'1)*8+(j-'1)*32};
set B = {k where k is Nat : 1+(i0-'1)*8+(j0-'1)*32 <= k &
k <= 8+(i0-'1)*8+(j0-'1)*32};
A1: 1 <= j & j <= 4 by AS,FINSEQ_1:1;
A2: 1 <= i & i <= 4 by AS,FINSEQ_1:1;
B1: 1 <= j0 & j0 <= 4 by AS,FINSEQ_1:1;
B2: 1 <= i0 & i0 <= 4 by AS,FINSEQ_1:1;
P1: (j-'1) = j-1 by XREAL_1:233,A1;
P2: (i-'1) = i-1 by XREAL_1:233,A2;
P3: (j0-'1) = j0-1 by XREAL_1:233,B1;
P4: (i0-'1) = i0-1 by XREAL_1:233,B2;
i-1 <= 4-1 by A2,XREAL_1:9;
then
R2: i-'1 <= 3 by XREAL_1:233,A2;
i0-1 <= 4-1 by B2,XREAL_1:9;
then
R4: i0-'1 <= 3 by XREAL_1:233,B2;
per cases;
suppose
A2: j <> j0;
now per cases by A2,XXREAL_0:1;
suppose
j < j0;
then (j-'1) < (j0-'1) by XREAL_1:14,P1,P3;
then (j-'1)+1 <= (j0-'1) by NAT_1:13;
then
A12: ((j-'1)+1)*32 <= (j0-'1)*32 by XREAL_1:64;
(i-'1)*8 <= 3*8 by R2,XREAL_1:64;
then 8+(i-'1)*8 <= 8+24 by XREAL_1:6;
then 8+(i-'1)*8+(j-'1)*32 <= 32+(j-'1)*32 by XREAL_1:6;
then
A13: 8+(i-'1)*8+(j-'1)*32 <= (j0-'1)*32 by A12,XXREAL_0:2;
0+(j0-'1)*32 <= (i0-'1)*8+(j0-'1)*32 by XREAL_1:6;
then (j0-'1)*32+0 < (i0-'1)*8+(j0-'1)*32+1 by XREAL_1:8;
then
A14: 8+(i-'1)*8+(j-'1)*32 < 1+(i0-'1)*8+(j0-'1)*32 by A13,XXREAL_0:2;
thus A /\ B = {}
proof
assume A /\ B <> {};
then consider x be object such that
A150: x in A /\ B by XBOOLE_0:def 1;
A15: x in A & x in B by XBOOLE_0:def 4,A150;
consider k1 be Nat such that
A16: x = k1 & 1+(i-'1)*8+(j-'1)*32 <= k1 & k1 <= 8+(i-'1)*8+(j-'1)*32
by A15;
consider k2 be Nat such that
A17: x = k2 & 1+(i0-'1)*8+(j0-'1)*32 <= k2 & k2 <= 8+(i0-'1)*8+(j0-'1)*32
by A15;
reconsider x as Nat by A16;
thus contradiction by A17,A14,XXREAL_0:2,A16;
end;
end;
suppose
j0 < j;
then (j0-'1) < (j-'1) by XREAL_1:14,P1,P3;
then (j0-'1)+1 <= (j-'1) by NAT_1:13;
then
A12: ((j0-'1)+1)*32 <= (j-'1)*32 by XREAL_1:64;
(i0-'1)*8 <= 3*8 by R4,XREAL_1:64;
then 8+(i0-'1)*8 <= 8+24 by XREAL_1:6;
then 8+(i0-'1)*8+(j0-'1)*32 <= 32+(j0-'1)*32 by XREAL_1:6;
then
A13: 8+(i0-'1)*8+(j0-'1)*32 <= (j-'1)*32 by A12,XXREAL_0:2;
0+(j-'1)*32 <= (i-'1)*8+(j-'1)*32 by XREAL_1:6;
then (j-'1)*32+0 < (i-'1)*8+(j-'1)*32+1 by XREAL_1:8;
then
A14: 8+(i0-'1)*8+(j0-'1)*32 < 1+(i-'1)*8+(j-'1)*32 by A13,XXREAL_0:2;
thus A /\ B = {}
proof
assume A /\ B <> {};
then consider x be object such that
A150: x in A /\ B by XBOOLE_0:def 1;
A15: x in A & x in B by XBOOLE_0:def 4,A150;
consider k1 be Nat such that
A16: x = k1 & 1+(i-'1)*8+(j-'1)*32 <= k1 & k1 <= 8+(i-'1)*8+(j-'1)*32
by A15;
consider k2 be Nat such that
A17: x = k2 & 1+(i0-'1)*8+(j0-'1)*32 <= k2 & k2 <= 8+(i0-'1)*8+(j0-'1)*32
A15;
reconsider x as Nat by A16;
thus contradiction by A16,A14,XXREAL_0:2,A17;
end;
end
end;
hence A /\ B = {};
end;
suppose
A2: j = j0;
now per cases by A2,AS,XXREAL_0:1;
suppose i < i0;
then (i-'1) < (i0-'1) by XREAL_1:14,P2,P4;
then (i-'1)+1 <= (i0-'1) by NAT_1 let, be Nat,wbe of 4-uples_on (8-tuples_on BOOLEAN));
then ((i-'1)+1)*8 <= (i0-'1)*8 by XREAL_1:64;
then
A13: (i-'1)*8+8+ AS m=4 or = 6or &i<4(7m &m< i;
(i0-'1)*8+(j0-'1 (,mw)->of 4java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 77
st=v & len v =m;
A14: 8+(i-'1)*8+(j-'1)*32 < 1+(i0-'1)*8+( then
QQ3:dom =eg by :
proof
assume A /\ java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
PXizjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
A\B by XBOOLE_0:ef
A15: x in A (InvSubBytes()..(ubBytesS).)i)j =(SBT)outputij)
consider k1 be Nat java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
A16: x = k1 & 1+(i-'1P1 j- = inputij (SubBytes(.inputi)j=SBT(nputij)
by A15 by DefSubBytes,;
consider k2 be Nat such that
:x=k2 &+i0-1*+j0- < k2&k2 <=8(-')(')3java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
byP2: (-1byXREAL_1:33A2
Pby :B
A16,17A14, reconsider P = s(+1)as
java.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
end;
suppose
i0 < i;
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 4
then (i0-'1)+1 <= i0-1 =4 ,INV08
then ((i0-'1)+1)*8 <= (i- for outputbeElement of 4-4java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 12
13:(i0-e
(i-'1)* end;
then
A14: 8+(i0proof
=}
proof
assume now leti rng byFUNCT_13;
xjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
A150: x in A/ byXBOOLE_0
xA&j'* <i01 reconsider =java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
A5:inputij =java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
&1(-)8(132
by A15;
java.lang.StringIndexOutOfBoundsException: Range [19, 16) out of bounds for length 36
+i0'*+-) & +-)*+j-)32
by A15;
xas by A16;
ex be then
end;
;
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 22
henceA/ B = {};
end;
end;
theorem LMStat2:
ij,,be java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 14
i0 x of 4(4-
k <= 1+(i-'1)*8+(j-'1)*32+7 & 1+(i0-'1)*8+(j0-'1)*32 < in(-:1 &<47mby,INSEQ_11java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
k <= 1+(i0-'1)*8+(j0-'1)*32+7 holds i = byA15;
s
k,,ji0,j0 Nat ;
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
AS 2 java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 53
1(-s
i-1*(0'* +(0')8j0')32 z of4-tuples_on8-))P,]
not( i i=( java.lang.StringIndexOutOfBoundsException: Range [33, 31) out of bounds for length 55
then
A2 (i01)1 <=(-'1 byNAT_1.ias
/\ {n A14: 8+(i0-1)*8(j0-1* +i Elementoftuples_on4(-tuples_on ))java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
(i0-1*8+(-1)32 =}by java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 51
A3: then then 4java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 70
n=+i'1*+(')32} byst / Bby:ef;
k in{ where n Nat :1(i0-1)*8 then
n <consider1mF:ef ;
hence contradiction by A3,XBOOLE_0:def 4,A2;
end;
theorem
AES-Statearrayisone
for x1,x2 xk thesisjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
in-tuples_on &
(AES-Statearray).x1 = (AES-Statearray). end;
proof
let x1,x2 be object;
assume
A1 x1domz=Seg f i Seg4
()x1(AESStatearray).x2;
QQ3: = NAT_D,,NAT_2A;
P1: : len z = 1+(i0-'1)*8+(j0-1) (*m 1java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 62
:exsbe java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 65
letkbe java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
where Nati- 8tuples_on)java.lang.StringIndexOutOfBoundsException: Range [64, 65) out of bounds for length 64
P5: :1(')8+j-1* =m--java.lang.StringIndexOutOfBoundsException: Range [46, 44) out of bounds for length 68
considerijbe}A;
Seg+-')8('* < k&
n <= (i0-'1)*(-1) 4(-java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 60
hencecontradiction;
Element of (BOOLEAN)* by FINSEQ_1:def 11;
then reconsider A1ij = theorem LMStat1:
FinSequenceof( I
mid (xx2,1+(ithus byA2;
Element of (BOOLEAN)* by FINSEQ_1:def 11;
then reconsider =((-tatearray) x2in128&
FinSequence of (BOOLEAN) by Q0 (AES-Statea roof
A50: 1+(i let let , beobject;
by A4,XREAL_1:9;
=-(18+(') of
F41: k-((i-'1)*8+)x1 -java.lang.StringIndexOutOfBoundsException: Range [42, 39) out of bounds for length 74
by A4,XREAL_1:9;
1 1<1+(i')8(j-'32 yAT_111
F2: 1+(i-'1)*P1 s of ex xi be Element of 4-tuples_on-)st java.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 75
Q110: 1 < (( im ) zi BOOLEAN) be BOOLEAN*st=s&java.lang.StringIndexOutOfBoundsException: Range [52, 50) out of bounds for length 65
w . ;
theni' - ex of4-tuples_on tuples_on BOOLEAN)st xi i
hen i' <= 4-1 consideri,j be Natsuch that
: (-1)8< * by XREAL_1:;
< &j< 4by1
1- < j-then
then j-'1 = j-1 by)3 java.lang.StringIndexOutOfBoundsException: Range [10, 8) out of bounds for length 78
then j-'1 <= 4-1 by Q130,XREAL_1:9;
then
Q133: then then reconsider (-(tuples_on )
(i-'1)*8+(j- java.lang.StringIndexOutOfBoundsException: Range [12, 13) out of bounds for length 12
then 1+ then
then
7=1217byXREAL_1:;
F5: n <= (1+(i-'1)*8+(j-'1)*32+7)-(1+(i-'1)*8+(j-'1)*32)+1 by F41;
=-1+ yYY4.byF2P2,135,50F5,6INSEQ_6122
thus xx1.k = (mid (xx1,1+(i-'1)*8+(jhence by then a
by :DefInvShiftRows LMStat3java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
.=A2ij.n by DefStatearray4holds
.= (mid (xx2,1+i-'1)*8+(-'1)32+i java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
by DefStatearray,A4
,P2,Q135A50LX3 foriNAT im .i=.(i+)
end;
java.lang.StringIndexOutOfBoundsException: Range [32, 7) out of bounds for length 40
end;
kbeElementproof
end;
k defpredPKNat]java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
AESStatearray onto
proof
for y be LX31: <;
xe x128t&y =1 + + java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 62
proof
letybe ;
4uples_on (uples_on
then
B10:ex s be Element of (4-tuples_on ofx,-java.lang.StringIndexOutOfBoundsException: Range [28, 29) out of bounds for length 28
st y =4;
z= y asElement of4 (-tuples_on BOOLEAN))*;
defpred PK[Nat,set] means
ex i,j,n be Nat, zij 1*+
4 &j Seg4&nin 8 & 1 i =(k1)div ) = m . .(k+1) . YY3;
)*perjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
java.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
Q12: for k be Nat st kthenreconsider zi =C1 (k)modm 0java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
java.lang.StringIndexOutOfBoundsException: Range [9, 10) out of bounds for length 9
assume k in Seg 128;
then < k =128 1
then consider i be Nat such
A4: i in reconsider=k-(-1)8+j-')*) java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 46
k =1(-1)8+(')byhcontradictionbyNAT_D,;
in dom z by FINSEQ_1:def 3,A4 end;
then z.i in rng then
then z 4-tuples_on (-tuples_onjava.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 52
then
proof
then take java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
j suppose
then (zi).j xof BOOLEAN
then reconsider zij = (z.i).j as Element of 8-java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 19
A50 1
by A4,XREAL_1:9;
*32) as NAT:3;
k-((i-'1)*8+(j-'1)*32) <= 1+( holds i.] INSEQ_1(
by A4,XREAL_1:9;
then
G4:nin
java.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 61
z
thus thesis by A4,java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 21
;
consider NLX34: ((1 )<1*327byNAT_11;
that
be sti j1=(+ (k)mod 01 +)
F3: +i-1*+j-1 =mhesis;
Q14: len x 128 Q13FINSEQ_1'),1 java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 73
econsider m01asjava.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 14
-812;
then reconsider x as +-z -(- java.lang.StringIndexOutOfBoundsException: Range [71, 70) out of bounds for length 72
i java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 45
z.m x+1+-)1 r +i)8)32) as Nat;
proof
beNat
assume
P21:i in Seg 4&j in Seg4;
then iindom : ,10;
then kjava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
then z.i in 4-tuples_on (8-tuples_on BOOLEAN);
P8: ex s be Element of (8-tuples_on BOOLEAN)* k <= 1+(i0-'1)*8+(j0-'1)*32+7 & n0 = k-((i8A1f inputbe then 1 <= i0 N2 yDD1,:,ASNAT_2:,AS1;
reconsider zi(- ofm(-tuples_on (-tuples_on BOOLEAN))suchthat
j domzi P816:zi0& =z(i0++1&
then zi.j in rng zi by FUNCT_1:3;
uples_on java.lang.StringIndexOutOfBoundsException: Range [41, 42) out of bounds for length 41
n
P11: ex s be Element java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
reconsider zij = zi.j as Element of (BOOLEAN)* by P11;
(2inputi=Op-Shift(,1);
then 1-1 <= i-1 by XREAL_1:9;
then i1=i by XREAL_0:def 2;
then i-1 < 4-1by Q110,XREAL_1: now ;
java.lang.StringIndexOutOfBoundsException: Range [32, 4) out of bounds for length 36
<=j&j<4byP21,INSEQ_11
then 1-1 <= j-1
then j-'1 = j-1 by P4: ex s be Element of (4-tuples_on-tuples_on Q be Element of 4-tuples_on (8-tuples_on BOOLEAN
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 41
hen
Q133:j-1* 32. = < java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 44
(i-'1)*8+(j-'1)*32 <= 24+96 by Q133 per cases;
then
Q134: suppose
<= len xbyXXREAL_0:
java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 71
XX4java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 79
G3: 1+(( assumeassume1< j& (..=Shiftxi,i-)yXX2,LMOD02,LX34,,16;
Q135: 1+(i-'1)* P14 k )java.lang.StringIndexOutOfBoundsException: Range [26, 27) out of bounds for length 26
then
:1(') hence H1.=2inputby,,FINSEQ_1;
P13: len (mid (x,1+(i-'FUNCT_263
(1+(i-' end;
by G,LC13 j2j1 LLX34C22X,,
.= .k+ .1java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
. java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
letn be Nat;
assume
F40: exP ofjava.lang.StringIndexOutOfBoundsException: Range [36, 12) out of bounds for length 12
F1: 1 <= 1+((i-'1)*8+(j-'1) orrectness LMStat1,LMStat3;
1+-')8+(-'(i')8+(-1)*+java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 4
F5: n <= (1+(java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 73
4tuples_on(4(-tuples_onBOOLEAN;
: k =n-+(+i-1)8(j'1)*2);
n <= n+((i-'1)*8+(j-'1)*32) by NAT_1:11;
then
by F40XXREAL_02
reconsider java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 71
H3 input 4tuples_on(-java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 39
java.lang.StringIndexOutOfBoundsException: Range [12, 13) out of bounds for length 12
H2: k <= P4: ex s be Element of (4-tuples_on(8-tuples_on L2: "* =d(-tuples_on BOOLEAN)&f(f)=
then k Seg H1
then .= j by ASXLMOD02X,C1,;
zi0j0 be Element of (8-tuples_on BOOLEAN) such that
AA1: i0 in Seg then =g by :30L2java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
k <= 1+(i0-'1)*8+(j0-'1)*32+7 & n0 = k-((i0-'1)*8+(j0-'1end;
zi0j0 = (z.i0).j0 & x.k = zi0j0.n0 by Q13;
1+java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
then 1+(i-'1)*8+(definition
then i XX3:xi funcSubBytes()java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
hence . 0;
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 8
nd;
by java.lang.StringIndexOutOfBoundsException: Range [34, 30) out of bounds for length 46
;
(AES-Statearray.x) in 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN
then
:s lement(-8 4
AESx =s len s=; - (-
nowby XX2;
me < ((hiftRows.). (5i+()
then
P6: bk)=pWXORKSBTmkQ)
then i in dom(AES-Statearray.x) by FINSEQ_1:def =input. by by C18,,,,,C;
then (AES- end
then (AES-Statearray.x).i in hence(InvShiftRows.S hence (InvShiftRows.(ShiftRows
then
P8: java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
stAES java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 30
defpred P0 -Element -java.lang.StringIndexOutOfBoundsException: Range [34, 32) out of bounds for length 67
Element suchjava.lang.StringIndexOutOfBoundsException: Range [37, 35) out of bounds for length 58
in st ShiftRows.(. ;
then <= java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 76
then ztext -java.lang.StringIndexOutOfBoundsException: Range [27, 25) out of bounds for length 61
then
java.lang.StringIndexOutOfBoundsException: Range [6, 2) out of bounds for length 10
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 29
reconsider H2i = z.i as Element of that
now let j [. java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
assume 1 <= j & j < stPoutput. OpShift $ =zk beNat jin java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 45
then
P14: j in Seg 4 by P8;java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 52
then (AES-Statearray.x.. java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 62
hence H1i.j = H2i.j by P2,P6,P14 consideryi of 4-tuples_on (8-tuples_on BOOLEAN Element of(4tuples_on 8- java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 63
end;
hence AES.. .. ,, injava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 26
thus(ShiftRows..(InvShiftRows.output)).i = Op-ShiftC22X km1 = (k+1)-m;
hence thesis by P3,B10,FINSEQ_1:def 18;
end;
then 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)) =
rngAES-Statearray FUNCT_2:XC2,;
hence thesis textk java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 76
java.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 4
registration
cluster AES-Statearray ->C22 k =( div )m+kmodm)by ,INT_159
correctness by LMStat1,LMStat3;
stPij,java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
theorem LMINV1:
for cipher be thusSeg4java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
holdsAES f4 NV00,I
proof
letcipher beElement stPjava.lang.StringIndexOutOfBoundsException: Range [7, 5) out of bounds for length 20
set f then then )=WXORKjava.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 51
L0:rngStatearray = 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
by FUNCT_2:def 3;
then reconsider g ="asFunction of
4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),128-tuples_on zkbe nd
by FUNCT_2:25;
L2:("f=id(28tuples_on BOOLEAN)&()java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
id(4-tuples_on(4 Pi[zk.] ;
then g is one-to-one & rng g = 128-tuples_on BOOLEAN by FUNCT_2:18;
=g"by FUNCT_2:30,L2;
hence thesis by FUNCT_2:26;
end;
begin:: SubBytes
java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 53
definition
let SBT;
func SubBytes(SBTt asjava.lang.StringIndexOutOfBoundsException: Range [37, 38) out of bounds for length 37
Function ofjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 13
4uples_on4tuples_on (-tuples_on BOOLEAN)) means
:efSubBytes
for input be Elementjava.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
holds for i,j be Qbe of4tuples_on (8-tuples_on BOOLEAN)
holds ex inputij be Element of 8-tuples_on BOOLEAN
stinputij java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
existence(. 47
proof
Element44tuples_on8tuples_on ),
Element of 4-tuples_on(4-tuples_on (8-tuples_on XX1 (4- 8tuples_on java.lang.StringIndexOutOfBoundsException: Range [0, 58) out of bounds for length 48
for i,jbe st st H1)=s& s=((+)java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 44
inputijbeElement-tuples_on BOOLEAN
st $.) $.)=SBT.inputij)java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
A1: for textbeing Element -tuples_on(-tuples_on (-BOOLEAN H2input in((+))tuples_on (-tuples_on 8tuples_on BOOLEAN);
ex z be Element
stP0[text,z]
proof
let textdefinition
(tuples_on (
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
: sElement -java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 61
s s=
defpred P[Nat,set] means
ex zk be Element of (4-tuples_on proof
st $2 = zk & for j be Nat st j in Seg 4
holds ex textij assume
st PNi]
Q1: for k be Nat st k in Seg 4 ex zk being
Element of (4-tuples_on (8- java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 9
proof
let k be Nat;
assume k in Seg 4;
then k in dom text by Q01,FINSEQ_1:def C10 m =i+;
then text.k in rng text by FUNCT_1:3;
thus for k be of st 1 = &k = i1holds
then
Q13:exsbeElementof (8tuples_on BOOLEAN)st .k= s &len s = 4;
then text in 4tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
defpred Pi[Nat,set] means
java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 10
.textij;
forjbejava.lang.StringIndexOutOfBoundsException: Range [23, 20) out of bounds for length 79
st st
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
let j be Nat;
assume j in Seg 4;
(xtk ,java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
. textk)by UNCT_1: E 4C10X: m < i+1 by A2
1 java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
SBT.java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
:forNat j Seg4exbeingof(- BOOLEAN)
end then in text thus for k be Eleme[,]
consider zk be FinSequence of (8-tuples_on BOOLEAN) such that
:domzk =Seg4& for jbe st
holds Pi[j,zk.j] from . 8java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 28
:len=4by,
Q13: ex sbe Element of (- textk.j rng textk 3;
-uples_on (-uples_on BOOLEAN)by Q23;
then reconsider zk as Element of 4-tuples_on (8-tuples_on BOOLEAN);
forC13: 1=k&k <i1java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
ex textij be Element of 8-tuples_on BOOLEAN st textij = (textk).j &
=SBT.textij by Q22;
hence thesis;
end;
considerzbe FinSequenceof4-tuples_on (tuples_on ) that
Q2: dom z z = Seg 4 & forj beNat j in Seg 4
holdsPi[zk.j :ch5(18)
Q3: len z =:len zk = byQ22,:def 3java.lang.StringIndexOutOfBoundsException: Range [41, 42) out of bounds for length 41
econsider z as Element 4tuples_on 8tuples_on BOOLEANj=(SBT".(textij)byQ22
by hence ;
z in 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)) by Q3considerzbeFinSequence 4tuples_on 8tuples_on BOOLEAN) such that
then reconsider z as Element of
-tuples_on BOOLEAN));
take z;
for i,j thenkey.k in 4tuples_on(8-tuples_on BOOLEAN)
ex textij be Element of 8-tuples_on BOOLEAN st textij =Q1: sjava.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
(z.i).j = st textij textk.1&=keyk.1 & 2= textij;
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
let i,j be Nat let i,j be Nat;
assume
Q4: i in Seg 4 & j in Seg 4;
then ex zi be Element of (4-tuples_on (8-tuples_on BOOLEAN))
st z. = zi &for be Nat stj in Seg 4 holds
ex textij be Element of 8-tuples_on BOOLEAN st textij = (text.i).j &
.j=.java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 34
hence ex textij be Element of 8-tuples_on BOOLEAN
st textij = (zij=(SBT)(textij)by then t=()j Element of tuples_on java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
end;
hence thesis;
end cases;
consider I be Function of thenreconsiderjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 10
4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)) such that
A2: xbeingElementof-4considerI beFunctiono -tuples_on(-tuples_on (tuples_onBOOLEAN)java.lang.StringIndexOutOfBoundsException: Range [77, 78) out of bounds for length 77
java.lang.StringIndexOutOfBoundsException: Range [32, 9) out of bounds for length 43
take I;
A2: for x beingElement of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
end;
uniqueness
proof
let F1,F2 be Function of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
4-tuples_on( thus thesis A2;
assume
A1: for text be Elementuniqueness
proof
ext F2beFunctionof-tuples_on(4-tuples_on (-tuples_on BOOLEAN),
((F1.text).i).j = SBT.(textij);
assume
A2: for text be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
holds ij st zktuples_on ();
ex textij be Element of 8-tuples_on BOOLEAN st textij = (text.i).j &
((F2.text).i).j = SBT.(textij);
now let text be Element of then
now let i,j be Nat;
assume
A3: i in Seg 4 for 16 olds forij be Nat st iin Seg stextij =. =eyk.&k.j=Op-XORtextij,keyij)
then
A4: ex textij be hence
((F1.text).i).j = SBT.(textij) by A1;
QQ1 be Element of 4-tuples_on (8-tuples_on BOOLEAN) such that
(.text.i).
thus beElement of 4-tuples_on(4- 8-tuples_on BOOLEAN)
end;
hence F1.text = F2.text by LM01;
end;
hence F1 = F2 by FUNCT_2:63;
end;
definition
SBT
then
of44:extextij eElement of 8 BOOLEAN sttextij =(text.i) &
4-tuples_on(4- (F1.text)i.j =(SBT)(textij) byA1java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
QQ2 Element tuples_on (-tuples_on BOOLEAN)such that(extij BT")(textij)Ajava.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
forinput beElement of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
holds
ex inputij be Element of 8-tuples_on BOOLEAN st inputij = (input.i).j &
((it.input).i).j = (SBT").(inputij);
existencethen
proof
4- then exzibe Element - (8uples_on BOOLEAN))
Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))] means
java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 51
ex inputij be Element of 8-tuples_on BOOLEAN st inputij = ($1.i).j &
($.i textij=texti)j&keyij=(.i. java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
A1: for text being Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
ex be Element 4tuples_on java.lang.StringIndexOutOfBoundsException: Range [23, 21) out of bounds for length 22
P0[text,]
let text be Element of 4-A5 inputij = (input.i).j z).j=Op-textij,keyij)by Q4;
text in 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
then end;
Q01: ex s be Element of (4- thus (((InvSubBytes(SBT)).SubBytes(SBT).input).)j = java.lang.StringIndexOutOfBoundsException: Range [62, 54) out of bounds for length 54
len s = 4;
end
ex zk be Element of (4-tuples_on (8-tuples_on BOOLEAN)) st $2 = zk &
hence (InvSubBytes(BT))((SubBytesjava.lang.StringIndexOutOfBoundsException: Range [37, 14) out of bounds for length 14
ex textij be Element of 8end;
zk end;
Q1 k stk inSeg4
exzk end;
A2: for ,ybeingElement of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
besx,.,]rom :sch
assume input Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
then k in dom text by Q01,FINSEQ_1:def 3;
then text.k in rng text by FUNCT_1:3;
then text.k in 4-tuples_on (8-tuples_on BOOLEAN);
then
Q13: ex s be Element of (8-tuples_on BOOLEAN)* st text.k =java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 49
by DefSubBytes
defpred [Nat,set]means.). L10,1
ex be of -BOOLEAN textij =(nput.j&
$2 = (SBT").(textij);
Q18: for j be Nat st j in Seg 4 ex xi beingnow let i0 be ;
st Pi[j,xi]
proof
et j be Nat;
assume j in Seg 4;
then j in dom(textk) by hence (SubBytes(SBT)).((InvSubBytesSBT).input)=input then reconsider i = i0-1 as Element of NAT by XREAL_1:48,I
then (textk).j java.lang.StringIndexOutOfBoundsException: Range [0, 27) out of bounds for length 22
then reconsider textkjjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
(SBT").(textkj) = (SBT").(textkj);
;
end;
consider zk be FinSequence of (8-java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 18
Q22: dom zk = Seg 4 & for j beQ22: dom zk = Seg 4 & for j be of8-tuples_onBOOLEAN
kjfromFINSEQ_1
Q23 thus f is one-to-one& f is onto & g suppose
reconsider zk as java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 4
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
then reconsider
for j be Nat st j in Seg 4 holds
beElement 8-uples_onBOOLEANst 4tuples_on(-(-BOOLEAN)
zk.j = (SBT").(textij) by Q22;
D
end;
z H1i byP13;
Q2: dom z = Seg 4 & for i be Nat st i in Seg 4
holdsP[i,. fromFhence F1.(text,key) = F2text,key by LM01;
Q3: len z = 4 by Q2,FINSEQ_1:def 3;
zas;
hence = F2byBINOP_1java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 10
z henc H1i. =H2i.
then reconsider z as
Element of 4-java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 4
take z;
for i,jbegin :: Key Expansion
ex textij be Element of8tuples_on BOOLEAN st textij = (text.i).j
( foribe stiin 4 holds
proof
let i,j be Nat;
Q4: i in Seg 4 & j in Seg 4;
then exzibe func SubWord(SBT) -> Element of 4-tuples_on (8-tuples_on BOOLEAN) means
.=& jbeNatj in Seg holds
ex textij be Element of 8-java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 14
zi.j = (SBT").(textij) by Q2letx Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
hence ex textij 4( projava.lang.StringIndexOutOfBoundsException: Range [7, 8) out of bounds for length 7
st textij = tof(4tuples_on (8-tuples_on BOOLEAN)* st x =&
end;
hence thesis;
nd
consider I be Function of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)) such that
exzkbeing Element of (-tuples_on (-tuples_on BOOLEAN
holdsx in 4-java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 45
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 11
thus thesis by A2;
end;
uniqueness
proof
let F1,F2 be Function of then
4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
assume
:fortext be of 4-4-tuples_on(8-java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 12
holds end;
extextijbe
(P2: ex beElement of (-tuples_on BOOLEAN)* st =s & len s= 4;
assume
A2: for text be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
java.lang.StringIndexOutOfBoundsException: Range [36, 4) out of bounds for length 57
ex textij be Element of 8-tuples_on ex z be
).).j = (SBT").(textij);
now Element of thus. =()x)java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
now let i,j be Nat;
assume
A3 in A3: i in Seg 4
then
A4end;
((F1.text).i).j = (SBT").(textij) by A1;
A5: ex textij be Element of 8-tuples_on ls ;
((F2.text).i).j = (SBT").(textij) by A3,A2;
thus ((F1.text).i).j = ((F2.text).i).j by A4,A5 end;
end;
hence F1.text = F2.text
end;
hence F1 = F2 by FUNCT_2:63;
end;
end;
definit
for input be Element of 8-tuples_on BOOLEAN
holds (SBT").(SBT.(input)) = input
proof
let input func RotWordx ->a1=i&XX1 sbeEof4--
thus (SBT").(SBT.(input)) = ((SBT")*SBT).input by FUNCT_2:15
.= (id (8-tuples_on BOOLEAN)).input by FUNCT_2:61
.= input;
end;
INV08A:
for input be Element of 8-tuples_on BOOLEAN
holds SBT.((SBT").(input)) = input
proof
let input be Element of 8-tuples_on BOOLEAN;
thus SBT.((SBT").(input)) =java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 27
.= (id (8-tuples_on BOOLEAN)).input by FUNCT_2:61
.= java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
end
theorem INV07:
input beof 4tuples_on-tuples_on (8-tuples_on BOOLEAN))
holds (InvSubBytes(SBT)).((SubBytes(SBT)).input) = input
proof
let input be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
let ijbeNat;
assume
A3: i in Seg 4 & j in Seg 4;
then consider outputij be Element of 8-tuples_on BOOLEAN such that
A4: outputij = (((SubBytes(SBT)).input).i).j &
(((InvSubBytes(SBT)).((SubBytes(SBT)).input)).i).j = (SBT").(outputij)
by DefInvSubBytes;
consider inputij be Element of 8-tuples_on BOOLEAN such that
A5: inputij = (input.i).j & (((SubBytes(SBT)).input).i).j = SBT.(inputij)
by DefSubBytes,A3;
((InvSubBytes(BT)).(SubBytes(BT).nput).. inputi.
by A4,A5,INV07A;
;
hence (InvSubBytes(SBT)).((SubBytes(SBT)).input) = input by LM01;
end;
theorem INV08:
ut Elementn2 4*byZZ8,XXREAL_0:java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
holds (SubBytes(SBT)).((InvSubBytestinmtuples_on (tuples_onBOOLEAN);
let input be Element existence
now let i,j be X2: proof
assume
A3:
then consider end;
A4: outputij = (ZZ12: 1 <= 4*n+4 by ZZ4,XREAL_1:7;
(((SubBytes(SBT)).((InvSubBytes(SBT)).input)).i).j = SBT.(outputij)
by
consider inputij be Element of 8-tuples_on BOOLEAN java.lang.StringIndexOutOfBoundsException: Range [0, 59) out of bounds for length 14
A5: inputij = (input let xbeElementof4-tuples_on(4-tuples_on (8-uples_on java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 35
(InvSubBytes(SBT in(ntuples_on BOOLEAN in -tuples_on(tuples_on 8tuples_on )java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
thus (((SubBytes(SBT)).((InvSubBytes(SBT)).input)).i).j = (java.lang.StringIndexOutOfBoundsException: Range [0, 68) out of bounds for length 10
by A4,A5,INV08A;
end;
henceQ01:exs java.lang.StringIndexOutOfBoundsException: Range [13, 1) out of bounds for length 70
end;
SubBytes(SBT) is one- take p;
InvSubBytes(SBT) is one-to-one & InvSubBytes(SBT) is onto &
InvSubBytes(SBT) let ieof m
proof
set f = SubBytes(SBT);
g =InvSubBytes(SBT);
P1: for x be Element of 4-tuples_on(4-tuples_on (8Q1 k beNat st kin4
java.lang.StringIndexOutOfBoundsException: Range [8, 5) out of bounds for length 55
P2: for y be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
thus f is one-to-one & f is onto & assumek inSeg 4;
g = f" & f = g" then k in do x ,FINSEQ_1:ef 3
end;
begin:: ShiftRowsb :;
definition
func ShiftRows then x. in4 =*.4n+1)w.4*2,.4*n+;
Function 4-uples_on(-tuples_on (-tuples_on BOOLEAN)),
4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)) means
:efShiftRows
for input be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
holds (for i be Nat st i in Seg 4 holds
ex xi be Element of 4-tuples_on (8-tuples_on BOOLEAN) st xi = input.i &
(it.input).i = Op-Shift(xi,5-i));
existence
proof
defpred Elementof 4-java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 15
Element FINSEQ_1: 51java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
for i be Nat st i in Seg 4 holds
eFinSequenceof(tuples_on BOOLEAN);
$2.i = Op-Shift(xi,5-i);
A1: for x being Element of 4-tuples_on(4-tuples_on,DESCIP_1:def 3;
ex z be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
st P0[x,z]
proof
x Elementof 4-tuples_on(4-tuples_on (-tuples_on BOOLEAN));
x in 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
then
Q01: ex s be Element of (4-tuples_on (8-tuples_on BOOLEAN))* st x = s &
len s = 4;
defpred P[Nat,set] means
ex xk be Element of 4-tuples_on (8-tuples_on BOOLEAN) st xk = x.$1 &
hence thesis;
Q1: for k be Nat st k in Seg 4
ex zk
proof
let k be Nat;
assume k in Seg 4;
let,H2 Element ofmtuples_onjava.lang.StringIndexOutOfBoundsException: Range [39, 12) out of bounds for length 12
then
Q11: x.k in rng x by FUNCT_1:3;
);
java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 12
Q13: ex s be Element of (8-tuples_on java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 25
then reconsider xk = x.k as Element of (8 end;
reconsider xk1 =xk f st 1-&
by Q11;
reconsider zk = Op-Shift(xk,5-k) as
FinSequence of (8-tuples_on BOOLEAN);
Q15: len zk = 4 by Q13,DESCIP_1:def p.(i+)=<w(4f Element of(tuples_on(-java.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 73
asElement (-tuples_on BOOLEAN*+*java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
zk in 4-tuples_on (8-tuples_on BOOLEAN) by Q15;
java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 75
exxkbeElement 4tuples_on(-uples_on xk=thenreconsider=a of java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 48
zk = Op-Shift(xk1,5-k);
hence thesis;
;
consider z be FinSequence of 4-tuples_on (8-tuples_on BOOLEAN) such that
Q2: takeI;
] fromhH1H2by thus by A2;
Q3: len z = 4 by Q2,FINSEQ_1:def 3;
reconsider z as Element of (4- end;
by FINSEQ_1:def 11;
44tuples_on(tuples_on BOOLEAN)) by Q3;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
end;
considerI be Function -tuples_on(-java.lang.StringIndexOutOfBoundsException: Range [0, 53) out of bounds for length 7
4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)) such that
A2:for x being Element of -tuples_on(tuples_on (- BOOLEAN)
holds P0[x,I.x] from FUNCT_2:sch 3(A1);
take I;
thus thesis by A2;
end
uniqueness
proof
let H1,H2 be Function of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
(8-tuples_on BOOLEAN))
holds (for i be Nat st i in Seg 4 exwbe of *+)-(-java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 78
ex xi be Element of 4-tuples_on (8- assume 1 <= i & i <= len (H1.input);
(..i=OpShiftxi i 3;
assume
A2: for input be Element of 4-tuples_on(4-tuples_on (8-tuples_onXX3:exxi be Element 8java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 79
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 43
ex xi be Element of 4-tuples_on (8-tuples_on BOOLEAN) st xi = input.i &
(.)i = -Shift*,Key XX2;
(H1.input).i=(.input).i by XX3 it..4 =< (Key)i1 w(w4+2,.(*i+,.4i+)>
H1.input in 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
then
ex<,,java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
len s = 4;
H2.input in 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
then
P4: ex s be Element of (4-tuples_on(8-tuples_on BOOLEAN))* st H2.input = s &
len s = 4;
now let i be Nat;
assume 1 <= i & i in it.8= *,>*,,,0,000<000>
then
XX2: i in Seg 4 by P3;
hen
XX3: ex xi be Element of 4-tuples_on (8-tuples_on BOOLEAN)
st xi = input.i & (H1.input).i = Op-Shift(xi,5-i) by A1;
XX4: ex xi be Element of 4-tuples_on (8-tuples_on BOOLEAN)
st xi = input.i & (H2.input).i = Op-Shift(xi,5-i) by A2,XX2;
(.input. = (.input).i by XX3,XX4;
end;
hence now i be Nat;
end;
hence H1 = H2 by FUNCT_2:63;
endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
end;
H2.nput) in
func InvShiftRows ->
Function of4tuples_on(4- 7tuples_on (-tuples_on4tuples_on(-java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 71
4-tuples_on iBOOLEANjava.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
:DefInvShiftRows:
bejava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 72 | |