Impressum 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
vocabularies AESCIP_1, DESCIP_1, TARSKI, XBOOLE_0, FINSEQ_1, RELAT_1, FUNCT_1,
ARYTM_1, FUNCT_2, FINSEQ_2, NAT_1, MARGREL1, ZFMISC_1, SUBSET_1, NUMBERS,
INT_1, CARD_1, JORDAN3, XXREAL_0, ARYTM_3, ORDINAL4, FINSEQ_5, XCMPLX_0;
notations TARSKI, XBOOLE_0, ZFMISC_1, SUBSET_1, RELAT_1, FUNCT_1, ORDINAL1,
RELSET_1, PARTFUN1, FUNCT_2, BINOP_1, CARD_1, NUMBERS, XCMPLX_0,
XXREAL_0, NAT_1, INT_1, NAT_D, FINSEQ_1, FINSEQ_2, MARGREL1, FINSEQ_4,
FINSEQ_6, DESCIP_1;
constructors RELSET_1, FINSEQ_4, NAT_D, FINSEQ_6, DESCIP_1, BINOP_1;
registrations FINSEQ_1, RELSET_1, FINSEQ_2, FUNCT_2, ORDINAL1, MARGREL1,
INT_1, NAT_1, XXREAL_0, XBOOLE_0, FUNCT_1, XREAL_0, FINSEQ_4;
requirements BOOLE, SUBSET, NUMERALS, ARITHM, REAL;
equalities FINSEQ_1, FINSEQ_2;
theorems TARSKI, FUNCT_1, FUNCT_2, XXREAL_0, XREAL_1, FINSEQ_6, XREAL_0,
NAT_1, INT_1, FINSEQ_1, CARD_1, BINOP_1, NAT_D, FINSEQ_2, FINSEQ_4,
RFINSEQ, FINSEQ_5, XBOOLE_0, ORDINAL1, DESCIP_1, MARGREL1, NAT_2,
WSIERP_1, XCMPLX_1, FINSEQ_3;
schemes FUNCT_2, FINSEQ_1, NAT_1, BINOP_1, RECDEF_1;
begin :: Preliminaries
theorem XLMOD02:
for k,m be Nat st m <> 0 & (k+ 1) mod m <> 0
holds (k+ 1) mod m = (k mod m)+ 1
proof
let k,m be Nat;
assume
C1: m <> 0 & (k+ 1) mod m <> 0;
(k mod m)+ 1 <= m by NAT_D: 1,C1,NAT_1: 13;
then
P1: (k mod m)+ 1- 1 <= m- 1 by XREAL_1: 9;
P2: (k+ 1) mod m = ((k mod m)+ 1) mod m by NAT_D: 22;
k mod m < m- 1
proof
assume not k mod m < m- 1;
then (k+ 1) mod m = (m- 1+ 1) mod m by XXREAL_0: 1,P1,P2
.= 0 by INT_1: 50;
hence contradiction by C1;
end;
then (k mod m)+ 1 < m- 1+ 1 by XREAL_1: 8;
hence (k+ 1) mod m = (k mod m)+ 1 by NAT_D: 24,P2;
end;
theorem XLMOD01:
for k,m be Nat st m <> 0 & (k+ 1) mod m <> 0 holds (k+ 1) div m = k div m
proof
let k,m be Nat;
assume
C1: m <> 0 & (k+ 1) mod m <> 0;
k+ 1 = ((k+ 1) div m )*m+((k+ 1) mod m) by INT_1: 59,C1
.= ((k+ 1) div m )*m+((k mod m)+ 1) by XLMOD02,C1;
then
P1: ((k+ 1) div m)*m+(k mod m)-(k mod m) = (k div m )*m+(k mod m)-(k mod m)
by INT_1: 59,C1;
thus ((k+ 1) div m) = (k div m)*m / m by XCMPLX_1: 89,C1,P1
.= (k div m) by XCMPLX_1: 89,C1;
end;
theorem XLMOD02X:
for k,m be Nat st m <> 0 & (k+ 1) mod m = 0 holds m- 1 = (k mod m)
proof
let k,m be Nat;
assume
C1: m <> 0 & (k+ 1) mod m = 0;
then (k mod m)+ 1 <= m by NAT_D: 1,NAT_1: 13;
then
P1: (k mod m)+ 1- 1 <= m- 1 by XREAL_1: 9;
P2: (k+ 1) mod m = ((k mod m)+ 1) mod m by NAT_D: 22;
assume not k mod m = m- 1;
then k mod m < m- 1 by XXREAL_0: 1,P1;
then k mod m+ 1 < m- 1+ 1 by XREAL_1: 8;
hence contradiction by P2,NAT_D: 24,C1;
end;
theorem XLMOD01X:
for k,m be Nat st m <> 0 & (k+ 1) mod m = 0
holds (k+ 1) div m = (k div m)+ 1
proof
let k,m be Nat;
assume
C1: m <> 0 & (k+ 1) mod m = 0;
then
P3: k mod m = m- 1 by XLMOD02X;
P4: k+ 1 = ((k+ 1) div m)*m+((k+ 1) mod m) by INT_1: 59,C1
.= ((k+ 1) div m)*m by C1;
P5: k = (k div m )*m+(k mod m) by INT_1: 59,C1
.= (k div m)*m+m- 1 by P3;
thus ((k+ 1) div m) = ((k div m)+ 1)*m / m by XCMPLX_1: 89,C1,P4,P5
.= ((k div m)+ 1) by XCMPLX_1: 89,C1;
end;
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
.= k mod m by NAT_D: 61;
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
.= (k div m)- 1;
end;
definition
let m,n be Nat, X,D be non empty set;
let F be Function of X, m-tuples_on(n-tuples_on D);
let x be Element of X;
redefine func F.x -> Element of m-tuples_on(n-tuples_on D);
coherence
proof
F.x in m-tuples_on(n-tuples_on D);
hence thesis;
end;
end;
definition
let m be Nat, X,Y,D be non empty set;
let F be Function of [:X,Y:], m-tuples_on D;
let x be Element of X,y be Element of Y;
redefine func F.(x,y) -> Element of m-tuples_on D;
coherence
proof
F.(x,y) in m-tuples_on D;
hence thesis;
end;
end;
theorem LM01:
for m,n be Nat, D be non empty set,
F1,F2 be Element of m-tuples_on (n-tuples_on D) st for i,j be Nat
st i in Seg m & j in Seg n
holds (F1.i).j = (F2.i).j holds F1 = F2
proof
let m,n be Nat, D be non empty set,
F1,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-tuples_on (n-tuples_on D);
then
P1: ex s be Element of (n-tuples_on D)* st F1 = s & len s = m;
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;
now let i be Nat;
assume 1 <= i & i <= len F1;
then
P4: i in Seg m by P1;
then i in dom F1 by FINSEQ_1:def 3,P1;
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;
then reconsider F1i = F1.i as Element of D*;
i in dom F2 by FINSEQ_1:def 3,P2,P4;
then F2.i in rng F2 by FUNCT_1: 3;
then F2.i in n-tuples_on D;
then
R6: ex s be Element of D* st F2.i = s & len s = n;
then reconsider F2i = F2.i as Element of D*;
now let j be Nat;
assume 1 <= j & j <= len F1i;
then j in Seg n by P6;
hence F1i.j = F2i.j by AS,P4;
end;
hence
F1.i = F2.i by P6,R6,FINSEQ_1: 14;
end;
hence F1 = F2 by P1,P2,FINSEQ_1: 14;
end;
theorem LMGSEQ4:
for D be non empty set, x1,x2,x3,x4 be Element of D
holds <* x1,x2,x3,x4 *> is Element of ( 4-tuples_on D)
proof
let D be non empty set, x1,x2,x3,x4 be Element of D;
reconsider x1234 = <* x1,x2,x3,x4 *> as FinSequence of D;
P1: len x1234 = 4 by FINSEQ_4: 76;
x1234 in D* by FINSEQ_1:def 11;
then x1234 in 4-tuples_on D by P1;
hence thesis;
end;
theorem LMGSEQ5:
for D be non empty set,x1,x2,x3,x4,x5 be Element of D
holds <* x1,x2,x3,x4,x5 *> is Element of ( 5-tuples_on D)
proof
let D be non empty set, x1,x2,x3,x4,x5 be Element of D;
reconsider x12345 = <* x1,x2,x3,x4,x5 *> as FinSequence of D;
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;
end;
theorem
for D be non empty set, x1,x2,x3,x4,x5,x6,x7,x8 be Element of D
holds <* x1,x2,x3,x4 *>^<* x5,x6,x7,x8 *> is Element of ( 8-tuples_on D)
proof
let D be non empty set,x1,x2,x3,x4,x5,x6,x7,x8 be Element of D;
reconsider x1234 = <* x1,x2,x3,x4 *> as Element of 4-tuples_on D
by LMGSEQ4;
reconsider x5678 = <* x5,x6,x7,x8 *> as Element of 4-tuples_on D
by LMGSEQ4;
D c= D;
hence thesis by FINSEQ_2: 109;
end;
theorem LMGSEQ10:
for D be non empty set, x1,x2,x3,x4,x5,x6,x7,x8,x9,x10 be Element of D
holds <* x1,x2,x3,x4,x5 *>^<* x6,x7,x8,x9,x10 *> is
Element of ( 10-tuples_on D)
proof
let D be non empty set, x1,x2,x3,x4,x5,x6,x7,x8,x9,x10 be Element of D;
reconsider x12345 = <* x1,x2,x3,x4,x5 *> as Element of 5-tuples_on D
by LMGSEQ5;
reconsider x67890 = <* x6,x7,x8,x9,x10 *> as Element of 5-tuples_on D
by LMGSEQ5;
D c= D;
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
Element of 4-tuples_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 D by FINSEQ_2: 109;
P2: x2^x6 is Element of 8-tuples_on D by X1,FINSEQ_2: 109;
P3: x3^x7 is Element of 8-tuples_on D by X1,FINSEQ_2: 109;
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,x3,x4 be Element of D st x1 = (x.k). 1 & x2 = (x.k). 2 &
x3 = (x.k). 3 & x4 = (x.k). 4
proof
let D be non empty set, x be Element of 4-tuples_on( 4-tuples_on D),
k be Element of NAT;
assume
AS: k in Seg 4;
x in 4-tuples_on( 4-tuples_on D);
then ex s be Element of ( 4-tuples_on D)* st x = s & len s = 4;
then k in dom x by AS,FINSEQ_1:def 3;
then x.k in rng x by FUNCT_1: 3;
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 4;
then 1 in dom xk by Q13,FINSEQ_1:def 3;
then xk. 1 in rng xk by FUNCT_1: 3;
then reconsider x1 = xk. 1 as Element of D;
2 in Seg 4;
then 2 in dom xk by Q13,FINSEQ_1:def 3;
then xk. 2 in rng xk by FUNCT_1: 3;
then reconsider x2 = xk. 2 as Element of D;
3 in Seg 4;
then 3 in dom xk by Q13,FINSEQ_1:def 3;
then xk. 3 in rng xk by FUNCT_1: 3;
then reconsider x3 = xk. 3 as Element of D;
4 in Seg 4;
then 4 in dom xk by Q13,FINSEQ_1:def 3;
then xk. 4 in rng xk by FUNCT_1: 3;
then reconsider x4 = xk. 4 as Element of D;
take x1,x2,x3,x4;
thus thesis;
end;
theorem INV00:
for X,Y be non empty set, f be Function of X,Y, g be Function of Y,X
st ( for x be Element of X holds g.(f.x) = x) &
( for y be Element of Y holds f.(g.y) = y)
holds f is one-to-one & f is onto & g is one-to-one & g is onto &
g = f" & f = g"
proof
let X,Y be non empty set, f be Function of X,Y, g be Function of Y,X;
assume
A1: for x be Element of X holds g.(f.x) = x;
assume
A2: for y be Element of Y holds f.(g.y) = y;
now let x be Element of X;
thus (g*f).x = g.(f.x) by FUNCT_2: 15
.= x by A1;
end;
then
P2: g*f = id X by FUNCT_2: 124;
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 P2,P4,FUNCT_2: 23;
thus
P6: g is one-to-one & g is onto by P2,P4,FUNCT_2: 23;
rng f = Y by P5,FUNCT_2:def 3;
hence g = f" by FUNCT_2: 30,P2,FUNCT_2: 23;
rng g = X by P6,FUNCT_2:def 3;
hence f = g" by FUNCT_2: 30,P4,FUNCT_2: 23;
end;
begin :: State array
definition
func AES-Statearray -> Function of 128-tuples_on BOOLEAN,
4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN)) means
:DefStatearray:
for input be Element of 128-tuples_on BOOLEAN
for i,j be Nat st i in Seg 4 & j in Seg 4
holds ((it.input).i).j = mid (input, 1+(i-' 1)* 8+(j-' 1)* 32,
1+(i-' 1)* 8+(j-' 1)* 32+ 7);
existence
proof
defpred P0[Element of 128-tuples_on BOOLEAN,set] means
ex z be Element of 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN))
st $ 2 = z & for i,j be Nat st i in Seg 4 & j in Seg 4
holds (z.i).j = mid ($ 1, 1+(i-' 1)* 8+(j-' 1)* 32, 1+(i-' 1)* 8+(j-' 1)* 32+ 7);
A1: for x being Element of 128-tuples_on BOOLEAN
ex z be Element of 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN))
st P0[x,z]
proof
let x be Element of 128-tuples_on BOOLEAN;
x in 128-tuples_on BOOLEAN;
then
A01: ex s be Element of (BOOLEAN)* st x = s & len s = 128;
defpred P[Nat,set] means
ex zi be Element of ( 4-tuples_on ( 8-tuples_on BOOLEAN))
st $ 2 = zi & for j be Nat st j in Seg 4
holds zi.j = mid (x, 1+($ 1-' 1)* 8+(j-' 1)* 32, 1+($ 1-' 1)* 8+(j-' 1)* 32+ 7);
Q1: for k be Nat st k in Seg 4
ex x being Element of ( 4-tuples_on ( 8-tuples_on BOOLEAN)) st P[k,x]
proof
let k be Nat;
assume k in Seg 4;
then
Q110: 1 <= k & k <= 4 by FINSEQ_1: 1;
then 1- 1 <= k- 1 by XREAL_1: 9;
then k-' 1 = k- 1 by XREAL_0:def 2;
then k-' 1 <= 4- 1 by Q110,XREAL_1: 9;
then
Q112: (k-' 1)* 8 <= 3* 8 by XREAL_1: 64;
defpred Pi[Nat,set] means
$ 2 = mid (x, 1+(k-' 1)* 8+($ 1-' 1)* 32, 1+(k-' 1)* 8+($ 1-' 1)* 32+ 7);
Q12: for j be Nat st j in Seg 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 j-' 1 = j- 1 by XREAL_0:def 2;
then j-' 1 <= 4- 1 by Q130,XREAL_1: 9;
then
Q133: (j-' 1)* 32 <= 3* 32 by XREAL_1: 64;
(k-' 1)* 8+(j-' 1)* 32 <= 24+ 96 by Q133,Q112,XREAL_1: 7;
then
Q134: 1+((k-' 1)* 8+(j-' 1)* 32) <= 1+ 120 by XREAL_1: 7;
Q136: ( 1+(k-' 1)* 8+(j-' 1)* 32)+ 7 <= 121+ 7 by Q134,XREAL_1: 7;
1+ 0 <= 1+((k-' 1)* 8+(j-' 1)* 32) by XREAL_1: 7;
then
Q14: 1 <= 1+(k-' 1)* 8+(j-' 1)* 32 & 1+(k-' 1)* 8+(j-' 1)* 32 <= len x
by Q134,XXREAL_0: 2,A01;
Q150: 1+ 0 <= 1+(k-' 1)* 8+(j-' 1)* 32+ 7 by XREAL_1: 7;
reconsider mmd = mid (x, 1+(k-' 1)* 8+(j-' 1)* 32,
1+(k-' 1)* 8+(j-' 1)* 32+ 7) as Element of (BOOLEAN)* by FINSEQ_1:def 11;
1+(k-' 1)* 8+(j-' 1)* 32+ 0 <= 1+(k-' 1)* 8+(j-' 1)* 32+ 7 by XREAL_1: 6;
then len mid (x, 1+(k-' 1)* 8+(j-' 1)* 32, 1+(k-' 1)* 8+(j-' 1)* 32+ 7) =
( 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+ 1 by NAT_D: 34
.= 8;
then mmd in ( 8-tuples_on BOOLEAN);
then reconsider xi = mid (x, 1+(k-' 1)* 8+(j-' 1)* 32,
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: dom zi = Seg 4 & for i be Nat st i in Seg 4
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 4-tuples_on ( 8-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;
consider z be FinSequence of 4-tuples_on ( 8-tuples_on BOOLEAN) such that
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: len z = 4 by Q2,FINSEQ_1:def 3;
reconsider z as Element of ( 4-tuples_on ( 8-tuples_on BOOLEAN))*
by FINSEQ_1:def 11;
z in 4-tuples_on( 4-tuples_on ( 8-tuples_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,P12;
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 i,j be Nat st i in Seg 4 & j in Seg 4
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-tuples_on BOOLEAN));
assume
A1: for input be Element of 128-tuples_on BOOLEAN
for i,j be Nat st i in Seg 4 & j in Seg 4
holds ((H1.input).i).j = mid (input, 1+(i-' 1)* 8+(j-' 1)* 32,
1+(i-' 1)* 8+(j-' 1)* 32+ 7);
assume
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-' 1)* 8+(j-' 1)* 32,
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-' 1)* 8+(j-' 1)* 32+ 7) by A1,P6;
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 = H2 by FUNCT_2: 63;
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: 2;
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
M1: m <= 4;
per cases;
suppose
A4: n = 0;
A5: 1 <= m
proof
assume not 1 <= m;
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)+ 8*((i- 1)+ 1) by A4,A11
.= 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-' 1)* 32 <= k & k <= 1+(i-' 1)* 8+(j-' 1)* 32+ 7 by A8,A10,A13;
end;
suppose
A14: n <> 0;
then
XX0: 1 <= n by NAT_1: 14;
XX1: n <= 32 by NAT_D: 1;
m <> 4
proof
assume
U1: m = 4;
U2: k = 32* 4+n by NAT_D: 2,U1
.= 128+n;
128+ 1 <= 128+n by XX0,XREAL_1: 7;
hence contradiction by U2,XXREAL_0: 2,A1;
end;
then m < 4 by XXREAL_0: 1,M1;
then
A15: m+ 1 <= 4 by NAT_1: 13;
A16: 1 <= m+ 1 by NAT_1: 11;
set j = m+ 1;
A18: j in Seg 4 by A15,A16;
A19: j-' 1 = j- 1 by XREAL_1: 233,NAT_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;
reconsider s = n div 8 as Nat;
reconsider t = n mod 8 as Nat;
n div 8 <= ( 8* 4) div 8 by XX1,NAT_2: 24;
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;
A29: i-' 1 = i- 1 by XREAL_1: 233,A24;
A30: n = 8*s+ 0 by NAT_D: 2,A23
.= 8*(i-' 1)+ 8* 1 by A29;
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-' 1)* 32 <= k & k <= 1+(i-' 1)* 8+(j-' 1)* 32+ 7
by A28,A18,A20,A30;
end;
suppose
t <> 0;
then
XX0: 1 <= t by NAT_1: 14;
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+t by XX0,XREAL_1: 7;
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 = s+ 1;
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*(j-' 1)+ 8*(i-' 1)+ 1 <= 32*(j-' 1)+ 8*(i-' 1)+t by XX0,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 A20,B20;
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
by 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: 13;
then ((i-' 1)+ 1)* 8 <= (i0-' 1)* 8 by XREAL_1: 64;
then
A13: (i-' 1)* 8+ 8+(j-' 1)* 32 <= (i0-' 1)* 8+(j0-' 1)* 32 by A2,XREAL_1: 6;
(i0-' 1)* 8+(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 A16,A17,A14,XXREAL_0: 2;
end;
end;
suppose
i0 < i;
then (i0-' 1) < (i-' 1) by XREAL_1: 14,P2,P4;
then (i0-' 1)+ 1 <= (i-' 1) by NAT_1: 13;
then ((i0-' 1)+ 1)* 8 <= (i-' 1)* 8 by XREAL_1: 64;
then
A13: (i0-' 1)* 8+ 8+(j0-' 1)* 32 <= (i-' 1)* 8+(j-' 1)* 32 by A2,XREAL_1: 6;
(i-' 1)* 8+(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
by A15;
reconsider x as Nat by A16;
thus contradiction by A16,A14,XXREAL_0: 2,A17;
end;
end;
end;
hence A /\ B = {};
end;
end;
theorem LMStat2:
for k,i,j,i0,j0 be Nat st 1 <= k & k <= 128 & i in Seg 4 & j in Seg 4 &
i0 in Seg 4 & j0 in Seg 4 & 1+(i-' 1)* 8+(j-' 1)* 32 <= k &
k <= 1+(i-' 1)* 8+(j-' 1)* 32+ 7 & 1+(i0-' 1)* 8+(j0-' 1)* 32 <= k &
k <= 1+(i0-' 1)* 8+(j0-' 1)* 32+ 7 holds i = i0 & j = j0
proof
let k,i,j,i0,j0 be Nat;
assume
AS: 1 <= k & k <= 128 & i in Seg 4 & j in Seg 4 & i0 in Seg 4 & j0 in Seg 4 &
1+(i-' 1)* 8+(j-' 1)* 32 <= k & k <= 1+(i-' 1)* 8+(j-' 1)* 32+ 7 &
1+(i0-' 1)* 8+(j0-' 1)* 32 <= k & k <= 1+(i0-' 1)* 8+(j0-' 1)* 32+ 7;
assume not (i = i0 & j = j0);
then
A2: {n where n is Nat : 1+(i-' 1)* 8+(j-' 1)* 32 <= n & n <= 8+(i-' 1)* 8+(j-' 1)* 32}
/\ {n where n is Nat : 1+(i0-' 1)* 8+(j0-' 1)* 32 <= n &
n <= 8+(i0-' 1)* 8+(j0-' 1)* 32} = {} by LMStat2A,AS;
A3: k in {n where n is Nat : 1+(i-' 1)* 8+(j-' 1)* 32 <= n &
n <= 8+(i-' 1)* 8+(j-' 1)* 32} by AS;
k in {n where n is Nat : 1+(i0-' 1)* 8+(j0-' 1)* 32 <= n &
n <= 8+(i0-' 1)* 8+(j0-' 1)* 32} by AS;
hence contradiction by A3,XBOOLE_0:def 4,A2;
end;
theorem LMStat1:
AES-Statearray is one-to-one
proof
for x1,x2 be object st x1 in 128-tuples_on BOOLEAN &
x2 in 128-tuples_on BOOLEAN &
(AES-Statearray).x1 = (AES-Statearray).x2 holds x1 = x2
proof
let x1,x2 be object;
assume
A1: x1 in 128-tuples_on BOOLEAN & x2 in 128-tuples_on BOOLEAN &
(AES-Statearray).x1 = (AES-Statearray).x2;
then reconsider xx1 = x1,xx2 = x2 as Element of 128-tuples_on BOOLEAN;
P1: ex s be Element of (BOOLEAN)* st xx1 = s & len s = 128 by A1;
P2: ex s be Element of (BOOLEAN)* st xx2 = s & len s = 128 by A1;
now let k be Nat;
assume
P5: 1 <= k & k <= len xx1;
consider i,j be Nat such that
A4: 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 LMStat0,P5,P1;
mid (xx1, 1+(i-' 1)* 8+(j-' 1)* 32, 1+(i-' 1)* 8+(j-' 1)* 32+ 7) is
Element of (BOOLEAN)* by FINSEQ_1:def 11;
then reconsider A1ij = (((AES-Statearray).xx1).i).j as
FinSequence of (BOOLEAN) by DefStatearray,A4;
mid (xx2, 1+(i-' 1)* 8+(j-' 1)* 32, 1+(i-' 1)* 8+(j-' 1)* 32+ 7) is
Element of (BOOLEAN)* by FINSEQ_1:def 11;
then reconsider A2ij = (((AES-Statearray).xx2).i).j as
FinSequence of (BOOLEAN) by DefStatearray,A4;
A50: 1+(i-' 1)* 8+(j-' 1)* 32-((i-' 1)* 8+(j-' 1)* 32) <= k-((i-' 1)* 8+(j-' 1)* 32)
by A4,XREAL_1: 9;
then reconsider n = k-((i-' 1)* 8+(j-' 1)* 32) as Element of NAT by INT_1: 3;
F41: k-((i-' 1)* 8+(j-' 1)* 32) <= 1+(i-' 1)* 8+(j-' 1)* 32+ 7-((i-' 1)* 8+(j-' 1)* 32)
by A4,XREAL_1: 9;
F1: 1 <= 1+((i-' 1)* 8+(j-' 1)* 32) by NAT_1: 11;
F2: 1+(i-' 1)* 8+(j-' 1)* 32 <= 1+(i-' 1)* 8+(j-' 1)* 32+ 7 by NAT_1: 11;
Q110: 1 <= i & i <= 4 by A4,FINSEQ_1: 1;
then 1- 1 <= i- 1 by XREAL_1: 9;
then i-' 1 = i- 1 by XREAL_0:def 2;
then i-' 1 <= 4- 1 by Q110,XREAL_1: 9;
then
Q112: (i-' 1)* 8 <= 3* 8 by XREAL_1: 64;
Q130: 1 <= j & j <= 4 by A4,FINSEQ_1: 1;
then 1- 1 <= j- 1 by XREAL_1: 9;
then j-' 1 = j- 1 by XREAL_0:def 2;
then j-' 1 <= 4- 1 by Q130,XREAL_1: 9;
then
Q133: (j-' 1)* 32 <= 3* 32 by XREAL_1: 64;
(i-' 1)* 8+(j-' 1)* 32 <= 24+ 96 by Q133,Q112,XREAL_1: 7;
then 1+((i-' 1)* 8+(j-' 1)* 32) <= 1+ 120 by XREAL_1: 7;
then
Q135: 1+(i-' 1)* 8+(j-' 1)* 32+ 7 <= 121+ 7 by XREAL_1: 6;
F5: n <= ( 1+(i-' 1)* 8+(j-' 1)* 32+ 7)-( 1+(i-' 1)* 8+(j-' 1)* 32)+ 1 by F41;
A6: k = n- 1+( 1+(i-' 1)* 8+(j-' 1)* 32);
thus xx1.k = (mid (xx1, 1+(i-' 1)* 8+(j-' 1)* 32, 1+(i-' 1)* 8+(j-' 1)* 32+ 7)).n
by F1,F2,Q135,P1,A50,F5,A6,FINSEQ_6: 122
.= A2ij.n by DefStatearray,A4,A1
.= (mid (xx2, 1+(i-' 1)* 8+(j-' 1)* 32, 1+(i-' 1)* 8+(j-' 1)* 32+ 7)).n
by DefStatearray,A4
.= xx2.k by F1,F2,P2,Q135,A50,F5,A6,FINSEQ_6: 122;
end;
hence thesis by P1,P2,FINSEQ_1:def 18;
end;
hence thesis by FUNCT_2: 19;
end;
theorem LMStat3:
AES-Statearray is onto
proof
for y be object st y in 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN))
ex x be object st x in 128-tuples_on BOOLEAN & y = AES-Statearray.x
proof
let y be object;
assume y in 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN));
then
B10: ex s be Element of ( 4-tuples_on ( 8-tuples_on BOOLEAN))*
st y = s & len s = 4;
then reconsider z = y as Element of ( 4-tuples_on ( 8-tuples_on BOOLEAN))*;
defpred PK[Nat,set] means
ex i,j,n be Nat, zij be Element of ( 8-tuples_on BOOLEAN)
st i in Seg 4 & j in Seg 4 & n in Seg 8 & 1+(i-' 1)* 8+(j-' 1)* 32 <= $ 1 &
$ 1 <= 1+(i-' 1)* 8+(j-' 1)* 32+ 7 & n = $ 1-((i-' 1)* 8+(j-' 1)* 32) & zij = (z.i).j
& $ 2 = zij.n;
Q12: for k be Nat st k in Seg 128 ex z being Element of BOOLEAN st PK[k,z]
proof
let k be Nat;
assume k in Seg 128;
then 1 <= k & k <= 128 by FINSEQ_1: 1;
then consider i,j be Nat such that
A4: 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 LMStat0;
i in dom z by FINSEQ_1:def 3,A4,B10;
then z.i in rng z by FUNCT_1: 3;
then z.i in 4-tuples_on ( 8-tuples_on BOOLEAN);
then
B10: ex s be Element of ( 8-tuples_on BOOLEAN)* st z.i = s & len s = 4;
then reconsider zi = z.i as Element of ( 8-tuples_on BOOLEAN)*;
j in dom zi by B10,FINSEQ_1:def 3,A4;
then (zi).j in rng zi by FUNCT_1: 3;
then reconsider zij = (z.i).j as Element of 8-tuples_on BOOLEAN;
A50: 1+(i-' 1)* 8+(j-' 1)* 32-((i-' 1)* 8+(j-' 1)* 32) <= k-((i-' 1)* 8+(j-' 1)* 32)
by A4,XREAL_1: 9;
then reconsider n = k-((i-' 1)* 8+(j-' 1)* 32) as Element of NAT by INT_1: 3;
k-((i-' 1)* 8+(j-' 1)* 32) <= 1+(i-' 1)* 8+(j-' 1)* 32+ 7-((i-' 1)* 8+(j-' 1)* 32)
by A4,XREAL_1: 9;
then
G4: n in Seg 8 by A50;
reconsider z = zij.n as Element of BOOLEAN;
take z;
thus thesis by A4,G4;
end;
consider x be FinSequence of BOOLEAN
such that
Q13: dom x = Seg 128 & for i be Nat st i in Seg 128
holds PK[i,x.i] from FINSEQ_1:sch 5(Q12);
Q14: len x = 128 by Q13,FINSEQ_1:def 3;
reconsider x as Element of (BOOLEAN)* by FINSEQ_1:def 11;
x in 128-tuples_on BOOLEAN by Q14;
then reconsider x as Element of 128-tuples_on BOOLEAN;
P2: 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
P21: i in Seg 4 & j in Seg 4;
then i in dom z by FINSEQ_1:def 3,B10;
then z.i in rng z by FUNCT_1: 3;
then z.i in 4-tuples_on ( 8-tuples_on BOOLEAN);
then
P8: ex s be Element of ( 8-tuples_on BOOLEAN)* st z.i = s & len s = 4;
reconsider zi = z.i as Element of ( 8-tuples_on BOOLEAN)* by P8;
j in dom zi by P8,FINSEQ_1:def 3,P21;
then zi.j in rng zi by FUNCT_1: 3;
then zi.j in ( 8-tuples_on BOOLEAN);
then
P11: ex s be Element of (BOOLEAN)* st zi.j = s & len s = 8;
reconsider zij = zi.j as Element of (BOOLEAN)* by P11;
Q110: 1 <= i & i <= 4 by P21,FINSEQ_1: 1;
then 1- 1 <= i- 1 by XREAL_1: 9;
then i-' 1 = i- 1 by XREAL_0:def 2;
then i-' 1 <= 4- 1 by Q110,XREAL_1: 9;
then
Q112: (i-' 1)* 8 <= 3* 8 by XREAL_1: 64;
Q130: 1 <= j & j <= 4 by P21,FINSEQ_1: 1;
then 1- 1 <= j- 1 by XREAL_1: 9;
then j-' 1 = j- 1 by XREAL_0:def 2;
then j-' 1 <= 4- 1 by Q130,XREAL_1: 9;
then
Q133: (j-' 1)* 32 <= 3* 32 by XREAL_1: 64;
(i-' 1)* 8+(j-' 1)* 32 <= 24+ 96 by Q133,Q112,XREAL_1: 7;
then
Q134: 1+((i-' 1)* 8+(j-' 1)* 32) <= 1+ 120 by XREAL_1: 7;
then
G1: 1+((i-' 1)* 8+(j-' 1)* 32) <= len x by XXREAL_0: 2,Q14;
G0: 1 <= 1+((i-' 1)* 8+(j-' 1)* 32) by NAT_1: 11;
G2: 1 <= 1+((i-' 1)* 8+(j-' 1)* 32+ 7) by NAT_1: 11;
G3: 1+((i-' 1)* 8+(j-' 1)* 32)+ 0 <= 1+(i-' 1)* 8+(j-' 1)* 32+ 7 by XREAL_1: 7;
Q135: 1+(i-' 1)* 8+(j-' 1)* 32+ 7 <= 121+ 7 by XREAL_1: 6,Q134;
then
F3: 1+(i-' 1)* 8+(j-' 1)* 32+ 7 <= len x by Q13,FINSEQ_1:def 3;
P13: len (mid (x, 1+(i-' 1)* 8+(j-' 1)* 32, 1+(i-' 1)* 8+(j-' 1)* 32+ 7)) =
( 1+(i-' 1)* 8+(j-' 1)* 32+ 7)-'( 1+(i-' 1)* 8+(j-' 1)* 32)+ 1
by G1,G2,G3,G0,F3,FINSEQ_6: 118
.= ( 1+(i-' 1)* 8+(j-' 1)* 32+ 7)-( 1+(i-' 1)* 8+(j-' 1)* 32)+ 1 by G3,XREAL_1: 233
.= 8;
now let n be Nat;
assume
F40: 1 <= n & n <= len zij;
F1: 1 <= 1+((i-' 1)* 8+(j-' 1)* 32) by NAT_1: 11;
F2: 1+(i-' 1)* 8+(j-' 1)* 32 <= 1+(i-' 1)* 8+(j-' 1)* 32+ 7 by NAT_1: 11;
F5: n <= ( 1+(i-' 1)* 8+(j-' 1)* 32+ 7)-( 1+(i-' 1)* 8+(j-' 1)* 32)+ 1 by F40,P11;
reconsider k = n+((i-' 1)* 8+(j-' 1)* 32) as Nat;
A6: k = n- 1+( 1+(i-' 1)* 8+(j-' 1)* 32);
n <= n+((i-' 1)* 8+(j-' 1)* 32) by NAT_1: 11;
then
H1: 1 <= k by F40,XXREAL_0: 2;
reconsider k = n+((i-' 1)* 8+(j-' 1)* 32) as Nat;
H3: k <= 8+((i-' 1)* 8+(j-' 1)* 32) by F40,P11,XREAL_1: 7;
then
H2: k <= 128 by Q135,XXREAL_0: 2;
then k in Seg 128 by H1;
then consider i0,j0,n0 be Nat,
zi0j0 be Element of ( 8-tuples_on BOOLEAN) such that
AA1: i0 in Seg 4 & j0 in Seg 4 & n0 in Seg 8 & 1+(i0-' 1)* 8+(j0-' 1)* 32 <= k &
k <= 1+(i0-' 1)* 8+(j0-' 1)* 32+ 7 & n0 = k-((i0-' 1)* 8+(j0-' 1)* 32) &
zi0j0 = (z.i0).j0 & x.k = zi0j0.n0 by Q13;
1+((i-' 1)* 8+(j-' 1)* 32) <= n+((i-' 1)* 8+(j-' 1)* 32) by F40,XREAL_1: 7;
then 1+(i-' 1)* 8+(j-' 1)* 32 <= k & k <= 1+(i-' 1)* 8+(j-' 1)* 32+ 7 by H3;
then i = i0 & j = j0 by LMStat2,AA1,P21,H1,H2;
hence zij.n = (mid (x, 1+(i-' 1)* 8+(j-' 1)* 32, 1+(i-' 1)* 8+(j-' 1)* 32+ 7)).n
by AA1,F1,F2,F3,F40,F5,A6,FINSEQ_6: 122;
end;
hence thesis by FINSEQ_1:def 18,P11,P13;
end;
(AES-Statearray.x) 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 (AES-Statearray.x) = s & len s = 4;
now let i be Nat;
assume 1 <= i & i <= len (AES-Statearray.x);
then
P6: i in Seg 4 by P3;
then i in dom(AES-Statearray.x) by FINSEQ_1:def 3,P3;
then (AES-Statearray.x).i in rng (AES-Statearray.x) by FUNCT_1: 3;
then (AES-Statearray.x).i in 4-tuples_on ( 8-tuples_on BOOLEAN);
then
P8: ex s be Element of ( 8-tuples_on BOOLEAN)*
st (AES-Statearray.x).i = s & len s = 4;
reconsider H1i = (AES-Statearray.x).i as
Element of ( 8-tuples_on BOOLEAN)* by P8;
i in dom z by FINSEQ_1:def 3,B10,P6;
then z.i in rng z by FUNCT_1: 3;
then z.i in 4-tuples_on ( 8-tuples_on BOOLEAN);
then
P11: ex s be Element of ( 8-tuples_on BOOLEAN)*
st z.i = s & len s = 4;
reconsider H2i = z.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 ((AES-Statearray.x).i).j = mid (x, 1+(i-' 1)* 8+(j-' 1)* 32,
1+(i-' 1)* 8+(j-' 1)* 32+ 7) by DefStatearray,P6;
hence H1i.j = H2i.j by P2,P6,P14;
end;
hence (AES-Statearray.x).i = z.i by P8,P11,FINSEQ_1:def 18;
end;
hence thesis by P3,B10,FINSEQ_1:def 18;
end;
then 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN)) =
rng AES-Statearray by FUNCT_2: 10;
hence thesis by FUNCT_2:def 3;
end;
registration
cluster AES-Statearray -> bijective;
correctness by LMStat1,LMStat3;
end;
theorem LMINV1:
for cipher be Element of 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN))
holds AES-Statearray.((AES-Statearray)".(cipher)) = cipher
proof
let cipher be Element of 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN));
set f = AES-Statearray;
L0: rng AES-Statearray = 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN))
by FUNCT_2:def 3;
then reconsider g = f" as Function of
4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN)), 128-tuples_on BOOLEAN
by FUNCT_2: 25;
L2: (f")*f = id ( 128-tuples_on BOOLEAN) & f*(f") =
id ( 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN))) by FUNCT_2: 29,L0;
then g is one-to-one & rng g = 128-tuples_on BOOLEAN by FUNCT_2: 18;
then f = g" by FUNCT_2: 30,L2;
hence thesis by FUNCT_2: 26;
end;
begin :: SubBytes
reserve SBT for Permutation of ( 8-tuples_on BOOLEAN);
definition
let SBT;
func SubBytes(SBT) ->
Function of 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN)),
4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN)) means
:DefSubBytes:
for input be Element of 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN))
holds for i,j be Nat st i in Seg 4 & j in Seg 4
holds ex inputij be Element of 8-tuples_on BOOLEAN
st inputij = (input.i).j & ((it.input).i).j = SBT.(inputij);
existence
proof
defpred P0[Element of 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN)),
Element of 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN))] means
for i,j be Nat st i in Seg 4 & j in Seg 4
holds ex inputij be Element of 8-tuples_on BOOLEAN
st inputij = ($ 1.i).j & ($ 2.i).j = SBT.(inputij);
A1: for text being Element of 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN))
ex z be Element of 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN))
st P0[text,z]
proof
let text be Element of 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN));
text 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 text = s & len s = 4;
defpred P[Nat,set] means
ex zk be Element of ( 4-tuples_on ( 8-tuples_on BOOLEAN))
st $ 2 = zk & for j be Nat st j in Seg 4
holds ex textij be Element of 8-tuples_on BOOLEAN
st textij = (text.$ 1).j & zk.j = SBT.(textij);
Q1: for k be Nat st k in Seg 4 ex zk being
Element of ( 4-tuples_on ( 8-tuples_on BOOLEAN)) st P[k,zk]
proof
let k be Nat;
assume k in Seg 4;
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 = s & len s = 4;
then reconsider textk = text.k as Element of ( 8-tuples_on BOOLEAN)*;
defpred Pi[Nat,set] means
ex textij be Element of 8-tuples_on BOOLEAN st textij = (textk).$ 1 &
$ 2 = SBT.(textij);
Q18: for j be Nat st j in Seg 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 j in dom(textk) by Q13,FINSEQ_1:def 3;
then (textk).j in rng (textk) by FUNCT_1: 3;
then reconsider textkj = (textk).j as Element of 8-tuples_on BOOLEAN;
SBT.(textkj) = SBT.(textkj);
hence thesis;
end;
consider zk be FinSequence of ( 8-tuples_on BOOLEAN) such that
Q22: dom zk = Seg 4 & for j be Nat st j in Seg 4
holds Pi[j,zk.j] from FINSEQ_1:sch 5(Q18);
Q23: len zk = 4 by Q22,FINSEQ_1:def 3;
reconsider zk as Element of ( 8-tuples_on BOOLEAN)* by FINSEQ_1:def 11;
zk in 4-tuples_on ( 8-tuples_on BOOLEAN) by Q23;
then reconsider zk as Element of 4-tuples_on ( 8-tuples_on BOOLEAN);
for j be Nat st j in Seg 4 holds
ex textij be Element of 8-tuples_on BOOLEAN st textij = (textk).j &
zk.j = SBT.(textij) by Q22;
hence thesis;
end;
consider z be FinSequence of 4-tuples_on ( 8-tuples_on BOOLEAN) such that
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: len z = 4 by Q2,FINSEQ_1:def 3;
reconsider z as Element of ( 4-tuples_on ( 8-tuples_on BOOLEAN))*
by FINSEQ_1:def 11;
z in 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN)) by Q3;
then reconsider z as Element of
4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN));
take z;
for i,j be Nat st i in Seg 4 & j in Seg 4 holds
ex textij be Element of 8-tuples_on BOOLEAN st textij = (text.i).j &
(z.i).j = SBT.(textij)
proof
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.i = zi & for j be Nat st j in Seg 4 holds
ex textij be Element of 8-tuples_on BOOLEAN st textij = (text.i).j &
zi.j = SBT.(textij) by Q2;
hence ex textij be Element of 8-tuples_on BOOLEAN
st textij = (text.i).j & (z.i).j = SBT.(textij) by Q4;
end;
hence thesis;
end;
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
A2: for x being Element of 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN))
holds P0[x,I.x] from FUNCT_2:sch 3(A1);
take I;
thus thesis by A2;
end;
uniqueness
proof
let F1,F2 be Function of 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN)),
4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN));
assume
A1: for text be Element of 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN))
holds for i,j be Nat st i in Seg 4 & j in Seg 4 holds
ex textij be Element of 8-tuples_on BOOLEAN st textij = (text.i).j &
((F1.text).i).j = SBT.(textij);
assume
A2: for text be Element of 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN))
holds for i,j be Nat st i in Seg 4 & j in Seg 4 holds
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 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN));
now let i,j be Nat;
assume
A3: i in Seg 4 & j in Seg 4;
then
A4: ex textij be Element of 8-tuples_on BOOLEAN st textij = (text.i).j &
((F1.text).i).j = SBT.(textij) by A1;
A5: ex textij be Element of 8-tuples_on BOOLEAN st textij = (text.i).j &
((F2.text).i).j = SBT.(textij) by A3,A2;
thus ((F1.text).i).j = ((F2.text).i).j by A4,A5;
end;
hence F1.text = F2.text by LM01;
end;
hence F1 = F2 by FUNCT_2: 63;
end;
end;
definition
let SBT;
func InvSubBytes(SBT) ->
Function of 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN)),
4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN)) means
:DefInvSubBytes:
for input be Element of 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN))
holds for i,j be Nat st i in Seg 4 & j in Seg 4 holds
ex inputij be Element of 8-tuples_on BOOLEAN st inputij = (input.i).j &
((it.input).i).j = (SBT").(inputij);
existence
proof
defpred P0[Element of 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN)),
Element of 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN))] means
for i,j be Nat st i in Seg 4 & j in Seg 4 holds
ex inputij be Element of 8-tuples_on BOOLEAN st inputij = ($ 1.i).j &
($ 2.i).j = (SBT").(inputij);
A1: for text being Element of 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN))
ex z be Element of 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN))
st P0[text,z]
proof
let text be Element of 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN));
text 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 text = s &
len s = 4;
defpred P[Nat,set] means
ex zk be Element of ( 4-tuples_on ( 8-tuples_on BOOLEAN)) st $ 2 = zk &
for j be Nat st j in Seg 4 holds
ex textij be Element of 8-tuples_on BOOLEAN st textij = (text.$ 1).j &
zk.j = (SBT").(textij);
Q1: for k be Nat st k in Seg 4
ex zk being Element of ( 4-tuples_on ( 8-tuples_on BOOLEAN)) st P[k,zk]
proof
let k be Nat;
assume k in Seg 4;
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 = s & len s = 4;
then reconsider textk = text.k as Element of ( 8-tuples_on BOOLEAN)*;
defpred Pi[Nat,set] means
ex textij be Element of 8-tuples_on BOOLEAN st textij = (textk).$ 1 &
$ 2 = (SBT").(textij);
Q18: for j be Nat st j in Seg 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 j in dom(textk) by Q13,FINSEQ_1:def 3;
then (textk).j in rng (textk) by FUNCT_1: 3;
then reconsider textkj = (textk).j as Element of 8-tuples_on BOOLEAN;
(SBT").(textkj) = (SBT").(textkj);
hence thesis;
end;
consider zk be FinSequence of ( 8-tuples_on BOOLEAN) such that
Q22: dom zk = Seg 4 & for j be Nat st j in Seg 4
holds Pi[j,zk.j ] from FINSEQ_1:sch 5(Q18);
Q23: len zk = 4 by Q22,FINSEQ_1:def 3;
reconsider zk as Element of ( 8-tuples_on BOOLEAN)* by FINSEQ_1:def 11;
zk in 4-tuples_on ( 8-tuples_on BOOLEAN) by Q23;
then reconsider zk as Element of 4-tuples_on ( 8-tuples_on BOOLEAN);
for j be Nat st j in Seg 4 holds
ex textij be Element of 8-tuples_on BOOLEAN st textij = (textk).j &
zk.j = (SBT").(textij) by Q22;
hence thesis;
end;
consider z be FinSequence of 4-tuples_on ( 8-tuples_on BOOLEAN) such that
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: len z = 4 by Q2,FINSEQ_1:def 3;
reconsider z as Element of ( 4-tuples_on ( 8-tuples_on BOOLEAN))*
by FINSEQ_1:def 11;
z in 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN)) by Q3;
then reconsider z as
Element of 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN));
take z;
for i,j be Nat st i in Seg 4 & j in Seg 4 holds
ex textij be Element of 8-tuples_on BOOLEAN st textij = (text.i).j &
(z.i).j = (SBT").(textij)
proof
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.i = zi & for j be Nat st j in Seg 4 holds
ex textij be Element of 8-tuples_on BOOLEAN st textij = (text.i).j &
zi.j = (SBT").(textij) by Q2;
hence ex textij be Element of 8-tuples_on BOOLEAN
st textij = (text.i).j & (z.i).j = (SBT").(textij) by Q4;
end;
hence thesis;
end;
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
A2: for x being Element of 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN))
holds P0[x,I.x] from FUNCT_2:sch 3(A1);
take I;
thus thesis by A2;
end;
uniqueness
proof
let F1,F2 be Function of 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN)),
4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN));
assume
A1: for text be Element of 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN))
holds for i,j be Nat st i in Seg 4 & j in Seg 4 holds
ex textij be Element of 8-tuples_on BOOLEAN st textij = (text.i).j &
((F1.text).i).j = (SBT").(textij);
assume
A2: for text be Element of 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN))
holds for i,j be Nat st i in Seg 4 & j in Seg 4 holds
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 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN));
now let i,j be Nat;
assume
A3: i in Seg 4 & j in Seg 4;
then
A4: ex textij be Element of 8-tuples_on BOOLEAN st textij = (text.i).j &
((F1.text).i).j = (SBT").(textij) by A1;
A5: ex textij be Element of 8-tuples_on BOOLEAN st textij = (text.i). j &
((F2.text).i).j = (SBT").(textij) by A3,A2;
thus ((F1.text).i).j = ((F2.text).i).j by A4,A5;
end;
hence F1.text = F2.text by LM01;
end;
hence F1 = F2 by FUNCT_2: 63;
end;
end;
INV07A:
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)) = ((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)) = (SBT*(SBT")).input by FUNCT_2: 15
.= (id ( 8-tuples_on BOOLEAN)).input by FUNCT_2: 61
.= input;
end;
theorem INV07:
for input be Element of 4-tuples_on( 4-tuples_on ( 8-tuples_on BOOLEAN))
holds (InvSubBytes(SBT)).((SubBytes(SBT)).input) = input
proof
let input be Element of:: (Stowarzyszenie Uzytkownikow Mizara, Bialystok, Poland).:: This code can be distributed under the GNU General Public Licence
now :: http://creativecommons.java.lang.StringIndexOutOfBoundsException: Range [0, 29) out of bounds for length 0
assumeTARSKI, XBOOLE_0,ZFMISC_1, SUBSET_1, RELAT_1, FUNCT_1, ORDINAL1,
A3: i in Seg 4 & j in Seg 4;
then consider outputij be Element of 8-tuples_on BOOLEAN such that
A4: outputij =((SubBytes(BT).input).i.j java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
(((,NAT_1 , XBOOLE_0 XREAL_0 FINSEQ_4;
by ements BOOLE,SUBSET, NUMERALS, ARITHM, REAL;
Elementof 8-tuples_on BOOLEAN such that
A5:inputij=(i)j (SubBytes)...j =SBT.()
by DefSubBytes,A3;
(SBT)(SubBytes()).))i. input.)j
by A4,A5,INV07A;
end;
hence (InvSubBytes(SBT)).((SubBytes(SBT)).input) = input by LM01;
end;
theorem INV08:
for output be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
holds (SubBytes(SBT)).((InvSubBytes(SBT)).output) = output
proof
let input be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
now let i,j be Nat;
assume
A3: i in Seg 4 & j in Seg 4;
then consider outputij be Element of 8-tuples_on BOOLEAN such that
A4: outputij = (((InvSubBytes(SBT)).input).i).j &
(((SubBytes(SBT)).((InvSubBytes(SBT)).input)).i).j = SBT.(outputij)
by DefSubBytes;
consider inputij be Element of 8-tuples_on BOOLEAN such that
A5: inputij=(.)j &
(((nvSubBytesS).nput.i. =().(inputij)by ,A3;
thus (((SubBytes(SBTjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
by A4,A5,INV08A;
end;
hence (SubBytes(SBT)).((InvSubBytes(SBT)).input) = input by LM01;
end;
theorem
SubBytes(SBT) is one-to-one & SubBytes(SBT) is onto &
InvSubBytes(SBT) is one-to-one & InvSubBytes(SBT) is onto &
InvSubBytes(SBT) = (SubBytes(SBT))" & SubBytes(SBT) = (InvSubBytes(SBT))"
proof
set f = SubBytes(SBT);
set g = InvSubBytes(SBT);
P1: for x be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
holds g.(f.x) = x by INV07;
P2: for y be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
holds f.(g.y) = y P2: (k+1) mod m = ((k mod(k1 mod =(kmod m)+1) mod m by NAT_D:22;
thus f is one-to-one & f is onto & g is one-to-one & g is onto &
g = f" & f = g" by proof
end;
begin :: ShiftRows contradiction by C1
definition
func ShiftRows ->
Function of ;
-4(8tuples_on BOOLEAN))means
:efShiftRows
for inputassume
holds (for i k =((1) div m *m+k+1)mod m) INT_1:59,C1
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 P0[Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))] means
for i be Nat st i in Seg 4 holds
ex xi be Element of 4-tuples_on (8-tuples_on BOOLEAN) st xi = $1.i &
$2.i = Op-Shift(xi,5-i);
A1: for x being Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
ex z be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
st P0[x,z]
proof
let x be Element of 4-tuples_on(4-tuples_on (8-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 &
lens ;
P[,set
ex xk be Element of 4-tuples_on (8-tuples_on BOOLEAN) st xk = x.$1 &
$2 = Op-Shift(xk,5-$1);
Q1: for k be Nat st k in Seg 4
ex zk being Element of (4-tuples_on (8-tuples_on BOOLEAN)) st P[k,zk]
proof
let k be Nat;
assume k in Seg 4;
then k in dom x by Q01,FINSEQ_1:def 3;
then
Q11: x.k in rng x by FUNCT_1:3;
then x.k in 4-tuples_on (8-tuples_on BOOLEAN);
then
Q13: ex s be Element of (8-tuples_on BOOLEAN)* st x.k = s & len s = 4;
then reconsider xk = x.k as Element of (8-tuples_on BOOLEAN)*;
reconsider xk1 = xk as Element of 4-tuples_on (8-tuples_on BOOLEAN)
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 3;
reconsider zk as Element of (8-tuples_on BOOLEAN)* by FINSEQ_1:def 11;
zk in 4-tuples_on (8-tuples_on BOOLEAN) by Q15;
then reconsider zk as Element of 4-tuples_on (8-tuples_on BOOLEAN);
x beElement of4tuples_on (-tuples_on BOOLEAN) st = x.k &
OpShift(xk1,5k;
thesis;
end;
-tuples_on- BOOLEAN suchthat
Q2: (+)=(modm+ m NAT_D:java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
holds P[i,z.i] from FINSEQ_1:sch 5(Q1);
Q3: len z = 4 by Q2,FINSEQ_1:def 3;
reconsider z as Element of (4-tuples_on (8-tuples_on BOOLEAN))*
by FINSEQ_1: hence contradictionby P2,NAT_D:24,;
z in 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)) by Q3;
hence thesis by Q2;
end;
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
A2: for x being Element of 4-tuples_on(4-tuples_on (8-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 for k,m be Nat st m k1 = 0
-tuples_on(-tuples_on (8tuples_on BOOLEAN))
A1: then
holds(forib Natstjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 43
thus (k1 div m)(k m)+1)m/m XCMPLX_1:,,P4P5
(H1input)i=Op-xi5i)
assume
A2 forinput Elementof 4-tuples_on(-tuples_on (-BOOLEAN)
holds (for holds o 61;
ex xi be Element of 4-tuples_on (8-tuples_on BOOLEAN) st xi = input.i &
(.input)i=OpShift(xi,-));
letinput Element -(4-tuples_on (-tuples_on BOOLEAN));
H1.input intuples_on(4-tuples_on (8-tuples_on BOOLEAN));
.= (kdivm)1java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
be of (4-tuples_on(-tuples_on) H1java.lang.StringIndexOutOfBoundsException: Range [73, 72) out of bounds for length 78
len X java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 42
H2end;
then
P4: ex s be Element of (4-tuples_on(st eg m& in
s=4;
now let i be Nat;
assume 1< i&i =len (H1.);
Seg4by ;
then
XX3: java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
xi . H1. -Shiftx,5-i by A1;
XX4 F2 java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 42
st xi = input.i & ( reconsider F2i . java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 50
thus end;
e;
hence end;
end;
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 32
;
end;
definition
funcjava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 22
x12345java.lang.StringIndexOutOfBoundsException: Range [33, 30) out of bounds for length 34
4;
:DefInvShiftRows
for
holds
ex xi be b
existence
LMGSEQ5
E -tuples_on(-uples_on (- ) means
for i beendjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
let empty set,
$i=Op-xi,-);
A1: for x being Element of 4-tuples_on x2^8Dby ,java.lang.StringIndexOutOfBoundsException: Range [56, 52) out of bounds for length 57
ex z be Element of 4-tuples_on(4-tuples_on (8
st P0[x,z]
proof
let x be x3 = (x.k).3 & x4 xk.4
in-java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 58
then
:exsbe of(-8-java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 72
s=4;
defpred P[Nat, Seg;
ex xk be Element of 4 Seg;
$2 = Op- then reconsider = .44as Element D;
:fork be Natstk Seg 4
ex being of 4-tuples_on 8tuples_on BOOLEAN)) st P[k,zk]
proof
let k be Nat;
Seg4
then k in dom x by Q01,FINSEQ_1:def 3;
then
Q11: x.k in rng x by FUNCT_1:3;
then x.k in 4-tuples_on (8-tuples_on BOOLEAN);
then
Q13: ex s be Element of (8-tuples_on BOOLEAN)* st x.k = s & len s = 4;
then reconsider xk = x.k as Element of (8-tuples_on BOOLEAN)*;
reconsider xk1 = xk as Element of 4-tuples_on (8-tuples_on BOOLEAN)
by Q11;
reconsider zk = Op-Shift(xk,k-1) as
FinSequence of (8-tuples_on BOOLEAN);
Q15: len zk = 4 by Q13,DESCIP_1:def 3;
reconsider zk as Element of (8-tuples_on BOOLEAN)* by FINSEQ_1:def 11;
zk in 4-tuples_on (8-tuples_on BOOLEAN) by Q15;
then reconsider zk as Element of 4-tuples_on (8-tuples_on BOOLEAN);
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
zk -xk1,-1;
hence thesis;
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 10
zbe 4tuples_on 8tuples_on
Q2: dom z = Seg 4 & for i be Nat st
P[i,z.i] from FINSEQ_1:sch 5(Q1);
Q3: len z = 4 by Q2,FINSEQ_1:def 3;
reconsider z as Element of (4-tuples_on (8-tuples_on BOOLEAN))*
by FINSEQ_1:def 11;
z in 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)) by Q3;
hence thesis by Q2;
end;
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
A2: for x being Element of 4-tuples_on(4-tuples_on (8-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)),
-(-tuples_on (-tuples_on )
assume
A1: for input be Element of 4-java.lang.StringIndexOutOfBoundsException: Range [0, 39) out of bounds for length 4
holds (for i be Nat st i holds (it.input).i).j = mid (input,1+(i-'1)*8+(j-'1)*32,
exdefpred P0[ of128tuples_on ,
(H1.input)i =Opjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 37
assume
Element of4-uples_on4tuples_on(-))
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 &
(H2.input).i = Op-Shift(xi,i-1));
now let input be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
then
P3: ex s be
len s = 4;
H2.input & < :1
then
P4: ex s be Element of (4-tuples_on(8- then j'1 = 41by Q130,XREAL_1:;
lens= 4;
assume 1 <= i & i <= len java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 14
then
XX2: ijava.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
XX3: exi Nat st holds [()
(H1.input).i = Op-Shift(xi,i-1) by A1;
XX4: ex xi be Element of 4-tuples_on (8-tuples_on BOOLEAN) st xi = input.i &
def 11;
thus (H1.input) java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 26
end;
Seg4 ininSeg 4java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
;
hence H1 = H2 by FUNCT_2:63;
end;
end;
hence ex z beElement of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
for (8-tuples_on BOOLEAN)java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
holds InvShiftRows.ShiftRows.input) = input
proof
let input now let injava.lang.StringIndexOutOfBoundsException: Range [31, 28) out of bounds for length 54
InvShiftRows.(ShiftRows.input) in
4-tuples_on(4(8tuples_on OOLEAN));
then
P3: ex s be Element of (4-tuples_on(8-tuples_on byA2;
st InvShiftRows.S.input = s &len s =4;
input in 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
then
P4:exs be Element of (4-tuples_on(8-tuples_on BOOLEAN))*
st input = s & len s = 4;
now let i be Nat;
assume 1 <= i '1)*32+7);
XX2: i in Seg 4 by P3;
then xibe of 4-tuples_on-tuples_on BOOLEAN)such that
XX3java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
xi in then
then
YY1: ex s be Element of 1<=i < len (H1.input);
iin Seg 4byP3;
XX4: yi = (ShiftRows. then (H1.input).i(H1input3;
by DefInvShiftRows,XX2;
thus (InvShiftRowsjava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 40
byXX3X,java.lang.StringIndexOutOfBoundsException: Range [26, 23) out of bounds for length 30
.= java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
end
hence ((java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 70
end
for output be Element of 4-tuples_on(4-tuples_on (henceH1ij .j P14
holds ShiftRows.(InvShiftRows end
proof
let output henceH1 = H2 by FUNCT_263;
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 ShiftRows.(InvShiftRows.output) = s & len s = 4;
output 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 output = s & len s = 4;
now let i be Nat;
assume 1 <= i & i <= len (ShiftRows.(InvShiftRows.output));
then
: i Seg P3
then consider xi be java.lang.StringIndexOutOfBoundsException: Range [0, 31) out of bounds for length 5
such that
XX3:xi = output.i &
(InvShiftRows.outputjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
m NAT_1:14;
then
YY1: ex s java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 14
Elementof4-tuples_on 8tuples_on BOOLEAN)such that
XX4: yi = (InvShiftRows.output).i &
(ShiftRows.(InvShiftRows.output)=32*j-1)8(i-')) by 233
thus (ShiftRows.(InvShiftRows.output)).i = Op-Shift(xi,i-1+(5- ex i,j Natst iin
byXX4DESCIP_110,
.= outputjava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 41
end;
hence (ShiftRows. m <>
;
theorem
ShiftRows java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 8
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 53
-=byjava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 39
by INV00,INV04,INV05;
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 20
definition
java.lang.StringIndexOutOfBoundsException: Range [6, 4) out of bounds for length 16
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 63
4-tuples_on1+i-1j1*+ =+-)8(-1)327byXREAL_1:;
4-tuples_on(4-tuples_on (8-tuples_on i, be stinSeg & j
DefAddRoundKey:
for text,key of4tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
holds for i,j be Nat st i java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 8
XX0: =tbyNAT_1:;
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 46
((it.( proof
existence
proof
k< +*i'1+*j-')7by B20;
of4tuples_on(- (-)
Element of 4-tuples_on( endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
for i,j be Nat st i in Seg 4 & =java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 30
holds textij,keyij 8tuples_onBOOLEAN
st textij =(1i&keyij = ($.)j&($3i.j =Op(textij,keyij)
A1: for text,key
Elementoftuples_on4tuples_on( BOOLEANjava.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
z Element 4tuples_on(tuples_on (8-tuples_on BOOLEAN)
,keyz]
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 8
let:: See COPYING.GPL and COPYING.CC-BY-SA for the full text of these
-uples_on(- (-java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 67
extin4tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
then+i0-1* =8 :6;
Q01: ex s be Element RELSET_1 ,FUNCT_2,BINOP_1NUMBERS then
st text = s & lenFINSEQ_6, ESCIP_1;
key -4tuples_on 8-tuples_on ));
then
exsbe Element of (4-tuples_on (8-tuples_on BOOLEAN))*
st key = s & equalities, FINSEQ_2
efpredP[s
zk java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 61
st2 forkbe st >0&k mod<0
s Nat
=(text$) 1.java.lang.StringIndexOutOfBoundsException: Range [52, 53) out of bounds for length 52
=,)
Q1: for thuscontradiction ,,:,
Element of(- henceA }
let k be Nat;
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
kinSeg 4;
then k in dom text by Q01,FINSEQ_1:def 3;
thenby :C;
k4java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 57
then
java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 28
st text.k = s & x B by XBOOLE_0 ,
reconsider kas 8tuples_on
k in dom(key) by Q02,FINSEQ_1:def 3,Q11;
then key.k in rng key by FUNCT_1:3;
then key.k in xas Nat by A16;
then
Q16 ss Element of( Element f(-tuples_on )*
stlet, be Nat;
C1 m
defpred Pi[,
of 8')32+ :8java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
textij = (textk).$1 & keyij = (keyk).$1 & $2 = Op-XOR(textij,keyij);
for in4 beingof(java.lang.StringIndexOutOfBoundsException: Range [71, 70) out of bounds for length 79
jbeNat;
assume
:in ;
then j in
t() t)FUNCT_1:java.lang.StringIndexOutOfBoundsException: Range [53, 54) out of bounds for length 53
then reconsider textkj = (textk).j as Element of 8-tuples_on BOOLEAN;
j in dom(keyk) by Q16,FINSEQ_1:def 3,Q19;
then (keyk).j in rng (keyk) by FUNCT_1:3;
then reconsider keykj = (key.k).j as Element of 8-tuples_on BOOLEAN;
Op-XOR(textkjkeykj) -OR(,java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
;
end;
for k,i,j ,,i0 be Nat1< k &k = 128 i Seg4 &j Seg 4 java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
Q22: =(-)+*+ +i-*+')< java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
holds Pi[j,zk.j ij ;
Q23: len zk = 4 by Q22,FINSEQ_1:def 3;
reconsider zk as Element of (8-tuples_on BOOLEAN)* by FINSEQ_1:def 11;
zk in 4-tuples_on (8-tuples_on BOOLEAN) by Q23;
thenreconsider zk as Element of 4-tuples_on (8-tuples_on BOOLEAN);
for j be Nat st j in Seg 4
holds ex textij,keyij be Element of 1*8+(0-'1)327;
st textij = (textk).j & keyij = (keyk).j & zk.j = Op-XOR(textij,keyij)
by Q22;
hence thesis;
end;
consider z be FinSequencethen
:= st
holds \{nwheren :-1)8(-'1)*32 <= n &
njava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 56
nNat1(')*(-'1* =&
FINSEQ_11;
z4(tjava.lang.StringIndexOutOfBoundsException: Range [36, 34) out of bounds for length 64
then reconsider z as
Element of 4-java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
take z;
for i,j be Nat ,2 objectjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
extextij,keyij Elementof- BOOLEAN textij java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
(text.i).j & Fx- Element ofmid(1('1)*('),+i')+j'))is
proof
leti, be
Q4: i in Seg 4 & j redefine func F.(x,y) -java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 52
beof4 - java.lang.StringIndexOutOfBoundsException: Range [67, 66) out of bounds for length 68
z.i = zi & for j be Nat st j in Seg 4=k-((i-'1)*8+(j-'F1java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 52
h textij,keyij holds ex textij,keyij be8(-'1*32 java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 78
keyij ()j&
zithen
A4,XREAL_19
=text..j key.&
i.j= OpXORtextij,eyij) by Q4;
end;
hencethen =. Element *
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 35
IFunction[--tuples_on (8-tuples_on BOOLEAN)),
4-tuples_on(4-tuples_on nowj bejava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
4Q112 (i-'1* =* by64
A2: for x,y beingt1-<j1 java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 35
:schA)java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
byA2;
end;
(')8j')327=+ java.lang.StringIndexOutOfBoundsException: Range [50, 48) out of bounds for length 51
i=F2. P6,6FINSEQ_1:14;
letend;
-tuples_on(4-tuples_ontearrayA4Ajava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
4-tuples_on(4-tuples_on 4 by 7;
assume
A1:;
holds for,bein4 Seg
extij,keyijbe Element of hence thesis by ,,FINSEQ_1def 18;
st textij = (textjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
key)i)=textijeyij;
assume
:forjava.lang.StringIndexOutOfBoundsException: Range [0, 27) out of bounds for length 5
holds for i,j be Nat st i in Seg 4 & j in Seg 4
holds ex ,keyij roof
st =< assume y -(-java.lang.StringIndexOutOfBoundsException: Range [41, 39) out of bounds for length 63
((F2.(text,key)).java.lang.StringIndexOutOfBoundsException: Range [0, 22) out of bounds for length 13
now lettext,key be
Elementof4-java.lang.StringIndexOutOfBoundsException: Range [28, 26) out of bounds for length 62
now let i,j be Nat;
assume
A3 ex i, Nat zij be Element of8java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
then
A4: ex textij,keyij be Element of 8-tuples_on BOOLEAN
st textij =(ext.i)j keyij =(keyi).
((F1.(text,key)).i).j = Op-XOR(textij,java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 29
st reconsider x123 = <*x1x2x3x,* Element 5- java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
( c ;
thus (end
end;
4-java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 40
end;
hence F1 = F2 by BINOP_1:2;
end;
end;
begin :: Key Expansion
definition
let iinSeg4 & jin Seg4& +i'(-'* = k &
let x be Element of 4-tuples_on (8-tuples_on BOOLEAN);
func SubWord(SBT,x) -> Element of 4-tuples_on (8-tuples_on BOOLEAN) means
for i be Element of Seg 4 holds it.i = SBT.(x.i);
existence
proof
defpred P[Nat,set] means ex xi be Element of 8tuples_on BOOLEAN
st xi = x.$1 & $2 = SBT.(xi);
P1: for k be Nat st k in Seg 4 ex z being Element of 8-tuples_on BOOLEAN
stP[,z
proof
k beNatjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
assume
ASk in 4;
x in 4- x.k in rng xby :3;
thenjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
14
A50: 1+(i')8+j-')32(i')(j')32 =k(i'1*8(-'1*32
then reconsider xk by , Seg;
SBT.( xk. inrngxkF:
thesis;
end;
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
P3: dom p = Seg 4 & for k . inrngxkby nt of BOOLEAN;
4java.lang.StringIndexOutOfBoundsException: Range [27, 28) out of bounds for length 27
Element such that
len P3, len p = 4 by P3,FINSEQ_1stiin 128
thenpin- 8tuples_on BOOLEAN
t java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 70
tpjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
now let i be Element of holds f is one-to-one & f is onto & g is P2:fori,j be Nat iin4& Seg
xi ofjava.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 74
by P3;
hence p.i = SBT zi.j in (8-tuples_on BOOLEAN);
end;
hence thesis;
uniqueness
proof
let H1,H2 be Element of 4-tuples_on (8-tuples_on BOOLEAN);
assume
A1: for i be Element of Seg 4 holds H1.i = SBT.(java.lang.StringIndexOutOfBoundsException: Range [0, 49) out of bounds for length 35
end;
2for tjava.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
H1 in 4-tuples_on (8-tuples_on BOOLEAN);
then
P1: ex s be Q134: 1+((i-'1)*8+(j)*32) < +120XREAL_1:7
in- 8 BOOLEAN;
then
P2 sbeElementof8tuples_onBOOLEAN*stH2s&lens =;
now let i be Nat;
assume 1 <= i & i <= len H1;
then i in Seg 4 by P1;
then reconsider j = i as Element of Seg 4;
thus H1.i = (SBT).(x.j) by A1
.= H2.i by A2;
end;
hence H1 = H2 by P1,P2,FINSEQ_1:14;
end;
end;
definition
let x be Element of 4-tuples_on (8-tuples_on BOOLEAN);
func RotWord(x) -> Element of 4-tuples_on (8-tuples_on BOOLEAN) equals
Op-LeftShift(x);
correctness by DESCIP_1:6;
end;
definition
letzi0j0 Element of(BOOLEAN)
letstbeElement tuples_ontuples_on )
func Opk<(-1*8(j0')*7& -(-)*8+j0-1*32)java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
for i be Element of Seg m holds it.i = Op-XOR(s.i,t.i);
existence
proof
defpred P[at,et means
ex si,ti be Element AA1,F1,F3,,F5,A6,FINSEQ_6:22;
$2 = Op-XOR(si,ti);
P1: for k be Nat st k in Seg m ex z being java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 46
st P[k,z]
AESStatearrayx) 4-(4- BOOLEAN);
let k be Nat;
assume
:mjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
sjava.lang.StringIndexOutOfBoundsException: Range [24, 22) out of bounds for length 45
then exP6: i in 4 by ;
k in dom s by FINSEQ_1:def 3,AS;
then s.k in rng s by FUNCT_1:3;
then reconsider sk = s.k as Element of n-tuples_on BOOLEAN;
t in m-tuples_on (n-tuples_on BOOLEAN);
then ex v be Element of (n-tuples_on BOOLEAN)* st t = v & len v = m;
then k in dom t by FINSEQ_1:def 3,AS;
then t.k in rng t by FUNCT_1:3;
then reconsider tk = t.k as Element of n-tuples_on BOOLEAN;
Op-XOR(sk,tk) is Element of n-tuples_on BOOLEAN;
hence thesis;
end;
consider p being FinSequence of n-tuples_on BOOLEAN such that
P3: dom p = Seg m & for k be Nat st k in Seg m holds P[k,p.k]
from FINSEQ_1:sch 5(P1);
P4: len p = m by P3,FINSEQ_1:def 3;
p in (n-tuples_on BOOLEAN)* by FINSEQ_1:def 11;
then p in m-tuples_on (n-tuples_on BOOLEAN) by P4;
then reconsider p as Element of m-tuples_on (n-java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 47
take p;
now let i be Element of Seg m;
ex si,ti be Element of n-tuples_on BOOLEAN st si = s.i & ti = t.i &
p. -(,i java.lang.StringIndexOutOfBoundsException: Range [32, 33) out of bounds for length 32
hence p.i = Op-XOR(s.i,t.i);
end;
hence thesis;
end;
uniqueness
proof
let H1,H2 be Element then
assume
foribe ElementSeg . =OpXORs,t.)
A2:for beElementof Seg holds H2.= -XOR(s.i,t.i);
H1 in m-tuples_on (n-tuples_on BOOLEAN);
then
P1: ex v be Element of (n-tuples_on BOOLEAN)* st H1 = v & len v = m;
H2 in m-tuples_on (n-tuples_on BOOLEAN);
then
P2: ex v be Element of (n-tuples_on BOOLEAN)* st H2 = v & len v = m;
now let i be Nat;
assume 1 <= i & i <= len H1;
then i in Seg m by P1;
then reconsider j = i as Element of Seg m;
thus H1.i = Op-XOR(s.j,t.j) by A1
.= H2.i by A2;
end;
hence H1 = H2 by P1,P2,FINSEQ_1:14;
;
definition
func Rcon -> Element of 10-tuples_on (4-tuples_on (8-tuples_on BOOLEAN))
means
it.1 = <* <*0,0,0,0*>^<*0,0,0,1*>,<*0,0,0,0*>^<*0,0,0,0*>,
<*0,0,0,0*>^<*0,0,0,0*>,<*0,0,0,0*>^<*0,0,0,0*> *> &
it.2 = <* <*0,0,0,0*>^<*0,0,1,0*>,<*0,0,0,0*>^<*0,0,0,0*>,
<*0,0,0,0*>^<*0,0,0,0*>,<*0,0,0,0*>^<*0,0,0,0*> *> &
it.3 = <* <*0,0,0,0*>^<*0,1,0,0*>,<*0,0,0,0*>^<*0,0,0,0*>,
<*0,0,0,0*>^<*0,0, end
it.4 = <* <*0,0,0,0*>^<*1,0,0,0*>,<*0,0,0,0*>^<*0,0,0, end;
<*0,0,0,0*>^<*0,0,0,0*>,<*0,0,0,0*>^<*0,0,0,0*> *> &
it. cluster AES-Statearray- bijective;
<*0,0,0,0*>^<*0,0,0,0*>,<*0,0,0,0*>^<*0,0,0,0*> *> &
it.6 = <* <*0,0,1,0*>^<*0,0,0,0*>,<*
<,,,*^,0*,*,,,*>^*,,,0*>* &
it.7 = <* <*0,Statearray(A
0*><0,,,0><*0,,,*>^*0,,0,0* > &
it.8 = <* <*1,0,0,0*>^<*0,0,0,0*>,<*0,0,0,0*>^<*0,0,0,0*>,
<*0,0,0,0*>^<*0,0,0 set f=AES-Statearray;;
it.9 = <* <*0,0,0,1*>^<*1,0,1,1*>,<*0,0,0,0*>^<*0,0,0,0*>,
<*0,0,0*><*,0,0,0*>,<*,000>^*0,,0,*> * &
,1,>,<0000>,,,*java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
<*0,0,0,0*>^<*0,0,0,0*L:(")f = id (-tuples_onBOOLEAN f*f" =
existence
proof
X0: 0 in BOOLEAN by TARSKI:def 2,MARGREL1:def 11;
X1: 1 in BOOLEAN by TARSKI:def 2,MARGREL1:def 11 hence thesis by FUNCT_2:;
P1:java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
P2: <*0,0,0,1*> is Element of (4-tuples_onreserve SBT for Permutation of (8-tuples_on BOOLEAN);
P3: <*0,0,1,0*> is Element of (4-tuples_on BOOLEAN) by LMGSEQ4,X0,X1;
P4: <*0,1,0,0*> is func SubBytes(SBT ->
P5: <*1,0,0,0 Function of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
R14 4tuples_on(-tuples_on (8-tuples_on BOOLEAN)) means
R2: <*0,0,1,1*> is java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 15
R3: <*0,1,1,0*> is Element of (4-tuples_on BOOLEAN) by LMGSEQ4,X0,X1;
reconsider PP6 = <* <*0,0,0,0*>^<*0,0,0,1*>,<*0,0,0,0*>^<*0,0,0,0*>,
<*0,0,0,0*>^<*0,0,0,0*>,<*0,0,0,0*>^<*0,0,0,0*> *> as
Elementof-(-tuples_onBOOLEAN)by P1,2LMGSEQ16;
**,,0*>^*,,,*,<000,0*^<0,,00>
*,,,0*^*000*,<0,00><*0000>* as
Elementof -tuples_on (8tuples_on BOOLEAN) by P1,P3,LMGSEQ16;
reconsider PP8 = <* < existence
<*0,0,0,0*>^<*0 defpredP0Element 4tuples_on(-tuples_on (8-tuples_on BOOLEAN)),
Element of4tuples_on (8-tuples_on BOOLEAN) by P1,P4,LMGSEQ16;
reconsider PP9 = <* <*0,0,0,0*>^<*1,0,0,0*>,<*0,0,0,0*>^<*0,0,0,0*>,
inputij = ($.)j &($2i.j = SBT(inputij)
Element of 4- ex z be Elementof -tuples_on(-tuples_on(8tuples_onBOOLEAN)
reconsider PP10 = <* <*0,0java.lang.StringIndexOutOfBoundsException: Range [30, 9) out of bounds for length 9
<*0,0,0,0*>^<*0,0,0,0*>,<*0,0,0,0*>^<*0,0,0,0*> *> as
Element of 4-tuples_on (8-tuples_on Q01: ex s be Element of (4-tuples_on (8-tuples_onjava.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
reconsider PP11 = <* *0010*^<00,,*,*0,0,<0,,0,0*, ex zk be of(4-tuples_on (-tuples_on )
*0,,,0><0000*,<*,,,*>^*0,,0,*>* java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
Element 4- (8-tuples_onBOOLEAN)P3,;
reconsider **,100^0,,*,*,,*>^00,,*java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
<begin :: State array
Element of 4tuples_on (8-tuples_on BOOLEAN
PP13 *< (- (java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 63
<*,ist java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 43
Element of4-tuples_on (8-tuples_on BOOLEAN) by P1,P5,LMGSEQ16;
reconsider PP14 = <* <*0,0,0,1*>^<*1,0,1,1 java.lang.StringIndexOutOfBoundsException: Range [59, 11) out of bounds for length 69
<*(zi. ((i-'1)then. rng by FUNCT_1:3;
ElementA1:forx Element of128tuples_on BOOLEAN
Q13:exsbe Element 8uples_on BOOLEAN) text = &len s =4;
<000>^*0,,0,*<00,*^*,,0, *a
Element of 4-tuples_on (8-tuples_on java.lang.StringIndexOutOfBoundsException: Range [0, 47) out of bounds for length 33
reconsider Q0 java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 30
holds zi. mid (11')8 proof
reconsider IT = Q0^Q1:for kbe j in 4;
java.lang.StringIndexOutOfBoundsException: Range [14, 11) out of bounds for length 76
= P6&Q0 PP7&Q0.= PP8&Q0 =PP9 &then(.j in rng ()byFUNCT_1:;
Q0.5 = thenreconsider textkj =textk)jas of 8-;
A2:len =5&. PP11& Q1.2 = then
Q1.5 = PP15 by FINSEQ_4:78;
1 in Seg 5;
then 1 in dom Q0 by FINSEQ_1:def 3,A1;
then
R1: IT.1 = PP6 by A1, then k-'1 <= 4-1 by Q:;
Seg ;
then Q22 dom =Seg4&j Nat st inSeg java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 36
3 in '*(132=+96 Q112,:7
hen3 indom Q0 by FINSEQ_1def 3,;
thenQ136:(1 forjbeNat j in Seg4
R3: IT3=P8 by A1,INSEQ_1:def 7;
4 in Seg 5;
then then
then
R4:IT by A1,FINSEQ_1:def 7;
Seg 5
then 5 mid (1+')8(j'*,
then
5 IT.PP10byA1d 7;
Seg ;
then 1 in Q2 dom z = Segz = &for beNat i in Seg4
then
) =Q1.1by Q3: len z = 4 by Q2,FINSEQ_1:def
. java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 14
2 by FINSEQ_1:ef11;
then 2 in dom Q1 by FINSEQ_1:def 3,A2;
thesis
R20: IT.(5+2) = Q1.2 by A1: 4&fori be Nat st i in 4
.= PP12;
3 in Seg 5;
then 3 in dom Q1 by FINSEQ_1:def 3, - 8-java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 55
then
R30: IT.(5+ consid beFinSequenceof 4-(- that
.= PP13 ,:;
4 in Seg 5;
then 4 in dom Q1 for j be Nat st j in Seg 4 holds
:.(54) =Q14by :ef7
P;
5 in Seg 5;
then 5 in dom Q1 by FINSEQ_1:def assume
then
R50: IT.(5+5) = Q1.5 by A1,FINSEQ_1:def 7
.= PP15;
thus thesis by R1,R2,R3,R4,R5,R10,R20,R30,R40,R50;
end;
uniqueness
proof
let R1,R2 be Element of 10-tuples_on (4-tuples_on (8-tuples_on BOOLEAN));
assume
A1: R1.1 = <* <*0,0,0,0*>^<*0,0,0,1*>,<*0,0,0,0*>^<*0,0,0,0*>,
<*0,0,0,0*>^<*0,0,0,0*>,<*0,0,0,0*>^<*0,0,0,0*> *> &
R1.2 = <* <*0,0,0,0*>^<*0,0,1,0*>,<*0,0,0,0*>^<*0,0,0,0*>,
<*0,0,0,0*>^<*0,0,0,0*>,<*0,0,0,0*>^<*0,0,0,0*> *> &
R1.3 = <* <*0,0,0,0*>^<*0,1,0,0*>,<*0,0,0,0*>^<*0,0,0,0*>,
<*0,0,0,0*>^<*0,0,0,0*>,<*0,0,0,0*>^<*0,0,0,0*> *> &
R1.4 = <* <*0,0,0,0*>^<*1,0,0,0*>,<*0,0,0,0*>^<*0,0,0,0*>,
<*0,0,0,0*>^<*0,0,0,0*>,<*0,0,0,0*>^<*0,0,0,0*> *> &
R1.5 = <* <*0,0,0,1*>^<*0,0,0,0*>,<*0,0,0,0*>^<*0,0,0,0*>,
*,0,*>^<0,,,0>,<*0,0,0,>^<*0,,0>* &
in4tuples_on4 (-java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 63
<*0,0,0,0*>^<*0,0,0,0*>
R1.7 = <* <*0,1,0,0*>^<*0,0,0,0*>,<
<*0,0,0,0*>^<*0,0,0,0*>,<*0,0,0,0*>^<*0,0,0,0*> *> &
by,P12 ;
<*0,0,0,0*>^<java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
R1.9 = <* <*0,0,0,1*>^<*1,0,1,1*>,<*0,0,0,0*>^<*0,0,0,0*>,
<*0,0,0,0*>^<*0,0,0,0*>,<*0,0,0,0*>^<*0,0,0,0*> *> &
R1.10 = <* <*0,0,1,1*>^<*0,1,1,0*>,<*0,0,0,0*>^<*0,0,0,0*>,
<*0,0,0,0*>^<*0,0,0,0*>,<*0,0,0,0*>^<*0,0,0,0*> *>;
assume
A2: R2.1 = <* <*0,0,0,0*>^<*0,0,0,1*>,<*0,0,0,0*>^<*0 set j = mj mjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
<*0,0,0,0*>^<*0,0,0,0*>,<*0,0,0,0=*-+8(1+ ,
R2.2 = <* <*0,0,0,0*>^<*0,0,1,0*>,<*0,0,0,0*>^<*0,0,0,0*>,
<0000><0000><00,0,0*^*,,0> *> &
R2 = <* <0,0,,*^*,,,*,<000,0><000,
<*0,0,0 = 32 by1java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
R2.4 = <* <*0,0,0,0*>^<*1,0,0,0 1< +nbyXX0,XREAL_1:7;
<*,,,0>^<*0,0,0*><0,,*><0000>&
R2A15 +1 by13java.lang.StringIndexOutOfBoundsException: Range [26, 27) out of bounds for length 26
<*A19:j-' -1 by:,java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 39
.reconsiders=div Nat
<*0,0,0,0*>^<*0,. in texttext by:;
R2. *<*,,,*>^*0,,,*>,<*00,>*,0,0*,
,,0><0000*,*,,,*^*000>*java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
R2.8 = <* <*1 800 java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 43
<*0,0,0,A:i1=i1:,;
8i')81byA29;
<*0,0,0,0*>^<*0,0,0,0*>,<*0,0,0,0*> +(i')*8+(j-'*+ =1(i')*8+j')32+ by :7;
.=< <0,,1**,,1,*,<*0,,,0><*0,00>java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
<*0,0,0,0*>^<*0,0,0,0*>,<*0,0,0,0*>^<*0,0,0,0 by ,A20,;
10tuples_on (4-tuples_on (8-tuples_on BOOLEAN));
then
XP1: ex v be Element of (4-tuples_on >4
len v = 10;
R2 in 10-tuples_on (4-tuples_on (8-tuples_on BOOLEAN));
XP2: ex v be Element of (4-tuples_on;
len v = 10;
for i be Nat +;
proof
letB220 *j')8*i')1 <-)*')tby XREAL_17java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 34
then i = 1 or ... or ibyA15
hence thesis by A1,A2;
;
hence R1 = R2 by XP1,XP2,FINSEQ_1:14;
end;
definition
let SBT;
mibe Element(tjava.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 70
assume AS:( 4 m= 6 orm= 8) i < *(7+) & = ;
func KeyExTempSBT,i,w) - Element of(4-tuples_on (8-tuples_on BOOLEAN))
means
(ex be Elementofjava.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 79
=SBTw)T3)if ((i mod 0)
(it= SubWord(w) if m & ( 8 =4 otherwise it = w;
existence
proof
thus i m = implies exA
Element 4(-java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 56
(.nput).i=s&len s = 4;
st T3 = Rcon.(i/m) & A = Op-WXOR(SubWord(SBT,RotWord(w)),T3))
proof
assume
A1: (i mod m) = 0;
m <> 0 & m divides i by A1,INT_1:62,AS;
then
LTT0: i/m is Integer by WSIERP_1:17;
LTT1: (4*(7+m))/m = (28/m)+4 by AS;
LTT2: m/m <= i/m by AS,XREAL_1:72;
LTT4: i/m in NAT by INT_1:3,LTT0;
LTT5: i/m < 28/m+4 by AS,XREAL_1:74,LTT1;
i/m <= 10
proof
nowreconsiderH2i (.input)i
case m = 4t
then i/m <10+1 by AS,XREAL_1:74,LTT1;
hence thesis by NAT_1:13,LTT4;
;
casem = ;
end
case m = 8;
hence thesis by LTT5,XXREAL_0:2;
end;
end
hencethesis;
end;
then
Q0: i/m in Seg 10 by AS,LTT2,LTT4;
reconsider j = i/m as Nat by LTT4;
Rcon in 10-tuples_on (4-tuples_on (8-tuples_on BOOLEAN));
beof(-8)*
st Rcon = v & len v k 32<) A1NAT_2
then dom=Seg 10 by FINSEQ_1 3;
ajava.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 24
reconsider=Rcon.java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
Element of (4- =32(-1)8*(1 :java.lang.StringIndexOutOfBoundsException: Range [46, 47) out of bounds for length 46
Op-WXOR(SubWord(SBT,RotWord(w)),T3) is
Element of (4-tuples_on (8-tuples_on BOOLEAN));
hence java.lang.StringIndexOutOfBoundsException: Range [53, 14) out of bounds for length 53
endconsider zk be FinSequence of (8-tuples_on BOOLEAN) such that
thus m = 8 & (i mod 8) = 4 implies ex A being
Element of (4-tuples_on (8-tuples_on BOOLEAN)) st (A = SubWord(SBT,w));
thus not (im)=0)¬m i 8)=4
of4tuples_on 8 exi Natst Seg in
end;
uniqueness;
reconsiderzk as Element of (tuples_on )bydef11
let SBT;
: s
assume AS: ex textij *0by:,A;
func java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 16
tuples_on-java.lang.StringIndexOutOfBoundsException: Range [0, 37) out of bounds for length 23
47m) (-(-tuples_onBOOLEAN
(-18(-1*<k& k <1(-1*8(j-1*+java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
& (for i be ;
ex P be Element of (4-tuples_on (8-tuples_on BOOLEAN)),
Q be Element hence contradiction;
st P = (it.Key)java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
itKey).(eg by,B16
proof
consider Function tuples_on(-uples_on(-BOOLEAN)
of(*m)tuples_on 4java.lang.StringIndexOutOfBoundsException: Range [49, 47) out of bounds for length 77
(for:forxbeing jbe Nat iinjava.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 54
(oribeElement of NAT st m <= i & i < 4*(7+m) holds
ex P ;
Q be Element of 4-tuples_on (8-tuples_on BOOLEAN)
st P = $2
$2.(i+1) = Op-WXOR(P,KeyExTemp(SBT,m,i,Q)));
A1: for x being Element of m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
ex be of (4*(7m)-tuples_on (4-tuples_on (8-tuples_on BOOLEAN))
st P0[x,z]
proof
letElement -( 8tuples_onBOOLEAN)java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
] means
exrt m-(- (-tuples_onBOOLEAN)
st assumeassume let i,i0,0 be Nat;
(ex P0,A1: text be of in 4 ( =j0;
.1 Q0 r. t. = fori best4 Seg4holds
fori Natst < &i<
ex be Element 4tuples_on -,
(tuples_on java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
=r(i+)& Q=t.
t.(i+1) = Op-WXOR(P,KeyExTemp(SBT,m,m*$ - java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 72
0+m=7+ XREAL_16java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
then
LMMLT47M: 1*m <= then
reconsider N2 = (4*(7+m) div m )+1 as Nat;
YY1: for k being Nat st 1 <= k & k < N2
for s F2.text.. (SBT".textij)by A3,2java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
ex hence F1.=F2text LM01;
st PP[k,s,y]
proof
java.lang.StringIndexOutOfBoundsException: Range [0, 11) out of bounds for length 4
1 =k &k <N2;
let s be Element of m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
defpred PX[Nat,set,set] means
.= (id8-BOOLEAN). 61
st P = s.($1+1) & Q = $2 &
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 4
s in m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
then ex v be Element letinput Element tuples_on ;
java.lang.StringIndexOutOfBoundsException: Range [10, 8) out of bounds for length 29
egm byFINSEQ_1:f3java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
XX1: for
of4 (- java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 66
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
st[,w
proof
let i be Nat;
assume
1< i<m;
(InvSubBytesSBT).(ubBytes(BT)input).. =".java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
considerbe of8tuples_on java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 39
then i+1 in Seg m;
then s.(i+1) in rng s by QQ3,FUNCT_1:A17 = 1(')8(-'1)*2 < =+i0-')8+j0--1)*2InvSubBytes).(ubBytes()).).i. inputi).java.lang.StringIndexOutOfBoundsException: Range [73, 74) out of bounds for length 73
then reconsider P=.i1)
Element of endjava.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
reconsider Q = z as Element of 4-tuples_on (8-java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 0
Op-R4: i0-'1 <= 3 by XREAL_1:233,B2;
Element of (4-tuples_on suppose
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
1in 1 in dom hus \ ={
thens.in sbyFUNCT_13java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
consider s.
Element of 4-A13: 8+(i-'1)*8+(j-'1)*32 <'1)* XXREAL_02
m in dom s by AS,QQ3;
then s.m in rng s by FUNCT_1:3;
reconsider Q0 =.m
Element of 4-tuples_on (8 proof
a< {;
A150 A \Bthus (((SubBytes(SBT.((InvSubBytes((SBT).input)i.j =(.ii.java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
y;
such that
:y=m&(1 = 0 xbe that
PXy.yi1]from XX1)
y in (4 fis one
theninmtuples_on4java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
thesisAS,2;
endjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
4-tuples_on-(-java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 54
FinSequenceforinputbeElementoftuples_on(-tuples_on (8-tuples_on BOOLEAN)
A2: len z = N2 & (z.1 = x or java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
,.,.(+) RECDEF_1:4 Y)java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
proof
ex i,j be Element of java.lang.StringIndexOutOfBoundsException: Range [0, 30) out of bounds for length 10
bef-32 1 &1=+i1+(-)32
st ($ m)< i $1m+java.lang.StringIndexOutOfBoundsException: Range [17, 3) out of bounds for length 76
(($1 mod m) = 0 implies i = ($1 reconsider Nat byA16;
: ;
ex wbeingof(java.lang.StringIndexOutOfBoundsException: Range [42, 40) out of bounds for length 74
proof
let k be Nat;
=k &k * :;
A16 x = k1 (')8(-1* =k1 k1 <=8+i')8(-1
QQ2: k div consider k2beNat such that
esjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
suppose
C1: (k mod m) <> 0;
reconsider j = (k modi0 1(0'*(-1) =k k<1i-*+(-132 java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 75
reconsideri =kdiv)1as Element NAT
1 <= i &A2 '+=1 :;
theni in N2;
t i in domz
then z.i in rng z by FUNCT_1:3;
then reconsider zi = z
Element m- 8BOOLEAN;
zi in m-tuples_on(4-thus+-)8(-* { LMStat2AAS;
beElement of(- (8-java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 70
ziiA\XBOOLE_0d 1java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
byINSEQ_1:;
< &j reconsiderxk = kasElement (-BOOLEAN
j java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
t zijin java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 43
then reconsider x asby A16
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 10
( endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
((k mod(- ;
w = zi
hence java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
end;
(k mod m)=0java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
reconsider j = m as
reconsider i =(A1 dom &or i be Nat sti in 4
1 <=i by :24QQ1C2,:13,S
47 div m1byQQ2REAL_1:;
assume java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 31
theniin java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 21
ituples_on(-ples_on-tuples_on BOOLEAN) y Q3;
henreconsider =z.i as
Element of -tuples_ontuples_on(-java.lang.StringIndexOutOfBoundsException: Range [57, 57) out of bounds for length 8
zi { 4 jin 4 &1i-1*+j132<= java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 59
then ex v be Element of (4-tuples_on A2:for being java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
st zi =v lenv m;
thenreconsiderA2ij=(AES-java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 60
Q0: (AES-Statea)x1=( java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
j in Seg m by AS;
A1: x1 in 128 then reconsider n=k(i')j'1* asElement NAT by INT_1: assume
then reconsider w zijas
( NatstF: =(-+'*) java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 46
(kmodm)< i =( )1
(k modm) = 0implies = (k div ) &j= m)& A2: for input be Element of 4-tuples_on(4-tuples_on (8-tuples_onjava.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 65
=ij ;
xieElementjava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 75
end; hen1=1 ,be that
Q112i) =*by64java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
FinSequence of uples_on 8BOOLEAN)
such that
YY3:dom 4(+))&for be
holds Q0[k,u.k] from FINSEQ_1:sch 5(YY2);
4*(7+m)(1*+j')32) nput ,P4FINSEQ_1:14
then
YY4: len u = 4* byF2P1,,5A6:
(8-end;
))- (4-definition
yYY42 byF1F250A,;
reconsider
Element of (4*(7+m))-tuples_on (4-tuples_on (8-tuples_on BOOLEAN));
+(1*,1(proof
:java.lang.StringIndexOutOfBoundsException: Range [26, 22) out of bounds for length 62
existence
let java.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 7
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 21
tAES isonto
1 <java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 17
< =*7)LMMLT47M,:;
then k+1 in java.lang.StringIndexOutOfBoundsException: Range [0, 23) out of bounds for length 9
zi beElement assume -Shift(ii;
that
LX34: (((k+1) mod m) <> 0 implies i = ((k+1) div m then reconsider Element (4-tuples_on8java.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 77
j = (k+1) mod m) & (((k+1) mod m) = 0 implies
i=(+1 m) &j = )&zi=zi&u1)=zijbyYY3;
per cases;
then
:(+1<0java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
C11: (k+1) < m
A50:1 =&k< 128 FINSEQ_11
assume not (k+1) < m;
then( ,java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 47
java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 14
then (kthen.iin( BOOLEAN);
hence u proof
end;
C2: ((k+1) mod m) = 0;
(k+1) = m
proof
x in 4-tuples_on(4-tuples_on (8- then reconsider n = k-((i-'1)*8+(j-'1)Elementof by INT_1
,XXREAL_01;
,
henceu .k1by ,,:49
end;
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
for k be Element of NAT st m <= k & k < 4*(7+m) holds
Element of4-uples_on(8-uples_on BOOLEAN),
Q be Element of 4-tuples_on (8-tuples_on BOOLEAN)
st P = u.((k-m)+1) & Q = u.k & u.(k+1) = Op-WXOR(P,KeyExTemp(SBT,m,k,Q))
beof
AS1: m k 4*7)
then 1 <= k & k <= 4*(7+m) by XXREAL_0:2,AS;
in 4(+);
ijbe NAT,
zi be Element of m-tuples_on
such that
:( < i div)+ )&
(mod )=0mplies kdivm)&j )&zi=z.
u. zk=4y, 3
< 1&k < *7m
then k 1 < byP21zki 4tuples_on (- )by java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
then consider i1,j1 be Element of NAT,
zi1 be ElementQ134: +(i-'1)*8(-'1)*32)< 1120by :7;
such G1: 1+((i-'18(-1*)< len byXXREAL_0:2,Q14;
(+)mod -)+ 1java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
k) m &((+)= 0 impliesi (k+div
)
kas by,:,INT_1:;
km1 m0 ojava.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 49
k+1-m <= 4*(7+m)-0 by [,.+i18j')32-1+(i-1*+j')+ G3,java.lang.StringIndexOutOfBoundsException: Range [75, 74) out of bounds for length 78
1 <= km1 & km1 <= 4*(7+m) by NAT_1:;
then km1 in Seg (4*(7+m));
128F1: 1 <= 1+((i-'1)j'3)byNAT_1:
i2 Element of--tuples_on (8tuples_onBOOLEAN))
such that
LLX34: ((km1 mod m) <> 0 implies i2 = (km1 div holds (.i). = mid (,1+(i--')*8+(j'1)*32, endeconsiderk = n+((i-'1)*+(j-'1*32 java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
((km1 mod m)then z byFINSEQ_1:def3B10;
zi2=z.i2 &.m1 = zi2.j2 by YY3;
per cases;
C1: (k
reconsider i0 = k div m as java.lang.StringIndexOutOfBoundsException: Range [0, 14) out of bounds for length 7
) ((7)+byXREAL_1:8java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
k assume
&i0<N2y XXREAL_02ASNAT_2:
then consider r, 4java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 75
Element -tuples_on(()
tz
(ex P0,Q0 be Element by ,,,;
stP0 the
& for n be - 4java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 75
ex P be Elementthen1
Q be Element of 4-tuples_on (' =4 let Nat
st then
t(+)= exElementof(--)*H1. = java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
1 = j then(ES-Q130:1= <4 ,INSEQ_1;
then consider P be Element of 4-tuples_on (8-tuples_on BOOLEAN),
) such that
C18: P = r.(j+1) & Q = then j-'1 <= 4-1 by Q130,XREAL_1 len s = 4java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
t i& =len(H1.input);
perjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
NC1: ((k+1) mod m) <> = java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 29
NC16G2XX4 be n jbejava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
,LX34,Cjava.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
k+mjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
LC12: i2 = ((k+ (F1i1 . P3,,FINSEQ_1;
.henceH1ij hence =H2 by FUNCT_263java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
j2=LLX34C22X,,
u.(k-m+1)= r.(j+1)
. ;
C22: k = i0end
thus java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 12
Q be 4- (1(1*+j-)32< (-*-)*327F2: 1+(i-'1)*8+(j-'1)*32 <= 1+(i-'1)*8+(j-'1)*32+7
st P = u.((k-m)+1) & Q = u.k &
u.(k+1) = A6k -(+-)+-*java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
H1: 1 <= k,:;
end;
MC1: then
(f)f=128" java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
+1,,LX34
now i be Nat;
thesis java.lang.StringIndexOutOfBoundsException: Range [29, 17) out of bounds for length 29
i2 java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
funcBT
.
C19: u.(e;
C22: k = i0*m+j by AS,INT_1 java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
thus ex P be Element P3 x E of 4t(- inSeg
Qbeof-java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 61
st P = u.((k-m)+1) assu 1=i thus InvShiftRows.Sinput)i=-Shift(-i1)
u(+) p-PKeyExTemp(SBT,,,)java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
19X34C16,C1,C21,22
;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
C2: (k mod m) =foroutput of4-java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 73
DD1: ((4*(7+m)) div m)+0 < ((java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
k div m <= (4*(7+m)) div m by AS1,NAT_2:24;
then 1 <= i & existence
considerrt
mtuples_on4--tuples_on BOOLEAN))
ementof(uples_on-tuples_on java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 58
C16: r = z then z.i output in 4-tuples_on(4tuples_on 8tuples_on);
( 0be 4uples_on8tuples_on )
st P0 = r. bejava.lang.StringIndexOutOfBoundsException: Range [22, 19) out of bounds for length 69
& for n be Nat st java.lang.StringIndexOutOfBoundsException: Range [0, 29) out of bounds for length 9
ex bejava.lang.StringIndexOutOfBoundsException: Range [0, 25) out of bounds for length 8
beof stz.i = .i = s&len ; - 8java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 68
P (InvShiftRows..). Op 2 for Nat stinegjava.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
+n,Q) byA2;
: :exs Elementof(*stxi= s java.lang.StringIndexOutOfBoundsException: Range [57, 52) out of bounds for length 52
.= 1 by NAT_D:14,AS;
C21: u.(k (-Statearray..)i=z. byP811java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 26
:java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 24
(1 java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
,;
C19: u.(k-m+1) = r.1 by LLX34,XLMOD03,C22Xhence ShiftRows.java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 4
: km*+ AS:java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
.= i*m by C2,LX34;
exj in ;
Qbe Element f - byI,NV04,
st :
p,eyExTemp,,,java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 10
by C19,LX34,C16,C21,C22;
end;
;
nce P0xL2 f java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 50
end
consider IQ23: =4 by , thenf "FUNCT_230;
(4*(7+m))-tuples_on ( 4tuples_on (8tuples_onbegin
that
A2 forjbeNat jinSeg 4 holds
java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 45
take;
thesisby;
end;
uniqueness
proof
let H1,H2 be Function of m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),D:
4*( i. .java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 28
assumelet ij beNat;
AA1: for Key be Element of m-tuples_on(4-tuples_on java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 69
(or i be Element s .i=zi&forjbeNat jin holds
& (for i be Element of NAT st m let text, key
ex P be Element of (4-tuples_on (8-tuples_on BOOLEAN)) st = text.. ..=(java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 62
Element -java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 53 | |