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

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

Proof of Theorem 1259lem2
StepHypRef Expression
1 1259prm.1 . . 3  |-  N  = ;;; 1 2 5 9
2 12nn0 9809 . . . . 5  |- ; 1 2  e.  NN0
3 5nn0 9600 . . . . 5  |-  5  e.  NN0
42, 3deccl 9807 . . . 4  |- ;; 1 2 5  e.  NN0
5 9nn 9490 . . . 4  |-  9  e.  NN
64, 5decnncl 9816 . . 3  |- ;;; 1 2 5 9  e.  NN
71, 6eqeltri 2311 . 2  |-  N  e.  NN
8 2nn 9483 . 2  |-  2  e.  NN
9 1nn0 9596 . . 3  |-  1  e.  NN0
10 7nn0 9602 . . 3  |-  7  e.  NN0
119, 10deccl 9807 . 2  |- ; 1 7  e.  NN0
12 4nn0 9599 . . . 4  |-  4  e.  NN0
139, 12deccl 9807 . . 3  |- ; 1 4  e.  NN0
1413nn0zi 9681 . 2  |- ; 1 4  e.  ZZ
15 3nn0 9598 . . . 4  |-  3  e.  NN0
169, 15deccl 9807 . . 3  |- ; 1 3  e.  NN0
17 6nn0 9601 . . 3  |-  6  e.  NN0
1816, 17deccl 9807 . 2  |- ;; 1 3 6  e.  NN0
19 8nn0 9603 . . . 4  |-  8  e.  NN0
2019, 10deccl 9807 . . 3  |- ; 8 7  e.  NN0
21 0nn0 9595 . . 3  |-  0  e.  NN0
2220, 21deccl 9807 . 2  |- ;; 8 7 0  e.  NN0
2311259lem1 13276 . 2  |-  ( ( 2 ^; 1 7 )  mod 
N )  =  (;; 1 3 6  mod 
N )
24 2nn0 9597 . . 3  |-  2  e.  NN0
25 eqid 2238 . . 3  |- ; 1 7  = ; 1 7
26 2cn 9390 . . . . . 6  |-  2  e.  CC
2726mulridi 8340 . . . . 5  |-  ( 2  x.  1 )  =  2
2827oveq1i 6102 . . . 4  |-  ( ( 2  x.  1 )  +  1 )  =  ( 2  +  1 )
29 2p1e3 9453 . . . 4  |-  ( 2  +  1 )  =  3
3028, 29eqtri 2259 . . 3  |-  ( ( 2  x.  1 )  +  1 )  =  3
31 7cn 9403 . . . 4  |-  7  e.  CC
32 7t2e14 9906 . . . 4  |-  ( 7  x.  2 )  = ; 1
4
3331, 26, 32mulcomli 8345 . . 3  |-  ( 2  x.  7 )  = ; 1
4
3424, 9, 10, 25, 12, 9, 30, 33decmul2c 9863 . 2  |-  ( 2  x. ; 1 7 )  = ; 3
4
35 9nn0 9604 . . . 4  |-  9  e.  NN0
36 eqid 2238 . . . 4  |- ;; 8 7 0  = ;; 8 7 0
37 eqid 2238 . . . . 5  |- ;; 1 2 5  = ;; 1 2 5
38 eqid 2238 . . . . . 6  |- ; 8 7  = ; 8 7
39 eqid 2238 . . . . . 6  |- ; 1 2  = ; 1 2
40 8p1e9 9460 . . . . . 6  |-  ( 8  +  1 )  =  9
41 7p2e9 9471 . . . . . 6  |-  ( 7  +  2 )  =  9
4219, 10, 9, 24, 38, 39, 40, 41decadd 9851 . . . . 5  |-  (; 8 7  + ; 1 2 )  = ; 9
9
43 9p7e16 9889 . . . . . 6  |-  ( 9  +  7 )  = ; 1
6
44 eqid 2238 . . . . . . 7  |- ; 1 4  = ; 1 4
45 3cn 9394 . . . . . . . . 9  |-  3  e.  CC
46 ax-1cn 8284 . . . . . . . . 9  |-  1  e.  CC
47 3p1e4 9455 . . . . . . . . 9  |-  ( 3  +  1 )  =  4
4845, 46, 47addcomli 8484 . . . . . . . 8  |-  ( 1  +  3 )  =  4
4912dec0h 9819 . . . . . . . 8  |-  4  = ; 0 4
5048, 49eqtri 2259 . . . . . . 7  |-  ( 1  +  3 )  = ; 0
4
5146mulridi 8340 . . . . . . . . 9  |-  ( 1  x.  1 )  =  1
52 00id 8480 . . . . . . . . 9  |-  ( 0  +  0 )  =  0
5351, 52oveq12i 6104 . . . . . . . 8  |-  ( ( 1  x.  1 )  +  ( 0  +  0 ) )  =  ( 1  +  0 )
5446addridi 8481 . . . . . . . 8  |-  ( 1  +  0 )  =  1
5553, 54eqtri 2259 . . . . . . 7  |-  ( ( 1  x.  1 )  +  ( 0  +  0 ) )  =  1
56 4cn 9397 . . . . . . . . . 10  |-  4  e.  CC
5756mulridi 8340 . . . . . . . . 9  |-  ( 4  x.  1 )  =  4
5857oveq1i 6102 . . . . . . . 8  |-  ( ( 4  x.  1 )  +  4 )  =  ( 4  +  4 )
59 4p4e8 9465 . . . . . . . 8  |-  ( 4  +  4 )  =  8
6019dec0h 9819 . . . . . . . 8  |-  8  = ; 0 8
6158, 59, 603eqtri 2263 . . . . . . 7  |-  ( ( 4  x.  1 )  +  4 )  = ; 0
8
629, 12, 21, 12, 44, 50, 9, 19, 21, 55, 61decmac 9849 . . . . . 6  |-  ( (; 1
4  x.  1 )  +  ( 1  +  3 ) )  = ; 1
8
6317dec0h 9819 . . . . . . 7  |-  6  = ; 0 6
6426mullidi 8341 . . . . . . . . 9  |-  ( 1  x.  2 )  =  2
6546addlidi 8482 . . . . . . . . 9  |-  ( 0  +  1 )  =  1
6664, 65oveq12i 6104 . . . . . . . 8  |-  ( ( 1  x.  2 )  +  ( 0  +  1 ) )  =  ( 2  +  1 )
6766, 29eqtri 2259 . . . . . . 7  |-  ( ( 1  x.  2 )  +  ( 0  +  1 ) )  =  3
68 4t2e8 9479 . . . . . . . . 9  |-  ( 4  x.  2 )  =  8
6968oveq1i 6102 . . . . . . . 8  |-  ( ( 4  x.  2 )  +  6 )  =  ( 8  +  6 )
70 8p6e14 9881 . . . . . . . 8  |-  ( 8  +  6 )  = ; 1
4
7169, 70eqtri 2259 . . . . . . 7  |-  ( ( 4  x.  2 )  +  6 )  = ; 1
4
729, 12, 21, 17, 44, 63, 24, 12, 9, 67, 71decmac 9849 . . . . . 6  |-  ( (; 1
4  x.  2 )  +  6 )  = ; 3
4
739, 24, 9, 17, 39, 43, 13, 12, 15, 62, 72decma2c 9850 . . . . 5  |-  ( (; 1
4  x. ; 1 2 )  +  ( 9  +  7 ) )  = ;; 1 8 4
7435dec0h 9819 . . . . . 6  |-  9  = ; 0 9
75 5cn 9399 . . . . . . . . 9  |-  5  e.  CC
7675mullidi 8341 . . . . . . . 8  |-  ( 1  x.  5 )  =  5
7726addlidi 8482 . . . . . . . 8  |-  ( 0  +  2 )  =  2
7876, 77oveq12i 6104 . . . . . . 7  |-  ( ( 1  x.  5 )  +  ( 0  +  2 ) )  =  ( 5  +  2 )
79 5p2e7 9466 . . . . . . 7  |-  ( 5  +  2 )  =  7
8078, 79eqtri 2259 . . . . . 6  |-  ( ( 1  x.  5 )  +  ( 0  +  2 ) )  =  7
81 5t4e20 9899 . . . . . . . 8  |-  ( 5  x.  4 )  = ; 2
0
8275, 56, 81mulcomli 8345 . . . . . . 7  |-  ( 4  x.  5 )  = ; 2
0
83 9cn 9407 . . . . . . . 8  |-  9  e.  CC
8483addlidi 8482 . . . . . . 7  |-  ( 0  +  9 )  =  9
8524, 21, 35, 82, 84decaddi 9857 . . . . . 6  |-  ( ( 4  x.  5 )  +  9 )  = ; 2
9
869, 12, 21, 35, 44, 74, 3, 35, 24, 80, 85decmac 9849 . . . . 5  |-  ( (; 1
4  x.  5 )  +  9 )  = ; 7
9
872, 3, 35, 35, 37, 42, 13, 35, 10, 73, 86decma2c 9850 . . . 4  |-  ( (; 1
4  x. ;; 1 2 5 )  +  (; 8 7  + ; 1 2 ) )  = ;;; 1 8 4 9
8883mullidi 8341 . . . . . . . . 9  |-  ( 1  x.  9 )  =  9
8988oveq1i 6102 . . . . . . . 8  |-  ( ( 1  x.  9 )  +  3 )  =  ( 9  +  3 )
90 9p3e12 9885 . . . . . . . 8  |-  ( 9  +  3 )  = ; 1
2
9189, 90eqtri 2259 . . . . . . 7  |-  ( ( 1  x.  9 )  +  3 )  = ; 1
2
92 9t4e36 9921 . . . . . . . 8  |-  ( 9  x.  4 )  = ; 3
6
9383, 56, 92mulcomli 8345 . . . . . . 7  |-  ( 4  x.  9 )  = ; 3
6
9435, 9, 12, 44, 17, 15, 91, 93decmul1c 9862 . . . . . 6  |-  (; 1 4  x.  9 )  = ;; 1 2 6
9594oveq1i 6102 . . . . 5  |-  ( (; 1
4  x.  9 )  +  0 )  =  (;; 1 2 6  +  0 )
962, 17deccl 9807 . . . . . . 7  |- ;; 1 2 6  e.  NN0
9796nn0cni 9592 . . . . . 6  |- ;; 1 2 6  e.  CC
9897addridi 8481 . . . . 5  |-  (;; 1 2 6  +  0 )  = ;; 1 2 6
9995, 98eqtri 2259 . . . 4  |-  ( (; 1
4  x.  9 )  +  0 )  = ;; 1 2 6
1004, 35, 20, 21, 1, 36, 13, 17, 2, 87, 99decma2c 9850 . . 3  |-  ( (; 1
4  x.  N )  + ;; 8 7 0 )  = ;;;; 1 8 4 9 6
101 eqid 2238 . . . 4  |- ;; 1 3 6  = ;; 1 3 6
10219, 9deccl 9807 . . . 4  |- ; 8 1  e.  NN0
103 eqid 2238 . . . . 5  |- ; 1 3  = ; 1 3
104 eqid 2238 . . . . 5  |- ; 8 1  = ; 8 1
10512, 21deccl 9807 . . . . 5  |- ; 4 0  e.  NN0
106 eqid 2238 . . . . . . 7  |- ; 4 0  = ; 4 0
10756addlidi 8482 . . . . . . 7  |-  ( 0  +  4 )  =  4
108 8cn 9405 . . . . . . . 8  |-  8  e.  CC
109108addridi 8481 . . . . . . 7  |-  ( 8  +  0 )  =  8
11021, 19, 12, 21, 60, 106, 107, 109decadd 9851 . . . . . 6  |-  ( 8  + ; 4 0 )  = ; 4
8
111 4p1e5 9456 . . . . . . . 8  |-  ( 4  +  1 )  =  5
1123dec0h 9819 . . . . . . . 8  |-  5  = ; 0 5
113111, 112eqtri 2259 . . . . . . 7  |-  ( 4  +  1 )  = ; 0
5
11445mulridi 8340 . . . . . . . . 9  |-  ( 3  x.  1 )  =  3
115114oveq1i 6102 . . . . . . . 8  |-  ( ( 3  x.  1 )  +  5 )  =  ( 3  +  5 )
116 5p3e8 9467 . . . . . . . . 9  |-  ( 5  +  3 )  =  8
11775, 45, 116addcomli 8484 . . . . . . . 8  |-  ( 3  +  5 )  =  8
118115, 117, 603eqtri 2263 . . . . . . 7  |-  ( ( 3  x.  1 )  +  5 )  = ; 0
8
1199, 15, 21, 3, 103, 113, 9, 19, 21, 55, 118decmac 9849 . . . . . 6  |-  ( (; 1
3  x.  1 )  +  ( 4  +  1 ) )  = ; 1
8
120 6cn 9401 . . . . . . . . 9  |-  6  e.  CC
121120mulridi 8340 . . . . . . . 8  |-  ( 6  x.  1 )  =  6
122121oveq1i 6102 . . . . . . 7  |-  ( ( 6  x.  1 )  +  8 )  =  ( 6  +  8 )
123108, 120, 70addcomli 8484 . . . . . . 7  |-  ( 6  +  8 )  = ; 1
4
124122, 123eqtri 2259 . . . . . 6  |-  ( ( 6  x.  1 )  +  8 )  = ; 1
4
12516, 17, 12, 19, 101, 110, 9, 12, 9, 119, 124decmac 9849 . . . . 5  |-  ( (;; 1 3 6  x.  1 )  +  ( 8  + ; 4 0 ) )  = ;; 1 8 4
1269dec0h 9819 . . . . . 6  |-  1  = ; 0 1
12765, 126eqtri 2259 . . . . . . 7  |-  ( 0  +  1 )  = ; 0
1
12845mullidi 8341 . . . . . . . . 9  |-  ( 1  x.  3 )  =  3
129128, 65oveq12i 6104 . . . . . . . 8  |-  ( ( 1  x.  3 )  +  ( 0  +  1 ) )  =  ( 3  +  1 )
130129, 47eqtri 2259 . . . . . . 7  |-  ( ( 1  x.  3 )  +  ( 0  +  1 ) )  =  4
131 3t3e9 9478 . . . . . . . . 9  |-  ( 3  x.  3 )  =  9
132131oveq1i 6102 . . . . . . . 8  |-  ( ( 3  x.  3 )  +  1 )  =  ( 9  +  1 )
133 9p1e10 9795 . . . . . . . 8  |-  ( 9  +  1 )  = ; 1
0
134132, 133eqtri 2259 . . . . . . 7  |-  ( ( 3  x.  3 )  +  1 )  = ; 1
0
1359, 15, 21, 9, 103, 127, 15, 21, 9, 130, 134decmac 9849 . . . . . 6  |-  ( (; 1
3  x.  3 )  +  ( 0  +  1 ) )  = ; 4
0
136 6t3e18 9902 . . . . . . 7  |-  ( 6  x.  3 )  = ; 1
8
1379, 19, 9, 136, 40decaddi 9857 . . . . . 6  |-  ( ( 6  x.  3 )  +  1 )  = ; 1
9
13816, 17, 21, 9, 101, 126, 15, 35, 9, 135, 137decmac 9849 . . . . 5  |-  ( (;; 1 3 6  x.  3 )  +  1 )  = ;; 4 0 9
1399, 15, 19, 9, 103, 104, 18, 35, 105, 125, 138decma2c 9850 . . . 4  |-  ( (;; 1 3 6  x. ; 1
3 )  + ; 8 1 )  = ;;; 1 8 4 9
14015dec0h 9819 . . . . . 6  |-  3  = ; 0 3
141120mullidi 8341 . . . . . . . 8  |-  ( 1  x.  6 )  =  6
142141, 77oveq12i 6104 . . . . . . 7  |-  ( ( 1  x.  6 )  +  ( 0  +  2 ) )  =  ( 6  +  2 )
143 6p2e8 9469 . . . . . . 7  |-  ( 6  +  2 )  =  8
144142, 143eqtri 2259 . . . . . 6  |-  ( ( 1  x.  6 )  +  ( 0  +  2 ) )  =  8
145120, 45, 136mulcomli 8345 . . . . . . 7  |-  ( 3  x.  6 )  = ; 1
8
146 1p1e2 9436 . . . . . . 7  |-  ( 1  +  1 )  =  2
147 8p3e11 9878 . . . . . . 7  |-  ( 8  +  3 )  = ; 1
1
1489, 19, 15, 145, 146, 9, 147decaddci 9858 . . . . . 6  |-  ( ( 3  x.  6 )  +  3 )  = ; 2
1
1499, 15, 21, 15, 103, 140, 17, 9, 24, 144, 148decmac 9849 . . . . 5  |-  ( (; 1
3  x.  6 )  +  3 )  = ; 8
1
150 6t6e36 9905 . . . . 5  |-  ( 6  x.  6 )  = ; 3
6
15117, 16, 17, 101, 17, 15, 149, 150decmul1c 9862 . . . 4  |-  (;; 1 3 6  x.  6 )  = ;; 8 1 6
15218, 16, 17, 101, 17, 102, 139, 151decmul2c 9863 . . 3  |-  (;; 1 3 6  x. ;; 1 3 6 )  = ;;;; 1 8 4 9 6
153100, 152eqtr4i 2262 . 2  |-  ( (; 1
4  x.  N )  + ;; 8 7 0 )  =  (;; 1 3 6  x. ;; 1 3 6 )
1547, 8, 11, 14, 18, 22, 23, 34, 153mod2xi 13230 1  |-  ( ( 2 ^; 3 4 )  mod 
N )  =  (;; 8 7 0  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:  1259lem3  13278  1259lem5  13280
  Copyright terms: Public domain W3C validator