ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  1259lem1 Unicode version

Theorem 1259lem1 13276
Description: Lemma for 1259prm 13281. Calculate a power mod. In decimal, we calculate  2 ^ 1 6  =  5 2 N  +  6 8  ==  6 8 and  2 ^ 1 7  ==  6 8  x.  2  =  1 3 6 in this lemma. (Contributed by Mario Carneiro, 22-Feb-2014.) (Revised by Mario Carneiro, 20-Apr-2015.) (Proof shortened by AV, 16-Sep-2021.)
Hypothesis
Ref Expression
1259prm.1  |-  N  = ;;; 1 2 5 9
Assertion
Ref Expression
1259lem1  |-  ( ( 2 ^; 1 7 )  mod 
N )  =  (;; 1 3 6  mod 
N )

Proof of Theorem 1259lem1
StepHypRef Expression
1 1259prm.1 . . 3  |-  N  = ;;; 1 2 5 9
2 1nn0 9596 . . . . . 6  |-  1  e.  NN0
3 2nn0 9597 . . . . . 6  |-  2  e.  NN0
42, 3deccl 9807 . . . . 5  |- ; 1 2  e.  NN0
5 5nn0 9600 . . . . 5  |-  5  e.  NN0
64, 5deccl 9807 . . . 4  |- ;; 1 2 5  e.  NN0
7 9nn 9490 . . . 4  |-  9  e.  NN
86, 7decnncl 9816 . . 3  |- ;;; 1 2 5 9  e.  NN
91, 8eqeltri 2311 . 2  |-  N  e.  NN
10 2nn 9483 . 2  |-  2  e.  NN
11 6nn0 9601 . . 3  |-  6  e.  NN0
122, 11deccl 9807 . 2  |- ; 1 6  e.  NN0
13 0z 9670 . 2  |-  0  e.  ZZ
14 8nn0 9603 . . 3  |-  8  e.  NN0
1511, 14deccl 9807 . 2  |- ; 6 8  e.  NN0
16 3nn0 9598 . . . 4  |-  3  e.  NN0
172, 16deccl 9807 . . 3  |- ; 1 3  e.  NN0
1817, 11deccl 9807 . 2  |- ;; 1 3 6  e.  NN0
195, 3deccl 9807 . . . 4  |- ; 5 2  e.  NN0
2019nn0zi 9681 . . 3  |- ; 5 2  e.  ZZ
213, 14nn0expcli 11028 . . 3  |-  ( 2 ^ 8 )  e. 
NN0
22 eqid 2238 . . 3  |-  ( ( 2 ^ 8 )  mod  N )  =  ( ( 2 ^ 8 )  mod  N
)
2314nn0cni 9592 . . . 4  |-  8  e.  CC
24 2cn 9390 . . . 4  |-  2  e.  CC
25 8t2e16 9912 . . . 4  |-  ( 8  x.  2 )  = ; 1
6
2623, 24, 25mulcomli 8345 . . 3  |-  ( 2  x.  8 )  = ; 1
6
27 9nn0 9604 . . . . 5  |-  9  e.  NN0
28 eqid 2238 . . . . 5  |- ; 6 8  = ; 6 8
29 4nn0 9599 . . . . . 6  |-  4  e.  NN0
30 7nn0 9602 . . . . . 6  |-  7  e.  NN0
3129, 30deccl 9807 . . . . 5  |- ; 4 7  e.  NN0
32 eqid 2238 . . . . . 6  |- ;; 1 2 5  = ;; 1 2 5
33 0nn0 9595 . . . . . . 7  |-  0  e.  NN0
3411dec0h 9819 . . . . . . 7  |-  6  = ; 0 6
35 eqid 2238 . . . . . . 7  |- ; 4 7  = ; 4 7
36 4cn 9397 . . . . . . . . . 10  |-  4  e.  CC
3736addlidi 8482 . . . . . . . . 9  |-  ( 0  +  4 )  =  4
3837oveq1i 6102 . . . . . . . 8  |-  ( ( 0  +  4 )  +  1 )  =  ( 4  +  1 )
39 4p1e5 9456 . . . . . . . 8  |-  ( 4  +  1 )  =  5
4038, 39eqtri 2259 . . . . . . 7  |-  ( ( 0  +  4 )  +  1 )  =  5
41 7cn 9403 . . . . . . . 8  |-  7  e.  CC
42 6cn 9401 . . . . . . . 8  |-  6  e.  CC
43 7p6e13 9875 . . . . . . . 8  |-  ( 7  +  6 )  = ; 1
3
4441, 42, 43addcomli 8484 . . . . . . 7  |-  ( 6  +  7 )  = ; 1
3
4533, 11, 29, 30, 34, 35, 40, 16, 44decaddc 9852 . . . . . 6  |-  ( 6  + ; 4 7 )  = ; 5
3
463, 11deccl 9807 . . . . . 6  |- ; 2 6  e.  NN0
47 eqid 2238 . . . . . . 7  |- ; 1 2  = ; 1 2
485dec0h 9819 . . . . . . . 8  |-  5  = ; 0 5
49 eqid 2238 . . . . . . . 8  |- ; 2 6  = ; 2 6
5024addlidi 8482 . . . . . . . . . 10  |-  ( 0  +  2 )  =  2
5150oveq1i 6102 . . . . . . . . 9  |-  ( ( 0  +  2 )  +  1 )  =  ( 2  +  1 )
52 2p1e3 9453 . . . . . . . . 9  |-  ( 2  +  1 )  =  3
5351, 52eqtri 2259 . . . . . . . 8  |-  ( ( 0  +  2 )  +  1 )  =  3
54 5cn 9399 . . . . . . . . 9  |-  5  e.  CC
55 6p5e11 9870 . . . . . . . . 9  |-  ( 6  +  5 )  = ; 1
1
5642, 54, 55addcomli 8484 . . . . . . . 8  |-  ( 5  +  6 )  = ; 1
1
5733, 5, 3, 11, 48, 49, 53, 2, 56decaddc 9852 . . . . . . 7  |-  ( 5  + ; 2 6 )  = ; 3
1
58 10nn0 9814 . . . . . . 7  |- ; 1 0  e.  NN0
59 eqid 2238 . . . . . . . 8  |- ; 5 2  = ; 5 2
6058nn0cni 9592 . . . . . . . . 9  |- ; 1 0  e.  CC
61 3cn 9394 . . . . . . . . 9  |-  3  e.  CC
62 dec10p 9840 . . . . . . . . 9  |-  (; 1 0  +  3 )  = ; 1 3
6360, 61, 62addcomli 8484 . . . . . . . 8  |-  ( 3  + ; 1 0 )  = ; 1
3
6454mulridi 8340 . . . . . . . . . 10  |-  ( 5  x.  1 )  =  5
65 1p0e1 9435 . . . . . . . . . 10  |-  ( 1  +  0 )  =  1
6664, 65oveq12i 6104 . . . . . . . . 9  |-  ( ( 5  x.  1 )  +  ( 1  +  0 ) )  =  ( 5  +  1 )
67 5p1e6 9457 . . . . . . . . 9  |-  ( 5  +  1 )  =  6
6866, 67eqtri 2259 . . . . . . . 8  |-  ( ( 5  x.  1 )  +  ( 1  +  0 ) )  =  6
6924mulridi 8340 . . . . . . . . . 10  |-  ( 2  x.  1 )  =  2
7069oveq1i 6102 . . . . . . . . 9  |-  ( ( 2  x.  1 )  +  3 )  =  ( 2  +  3 )
71 3p2e5 9461 . . . . . . . . . 10  |-  ( 3  +  2 )  =  5
7261, 24, 71addcomli 8484 . . . . . . . . 9  |-  ( 2  +  3 )  =  5
7370, 72, 483eqtri 2263 . . . . . . . 8  |-  ( ( 2  x.  1 )  +  3 )  = ; 0
5
745, 3, 2, 16, 59, 63, 2, 5, 33, 68, 73decmac 9849 . . . . . . 7  |-  ( (; 5
2  x.  1 )  +  ( 3  + ; 1
0 ) )  = ; 6
5
752dec0h 9819 . . . . . . . 8  |-  1  = ; 0 1
76 5t2e10 9897 . . . . . . . . . 10  |-  ( 5  x.  2 )  = ; 1
0
77 00id 8480 . . . . . . . . . 10  |-  ( 0  +  0 )  =  0
7876, 77oveq12i 6104 . . . . . . . . 9  |-  ( ( 5  x.  2 )  +  ( 0  +  0 ) )  =  (; 1 0  +  0 )
79 dec10p 9840 . . . . . . . . 9  |-  (; 1 0  +  0 )  = ; 1 0
8078, 79eqtri 2259 . . . . . . . 8  |-  ( ( 5  x.  2 )  +  ( 0  +  0 ) )  = ; 1
0
81 2t2e4 9474 . . . . . . . . . 10  |-  ( 2  x.  2 )  =  4
8281oveq1i 6102 . . . . . . . . 9  |-  ( ( 2  x.  2 )  +  1 )  =  ( 4  +  1 )
8382, 39, 483eqtri 2263 . . . . . . . 8  |-  ( ( 2  x.  2 )  +  1 )  = ; 0
5
845, 3, 33, 2, 59, 75, 3, 5, 33, 80, 83decmac 9849 . . . . . . 7  |-  ( (; 5
2  x.  2 )  +  1 )  = ;; 1 0 5
852, 3, 16, 2, 47, 57, 19, 5, 58, 74, 84decma2c 9850 . . . . . 6  |-  ( (; 5
2  x. ; 1 2 )  +  ( 5  + ; 2 6 ) )  = ;; 6 5 5
86 5t5e25 9900 . . . . . . . 8  |-  ( 5  x.  5 )  = ; 2
5
873, 5, 67, 86decsuc 9828 . . . . . . 7  |-  ( ( 5  x.  5 )  +  1 )  = ; 2
6
8854, 24, 76mulcomli 8345 . . . . . . . 8  |-  ( 2  x.  5 )  = ; 1
0
8961addlidi 8482 . . . . . . . 8  |-  ( 0  +  3 )  =  3
902, 33, 16, 88, 89decaddi 9857 . . . . . . 7  |-  ( ( 2  x.  5 )  +  3 )  = ; 1
3
915, 3, 16, 59, 5, 16, 2, 87, 90decrmac 9855 . . . . . 6  |-  ( (; 5
2  x.  5 )  +  3 )  = ;; 2 6 3
924, 5, 5, 16, 32, 45, 19, 16, 46, 85, 91decma2c 9850 . . . . 5  |-  ( (; 5
2  x. ;; 1 2 5 )  +  ( 6  + ; 4 7 ) )  = ;;; 6 5 5 3
93 9cn 9407 . . . . . . . 8  |-  9  e.  CC
94 9t5e45 9922 . . . . . . . 8  |-  ( 9  x.  5 )  = ; 4
5
9593, 54, 94mulcomli 8345 . . . . . . 7  |-  ( 5  x.  9 )  = ; 4
5
96 5p2e7 9466 . . . . . . 7  |-  ( 5  +  2 )  =  7
9729, 5, 3, 95, 96decaddi 9857 . . . . . 6  |-  ( ( 5  x.  9 )  +  2 )  = ; 4
7
98 9t2e18 9919 . . . . . . . 8  |-  ( 9  x.  2 )  = ; 1
8
9993, 24, 98mulcomli 8345 . . . . . . 7  |-  ( 2  x.  9 )  = ; 1
8
100 1p1e2 9436 . . . . . . 7  |-  ( 1  +  1 )  =  2
101 8p8e16 9883 . . . . . . 7  |-  ( 8  +  8 )  = ; 1
6
1022, 14, 14, 99, 100, 11, 101decaddci 9858 . . . . . 6  |-  ( ( 2  x.  9 )  +  8 )  = ; 2
6
1035, 3, 14, 59, 27, 11, 3, 97, 102decrmac 9855 . . . . 5  |-  ( (; 5
2  x.  9 )  +  8 )  = ;; 4 7 6
1046, 27, 11, 14, 1, 28, 19, 11, 31, 92, 103decma2c 9850 . . . 4  |-  ( (; 5
2  x.  N )  + ; 6 8 )  = ;;;; 6 5 5 3 6
105 2exp16 13251 . . . 4  |-  ( 2 ^; 1 6 )  = ;;;; 6 5 5 3 6
106 eqid 2238 . . . . 5  |-  ( 2 ^ 8 )  =  ( 2 ^ 8 )
107 eqid 2238 . . . . 5  |-  ( ( 2 ^ 8 )  x.  ( 2 ^ 8 ) )  =  ( ( 2 ^ 8 )  x.  (
2 ^ 8 ) )
1083, 14, 26, 106, 107numexp2x 13239 . . . 4  |-  ( 2 ^; 1 6 )  =  ( ( 2 ^ 8 )  x.  (
2 ^ 8 ) )
109104, 105, 1083eqtr2i 2265 . . 3  |-  ( (; 5
2  x.  N )  + ; 6 8 )  =  ( ( 2 ^ 8 )  x.  (
2 ^ 8 ) )
1109, 10, 14, 20, 21, 15, 22, 26, 109mod2xi 13230 . 2  |-  ( ( 2 ^; 1 6 )  mod 
N )  =  (; 6
8  mod  N )
111 6p1e7 9458 . . 3  |-  ( 6  +  1 )  =  7
112 eqid 2238 . . 3  |- ; 1 6  = ; 1 6
1132, 11, 111, 112decsuc 9828 . 2  |-  (; 1 6  +  1 )  = ; 1 7
11418nn0cni 9592 . . . 4  |- ;; 1 3 6  e.  CC
115114addlidi 8482 . . 3  |-  ( 0  + ;; 1 3 6 )  = ;; 1 3 6
1169nncni 9329 . . . . 5  |-  N  e.  CC
117116mul02i 8730 . . . 4  |-  ( 0  x.  N )  =  0
118117oveq1i 6102 . . 3  |-  ( ( 0  x.  N )  + ;; 1 3 6 )  =  ( 0  + ;; 1 3 6 )
119 6t2e12 9901 . . . . 5  |-  ( 6  x.  2 )  = ; 1
2
1202, 3, 52, 119decsuc 9828 . . . 4  |-  ( ( 6  x.  2 )  +  1 )  = ; 1
3
1213, 11, 14, 28, 11, 2, 120, 25decmul1c 9862 . . 3  |-  (; 6 8  x.  2 )  = ;; 1 3 6
122115, 118, 1213eqtr4i 2269 . 2  |-  ( ( 0  x.  N )  + ;; 1 3 6 )  =  (; 6
8  x.  2 )
1239, 10, 12, 13, 15, 18, 110, 113, 122modxp1i 13231 1  |-  ( ( 2 ^; 1 7 )  mod 
N )  =  (;; 1 3 6  mod 
N )
Colors of variables:    wff set class
This proof depends on syntax axioms:    = wceq 1402  (class class class)co 6092   0cc0 8191   1c1 8192    + caddc 8194    x. cmul 8196   NNcn 9319   2c2 9370   3c3 9371   4c4 9372   5c5 9373   6c6 9374   7c7 9375   8c8 9376   9c9 9377  ;cdc 9793    mod cmo 10785   ^cexp 11001
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 623  ax-in2 624  ax-io 721  ax-5 1500  ax-7 1501  ax-gen 1502  ax-ie1 1546  ax-ie2 1547  ax-8 1557  ax-10 1558  ax-11 1559  ax-i12 1560  ax-bndl 1562  ax-4 1563  ax-17 1579  ax-i9 1583  ax-ial 1587  ax-i5r 1588  ax-14 2212  ax-ext 2220  ax-coll 4248  ax-sep 4251  ax-nul 4261  ax-pow 4313  ax-pr 4348  ax-un 4580  ax-setind 4686  ax-iinf 4737  ax-cnex 8282  ax-resscn 8283  ax-1cn 8284  ax-1re 8285  ax-icn 8286  ax-addcl 8287  ax-addrcl 8288  ax-mulcl 8289  ax-mulrcl 8290  ax-addcom 8291  ax-mulcom 8292  ax-addass 8293  ax-mulass 8294  ax-distr 8295  ax-i2m1 8296  ax-0lt1 8297  ax-1rid 8298  ax-0id 8299  ax-rnegex 8300  ax-precex 8301  ax-cnre 8302  ax-pre-ltirr 8303  ax-pre-ltwlin 8304  ax-pre-lttrn 8305  ax-pre-apti 8306  ax-pre-ltadd 8307  ax-pre-mulgt0 8308  ax-pre-mulext 8309  ax-arch 8310
This proof depends on definitions:  df-bi 117  df-dc 847  df-3or 1010  df-3an 1011  df-tru 1405  df-fal 1408  df-nf 1514  df-sb 1816  df-eu 2089  df-mo 2090  df-clab 2225  df-cleq 2231  df-clel 2234  df-nfc 2381  df-ne 2421  df-nel 2516  df-ral 2533  df-rex 2534  df-reu 2535  df-rmo 2536  df-rab 2537  df-v 2823  df-sbc 3052  df-csb 3148  df-dif 3222  df-un 3224  df-in 3226  df-ss 3233  df-nul 3521  df-if 3639  df-pw 3690  df-sn 3715  df-pr 3716  df-op 3718  df-uni 3936  df-int 3971  df-iun 4014  df-br 4132  df-opab 4194  df-mpt 4195  df-tr 4232  df-id 4440  df-po 4443  df-iso 4444  df-iord 4513  df-on 4515  df-ilim 4516  df-suc 4518  df-iom 4740  df-xp 4782  df-rel 4783  df-cnv 4784  df-co 4785  df-dm 4786  df-rn 4787  df-res 4788  df-ima 4789  df-iota 5344  df-fun 5386  df-fn 5387  df-f 5388  df-f1 5389  df-fo 5390  df-f1o 5391  df-fv 5392  df-riota 6045  df-ov 6095  df-oprab 6096  df-mpo 6097  df-1st 6382  df-2nd 6383  df-recs 6586  df-frec 6672  df-pnf 8374  df-mnf 8375  df-xr 8376  df-ltxr 8377  df-le 8378  df-sub 8512  df-neg 8513  df-reap 8917  df-ap 8924  df-div 9017  df-inn 9320  df-2 9378  df-3 9379  df-4 9380  df-5 9381  df-6 9382  df-7 9383  df-8 9384  df-9 9385  df-n0 9581  df-z 9660  df-dec 9794  df-uz 9943  df-q 10041  df-rp 10077  df-fl 10727  df-mod 10786  df-seqfrec 10911  df-exp 11002
This theorem is used by:  1259lem2  13277  1259lem4  13279
  Copyright terms: Public domain W3C validator