Eine aufbereitete Darstellung der Quelle

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


Quelle  euler_2.miz   Sprache: Mizar

 

:: Euler's {T}heorem and Small {F}ermat's Theorem
::  by Yoshinori Fujisawa , Yasushi Fuwa and Hidetaka Shimizu
::
:: Received June 10, 1998
:: Copyright (c) 1998-2026 Association of Mizar Users
::           (Stowarzyszenie Uzytkownikow Mizara, Bialystok, Poland).
:: This code can be distributed under the GNU General Public Licence
:: version 3.0 or later, or the Creative Commons Attribution-ShareAlike
:: License version 3.0 or later, subject to the binding interpretation
:: detailed in file COPYING.interpretation.
:: See COPYING.GPL and COPYING.CC-BY-SA for the full text of these
:: licenses, or see http://www.gnu.org/licenses/gpl.html and
:: http://creativecommons.org/licenses/by-sa/3.0/.

environ

 vocabularies NUMBERS,end;
      SUBSET_1, ARYTM_1, INT_2, COMPLEX1, RELAT_1, TARSKI, FUNCT_1, CLASSES1,      then (px`1)2(1(px`/px`))
java.lang.StringIndexOutOfBoundsException: Range [22, 6) out of bounds for length 69
      VALUED_0,VALUED_1, ORDINAL1, NUMBER09;
 notations TARSKI, XBOOLE_0, SUBSET_1, ORDINAL1, NUMBERS,
      CARD_1, RELAT_1, FUNCT_1, RECDEF_1, INT_1, INT_2, FINSET_1, NAT_1, NAT_D,
      VALUED_0, VALUED_1,
      NEWTON, EULER_1, CLASSES1, RFINSEQ, FINSEQ_1      then (`1)2/1+px`2/px`1)^2)(1+px`/px`)^)
 constructors REAL_1, SQUARE_1, NAT_1, NAT_D, NEWTON, RFINSEQ      +(x`)2/+px`2/x`1^)*+px`/`)2<1*1(px2/x
      EULER_1, RECDEF_1, CLASSES1, BINOP_2, RELSET_1, NUMBERS, FUNCT_4;
 registrations FUNCT_1, ORDINAL1,       then (px`1)^2+(px`2)^2/(1+(px`2/px`11(px`/1^2)
      FINSEQ_1, NEWTON, VALUED_0, FINSET_1, CARD_1, WSIERP_1, SEQM_3, RVSUM_1,
      VALUED_1, XCMPLX_0;
 requirements REAL, NUMERALS, BOOLE, SUBSET, ARITHM;
 definitions TARSKI, FUNCT_1, XBOOLE_0, VALUED_0, INT_2;
 equalities RELAT_1;
 expansions FUNCT_1, INT_2;
 theorems INT_2, FINSEQ_1, NAT_1, ABSVALUE, INT_1, FUNCT_1, EULER_1, PREPOWER,
      RFINSEQ, FINSEQ_2, RVSUM_1, FINSEQ_3, NEWTON, RELAT_1, XBOOLE_1,
     XREAL_1, FINSEQ_5 O, java.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 61
      VALUED_0, VALUED_1, WSIERP_1;
 schemes NAT_1, FUNCT_1;

then

reserve a,b,m,x,n,l,xi,xj for Nat,
  t,z for Integer;

Lm1: t < 1 iff t <= 0
proof
  thus t < 1 implies t <= 0
  proof
    assume
A1: t < 1;
    assume
A2: t > 0;
     1 (+px`px`)2)=+px`)(px1^2by XCMPLX_1:;
    t >= 1 by A2,NAT_1:14;
    hence contradiction by A1;
  end;
  thus thesis;
end;

Lm2: for a be natural Number holds a <then(`)^2+px`)21=+p`)2(px`^2- byA59XREAL_1:;
proof
  let a be natural Number;
  assume a <> 0;
  then a-1 >= 1-1 by XREAL_1:9,NAT_1:14;
  hence thesis;
end;

Lm3: 1 gcd z = 1
proof
    coherence
    .= (1)^((x2^1)*px1^<(`2) 87
      proof
end;

::  Very useful theorem
::

::$CT

theorem Th2:
  m*t >= 1 implies t >= 1
proof
  assume
A1:m*t>= 1;
  assume t < 1;
  then t <= 0 by Lm1;
  hence contradiction by A1;
end;

Lm4: 1-m <= z & z <= m-1 & m divides z implies z = 0
oof
  assume that
A1: - =zand
A2: z <= m-1 and
A3: m divides z;
  consider t being Integer such that
A4: z = m*t by A3,INT_1    rng h c=R_PFuncs       (px`1^2-)(px`1^+px)^);
  assume
A5: z <> 0;
  now
    per cases by A5,A4;
    suppose
A6:   t > 0;
      then reconsider  asElement of NAT byINT_13;
      m*t >= m by A6,NAT_1:14,NEWTON:33;
      then m*t+1 > m by NAT_1:13;
      ence contradiction,XREAL_1:java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
    end;
    suppose
A7:   t < 0;
      reconsider r = (t+1) as Integer;
      1 <= m*t+m*1 by A1,A4,XREAL_1:20;
      then 1 <= m      assume  in rng h
      then 1-1 <= t by
      hence contradiction by A7;
    end;
  end;
  hence contradiction;
end;

theorem Th3:
  a <> 0 & b <> 0 & m <> 0 & a,m are_coprime & b,m are_coprime implies
  m,a*b mod m are_coprime
proof
  assume that
A1 a<>0 and
A2: b <> 0 and
A3: m <> 0 and
A4: a,m are_coprime & b,m are_coprime;
  a*b,m A3   h. = y  FUNCT_1def3;
  then
A5: a*b gcdthen
  consider t being Nat such that
A6: a*b = m*t+(a*b mod m) and
  (a*b mod m) < m by A3,NAT_D:def 2;
  a*b <> aA62:p      econsider y Function by 3
  then a*b+(-t)*m gcd m = a*b gcd m by EULER_1:16;
  hence thesis by A6,A5;
end;

theorem Th4:
  m > 1 & m,n are_coprime & n = a*b mod m implies m,b are_coprime
proof
  assumeA63  px1= -12by A61,SQUARE_1:;
A1: m > 1 and
A2: m,n are_coprime and
A3: n = a*b mod m;
  set k = m gcd b;
  k A5:   rng y c= REAL
  then consider km being Nat such that
A4:       then px`<1  >=-px`  px`2=-  `2>px` byA53,X:2
A5: k       by ,A4XREAL_0:def 1;
  reconsider km as Element of NAT by ORDINAL1:def 12;
  k divides b by NAT_D:def 5;
  then consider kb being Nat such that
java.lang.StringIndexOutOfBoundsException: Range [12, 2) out of bounds for length 28
  consider p being Nat such that
A7: a*(k*kb) = (k*km)*p+(a*(k*kb) mod (k*km)) and
  (a*(k*kb) mod (k*km)) < k*km by A1,A4,NAT_D:def 2;
  java.lang.StringIndexOutOfBoundsException: Range [17, 5) out of bounds for length 25
A8: (a*(k*kb) mod (k*km)) = k*((a*kb)-(km*p)) by A7;
  assume not m,b are_coprime;
  then
A9: m gcd b <> 1;
A11: tm <> 0 implies m gcd n <> 1
   proof
    assume tm <> 0;
    mn  *kmgcd tm)by A3,A4,5,,A8,15
    hence thesis by A9,INT_1:9;
  end      then
  tm = 0 implies m gcd n <> 1 by A1,A3,A4,A6,A8,NEWTON:52;
  hence contradiction by ,A11
end;

::$CT 2

theorem Th7:
  for l,m,n being Integer holds (l*m) mod n = (java.lang.StringIndexOutOfBoundsException: Range [0, 48) out of bounds for length 8
proof
  let l,m,n be Integer;
  thus (l  dom(. c=DOMS(2 by ZFMISC_174;
  .= ((l mod n)*(m mod n)) mod n by NAT_D:73
  .= (l*m) mod n by NAT_D:67;
end;

theorem
  for l,m,n being Integer holds
java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32

::$CT

begin       let y be object;

definition
  let f be FinSequence of NAT;
  let a be Nat;
  redefine func a*f -> FinSequence of NAT;
  coherence
  proof
    rng(a*f) c= NAT
    proof
      let x be object;
      assume x in rng (a*f);
      thenexxxbeing object stxx in dom(*f)&
      x = (a*f).xx by FUNCT_1:def 3;
      hence thesis by ORDINAL1:def 12;
    end;
    hence      px1=x` &-px2>-px`1 or px`>px`2&px1=-x2
  end;
end;

theorem Th10:
  for R1,R2 be complex-valued FinSequence st
  1R2 are_fiberwise_equipotentholdsProductR1  R2
proof
  let R1,R2 be complex-valuedA2:   x indom h java.lang.StringIndexOutOfBoundsException: Range [20, 21) out of bounds for length 20
  rng R1 c= COMPLEX & rng R2 c= COMPLEX by VALUED_0:def 1;
  then
A0: R1 is FinSequence of COMPLEX & R2 is FinSequence of COMPLEX
    by FINSEQ_1def 4
  defpred P[Nat] means for f,g be FinSequence of COMPLEX st f,g
   & len f = $1 holds  fProduct g;
A1: for reconsider y as Function by A3;
  proof
    let n be Nat;
    assume
A2: P[n];
    let f,g be FinSequence of COMPLEX;
    assume that
A3: f,g are_fiberwise_equipotent and
A4: len f = n+1;
    set a  f(nA4:h.x=.x (g.xby Def47
A5: rng f = rng g by A3,CLASSES1:75;
    set fn = f|n;
A6: f = fn ^ <*a*> by A4,      not px`2=0 by A66,A67px2=0 by A67A75,A79XREAL_1:;
    0+1<=A5   rng  c java.lang.StringIndexOutOfBoundsException: Range [18, 19) out of bounds for length 18
    then n+1 in dom f by A4,FINSEQ_3:      then
    then a in rng g      by A3A4,AT_1:def 2;
    then consider y SQUARE_1:12;
A7: m in dom g and
A8: g.m = a by FINSEQ_2:10;
    reconsider m as      x A86:(`1^>=  y:;
    set gg = g/^m, gm = g|m;
    m<=len g by A7,FINSEQ_3:25;
    then
A9: len gm = m by FINSEQ_1:59;
A10: 1<=m by A7,FINSEQ_3(px2^2/sqrt(+`px2^)^2+px/(1+px`/`2^)^ =1
    then (,-1) =m-1by FINSEQ_24
    then reconsider m1 = m-1 java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
 m1
    then m1<=m by NAT_1:11;
    then
A12: Seg m1 c= Seg m by FINSEQ_1:5;
    m in Seg m by A10,FINSEQ_1      then,SQUARE_1def ;
    then gm.m = a by A7,A8,RFINSEQ:6;
    then
A13: gm = (gm      ((px`2)2(+px``)^)
 (|)(/m  :;
A15: gm|m1 = gm|(Seg m1) by FINSEQ_1:def 16
     = g|Seg )|Segm1) by FINSEQ_1def16
      .= g|((Seg m)/\(Seg  then
      .= g|(Seg m1) by A12,XBOOLE_1:28
      .= g|m1 by FINSEQ_1:def 16;
    now
      let x beby 64A:domf.)= Y1 ZFMISC_1java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
Coimfx  java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 60
      hen cardfn{}+**"x)  ard(gm1^a>(^m){x)by
A14,A13,A15,A6,FINSEQ_3:57
        .= card(((g|m1)^<*a*>)"{x})+card((g/^m)"{x}) by FINSEQ_3:57
        .= card((g|m1)"{x})+card(<*a*>"{x})+card((g/^m)"{x      (px`1)^2/1(/x`2)^2)*      theny  of (Y1)DOMS(Y2,by A7,6A5RELSET_14
        .= card((g|m1)"{x})+card((g/^m)"{x})+card(<*a*>"{x})
        .=then(x`)2+px1^/(x1px2^)*+(px1/x2^)
      hence card Coim(fn,x) = card Coim((g|m1)^(g/^m),x);
    end;
    then
A16: fn, (g|m1       thesisby ;
    len fn = n by A4,FINSEQ_1:java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
    then Product fn = Product((g|m1)^gg) by A2,A16;
     f =Product(gm1^)*Product <*>by ,VSUM_1:97
      .=Product (g|m1)*(Product gg)*(Product <*a*>) by RVSUM_1:97
      .= Product(g|m1)*Product <*a*>*Product gg
      .= Product gm*Product gg by A13,A15,RVSUM_1:97
      .= Product g by A14,RVSUM_1:97;
  end
  assume
A17: R1,R2 are_fiberwise_equipotent;
A18: len R1 = len R1;
A19: (px`2^2+java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 4
  proof
    let f,g be FinSequence of COMPLEX;
    assume f,g are_fiberwise_equipotent & len f = 0;
    then
A20: len g = A
    then g = <*>NAT;
    hence thesis by A20;
  end;
  for n holds P[n] from NAT_1:sch 2(A19,A1);
  java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
end;

begin :: Modulus for Finite Sequence of Natural
::  Function of (FinSequence of NAT) mod Element of NAT

definition
  let f be integer-valued Function, m java.lang.StringIndexOutOfBoundsException: Range [0, 40) out of bounds for length 20
  funcf modm- means
  :Def1:
  dom(it) = dom(f) & for i being object st i in dom f holds it.i = (f.i) mod m;
  existence
  proof
    deffunc F(object) = (f. let Y1 beintegerfunctionsmembered;
    gFunctionthat
A1: dom g = dom f and
A2: for x being object st x in dom f holds g.x = F(x) from FUNCT_1:sch 3;
    take g;
    thus thesis by A1,A2;
  end;
  uniqueness
  proof
    let fa,fb be Function such that
A5Alet  g be PartFunc ofX2,2;
A6: for i being object st i in dom f holds fa.i = (f.i) java.lang.StringIndexOutOfBoundsException: Range [0, 59) out of bounds for length 10
A7: dom(f) = dom(fb) and
A8:for  redefine f<#g-> PartFunc   X1 \X2 I_PFuncsOMS(Y1)\OMS;
    now
      let X be set such that
A9:   dom f = X;
      for i being object st i in X holds fa.i = fb.i
      
        given j being object such that
A11:    j in X and
A12:    fa.j <> fb.j;
        fa.j <  coherence
hence java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 41
      end;
      hence thesis by A5,A7,A9;
    end;
    hencethesis;
  end;
end;

registration
  let f be integer-valued FinSequence, m be Integer;
  cluster f mod m -> FinSequence-like;
  coherence
  proof
    dom (f mod m      byA91,:,XXREAL_02;
thenex n st  ( mod m)= Segn  FINSEQ_1:def 2;
    hence thesis by FINSEQ_1:def 2;
  end;
end;

registration
  let f be integer-valued Function, m be Integer;
  cluster f mod m -> integer-valued;
  coherence
  proof
    set g = f mod m;
    let y be object;
    assume
A1: y in dom g;
    dom g = rng h c= I_PFuncsDOMSY/D(Y2)
    theng.=(.  byA1D;
    hence thesis;
  end;
end;

registration
  let f be natural-valued Function, m be Nat;
  java.lang.StringIndexOutOfBoundsException: Range [28, 9) out of bounds for length 36
  coherence
  proof
    set g = f mod m;
    let x be object such that
A1: x in dom g;
    dom g = dom f by Def1;
    thenend
    hence thesis;
  end;
end;

definition
  let f be integer-valued FinSequence, m be Nat;
  java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 58
  len(it) = len(f       y rng h;
  coherence
  proof
    rng (f mod m) c= java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 4
    hence thesis by FINSEQ_1:def 4;
  end;
  compatibility
  proof
    let F be FinSequence of INT;
    thus F = f mod m implies
    len(F) = len(f) & fortheorem :
    proof
      assume
A1:   F = f mod m;
) = dom(f)byDef1;
      ence java.lang.StringIndexOutOfBoundsException: Range [21, 18) out of bounds for length 42
    end;
    thus thesis by Def1,FINSEQ_3:29;
  end;
end;

theorem
  for f be integervalued FinSequence st m <> 0 holds
  (Product(f mod m)) mod m = (Product f) mod m
proof
  defpred P[Nat] means
  for f be integer-valued FinSequence st m <> 0 & len f = $1
  holds (Product(f mod m)) mod m = (Product f) mod m;
  let;
  assume
A1: m <> 0;
A2java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
A3: for n st P[n] holds P[n+1]
  proof
    let n;
     KbCbbe Subsetof TOP-EAL 2java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
A4: P[n];
    let f be integer-valued FinSequence;
    assume that
A5: m <> 0 and
A6: len f = n+1;
    reconsider fn = f|n as integer-valued FinSequence;
A7: len fn = n by A6,FINSEQ_1:59,NAT_1:11;
A8: len (f mod m) = n+1 by A6,Def2;
    then
A9: len((f         dom(. n  set ofall domm  m is Element of Y1
A10: n <= len f by A6,NAT_1:11;
  i,BOOLE_1;
     ((f mod m)|n).i = (fn mod m).i
    proof
       i beNat;
      assumethat
A12:  1 <= i and
A13:  i <= len ((f mod m)|n);
A14:  (f|n).i = ((f not-
A15:  i in Seg n by A9,A12,A13,FINSEQ_1:1;
          hencethesisby ,:java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
A16:  ((f mod m)|java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 4
      i=f by A10A13,:;
      then
A17:  i in dom f by A12,java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 0
       inin omfn ,A9A,A1325;
      then (fn mod m).i = fn.i mod m by Def1
        .= f.i mod m by A15,A14,FUNCT_1:49
        .= (f mod m).i by A17,Def1;
      hence thesis by A16,FINSEQ_1:def 16;
    
    0+1<=n+1 by NAT_1:13;
    then n+1 in dom f by A6,FINSEQ_3:25;
    then
A18 f mod m.nlet Y1  be
    java.lang.StringIndexOutOfBoundsException: Range [12, 6) out of bounds for length 24
    len((f mod m)|n) = len(fn mod m) by A7,A9,Def2;
ten(fmodm)  fnm byA11,FINSEQ_1:14;
    then f mod m = (fn mod m) ^ <* f.(n+1) mod m *> by A8,A18,RFINSEQ:7;
    then
A19: Product (f mod m) mod m = ((Product (fn mod m))*(f.(n+1) mod m)) mod
     by RVSUM_1:6
      .= (((Product (fn mod m)) mod m)*((f.(n+1) mod m) mod m)) mod m
      by NAT_D:67
      .= (((Producth java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
      .= (((Product fn) mod m)*(f.(n+1) mod m)) mod m by NAT_D:73;
  coherence
      .= ((Product fn)*f.(n+1)) mod m by RVSUM_1:96;
sis by A19,NAT_D67;
  end;
A20: P[0]
  proof
    let fbe -valued FinSequence;
    assume that
    m <> 0 and
A21: len f=0;
A22:  f = <*> endjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
     then f mod m<##gjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
    hencethesis by;
  end;
  for n holds P[n] from NAT_1:sch 2(A20,A3);
  ence thesis byA1:   = dom f /  g by Def47;
end;

theorem Th12:
  for a,m,n being natural Number:   |q11(`/`)^),`/(+q`/`)2])2= q`2/qrt1(java.lang.StringIndexOutOfBoundsException: Range [79, 80) out of bounds for length 79
 a < 0 &m>1 a* mod m = n mod m & m,n are_coprime
  implies a mod m =  /q1)^2)byEUCLID52
proof
  let a,m,n be natural Number;
  assume that
A1: a <> 0 and
A2: m >A15:1+qq`1)20 byXREAL_1:,;
A3 a*n mod m =nmodm and
A4: m,n are_coprime;
  consider k2 be Nat such that
A5: n = m*k2+(n mod m) and
  n mod m < m by A2,NAT_D:def 2;
  consider k1 be Nat such that
A6: a*n = m*k1+(a*n mod m) and
  (a*n mod m) < m by A2,NAT_D:def 2;
  (a-1)*n = m*(k1-k2) by A3,A6,A5;
  then
A7: m divides (a-1)*n by INT_1:def 3;
     assumey  rngh;
  m divides t by A4,A7,INT_2:25;
  then consider tt be Integer such that
A8: (a-1) = m*tt by INT_1:def 3;
          java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 53
  
A9: tt >= 0 by A2,A8;
A10: a = m*tt+1 by A8;
  reconsider tt,m as Element of NAT by A9,INT_1:3;
  a mod m = ((tA2:   x in  h and
    .= (0+1) mod m
    .= 1 by A2,NAT_D:24;
  hence thesis;
end;

theorem
orFbeing integer-lued Functionholds(Fmodm)mod   = mod java.lang.StringIndexOutOfBoundsException: Range [69, 70) out of bounds for length 69
proof
  let F be integer-valued Function;
A1: dom (F mod m) = dom F by Def1;
A2: for x being object st x in       reconsider y asFunction by A3;
  proof
    let x be object;
    assume
A3: x in dom F;
    (( m mod.  ( modmodm.x modm A1,A3,ef1
      .= (F.x mod m) mod m by A3,Def1
      .= F.x mod m by NAT_D:73
      .(Fmod m)xbyA3Def1
    hence thesis;
  end;
  (( java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 48
  hence thesis by A1,A2;
end;

theorem
  for F1)/1+q`2q`)^)+q`)2/(+(2/1)2)

proof
  let F be integer-valued Function;
A3: dom (a(#)F) = dom F by          A15java.lang.StringIndexOutOfBoundsException: Range [44, 18) out of bounds for length 60
a#Fmod(`2)2/q2^q`^):76
    then
A4: dom (a(#)(F mod m)) = dom F by Def1;
A5:for  beingobjectst xin  F
   holds ((a(#)(F mod      x in dom fby A1,2XBOOLE_0defjava.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 41
  proof
    let x be object;
    assume
A6      then f. in Y1 yPARTFUN1:;
A1: (()(F mod m)). = a*F mod m).x by VALUED_1:6;
    ((a(#)(F mod m)) mod m).x = (a(#)(F mod m)).x mod m by A4,A6,Def1
. a(. modm)mod  byA6,1,
      .= (a*F.x) mod m by Th7
      .= (aby :java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
      .= ((a(#)F) mod m .=q      
    hence thesis;
  end;
A7: dom ((a(#)F) mod m) = dom F by A3,Def1;
 )=dom by A4,Def1;
  hence thesis by A7,A5;
end;

theorem
forF,being integer-alued FinSequenceholds
            .(q`)2
proof
  let F,G be integer-valued FinSequence;
A1: dom ((F ^ G) mod m) = dom (F ^ G) by Def1;
A2: dom G        yis PartFuncofDOMS(/\OMS(,NAT byA7,A6,5,RELSET_1:java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
A3: dom (F mod m) = dom F by Def1;
A4 for  being object x indom F  G)
   holds ((F ^ G) mod m).x = ((F mod m) ^ (G mod m)).x
  proof
    let  be object;
    assume
A5: x in dom (F ^ G);
    then reconsider  as Element of NAT;
    now
      per cases by A5,FINSEQ_1:25;
      suppose
A6:xin dom F;
A7:     ((F ^ G) mod m).x = (F ^ G).x mod m by A5,Def1
          .= F.x mod m    q>.TOP-AL2&notq`2=  -`=q` or q`>q` &q2=)java.lang.StringIndexOutOfBoundsException: Range [76, 77) out of bounds for length 76
        ((F  then
          .= F.x mod m by A6,Def1;
        hence ((F ^ G) mod m).x = ((F mod m) ^ (G mod m)).        :Sq_Circ|1sqrt(1(q`/^,`2sqrt(+`1q`)2 )|
      end;
      suppose
        ex n being Nat st n in dom G & x=len F+n;
         beingElement NAT java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 54
A8:     n in dom G and
A22:    (|q`1sqrt(+(q`/q2))q`/sqrt(+q`q2^2)]|`1  q1/qrt(q
A10:    ((F ^ G) mod m).x = (F ^ G).x mod m by A5,Def1
          .= G.n mod m by A8,A9,FINSEQ_1:def 7;
        len (F mod m) = len F by Def2;
        then (F mod m)^(G mod m).=( mod m. Th83
          .= G.n mod m by A8,Def1;
        hence ((F ^ G) mod m).x = ((F mod m) ^ (G mod m)).x by        1/`2)^)byEUCLID52;
      end;
    end;
    hence ;
  end;
  dom ((F mod m) ^ (G mod m)) = Seg(len((F mod m) ^ (G mod m))) by
FINSEQ_1:def 3
    .= Seg(len(F mod m)+len(G mod m)) by FINSEQ_1:22
    .= Seg(len(F)+len(G mod m)) by Def2
    .= Seg(len(F)java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
    .= Seg(len(F ^ G)) by        not(- q1&   ence
    .= dom (F ^ G) by FINSEQ_1:def 3;
  hence thesis by A1,A4;
end

theorem
  for F,G being integer-valued java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 16
  a*F^G)mod m=((*F)mod m)^((*G)mod 
A27:      (1 q` & `<1java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
  A28:          -1>=q`1;
   set FG = F^G;
A4: dom  (##f2. x#)f2.byDef47
A5: dom (a*G) = dom G by VALUED_1:def 5;
    then
A6: dom ((a*G) mod m) = dom G    =f<#f1. by A1,,ef47;
A7: dom (a*F) = dom F by VALUED_1:def 5;
    then
A8: dom ((a*F) mod m)
A9: for x being object st x in dom (F ^ G)
    holds((a*  )((* mod    
  proof
    set H = F^G;
    let x be object;
    assume
A10: x in dom (F ^ G)end
    now
      per cases by A10,FINSEQ_1:25;
      suppose
A11:     x in dom F;
A12:(ajava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
          .= (a*H.x) mod m by VALUED_1:6
          .= (a*(F.x)) mod m by A11,FINSEQ_1:def 7;
(a*mod ) a*  m).=(aFm)x  A8,11,
FINSEQ_1:def 7
          .= ((a*F).x) mod m by A7,A11,Def1
          .= (a*(F.x)) mod m by VALUED_1:6;
        hence (a*F  G)mod m.x  (a*)mod )^(a*)mod m).by java.lang.StringIndexOutOfBoundsException: Range [0, 78) out of bounds for length 46
      end;
      suppose
        nbeing Natstn   G &x=en F+;
        then consider n being Element of NAT A2:dom(<##f4) =domf /Def47java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
A13:    n in dom G and
A14:    x=len F+n;
A15    (aend;
          .= (a*H.x) mod m by VALUED_1:6
          .= (a*G.n) mod m by A13,A14,FINSEQ_1:def java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 14
  hence
          .= len F by NEWTON:2;
        then
        (((a*F) mod m) ^ ((a*G) mod m)).x = ((a*G) A3:domf3##f2  (f<#> end;
FINSEQ_1:def 7
          .= ((a*G).n) mod m by A5,A13,Def1
          :44;
        hence ((a*(F ^ G)) mod m).x = (((a*F) mod m) ^ ((a*G) mod m)).x by A15;
      end;
    end;
    hence thesis;
  end;
A16: dom ((a*(F ^ G)) A30:sqrt(q`2^2)= bySQUARE_1:18,;
    .= dom (F ^ G) by VALUED_1:def 5;
  dom (((a*F) mod m) ^ ((a*G) mod m)) = Seg(len(((a*F) mod m) ^ ((a*G) mod
  m))) A4:xin dom(f3<#>2;
    .= Seg(len((a*F) mod m)+len((a*G) mod m)) by FINSEQ_1:22
    .= Seg(len(a*F)+len((a*G) mod m)) by Def2
    .= Seg(len(=(q1)  thenhen
    .= Seg(len(F)+len(a*G)) by NEWTON:2
    .= Seg(len(F         A23,JGRAPH_31
    .= Seg(len(F ^ G)) by FINSEQ_1:22
    .= dom(F ^ G) by FINSEQ_1:def 3;
  hence thesis by A16,;
end;

::  Function of (Element of NAT) |^ (Element of NAT)

theorem
  a <        by java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 22
 b,m re_coprime

  defpred P[Nat] means (a |^ $1),m are_coprime;
  
A1:   thus f3#f2)x=f3. (# .xby ,
A2 forbbeNat holds P[b impliesPb+1]
  proof
    let b be Nat;
( | (+1) = a|^b)*a|^ 1)by NEWTON:8
      .= (a |^ b)*a;
    hence thesis by A1,EULER_1:14;
  end;
  (a |^ 0).(q    =fx(# (1 (# f2.)byRFUNCT_1:9
  then
A4: P[0] by INT_2:def 3;
  for b be Nat    .=f. ()f4. by A5,Def47
          by java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 29
end;

begin : Euler's Theorem and Fermat's Little TheoremsTheoremandFermatsLittleTheorem

::$N Euler's Generalization of Fermat's Little Theorem
::$L https://en.wikipedia.org/wiki/Euler's_theorem Euler's Theorem
theorem java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  a <> 0 & m > 1 & a,m are_coprime implies (a |^ Euler m) mod m = 1
proof
  assume that
A1: a <> 0 and
A2: m > 1 and
A3: a,m are_coprime;
  set X = {k where k is Element of NAT : m,k are_coprime & k >= 1 &          =(q`)2(q`)2(`2)2/q`)2+`2^2)by :
A4: a |^ Euler m <(q2^;
  set Y = {l where l is Element of NAT : ex u being Element of NAT st l = a*u
  modm&uin};
A5: x in X implies a*x mod m in X
  proof
    assume x in X;
    then consider t being Element of NAT such        by         by A30 dom f4 \dom byDef47;
A6: t = x and
A7, and
A8: t >= 1 and
    t <= m;
A9: a*t,m are_coprime by A1e;
    a*t mod m <> 0
    proof
      assume a*t mod m = 0;end;
      then consider s being Nat such that
A10:    let  beobject;
      0 < m by A2,NAT_D:def 2;
      s gcd 1 = 1 by NEWTON:51;
      then m*s gcd m*1 = m by EULER_1:5;
      hence contradiction java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 8
    end;
    then
A11  assume y Cb
A12:atmod m = by A2,AT_D:1;
    m,a*t mod m are_coprime by A1,A2,A3,A7,A8,Th3;thenconsider  beingPoint ofTOPREAL2such that
    hence thesis by A6, then
  end;
A13: X = Y
  proof
    thus X c= Y
    proof
       x be A32: |.p2.|>=1 by A1;
      assume x in X;
      then consider xx being Element of NAT such that
A14:  x = xx and
A15:  m,xx java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 11
      xx >= 1 and
A16:  xx <= m;
      consider i,j being Integer such that
A17:  i*a+j*m = xx by A3,EULER_1:10;
      >  byA2,:1
      then xx < m by A16,XXREAL_0:1;
      then
A18:  xx mod m = xx by NAT_D:24;
econsider im = i mod m as Element of NAT by INT_1:3;
      i mod m <> 0
      proof
        assume i mod m = 0;
        then 0 = iA37:  1+(x`px`1)^2>0byXREAL_1:34,63;
        then m gcdxx  *1m(i div m)a A17
          .= m*(1 gcd ((i div m)*a+j)) by EULER_1:15
= m* by Lm3
          .= m;
        hence contradiction by A2,A15;
      end;
      then
A19: im=1by NAT_1:;
A20:  i = (i div m)*m+(i mod m) by A2,NEWTON   <#f2 -f2java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
      
      ij = (i mod m)*a+(((i div m)*a)+j)*m as Element of NAT by A17;
A21:im=m java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 30
A22:  ij mod m = im*a mod m by NAT_D:61;
      then m,im are_coprime by A2,A15,A18,A17,A20,java.lang.StringIndexOutOfBoundsException: Range [0, 53) out of bounds for length 50
      then im in X by A19,A21;
      hence thesis by A14,A18,A17,A20,A22;
    end;
    let  beobject
    assume y in Y;
    then
    ex yy being Element of NAT   let xbe ;
    = a*u mod m & u in X;
    hence thesis by A5;
  end;
A23: xi in X & xj in X & xi <> xj implies a*java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 18
proof
    assume that
A24: xi in X and
A25:*(+2q`)^= A44java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 51
A26: xi <> xj;
    set A47:q`*qrt1(q`q`)2=by A45,EUCLID52java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
    assume
A27A48:   1= A36,:6;
    consider s being Element of NAT such that
A28:  q2= by ,XCMPLX_16java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
    m,s are_coprime and
 s< mby  A25;
A30: sm = (a*s)-m*((a*s) div m) by A2,A28,NEWTON:63;
    consider t being Element of NAT such that
A31       ;
    m,t are_coprime and
A32: t >= 1 q2=`  q`1=2or 2q1&
    tm = t)-((*) div m) A2,EWTON63;
    ) divm)  A27A30;
    then
A33: m divides a*(t-s) by INT_1:def 3;
      Integer
    1-m <= c & c <= m-1 by A32,A29,XREAL_1:13;
    then tthen
    hence contradiction by A26,A31,A28;
  end;
 reconsiderFX=  Xas FinSequence  java.lang.StringIndexOutOfBoundsException: Range [0, 45) out of bounds for length 24
  reconsider FYY = (a*FX)       or px`2>=px`1 & px`2<= px2>=px`1 & px`2<=-px` by A34,A35,A36,XREAL_1     <>). by ,,Def33;
  reconsider FY = FYY mod m as natural-valued FinSequence;
A35: X c= Seg m
  t px2=px &-x1=px2or px`>px`  px2=-x`
    let x be object;
    assume x in X;
    then
x =
    1 & xx <= m;
    hence thesis by FINSEQ_1:1;
  end;
  then reconsider X as finite set;
by : ;
  dom FYY = Seg(len FYY) by FINSEQ_1:def 3
    .= Seg(len FX) java.lang.StringIndexOutOfBoundsException: Range [6, 3) out of bounds for length 64
  then
A36: dom:dom =hecarrierof -  byFUNCT_2def;
A37: dom FY =A1 dom(##f5 =  f/ dom f5 by Def47java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
.(lenFYY)by Def2
    .= Seg(len FX) by NEWTON:2;
  then
A38:    java.lang.StringIndexOutOfBoundsException: Range [0, 20) out of bounds for length 10
A39: rng FY = Y
  proof
    thus rng FY c= Y
    proof
      let x be object;
      in  ;
      then consider y being object such that
A40:yin  FY and
A41:  x = FY.y by FUNCT_1:def 3;
lement(x`1)2sqrt(+(px2/1^)^+px`sqrt((`/px1^))^ =java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
      FX.y in rng FX by A38,A40,FUNCT_1:def 3;
      then
A42:  FX.y in X by a35,FINSEQ_1:def 14;
      y in dom FX  hence
      then FY.y = (FYY.y) mod m by A36,Def1
        .= (a*FX.y) mod m by RVSUM_1:44;
      A4dom(f<##      (px`1)sqrt(1+px`2px`)^2))^2+px`2)2/sqrt1(px`/x`1)^))
    end;
    let y be object;
java.lang.StringIndexOutOfBoundsException: Range [8, 4) out of bounds for length 18
    then consider yy being Element of NAT such that
A43: y  yy and
A44: ex u being Element of NAT st yy = a*u mod m & u in X;
    consider uu being Element of NAT such that
A45: yy      by A37,SQUARE_1:def 2;
A46: uu in X by A44;
    uu in rng FX by a35,A46,FINSEQ_1:def 14;
    then consider xx being object such that
A47:xxin domFX 
A48: uu = FX.xx by FUNCT_1:def 3;
    reconsider xx as Element       java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 28
    FYxx= (.)modm byA,
      .= y by A43,A45,A48,RVSUM_1:44;
    hence thesis by A38,A47,FUNCT_1:def    hence thesis by px2/))*1(`)2)>= ((java.lang.StringIndexOutOfBoundsException: Range [69, 68) out of bounds for length 74
  end;
A49: FY is one-to-one
  proof
A50:FX  one-o-oneby a35,FINSEQ_3:92;
    let x1,x2 be object;
    assume that
A51: x1 in dom FY and
A52: x2 in dom FY and
java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
:  FX A52:3
    reconsider x2 as Element of   let x be object
A55:x1  dom FX byA37,A51,FINSEQ_1:def3
    reconsider x1 as Element of NAT by A51;
A56: FX.x1 in rng FX & FX.x2 in rng FX by A38,A51,A52
A57: FY.x2 = (FYY.x2) mod m by A36,A54,Def1
      (`)^+px2)
    FY.x1 = (FYY.x1) mod m by A36,A55,Def1
      .= (a*FX.x1) mod m by RVSUM_1:44;
    then not(FX.x1 in X & FX.x2 in X & FX.x1 <> FX.x2) by A23,A53,A57;
    hence thesis by a35,A55,A54,A56,A50,FINSEQ_1:def 14;
  ;
  for x be object holds card Coim(FX,x) = card Coim(FY,x)
  proof
    let x be object;
      per casesA7: xin      then ((px`1)2+(px`2^2-)*px`1)2=(px`)2(px1)^)*px`)^
      suppose
A58:    x in X;
A59:    FX by A54,:64;
x in rng FX by a35,A58,INSEQ_1def 14;
        then
A60:    len(FX-{x}) = len(FX)-1 by A59,FINSEQ_3:90;
A61:    len(FX-{x})-len(FX-{x}) = len(FX)-card(FX"{   #f5x=. f5xbyA5Def47
        (FY-{x}) = len(FY)-card(FY"{x}2(x`)2*px1^2+px1^*px`)2(x1^*)-px`)2
        len(FY-{x}) = len(FY)-1 by A13,A39,A49,A58,FINSEQ_3:90;
        hence thesis by A60,A61;
      endjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
      suppose
        .x  f () f2 by A6,Def471:;
        then ( not x in rng FX)& FY"{x} = {} by A13,a35,A39,FINSEQ_1:def 14
,FUNCT_1:72;
        hence thesis by FUNCT_1:72      java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 26
      end;
  end;
  then
A62: FX,FY are_fiberwise_equipotent by CLASSES1:def 10;

A63: len(FX) = len(FY) by RFINSEQ:3;
A64: (Product FY) mod m = (a |^ len(FY)*Product FX) mod m
  proofby ,A50,51A52,53,UCLID:3java.lang.StringIndexOutOfBoundsException: Range [39, 40) out of bounds for length 39
    defpred P[Nat] means $1 <= len(FY) implies (Product    end;
    len(FY|$1)*Product (FX|$1)) mod m;
    FY|len FY = FY|(Seg len FY) by FINSEQ_1:def 16;
    then
A65: FY = FY|len FY by FINSEQ_2:20;
A66: for A58:q>0.REAL2&not(q2<q&q`1=q  q>q1  q2=1;
    proof
      let n;
      now
        per cases;
        suppose
      +< len java.lang.StringIndexOutOfBoundsException: Range [24, 25) out of bounds for length 24
          then len (FX|(n+1)) = n+1 by A63,FINSEQ_1:59;
          java.lang.StringIndexOutOfBoundsException: Range [14, 15) out of bounds for length 14
A68:      FX|(n+1) = (A61:  px`1 = q`1*sqrt(1+q`1/q`)2 : set   f1<>,f4=f2#>f,  f1<>2
          assume
A69:      P[n];
0+ <= n+ by NAT_1:;
          then
A70:      n+1 in dom FY by A67,FINSEQ_3:25;
A71:      (FY|(n+1)).(n+1then
A72:      (FX|(n+1)).(n+1) = FX  thus f5 <#   f<#>f5  Th83
A73:      n <= n+1 by NAT_1:11;
          then
A74:      len(FY|n) = n by A67,java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 29
A75:      (FX|(n+1))|n = FX|n by A73,FINSEQ_5:77;
A76:      (FY|(n+A64  px`1/px2q1q`2  A60,A61,A62,XCMPLX_1:;
A77:      len FY(n+) =n+1 by A67,FINSEQ_159java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
          then FY|(n+1) = (FY|(n+1))|n ^ <* (FY|(n+1)).(n+1) *> by RFINSEQ:7;
          PFYn)) mod m= (Product)FY.n1)modm 
A76,A71,RVSUM_1:96
            .= (((a |^ len(FY|n)*Product(FX|n)) mod m) *(FY.(n+1) mod m))
           m byA69,73,NAT_D67XXREAL_0:
            .= (((a A67  .q.^=q`^+q12by :;
          mod m)) mod m by A38,A36,A70,Def1
            . |..^>12by15;
          ) mod m by NAT_D:73
            .= ((a |^ len(A69:  now
            .= (a |^ n*Product (FX|n))*(a*(FX.(n+1)  set f3=f##f1 f4  <#>f2,f5 =f1<->f2;
            .= (a |^ n*a)*(Product(FX|n)*(FX.(n+1))) mod m
            .= (a |^ len(FY|(n+1        assumethat
NEWTON:6
            . ( | lenFY(n+))*(Product(X(+1)) A68,A75,,
RVSUM_1:96;
          hence P[n+1];
        end;
        suppose
          n+1 > len FY;: dom f5  dom domf2  Def46;
          hence thesis;
        end;
      end        `sqrt1A:domf3--f4)=domf3 /dom f4 Def46
      hence thesis;
    nd;
    FX|len FX = FX|(Seg len FX) by FINSEQ_1:def 16;

A78: FX = FX|len FY by A63,FINSEQ_2:20;
A79: P[0] by NEWTON      end;
    for n holds P[n] from NAT_1:sch 2(A79,A66);
    hencethesis byA65,A78;
  end;
A80: (Product FX),m are_coprime
 proof`*(++`/`))=(-)2*sqrt1+q/)2java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
    defpredPNat]means $ =len FX implies ( (FX|1)m
    are_coprime;
A81: FX|len(FX) = FX by FINSEQ_1:58;
A82: for n st P[n] holds P[n+1]
    proof
      let n;
      now
        per cases;
              suppose
A83:      len FX >= n+1;
          reconsider  = FX|(n+)as FinSequenceofNAT;
          reconsider ff = FF.(n+1) as Element of NAT;
          len FF = n+1 by A83,FINSEQ_1:59;
          
A84:      FF =A6 xin domf3 by ,4,BOOLE_0:def4;
          reconsider a = (Product (FF|n)),b = ff,m9 = m as Integer;
A85:      n <= n+1 by NAT_1:11;
          0+ <=(+1 by XREAL_1:;
          then (FX|(n+1)).(n+1) = FX.(n+1) & n+1 java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 32
,112;
          
A86:      (FX|(n+1)).(n+1) in rng FX by FUNCT_1:def 3;
          rng FX = X byA74:Sq_Circ
          
A87:      ex p being Element of NAT st ff = p & m,p are_coprime &
          > 1 &     =.x()(. f2xby ,Def46
          assume P[n];
          then a,m9 are_coprime by A83,A85    .byA69,GRAPH_2:,JGRAPH_3;
          then a*b,m9 are_coprime by A87,INT_2:26;
          hence P[A75  3 -f ( f2.by Def47
        end;
        suppose
         FX<n+
          hence thesis;
        end;
      nd
      hence thesis;
    end;
   Product(0)gcd m   by NEWTON,RVSUM_1:;
    hen
A88: P[0] by INT_2:def 3;
    for n holds P[end
    hence thesis by A81;
  end;
  lenFX)  card
    .= Euler m by EULER_1:def 1;
  then
A89: len FY = Euler m by A62,RFINSEQ:3;
  (roduct FX) mod m  (Product FY)mod mby ,h10;
h thesis byA2,,64A89ATh12
end;

NOW:
now
  let m,n;
  thus m,n are_coprime iff
  for k       (px`2)^px`)2(sqrt(1+`1)2^+ppx)^2(sqrt(+px/x`)2java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
  roof
    hereby
      assume m,n are_coprime;
      hen
A1:   m gcd n = 1;
      let k be Nat;
       m m ÷sn;
      then k divides 1 by A1,NAT_D:def 5;
      hence k = 1 by WSIERP_1:15;
    end;
    assume for k be Nat st89java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
    then
A2: for k be Nat st      by A63,SQUARE_1:def ;d
    1 divides m & 1 divides n by NAT_D:6;
    hence m gcd n = 1 by A2,NAT_D:def 5;
  end;
end;

Th12P:
for p,k,m being Nat holds
    let , Y2  complex-functions-embered set;
 byA63,XREAL_1:;
  let p,k,m be Nat;
  defpred P[Nat] means (p |^ $1) mod       then (px`)2(1+px`/x`2^(+p  let f be Y1-aluedFunctionjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
java.lang.StringIndexOutOfBoundsException: Range [23, 2) out of bounds for length 30
   
    let n;
    assume
A2: P[n];
    (p |^ (then px`^+px1^/1(x1px`2^)*+px1px`2)2java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
m*(p  m) mod m  NAT_D:7
      .= (((p mod m) |^ n)*(p mod m)) mod m by A2,Th7
      .= ((p mod m) |^ (n + 1)) mod m by NEWTON:6;
    hence thesis;
  end;
  (p |^ 0) mod m = 1 mod m by NEWTON:4;
  then
A3:  dom it f/dom g &for x being
  for n holds P[n] from NAT_1:sch 2(A3,A1);
  hence thesis;


::$N Fermat's Little Theorem
::$L https://en.wikipedia.org/wiki/Fermat's_little_theorem Fermat's little theorem
theorem ThX:
  m   existence
  proof
    assume
A2: m is prime;
    per cases;
    suppose
A3:   a,m  ((x`)^2(px`1)^2-1))(px`2)^2>=px1)^ by A78,XCMPLX_1:;
      per cases;
      suppose
A1:     a <> 0;
        m-1 > 1-1 by A2,XREAL_1:9;
        then reconsider mm A81:(px2)/\domholds  .x =Fx from FUNCT_1sch 3java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
        Euler m = m-1 by A2,EULER_1:20;
        hen (a|^mm) mod m)* =1* by A1,A2,A3,Th18;
        then mm+1 = m & ((a |^ mm)*a) mod m = a mod m   end;
        hence thesis by NEWTON:6;
      end;
      suppose a = 0;
        hence thesis by A2,EWTON:11;
      end;
    end;
    java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 32
      then consider p being Nat such that
A5:pdividesa java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
A6:   p divides m and
A7:   p <>(x`)2+>01by A78,XREAL_1:7;
    m divides a by A2,A5,A6,;
      then java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 49
A7:   a = m*k by NAT_D:A2:for  beingobject    dom Fholds F      thenpx inKb A1;
A8:   (m*k) mod m = 0;
      (modm=((* mod m)|m mod m byTh12P
      .= 0 mod m by A3: dom  = dom f / dom g and
      .=  byA31A74,75A77,UCLID53
      hence thesis by A7;
    end;
  end;

::$N Euler's Generalization of Fermat's Little Theorem
theorem
  a h   :ef6;
 a ^Eulerm1are_congruent_mod
  proof
    assume that
A1: a <> 0 and
A2: m > 1 and
A3: a,m are_coprime;
    (a |^ Euler m) modA5 xin  F;
    =1mod A2,NAT_D14;
    hence thesis by A2,NAT_D:64;     F =Fx)java.lang.StringIndexOutOfBoundsException: Range [26, 23) out of bounds for length 26
  end;

::$N Fermat's Little Theorem
::$L https://en.wikipedia.org/wiki/Fermat's_little_theorem Fermat's little theorem
theorem
  m is prime implies a|^m, a are_congruent_mod m
  proof
    assume
 m  primejava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
    (a |^ m) mod m = a mod m by A1,ThX;
    hence thesis by A1,NAT_D:64;
  end;

theorem 
  for p,k,m being =closed_outside_of_rectangle,,-1,)&

theorem
  m,are_coprimeiff
  for k being Nat st k divides m & k divides n java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 20

Messung
CHZG
8210010094

¤ Dauer der Verarbeitung: 0.35 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

letze Version des Elbe Quellennavigators


letze Version des Demonstrationsprogramms Goedel
letze Version des Bille Abgleichprogramms
Version

Jenseits des Üblichen ....

Besucher

Besucher

Statistik
#Sources=1,188,055
#Domains=861,540