Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


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

 beElement of4-uples_on(-tuples_on(8tuples_on BOOLEAN));
      ARYTM_1, FUNCT_2, FINSEQ_2, NAT_1, MARGREL1, ZFMISC_1, SUBSET_1, NUMBERS,
    ,t -java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 61
 notations TARSKI, XBOOLE_0, then 8+(i0-'1)*8+(j0-'1)*32 32(-1* XREAL_1:6;
      ,PARTFUN1  BINOP_1, CARD_1, java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 10
      XXREAL_0 NAT_1, INT_1, NAT_D, FINSEQ_1, FINSEQ_2, MARGREL1, FINSEQ_4,
      FINSEQ_6DESCIP_1java.lang.StringIndexOutOfBoundsException: Range [25, 26) out of bounds for length 25
 constructors RELSET_1, FINSEQ_4, +j- in4-java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 60
 registrations FINSEQ_1, RELSET_1 then(-')32then
  java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 67
java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 52
  FINSEQ_1 ;
 theorems TARSKI      thus /\ B={
      NAT_1, INT_1, FINSEQ_1      
      RFINSEQeassumed P 
      WSIERP_1, XCMPLX_1, FINSEQ_3;
 schemes FUNCT_2, FINSEQ_1, NAT_1, BINOP_1, RECDEF_1;

begin :: Preliminaries

theorem XLMOD02::x  def 1;
 ,mst  0()mod >0
  holds (k+1) mod m = (k mod m)+1
proof
  let k,m be Nat;
  assume
C1: m <>  holdc    
  (A16:    x = k1 & 1+(i-'1)*8+(j-'1)*32 <= bjava.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 52

P1: (k mod m)+1-1 <= m-1 by java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 15
P2: (k+1) mod m = Q1  kjava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 53
  k mod m < m-1
  
    assume not k mod m 
    then (k+1) mod m =      Element 4java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 20
      .= 0 by INT_1:50;
    hence contradiction by C1;
  end;
  then       proof
   k1 modm  k m)1 NAT_D:,;
end;

java.lang.StringIndexOutOfBoundsException: Range [6, 4) out of bounds for length 21
  for k,m be       then i')<(i0-1  14P2P4        assume
proof
  let k,m be Nat;
  java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 43
C1: m >   (+)mod  <> 0;< 0
  Q11:    k in Seg4;
    .= ((k+1) div m        (i-1+) (') by :;
  then
P1: ((k+1) div m)*m+(k mod m)-(k mod m) = (k div mtjava.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
  INT_1,java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
  thus (-)+1)32+java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 57
    then
end;

theorem A14  (-java.lang.StringIndexOutOfBoundsException: Range [0, 13) out of bounds for length 12
      :  beo8java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 49
proof
  let km Nat;
    ((')1* = (-1*  java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 51
C1: m
  then (k mod m)+1 <= m by NAT_D:1,NAT_1:A13:(i0-1*++(0-')*32<= (i-'         PiNatset]means
  then
P1: (k mod m)+1-1 <= m-1 by ex textij,keyij be Element8-)32by XREAL_1java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
P2: (k+1) mod st  java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 79
  assume not k mod m = m-1;
  then k mod m < m-1 by XXREAL_0:1,P1;
  k  +1<m-11     forbe st  in4 - java.lang.StringIndexOutOfBoundsException: Range [79, 78) out of bounds for length 79
  hence contradiction by P2,NAT_D:24,C1;
end;

theorem XLMOD01X:
  for k, Nat  m <> java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 19
  holds (k+1) div m A150     A /BbXBOOLE_0defproof
proof
  let k,m be Nat;
  assume
:xinA& xin Bby            Nat
  then
P3: k mod m = m-1 by XLMOD02X;
P4: k+1 = ((k+1)  consider k1 be Nat suchthat
    .= ((k+1) div m)*m by C1;
P5: k = (k div m )*m+(k mod m) by INT_1:59,C1
A16:   x = k1 &1(-'1)819 j in Seg4;
  thus   ;
    .= (( considerk2 be Natsuch that
java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 4

theorem XLMOD03:
  for k,m be Nat holds (k-m) mod m = k mod m
proof
  let k,m be Nat;
  thus (k-m) mod m = (k+m*(-1)) mod m
    .=hentextk.j  rng(extk)by FUNCT_13java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
end;

theorem XLMOD04:
  for k,m be Nat st m <> 0 holds (k-m) div m = (k div m)-1
proof
  let k,m be Nat;
  assume
AS: m <> 0;
  thus (k-m) div m = (k+m*(-1)) div m
    .= (k div m)+-1 by AS,NAT_D:61
       . kdiv m)1java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 75
end;

definition
   , be Nat X, beexbeoftuples_onBOOLEAN st =
  let F be Function of X, m-tuples_on(n-tuples_on D);
  let x bek <=1+i-18(j-'1)327by LMStat0P,;
  redefine func . >      mid (xx1,1+(i-'1)*8+(j-'1)*-1*-)321-18(')+7java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
  coherence
  proof
    F.x in m-tuples_on(n-tuples_onlet i,j be Nat;
    hencethesis;
  end;
end;

definition
  let m be Nat, X,Y,Dassume
  let F be Function of [:X,Y:], m-tuples_on D;
  let x be Element of X,y be Element of Y;
> Element of m-tuples_on D;
  oherence
  proof
    F.(x,y) in m-tuples_on D;
    hence thesis;
  nd
end;

theorem LM01:
  for m, Element of (BOOLEAN)* by FINSEQ_1:def 11;
  F1,F2 be Element of m-tuples_on (n-tuples_on D) st for  then beElementof (-tuples_on(8tuples_on)
  st i in Seg m & j in Seg n
  holds (F1.i).j = (F2.i).j)by DefStatearray,4;
  proof
    let         stjava.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 48
    ,F2 be Element of m-tuples_on (n-tuples_on D);
    assume
AS: for i,j be Nat st i in Seg m & j in Seg n
    holds (F1.i).j = (F2.i).j;
    F1 in m-        olds exbe18()Element by java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
    then
P1: exs be Element of (n-        st textij = (text.i).j & =key.i.j &
    F2 in m-tuples_on (n-tuples_on D);
    then
P2: ex s be Element of (n-tuples_on D)* st F2 = s & len s = m;
    nowhenceby4,:java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
      1 =i  i)j & java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 52
      then
P4:   i in Seg m by P1;
      then i in dom F1 by FINSEQ_1        (z.).j = -(kjava.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 45
           then F1.i in rng F1 by FUNCT_1:3;
      then F1.i in n-tuples_on D;
      then
P6:   ex s be Element of D* st F1.i = s & len s = n;
       reconsiderF1i = F1.ias ofD*
      i Q110: 1 <=i   =4byA4,1java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
      then F2.i in rng F2 by FUNCT_1:3;
      then F2.i in n-tuples_on D;
      then
R6   java.lang.StringIndexOutOfBoundsException: Range [15, 12) out of bounds for length 79
      then reconsider F2i = F2.i as Element of D*;
      now let j  Nat;
      (i-'18(j-)32<=2496 bythusthesis by A2java.lang.StringIndexOutOfBoundsException: Range [22, 23) out of bounds for length 22
      then j in Seg nQ135:1-18-32< +7XREAL_1;
      hence F1i.j = F2i.j by AS,P4;
    
    hence
F1. =iby R,java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 37
  ;
    F2by P1,,:14
end;

theorem LMGSEQ4:
  for D be non empty set, x1,x2,x3,x4 be Element of D
 holds *x1x2x, * is Element of4tuples_on)
proof
  let D be non empty  44    4-tuples_on(4-tuples_on
  reconsider x1234 = <        .=( x,+(i-'1)8(j-1)*32,1+(i--'1)*8+j-1*+)n
P1: len x1234 = FINSEQ_4:6;
    D*  ;
  then x1234 in    
  hence thesis;
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

theorem     holds for i i,j be Nat st i in Seg  &jin  4
  for D be     holds ex tkeyij ofjava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 40
 thesisby FUNCT_219;
proof
  let D be non empty set, x1,java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 4
).i) Op-(textij,eyij;
P1: len x12345 = 5 by FINSEQ_4:78;
  x12345 in D* by FINSEQ_1:def 11;
  then x12345 in 5-tuples_on D by P1;
  hence thesis;
A2 for text,key be Element

theorem
 benonemptyset x1,x2,x3,x4,5x6, java.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 65
  holds <* x1,x2,x3, holdstextijp
proof
      let y be object
nsiderx1234  *x 4tuples_onjava.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 63
  by LMGSEQ4then
  reconsider x5678 = <* x5,x6,x7on 8tuples_on BOOLEAN)*
  by LMGSEQ4;    st   s&lens=4java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
  D c= D;
  hence thesis by FINSEQ_2:109;
end;

theorem LMGSEQ10Element  4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
  for D be non empty set, x1,x2,x3,x4,x5java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
  holds <* Q12forkbeNatkexzbeingElementof java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 52
    proof
proof
   Dbenon empty set,,,,,,x6, java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
45 <* ,,,4x5 > asof 5tuples_on D
  by LMGSEQ5;
  reconsider x67890 = <* x6,x7,x8,x9,x10 *> as Element of 5-tuples_on D
  by LMGSEQ5;
  D=Djava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
  hence thesis by FINSEQ_2:109;
end;

theorem LMGSEQ16:
  for D be non empty set, x1,x2,x3,x4,x5,x6,x7,x8 be Element of (4-tuples_on D)
  holds <* x1^x5,x2^x6,x3^x7,x4^x8 *> is
entof 4tuples_on (8-tuples_on D)
proof
  let D be non empty set,
  x1,x2,x3,x4,x5,x6,x7,x8 be Element of (4-tuples_on D);
X1: D c= D;
  then
P1: x1^x5 is Element of 8-tuples_on java.lang.StringIndexOutOfBoundsException: Range [0, 37) out of bounds for length 31
P2: x2^x6 is Element of java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 6
P3: x3^x7 is Element java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  x4^x8 is Element of 8-tuples_on D by X1,FINSEQ_2:109;
  hence thesis by P1,P2,P3,LMGSEQ4;
end;

theorem
  for D be non empty set, x be Element of 4-tuples_on(4-tuples_on D),
  k be Element of NAT st k in Seg 4 holds
  ex x1,x2,      assume k  Seg 128;
  x3 =  then 1 <  ')+  LMStat0;

  let D be non empty set,      [,z]
   beElement NAT;
   proof
AS: k in Seg 4;
  x in 4-tuples_on(4-tuples_on D);
  then ex s be java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 10
  then k in dom x by       then reconsider z .  Element of:   in java.lang.StringIndexOutOfBoundsException: Range [16, 14) out of bounds for length 17
  then  FUNCT_1java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
  then x.k in 4-tuples_on (D);
  then
Q13: ex s be Element of D* st x.k = s & len s = 4;
  then reconsider xk = x.k as Element of D*;
  1 in Seg ;
  then 1 in dom xk by Q13,FINSEQ_1:def 3;
  then xk.then-'8(-132i1*(-)  -'*+-132
  then reconsider x1 = xk.1 as Element of D;
2in  4java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
  then 2 in dom xk by Q13,FINSEQ_1:def 3;
  then xk2in byUNCT_1:java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
  then reconsider x2 = xk.2 as Element of D;
  3 in Seg 4;
  then 3 in dom xk by Q13,FINSEQ_1:defG4   n in eg by ;
  then xk.3in rng  reconsider z = zij.n as Eleme
  then reconsider      take z;
  4in Seg       java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 27
  then 4 in dom xk by Q13,     xFinSequence 
   reconsiderpas      that
  then reconsider x4 = xk.4 as Element of D;
  take x1     p=4by P3,FINSEQ_1be  i Seg128
   holdsPK[x.] from sch 5(;
Q14:     then  tuples_on8tuples_onBOOLEAN));

theorem INV00:
  for X,Y be non empty set, f be Function of X,Y, g reconsiderxasElement      java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 70
  java.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
(y Element Yholds f.(.y
java.lang.StringIndexOutOfBoundsException: Range [34, 2) out of bounds for length 67
  g = f" & f = g"
proof
  let     hol z). = mid (,1'1)*8+(j-'1)*32,1+(i-'1)*8+(j-'1)*32+7)
      proo
A1: for x be Element of X java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 21
e
A2: for y be Element of Y holds f.(g.y) = y;   dom z by def B;
  now let  - - );
    t
      .then  -;
  java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6

P2: g*f i-1*+j'1*32<24+java.lang.StringIndexOutOfBoundsException: Range [36, 8) out of bounds for length 8
  now let y be Element of Y;
    thus (f*g).y = f.(g.y) by FUNCT_2:15
      .= y by A2;
  end;
  then
P4: f*g = id Y by FUNCT_2:124;
  thus
P5: f is one-to-one & f is onto by java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
   <<0,,,*><0,,00><,0,0*^*00,>ex java.lang.StringIndexOutOfBoundsException: Range [27, 25) out of bounds for length 61
  <000*^*,,,*,<*0,00><000,0>*>as
  rng f = Y by P5,FUNCT_2:def 3;
   tuples_on(8tuples_on by,LMGSEQ16
  rng g = X by P6,FUNCT_2:def 3;
  hence f = g" by FUNCT_2:30, holdsex textij    econsider PP12=< 0,,*>*0,,>*,,><0,,


java.lang.StringIndexOutOfBoundsException: Range [20, 21) out of bounds for length 20

definition
  func AES-Statearray -> Function of 128-reconsider  =< *Element -tuples_on(-tuples_on BOOLEAN)) st P[k,zk]
  4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)) means
  :DefStatearray:
  for input be Element of 128-tuples_on BOOLEAN
  fori,beNat st i in Seg 4j 4
  holds  java.lang.StringIndexOutOfBoundsException: Range [28, 26) out of bounds for length 67
    java.lang.StringIndexOutOfBoundsException: Range [23, 14) out of bounds for length 73
l kbe;
  proof
    defpred P0[Element of 128-tuples_on BOOLEAN,set] means
of -tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
    st $2 = z & for i then kintext Q01,FINSEQ_1:def 3;
   holds (z.)j=mid ($1,1+i'1)8         text.in java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 45
A1  beingof -java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 48
    ex z be reconsiderPP15: sbe Elementof 8-*st.k &java.lang.StringIndexOutOfBoundsException: Range [70, 69) out of bounds for length 76
        0,0*^000>*0,^0000*  
    proof
      let x be         defpred Pi[Nat PiNatset]means
      x in 128-tuples_on BOOLEAN        ex textij beElement of 8-tuples_on BOOLEAN st textij = (textk).$1 &
      then
A01:  ex s be Element of (BOOLEAN)* st x        $2  SBT.textij)
      defpred P[Nat,set] means
      ex  beElement of(-tuples_on (-tuples_on BOOLEAN))
      st $2 = zi & for j be Nat st j in Seg 4
       zij=mid(,+($1-1*java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
    mejin ;
      ex x being Element of (4-tuples_on (8-tuples_on BOOLEAN)) st P[k,    Element of 10-tuples_on (4-tuples_on (8-tuples_on BOOLEAN)) by LMGSEQ10;
      proof
        let k be A1: len Q0 = 5 & Q0.1P  .2=  .3= PP8  .4= &jintextk  java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
                  (extkj (java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 38
        
Q110:   1 <= k & k3A1
        then 1-1 <= k-1 by XREAL_1:9;
        then k-'1 = k-1 by XREAL_0:def 2;
        110,XREAL_19;
        then
Q112:   (k-'1)*8 <= 3*8 by XREAL_1:64;
         means
        $2 = mid (x,1+(k-'1)*8+($1- 2inSeg5
Q12:    for j be Nat st j     then2:    dom zk=  for j    4
        ex xi being Element of (8-tuples_on BOOLEAN) st Pi[j,xi]
        proof
          let j be Nat;
          assume j in Seg 4;
            then
Q130:     1 <= j & j <= 4 by FINSEQ_1:1;
          then 1-1 <= j-1 by XREAL_1:9;
          then -',FINSEQ_1:def ;
          then j-'1 <= 4-1 by Q130,XREAL_1:9;
          then
Q133:     (j-'1)*32 <= 3*32 by XREAL_1:64;
(k-)+-)32< Q112;
          then
Q134     +(-1)t3 omby: A1;
Q136     1    st  4 holds
          + <= +(k*8(:.Pjava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 36

Q14:      1 e       hencethesisjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
          by Q134,XXREAL_0:2,A01;
Q150:     1+0 <= 1+(k-'1)*8+(j-'15in ;
          reconsidermmd =midx,1+k-1*+j-1)32java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
          1+(k-'1)*8+(j-'1)*java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
          1+(k-'1)*8+(j-'1)*32+0 <= R:IT.5 =  A1,FINSEQ_1:ef7java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
           1in 5;
          (1+(k-'1)*8+(j-'1)*32+7)-'(1+(k-'1)*8+(j-'1)*32)+1
          by FINSEQ_6:118,Q14,Q136,A01,Q150
            .= 7      holds P[iz    then
            .= 8;
          R10: IT.(5+1  . A1,3;
          then reconsider xi = mid (x,1+(k-'1)      reconsider z as Element of(-      = PP11;
          1+(k-'1)*8+(j-'1)*32+7) as Element of (8-tuples_on BOOLEAN);
          xi = mid (x,1+(k-'1)*8+(j-'1)*32,1+(k-'1)*8+(j-'1)*32+7);
          hence thesis;
        end;
        consider zi be FinSequence of (8-tuples_on BOOLEAN) such that
Q13:    domzi=Seg   ibe stiSeg
        holds Pi[i,zi.i] from FINSEQ_1:sch 5(Q12);
Q14:    len zi = 4 by Q13,FINSEQ_1:def 3;
        reconsider zi as Element of (8-tuples_on BOOLEAN)* by FINSEQ_1:def 11;
        zi in 4tuples_on(tuples_on BOOLEAN) by Q14;
        then reconsider zi as Element of 4-tuples_on (8-tuples_on BOOLEAN);
        for j be Nat st j in Seg 4
        holds zi.j = mid (x,1+(k-'1)*8+(j-'1)*32,1+(k-'1)*8+(j-'1)*32+7)
        by Q13;
        hence thesis;
      end;
erz FinSequence  4tuples_on (8tuples_on BOOLEAN)suchthat
Q2:   dom z = Seg 4 &
      for i be Nat st i in Seg 4 holds P[i,z.i] from FINSEQ_1:sch 5(Q1);
Q3:   lenz =4byQ2FINSEQ_1def 3
       0,,00*><,0,*,<,0,0*0,,* >&
      by FINSEQ_1:def 11;
      z 4-uples_on(-tuples_on (8tuples_on BOOLEAN))by Q3;
      then reconsider z as
      Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
      for i,j be Nat st i in Seg 4 & j in Seg 4
      holds (z.i).j = mid (x,1+(i-'1)*8+(j-'1)*32,1+(i-'1)*8+(j-'1)*32+7)
      proof
        let i,j be Nat;
        assume
P11:    i in Seg 4 & j in Seg 4;
        then consider zi be Element of (4-tuples_on (8-tuples_on BOOLEAN))
        such that
P12:    z.i = zi & for j be Nat st j in Seg 4
        holds zi.j = mid (x,1+(i-'1)*8+(j-'1)*32,1+(i-'1)*8+(j-'1)*32+7) by Q2;
        thus (z.i).j = mid (x,1+(i-'1)*8+(j-'1)*32,1+(i-'1)*8+(j-'1)*32+7)
    by P11;
      end;
      hence ex z be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
      st P0[x,z];
    end;
    consider I be Function of 128-tuples_on BOOLEAN,
    4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)) such that
A2: for x being Element of 128-tuples_on BOOLEAN
    holds P0[x,I.x] from FUNCT_2:sch 3(A1);
    now let input be Element of 128-tuples_on BOOLEAN;
      ex z be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
      st I.input = z & for i,j be Nat st i in Seg 4 & j in Seg 4
      holds (z.i).j = mid (input,1+(i-'1)*8+(j-'1)*32,1+(i-'1)*8+(j-'1)*32+7)
      by A2;
      hence for  unction  4-(4tuples_on(-tuples_on BOOLEAN)),
      holds ((I.input).i).j = mid (input,1+(i-'1)*8+(j-'1)*32,
      1+(i-'1)*8+(j-'1)*32+7);
    end;
    hence thesis;
  end;
  uniqueness
  proof
    let H1,H2 be Function of 128-tuples_on BOOLEAN,
    4-tuples_on(4-tuples_on (8    rinput beElementof 4tuples_on(4tuples_on (8-BOOLEAN)
    assume
A1: for  ijbe Nat st i in 4& j in   holds
    for i,j be Nat st i in Seg 4exinputij  Element of 8tuples_onBOOLEANst  = (input.i). &
    holds ((H1.input).i).j = mid (input,1+(i-'1)*8+(j-'1)*32,
    1+(i-'1)*8+(j-'1)*32+7);
    ssume
A2: for input be Element of 128-tuples_on BOOLEAN
    for i,j be Nat st i in Seg 4 & j in Seg 4
    holds ((H2.input).i).j = mid (input,1+(i- Element of 4-4tuples_on 8tuples_on )means
    1+(i-'1)*8+(j-'1)*32+7);
    now let input be Element of 128-tuples_on BOOLEAN;
      (H1.input) in 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
      then
P3:   ex s be Element of (4-tuples_on (8-tuples_on BOOLEAN))*
      st (H1.input) = s & len s = 4;
      (H2.input) in 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
      then
P4:   ex s be Element of (4-tuples_on (8-tuples_on BOOLEAN))*
      st (H2.input) = s & len s = 4;
      now let i be Nat;
        assume 1 <=i & i <= len (H1.input);
        then
P6:     i in Seg 4 by P3;
        then i in dom(H1.input) by FINSEQ_1:def 3,P3;
        then (H1.input).i in rng (H1.input) by FUNCT_1:3;
        then (H1.input).i in 4-tuples_on (8-tuples_on BOOLEAN);
        then
P8:     ex s be Element of (8-tuples_on BOOLEAN)*
        st (H1.input).i = s & len s = 4;
        reconsider H1i = (H1.input).i as
        Element of (8-tuples_on BOOLEAN)* by P8;
        i in dom(H2.input) by FINSEQ_1:def 3,P4,P6;
        then (H2.input).i in rng (H2.input) by FUNCT_1:3;
        then (H2.input).i in 4-tuples_on (8-tuples_on BOOLEAN);
        then
P11:    ex s be Element of (8-tuples_on BOOLEAN)*
        st (H2.input).i = s & len s = 4;
        reconsider H2i = (H2.input).i as
        Element of (8-tuples_on BOOLEAN)* by P11;
        now let j be Nat;
          assume 1 <=j & j <= len H1i;
          then
P14:      j in Seg 4 by P8;
          then ((H1.input).i).j = mid (input,1+(i-'1)*8+(j-'1)*32,
          1+(i-java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
          hence H1i.j = H2i.j by A2,P6,P14;
        end;
        hence (H1.input).i = (H2.input).i by P8,P11,FINSEQ_1:def 18;
      end;
      hence H1.input = H2.input by P3,P4,FINSEQ_1:def 18;
    end;
    hence H1 = A1 for textElement4-4(- BOOLEANjava.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
  end;
end;

theorem LMStat0:
  for k be Nat st 1 <= k & k <= 128 ex i,j be Nat st i in Seg 4 & j in Seg 4 &
  1+(i-'1)*8+(j-'1)*32 <= k & k <= 1+(i-'1)*8+(j-'1)*32+7
proof
  let k be Nat;
  assume
A1: 1 <= k & k <= 128;
A3: k = 32*(k div 32)+(k mod 32) by NAT_D:2Aex  Elementof4tuples_on-(-BOOLEAN))
  reconsider m = k div 32 as Nat;
  reconsider n = k mod 32 as Nat;
  k div 32 <= (32*4) div 32 by A1,NAT_2:24;
  then
: m< ;
  per cases;
  suppose
A4: n = 0;
A5: 1 <= m
    proof
      assume        beElementtuples_on(4(-java.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 76
then m = 0 by NAT_1:14;
      hence contradiction by A1,A3,A4;
    end;
    set j =m;
A8: j in Seg 4 by M1,A5;
    set i = 4;
A10: i in Seg 4;
A11: j-'1 = j-1 by XREAL_1:233,A5;
A13: k = 32*(k div 32)+(k mod 32) by NAT_D:2
      . 32(j-'1)*((i-)+) byA4A11
      .= 32*(j-'1)+8*((i-'1)+1) by XREAL_1:233
      .= 1+(i-'1)*8+(j-'1)*32+7;
    1+(i-'1)*8+(j-'1)*32+0 <= 1+(i-'1)*8+(j-'1)*32+7 by XREAL_1:7;
    hence ex i,j be Nat st i in Seg 4 & j in Seg 4 &
    1+(i-'1)*8+(j-    <0,,,*^*,,,*,*,,0><000,0* *>
  end;
  suppose
    .3= <,00,><0100><*,,*^<,,,0*>
    then
XX0: 1 <= n by NAT_1:14;
XX1:n<by NAT_D:;
    m <> 4
    proof
      assume
U1:   m = 4;
U2:   k = 32*4+n by NAT_D:2,U1
        .= 128+n;
      128+ =128n  ,XREAL_1
      hence contradiction by U2,XXREAL_0:2,A1;
    end;
    then m < 4 by XXREAL_0:1,M1    <000*^*,0,,*,*,000>*,,,* *> 
    then
A15:m <=4by NAT_1:13;
A16: 1 <= m+1 by NAT_1:11;
    set j = m+1;
A18: j in Seg 4 by A15,A16;
:-1=j-1 by XREAL_1233NAT_1:11
      .=m;
A20: k = 32*(j-'1)+n by NAT_D:2,A19;
A22: n = 8*(n div 8)+(n mod 8) by NAT_D:2;
s =n 8as java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
    reconsider t = n    7=< 0100><0000>,*0,,,0*^<*0,0,0*>,
    n     <*0,00,0*^*,,,*><00,0>^<0,,,* > &
    then
M2: n div 8 <= 4;
    now per cases;
    suppose
A23:  t = 0;
A24:  1 <= s
      proof
        assume not 1 <= s;
        then n = 8*0+0 by NAT_1:14,A22,A23;
        hence contradiction by A14;
      end;
      set i = s;
A28:  i in Seg 4 by M2,A24;
29:  i-'1 = i-1 by XREAL_1233A24
A30:  n = 8*s+0 by NAT_D:2,A23
        .= *(-1+8*1 by java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
1(i--11)320<=+i-1(-1*7XREAL_17java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
      hence ex i,j be Nat st i in Seg 4 & jR2.0  *<*,011*>^*0110>0000*^*,,,*,
      1+(i-'1)*8+(j-'1)*32 <= k & k <= 1+(i-'1)*8+(j-'1)*32+7
     by A28,A18,A30
    end;
    suppose
      t <> 0;
      then
XX0:  1 <=R1in 10-java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 59
XXX1: t <= 8 by NAT_D:1;
s < 4
      proof
        assume
U1:     s = 4;
U2:     n = 8*4+t by NAT_D:2,U1
          .= 32+t;
        32+1 <= 32+then
        hence contradiction by U2,XXREAL_0:2,XX1;
      end
      then s < 4 by XXREAL_0:1,M2;
      then
B15:  s+1 <= 4 by NAT_1:13;
B16:  1 <= s+1 by NAT_1:11;
      set i=s1;
B18:  i in Seg 4 by B15,B16;
B19:  i-'1 = i-1 by XREAL_1:233,NAT_1:11
        .=s;
B20:  n = 8*(i-'1)+t by NAT_D:2,B19;
B220:32(-1+8(-1+1 = 32*(j-1+8(i-1+t byXX0,XREAL_1:7;
      32*(j-'1)+8*(i-'1)+t <= 32*(j-'1)+8*(i-'1)+8 by XXX1,XREAL_1:7;
      then k <= 1+8*(i-'1)+32*(j-'1)+7 by  assume 1 <= i & i <= len R1;
      hence ex i,j be Nat st i in Seg 4 & j in Seg 4 &
      1+(i-'1)*8+(j-'1)*32 <= k & k <= 1+(i-'1)*8+(j-'1)*32+7
      by B220,A20,B20,B18,A18;
    end;
  end;
  hence ex i,j be Nat st i in Seg 4 & j in Seg 4 & 1+(i-'1)*8+(j-'1)*32 <= k &
  k <= 1+(i-'1)*8+(j-'1)*32+7;
end;
end;

theorem LMStat2A:
  for i,j,i0,j0 be Nat st i in Seg 4 & j in Seg 4 & i0 in Seg 4 &
  j0 in Seg 4 & not (i = i0 & j = j0)
  holds {k where k is Nat : 1+(i-'1)*8+(j-'1)*32 <= k &
  k <= 8+(i-'1)*8+(j-'1)*32} /\ {k where k is Nat :
  1+(i0-'1)*8+(j0-'1)*32 <= k & k <= 8+(i0-'1)*8+(j0-'1)*32} = {}
proof
  let i,j,i0,j0 be Nat;
  assume
AS: i in Seg 4 & j in Seg 4 & i0 in Seg 4 &
  j0 in Seg 4 & not (i = i0 & j = j0);
  set A = {k where k is Nat : 1+(i-'1)*8+(j-'1)*32 <= k &
  k <= 8+(i-'1)*8+(j-'1)*32};
  set B = {k where k is Nat : 1+(i0-'1)*8+(j0-'1)*32 <= k &
  k <= 8+(i0-'1)*8+(j0-'1)*32};
A1: 1 <= j & j <= 4 by AS,FINSEQ_1:1;
A2: 1 <= i & i <= 4 by AS,FINSEQ_1:1;
B1: 1 <= j0 & j0 <= 4 by AS,FINSEQ_1:1;
B2: 1 <= i0 & i0 <= 4 by AS,FINSEQ_1:1;
P1: (j-'1) = j-1 by XREAL_1:233,A1;
P2: (i-'1) = i-1 by XREAL_1:233,A2;
P3: (j0-'1) = j0-1 by XREAL_1:233,B1;
P4: (i0-'1) = i0-1 by XREAL_1:233,B2;
  i-1 <= 4-1 by A2,XREAL_1:9;
  then
R2: i-'1 <= 3 by XREAL_1:233,A2;
  i0-1 <= 4-1 by B2,XREAL_1:9;
  then
R4: i0-'1 <= 3 by XREAL_1:233,B2;
  per cases;
  suppose
A2: j <> j0;
    now per cases by A2,XXREAL_0:1;
    suppose
      j < j0;
      then (j-'1) < (j0-'1) by XREAL_1:14,P1,P3;
      then (j-'1)+1 <= (j0-'1) by NAT_1:13;
      then
A12:  ((j-'1)+1)*32 <= (j0-'1)*32 by XREAL_1:64;
      (i-'1)*8 <= 3*8 by R2,XREAL_1:64;
      then 8+(i-'1)*8 <= 8+24 by XREAL_1:6;
      then 8+(i-'1)*8+(j-'1)*32 <= 32+(j-'1)*32 by XREAL_1:6;
      then
A13:  8+(i-'1)*8+(j-'1)*32 <= (j0-'1)*32 by A12,XXREAL_0:2;
      0+(j0-'1)*32 <= (i0-'1)*8+(j0-'1)*32 by XREAL_1:6;
      then (j0-'1)*32+0 < (i0-'1)*8+(j0-'1)*32+1 by XREAL_1:8;
      then
A14:  8+(i-'1)*8+(j-'1)*32 < 1+(i0-'1)*8+(j0-'1)*32 by A13,XXREAL_0:2;
      thus A /\ B = {}
      proof
        assume A /\ B <> {};
        then consider x be object such that
A150:   x in A /\ B by XBOOLE_0:def 1;
A15:    x in A & x in B by XBOOLE_0:def 4,A150;
        consider k1 be Nat such that
A16:    x = k1 & 1+(i-'1)*8+(j-'1)*32 <= k1 & k1 <= 8+(i-'1)*8+(j-'1)*32
        by A15;
        consider k2 be Nat such that
A17:    x = k2 & 1+(i0-'1)*8+(j0-'1)*32 <= k2 & k2 <= 8+(i0-'1)*8+(j0-'1)*32
        by A15;
        reconsider x as Nat by A16;
        thus contradiction by A17,A14,XXREAL_0:2,A16;
      end;
    end;
    suppose
      j0 < j;
      then (j0-'1) < (j-'1) by XREAL_1:14,P1,P3;
      then (j0-'1)+1 <= (j-'1) by NAT_1:13;
      then
A12:  ((j0-'1)+1)*32 <= (j-'1)*32 by XREAL_1:64;
      (i0-'1)*8 <= 3*8 by R4,XREAL_1:64;
      then 8+(i0-'1)*8 <= 8+24 by XREAL_1:6;
      then 8+(i0-'1)*8+(j0-'1)*32 <= 32+(j0-'1)*32 by XREAL_1:6;
      then
A13:  8+(i0-'1)*8+(j0-'1)*32 <= (j-'1)*32 by A12,XXREAL_0:2;
      0+(j-'1)*32 <= (i-'1)*8+(j-'1)*32 by XREAL_1:6;
      then (j-'1)*32+0 < (i-'1)*8+(j-'1)*32+1 by XREAL_1:8;
      then
A14:  8+(i0-'1)*8+(j0-'1)*32 < 1+(i-'1)*8+(j-'1)*32 by A13,XXREAL_0:2;
      thus A /\ B = {}
      proof
        assume A /\ B <> {};
        then consider x be object such that
A150:   x in A /\ B by XBOOLE_0:def 1;
A15:    x in A & x in B by XBOOLE_0:def 4,A150;
        consider k1 be Nat such that
A16:    x = k1 & 1+(i-'1)*8+(j-'1)*32 <= k1 & k1 <= 8+(i-'1)*8+(j-'1)*32
        by A15;
        consider k2 be Nat such that
A17:    x = k2 & 1+(i0-'1)*8+(j0-'1)*32 <= k2 & k2 <= 8+(i0-'1)*8+(j0-'1)*32
         A15;
        reconsider x as Nat by A16;
        thus contradiction by A16,A14,XXREAL_0:2,A17;
      end;
        end
  end;
  hence A /\ B = {};
  end;
  suppose
A2: j = j0;
    now per cases by A2,AS,XXREAL_0:1;
      suppose i < i0;
      then (i-'1) < (i0-'1) by XREAL_1:14,P2,P4;
      then (i-'1)+1 <= (i0-'1) by NAT_1  let, be Nat,wbe  of 4-uples_on (8-tuples_on BOOLEAN));
      then ((i-'1)+1)*8 <= (i0-'1)*8 by XREAL_1:64;
      then
A13:  (i-'1)*8+8+  AS m=4 or = 6or  &i<4(7m &m< i;
      (i0-'1)*8+(j0-'1   (,mw)->of 4java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 77
             st=v & len v =m;
A14:  8+(i-'1)*8+(j-'1)*32 < 1+(i0-'1)*8+( then
      QQ3:dom =eg by :
      proof
        assume A /\         java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
         PXizjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
     A\B by XBOOLE_0:ef
A15:    x in A    (InvSubBytes()..(ubBytesS).)i)j =(SBT)outputij)
        consider k1 be Nat     java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
A16:    x = k1 & 1+(i-'1P1 j- = inputij (SubBytes(.inputi)j=SBT(nputij)
        by A15    by DefSubBytes,;
        consider k2 be Nat such that
:x=k2 &+i0-1*+j0- < k2&k2 <=8(-')(')3java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
        byP2: (-1byXREAL_1:33A2
        Pby :B
         A16,17A14,       reconsider P = s(+1)as
      java.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
    end;
    suppose
      i0 < i;
      java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 4
      then (i0-'1)+1 <=  i0-1 =4  ,INV08
      then ((i0-'1)+1)*8 <= (i-  for outputbeElement of 4-4java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 12

13:(i0-e
      (i-'1)*        end;
      then
A14:  8+(i0proof
       =}
      proof
        assume   now leti rng byFUNCT_13;
xjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
A150:   x in A/  byXBOOLE_0
xA&j'* <i01 reconsider  =java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
A5:inputij =java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
  &1(-)8(132
        by A15;
java.lang.StringIndexOutOfBoundsException: Range [19, 16) out of bounds for length 36
 +i0'*+-)  &  +-)*+j-)32
        by A15;
        xas by A16;
            ex be then
      end;
    ;
  java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 22
  henceA/ B = {};
end;
end;

theorem LMStat2:
   ij,,be java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 14
i0  x  of 4(4-
  k <= 1+(i-'1)*8+(j-'1)*32+7 & 1+(i0-'1)*8+(j0-'1)*32 <                 in(-:1  &<47mby,INSEQ_11java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
  k <= 1+(i0-'1)*8+(j0-'1)*32+7 holds i =        byA15;
      s
  k,,ji0,j0  Nat               ;
  java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
AS      2  java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 53
  1(-s
 i-1*(0'*    +(0')8j0')32      z  of4-tuples_on8-))P,]
not( i              i=(  java.lang.StringIndexOutOfBoundsException: Range [33, 31) out of bounds for length 55
  then
A2       (i01)1 <=(-'1 byNAT_1.ias
  /\ {n A14:  8+(i0-1)*8(j0-1*  +i          Elementoftuples_on4(-tuples_on ))java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
  (i0-1*8+(-1)32 =}by java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 51
A3:  then          then 4java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 70
  n=+i'1*+(')32} byst            / Bby:ef;
  k in{ where n Nat :1(i0-1)*8          then
  n <consider1mF:ef ;
  hence contradiction by A3,XBOOLE_0:def 4,A2;
end;

theorem 
  AES-Statearrayisone           

  for x1,x2          xk   thesisjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
 in-tuples_on  &
  (AES-Statearray).x1 = (AES-Statearray).      end;
  proof
    let x1,x2 be object;
    assume
A1 x1domz=Seg f i  Seg4
()x1(AESStatearray).x2;
    QQ3:     = NAT_D,,NAT_2A;
P1: :   len z =  1+(i0-'1)*8+(j0-1) (*m 1java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 62
:exsbe java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 65
    letkbe java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
       where  Nati- 8tuples_on)java.lang.StringIndexOutOfBoundsException: Range [64, 65) out of bounds for length 64
P5:    :1(')8+j-1* =m--java.lang.StringIndexOutOfBoundsException: Range [46, 44) out of bounds for length 68
     considerijbe}A;
   Seg+-')8('* < k&
  n <= (i0-'1)*(-1)  4(-java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 60
       hencecontradiction;
      Element of (BOOLEAN)* by FINSEQ_1:def 11;
      then reconsider A1ij = theorem LMStat1:
      FinSequenceof(    I
      mid (xx2,1+(ithus  byA2;
      Element of (BOOLEAN)* by FINSEQ_1:def 11;
      then reconsider  =((-tatearray) x2in128&
      FinSequence of (BOOLEAN) by Q0         (AES-Statea  roof
A50:  1+(i    let    let , beobject;
      by A4,XREAL_1:9;
 =-(18+(')  of   
F41:  k-((i-'1)*8+)x1   -java.lang.StringIndexOutOfBoundsException: Range [42, 39) out of bounds for length 74
      by A4,XREAL_1:9;
1 1<1+(i')8(j-'32 yAT_111
F2:   1+(i-'1)*P1 s  of     ex xi be Element of 4-tuples_on-)st java.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 75
Q110: 1 <          ((     im   ) zi BOOLEAN)  be  BOOLEAN*st=s&java.lang.StringIndexOutOfBoundsException: Range [52, 50) out of bounds for length 65
                w  . ;
theni'  -  ex of4-tuples_on tuples_on BOOLEAN)st xi  i
hen i' <= 4-1      consideri,j be Natsuch that

: (-1)8< * by XREAL_1:;
 < &j< 4by1
       1- < j-then
      then j-'1 = j-1 by)3   java.lang.StringIndexOutOfBoundsException: Range [10, 8) out of bounds for length 78
      then j-'1 <= 4-1 by Q130,XREAL_1:9;
      then
Q133:        then       then reconsider (-(tuples_on )
      (i-'1)*8+(j-        java.lang.StringIndexOutOfBoundsException: Range [12, 13) out of bounds for length 12
      then 1+       then
      then
7=1217byXREAL_1:;
F5:   n <= (1+(i-'1)*8+(j-'1)*32+7)-(1+(i-'1)*8+(j-'1)*32)+1 by F41;
    =-1+      yYY4.byF2P2,135,50F5,6INSEQ_6122
      thus xx1.k = (mid (xx1,1+(i-'1)*8+(jhence by  then  a
      by :DefInvShiftRows LMStat3java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
.=A2ij.n by DefStatearray4holds
        .= (mid (xx2,1+i-'1)*8+(-'1)32+i  java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
        by DefStatearray,A4
        ,P2,Q135A50LX3  foriNAT im .i=.(i+)
    end;
  java.lang.StringIndexOutOfBoundsException: Range [32, 7) out of bounds for length 40
end;
         kbeElementproof
end;

         k    defpredPKNat]java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
  AESStatearray onto
proof
  for y be LX31:  <;
  xe  x128t&y         =1 +  + java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 62
  proof
    letybe ;
4uples_on (uples_on
    then
B10:ex s be Element of (4-tuples_on          ofx,-java.lang.StringIndexOutOfBoundsException: Range [28, 29) out of bounds for length 28
st y     =4;
   z= y asElement of4 (-tuples_on BOOLEAN))*;
    defpred PK[Nat,set] means
    ex i,j,n be Nat, zij 1*+ 
        4 &j  Seg4&nin 8 & 1    i =(k1)div )  = m    .  .(k+1)  .  YY3;
)*perjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
      java.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
Q12: for k be Nat st kthenreconsider zi =C1       (k)modm  0java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
    java.lang.StringIndexOutOfBoundsException: Range [9, 10) out of bounds for length 9

      assume k in Seg 128;
      then < k   =128 1
     then consider i be Nat such
A4:   i in        reconsider=k-(-1)8+j-')*) java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 46
     k =1(-1)8+(')byhcontradictionbyNAT_D,;
       in dom z by FINSEQ_1:def 3,A4          end;
      then z.i in rng      then
      then z  4-tuples_on (-tuples_onjava.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 52
      then
   proof
      then       take java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
      j         suppose
      then (zi).j    xof BOOLEAN
      then reconsider zij = (z.i).j as Element of 8-java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 19
A50 1  
      by A4,XREAL_1:9;
*32) as   NAT:3;
      k-((i-'1)*8+(j-'1)*32) <= 1+( holds i.] INSEQ_1(
      by A4,XREAL_1:9;
      then
G4:nin
       java.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 61
 z
      thus thesis by A4,java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 21
  ;
    consider         NLX34: ((1 )<1*327byNAT_11;
    that
 be sti   j1=(+  (k)mod  01 +)      
F3:   +i-1*+j-1        =mhesis;
Q14: len x  128  Q13FINSEQ_1'),1        java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 73
    econsider   m01asjava.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 14
-812;
    then reconsider x as      +-z   -(- java.lang.StringIndexOutOfBoundsException: Range [71, 70) out of bounds for length 72
i  java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 45
   z.m x+1+-)1    r  +i)8)32) as Nat;
    proof
      beNat
      assume
P21:i in Seg 4&j in Seg4;
      then iindom  : ,10;
      then kjava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
      then z.i in 4-tuples_on (8-tuples_on BOOLEAN);
     
P8:   ex s be Element of (8-tuples_on BOOLEAN)*         k <= 1+(i0-'1)*8+(j0-'1)*32+7 & n0 = k-((i8A1f inputbe          then 1 <= i0    N2 yDD1,:,ASNAT_2:,AS1;
      reconsider zi(-           ofm(-tuples_on (-tuples_on BOOLEAN))suchthat
      j domzi P816:zi0& =z(i0++1&
      then zi.j in rng zi by FUNCT_1:3;
uples_on java.lang.StringIndexOutOfBoundsException: Range [41, 42) out of bounds for length 41
n
P11:  ex s be Element     java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
      reconsider zij = zi.j as Element of (BOOLEAN)* by P11;
   (2inputi=Op-Shift(,1);
      then 1-1 <= i-1 by XREAL_1:9;
then i1=i by XREAL_0:def 2;
      then i-1 < 4-1by Q110,XREAL_1: now ;

java.lang.StringIndexOutOfBoundsException: Range [32, 4) out of bounds for length 36
  <=j&j<4byP21,INSEQ_11
      then 1-1 <= j-1       
      then j-'1 = j-1 by P4:   ex s be Element of (4-tuples_on-tuples_on           Q be Element of 4-tuples_on (8-tuples_on BOOLEAN
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 41
hen
Q133:j-1* 32. =  < java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 44
      (i-'1)*8+(j-'1)*32 <= 24+96 by Q133          per cases;
      then
Q134:           suppose
      
<= len xbyXXREAL_0:
  java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 71
XX4java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 79
G3:   1+((        assumeassume1< j& (..=Shiftxi,i-)yXX2,LMOD02,LX34,,16;
Q135: 1+(i-'1)* P14 k  )java.lang.StringIndexOutOfBoundsException: Range [26, 27) out of bounds for length 26
      then
:1(')      hence H1.=2inputby,,FINSEQ_1;
P13:  len (mid (x,1+(i-'FUNCT_263
      (1+(i-'  end;
  by G,LC13       j2j1 LLX34C22X,,
        .=  .k+  .1java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
. java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
     letn be Nat;
        assume
F40:        exP  ofjava.lang.StringIndexOutOfBoundsException: Range [36, 12) out of bounds for length 12
F1:     1 <= 1+((i-'1)*8+(j-'1)  orrectness LMStat1,LMStat3;
1+-')8+(-'(i')8+(-1)*+java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 4
F5:     n <= (1+(java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 73
  4tuples_on(4(-tuples_onBOOLEAN;
:     k =n-+(+i-1)8(j'1)*2);
        n <= n+((i-'1)*8+(j-'1)*32) by NAT_1:11;
        then
 by F40XXREAL_02
        reconsider java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 71
H3  input  4tuples_on(-java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 39
        java.lang.StringIndexOutOfBoundsException: Range [12, 13) out of bounds for length 12
H2:     k <= P4: ex s be Element of (4-tuples_on(8-tuples_on L2: "* =d(-tuples_on BOOLEAN)&f(f)=
        then k Seg   H1
        then               .= j by ASXLMOD02X,C1,;
        zi0j0 be Element of (8-tuples_on BOOLEAN) such that
AA1:    i0 in Seg  then =g by :30L2java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
        k <= 1+(i0-'1)*8+(j0-'1)*32+7 & n0 = k-((i0-'1)*8+(j0-'1end;
        zi0j0 = (z.i0).j0 & x.k = zi0j0.n0 by Q13;
        1+java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        then 1+(i-'1)*8+(definition
        then i XX3:xi funcSubBytes()java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
      hence              . 0;
        java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 8
      nd;
by java.lang.StringIndexOutOfBoundsException: Range [34, 30) out of bounds for length 46
    ;
    (AES-Statearray.x) in 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN
    then
:s lement(-8 4
     AESx =s  len s=;  - (-
    nowby XX2;
me <     ((hiftRows.).  (5i+()
      then
P6:       bk)=pWXORKSBTmkQ)
      then i in dom(AES-Statearray.x) by FINSEQ_1:def       =input. by  by C18,,,,,C;
      then (AES- end
      then (AES-Statearray.x).i in   hence(InvShiftRows.S  hence (InvShiftRows.(ShiftRows
      then
P8:       java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
stAES           java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 30
          defpred P0 -Element -java.lang.StringIndexOutOfBoundsException: Range [34, 32) out of bounds for length 67
      Element     suchjava.lang.StringIndexOutOfBoundsException: Range [37, 35) out of bounds for length 58
      in  st ShiftRows.(.   ;
      then <=     java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 76
      then ztext -java.lang.StringIndexOutOfBoundsException: Range [27, 25) out of bounds for length 61
      then
java.lang.StringIndexOutOfBoundsException: Range [6, 2) out of bounds for length 10
      java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 29
      reconsider H2i = z.i as Element of     that
      now let j       [. java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
        assume 1 <= j & j < stPoutput.  OpShift $ =zk beNat jin java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 45
        then
P14:    j in Seg 4 by P8;java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 52
        then (AES-Statearray.x..  java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 62

        hence H1i.j = H2i.j by P2,P6,P14 consideryi of 4-tuples_on (8-tuples_on BOOLEAN      Element of(4tuples_on 8- java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 63
      end;
hence AES..  .. ,,        injava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 26
        thus(ShiftRows..(InvShiftRows.output)).i = Op-ShiftC22X     km1 = (k+1)-m;
    hence thesis by P3,B10,FINSEQ_1:def 18;
  end;
  then 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)) =
rngAES-Statearray  FUNCT_2:XC2,;
  hence thesis         textk  java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 76
java.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 4

registration
  cluster AES-Statearray ->C22      k =( div )m+kmodm)by ,INT_159
  correctness by LMStat1,LMStat3;
        stPij,java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19

theorem LMINV1:
  for cipher be   thusSeg4java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
  holdsAES           f4 NV00,I
proof
  letcipher beElement stPjava.lang.StringIndexOutOfBoundsException: Range [7, 5) out of bounds for length 20
  set f          then          then )=WXORKjava.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 51
L0:rngStatearray = 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
  by FUNCT_2:def 3;
  then reconsider g ="asFunction of
  4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),128-tuples_on        zkbe   nd
  by FUNCT_2:25;
L2:("f=id(28tuples_on BOOLEAN)&()java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
  id(4-tuples_on(4         Pi[zk.]    ;
  then g is one-to-one & rng g = 128-tuples_on BOOLEAN by FUNCT_2:18;
  =g"by FUNCT_2:30,L2;
  hence thesis by FUNCT_2:26;
end;

begin:: SubBytes

  java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 53

definition
  let SBT;
  func SubBytes(SBTt  asjava.lang.StringIndexOutOfBoundsException: Range [37, 38) out of bounds for length 37
  Function ofjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 13
  4uples_on4tuples_on (-tuples_on BOOLEAN)) means
  :efSubBytes
  for input be Elementjava.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
  holds for i,j be    Qbe  of4tuples_on (8-tuples_on BOOLEAN)
  holds ex inputij be Element of 8-tuples_on BOOLEAN
stinputij java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
  existence(.  47       
  proof
Element44tuples_on8tuples_on ),
    Element of 4-tuples_on(4-tuples_on (8-tuples_on XX1      (4- 8tuples_on java.lang.StringIndexOutOfBoundsException: Range [0, 58) out of bounds for length 48
    for i,jbe  st      st H1)=s& s=((+)java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 44
 inputijbeElement-tuples_on BOOLEAN
st   $.)  $.)=SBT.inputij)java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
A1: for textbeing Element  -tuples_on(-tuples_on (-BOOLEAN      H2input in((+))tuples_on (-tuples_on 8tuples_on BOOLEAN);
    ex z be Element 
stP0[text,z]
    proof
      let textdefinition
(tuples_on (
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
: sElement -java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 61
  s  s=
      defpred P[Nat,set] means
      ex zk be Element of (4-tuples_on      proof
      st $2 = zk & for j be Nat st j in Seg 4
      holds ex textij assume
      st  PNi]
Q1:   for k be Nat st k in Seg 4 ex zk being
      Element of (4-tuples_on (8-     java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 9
      proof
        let k be Nat;
        assume k in Seg 4;
        then k in dom text by Q01,FINSEQ_1:def C10      m =i+;
        then text.k in rng text by FUNCT_1:3;
          thus for k be  of  st 1 =  &k = i1holds
        then
Q13:exsbeElementof (8tuples_on BOOLEAN)st .k= s &len s = 4;
        then      text in 4tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
        defpred Pi[Nat,set] means
java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 10
          .textij;
    forjbejava.lang.StringIndexOutOfBoundsException: Range [23, 20) out of bounds for length 79
        st       st 
        java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
          let j be Nat;
          assume j in Seg 4;
  (xtk ,java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
          .   textk)by UNCT_1: E  4C10X:     m < i+1 by A2
                    1      java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
          SBT.java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
:forNat j Seg4exbeingof(- BOOLEAN)
        end        then in text           thus for k be Eleme[,]
        consider zk be FinSequence of (8-tuples_on BOOLEAN) such that
:domzk =Seg4& for jbe  st 
        holds Pi[j,zk.j] from .   8java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 28
:len=4by,             
        Q13:    ex sbe Element of (- textk.j rng textk 3;
 -uples_on (-uples_on BOOLEAN)by Q23;
        then reconsider zk as Element of 4-tuples_on (8-tuples_on BOOLEAN);
        forC13:        1=k&k <i1java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
        ex textij be Element of 8-tuples_on BOOLEAN st textij = (textk).j &
 =SBT.textij by Q22;
        hence thesis;
      end;
     considerzbe FinSequenceof4-tuples_on (tuples_on )  that
Q2:   dom z z = Seg 4 & forj beNat j in Seg 4
              holdsPi[zk.j  :ch5(18)
Q3:   len z =:len zk =  byQ22,:def 3java.lang.StringIndexOutOfBoundsException: Range [41, 42) out of bounds for length 41
      econsider z as Element  4tuples_on 8tuples_on BOOLEANj=(SBT".(textij)byQ22
      by  hence ;
      z in 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)) by Q3considerzbeFinSequence 4tuples_on 8tuples_on BOOLEAN) such that
      then reconsider z as Element of
      -tuples_on BOOLEAN));
      take z;
      for i,j        thenkey.k in 4tuples_on(8-tuples_on BOOLEAN)
      ex textij be Element of 8-tuples_on BOOLEAN st textij =Q1: sjava.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
      (z.i).j = st textij textk.1&=keyk.1 & 2= textij;
      java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
        let i,j be Nat        let i,j be Nat;
        assume
Q4:     i in Seg 4 & j in Seg 4;
        then ex zi be Element of (4-tuples_on (8-tuples_on BOOLEAN))
        st z. = zi &for be Nat stj in Seg 4 holds
        ex textij be Element of 8-tuples_on BOOLEAN st textij = (text.i).j &
.j=.java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 34
        hence ex textij be Element of 8-tuples_on BOOLEAN
        st textij = (zij=(SBT)(textij)by          then t=()j Element of tuples_on java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
      end;
      hence thesis;
    end      cases;
    consider I be Function of          thenreconsiderjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 10
    4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)) such that
A2:  xbeingElementof-4considerI beFunctiono -tuples_on(-tuples_on (tuples_onBOOLEAN)java.lang.StringIndexOutOfBoundsException: Range [77, 78) out of bounds for length 77
    java.lang.StringIndexOutOfBoundsException: Range [32, 9) out of bounds for length 43
    take I;
    A2: for x beingElement of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
  end;
  uniqueness
  proof
    let F1,F2 be Function of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
    4-tuples_on( thus thesis A2;
assume
A1: for text be Elementuniqueness
      proof
    ext F2beFunctionof-tuples_on(4-tuples_on (-tuples_on BOOLEAN),
    ((F1.text).i).j = SBT.(textij);
    assume
A2: for text be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
    holds ij st zktuples_on ();
    ex textij be Element of 8-tuples_on BOOLEAN st textij = (text.i).j &
    ((F2.text).i).j = SBT.(textij);
    now let text be Element of               then
      now let i,j be Nat;
        assume
A3:    i in Seg 4        for 16    olds forij be Nat st iin Seg stextij =.  =eyk.&k.j=Op-XORtextij,keyij)
        then
A4:    ex textij be hence
        ((F1.text).i).j = SBT.(textij) by A1;
  QQ1 be Element of 4-tuples_on (8-tuples_on BOOLEAN) such that
        (.text.i).    
        thus beElement of 4-tuples_on(4- 8-tuples_on BOOLEAN)
      end;
      hence F1.text = F2.text by LM01;
    end;
    hence F1 = F2 by FUNCT_2:63;
  
end;

definition
SBT
  then
  of44:extextij eElement of 8 BOOLEAN sttextij =(text.i) &
  4-tuples_on(4-        (F1.text)i.j =(SBT)(textij) byA1java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
   QQ2  Element tuples_on (-tuples_on BOOLEAN)such that(extij BT")(textij)Ajava.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
forinput beElement of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
  holds
  ex inputij be Element of 8-tuples_on BOOLEAN st inputij = (input.i).j &
  ((it.input).i).j = (SBT").(inputij);
  existencethen
  proof
     4-        then exzibe Element  - (8uples_on BOOLEAN))
    Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))] means
java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 51
    ex inputij be Element of 8-tuples_on BOOLEAN st inputij = ($1.i).j &
    ($.i       textij=texti)j&keyij=(.i. java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
A1: for text being Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
    ex be Element  4tuples_on    java.lang.StringIndexOutOfBoundsException: Range [23, 21) out of bounds for length 22
    P0[text,]
    
      let text be Element of 4-A5 inputij = (input.i).j        z).j=Op-textij,keyij)by Q4;
      text in 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
      then      end;
Q01:  ex s be Element of (4-    thus (((InvSubBytes(SBT)).SubBytes(SBT).input).)j = java.lang.StringIndexOutOfBoundsException: Range [62, 54) out of bounds for length 54
      len s = 4;
                  end
      ex zk be Element of (4-tuples_on (8-tuples_on BOOLEAN)) st $2 = zk &
        hence (InvSubBytes(BT))((SubBytesjava.lang.StringIndexOutOfBoundsException: Range [37, 14) out of bounds for length 14
      ex textij be Element of 8end;
      zk        end;
Q1   k stk inSeg4
exzk      end;
A2: for ,ybeingElement of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
besx,.,]rom :sch
        assume  input  Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
        then k in dom text by Q01,FINSEQ_1:def 3;
        then text.k in rng text by FUNCT_1:3;
        then text.k in 4-tuples_on (8-tuples_on BOOLEAN);
        then
Q13:    ex s be Element of (8-tuples_on BOOLEAN)* st text.k =java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 49
        by DefSubBytes
        defpred [Nat,set]means.). L10,1
        ex be of -BOOLEAN textij =(nput.j&
        $2 = (SBT").(textij);
Q18:    for j be Nat st j in Seg 4 ex xi beingnow let i0 be ;
        st Pi[j,xi]
        proof
          et j be Nat;
          assume j in Seg 4;
          then j in dom(textk) by hence (SubBytes(SBT)).((InvSubBytesSBT).input)=input          then reconsider i = i0-1 as Element of NAT by XREAL_1:48,I
          then (textk).j java.lang.StringIndexOutOfBoundsException: Range [0, 27) out of bounds for length 22
          then reconsider textkjjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
          (SBT").(textkj) = (SBT").(textkj);
;
        end;
        consider zk be FinSequence of (8-java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 18
Q22:    dom zk = Seg 4 & for j beQ22:    dom zk = Seg 4 & for j be of8-tuples_onBOOLEAN
         kjfromFINSEQ_1
Q23  thus f is one-to-one& f is onto & g         suppose
        reconsider zk as java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 4
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
        then reconsider
        for j be Nat st j in Seg 4 holds
         beElement  8-uples_onBOOLEANst 4tuples_on(-(-BOOLEAN) 
        zk.j = (SBT").(textij) by Q22;
         D
      end;
z  H1i byP13;
Q2:   dom z = Seg 4 & for i be Nat st i in Seg 4
      holdsP[i,. fromFhence F1.(text,key) = F2text,key by LM01;
Q3:   len z = 4 by Q2,FINSEQ_1:def 3;
zas;
          hence = F2byBINOP_1java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 10
      z       henc H1i. =H2i.
      then reconsider z as
      Element of 4-java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 4
      take z;
      for i,jbegin :: Key Expansion
      ex textij be Element of8tuples_on BOOLEAN st textij = (text.i).j
      (    foribe  stiin  4 holds
      proof
        let i,j be Nat;

Q4:     i in Seg 4 & j in Seg 4;
 then exzibe  func SubWord(SBT) -> Element of 4-tuples_on (8-tuples_on BOOLEAN) means
        .=& jbeNatj in Seg holds
        ex textij be Element of 8-java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 14
        zi.j = (SBT").(textij) by Q2letx  Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
        hence ex textij        4(  projava.lang.StringIndexOutOfBoundsException: Range [7, 8) out of bounds for length 7
        st textij = tof(4tuples_on (8-tuples_on BOOLEAN)* st x =&
      end;
      hence thesis;
    nd
    consider I be Function of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
    4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)) such that
      exzkbeing Element of (-tuples_on (-tuples_on BOOLEAN
    holdsx in 4-java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 45
   java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 11
    thus thesis by A2;
  end;
  uniqueness
  proof
    let F1,F2 be Function of        then
    4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
    assume
:fortext be  of 4-4-tuples_on(8-java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 12
    holds    end;
extextijbe 
    (P2: ex beElement of (-tuples_on BOOLEAN)* st =s & len s= 4;
    assume
A2: for text be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
java.lang.StringIndexOutOfBoundsException: Range [36, 4) out of bounds for length 57
    ex textij be Element of 8-tuples_on    ex z be
    ).).j = (SBT").(textij);
    now    Element of      thus. =()x)java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
      now let i,j be Nat;
        assume
A3      in  A3:     i in Seg 4 
        then
A4end;
        ((F1.text).i).j = (SBT").(textij) by A1;
A5:     ex textij be Element of 8-tuples_on ls ;
        ((F2.text).i).j = (SBT").(textij) by A3,A2;
        thus ((F1.text).i).j = ((F2.text).i).j by A4,A5  end;
      end;
      hence F1.text = F2.text
    end;
    hence F1 = F2 by FUNCT_2:63;
  end;
end;

definit
  for input be Element of 8-tuples_on BOOLEAN
  holds (SBT").(SBT.(input)) = input
proof
  let input func RotWordx ->a1=i&XX1 sbeEof4--
  thus (SBT").(SBT.(input)) = ((SBT")*SBT).input by FUNCT_2:15
    .= (id (8-tuples_on BOOLEAN)).input by FUNCT_2:61
    .= input;
end;

INV08A:
  for input be Element of 8-tuples_on BOOLEAN
  holds SBT.((SBT").(input)) = input
proof
  let input be Element of 8-tuples_on BOOLEAN;
  thus SBT.((SBT").(input)) =java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 27
    .= (id (8-tuples_on BOOLEAN)).input by FUNCT_2:61
    .= java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
end

theorem INV07:
input beof 4tuples_on-tuples_on (8-tuples_on BOOLEAN))
  holds (InvSubBytes(SBT)).((SubBytes(SBT)).input) = input
proof
  let input be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
  let ijbeNat;
    assume
A3: i in Seg 4 & j in Seg 4;
    then consider outputij be Element of 8-tuples_on BOOLEAN such that
A4: outputij = (((SubBytes(SBT)).input).i).j &
    (((InvSubBytes(SBT)).((SubBytes(SBT)).input)).i).j = (SBT").(outputij)
    by DefInvSubBytes;
    consider inputij be Element of 8-tuples_on BOOLEAN such that
A5: inputij = (input.i).j & (((SubBytes(SBT)).input).i).j = SBT.(inputij)
    by DefSubBytes,A3;
   ((InvSubBytes(BT)).(SubBytes(BT).nput)..  inputi.
    by A4,A5,INV07A;
  ;
  hence (InvSubBytes(SBT)).((SubBytes(SBT)).input) = input by LM01;
end;

theorem INV08:
ut  Elementn2 4*byZZ8,XXREAL_0:java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
  holds (SubBytes(SBT)).((InvSubBytestinmtuples_on (tuples_onBOOLEAN);

  let input be Element  existence
  now let i,j be X2: proof
    assume
A3:
    then consider    end;
A4: outputij = (ZZ12:   1 <= 4*n+4 by ZZ4,XREAL_1:7;
    (((SubBytes(SBT)).((InvSubBytes(SBT)).input)).i).j = SBT.(outputij)
by 
    consider inputij be Element of 8-tuples_on BOOLEAN java.lang.StringIndexOutOfBoundsException: Range [0, 59) out of bounds for length 14
A5: inputij = (input      let xbeElementof4-tuples_on(4-tuples_on (8-uples_on java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 35
    (InvSubBytes(SBT     in(ntuples_on BOOLEAN in -tuples_on(tuples_on 8tuples_on )java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
    thus (((SubBytes(SBT)).((InvSubBytes(SBT)).input)).i).j = (java.lang.StringIndexOutOfBoundsException: Range [0, 68) out of bounds for length 10
    by A4,A5,INV08A;
  end;
  henceQ01:exs java.lang.StringIndexOutOfBoundsException: Range [13, 1) out of bounds for length 70
end;


  SubBytes(SBT) is one-   take p;
  InvSubBytes(SBT) is one-to-one & InvSubBytes(SBT) is onto &
  InvSubBytes(SBT)        let ieof  m
proof
  set f = SubBytes(SBT);
  g =InvSubBytes(SBT);
P1: for x be Element of 4-tuples_on(4-tuples_on (8Q1    k beNat st kin4
  java.lang.StringIndexOutOfBoundsException: Range [8, 5) out of bounds for length 55
P2: for y be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))

  thus f is one-to-one & f is onto &        assumek inSeg 4;
  g = f" & f = g"         then k in do x  ,FINSEQ_1:ef 3
end;

begin:: ShiftRowsb :;

definition
  func ShiftRows        then x. in4         =*.4n+1)w.4*2,.4*n+;
  Function 4-uples_on(-tuples_on (-tuples_on BOOLEAN)),
  4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)) means
  :efShiftRows
  for input be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
  holds (for i be Nat st i in Seg 4 holds
  ex xi be Element of 4-tuples_on (8-tuples_on BOOLEAN) st xi = input.i &
  (it.input).i = Op-Shift(xi,5-i));
  existence
  proof
    defpred Elementof 4-java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 15
    Element FINSEQ_1: 51java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
    for i be Nat st i in Seg 4 holds
eFinSequenceof(tuples_on BOOLEAN);
    $2.i = Op-Shift(xi,5-i);
A1: for x being Element of 4-tuples_on(4-tuples_on,DESCIP_1:def 3;
    ex z be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
    st P0[x,z]
    proof
      x  Elementof 4-tuples_on(4-tuples_on (-tuples_on BOOLEAN));
      x in 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
      then
Q01:  ex s be Element of (4-tuples_on (8-tuples_on BOOLEAN))* st x = s &
      len s = 4;
      defpred P[Nat,set] means
      ex xk be Element of 4-tuples_on (8-tuples_on BOOLEAN) st xk = x.$1 &
          hence thesis;
Q1:   for k be Nat st k in Seg 4
      ex zk  
proof
        let k be Nat;
        assume k in Seg 4;
            let,H2 Element ofmtuples_onjava.lang.StringIndexOutOfBoundsException: Range [39, 12) out of bounds for length 12
        then
Q11:    x.k in rng x by FUNCT_1:3;
        );
java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 12
Q13:    ex s be Element of (8-tuples_on java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 25
        then reconsider xk = x.k as Element of (8    end;
        reconsider xk1 =xk f st 1-&
        by Q11;
        reconsider zk = Op-Shift(xk,5-k) as
FinSequence of (8-tuples_on BOOLEAN);
Q15:    len zk = 4 by Q13,DESCIP_1:def         p.(i+)=<w(4f  Element of(tuples_on(-java.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 73
   asElement (-tuples_on BOOLEAN*+*java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
        zk in 4-tuples_on (8-tuples_on BOOLEAN) by Q15;
        java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 75
exxkbeElement  4tuples_on(-uples_on  xk=thenreconsider=a of java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 48
        zk = Op-Shift(xk1,5-k);
        hence thesis;
      ;
      consider z be FinSequence of 4-tuples_on (8-tuples_on BOOLEAN) such that
Q2:       takeI;
] fromhH1H2by    thus by A2;
Q3:   len z = 4 by Q2,FINSEQ_1:def 3;
      reconsider z as Element of (4-     end;
      by FINSEQ_1:def 11;
        44tuples_on(tuples_on BOOLEAN)) by Q3;
      java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
    end;
    considerI be Function -tuples_on(-java.lang.StringIndexOutOfBoundsException: Range [0, 53) out of bounds for length 7
    4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)) such that
A2:for x being Element of -tuples_on(tuples_on (- BOOLEAN)
    holds P0[x,I.x] from FUNCT_2:sch 3(A1);
    take I;
    thus thesis by A2;
  end
  uniqueness
  proof
    let H1,H2 be Function of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
    4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));

(8-tuples_on BOOLEAN))
    holds (for i be Nat st i in Seg 4    exwbe of *+)-(-java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 78
    ex xi be Element of 4-tuples_on (8-        assume 1 <= i & i <= len (H1.input);
(..i=OpShiftxi    i  3;
    assume
A2: for input be Element of 4-tuples_on(4-tuples_on (8-tuples_onXX3:exxi be Element  8java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 79
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 43
    ex xi be Element of 4-tuples_on (8-tuples_on BOOLEAN) st xi = input.i &
(.)i = -Shift*,Key XX2;
             (H1.input).i=(.input).i by XX3  it..4 =< (Key)i1 w(w4+2,.(*i+,.4i+)>
      H1.input in 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
      then
 ex<,,java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
      len s = 4;
      H2.input in 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
      then
P4:   ex s be Element of (4-tuples_on(8-tuples_on BOOLEAN))* st H2.input = s &
      len s = 4;
      now let i be Nat;
        assume 1 <= i & i               in  it.8= *,>*,,,0,000<000>
        then
XX2:    i in Seg 4 by P3;
        hen
XX3:    ex xi be Element of 4-tuples_on (8-tuples_on BOOLEAN)
        st xi = input.i & (H1.input).i = Op-Shift(xi,5-i) by A1;
XX4:    ex xi be Element of 4-tuples_on (8-tuples_on BOOLEAN)
        st xi = input.i & (H2.input).i = Op-Shift(xi,5-i) by A2,XX2;
        (.input. = (.input).i by XX3,XX4;
      end;
      hence   now  i be Nat;
    end;
    hence H1 = H2 by FUNCT_2:63;
  endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
end;

      H2.nput) in
  func InvShiftRows ->
Function of4tuples_on(4-       7tuples_on (-tuples_on4tuples_on(-java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 71
  4-tuples_on iBOOLEANjava.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
  :DefInvShiftRows:
bejava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 72
  holds (for i be Nat st i in Seg 4     xi in 4-tuples_on (8-tuples_on BOOLEA
xi java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 73
  (it.input).    consider yi be Element java.lang.StringIndexOutOfBoundsException: Range [0, 29) out of bounds for length 23
  existence
  proof
    XX4: yi = (.P3<,,* isElement f(tbyL0X1
    Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))] means
        then i-1 in NAT byXREAL_1:48,INT_1  java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 27
           H2)(+)byP6,java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
    $2.XX2<*;
A1: for x being java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
    ex z be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
st P0
    proof
let xbeElement of 4-    then
      x Eex  java.lang.StringIndexOutOfBoundsException: Range [23, 20) out of bounds for length 69
      then
Q01 ex  beElement  4tuples_on 8tuples_on BOOLEAN))* st x = s &
      len s = 4;
           .InvShiftRowsoutput)i=Op-yi,java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 79
      ex xk be Element of 4-tuples_on (8-tuples_on BOOLEAN) st xk = x.$1 &
      $2 = Op-Shift(xk,$1-1);
Q1:   for k be Nat st reconsider PP8IP_1:,
      ex zk being     <*0,0,0,0*>^<*0,0,0,0. output. DESCIP_1:,YY1,java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
     
        let k be Nat;
        java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 72
        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);

Q13:    ex s be   InvShiftRows is one-t-one & InvShiftRows is onto &
        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 ;
        0,0>^java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
        of8tuples_onjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
Q15:    len zk = 4 by Q13,DESCIP_1:def    reconsider PP11 = <*    reconsider PP11 = <* <*0,0,1,0*>^<*0,0,0,0*>n BOOLEAN)) means
sElementof(tuples_onBOOLEAN)*by FINSEQ_1def ;
        java.lang.StringIndexOutOfBoundsException: Range [25, 10) out of bounds for length 55
        then reconsider zk as Element of 4-tuples_on (8-tuples_on BOOLEAN);
        ex xk  4-tuples_on((-tuples_on 8tuples_on BOOLEAN)
t-BOOLEAN) n being 1=n& n<Nr
        hence thesis;
Q18        <01<,0<00,>*0,         jxi]
      consider z be FinSequence of 4-tuples_on (8-tuples_on BOOLEAN) such that
 Nat      Element of 4-tuples_on(4-tuples -uples_on ;
      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;
            thus[n,z,y];
      hence thesis by Q2;
    end;
    consider I be Function of 4-      holds P[i,z.i] from FINSEQ_1:sch 5(Q1);
    4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)) such that
java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 73
    holds P0[x,I.x] from FUNCT_2:sch 3(A1)     byFINSEQ_1: ;
    take I;
    thus thesisjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
  end;
  uniqueness
  prooffrom RECDEF_1sch 4(X1;
    let H1,H2 be Function of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
    4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
    assume
A1: inputbeElement of -tuples_on1in Seg 
    holds (for i be Nat st i in Seg 4 holds
     xiElementFINSEQ_1:ef,java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
    (H1.input).i = Op-Shift(xi,i-1));
       java.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
A2: for input be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
    holds (for i be Nat st i in     2 in Seg        
    ex xi be Element of    then 2indom  by FINSEQ_1:ef ,A2;
(.i in Seg  4 jin Seg 4
    now let input be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
      H1.input in       H1.input in 4-tuples_on(4-tuples_on
      then
P3:exs  Elementst.i=zi & forjbebe Element of 8-tuples_on BOOLEAN
      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 =       <byjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
      now let i be Nat;
        assume 1 <= i & i <= len (H1.input);
        java.lang.StringIndexOutOfBoundsException: Range [62, 12) out of bounds for length 62
XX2:    i in Seg 4 by P3;
        then
XX3            a 0java.lang.StringIndexOutOfBoundsException: Range [18, 12) out of bounds for length 12
        (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 &
        (H2.input).i = Op-Shift(xi,i-1) by A2,XX2;
        thus (H1.input).i = (H2.input).i by XX3,XX4;
      end;
      hence H1.input = H2.input by P3,P4,FINSEQ_1:14;
    end;
    H1  byFUNCT_2:63java.lang.StringIndexOutOfBoundsException: Range [32, 33) out of bounds for length 32
  end;
end;

Ijava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
  for input be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
  holds InvShiftRows.(*>*0,0,00*>,<*0,00,0*^<0,,0,  )->Element of(-tuples_on(8-tuples_on BOOLEAN))) such that
proof
java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 73
  InvShiftRows.(ShiftRows.input) inbeing Element  8R2. <,0*<000>*,*<*00*,
  4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
  then
e(-java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 58
        let k beNat;
  inputin -ples_on(-uples_on (8-  BOOLEAN));
  then
P4: ex s be Element of (4-tuples_on(8-tuples_on BOOLEAN))*
  st input = s & len s = 4;
  now let i be Nat;
    assume 1 <= i & i <= len (InvShiftRows.(ShiftRows.input));
    
XX2: i in Seg 4 by P3;
    then consider xi be Element of 4-tuples_on (8-tuples_on BOOLEAN) such that
XX3: xixi = input.i & (ShiftRows.input) <0,00,*><,0*<0,000*>0,,,0**>java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
    xi in 4-tuples_on (    R2.6 = * <*,0,,0>^<*0,0,0*, hence thesis;
    then
YY1: ex s be     <*0,0,0,0*>^<*0*00,0,*end;
    consider yi be Element of 4-tuples_on (8-tuples_on BOOLEAN) such that
  =ShiftRows.).i &
(.SBT,)(   ,p]fromP1java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
yDefInvShiftRowsX;
   thus(InvShiftRows(input)    len p= 4byP3FINSEQ_1:def 3;
        <*,00><0,,    then p4tuples_on (8-tuples_on BOOLEAN)java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
      . input.    then reconsider  of4tuples_on(-BOOLEAN;
  end;
  hence (InvShiftRows.(ShiftRows.input)) = input by    <0,000><0000><0,0,,0><00,0,=Nremento-tuples_on OOLEAN st xi = i&. BTxi
end;

theorem INV05:
  for output be Element of    <0,,,*^*,,,*,*hence thesisst  KyExpansion(SBTm.) java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
 1=(    seq2.1 = AddRoundKey.(text-uples_onBOOLEAN)
proof
java.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
  java.lang.StringIndexOutOfBoundsException: Range [13, 11) out of bounds for length 36
  4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
java.lang.StringIndexOutOfBoundsException: Range [37, 2) out of bounds for length 6
P3: ex s be Element of (4-tuples_on(8-tuples_on BOOLEAN))*
  st ShiftRows.(InvShiftRows.output) = s & len s = 4;
  output in
  then
P4: ex;
  
  now let i be Nat;
assume 1 <i&i<= ment of NAT;
    then
XX2: i in Segmeans
    then consider xi bethus.i1 java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
    such that
XX3: xi = output.i &
    (InvShiftRows.output).i = Op-Shift(xi,i-1) by DefInvShiftRows;
    xip
    then
  existence
consider    java.lang.StringIndexOutOfBoundsException: Range [7, 8) out of bounds for length 7
XX4: yi = (InvShiftRows.output)XX1:1 < i &i <Nr NAT_114    being Element of (4-tuples_on (8-tuples    Nat kin Seg mex being Element of n-tuples_on BOOLEAN
    (ShiftRows    tT3=Rcon(/m)&= Op-WXORSubWordproof
    thus (java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 9
    by XX3,XX4,DESCIP_1:10,YY1
.=LTT0 /is by :17
  end;
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 35
end;

theorem
   is one-to-one & ShiftRows is onto &
  InvShiftRows is one-to-one & InvShiftRows is onto &
  InvShiftRows = (ShiftRows)" & ShiftRows = (InvShiftRows)"
  by INV00,INV04,INV05;

begin :: AddRoundKey

definition
  func      i/m <= 10
  unction [:(-(java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 63
  4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)):],
      then reconsider      then reconsider 550,XXREAL_0:,Q52
  ::
  for text, key      Op-    then      end;
  holds for i,j be Nat st i in Seg 4 & j in Seg 4
  holds ex textij,keyij be Element of 8-tuples_on BOOLEAN
  st          end;
  (it.(text,key)).)j = Op-(    end;
  existence
  proof
    defpred P0[Element of 4-tuples_on(4-tuples_on (8-tuples_on  hencethesis by LTT5,XXREAL_0:2;
    Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
        then reconsiderpuples_onnjava.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
   inSequenceof-java.lang.StringIndexOutOfBoundsException: Range [41, 39) out of bounds for length 75
&$i)
A1: for text,key
    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))
    t [text,key,z]
    proof
      let text, key
  Keyi1 =((((,).Key))1        H1i=Oconsistency
      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;
      key in 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
      
Q02:   s java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
      st key = s & len s = 4;
        means
      exzkbeof 4tuples_on 8it.1 Function-tuples_on(8java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 61
st2   & j  Nat j n Seg 4  forof(-uples_on 8tuples_on BOOLEAN)),
      holds ex textij,keyij be Element of 8-tuples_on BOOLEAN
      st textij = (text.$1).j & keyij = (key.$1).j &
.  -textij);
:for k Natt).+)=-WXORPBTi,))java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
      Element of (4-tuples_on (8-tuples_on BOOLEAN)) st P[k,zk]
      proof
        let k be Nat;
        
     of(4*( = then+m- in 3
        then k lement  NAT st   m  $2(+)= 1(+thenjava.lang.StringIndexOutOfBoundsException: Range [22, 19) out of bounds for length 38
        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:1 in      0+1 in -ples_on(- (t BOOLEANjava.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
        k in dom(key) by P2: <0then n+1in dom ) by FINSEQ_1:def 3,XX12;
        then key.k inement of (-tuples_on BOOLEAN) by LMGSEQ4,X1
        then key. in 4-tuples_on(8-tuples_on BOOLEAN);
        then
Q16:    ex s be Element of (8-tuples_on *000> is          for z being Element o zbeingElement of   of 4-tuples_on(4-(- BOOLEAN);
        .=  lens=java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
        then reconsider keyk = key.k as Element of (8-tuples_on BOOLEAN)*;

        ex textij,keyij be Element of 8-tuples_on BOOLEAN
        st textij = (textk).$1 & keyij = (keyk).$1 & $2 = Op-XOR(textij,keyij);
Q18:    for j be Nat st j in Seg 4 ex xi being Element of (8-tuples_on BOOLEAN)
        st Pi[j,xi]
        proof
letjbe Nat;
          assume
Q19:      j in Seg          reconsider i  kdivjava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 42
           3
          then (textk).j in rng (textk) by FUNCT_1java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 27
          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 inthen InvShiftRowsMCFunc.seq1Keyi) java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
          then reconsider ex KeyNr be Element of 4-tuples_onElement  -4-java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 68
          Op- zi tuples_on(-tuples_on 8tuples_on
          hence thesis;
        end;
        consider zk be FinSequence of (8-tuples_on    consider seq2 be
22:dom zk   4&for j  NatstjinSeg java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
        holds Pi[j,zk.j] from          then indomzibyQ0;
Q23:    len zk = 4 by Q22,FINSEQ_1:def 3;
        reconsider zk as Element of (8-java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 43
        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
        holdsex ,keyijbe Element of 8-tuples_on BOOLEAN
        st textij = (textk).j & keyij = (keyk).j & zk.j = Op-XOR(textij,keyij)
    (or i be Natst 1 <=  & i < Nr holds
        hence thesis;
      end;
      consider((k mod-uples_on (-BOOLEAN))
Q2:   dom z = Seg 4 & for i be Nat st i in Seg 4
      holds P[,z.i] from FINSEQ_1:sch 5(Q1);
 suppose
      reconsider z as Element of (4-tuples_on (8-tuples_on BOOLEAN))*
      ex KeyNr be Element 4tuples_on(-R1. =  0,,*^*0,0,*>000*<,,0*java.lang.StringIndexOutOfBoundsException: Range [62, 63) out of bounds for length 62
       44tuples_on (-java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 64
      Nat java.lang.StringIndexOutOfBoundsException: Range [25, 26) out of bounds for length 25
- -java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 64
      take z;
      for i,j be Nat st i in Seg 4 & j in Seg 4 holds
      textijkeyijbe java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 67
      (text.i).j & keyij = (key.i).j & (z.i).j = Op-XOR(textij,    R1.4=< <*,00><proofthen in Seg N2by
      proof
        let i,j be Nat;
        ssume
Q4Q:EQ[i]java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
        then ex zi be Element of (4-tuples_on (8-tuples_on BOOLEAN))
        st z.i = zi & for j be R1.6 = <* <*0,0,1,0*>^<*0,0,0,0>,<0      then
        extextij,keyijbe <000>*&
        ttextij =(ext.)  keyij = (.).j &
        zi.j= Op-XOR(textij,keyij) by Q2;
        hencethen ex  (tuples_on (-BOOLEAN)*
        st textij = (text.i).j & keyij = (key.i).j &
        (.)j  Op-textij, <          
          R1.9 .  <<0,0,1*<1011><00       =     =;
      hence thesis;
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 8
    considerI Function of [4tuples_on(4tuples_on 8tuples_on java.lang.StringIndexOutOfBoundsException: Range [0, 76) out of bounds for length 10
    4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)):],
    4-tuples_on(java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
A2: for x,y being Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))

    take I;
    thus thesis by A2;
java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 6
  
  proof
F1,be  of[:4uples_on(tuples_on (8-tuples_on BOOLEAN)),
    4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)):],
    4-s ((java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 60
    assume
:text,of 4tuples_on-(-BOOLEAN))
    holds for i,j      
   holds ex 4*mby
    st textij = (text.i).       in(4tuples_on 8tuples_on BOOLEAN)) bydef;
   (1(,key).),seq1.1=(1java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
    assume
A2 textkey beElementoftuples_on4tuples_on(-BOOLEAN)
    holds for i,j be Nat st i in Seg 4 & j in Seg 4
    holds ex textij,keyij be Element of 8-tuples_on BOOLEAN
    st textij = (text.i).j & keyij = (key.i).j &
    (.(ext,ey).i).  OpXOR(textij,keyij;
    now let text,key be
    Element of 4-tuples_on(    <*0,,,*>^<0,,,*,*0000><000,0 etjava.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 39
      now let i,j be Nat;
        assume
A3     iin 4 & j in:1 k+  +<m11,
        then
A4:     ex textij,        then 1<= kjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
        st textij = (text.i).j & keyij = (key.i).j &
        ((F1(key)f  -
A5:     ex textij,keyij be Element of 8-tuples_on BOOLEAN
<,0  Mjava.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 40
        ((F2.(text,key)).i).j = Op-XOR(textij,keyij) by A3,A2;
        .j byA4,A5;
      end;
       F1.textsthat
    end;
    hence F1 = F2 by BINOP_1:2;
  
end;

begin :: Key Expansion

definition
  let SBT;
  let x be Element of 4-tuples_on (8-tuples_on BOOLEAN);
  unc SubWord(SBT,x) -> Element of 4-tuples_on (8-tuples_on BOOLEAN) means
  for i be           thenthen
  existence
  proof
LAST01
    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
     ,java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
    proof
      letkbe java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
assume
AS:   k in Seg 4;
EAN)
      then ex s be Element of (8-tuples_on BOOLEAN func KeyExTemp(,miw -> Elementuples_on BOOLEAN)
      then k in dom x by FINSEQ_1:def 3,      st P = u.(k-)+1)&Q= u.k &-  ,
      text bei  -S((
      then reconsider xk = x.k as Element of 8-tuples_on BOOLEAN;
s Element of 8tuples_on BOOLEAN;
      hence thesis;
       ;
    nvSubBytesjava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 68
:dom      fork be 
    P[k,p.k] from FINSEQ_1:sch 5(P1);
    reconsider p as java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 21
    len p = 4 by P3,FINSEQ_1:def 3;end
     p in 4tuples_on (8-tuples_on BOOLEAN);
    then reconsider p as Element of 4-tuples_on (8-tuples_on BOOLEAN);       thenk+ in Seg (4(+));
    take p;
    now let i be Element of Seg 4;
      ex xi be Element of 8-tuples_on BOOLEAN st xi = x.i & p.i = SBT.(xi)

      hence p.i = SBT.(x.i);
    end;
    hence thesis;
  ;
  uniqueness
  proof
    let H1,
    assume
A1: for i be Element of Seg 4 holds H1.         km1   of4uples_on (java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
    assume
2:for be Element of java.lang.StringIndexOutOfBoundsException: Range [34, 30) out of bounds for length 34
    H1 in 4-tuples_on (8-tuples_on BOOLEAN);
    then
P1: ex s be Element of (8-tuples_on BOOLEAN)* st H1 = s & len s = 4;
    H2 innow per ases by java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
    then
P2: ex s be Element of (8-tuples_on BOOLEAN)* st H2 = s & len s = 4;
    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          (ex P0Q0 be Elementof4-tuples_on fmbeNat
  Op-LeftShift(x);
  correctness by DESCIP_1:6;
end;

definition
  let n,m be non zero Element of NAT;
  let s,t be Element of m-tuples_on (n-tuples_on BOOLEAN);
  func Op-WXOR(s,t) -> Element of m- Qbe  4 thesis;
  for i be Element of Seg m holds it.i = Op-XOR(s.i,t.i);
  existence
  proof
    defpred P[Nat,set] means
   java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 75
    $2 = Op-XOR(si,ti);
P1: for k be Nat st k in Seg m ex z being Element of n-      reconsider j=i/ as Nat by LTT4;
    st 
    
      let k be Nat;
      assume  assume
AS:   k in Seg m;
          s in m      zi1 z,NC1w),3
      then ex v be Element of (n-tuples_on BOOLEAN)* st s = v & len v = m;
      then kindom sby :def3,     thesis;
        et java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 26
      then reconsider sk = s.k as Element of n-tuples_on BOOLEAN;
      t in m-tuples_on (n-tuples_on BOOLEAN)  (+)tuples_on(thusnot(= . i0 N;
      then ex v be Element of (n-tuples_on BOOLEAN)* st t = v & len v = m;
     
      then t.k in rng t by FUNCT_1:3;
      then reconsider tk = t.k as Element of n-tuples_on BOOLEAN;
;
      hence thesis;end;
    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 5byC18,            by C18,C19
P4: len p = m by P3  now let i,jbe Nat
    p in (n-tuples_on BOOLEAN assume
    then p in m-tuples_on (n-tuples_on BOOLEAN) by P4;
    then reconsider p as Element of m-tuples_on (n-tuples_on BOOLEAN);
takep;
   nowA4: etextij (.).   =ekeyi) &
      ex si,ti be Element of n-tuples_on BOOLEAN st si = s.i & ti = t.i &
      p.i = Op-XOR(si,ti) by P3;
      hence p.i = Op-XOR(s.i,t.i);
    end;
    hence thesis:=(AddRoundKey.(,ekeyi))i)j  dkeyij=(i.j java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
  end;
  uniqueness
  proof
    let H1,H2 be Element of m-tuples_on (n-tuples_on BOOLEAN);
    assume
end
    assume
A2: for i be Element of Seg m holds H2.i = Op-XOR(s.i,t.i);
    H1 in m-tuples_on (n-tuples_on BOOLEAN);
    then
P1:LAST04:
    H2 in m-tuples_on (n-tuples_on BOOLEAN);
    then
exv beElement of (n-tuples_on BOOLEAN)* st H2 = v &   text,otext be Element of 4-tuples_on(4-tuples_on (8-tuples_on),
    now let i be Nat existence
      assume 1 <= i &  proof
      then i in Seg mby P1;
      then reconsider j = i as Element of Seg m;
      thus H1i=Op-OR(s.tj byA1
        .= H2.i by A2;
    end;
    hence H1 = H2 by P1,P2,FINSEQ_1:14;
  end;
end;

definition
  func Rcon -> AS: (m = 4 or m =6or  =8)(KeyExpansion(,).Key). java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
  means
  it.1 = <* <*0,0,0,0*>^<*0,0,0,1  otext  AddRoundKey.(ShiftRows*SubBytes(SBT))text,KeyNr)java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
    
  it. text byLAST01;
    <*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,    (for beElementof  st  < i & i < 4*7+) holds
    <0,,,0><000,0*,<*0,,,*>^;
  it.4 = <* <*0,0,0,0*>^<*1,0,0,0*>,<*0,0,0,0*>^<*0,
<*,,,*^*,,,*,*,,,*^*,000* *&    st P  2(im+)&Q=(2. &
  it.5 = <* <*0,0,0, $2.(i+1) = Op-WXOR(P,KeyExTemp(SBT,m,i,Q)));
    <*0,0,  for m beNat,
  it.6 = <* <*0,,,*^<*00,,*,*,,,*^0,0,0*>,
    <*0,0,0,0*>^<*0,0,0,0*>,<*0,0,0,0*>^<*0,0,0,0*> *> &
  it.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*>,<*0,0,0,0*>^<*0,0,0,0*> *> &
  it.8 et x  Element ofmtuples_on(4-tuples_on (8-tuples_on BOOLEAN));
    <*0,0,0,0*>^<*0,0,0,0*>,<*0,0,0,0*>^<*0,0,0,0*> *> &
  it9=<* <*0,0,0,1*>^<*1,0,1,1*>,<*0,,,*^*,,00>
    <*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,0*>^<*0,0,0,0*> *>;
  existence
  proof
X0 0inBOOLEANbyTARSKI: 2,ARGREL1def ;
X1 1inBOOLEAN  TARSKIkey Element m-(-8tuples_onBOOLEAN))
: <*0,0,0,0*> is Element of (4-tuples_on BOOLEAN) by LMGSEQ4,X0;
2: <*000,1*> is Element of (4-tuples_on BOOLEAN)by LMGSEQ4,X0,1
P3: <*0,0,1,0*> is Element of (4-tuples_on BOOLEANP           byC18C19,LX34,C16,:( 4m o  =)& (eyExpansion(SBTjava.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
P4: <*0,1,0,0*> is Element of (4-tuples_on BOOLEAN) by LMGSEQ4,X0,X1;
P5: <*1,0,0,0*> is Element of (4-tuples_on BOOLEAN) by LMGSEQ4,X0,X1;
R1: <*1,0,1,1*> is Element of (4-tuples_on BOOLEAN)  then 7+ Seg (7m;
:*,,,* Elementof4tuples_on  LMGSEQ4,,;
R3 <011* Elementof-java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 69
    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*> *> as
      4tuples_on(-BOOLEAN)byjava.lang.StringIndexOutOfBoundsException: Range [54, 52) out of bounds for length 67
    reconsider (AddRoundKey(text,keyi      (1=rbyLLX34LMOD03,LC12java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
    <    by DefAddRoundKey;
   of4tuples_on(-B  P13MGSEQ16;
    reconsider PP8 = <* <*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*> *> as
    java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 67
    reconsider PP9 = <* <*0,0,0,0*>^<*1,0,0,0udefpredXNat java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
    *0,0,0*>^<0,0.(,d)=
    Element of 4-tuples_on (8-tuples_on BOOLEAN) by P1,P5,LMGSEQ16;
    reconsider end;
    <*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 BOOLEAN) by P1,P2,LMGSEQ16;
    reconsider PP11 = <* <*0,0,1,0*>^<*0,0,0,0*java.lang.StringIndexOutOfBoundsException: Range [47, 48) out of bounds for length 12
    <*0,0,0,0*>^<*0,0,0,0*>,<*0,0,0,0*>^<*0,0,0,0*> *> as
  text, beElement of 4-tuples_on(- 8tuples_on XX1:for  being Natst <= i  i < m
    reconsider PP12 = <* <*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,0,0,0*> *> as
    Element of 4-tuples_on (8-tuples_on BOOLEAN) by P1,P4,LMGSEQ16;
    econsider  *<1000><*00java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
    <*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 BOOLEAN) by P1,P5,LMGSEQ16;
java.lang.StringIndexOutOfBoundsException: Range [44, 42) out of bounds for length 60
    <*0,0,0,0*>^<*0,0,0,0*>,<*0,0,0 (nvSubBytesi+1< m by NAT_1:,AA1;
    Element of 4-tuples_on (8-java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 8
    reconsider PP15 = <* <*0,0,1,1*>^<*0,1,1,0*>,<*0,0,0,0*>^<*0,0,0,0*>,
    <*0,0,0,0*>^<*0,0,0,          then reconsider P = s.(i+1) as
    Element of4-uples_on (8tuples_on BOOLEAN) by P1,R2,R3,LMGSEQ16;
java.lang.StringIndexOutOfBoundsException: Range [14, 4) out of bounds for length 60
    (4*(+m)-  Keyi1,KeyNr be Elemen,java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 75
    reconsider IT = Q0^Q1 as
    Element          Element of
A1 len Q0 =5&Q0 =PP6  .2          hencethesisjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
    Q0.5 = PP10 by FINSEQ_4    holds P0[x        end;
A2: len Q1 = 5 & Q1.1 = PP11 & Q1.2 = PP12 & Q1.3 = PP13 & Q1.4 = PP14 &
    Q1.5 = PP15 by FINSEQ_4:78;

    then 1 in dom Q0 by FINSEQ_1:def 3,A1;
    
R1: .1= PP6 A1,  nvSubBytes(
    2 in Seg 5;
  AA1forbe-yExTemp(BT,Q0 
    then
R2: IT.2 = holds (fori ElementofNAT  i <mholds  ybeingFinSequence -java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 75
    3 in&(  beElement ofNAT st :     leny m y =0r =0&for theorem LAST08:
    then 3         < holdsPX[i,y.i,.(+1)]from :sch  (XX1);
    then
 3  7
    4 in Seg 5;
     4 ind Q0text eElement of -tuples_on(4-tuples_on (8-tuples_on BOOLEAN),
    then
R4: IT.4  Key be Elementof m-tuples_onFinSequenceof--tuples_on 8-BOOLEAN:for Key uples_on(-tuples_on (BOOLEANjava.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
    5 in Seg 5;
    then 5 in dom Q0 by FINSEQ_1:def 3,A1;
    then
R5: IT.5 = PP10 by A1,FINSEQ_1
    1 in Seg 5;
    then 1 in dom Q1 by FINSEQ_1:def 3,A2;
    then
R10: IT.(5+1) = Q1.1 by A1,FINSEQ_1:def 7
.PP11java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
    2 in Seg 5;
    then 2 in dom Q1 by FINSEQ_1:def 3,A2;
    then
R20: IT.(5+2) = Q1.2 by A1,FINSEQ_1:def 7
      .= PP12;
    3 in Seg 5;
    then 3 in dom Q1 by FINSEQ_1:def 3,A2;
    then
R30: IT.(5+3) = Q1.3 by A1,FINSEQ_1AS:(  Q: (*m)div NAT_2;
      .= PP13;
    4 in Seg 5;
    then= Km))().7+-i &
    then
R40: IT.(5+4) = Q1.4 by A1,FINSEQ_1:def 7
      .= PP14;

    then 5 in dom Q1 by FINSEQ_1:def 3,A2;
    then
R50: IT.(5+5) = Q1.5 by A1,FINSEQ_1:def 7
      .= PP15;
     java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 54
  end;
  uniqueness
  proof
    let R1,R2 be then i in  N2;
    assume
A1: R1.1 = <* <*0,0,0,0*>^<*0,0,0,1*>,<*0,0,0  st(then   zby FINSEQ_1e3;
    <*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, thenexvbe1i1   yFINSEQ_1::def30;
    R1.4 = <* <*0,0,0A:dkeyi s zi     =mjava.lang.StringIndexOutOfBoundsException: Range [33, 34) out of bounds for length 32
    <*0,0,0,0*>^<*0,    .=ekeyi B0AS;
    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*>,<*0,0,0,0*>^<*0,0,0,0*> *> &
    R1.6 = <* <*0,0,1,0*>^<*0,0,0,0*>,<*0,0,0,0*>^<*0,0,0,0*>,
^*,,00><0,0,0,0*>^<*0,,,> 
    R1.7 = <* <*0,1,0,0*>^<*0,0,0,          Element of (-tuples_on    then consider etextij,ekeyij beElement of8tuples_on BOOLEAN such that
      texti.&ekeyij=ekeyi.) &
    R1.8 = <* <*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*>^<*0,0,0,0*> *> &
    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*(1input) in(4*7m)(  )=0
          reconsider j=mas  of then
    <*0,0,0,0*>^<*0,0,0,0*>,<*0,0,0,0*>^<XX1:          reconsideri=kdivNATjava.lang.StringIndexOutOfBoundsException: Range [53, 54) out of bounds for length 53
    assume
A2: R2.1 = <* <*0,0,ElementElementof-4tuples_on-BOOLEAN)java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
    <*0,0,0,0*>^<*0,0,0,0*>,<*0,0,0,0*>^<*0,0,0,0*> *> &
0,00><0,,10*,<*0,0,,*^<*,0,,*edKeyibeoftuples_on(4-tuples_on -tuples_on BOOLEAN))java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
    <*0,0,0,0*>^<*0,0,0,0*>,<*0,0,0,0*>^<*0,0,0,0*> *> &
    R2.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*> *> &
    R2.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*> *> &
    R2.5 = <* <*0,0,0,1*>^<*0,0,0,0*>,<*0,0,0,0*>^ then +m-inNATbyC10 m=i;
    <0000><000,*,*0,0reconsider =-asNat;
    R2.6 = <* <*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,0,0*> *> &
    R2.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*>,<*0,0,0,0*>^<*0,0,0,0*hence thesis by AS,P2assume
    R2.8 =end;
    <*0,0,0,0*>^<*0,0,0,0*>,<*0,0,0,0*>^<*0,0,0,0*> *> &
    R2.9 = <* <*theorem LASTXX:
    <*0,0,0,0*>^<*0,0,0,0*>,<*0,0,0,0*>^<*0,0,0,0*> *> &
    R2.10 = <* <*0,0,1,1*>^<*0,1,1,0*>,<*0,0,0,0*>^<*0,0,0,0*>,
<*0,,,*>,*,,,*^*,,0>*;
    R1 in 10-tuples_on (4-tuples_on (8-tuples_on BOOLEAN));
    then
XP1: ex v be Element of (4-tuples_on (8-tuples_on BOOLEAN))* st R1 = v &
    v  10
    R2 in 10-tuples_on (4-tuples_on (8-tuples_on BOOLEAN));
    then
XP2: ex v be Element of (4-tuples_on (8-tuples_on BOOLEAN))* st R2 = v &
    len v = 10;
    for i be Nat st 1 <= i & i <= len R1 holds R1.i = R2.i
    proof
      let i be Nat;
      assume 1 <=   1+  7+m byXREAL_1:;
      then i = 1 or ... or i = 10 by XP1;
      hence thesis by A1,A2;
    end;
    hence R1 = R2 by XP1,XP2,FINSEQ_1:14;
  end;
end;

definition
  let SBT;
  let m,i be Nat, w be Element of (4-tuples_on (8-tuples_on BOOLEAN));
  assume AS: (m = 4 or m = 6 or m = 8) & i <end;
KeyExTempBTmi, >Element of -(tuples_on )
  means
  (ex T3 be Element of (4-tuples_on java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 27
  it = Op-WXOR(              QQ1 be of 4-  Q0[,. FINSEQ_1:java.lang.StringIndexOutOfBoundsException: Range [39, 39) out of bounds for length 30
  (it = SubWord(SBT,w)) if (m = 8 & (i mod 8) = 4) otherwise it = w;
  existence
  proof
     (modm =0implies ex java.lang.StringIndexOutOfBoundsException: Range [35, 36) out of bounds for length 35
    being   (xbe  oftuples_on(4uples_on 8tuples_on BOOLEAN))
    st (ex T3 be Element of (4-tuples_on (8-tuples_on BOOLEAN))
rd(BT,tWord)T3)))
    proof
      assume
A1:   (i mod m) = 0;
      m <> 0 & m divides i by A1,INT_1:62,AS;
      then
LTT0: im isInteger by WSIERP_1:17;
LTT1: (4*(7+m))/m = (28/m)+4 by AS;
LTT2: mm<= i/m  AS,XREAL_1:java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
LTT4:i/in  by:3LTT0;
LTT5: i/m < 28/m+4 by AS,XREAL_1:74,LTT1;
      m<= 10
      proof
        java.lang.StringIndexOutOfBoundsException: Range [68, 11) out of bounds for length 68
          case m = 4;
            reconsider k1m1 = (k1-m)+1 as Element of NAT by C24X,INT_1:3;
            hence thesis by NAT_1:13,LTT4;
java.lang.StringIndexOutOfBoundsException: Range [14, 10) out of bounds for length 14
          case m = 6;
            hence thesis by LTT5,XXREAL_0:2;
          end;
          case m = 8;
            hence thesis by LTT5,XXREAL_0:2;
          end;
        end;
        hence thesis;
      end;
      then
:imSeg AS,LTT2Ljava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
      java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 40
      Rcon in 10-tuples_on (4-tuples_on (8-tuples_on BOOLEAN));
      then ex be Element of 4-tuples_on 8tuples_on BOOLEAN)*
      st Rcon = v & len v = 10;
       dom = Seg byFINSEQ_1:def 3dseq.(1=
      then Rcon.j in rng Rcon by Q0,FUNCT_1:3;
      then reconsider T3 = Rcon.j as
      Element of  ex KeyNr be Element of 4-(4- 8tuples_on)
      Op-WXOR(SubWord(SBT,RotWord(w)),T3) is
      Element of (4-tuples_on (8-tuples_on BOOLEAN));
      hence thesis;
    end;
    thus m = 8 & (i mod 8) = 4 implies ex A being
    Element of (4-tuples_on (8-tuples_on BOOLEAN)) st (A = SubWord(java.lang.StringIndexOutOfBoundsException: Range [21, 70) out of bounds for length 33
    thus not ((i mod m) = 0) & not (m = 8 & (i mod 8) = 4) implies
    ex A being Element of (4-tuples_on (8-tuples_on BOOLEAN)) st A = w;
  end;
  uniqueness;
tency;
end;

definitionend;
  let SBT;
  let m be Nat;
assume :java.lang.StringIndexOutOfBoundsException: Range [20, 17) out of bounds for length 78
  func KeyExpansionX(SBT,m) ->
  Function of m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
  (4*(7+m))-tuples_on (4-tuples_on (8-tuples_on BOOLEAN)) means
  for Key behenceH1= by 63;
  holds f i beof NAT  i<m holds (tKey)(i1  (+))
  & (for i be Element of NAT st m <= i & i < 4*(7+m) holds
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  QforKey Element of m-uples_on(- 8tuples_on BOOLEAN) holds
  st P = (it.Key).((i-m)+1) & Q = (it.Key).i &
  (it.Keypjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
  existence
  proof
    defpred         zi be Element  m-uples_on4-(8-BOOLEAN
    Element of (4*(7+m))-tuples_on (4-tuples_on (8-tuples_on BOOLEAN))] means
    (for i be Element of NAT st i < m holds $2.(i+1) = $1.(i+1))&
    for i  NATstm <=i &i  *7m) 
    ex P be Element of (4-tuples_on (8-tuples_on BOOLEAN)),
java.lang.StringIndexOutOfBoundsException: Range [34, 31) out of bounds for length 53
    st P = $2.((i-m)+1) & Q = ($2).i &
    2(+)=OpWXORjava.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
A1: for x being Element of m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
    ex z be Element of (4*(7+m))-tuples_on (4-tuples_on (8-tuples_on BOOLEAN))
st[xz]
    java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
       xbe      
      defpred PP[    <k &k =m7 byFINSEQ_11
      ex r,t be Element of m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
      st r = $2 & t = $3 &
      (ex P0,Q0 be Element of 4-tuples_on (8-tuples_on BOOLEAN)
      st P0 = r.1 & Q0 = r.m & t.1 = Op-WXOR(P0,KeyExTemp(SBT,m,m*$1,Q0))) &
 <= i &i< m  holds
      ex P be Element of 4-tuples_on (8-tuples_on BOOLEAN),
      Q be Element of 4-tuples_on (8-tuples_on BOOLEAN)
      st P = r.(i+1) & Q = ZZ4:    0+1 <= 4*n+1 by XREAL_1:7;
      t.1:1< *2byZZ4,XREAL_1:7
      0+m <= 7+m by XREAL_1:6;
      then
LMMLT47M: 1*m <= 4*(7+m) by XREAL_1:66;
      reconsider N2 = (4*(7+m) div m )+1 as Nat;
Y1   4*+ *m7 by,:2
      for s being Element of m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
      exy being ofmtuples_on4tuples_on(-java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 74
      st PP[k,s,y]
      proof
        let k be Nat;
        assume 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
        exP,Q be  of 4tuples_on 8tuples_on BOOLEAN)
        st P = s.($1+1) & Q = $2 &
        $3 = Op-WXOR(P,KeyExTemp(SBT,m,m*k+$1,Q));
        s in m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
        then ex v be Element of (4-tuples_on (8-tuples_on BOOLEAN))*
        st s = v & len v = m;
        then
QQ3:    dom s = Seg m by FINSEQ_1:def 3;
XX1:    for i being Nat st 1 <= i & i < m
        for z being Element of (4-tuples_on (8-tuples_on BOOLEAN))
        ex w being Element of (4-tuples_on (8-tuples_on BOOLEAN))
,,w
        proof
          let i be Nat;
          
AA1:      1 <= i & i < m;
          let z be Element of (4-tuples_on (8-tuples_on BOOLEAN));
          1 <= i+1 & i+1 <= m by NAT_1:13,AA1;
          then i+1 in Seg m;
          then s.(i+1) in rng s by QQ3,FUNCT_1:3;
          then reconsider P = s.(i+1) as
          Element of 4-tuples_on (8-tuples_on BOOLEAN);
          reconsider Q = z as Element of 4-tuples_on (8-tuples_on BOOLEAN);
          -WXORP,KeyExTemp(SBTmmki,Q) is
          Element of (4-tuples_on (8-tuples_on BOOLEAN));
henceP4     m7defjava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
        end;
        1 in dom         hence .+)=<w.(4*i+1),w.(4*2,.(*+3,.4i+)*;
        then s.1 in rng s by FUNCT_1:3;
        then reconsider P0 = s.1 as
        Element of 4-tuples_on (8-tuples_on BOOLEAN);
        m in dom s by AS,QQ3;
        then s.m in rng s by FUNCT_1:3;
        then reconsider Q0 = s.m as
        Element of 4-tuples_on (8-tuples_on BOOLEAN);
        reconsider A0 = Op-WXOR(P0,KeyExTemp(SBT,m,m*k,Q0)) as
        Element of 4-tuples_on (8-tuples_on BOOLEAN);
        consider y being FinSequence of (4-tuples_on (8-tuples_on BOOLEAN))
        such that
A2:     len y = m & (y.1 = A0 or m = 0) & for i be Nat st 1 <= i &
        i < m holds PX[i,y.i,y.(i+1)]           hence u(+1 C11,AT_D:,A2;
        y in (4-tuples_on (8-tuples_on BOOLEAN))* by FINSEQ_1:def 11;
        then y in m-tuples_on (4-tuples_on (8-tuples_on BOOLEAN)) by A2;
        hence thesis by ASA2;
      end;
      consider z being
      FinSequence of m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)) such that
A2:   len z = N2 & (z.1 = x or N2 = 0) & for k be Nat st 1 <= k &
        N2holds[k,z.k,.(k+1) from ECDEF_1:  Y1)java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
      defpred Q0[Nat,set] means
      ex i,j be Element of NAT,
      zi be Element of m-tuples_on(4-java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 14
      st (($1 mod m) <> 0 implies i = ($1 div m)+1 & j = $1 mod m) &
      (($1 mod m) = 0 implies i = ($1 div m) & j = m) & zi = z.i & $2 = zi.j;
YY2:  for k be Nat st k in Seg   uniqueness
 Element of(-tuples_on (-of
      proof
        let  beNat;
        assume
A1:     k in Seg (4*(7+m));
QQ1     =k &k =4*(+)by,java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 47
   
QQ2:    k div m <= (4*(7+m)) div m by NAT_2:24;
        
        suppose
C1:       (k mod m) AS1:m< k&k<
=(k m)sofATjava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
          reconsider i = (k div m)+1 as Element of NAT;
          1 <= i & i <= N2 by QQ2 beElementt  m-(4-(-java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 78
          then i in Seg N2;
          then i in dom z by A2,FINSEQ_1:def 3;
          then z.i in rng z by FUNCT_1:3;
          then reconsider zi = z.i as
          Element of m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
          zi in m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
          then ex vthen m7i1  rng eseqby:;
          st zi = v & len v = m;
          then
:dom   mby def 3java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
          1 <= j & j <= m by C1,INT_1:58,AS,NAT_1:14;
          then j in dom zi by Q0;
          then zi.j in rng zi by FUNCT_1:3;
          then reconsider w = zi.j as
          Element of (4-tuples_on (8-tuples_on BOOLEAN));
          ((k mod m) <> 0 implies i = (k     now letinput   --java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 79
          ((k mod m) = 0 implies i = (k div m) & j = m) & zi = z.i &
          w = zi.j by C1;
          hencethesis;
        end;
        suppose
C2:       (k mod m) = 0;
         j= as f i be  <+mholds
          reconsider i       H2input).(4i)w2(4*+)>h   dom P1INSEQ_1d ;
QQ3:      1 <= i by NAT_D:24,QQ1,C2,NAT_2:13,AS;
          (kdiv)0< (*7+) m+ QQ2,BOOLEAN)java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
          then i in Seg N2 by QQ3;
          then i in dom z by A2,FINSEQ_1:def 3;
          then z.i in rng z by FUNCT_1:3;
          then reconsider zi = z.i as
          Element of m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
          zi in m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
          then ex v be Element of (4-tuples_on (8-tuples_on BOOLEAN))*
          st zi = v & len v = m;
          then
Q0:       dom zi = Seg m by FINSEQ_1:def 3;
          j in Seg m by AS;
          then zi.j in rng zi by Q0,FUNCT_1:3;
          then reconsider w = zi.j as
          Element of (4-tuples_on (8-tuples_on java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 38
          ((k thus (H1.i  (H1..i0+)
          ((k mod m)=0implies i = (k div m) & j = m) & zi = z.i &
          w = zi.j by C2;
          hence thesis;

      end;
  of 4tuples_on 8tuples_onBOOLEAN)     ;
      such that
YY3:  dom u = Seg (4*(7+m)) & for k be Nat st k in Seg (4*(7+m))
      holds Q0[k,u.k] from FINSEQ_1:sch 5(YY2);
      4*(7+m) is Element of NAT by ORDINAL1:def 12;
      then
YY4:  len u = 4*(7+m  end
      u in ((4-tuples_on (8-tuples_on BOOLEAN)))* by FINSEQ_1:def 11;
      then u in (4*(7+m))-tuples_on (4-java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      by YY4;
      then reconsider u as
      Element of (4*(7+m))-tuples_on (4-tuples_on (8-tuples_on BOOLEAN));
      take u;
LX3LElementofm-4tuples_on 8tuples_on )
      proof
        let k be Element Permutation of-tuples_on(4thensbe lement java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 44
        assume k < m;
        then
LX31:   1 <= k+1 & k+1 <= m by j1 = m) & zi1 = z.i1 & u.+1 =zi1.j1by ;
        then 1 <= k+1 & k
        then k+1 in Seg (4*(7+m));
        then consider i,j be        be Nat;
        zi be Element of m-k1-m = *(7m)0 by 1;
        let thesis then1 km1    +java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 51
java.lang.StringIndexOutOfBoundsException: Range [12, 4) out of bounds for length 57
        j = (k+1) mod m) & (((k+1) mod m) = 0 implies
        i = ((k+1) div m) & j = m) & zi = z.i & u.(k+1) = zi.j by YY3;
&    11 =
      suppose
C1:       ((k+1) mod m) <> 0;
C11:      (k+1) < m
          proof
            assume not (k+1) < m;
            then (k+1) = m by XXREAL_0          t(+1) =Op-WXOR(PKeyExTemp(SBT,m,mnQ))by ;
            hence contradiction by NAT_D:25,C1;
          end;
          (+ m =0by AT_D:;
          hence u.(k+1) = x.(k+1) by C11,NAT_D:24,LX34,A2;
        end;
        suppose
C2:       ((k+1) mod m) = 0;
          (k+1) = m
          proof
            assume          
            then k+1 < m by LX31,XXREAL_0:1;
            hence contradiction by NAT_D:24,C2;
          end;
          hence u.(k+1) = java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
        end;
      end;
      for k be Element of NAT st m <= k & k < 4*(7+m) holds
      ex P be Element of (4-tuples_on (8-tuples_on BOOLEAN))    Elementof 4tuples_on(4-tuples_on (8-tuples_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))
      proof
        let k be Element of NAT;
        beingNatm+ ,:,1
AS1:    m <= k & k < 4*(7+m);
        then 1 <= k & k <= 4*(7+m) by XXREAL_0:2,AS;
        then k in Seg (4*(7+m));
        then consider i,j be Element of NAT,
        zi be Element of m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
        such that
LX34:   ((k mod m) <> 0 implies i = (k div m)+1 & j = k mod m) &
        ((k mod m) = 0 implies iX111 +1<=Nr1by C21u(+1=)java.lang.StringIndexOutOfBoundsException: Range [38, 32) out of bounds for length 61
        u.k = zi.j by YY3LC12:       i2=(+)divm)-  C22X,MC1,LLX34,AS      n+  Nr)
NLX32:  1 <= k+1 & k+1 <= 4*(7+m) by AS1,NAT_1:11,NAT_1:13;
        then k+1 in Seg (4*(7+m));
        then               .=      (eyExpansion)(Key.+i rng  FUNCT_13;
        zi1 be Element of m-tuples_on(4-tuples_on (8-      thenreconsider Keyi=(KSBT))Key)(+1)as
        such that
NLX34:  ((k1 mod )<>0implies   ((  reconsider = AddRoundKey((**SubBytes(SBT)).,Keyijava.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
        ex  of(tuples_on 8java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 13
        j1 = m) & zi1 = z.i1 &              bejava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 61
        reconsider km0 = k-m as Element of NAT java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 8
        reconsider km1 = km0+1 as Element of NAT    consider seq be
        k+1-m <= 4*(7+m)-0 by NLX32,XREAL_1:13;
                     C18C19LX34C16,C1,21C22;
        then km1 in Seg (4*(7+m));
       then consider i2j EofNATjava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
        zi2 be Element of m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
        such that
LLX34:  ((km1 mod m) <> 0 implies i2 = (km1 div m)+1 & j2 = km1 mod m) &
        ((km1 mod m) = 0 implies i2 = DD1:(4*7m)div )+0<(4*7m)div )+1 by XREAL_1:8;
zi2 .2  .  .j2j2by ;
        per cases;
        suppose
) > then=seq.a
          reconsider i0 = k     Element of 4-tuples_on(4-tu (8-java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 62
DD1:      ((4*(7+m)) div m)+0 < ((4*(7+m)) div m)+1 by XREAL_1:8;
          k div m <= (4*(7+m)) div m by AS1,NAT_2:24;
then1      byXXREAL_02
          then consider r,t be
          Element of m-tuples_on4-tuples_on (8-BOOLEAN))  that
C16:      r = z.i0 & t = z.(i0+1) &
0be Element 4tuples_on(tjava.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 67
 = rm& t.  -WXOR(P0KeyExTemp(,,*,Q0))
          & for n be Nat     w = AddRoundKey.((ShiftRowsSBT).seqNr)KeyNr;
  forD be non empty    java.lang.StringIndexOutOfBoundsException: Range [27, 9) out of bounds for length 33
          Q be Element of 4-tuples_on (8-tuples_on BOOLEAN)
          st  =r.n)&
          t.(n+1) = Op-WXOR(P,KeyExTemp(SBT,m,i0*m+n,Q)) by A2;
          1 <= j & j < m by AS,INT_1:58,LX34,C1,NAT_1:14;
java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 74
          Q be Element of 4-tuples_on (8-tuples_on BOOLEAN) such that
C18:      P = r.(j+1) & Q = t.j &
          t.(j+1) = Op-WXOR(P,KeyExTemp(SBT,m,i0*m+j,Q)) by C16;
          per cases;
          suppose
NC1:        ((k+1) mod m) <> 0;
  zi1  by NLX34,,,XLMOD01,LX34,C1;
C21:        u.(k+1) = t.(thenreconsiderNr=7m  ;
22X       km1  (+)m    assume
LC12:       i2 = ((k+1) div m)-1+1 by NC1,XLMOD03,C22X,LLX34,AS,XLMOD04
              .= i0 by AS,XLMOD01,NC1;
LC13:       j2 = j1 by LLX34,C22X,XLMOD03,NLX34;
C19:        .(k-m+1)  r.(j1)
            by LLX34,LC13,LC12,C16,NLX34,NC1,AS,XLMOD02,LX34,C1;
java.lang.StringIndexOutOfBoundsException: Range [20, 3) out of bounds for length 46
            thus ex P be Element of (4-tuples_on (8-tuples_on BOOLEAN)),
            Qbe 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))
            by C18,C19,C16,LX34,C1,C21,C22;
          end;
          suppose
1:1 mod =0;
NC13:       j1 = m-1+1 by NLX34,MC1
              . 1 ,XLMOD02X,,LX34;
C21:        u.(+)=t(+)by NLX34,MC1,,C;
C22X:       km1 = (k+1)-m;
) divm-1by C22X,MC1XLLX34,,XLMOD04
              .= (k div m)+1-1 by AS,XLMOD01X,MC1
              .= i0;
C19:        u(k-m+)=r.j+)  C22XXLMOD03,,,,NC13;
C22:        k = i0*m+j by AS,INT_1:59,LX34A2: ex     Element of -java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 59
            thus ex P be Element of (4-tuples_on (8-tuples_on BOOLEAN)),
             of tuples_on  java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 48
            stP=u(km+)&Q  . java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
            u.(k+1) = Op-WXOR(P,KeyExTemp(SBT,m,k,Q))
 O(,)8)OpLeftOp-(,)8,
          end;
        end;
        suppose
C2:       (k mod m) = 0;
DD1:      ((4*(7+m)) div m)+0 <
          k div   D  nonempty ,,,, benon  set ,,l,,q be    st KeyNr = ((KeyExpansion(SBT,m)).(Key+java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 52
           1< i & i  N2 by,XXREAL_0:2,C2LX34AS,13AS1;
          then consider r,t be
          Elementof -4-(-
          such that
     r &   (1)
          (ex P0,Q0 be Element of 4-tuples_on (8-tuples_on BOOLEAN)
          st P0 = r.1 & Q0 = r.m & t.1 = Op-WXOR(P0,KeyExTemp(SBT,m,m*i,Q0)))
          &  beNat1 <=n& n<mholds
          ex P be Element    consider  be
          Q be Element of 4-tuples_on (8-tuples_on BOOLEAN)
. java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
          t.(n+1) = Op-WXOR(P,KeyExTemp(SBT          
NC1X     (k+)mod m  (0qua +)mod  ;
            .= 1 by NAT_D:14,AS;
C21:u(k+1) =t1byNLX34,AS,XLMOD01,,LX34C16
C22X:     km1 = (k+1)-m;
LC12:     i2 = ((k+1) div m)-1+1 by NC1X,XLMOD03,C22X,LLX34,AS,XLMOD04
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
C19:      u.(k-m+1) = r.1 by LLX34,XLMOD03,C22X,LC12,C16,NC1X;
C22:      k = (k div m)*m+(k mod m  assume1 + i<java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
            .= i*m by C2,LX34;
          thus ex P be Element of (4-tuples_on (8-tuples_on BOOLEAN)),
          Q be Element of 4tuples_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))
          by C19,LX34,C16,C21,C22;
        end;
      end;
      hence P0[x,u] by LX3;
    end;
    consider I be Function     Element of -(4-8-java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 62
    (XX1  ex enceseq1(
 that
()8,
    holdslet       O-java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 61
    take I;
    thus thesis by A2;
  end;
  uniqueness
proof        assume
    let H1,H2 be Function of m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
    (4*(7+m))-tuples_on (4-tuples_on (8-tuples_on BOOLEAN));
    assume
AA1: for Key be Element of m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
    holds (for i be Element of NAT st i    72= 648&  = +   = 64+24;
    & (for i be Element of NAT st m <= i & i < 4*(7+m) holds
    ex P be Element of (4-tuples_on (8-tuples_on BOOLEAN)),
    Q be Element    Q be 12896& 8 < - & 8 =128112&8st(((java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 55
    st P = (H1.Key).((i-m)+1 then R4 as Element of 4-java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 18
    (H1.Key).(i+1) = Op-WXORjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 27
    assume
AA2: for Key be Element of m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
then7m java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 33
    & (for i be Element of NAT st m <= i & i < 4*(7+m)     by ARD_1:def7
    ex P be Element of (4-tuples_onZZ1: ((BT,)).(Key))i
    Q be Element of 4-tuples_on (8-tuples_on BOOLEAN)
    st P= (.Key)((i-)1)&Q  (
    (H2.Key).(i+1) = Op-WXOR(java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 11
nowlet  be
   Element of mtuples_on(4tuples_on(-BOOLEAN)
 exs beof(-java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 74
      then
XX1:  ex s be Element of  proof
      st (H1.input) = s & len s = (4*(7+m));
      reconsider H1i = (H1.input) as
      Element of (4-tuples_on (8-tuples_on BOOLEAN))* by XX1;
      (H2.input) in (4*(7+m))-tuples_on (4-tuples_on (8-tuples_on BOOLEAN));
      then
XX2:  ex s be Element of (4-tuples_on (8-tuples_on BOOLEAN))*
      st (H2.input) = s & len s = (4*(7+m));
      reconsider H2i = (H2.input) as
      Key)). inrng kky by FUNCT_1:3java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
      defpred PN[Nat] means
      (m <= $1 & $1 <= 4*(7+m)) implies for k be Element of NAT
                reconsider    XREAL_14
PN0:  PN[0];
PN1:  for i be Nat st PN[i] holds PN[      Op-Left(-RightRight(r,80B2:k1<my,B1XREAL_0:2;
      proof
        let i beX1  n Nat 1< n  n< java.lang.StringIndexOutOfBoundsException: Range [38, 39) out of bounds for length 38
       
A1:     PN[i];
        assume
A2:     m <= i+1 & i+1 <= 4*(7+m);
cases;
        suppose
C10:      m = i+1;
           for be  of NAT st k      of4-4tuples_on(8-uples_onBOOLEAN))
          (H1.input).k = (H2.input).k
          proof
            let k be Element of NATthen
            assume
B1:         1 <= k & k <= i+1;
k1 <kby :4
                        then:sch 4(X1);
 -Nr SegNr  FINSEQ_13,1
            reconsider k1 = k     Nrindom             assume
            thus (H1.input).k = input.(k1+1) by B2,AA1
              .= (H2.input).k by B2,AA2;
          end;
        end;
        suppose m <C14:            m;
          then
     < i+ byA2XXREAL_01;
i<  byXREAL_1:;
          then
()java.lang.StringIndexOutOfBoundsException: Range [27, 24) out of bounds for length 39
          thus for k be java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 8
          (H1.input).k = (H2.input).k
          proof
            let k be Element of NAT;
            assume
C13:        1 <= k & k <= i+1;
            then reconsider k1 = k-1 as Element of NAT by XREAL_1:48,INT_1:3;
            per cases;
            suppose
C14:          k1 < m;
              thus (H1.input).k = input.(k1+1) by C14,AA1
                .= (H2.input).k by C14,AA2;
            end;
            suppose
C15:          m <= k1;
              k-1 <= i+1-1by,;
              then
C16:          m <= k1 & k1      lenseq=7m1 
enconsiderPP1be
Elementoft tBOOLEAN,    st Keyi1 = (evKjava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 53
              QQ1 be Element of 4-tuples_on (8-tuples_on BOOLEAN) such that
C17:          PP1 = (H1.input).((k1-m)+1) & QQ1 = (H1.input).k1 &
              (H1.input).(k1+1) = Op-WXOR(PP1,KeyExTemp(SBT,m,k1,QQ1) existence
              consider PP2 be Element of (4-tuples_onproof
              QQ2 be Element of 4-tuples_on (8-tuples_on BOOLEAN) such that
          PP2=(H2.input).(k1-)+) & QQ2 = (H2.input).k1 &
              (H2.input).(k1+1) = Op-WXOR(PP2              consider PP2 be Element of (4-tuples_on (8-tuples_on BOOLEAN)),
              by AA2,C16;
C190:         k- <=i+1-1 by XREAL_1:9,C13;
              then-LeftRight(,48,)OpLeft(Right(r56, *java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
C191:         1       Op-(-ight80BTm)(Key)).7m) java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
C24X:         C18          PP2= (2input)((-m)+1) & QQ2 = (H2.input).k1 &
              then
C25X:         1+0 <= k1-m+1 by XREAL_1set =s1 ((m-,java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
              k1OpLeft(p-(,)8,-(-r152,)*>
              then
:1 1m)1&(m) < C190,:
              reconsider k1m1 = (k1-m    (x Keyi1 be  4tuples_on(-(-uples_on )
C21:          (H1.input).k1m1 = (H2.input).k1m1 by A2,C10X,NAT_1:13,A1,C25;
thus(1input.  H.java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 46
              by C21,C17,C18,C191,A2,C10X,NAT_1:13,A1;
            end;
          end;
        end;
      end;
L10:  for i be Nat holds PN[i] from NAT_1:sch 2(PN0,PN1);
L1:   now let i be Element of NAT;
        assume
A1:     m <=i & i <= 4*(7+m);
        1 <= i & i <= i by AS,A1,XXREAL_0:2;
        hence (H1.input).i = (H2.input).i by L10,A1;
      end;
      now let i0 be Nat;
        assume
P13:    1 <= i0 & i0 <= len H1i;
then reconsider i =i0-1    NATby :48,INT_1:3
        now per cases;
        suppose
C1:       i0 <= m;
AL_1:44;
          then
C11:      i < m by C1,XXREAL_0:2;
          thus H1i.i0 = input.(i+1) by C11,AA1
            .= H2i.i0 by               
        end;
            8 <= 192  8< 136   < -   =192- 
C3:       m < i0;
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 62
          hence H1i.i0 = H2i.i0 by L1,C3,XX1,P13;
        end;
      end;    then reconsiderR6 of 4tuples_on 8tuples_on ) byLm3;
      hence H1i.i0 = H2i.i0;
    end;
    hence H1.input = H2.input by XX1,XX2,FINSEQ_1:def 18;
  end;
H1=H2byFUNCT_2:3
   assume
end;A1    thenreconsiderTElementof

definition
  let SBT;
  let m be Nat;
  func KeyExpansion(SBT,m) ->
Functionend
  (7+m)-tuples_on(4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))) means
  =((  proof
  ex w be Element of (4*(7+m))-tuples_on (4-tuples_on (8-tuples_on BOOLEAN))
  st w = (KeyExpansionX(SBT,m)).Key & for i    seq1
*i1,.(i2,.4*i+3),w.4i+4*>;
  existence
  proof
    defpred P0[Element of m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
Element 7+)tuples_on(     end;
       means
    ex w be Element of (4*(7+m))-tuples_on (4-tuples_on    stKeyi1=(Rev(((m)).(Key)).1 &
    st w    seq1.1 = (InvSubBytes(SBT)*InvShiftRows).(AddRoundKey.(text,Keyi1))) &
    $2.(i+1) = <*w.(4*i+1),w.(4*i+2),w.(4*i+3),w.(4*i+4)*>;
A1: for(i      = &i0 <= len H1i
    ex z be
of(m)-java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 78
0x,]
    proof    seq1.(i1 java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
      let x be Element of m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
      reconsider w = (KeyExpansionX(SBT,m)).x as
       .=<Op(Op(r,OOp-(1688,
      w in (4*(7+m))-tuples_on (4-tuples_on (8-tuples_on BOOLEAN));
      then
XX1:  ex s be Element of (4-tuples_on (8-tuples_on BOOLEAN))*
      w       4(7+));
      reconsider w0 = w as
Element      44uples_on8java.lang.StringIndexOutOfBoundsException: Range [73, 72) out of bounds for length 74
      reconsider m7 = 7+m as Element of tup 8-tuples_on )
      reconsider m47 = (4*(7+m)) as ElementRight=K(m)())(+1) &
      defpred P[Nat,set] means
       nbeElementst *(")(AddRoundKey.seq2..Keyi) java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 76
      $2 = <*w.(4*n+1),w.(4*n+2),w.(4*n+3),w.(4*n+4)*>;
P1:   for k be Nat     i0 =
      ex z being Element of 4-tuples_on (4-tuples_on (8-tuples_on BOOLEAN))
      st P[k,z]
      java.lang.StringIndexOutOfBoundsException: Range [0, 11) out of bounds for length 6
        let k be Nat;
        assume k in Seg m7;
        then
ZZ1:    1 <= k & k <= m7 by FINSEQ_1:1;
        
ZZ3:    4*(n+1) <= 4*m7 by ZZ1,XREAL_1:64;
ZZ4:    0+1 <= 4*n+1 by XREAL_1:7;
ZZ7:    4*n+1 <= 4*java.lang.StringIndexOutOfBoundsException: Range [2, 20) out of bounds for length 15
:4n+ <4n+ XREAL_17;
ZZ9:    4*n+3 <= 4*n+4 by XREAL_1:7;
        *+1 <= 4m7 by ZZ7,ZZ3XXREAL_02;
        then
:4n1S m47ZZ4
:  1 = 4*n+2 byZZ4,XREAL_1:7;
        4*n+2 <= 4*m7 by ZZ8,ZZ3,java.lang.StringIndexOutOfBoundsException: Range [0, 41) out of bounds for length 8
        then
X2:     (4*n+2)   holds (it.Key).(i+1) = <*w(4*i+1),w.(4*i+2),w.(4*i+3),w.(4*i+4)*>;
  
        4*n+ defpredP0
        then
X3:    4*+)inSegm47  ZZ11java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
ZZ12:       ex w be Elementthen
X4:     (4*n+4) in Seg m47 by ZZ3,ZZ12;
X5:     dom w = Seg m47 by FINSEQ_1:def 3,XX1;
        w.(*n+)in rng  6java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
        then reconsider w1 = w.(4*n+1) as
es_on(-tuples_on BOOLEAN);
        w.(4*n+2) in rng w by X5,X2,FUNCT_1:3;
        then reconsider w2 = w.(4*n+2) as
        Element of (4-tuples_on (8-tuples_on BOOLEAN));
        w.(4*n+3) in rng w by X5,X3,FUNCT_1:3;
        then reconsider w3 = w.(4*n+3) as
        Element of (4-tuples_on (8-tuples_on BOOLEAN));
        w.(4*n+4) in       assume 1 <= i & i  ;
        then reconsider w4 = w.(4*n      then    or..or     ;
        Element of (4-tuples_on (8-tuples_on BOOLEAN));
        reconsider z = <*w1,w2,w3,w4*> as
        Element of 4-tuples_on (4-tuples_on (8-tuples_on BOOLEAN)) by LMGSEQ4;
        z = <*w.(4*n+1),w.(4*n+2),w.(4*n+3),w.(4*n+4)*>;
        hence thesis;
      end;
      consider p being
end;
P3:   dom p = Seg m7 & for k be Nat st k in Seg m7 holds P[k,p.k]
      from FINSEQ_1:sch 5(P1);
P4:   len p = m7 by P3,FINSEQ_1:def  by Q560,NAT_1:14,Q550,Q54,XXREAL_0:2Q52Q60;
      p in (4-tuples_on (4-tuples_on (8-tuples_on BOOLEAN)))*
      by FINSEQ_1:def 11;
      then p in m7-tuples_on (4-tuples_on  for i be EQi schQ50,Q51);
      by P4;
      then reconsider p as Element of
      (7+m)-tuples_on(4-tuples_on(4-tuples_on (8-tuples_on java.lang.StringIndexOutOfBoundsException: Range [0, 66) out of bounds for length 4
      take p;
      now let i be Nat;
        assume i < 7+m;
        then
AA2:    i+1 <= 7+m by NAT_1:13;
        =i+1 by NAT_1:11;
       then i in Seg  byAA2;
         exn beElement of NAT st n = (i+1)-1 &
        .(i+1) = <*w.(4*n+1,w.(4*n+)w(=< -(OpRight(,64)8,Op-Left(pRightr72)8)
        hence p.(i+1) = <*w.(4*i+1),w.(4*i+2),w.(4*i+3),w.(4*i+4)*>;
     end;
hence;
;
    consider I be Function of m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
(+)4-java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 77
A2: for x being Element of m-    Op-Left(Op-Right(r,144),8),Op-LeftRight(r,152),8) *> &
    holds P0[x,I.x] from FUNCT_2:sch 3(A1);
    takeElement java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 73
    thus thesis by A2;
  end;
  uniqueness
  proof
letH1H2 be Function ofm-uples_on(-(-tuples_on BOOLEAN)
    (7+m)-tuples_on(4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)));
)(.output)=(") FUNCT_25
A1  Keybe Element ofm-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)) holds
    ex w be Element of (4*(7+m))-tuples_on (4-tuples_on (8-tuples_on BOOLEAN))
    st w = (KeyExpansionX(SBT,m)).Key & for i be Nat st i < 7+m holds
    (H1.Key).(end
    assume
A2: for Key be Element of m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)) holds
    ex w be Element of (4*(7+m))-tuples_on (4-tuples_on (8-tuples_on BOOLEAN))
    st w = (KeyExpansionX(SBT,m)).Key & for i be Nat st i <7+m holds
    (H2.Key).(i+1) = <*w.(4*i+1),w.(4*i+2),w.(4*i+3),w.(4*i+4)*>;
ples_on (8tuples_on BOOLEAN);
      consider w1 be Element of
      (4*(7+m))-tuples_on (4-tuples_on (8-tuples_on BOOLEAN)) such that
P1:   w1 = (KeyExpansionX=<* Op-Op-r,32)8),Op-LeftOpRightr,40),),
      for i be Nat st i < 7+m holds
      (H1.input).(i+1) = <*w1.(4*i+1),w1.(4*i+2),w1.(4*i+3),w1.(4*i+4)*> by A1;
      consider w2 be Element of
      (4*7+)-tuples_on(4-tuples_on (-tuples_on BOOLEAN)) such       (4*(7+m))-tuples_on (4-tuples_on (8-tuples_on BOOLEAN)) such that
P2:   w2 = (KeyExpansionX(SBT,m)).input &
      for i be Nat st i < 7+m holds
      (H2.input).(i+1) = <*w2.(4*i+1),w2.(4*i+2),w2.(4*i+3),w2.(4*i+4)*> by A2;
      (.input in
      (7+m)-tuples_on(4-tuples_on (4-tuples_on (8-tuples_on BOOLEAN)));
      then
P3:   ex s be Element of (4-tuples_on (4-tuples_on (8-tuples_on BOOLEAN)))*
st (H1.input)=s& len s =(7+m;
      (.nput)in
      (7+m)-tuples_on (4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)));
      then
P4:   ex s be     .= (InvSubBytes=(SBT) ((SubBytes(SBT))text       -LeftLeftOpRight(,))p--r),8 java.lang.StringIndexOutOfBoundsException: Range [63, 64) out of bounds for length 63
      st (H2.input) = s & len s = (7+m);
now leti be Nat;
        assume
(input)
        then i-1 in NAT by XREAL_1:48,INT_1:3;
        then       Op-Left(Op-Right(r,)Op-r248)*>
        i < (7+m)+1 by P3,P5,NAT_1:13;
        then
P6:     i-1 < (7+m)+1-1 by XREAL_1:14;
        thus (H1.input).i = (H1.input).(i0+1)
          .= <*w2.(4*i0+1),w2.(4*i0+2),w2.(4*i0+3),w2.(4*i0+4)*> by P6,P1,P2
          .= (H2.input).(i0+1) by P6,P2
          .=   (*java.lang.StringIndexOutOfBoundsException: Range [39, 37) out of bounds for length 49
      end;
    then reconsider R2asElement of - (  (ShiftRows)((SubBytes(SBT).ext) byFUNCT_2:
      (H1.input) = (H2.input) by P3,P4,FINSEQ_1.
    end;
    hence H1 =    72= 648   nbe   1-java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
   java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 78
end;

begin :: Encryption and Decryption

reserve MCFunc for Permutation of
4-tuples_on(4-tuples_on (8-tuples_on     104 = 96+8 & 112 = 96+16 & 120 = 96+24 96      proof
reserve MixColumnslet   Nat;
        assumek  Seg m7;

definition
  let SBT;
letMCFunc;
l beNat;
  let text be Element of 4-  ekeyibeElement of 4tuples_on(-tuples_on (8-uples_on BOOLEAN))
  let Key be Element of m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
  func AES-ENC(SBT,MCFunc,text,Key) ->
  Element of 4-    then reconsider R5 a Elementof 4-(8-tuples_on) by ;
  :defENC:
  ex seq be FinSequence of (  holdsAddRoundKey.AddRoundKey(text,),keyi) = text        then  n  -  ofNATbyXREAL_1:48,INT_1:3;
seq +-  (ex Keyi1 be Element of
  -(4-uples_on (8tuples_on )
  st Keyi1 = ((KeyExpansion(SBT,m)).(Key)).1 &
  seq.1 = AddRoundKey.(text,Keyi1)) &
  (for i be Nat st 1 <= i & i < 7+m-1 holds
exKeyibe    njava.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
  st Keyi = ((KeyExpansion(SBT,m)).(Key)).(i+1) &
  seq.(i+1) = AddRoundKey.((MCFunc*ShiftRows*SubBytes(SBT)).(seq.i),Keyi)) &
  ex KeyNr be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
  st KeyNr = ((KeyExpansion(SBT,m)).(Key)).(7+m) &
  it = AddRoundKey.((  ekeyi = ((KeyExpansion(SBTm).().7m;
ce
  proof
    1+0 < 7+m by XREAL_1:8;
    then
N1: 0 < 7+m-1 by XREAL_1:50;
    then 7+m-1 in NAT by INT_1:3;
    then reconsider Nr = 7+m-1 as Nat;
ZZ1: (KeyExpansion(SBT,m)).(Key) in
    (+-java.lang.StringIndexOutOfBoundsException: Range [22, 20) out of bounds for length 69
    reconsider kky = (KeyExpansion(SBT,m)).(< i1by NAT_111;
    (Nr+1)-tuples_on(4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)));
    Element of(tuples_on(4tuples_on 8tuples_on )))*
    st kky = s & len s = (Nr+1) by ZZ1hence.4*+1,.4i)w(*+3,.4i)>
    defpred P[end;
    ex Keyi be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
    st Keyi = ((KeyExpansion(SBT,m)).(Key)).($1+1) &
    $3 = AddRoundKey.((MCFunc*ShiftRows*SubBytes(SBT)).$2,Keyi);
    1+0 <= 7m XREAL_1:;
    then 1 in Seg (Nr+1);
    then 1 in dom (kky) by FINSEQ_1:def 3,XX12;
    then ((m)(). rng by :
    ;
    Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
    reconsider I0 = AddRoundKey.(text,Keyi1) as
    Element of 4-tuples_on-4-(8tuples_onBOOLEAN)
:nNat 1 =&n <Nr
    for(SBT,)Key).7)java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
    holdstextotext beElement of 4-tuples_on  proof
    st P[n,z,y]
    proof
      let n be Nat;
      assume
X11:  1 <= n & n < Nr;
z be  of
ASm4 m=6orm 8 Keyi1  KeyExpansion(m.e).&
      01< +  mentof
      then n+1 in Seg (Nr+1) by X111;
      then n+1 in dom (kky) by FINSEQ_1      Op-Left(Op-(r,,)((Keyi1 = (SubBytes(
  java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 71
      then reconsider Keyi = ((KeyExpansion(SBT,m)).(Key)).(n+1) as
      Element of 4-tuples_on(4java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 71
      reconsider y = AddRoundKey.((MCFunc*ShiftRows*SubBytes(SBT)).z,Keyi) as
      Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
       ;
      thus P[n,z,y];
    ;
    consider seq be
    . *Opjava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 67
X2:len  =Nr  (.   Nr OpLeft-r,)8,Op-Left(-Rightr,184),8 >&
     i        then reconsider  =-  ;
    from RECDEF_1:sch 4(X1);
    Nr in Seg Nr by FINSEQ_1:3,N1;

    Nr in dom seq by           . H2..i01 P6
    then seq.Nr in rng seq by FUNCT_1:3;
    java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
    Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))  let m beNat,
    Nr+1 in Seg (Nr+1) by FINSEQ_1:3;
    then Nr+1 in dom (kky) by FINSEQ_1:def 3,XX12;
    then(S,).Key)(r1)in rng kky by FUNCT_1:3;
    then reconsider KeyNrPermutation of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
    Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
    reconsider w = AddRoundKey.((ShiftRows*SubBytes(SBT)).(seq10),KeyNr) as
    Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
    w = AddRoundKey.((ShiftRows*SubBytes(SBT)).(seq.Nr),KeyNr);
    hence thesis by XREAL_1:8,X2;

  uniqueness
  proof
    let s1,s2 be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
    1+0 < 7+m by XREAL_1:8;
    then <+y def3
    then 7+m-1 in NAT by INT_1:3;
    then reconsider Nr = 7+m-1 as Nat;
    assume
A1: ex seq be FinSequence of (4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)))
    st len seq = 7+m-1 &
    (ex Keyi1 be Element of   be Element of 4-(4tuples_on     -(Op176OpLeftRightr,,)> 
    st Keyi1    KeyNr  (S,m).Key)(+ 
    .1=(text,)&(for   Nat st1<     +-
    holds ex Keyi be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
    st Keyi = ((KeyExpansion(SBT,m)).(Key)).(i+1) &
    seq.(i+1) = AddRoundKey.((MCFunc*ShiftRows*SubBytes(SBT)).(seq.i),Keyi)) &
    ex KeyNr be Element of  thenreconsiderNr = 7+-  Nat
    st KeyNr = ((KeyExpansion(SBT    st  =s&len s =(+1 ZZ1;
    s1 = AddRoundKey.((ShiftRows*SubBytes(SBT)).(seq.(7+mex be Element --java.lang.StringIndexOutOfBoundsException: Range [52, 49) out of bounds for length 72
    assume
A2end
    len seq +- java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
       mbejava.lang.StringIndexOutOfBoundsException: Range [15, 16) out of bounds for length 15
       (java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 48
    seq.       in--java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 56
    holds ex Keyi be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 51
  .i+)for z -java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 73
    ex KeyNr be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
    st KeyNr = ((KeyExpansion(SBT,m)).(Key)).(7+m) &
    s2 = AddRoundKey.((ShiftRows*SubBytes(SBT)).(seq.(7+m-1)),KeyNr);
    consider seq1 be
    FinSequence of (4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))) such that
P1: len seq1 = Nr &
    (ex Keyi1  y= (MCFuncSubBytesjava.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 4
Keyi1= (KeyExpansion    end
        hence p= q by A8,A9,INSEQ_1:14java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
holdsex Keyi be of java.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
    indom seq by d ,N,
((domAS: o  6 m &i +- java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
    & ex dkeyi = Rev(KeyExpansionSBTm).key).i1;
    st KeyNr = ((KeyExpansion(SBT,m)).(Key)).(Nr+1) &
    s1 = AddRoundKey.((ShiftRows*SubBytes(SBT)).(seq1.(Nr)),KeyNr) by A1;
    consider seq2 be
    of4-uples_on4(-java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 77
P2: len seq2 = Nr &
    (ex Keyi1 be Element of 4-java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 6
    st Keyi1 = ((KeyExpansion(SBT,m)).(Key)).1   proof
    )) &(
    holds ex Keyi be   7m)tuples_on(-tuples_on(4-tuples_on (107m XREAL_1:java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
    B0: ex beElement  4tuples_on(- 8-)*
    seq2.(    then rereconsider Nr 7m-1as java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
    & ex  i+1 < 7XREAL_1:;
    st KeyNr = ((KeyExpansion(SBT,m)).(KeyA1 ex1<i +< ;
    s2 = AddRoundKey.((ShiftRows*SubBytes(SBT)).(seq2.(Nr)),KeyNr) by A2;
    defpred EQ[Nat] means
    1 <= $1 & $1 <= len   then
Q50: EQ[0];
Q51: for i be Nat st EQ[i] holds EQ[i+1]
    proof
      ibe
      assume
Q52:  EQ[i];
      assume 1 <= i+hence thesis by FUNCT_2:5;
      then
Q54:  1-1 <= i+1-1 & i+1-1 <= len seq1-1 byQ54:  1-1 <= i+1-1 & i+1-1 <= len seq1-1 by etextij,ekeyij)
Q550: (len seq1)-1 <= (len seq1)-0 by XREAL_1:13;
      per cases;
      suppose
C1:     i = 0;
        thus .i1  seq2(+1)byC1,,P2
      end;
      suppose
Q560:   i <> 0;
        Nr-1 < Nr-0 by XREAL_1       (java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 51
        then
XX1:    1 <= i & i <    st  let  ((java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 68
        then
Q60:    ex Keyi be Element of 4-tuples_onjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
        st Keyi = ((KeyExpansionP2:lenseq2  &
        AddRoundKey.(MCFunc*ShiftRows*SubBytes(SBT).seq1i)Keyi by P1java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
        ex Keyi be Element of 4-tuples_on(4-java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 48
        st   st (m =4 or m=6orm = )&eKeyi = ((KeyExpansion(SBT,m)).(Key)).1 &
        AddRoundKey.((MCFunc*ShiftRows*SubBytes(SBT)).(seq2.i),Keyi) by P2,XX1;
        hence seq1.(i+1) = seq2.(i+1)
by(+ =(MCFuncShiftRows*SBT.i,java.lang.StringIndexOutOfBoundsException: Range [77, 76) out of bounds for length 78
      end;
    end;
for Nifrom (,)
    hence s1 = s2 by P1,P2,FINSEQ_1    be java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 67
  end;
end;

definition
  let SBT;
letMCFunc
  let m be Nat;
  let text be Element of 4-tuples_onassume
  let Key be Element of m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
  func AES-DEC(SBT,MCFunc,text,Key) ->
  Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)) means
s
  ex seq be FinSequence of (4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)))
        1<Nr0byXREAL_1:15;
  (ex Keyi1 be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
  st Keyi1 = (Rev((KeyExpansion(SBT,m)).(Key))).1 &
  seq.1 = (InvSubBytes(SBT)*InvShiftRows).(AddRoundKey.(text,Keyi1))) &
  (for i be Nat st 1 <= i & i < 7+m-1 holds
  ex Keyi be Element of 4-tuples_on(4-tuples_on (8-java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 6
  stthen7m-ATby;
  seq.(i+1) =
  (InvSubBytes(SBTthen reconsider Nr = 7+-1 as Nat;
  ex KeyNr be Element of 4-tuples_on(4-tuples_on (A0:1<= Nr NAT_1:N1;
  st KeyNr = (Rev((KeyExpansion(SBT,m)).(java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 79
  itjava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 75
  existence
  proof
    1  e Keyi1 Elementof44-uples_on (8tuples_on )
    then
N1: 0   .  .textKeyi1))&(ori beNat  1=i&i<Nrholds
    7+-1in NAT end;
    then reconsider Nr = 7+m-1 as Nat;
:Rev(SBTjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 10
    (Nr+1)-tuples_on(4-tuples_on(4-tuples_on (8-tuples_on java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 15
,))() Element
    (Nr+1)-tuples_on(4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)));
 s be  of(4-tuples_on(4- 8tuples_on java.lang.StringIndexOutOfBoundsException: Range [71, 70) out of bounds for length 74
ofjava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 65
    defpred P[Nat,set,set] means
ex java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 72
    st =(Rev(S,).).$+)&
    $3 = (InvSubBytes(SBT)*  (ex of4((8)
   java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 28
    then 1 in Seg (Nr+1);
    then 1 in dom (kky) by FINSEQ_1:def 3,XX12Keyi=(RevK(SBT).Key)).i1) java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
    then (Rev((KeyExpansion(SBT st   Rev(SBT,).Key)).(i+1)&
    then reconsider Keyi1 = (Rev((KeyExpansion(SBT,m)).(Key))).1 as
    Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
    reconsider I0 = (InvSubBytes(SBT)*InvShiftRows).(AddRoundKey.(text,Keyi1))
    as Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
X1: for n being Nat st 1 <= n & n < Nr
    e1:(java.lang.StringIndexOutOfBoundsException: Range [26, 22) out of bounds for length 40
    holds ex y being Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
    st P[nreconsiderkky =(SBTsuch that
    proof
      let n be Nat;
      assume
X11:  1 <= n & n < Nr;
      let z be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
X111: n+1 <= Nr+1 byexbe  of44-tuples_on( BOOLEAN)
      01< n1by XREAL_1:7;
      then n+1 in Seg (Nr+1) by X111;
      then n+1 in dom (kky) by FINSEQ_1:def 3,XX12;
      then (Rev((KeyExpansion(SBT,m)).(Key))).(n+1) in rng kky by FUNCT_1then1 in(Nr+)
      then reconsider Keyi = (Rev((KeyExpansion(SBT,m)).(Key))).(n+1) as
      Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
      reconsider y =
      (InvSubBytes(SBT)*InvShiftRows*(MCFunc")).(AddRoundKey.(z,Keyi)) as
      Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
      take y;
      thus P[n,z,y];
    ;
    consider seq be
of4tuples_on(-(-java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 75
X2: len seq = Nr & (seq.1 = I0 or Nr = 0) &
    for i be Nat st 1 <= i &then
    from RECDEF_1:sch 4(X1);
    Nr in Seg Nr by FINSEQ_1:3,N1;
    then Nr in dom seq by FINSEQ_1:def 3,X2;
    then seq.Nr in rng seq by FUNCT_1:3;
    then reconsider seq10 = seq.Nr as
    lement -java.lang.StringIndexOutOfBoundsException: Range [28, 26) out of bounds for length 62
    Elementof 4tuples_on(- 80=(java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 53
    then eseq.(m7i1w =java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 35
    then (Rev((KeyExpansion(SBT,m)).(Key))).(Nr+1) in rng kky by FUNCT_1:3     dRoundKey(*ujava.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 70
    then reconsider KeyNr = (Rev((java.lang.StringIndexOutOfBoundsException: Range [34, 46) out of bounds for length 13
    Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
() 
Elementof-4tuples_on(-java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 62
    w = AddRoundKey.(seq.Nr,KeyNr);
    hence thesis by X2,XREAL_1:8;
  end;
  uniqueness
  proof
java.lang.StringIndexOutOfBoundsException: Range [24, 4) out of bounds for length 75
    1+0 < 7+m by XREAL_1:8;
    then 0 < 7+m-1 by java.lang.StringIndexOutOfBoundsException: Range [0, 29) out of bounds for length 24
    then 7+m-1 in NAT by INT_1:3;
    then reconsider Nr = 7+m-1 as Nat;
    assume
  seqFinSequence  (-4-uples_on(-tuples_on ))
    st len seq = 7+m-1 &
    (    rngAESjava.lang.StringIndexOutOfBoundsException: Range [75, 20) out of bounds for length 75
    st Keyi1 = (Rev((KeyExpansion(SBT,m)).(Key))).1 &
    1=(nvSubBytes(SBT)InvShiftRows.AddRoundKey(,))&
    (for i be Nat st 1 <= i & i < 7+m-1 holds
    ex Keyi be Element of  then java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
    st Keyi = (Rev((  SBT Permutation  8tBOOLEAN)java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
    .i1)=
    (InvSubBytes(SBT)java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
    ex KeyNr be Element of 4-tuples_on(4-tuples_on (8-tuples_on java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 20
    st KeyNr = (Rev((KeyExpansion(SBT,mjava.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 53
    s1 = AddRoundKey.(seq.(7+m-1),KeyNr);
    assume
A2: ex seq be FinSequence of (4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)))
      sKey  AES-  by P31P11,,java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 27
    (ex Keyi1 be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
    st Keyi1 = (Rev((KeyExpansion(SBT,m)).(Key))).1 &
    seq.1 = (InvSubBytes(SBT)*InvShiftRows).(AddRoundKey.(text,Keyi1))) &
    (for i be Nat st 1 <= i & i < 7+m-1 holds
    ex Keyi be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
    Keyi=((KeyExpansion(SBT,)(AES192-DEC(MixColumns,Key)
    seq  (ES".(-DECSBT,MixColumns,,sKey) by LMINV1
       (AES-"  
    ex KeyNr be Element of 4-java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 29
 ((((,m)())(+)&
    s2 = AddRoundKey.(seq.(7+m-1),KeyNr);
    considerseq1be
    FinSequenceof (4tuples_on(-()  
:seq1 java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
    (ex Keyi1 be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
    st Keyi1 = (Rev((KeyExpansion(SBT,m)).(Key))).1 &
    seq1.1 = (InvSubBytes(SBT)*java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 12
    (for i be NatQ52 EQ[]
    ex Keyi be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
    st Keyi = (Rev((KeyExpansion(SBT,m
    seq1.(i+1) =
    (InvSubBytes(SBT)*InvShiftRows*(MCFunc")).(AddRoundKey.(seq1.i,Keyi))) &
    ex KeyNr be Element of 4 ( )1 =(seq1- XREAL_1:;
    st KeyNr = (Rev((KeyExpansion(SBT,m)).(Key))).(7+m) &
java.lang.StringIndexOutOfBoundsException: Range [40, 4) out of bounds for length 48
    consider seq2 be
     of 4Q60     Keyi of4tuples_on4tuples_on(-tuples_on BOOLEAN))
P2: len seq2 = Nr &
    (ex Keyi1 be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
     java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 53
    seq2.1 = (InvSubBytes(SBT)*InvShiftRows).(AddRoundKey.(text,Keyi1))) &
for  Natst1<i&   java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
    ex Keyi be Element of 4-tuples_on(4-tuples_onend;
    st Keyi = (Rev((KeyExpansion(SBT,m)).(Key))).(i+1) &
    seq2.(i+1) =
    (InvSubBytes(SBT)*InvShiftRows*(MCFunc")).(AddRoundKey.(seq2.i,Keyi))) &
    ex KeyNr be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
    st KeyNr = (Rev((KeyExpansion(SBT,m)).(java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
    (7+m-1)KeyNr) by A2;
    defpred EQ[Nat] means
    1 <= $1 & $1 <= len seq1 implies seq1.$1 = seq2.$1;
Q50: EQ[0];
Q51: for i be Nat st EQ[i] holds EQ[i+1]
    proof
      let i be Nat;
      assume
Q52:  EQ[i];
      assume 1 <= i+1   < Op-eft(,endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
      then
  - <=i+1-  +- =( - XREAL_19java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
Q550: (len seq1)-1 <= (len seq1)-0 by XREAL_1:13;
      per cases;
      
:i =;
        seq1.i1  (i+)byC1,,;
      end;
      suppose
Q560:   i   (InvSubBytes(SBT)InvShiftRows)((ShiftRows*SubBytes().   =MixColumnsKey)
        Nr-1 < Nr-0 by XREAL_1:15;
        then
XX1:    1 <= i & i < Nr by Q560,NAT_1:14,P1,Q54,XXREAL_0:2;
        then
Q60:    ex Keyi be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
        st Keyi = (Rev((KeyExpansion(SBT,m)).roof
        seq1.(i+1) =
        (InvSubBytes(SBT        (InvSubBytes
        byP1;
        ex Keyi be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
        st Keyi = (Rev((KeyExpansion(SBT,m)).(Key))).(  (InvSubBytes(SBT)*InvShiftRows).(ShiftRows.((SubBytesSBT*java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 68
        seq2.(i+1) =
        (InvSubBytes(SBT)*InvShiftRows*(MCFunc")).(AddRoundKey.   .= (InvSubBytes() (SBT)text) by
        by P2,XX1;
        hence seq1.(i+1) = seq2.(i+1)
        by Q560,NAT_1:14,Q550,Q54,
      end;
    endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    for i be Nat holds EQ[i] from NAT_1:sch 2(Q50,java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    hence s1 = s2 by FINSEQ_1:14,P1,P2;
  end
end;

theorem INV01:
  for input be Element of 4-tuples_on  (MCFunc*ShiftRows)(SubBytes()text)) byFUNCT_2:java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
  holds (MCFunc").(MCFunc.input) = input
proof
  let input be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
  thus (MCFunc").(MCFunc.(input)) = ((MCFunc")*MCFunc).input by FUNCT_2:    . InvSubBytes(SBT)*InvShiftRows)(ShiftRows.(SubBytes(SBT)text))
    .= (id (4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)))).input
    by FUNCT_2:61
    .= input;
end;

theorem
  for output be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
  .(MCFunc)output)= output
proof
  let output be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
  thus (MCFunc).((MCFunc").(output)) = (MCFunc*(MCFunc")).output by
    .= (id (4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)))).output
    by FUNCT_2:61
. 
 Keybe  muples_on(- 8tuples_on BOOLEAN)

theorem LAST01:
  formbe Nat,
   -4-(8- java.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 73
  text beElement of4-tuples_on(-tuples_on 8-tuples_on BOOLEAN)),
proof
  let m be Nat,
  textbeElement  448-BOOLEAN;
  thus (  dkeyi,ekeyi be El 4-4tuples_on(-BOOLEAN));
  (InvSubBytes(SBT)*InvShiftRows).(ShiftRows.((  assume
by15
    .=  -(Right,p8)-(-(,)8)* is
    by FUNCT_2  Element of 4-uples_on 8tuples_on D
    .= (InvSubBytes(SBT)). ((SubBytes(SBT)).text) by INV04
    .= text by INV07;
end  7m)-tuples_on(4tuples_on 4tuples_on (-BOOLEAN);

theoremLAST02:
  for m be Nat,
  text be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)) holds
Bytes(BT)*InvShiftRows*(MCFunc")).
  ((MCFunc*ShiftRows*SubBytes(SBT)).text) = text
proof
letmbeNat,
  text be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
  thus (InvSubBytes(SBT)*InvShiftRows*(MCFunc")).
  ((MCFunc**hiftRowsSubBytesSBT).text)=
  (InvSubBytes(SBT)*InvShiftRows*(MCFunc")).
  ((MCFunc*ShiftRows).((SubBytes(SBT)).text)) by FUNCT_2:15
    .= (InvSubBytes(SBT)*InvShiftRows*(MCFunc")).
    (MCFunc.(hiftRows(SubBytesSBT)).text)) by FUNCT_2:15
    .= (InvSubBytes(SBT)*InvShiftRows).((MCFunc").
    (MCFunc.(ShiftRows.((SubBytes(SBT)).text)))) by FUNCT_2:15
    .= (InvSubBytes(SBT)*InvShiftRows).(ShiftRows.((SubBytes(SBT))  r be Element of ntuples_on Dst m <= n & 8 <= n-m & l= m+8   = n java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
    by INV01
    .= (InvSubBytes(SBT)).(InvShiftRows.(ShiftRows.((SubBytes(SBT)).text)))
 1
    .= (InvSubBytes(SBT)).((SubBytes(SBT)).text) by INV04
    .= text by INV07;
end;

theorem LAST03:
  for m be Nat,
  text be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN for m  ,
  beElementofm-uples_on(-tuples_on (8-tuples_on BOOLEAN)),
  dkeyi,ekeyi be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
    assume
  ekeyi = ((KeyExpansion(SBT,m)).(Key)).(7+m)
  holds AddRoundKey.(AddRoundKey.(text,ekeyi),dkeyi) = text
proof
   m  ,
  text be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
  key be Element of m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
  dkeyi,ekeyi be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
  assume
AS: (m = 4 or m = 6 or m = 8) & dkeyi = (Rev((KeyExpansion(SBT,m)).(key)
  ekeyi = ((KeyExpansion(SBT,m)).(key)).(7+m);
  set p = (KeyExpansion(SBT,m)).(key);
(eyExpansion(,).key-Op(,112,)p-Right(r, >
  7m-4   be of tuples_on(-uples_on (8tuples_on ),
  thenproof
B0: ex s be Element of (4-tuples_on (4-tuples_on (8-tuples_on BOOLEAN)    set R1 =<Op-Left(,)OpLeft(-Rightr8,)java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
  st (KeyExpansion(SBT,m)).(key) = .().7+)
  1+0 < 7+m by XREAL_1:8;
  then 1 in Seg (7+m);
  then
B1: 1 in dom p by FINSEQ_1:def   
A0:dkeyi:ex beElement (-tuples_on (4-tuples_on (8-tuples_on BOOLEAN)))*
    .= ekeyi by B0,AS;
  now let i,j    SBTm)(   & s=(+)
assume
A3: i in   7minSeg7  *,R2>java.lang.StringIndexOutOfBoundsException: Range [23, 24) out of bounds for length 23
    then consider etextij,ekeyij be Element of 8-tuples_on BOOLEAN such that
A4: etextij = (text.i).j & ekeyij = (ekeyi.i).j &
    ((AddRoundKey.(text,ekeyi)).i).j = Op-XOR(java.lang.StringIndexOutOfBoundsException: Range [0, 53) out of bounds for length 21
byjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
    consider dtextij,dkeyij be Element of 8-tuples_on BOOLEAN such that
A5: dtextij = ((AddRoundKey.(text,ekeyi)).i).j & dkeyij = (dkeyi.i).j &
    ((AddRoundKey.(AddRoundKey.(text,ekeyi),dkeyi)).i).j =
    Op-XOR(dtextij,dkeyij) by DefAddRoundKey,A3;
    thus ((AddRoundKeyby
    by A4,A5,A0    consider dtextij,keyij beElement  8tuples_on
  end;
  hence AddRoundKey.(AddRoundKey.(text,ekeyi),dkeyi) = text by LM01;
end;


  java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
  text,otext be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
KeybeElement m-4-(8tuples_on)java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
    3=*OpOpRightr64,)OpRightr72)8),
st(   m= 6m(m)(ey))1java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
  KeyNr =(KeyExpansion(SBT,m)).(Key)).(7+m) &
  otext = AddRoundKey.((ShiftRows*SubBytes(SBT)).text,KeyNr)
  java.lang.StringIndexOutOfBoundsException: Range [20, 7) out of bounds for length 74
proof
  let m be Nat,
  text,otext be Element of 4-tuples_on(4-tuples_on (8-tuples_onotext  (ShiftRowsSubBytesSBT).,)
  Key be Element of m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
bejava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 75
textotextof4-4(-)
AS: (m = 4 or m = 6 or m = 8) & Keyi1 = (Rev((KeyExpansion(SBT,m)).(Key)))Keybe Elementof tuples_ontuples_on 8tuples_on java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 67
=(K(SBTm)().7m)&
  otext = AddRoundKey.((ShiftRows*SubBytes(SBT)).text,java.lang.StringIndexOutOfBoundsException: Range [0, 59) out of bounds for length 8
  (AddRoundKey.(otext,Keyi1)) = (ShiftRows*java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 10
  A7: .1 =*Op-r)OpLeft(Op-(,)8,
  = text by LAST01;
; (ubBytes()java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 61

theorem LAST05:
  for m be Nat,
E 4tuples_on-java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 68
  key be Element of m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN  or,  java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 17
,  Elementof4java.lang.StringIndexOutOfBoundsException: Range [0, 39) out of bounds for length 17
  java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
  ekeyi = (Rev((KeyExpansion(SBT,m)).(key))).A9: exv  of (-(-BOOLEAN)     &
  holds AddRoundKey.(AddRoundKey.(text,ekeyi),dkeyi) = text
proof
  let m be Nat,
  text be Element of 4-tuples_on(4-tuples_on =Rev(KeyExpansion(m).(ey).i1;
  key be Element of m-tuples_on(4-java.lang.StringIndexOutOfBoundsException: Range [0, 43) out of bounds for length 33
  dkeyi,ekeyi be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
  assume
AS: (m = 4 or m = 6 or m = 8) & dkeyi java.lang.StringIndexOutOfBoundsException: Range [38, 39) out of bounds for length 8
      hence p = A8,14java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
    end;
(KeyExpansion(SBTm).(key)in
  (7+m)-tuples_on(4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN
  then
B0:ex be.ekeyiby,;
  KeyExpansionSBT,)).key  &len  (+m);
 10 m java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 25
 7m  Seg(+;
  then
1 + domp def3B0;
: ekeyi=p(lenp)(+)1 by,58B1
    .= dkeyi by B0,AS;
 now ij be;
    assume
A3: i in Seg 4 & j in Seg 4;
    then consider etextij,ekeyij be Element of 8-tuples_on BOOLEAN such that
A4: etextij = (text.i).j & ekeyij = (ekeyi.i).j &
    ((AddRoundKey.text,ekeyi).).=Op-etextij,ekeyijjava.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
    by DefAddRoundKey;
    consider dtextij,dkeyij be Element of 8-tuples_on BOOLEAN such that
A5: dtextij = ((AddRoundKey.(text,ekeyi)).i).j & dkeyij = (dkeyi.i).j &
    (java.lang.StringIndexOutOfBoundsException: Range [19, 17) out of bounds for length 58
    -XORdkeyij)yA3;
    thus ((AddRoundKey.(AddRoundKey.(text,ekeyi),dkeyi)).i).j =
    (text.i).j by A4,A5,A0,DESCIP_1:17;
  ;
  hence AddRoundKey.(AddRoundKey.(text,ekeyi),dkeyi) = text by LM01;
end;

theorem
  for m be Nat,
  text,otext be Element of 4-tuples_on  text,otext ider i=7m- Nat;
Key Element  m-tuples_on(-tuples_on (8tuples_on BOOLEAN),
  Keyi1,KeyNr be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
  st (m = 4 or m = 6 or m = 8) & Keyi1 = ((KeyExpansion(SBT,m)).(Key)).1 &
  KeyNr = (Rev((KeyExpansion
  =AddRoundKey.(SubBytes().,)
  holds (InvSubBytes(SBT)*InvShiftRows).(AddRoundKey.(otext,Keyi1)) = text
proof
  let m be Nat,
  text,otext be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
  Key be Element of m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
  Keyi1,KeyNr be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
assume
AS: (m = 4 or m = 6 or m = 8) & Keyi1 = ((KeyExpansion(SBT  letKey be Element of m-tuples_on(-tuples_on (8-tuples_on BOOLEAN));
  KeyNr = (Rev((KeyExpansion(SBT,m)).(Key))).(7+m) &
  otext = AddRoundKey.((java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 25
  (AddRoundKey.(otext,Keyi1)) = (ShiftRows*SubBytes(SBT)).text by AS,LAST05;
  hence (InvSubBytes(SBT)*InvShiftRows).(AddRoundKey.(otext,Keyi1  exbe of t(4-tuples_on ))
  by LAST01;
end;

theorem LAST08:
f m,i be java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
  text be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
  Key be Element of m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
 eKeyi,Keyi be Element of4tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
  st (m = 4 or m = 6 or m = 8) & i <= 7+m-1 &
= ((SBT,)().7+-)&
(S,m).))(+1
  holds AddRoundKey.(AddRoundKey.(text,eKeyi),dKeyi) = text
proof
  let m,i be Natset  = <,R2R3*>;
  text be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
  key be Element of m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
  ekeyi,dkeyi be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
  assume
AS: (m = 4 or m = 6 or m = 8) & i <= 7+m-1  1=(A5. &T.+  T23y FINSEQ_3:;
  =(KeyExpansion(BT,))()(+-) &
  dkeyi = (Rev((KeyExpansion(SBT,m)).(key))).(java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 40
  set p = (KeyExpansion(SBT,m)).(key);
  (KeyExpansion(SBT,m)).(key) in
  (7+m)-tuples_on(4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)));
  then
B0: ex s be Element of (4-tuples_on (4-tuples_on (8-tuples_on BOOLEAN)))*
  st (KeyExpansion(SBT,m)).(key) = s & len s = (7+m);
  i+ end;
  then 1 <= i+1 & i+1 <= 7+m by NAT_1:11;
    uniqueness
  then
B1: i+1 in dom p by FINSEQ_1:def 3,B0;
: dkeyi=p(lenp-(+1+1) by AS,FINSEQ_5:58,B1
    .= ekeyi by B0,AS;
  now let i,j be Nat;
    assume
A3: i in Seg 4 & j in Seg 4;
    then consider etextij,ekeyij be Element of 8-tuples_on BOOLEAN such that
:java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 49
(AddRoundKey(,keyi).i).j = Op-XOR(etextij,ekeyij)
    by DefAddRoundKey;
          OpLeftOp-Rightr80)8,Op-Left(-RightRight(,88,)* &
A5: dtextij = ((AddRoundKey.(text,ekeyi)).i).j & dkeyij = (dkeyi.i)
(java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 58
p(textij,dkeyij)by ,3java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
    thus ((AddRoundKey    .6= <*OpLeftOp-Right,160),8)Op-Left(-Rightr168),8,
    (.i).j by      -OpRightr176,,-ightr184 >
  end;
  hence AddRoundKey.(java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 21
end      -Left(-(,6)8)Op-Left(-(,24,8)* java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62

LAST07:
  for   Nat
textbeElementof -4tuples_on 8-BOOLEAN),
  Key be Element of m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
  eKeyi,dKeyi be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
  st (m = 4 or m = 6 or m = 8) & eKeyi = ((KeyExpansion(SBT,m)).(Key)).1 &
  dKeyi = (Rev((KeyExpansion(SBT,m)).(consider dKeyi be Element of 4-tuples_ontuples_on 8)
        -(Opr176)8)-r184 ;
 intuples_on(- (d..(()1 java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
  let m be Nat,
  text be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
  Key be Element of m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)    len v= 6;
  eKeyi,dKeyi be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
  assume
AS: (m = 4 or m = 6 or m = 8) & eKeyi 
KeyExpansion(m))(Key)).7+m);
  1+0 < 7+m by XREAL_1:8;
  then 0 < 7+m-1 by XREAL_1:50;

t reconsider  +m1as
P2: eKeyi = ((KeyExpansion(SBT,m)).(Key)).(7+m-i) by AS;
  dKeyi = (Rev((KeyExpansion(SBT,m)).(Key))).(i+1) by AS;
  hence thesis by AS,P2,LAST08;
end;

:
fmbeNat
  text be of -4tuples_on (8-tuples_on BOOLEAN)),
  Key be Element of m-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
  st (mA12:AddRoundKey.(eseq(i),   of8 -BOOLEAN) means
  holds *Opthus dseq.((i+1) i)b X2A1,LAST02java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
proof
  let m be Nat;
  let text beElement of 4-(4-uples_on (8-tuples_on BOOLEAN);
  let  be Element of m-uples_on 1=   =1(5m NAT_1:11java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
+  + y XREAL_1:;
  then
N1:  then econsider esq1 =eseq1 as
  7-inby3java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31

A0: 1 <= Nr by NAT_1:14,N1;
  assume
AS: (m = 4 or m = 6 or m = 8);
  consider eseq be
   of4(8java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 75
P1: len eseq = Nr &
  (ex Keyi1 be java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 4
  st Keyi1 = ((KeyExpansion =*LeftOpr128,)OpORight136,)java.lang.StringIndexOutOfBoundsException: Range [70, 71) out of bounds for length 70
  eseq.1 = AddRoundKey.(text,Keyi1)) & (for i be Nat st 1 < r   of  8 =  &  =n- & 16<  R6  *-p(,)8pLeft-r1688,
 Keyi beElement of 4tuples_on(- Leftr)),LeftOpR(,,)*>
  st Keyi = ((KeyExpansion  holds  set R7 =< -(OpRightr),,pLeftOpRightr200),8),
.M*  >is of -tuples_on-java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
   KeyNr Element  4-tuples_on(4-tuples_on (8-java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
  st8 96 & 8 <= 256-  <256-   =java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
  AES-ENC(SBT,MCFunc,text,Key) =
  AddRoundKey.((ShiftRows*SubBytes(SBT)).(eseq.Nr),KeyNr) by defENC;
  consider dseq be
  FinSequence of (4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))) such that
2  dseq=Nr java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
  (ex Keyi1 be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
  st Keyi1 = (Rev((KeyExpansion(SBT,m)).(Key))).1 &
  1=(nvSubBytes(SBT)InvShiftRows)java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
  A.(ENCSBT,textKey,))&
  (ibeNat st <     holds
  ex Keyi be Element of 4-tuples_on(4-tuples_on (8-tuples_on java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 62
  st Keyi = (Rev((KeyExpansion(SBT,m)).(Key))).(i+1) &
  dseq.(i+1) =
  (InvSubBytes(SBT)*InvShiftRows*(MCFunc")).(AddRoundKey.(dseq.i,Keyi))) &
exKeyNrbe of -java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 71
  st KeyNr = (Rev((KeyExpansion(SBT,m)).(Key))).(7+m) &
  AES-DEC(SBT,MCFunc,AES-ENC(SBT,MCFunc,text,Key),Key) =
  AddRoundKey.(dseq.Nr,KeyNr) by defDEC;
  consider eKeyi1 be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
  that
P11:  8<=n- & p =m+A5:.4)=T2.1  .  T.(+) T2.  byFINSEQ_3155java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
eseq. =AddRoundKey.(text,eKeyi1) by P1;
  consider eKeyNr be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
  such that
P12:=((m))) t4 tBOOLEAN))means
S,t,Key)=
  AddRoundKey.((ShiftRows*SubBytes(SBT)).(eseq.Nr),      -LeftORight(r,144),8,-Left(OpRight(r152,)* &
nBOOLEAN)
  such that
P21: dKeyi1 = (Rev((KeyExpansion(SBT,m)).(Key))).1 &
  dseq.1 = (InvSubBytes(SBT)*InvShiftRows).
xt,Key,dKeyi1) by P2
  consider dKeyNr be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
  
P22: dKeyNr = (Rev((KeyExpansion(SBT,m)).(Key)) Op-(Right(r,)8,OpOpLeft-,240),)Op-r;
  AES-DEC(SBT,MCFunc,AES-ENC(SBT,MCFunc,text,Key),Key) =
  AddRoundKey.(dseq.Nr,dKeyNr) by P2;
  defpred PQ[Nat]means
  $1 < Nr implies dseq.($1+1) = eseq      OpLeft(p-(,)8,Op-LeftOpRight(,)8 *
  Nr in Seg Nr by A0;
  then Nr in dom eseq      q2  *Op-(p-r32,)OpLeftOpr,0),
  then eseq in rng eseq      Op-(Right(,8)8,-Left(Op-(r,)8 >&
  then reconsider esqm = eseq.Nr as
 Element of 4tuples_on(-tuples_on (8- BOOLEAN));
  dseq.(1+0) = esqm by P12,P21,AS,LAST04
    .= eseq.(Nr-0);
  OpLeft(p-Right(r-Left(p(1)8  
PN1    q.5= * Op-eft(pRight,128),),pLeft(Op-Right(,136)8,
PN2: for i be Nat st PQ[i] holds PQ[i+1]
  proof
    let i be Nat;
    assume
A1: PQ[i];
    assume
 i1 <Nr;
i < 1bNAT_1:1
 4-(- 8tuples_onBOOLEAN))

A6: dKeyi = (Rev((KeyExpansion(SBT,m)).(Key))).((i+1A5 .(+1  .1&
          leti  Nat;
    (InvSubBytes(SBT)*InvShiftRows*(MCFunc")).(AddRoundKey.(dseq.(       1 <=i  =len ;
A2NAT_1:
X11: 0 < Nr-(i+1) by A2,XREAL_1:50;
    then Nr-(i+1) in NAT by INT_1:3;
    then reconsider m7i1 = Nr-(i+1) as Nat;
    1 <= m7i1 by NAT_1:14,X11;
    then
A9 oftuples_on
consider beElement  (4tuples_on(- )
    such that
A10: eKeyi = ((KeyExpansion(SBT,m)).(Key)).(m7i1+1) &
    eseq.(m7i1+1) =
    java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 70
    by P1,A9;
  by;
    then m7i1 in dom eseq by P1,FINSEQ_1:def 3;
    then eseq.m7i1 in rng eseq by FUNCT_1:3;
    then reconsider esq7mi1      Op-Left(Op-Right(r,16)8,Left(-Right(,    -tuples_on BOOLEAN byFUNCT_2:;
   Elementof-(4-tuples_on (-tuples_on BOOLEAN));
    
    Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
XXX: eKeyi = ((KeyExpansion(SBT,m)).(Key)).(7+m-(i+1)) by A10;
A12: AddRoundKey.(eseq.(Nr-i),dKeyi) = MSSesq7mi1     q.  *OpLeftOp-r96,)Op-LeftOpRight(1)8,
     (i+)1)=eseq.Nr-(+)  A6A4,A2,XXREAL_0java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
  end;
P30: java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
  5+m < 6+m by java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 5
  then
P31: dseq.(5+m+1) = eseq.(Nr-(5+m)) by P30;
  1 <= 1 & 1 <= 1+(5+m) by NAT_1:11;
  then 1 in Seg Nr;
  then 1 in dom eseq by P1,FINSEQ_1:def 3;
  then eseq.1 in rng eseq by FUNCT_1:3;
  then reconsider esq1 = eseq.1 as
  Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
  -(SBT,CFuncAESENC,MCFunc,,)K) =text
,31,,,;
end;

theorem LR8D1:
  Dbe  empty set, , be non zero Element of NAT,
  r   Element of128-tuples_on BOOLEAN;
  holds Op-Left(Op-Right(r,m),8) is Element of 8-tuples_on D
proof
  D nonempty setjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
  n,m be non zero Element of NAT,
  r be Element of n-tuples_on D;
  assume
A1: m <= n & 8 <= n-m;
  r in { s where s is Element of java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
  then consider s be Element of D* such that

  len Op-Right(r,m) = n - m by A1,A2,RFINSEQ:def 1;
  then len(Op-Left(Op-Right(r,m),8)) = 8 by A1,FINSEQ_1:59;
  hence thesis by Right(r,144)OpLeftOpRight( ESStatearray).AESENC(BT,ixColumns,AES-Statearray.message,
end;

Lm1:
  for D be non empty set, n be non zero Element of NAT,
  r be Element of n-tuples_on D st 8 <= n & 8 <= n-8 & 16 <= n &
  8 <= n-16 & 24 <= n & 8 <= n-24
  holds <* Op-Left(r,8),Op-Left(Op-Right(r,8),8),Op-Left(Op-Right(r,16),8),
  Op-Left(Op-Right(r,24),8) *> is Element of 4-tuples_on (8-tuples_on D)
proof
  let D be non empty set, n be non zero Element of NAT,
  r be Element of n-tuples_on D;
  assume 8 <= n & 8 <= n-8 & 16 <= n & 8 <= n-16 & 24 <= n & 8 <= n-24;
  then Op-Left(r,8) is Element of 8-tuples_on D &
(-r112,8,LeftOpRightr120),8) >
  Op-Left(Op-Right(r,16),8) is Element of 8-tuples_on D &
  Op-Left(Op-Right(r,24),8) is Element of 8-tuples_on D by DESCIP_1:1,LR8D1;
  hence = 19264&8=19272&8 =80&le='color: green'>8<19288 java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
;

Lm2:
    uncAES192DECSBT,)>
 st   128&8=-& =192-& < -152&
  8 <= n-l & p = m+16 & p <= n & 8 <= n-p & q = m+24 & q <= n & 8 <= n-q
  holds <* Op-Left(Op-Right(r,m),8),Op-Left(Op-Right(r,l),8),
  Op-Left(Op-Right(r proof
  Element of 4-tuples_on (8-tuples_on D)
proof
  let     A-Statearray    set T  ^java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 18
  r be Element of n-tuples_on D;
  assume m <= n & 8 <= n-m & l = m+8 & l <= n & 8 <= n-l &
  p = m+16 & p <= n & 8 <= n-p & q = m+24 & q <= n & 8 <= n-q;
  then Op-Left(Op-Right(r,m),8) is Element of 8-tuples_on D &
  Op-Left(Op-Right(r,l),8) is Element of 8-tuples_on D &
  Op-Left(Op-Right(    hence thesis by  end;
  Op-Left(Op-Right(r,q),8) is Element of 8-tuples_on D by LR8D1;
  hence thesis by LMGSEQ4;
end;

Lm3:
  for D be non empty    .=< OpRight(,)8,-LeftOpRight(,)8,  MixColumns be Permutation of 4-tuples_on(-tuples_on 8-tuples_on BOOLEAN)java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
  r be Element of n-tuples_on D st m <= n & 8 <= n-m & l = m+8 & l <= n &
  8 <java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
   -O-  reconsidertext=AES-message as
  Op-Left(Op-Right(r,p),8),Op-Right(r,q) *> is
  Element of 4-tuples_on (8-tuples_on D)
proof
  let D be non empty set, n,m,l,p,q be non zero Element of NAT,
  r be Element of n-tuples_on D;
  assume m <= n & 8 <= n-m & l = m+8 & l <= n & 8 <= n-l &
  m+   =n&8 - &  = m <=n &8 -q
thenOpLeft(pRight(,))is  of8-tuples_on D&   of -4-8- )java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
  Op-end
  Op-Left(Op-Rightt
  Op-Right(r,q) is Element of 8-tuples_on D A9: ex v be Element of (4-tuples_on (8-tuples_)*stq = v java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
  hence thesis by LMGSEQ4;
end;

definition
  let r be Element of 128-tuples_on BOOLEAN;
  func AES-KeyInitState128(r) ->
  Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)) means
  it.1 = <* Op-Left(r,8),Op-Left(Op-Right(r,8),8),
    Op-Left(Op-Right(r,16),8),Op-Left(Op-Right(r,24),8) *> &
  it.2 = <* Op-Left(Op-Right(r,32),8),Op-Left(Op-Right(r,40),8),
    Op-Left(Op-Right(r,48),8),Op-Left(Op-Right(r,56),8) *> &
  it.3 = <* Op-Left(Op-Right(r,64),8),Op-Left(Op-Right(r,72),8),
    Op-Left(Op-Right(r,80),8),Op-Left(Op-Right(r,88), it.= * Op-(r)Op-OpRight(,)8,
  it.4 = <* Op-Left(Op-Right(r,96),8),Op-Left(Op-Right(r,104),8),
    Opit4 * -(-(,)8),-Right,,8),
  existence
  proof
    set R1 = <* Op-Left(r,8),Op-Left(Op-Right(r,8),8),
      Op-(Op(16,)OpLeftr24,)*;
    let Key  of;
Op(-,,,Leftr)8>
   setR3=<*OpLeft(Rightr64,),Op-Left(Op-Right(r,72),8),
      Op-Left(Op-Right(r,80),8),Op-Left(Op-Right(r,88),8) *>;
    set    AES-KeKey));
      Op-Left(Op-Right(r,112),8),Op-Right(r,120) *>;
    8 <= 128-8 & 8 <= 128-16 & 8 <= 128-24;
    then reconsider R1 as Element of 4-tuples_on (8-tuples_on BOOLEAN) by Lm1;
     = 12832 & 8 <=12840&8< -48   < - &
    40 = 32+8 & 48 = 32+16 & 56 = 32+24;
    then reconsider R2 as Element of 4-tuples_on (8-tuples_on BOOLEAN) by Lm2;
    8 <= 128-64 & 8 <= 128-72 & 8 <= 128-80 & 8 <= 128-88 &
    72 = 64+8 & 80 = 64+16 & 88 = 64+24;
    then reconsider R3 as Element of 4-tuples_on (8-tuples_on BOOLEAN) by Lm2;
    8 <= 128-96 & 8 <= 128-104 & 8 <= 128-112 & 8 = 128-120 &
      8    96+16 &   +    -120
    then reconsider R4 as Element of 4-tuples_on (8-tuples_on BOOLEAN) by Lm3;
    set T1 = <*R18tuples_on(()    -uples_onby25;
 =*,*;
    java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 78
A4: T.1 = T1.1 & ... & T.2 = T1.2 by FINSEQ_3:154;
A5: T.(2+1) = T2.1 & ... & T.(2+2) = T2.2 by FINSEQ_3:155;
    len T = 4 & T is FinSequence of 4-tuples_on (8-tuples_on BOOLEAN)
    by CARD_1:def 7;
    then reconsider T as Element of
    4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)) by FINSEQ_2:92;
    take T;
    thus thesis by A4,A5;
  end;
  uniqueness
  proof
    let p,q be Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
    assume
A6: p.1 = <* Op-Left(r,8),Op-Left(Op-Right(r,8),8),
      Op-Left(Op-Right(r,16),8),Op-Left(Op-Right(r,24),8) *> &
    p.2 = <* Op-Left(Op-Right(r,32),8),A7: q.1 = <* Op-Left(r,8),Op-Left(Op-Right
      Op-Left(      Op-Left(Op,)8,(R(r)8  
    p.3 = <* Op-Left(Op-Right(r,64),8),Op-Left(Op-    p.3 = <* Op-Left(Op-Right(r,64),8),Op-Left(Op-Right,)java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
      Op-Left(Op-Right(r,80),8),Op-Left(Op-Right(r,88),8) *> &
    p.4 = <* Op-Left(Op-Right(r,96),8),Op-Left(Op-Right(r,104),8),
      Op-Left(Op-Right(r,112),8),Op-Right(r,120) *>;
    assume
A7: q.1 = <* Op-Left(r,8),Op-Left(Op-Right(r,8),8),
      Op-Left(Op-Right(r,16),8),Op-Left(Op-Right(r,24),8) *>     .3=<(-r64,,-(Opjava.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 65
    q.2 = <* Op-Left(Op-Right(r,32),8),Op-Left(Op-Right(r,40),8),
      Op-Left(Op-Right(r,48),8),Op-Left(Op-Right(r,56),8) *> &
    q.3 = <* Op-Left(Op-Right(r,64),8),Op-Left(Op-Right(r,72),8),
      Op-Left(Op-Right(r,80),8),Op-Left(Op-Right(r,88),8) *> &
    .4 *-r96,)O-r104,)
      Op-Left(Op    q.  *OpOp-r128,,(p-136,),
pin -4();
    then
A8: ex v be Element of (4-tuples_on (8-tuples_on BOOLEAN))* st p = v &
    len v = 4;
    q in 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
    then
A9: ex v be Element of      -eft(pRight(208,)Op-(-(r,216)8 >&
    len v = 4;
for i  Natst 1 <=i  i< len holds.=q.
    proof
      let i be Nat;
      assume 1 <= i & i <= len p;
      then i = 1 or ... or i = 4 by A8;
      hence thesis by A6,A7;
    end;
    hence p = q by A8,A9,FINSEQ_1:14;
  end;
end;

definition
  let r be Element of 192-tuples_on BOOLEAN;
  func AES-KeyInitState192(r) ->
  Element of 6-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)) means
  it.1 = <* Op-Left(r,8),A9: ex v be Element of (4-tuples_on-)* stq=v&
    Op-Left(Op-Right(r,16),8),Op-Left(Op-Right(r,24),8) *> &
  it.2 = <* Op-Left(Op-Right(r,32),8),Op-Left(Op-Right(r,40),8),
    Op-Left(Op-Right(r,48),8),Op-Left(Op-Right(r,56),8) *> &
  it.3 1 <=i  <  java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
    Op-Left(Op-Right(r,80),8),Op-Left(Op-Right(r,88),8) *> &
  it.4 = <* Op-Left(Op-Right(r,96),8),Op-Left(Op-Right(r,104),8),
    Op-Left(Op-Right(r,112),8),Op-Left(Op-Right(r,120),8) *> &
  it.5 = <* Op-Left(Op-Right(r,128),8),Op-Left(Op-Right(r,136),8),
    Op-Left(Op-Right(r,144),8),Op-Left(Op-Right(r,152),8) *> &
  it.6 = <* Op-Left(Op-Right(r,160),8),Op-Left(Op-Right(r,168),8),
    Op-Left(Op-Right(r,176),8),Op-Right(r,184) *>;
  existence
  proof
    set R1 = <* Op-Left(r,8),Op-Left(Op-Right(r,8),8),
      Op-Left(Op-Right(r,16),8),Op-Left(Op-Right(r,24),8) *>;
    set R2 = <* Op-Left(Op-Right(r,32),8),Op-Left(Op-Right(r,40),8),
      -Op-r48,,--r,)8 >
    set R3 = <* Op-Left(Op-Right(java.lang.StringIndexOutOfBoundsException: Range [0, 34) out of bounds for length 4
      Op-Left(Op-Right(r,80),8),  let,MixColumnsjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
    set R4 = <* Op-Left(Op-Right(r,96),8),Op-Left(Op-Right(r,104),8),
      Op-Left(Op-Right(r,112),8),Op-Left(Op-  func AES128-ENC(SBT,MixColumns,message,Key) -
    set R5 = <* Op-Left    128 BOOLEANequals
      O-Right(,)8),p-eftOp-(r,152)8 *java.lang.StringIndexOutOfBoundsException: Range [63, 64) out of bounds for length 63
    set R6 = <* Op-Left(Op-Right(r,160),8),Op-Left(Op-Right(r,168),8),
      Op-Left(Op-Right(r,176),8),Op-Right(r,184) *>;
    8 <=     -tatearray=4--java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 71
    then reconsider R1 as Element of 4-tuples_on (8-java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 41
    8 <= 192-32 & 8 <= 192-40 & 8 <= 192-48 & 8 <= 192-56 &
    40 = 32+8 & 48 = 32+16 & 56 = 32+24;
    then reconsider R2 as  end;
    8 <= 192-64 & 8 <= 192-72 & 8 <= 192-80 & 8 <= 192-88 &
    72 = 64+8 & 80 = 64+16 & 88 = 64+24;
    then reconsider R3 as Element of 4-tuples_on (8-tuples_on BOOLEAN) by Lm2;
    8 <= 192-96 & 8 <= 192-104 & 8 <= 192-112 & 8 <= 192-120 &
    104 = 96+8 & 112 = 96+16 & 120 = 96+24;
    then reconsider R4 as Element of 4-tuples_on (8-tuples_on BOOLEAN) by Lm2;
    8 <= 192-128 & 8 <= 192-136 & 8 <= 192-144 & 8 <= 192-152 &
    136 = 128+8 & 144 = 128+16 & 152 = 128+24;
    then reconsider R5 as Element of 4-tuples_on (8-tuples_on BOOLEAN) by Lm2;
    8 <= 192-160 & 8 <= 192-168 & 8 <= 192-176 & 8 = 192-184 &
    168 = 160+8 & 176 = 160+16 & 184 = 160+24 & 8 = 192-184;
    then reconsider R6 as Element of 4-tuples_on (8-tuples_on BOOLEAN) by Lm3;
    set T1 = <*R1,R2,R3*>;
    set T2 = <*R4,R5,R6*>;
    set T = T1^T2;
A4: T.1 = T1.1 & ... & T.3 = T1.3 by FINSEQ_3:154;
A5: T.(3+1) = T2.1 & ... & T.(3+3) = T2.3 by FINSEQ_3:155;
    len T = 6 & T is FinSequence of 4-tuples_on (8-tuples_on BOOLEAN)
    by CARD_1:def 7;
    then reconsider T as Element of
    6-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)) by FINSEQ_2:92;
    take T;
    thus thesis by A4,A5;
  end;
  uniqueness
  proof
    let p,q be Element of 6-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
    assume
A6: p.1 = <* Op-Left(r,8),Op-Left(Op-Right(r,8),8),
      Op-Left(Op-Right(r,16),8),Op-Left(Op-Right(r,24),8) *> &
    2=< OpLeft(-r32)8)O-Op-(r)8)java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
      Key)
    p. =<*Op-(-r64,)OpO-r72,)
      Op-Left(Op-Right(r,80),8),Op-Left(Op-Right(r,88),8) *> &
    p.4 = <* Op-Left(Op-Right(r,96),8),Op-Left(Op-Right(r,104),8),
(r112)8,pLeft(Op-Right(r,120)8* java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
    p.5 = <* Op-Left(Op-Right(r,128),8),Op-Left(Op-Right(r,136),8),
      Op-Left(Op-Right(r,144)java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    p.6 = <* Op-Left(Op-Right(r,160),8),Op-Left(Op-Right(r,168),8),
      Op-Left(Op-Right(r,176),8),Op-Right(r,184) *>;
    assume
A7: q.1 = <* Op-Left(r,8),Op-Left(Op-Right(r,8),8),
      Op-Left(Op-Right(r,16),8),Op-Left(Op-Right(r,24),8) *> &
    q.2 =  Elemento 4tuples_on(4tuples_on (8-tuples_on BOOLEAN));
      Op-Left(Op-Right(r,48),8),Op-Left(Op-Right(r,56),8) *> &
    q.3 = <* Op-Left(Op-Right(r,64),8),Op-Left(Op-Right(r,72),8),
      Op-Left(Op-Right(r,80),8),Op-Left(Op-Right(r,88),8) *> &
    q.4 = <* Op-Left(Op-Right(r,96),8),Op-Left(Op-Right(r,104),8  Element 128-java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 35
LeftOp(,,Leftr120))*>java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
    q.5 = <* Op-Left(Op-Right(r,128),8),Op-Left(Op-Right(r,136),8),
      Op-Left(Op
    q.6 = <* Op-Left(Op-Right(r,160),8),Op-Left(Op-Right(r,168),8),
      Op-Left(Op-Right(r,176),8),Op-Right(r,184) *>;
6-java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 56
    then
A8: ex v be Element of (4- 128tuples_on  equals
    len v = 6;
    q in 6-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
    then
A9: ex v be Element of (4-tuples_on (8-tuples_on BOOLEAN))* st q = v &
    len v = 6;
    for i be Nat st 1 <= i & i <= len p holds p.i = q.i
    proof
      let i be Nat;
      assume 1 <= i & i <= len p;
      then i = 1 or ... or i = 6 by A8;
      hence thesis by A6,A7;
    end;
    hence p = q by A8,A9,FINSEQ_1:14;
  end;
end;

definition
  let r be Element of 256-tuples_on BOOLEAN;
  func AES-KeyInitState256(r) ->
  Element of 8-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)) means
it1=<-Left(,8),-Op-Rightr8,)
    Op-Left(Op-Right(r,16),8),Op-Left(Op-Right(r,24),8) *> &
  it.2 = <* Op-Left(Op-Right(r,32),8),Op-Left(Op-Right(r,40),8),
    Op-Left(Op-Right(r,48),8),Op-Left(Op-Right(r,56),8) *> &
  it.3 = <* Op-Left(Op-Right(r,64),8),Op-Left(Op-Right(r,72),8),
    Op-Left(Op-Right(r,80),8),Op-Left(Op-Right( (ES-) 
  it.4 = <* Op-Left(Op-Right(r,96),8),Op-Left(Op    Function of4-4tuples_on ( BOOLEAN),
OpLeft(-(,)8,-(-(r,20,)* java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
  it.5 = <* Op-Left(Op-Right(r,128),8),Op-Left(Op-Right(r,136),8),
    Op-Left(Op-Right(r,144),8),Op-Left(Op-Right(r,152),8) *> &
  it.6 = <* Op-Left(Op-Right(r,160),8),Op-Left(Op-Right(r,168)  for Permutation  8 )java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
    Op-Left(Op-Right(r,176),8),Op-Left(Op-Right(r,184),8) *> &
  it.7 = <* Op-Left(Op-Right(r,192),8),Op-Left(Op-Right(r,200),8),
    Op-Left(Op-Right(r,208),8),Op-Left(Op- AES192-(,(,)java.lang.StringIndexOutOfBoundsException: Range [71, 70) out of bounds for length 73
  it.8 = <* Op-Left(Op-Right(r,224),8),Op-Left(Op-Right(r,232),8),
    Op-Left(Op-Right(r,240),8),Op-Right(r,248) *>;
  
   of-(- 8tuples_onBOOLEAN),
    set R1 = <*   beElement  128-uples_onBOOLEANjava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
      Op-Left(Op-Right(r,16),8),Op-Left(Op-Right(r, Op-Left(Op-Right(r,16),8),Op-Left(Op-Right(r,24
    set R2 = <* Op-Left(Op-Right(r,32),8),Op-Left(Op-Right(r,40),8),
      Op-Left(Op-Right(r,48),8),Op-Left(Op-Right(r,56),8) *>;
    set R3 = <* Op-Left(Op-Right(r,64),8),Op-Left(Op-Right(r,72),8),
     -Right,),,--88)8 ;
    set R4 = <* Op-Left(Op-Right(r,96),8),Op-Left(Op-Right(r,104),8),
      Op-Left(Op-Right(r,112),8),Op-Left(Op-Right(r,120),8) *>;
    set R5 = <* Op-Left(Op-Right(r,128),8),Op-Left(Op-Right(r,136),8),
      Op-Left(Op-Right(r,144),8),Op-Left(Op-Right(r,152),8) *>;
    set R6 = <* Op-Left(Op-Right(r,160),8),Op-Left(Op-Right(r,168),8),
      Op-Left(Op-Right(r,176),8),Op-Left(Op-Right(r,184),8) *>;
    set R7 = <* Op-Left(Op-Right(r,192),8),Op-Left(Op-Right(r,200),8),
      Op-Left(Op-Right(r,208),8),Op-Left(Op-Right(r,216),8) *>;
    set R8 = <* Op-Left(Op-Right(r,224),8),Op-Left(Op-Right(r,232),8),
      Op-Left(Op-Right(r,240),8),Op-  uncmessage -java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
    8 <= 256-8 & 8 <= 256-16 & 8 <= 256-24;
    then reconsider R1 as Element of 4-tuples_on (8-tuples_on BOOLEAN) by Lm1;
    8 <= 256-32 & 8 <= 256-40 & 8 <= 256-48 & 8 <= 256-56 &
    40 = 32+8 & 48 = 32+16 & 56 = 32+24;
    then reconsider R2 as Element of 4-tuples_on (8-tuples_on BOOLEAN) by Lm2;
    8 <= 256-64 & 8 <= 256-72 & 8 <= 256-80 & 8 <= 256-88 &
    72 = 64+8 & 80 = 64+16 & 88 = 64+24;
    then reconsider R3 as Element of 4-tuples_on (8-tuples_on BOOLEAN) by Lm2;
    8 <= 256-96 & 8 <= 256-104 & 8 <= 256-112 & 8 <= 256-120 &
    104 = 96+8 & 112 = 96+16 & 120 = 96+24;
    then reconsider R4 as Element of 4-tuples_on (8-tuples_on BOOLEAN) by Lm2;
    8 <= 256-128 & 8 <= 256-136 & 8 <= 256-144 & 8 <= 256-152 &
    136 = 128+8 & 144 = 128+16 & 152 = 128+24;
    then reconsider R5 as Element of 4-tuples_on (8-tuples_on BOOLEAN) by Lm2;
    8 <= 256-160 & 8 <= 256 128-uples_onBOOLEANjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
    168 = 160+8 & 176 = 160+16 & 184 = 160+24;
    then reconsider R6 as Element of 4-tuples_on (8-tuples_on BOOLEAN)  proof
    8 <= 256-192 & 8 <= 256-200 & 8 <= 256-208 & 8 <= 256-216 &
    200 = 192+8 & 208 = 192+16 & 216 = 192+24;
     then(Sjava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 29
    8 <= 256-224 & 8 <= 256-232 & 8 <= 256-240 & 8 = 256-248 &
java.lang.StringIndexOutOfBoundsException: Range [15, 4) out of bounds for length 60
    then reconsider R8 as;
    set T1 = <*R1,R2,R3,R4*>;
    set T2 = <*R5,R6,R7,R8*>;
    set T = T1^  for SBT be Permof(8-tuples_onBOOLEAN,
A4: T.1 = T1.1 & ... & T  MixColumns be of4tuples_on(4-(-java.lang.StringIndexOutOfBoundsException: Range [68, 67) out of bounds for length 78
A5: T.(4+1) =   Key be Element 256tuples_on 
    len T = 8 & T is FinSequence of 4-tuples_on (8-tuples_on BOOLEAN)
    by CARD_1:def 7;
    then reconsider T as Element of
    8-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)) by FINSEQ_2:92;
    take T;
    thus thesis by A4,A5;
  end;
  uniqueness
  proof
    let p,q be Element of 8-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
    assume
A6: p.1 = <* Op-Left(r,8),Op-Left(Op-Right(r,8),8),
      Op-Left(Op-Right(r,16),8),Op-Left(Op-Right  econsider  = AES256-ENC(,MixColumns,message, java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
    p.2  (AESStatearray).(AES-DEC(SBT,MixColumns,s)byLMINV1
      Op-Left(Op-Right(r,48),8),Op-Left(Op-Right(r,56),8) *> &
    p.3 = <* Op-Left(Op-Right(r,64),8),Op-Left(Op-Right(r,72),8),
      Op-Left(Op-Right(r,80),8),Op-Left(Op-Right(r,88),8) *> &
    p.4 = <* Op-Left(Op-Right(r,96),8),Op-Left(Op-Right(r,104),8),
      Op-Left(Op-Right(r,112),8),Op-Left(Op-Right(r,120),8) *> &
    p.5 = <* Op-Left(Op-Right(r,128),8),Op-Left(Op-Right(r,136),8),
      Op-Left(Op-Right(r,144),8),Op-Left(Op-Right(r,152),8) *> &
    p.6 = <* Op-Left(Op-Right(r,160),8),Op-Left(Op-Right(r,168),8),
      Op-Left(Op-Right(r,176),8),Op-Left(Op-Right(r,184),8) *> &
    p.7 = <* Op-Left(Op-Right(r,192),8),Op-Left(Op-Right(r,200),8),
      Op-Left(Op-Right(r,208),8),Op-Left(Op-Right(r,216),8) *> &
    p.8 = <* Op-Left(Op-Right(r,224),8),Op-Left(Op-Right(r,232),8),
      Op-Left(Op-Right(r,240),8),Op-Right(r,248) *>;
    assume
A7: q.1 = <* Op-Left(r,8),Op-Left(Op-Right(r,8),8),
      Op-Left(Op-Right(r,16),8),Op-Left(Op-Right(r,24),8) *> &
    q.2 = <* Op-Left(Op-Right(r,32),8),Op-Left(Op-Right(r,40),8),
      Op-Left(Op-Right(r,48),8),Op-Left(Op-Right(r,56),8) *> &
    q.3 = <* Op-Left(Op-Right(r,64),8),Op-Left(Op-Right(r,72),8),
      Op-Left(Op-Right(r,80),8),Op-Left(Op-Right(r,88),8) *> &
    q.4 = <* Op-Left(Op-Right(r,96),8),Op-Left(Op-Right(r,104),8),
      Op-Left(Op-Right(r,112),8),Op-Left(Op-Right(r,120),8) *> &
    q.5 = <* Op-Left(Op-Right(r,128),8),Op-Left(Op-Right(r,136),8),
      Op-Left(Op-Right(r,144),8),Op-Left(Op-Right(r,152),8) *> &
    q.6 = <* Op-Left(Op-Right(r,160),8),Op-Left(Op-Right(r,168),8),
      Op-Left(Op-Right(r,176),8),Op-Left(Op-Right(r,184),8) *> &
    q.7 = <* Op-Left(Op-Right(r,192),8),Op-Left(Op-Right(r,200),8),
      Op-Left(Op-Right(r,208),8),Op-Left(Op-Right(r,216),8) *> &
    q.8 = <* Op-Left(Op-Right(r,224),8),Op-Left(Op-Right(r,232),8),
      Op-Left(Op-Right(r,240),8),Op-Right(r,248) *>;
    p in 8-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
    then
A8: ex v be Element of (4-tuples_on (8-tuples_on BOOLEAN))* st p = v &
    len v = 8;
    q in 8-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
    then
A9: ex v be Element of (4-tuples_on (8-tuples_on BOOLEAN))* st q = v &
    len v = 8;
    for i be Nat st 1 <= i & i <= len p holds p.i = q.i
    proof
      let i be Nat;
      assume 1 <= i & i <= len p;
      then i = 1 or ... or i = 8 by A8;
      hence thesis by A6,A7;
    end;
    hence p = q by A8,A9,FINSEQ_1:14;
  end;
end;

definition
  let SBT,MixColumns;
  let message be Element of 128-tuples_on BOOLEAN;
  let Key be Element of 128-tuples_on BOOLEAN;
  func AES128-ENC(SBT,MixColumns,message,Key) ->
  Element of 128-tuples_on BOOLEAN equals
  (AES-Statearray)".(AES-ENC(SBT,MixColumns,AES-Statearray.message,
  AES-KeyInitState128(Key)));
  correctness
  proof
    rng AES-Statearray = 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
    by FUNCT_2:def 3;
    then (AES-Statearray)" is Function of
    4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),128-tuples_on BOOLEAN
    by FUNCT_2:25;
    hence thesis by FUNCT_2:5;
  end;
end;

definition
  let SBT,MixColumns;
  let cipher be Element of 128-tuples_on BOOLEAN;
  let Key be Element of 128-tuples_on BOOLEAN;
  func AES128-DEC(SBT,MixColumns,cipher,Key) ->
  Element of 128-tuples_on BOOLEAN equals
  (AES-Statearray)".(AES-DEC(SBT,MixColumns,AES-Statearray.cipher,
  AES-KeyInitState128(Key)));
  correctness
  proof
    rng AES-Statearray = 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
    by FUNCT_2:def 3;
    then (AES-Statearray)" is
    Function of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
    128-tuples_on BOOLEAN by FUNCT_2:25;
    hence thesis by FUNCT_2:5;
  end;
end;

theorem
  for SBT be Permutation of (8-tuples_on BOOLEAN),
  MixColumns be Permutation of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
  message,Key be Element of 128-tuples_on BOOLEAN holds
  AES128-DEC(SBT,MixColumns,AES128-ENC(SBT,MixColumns,message,Key),Key) =
  message
proof
  let SBT be Permutation of (8-tuples_on BOOLEAN),
  MixColumns be Permutation of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
  message,Key be Element of 128-tuples_on BOOLEAN;
  reconsider text = AES-Statearray.message as
  Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
  reconsider sKey = AES-KeyInitState128(Key) as
  Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
  reconsider cipher = AES-ENC(SBT,MixColumns,text,sKey) as
  Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
  reconsider CBLOCK = AES128-ENC(SBT,MixColumns,message,Key) as
  Element of 128-tuples_on BOOLEAN;
  AES128-DEC(SBT,MixColumns,CBLOCK,Key) =
  (AES-Statearray)".(AES-DEC(SBT,MixColumns,cipher,sKey)) by LMINV1
    .=(AES-Statearray)".text by LASTXX;
  hence thesis by FUNCT_2:26;
end;

definition
  let SBT,MixColumns;
  let message be Element of 128-tuples_on BOOLEAN;
  let Key be Element of 192-tuples_on BOOLEAN;
  func AES192-ENC(SBT,MixColumns,message,Key) ->
  Element of 128-tuples_on BOOLEAN equals
  (AES-Statearray)".(AES-ENC(SBT,MixColumns,AES-Statearray.message,
  AES-KeyInitState192(Key)));
  correctness
  proof
    rng AES-Statearray = 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
    by FUNCT_2:def 3;
    then (AES-Statearray)" is Function of
    4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),128-tuples_on BOOLEAN
    by FUNCT_2:25;
    hence thesis by FUNCT_2:5;
  end;
end;

definition
  let SBT,MixColumns;
  let cipher be Element of 128-tuples_on BOOLEAN;
  let Key be Element of 192-tuples_on BOOLEAN;
  func AES192-DEC(SBT,MixColumns,cipher,Key) ->
  Element of 128-tuples_on BOOLEAN equals
  (AES-Statearray)".(AES-DEC(SBT,MixColumns,AES-Statearray.cipher,
  AES-KeyInitState192(Key)));
  correctness
  proof
    rng AES-Statearray = 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
    by FUNCT_2:def 3;
    then (AES-Statearray)" is
    Function of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
    128-tuples_on BOOLEAN by FUNCT_2:25;
    hence thesis by FUNCT_2:5;
  end;
end;

theorem
  for SBT be Permutation of (8-tuples_on BOOLEAN),
  MixColumns be Permutation of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
  message be Element of 128-tuples_on BOOLEAN,
  Key be Element of 192-tuples_on BOOLEAN holds
  AES192-DEC(SBT,MixColumns,AES192-ENC(SBT,MixColumns,message,Key),Key) =
  message
proof
  let SBT be Permutation of (8-tuples_on BOOLEAN),
  MixColumns be Permutation of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
  message be Element of 128-tuples_on BOOLEAN,
  Key be Element of 192-tuples_on BOOLEAN;
  reconsider text = AES-Statearray.message as
  Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
  reconsider sKey = AES-KeyInitState192(Key) as
  Element of 6-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
  reconsider cipher = AES-ENC(SBT,MixColumns,text,sKey) as
  Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
  reconsider CBLOCK = AES192-ENC(SBT,MixColumns,message,Key) as
  Element of 128-tuples_on BOOLEAN;
  AES192-DEC(SBT,MixColumns,CBLOCK,Key) =
  (AES-Statearray)".(AES-DEC(SBT,MixColumns,cipher,sKey)) by LMINV1
    .=(AES-Statearray)".text by LASTXX;
  hence thesis by FUNCT_2:26;
end;

definition
  let SBT,MixColumns;
  let message be Element of 128-tuples_on BOOLEAN;
  let Key be Element of 256-tuples_on BOOLEAN;
  func AES256-ENC(SBT,MixColumns,message,Key) ->
  Element of 128-tuples_on BOOLEAN equals
  (AES-Statearray)".(AES-ENC(SBT,MixColumns,AES-Statearray.message,
  AES-KeyInitState256(Key)));
  correctness
  proof
    rng AES-Statearray = 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
    by FUNCT_2:def 3;
    then (AES-Statearray)" is Function of
    4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),128-tuples_on BOOLEAN
    by FUNCT_2:25;
    hence thesis by FUNCT_2:5;
  end;
end;

definition
  let SBT,MixColumns;
  let cipher be Element of 128-tuples_on BOOLEAN;
  let Key be Element of 256-tuples_on BOOLEAN;
  func AES256-DEC(SBT,MixColumns,cipher,Key) ->
  Element of 128-tuples_on BOOLEAN equals
  (AES-Statearray)".(AES-DEC(SBT,MixColumns,AES-Statearray.cipher,
  AES-KeyInitState256(Key)));
  correctness
  proof
    rng AES-Statearray = 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN))
    by FUNCT_2:def 3;
    then (AES-Statearray)" is
    Function of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
    128-tuples_on BOOLEAN by FUNCT_2:25;
    hence thesis by FUNCT_2:5;
  end;
end;

theorem
  for SBT be Permutation of (8-tuples_on BOOLEAN),
  MixColumns be Permutation of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
  message be Element of 128-tuples_on BOOLEAN,
  Key be Element of 256-tuples_on BOOLEAN holds
  AES256-DEC(SBT,MixColumns,AES256-ENC(SBT,MixColumns,message,Key),Key) =
  message
proof
  let SBT be Permutation of (8-tuples_on BOOLEAN),
  MixColumns be Permutation of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN)),
  message be Element of 128-tuples_on BOOLEAN,
  Key be Element of 256-tuples_on BOOLEAN;
  reconsider text = AES-Statearray.message as
  Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
  reconsider sKey = AES-KeyInitState256(Key) as
  Element of 8-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
  reconsider cipher = AES-ENC(SBT,MixColumns,text,sKey) as
  Element of 4-tuples_on(4-tuples_on (8-tuples_on BOOLEAN));
  reconsider CBLOCK = AES256-ENC(SBT,MixColumns,message,Key) as
  Element of 128-tuples_on BOOLEAN;
  AES256-DEC(SBT,MixColumns,CBLOCK,Key) =
  (AES-Statearray)".(AES-DEC(SBT,MixColumns,cipher,sKey)) by LMINV1
    .=(AES-Statearray)".text by LASTXX;
  hence thesis by FUNCT_2:26;
end;

Messung
CHZG
8010010093

¤ Dauer der Verarbeitung: 0.175 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*Bot Zugriff







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,058
#Domains=861,616