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

Theorem 1259lem2 13263
Description: Lemma for 1259prm 13267. 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 9797 . . . . 5  |- ; 1 2  e.  NN0
3 5nn0 9587 . . . . 5  |-  5  e.  NN0
42, 3deccl 9795 . . . 4  |- ;; 1 2 5  e.  NN0
5 9nn 9477 . . . 4  |-  9  e.  NN
64, 5decnncl 9804 . . 3  |- ;;; 1 2 5 9  e.  NN
71, 6eqeltri 2311 . 2  |-  N  e.  NN
8 2nn 9470 . 2  |-  2  e.  NN
9 1nn0 9583 . . 3  |-  1  e.  NN0
10 7nn0 9589 . . 3  |-  7  e.  NN0
119, 10deccl 9795 . 2  |- ; 1 7  e.  NN0
12 4nn0 9586 . . . 4  |-  4  e.  NN0
139, 12deccl 9795 . . 3  |- ; 1 4  e.  NN0
1413nn0zi 9670 . 2  |- ; 1 4  e.  ZZ
15 3nn0 9585 . . . 4  |-  3  e.  NN0
169, 15deccl 9795 . . 3  |- ; 1 3  e.  NN0
17 6nn0 9588 . . 3  |-  6  e.  NN0
1816, 17deccl 9795 . 2  |- ;; 1 3 6  e.  NN0
19 8nn0 9590 . . . 4  |-  8  e.  NN0
2019, 10deccl 9795 . . 3  |- ; 8 7  e.  NN0
21 0nn0 9582 . . 3  |-  0  e.  NN0
2220, 21deccl 9795 . 2  |- ;; 8 7 0  e.  NN0
2311259lem1 13262 . 2  |-  ( ( 2 ^; 1 7 )  mod 
N )  =  (;; 1 3 6  mod 
N )
24 2nn0 9584 . . 3  |-  2  e.  NN0
25 eqid 2238 . . 3  |- ; 1 7  = ; 1 7
26 2cn 9377 . . . . . 6  |-  2  e.  CC
2726mulridi 8328 . . . . 5  |-  ( 2  x.  1 )  =  2
2827oveq1i 6095 . . . 4  |-  ( ( 2  x.  1 )  +  1 )  =  ( 2  +  1 )
29 2p1e3 9440 . . . 4  |-  ( 2  +  1 )  =  3
3028, 29eqtri 2259 . . 3  |-  ( ( 2  x.  1 )  +  1 )  =  3
31 7cn 9390 . . . 4  |-  7  e.  CC
32 7t2e14 9894 . . . 4  |-  ( 7  x.  2 )  = ; 1
4
3331, 26, 32mulcomli 8333 . . 3  |-  ( 2  x.  7 )  = ; 1
4
3424, 9, 10, 25, 12, 9, 30, 33decmul2c 9851 . 2  |-  ( 2  x. ; 1 7 )  = ; 3
4
35 9nn0 9591 . . . 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 9447 . . . . . 6  |-  ( 8  +  1 )  =  9
41 7p2e9 9458 . . . . . 6  |-  ( 7  +  2 )  =  9
4219, 10, 9, 24, 38, 39, 40, 41decadd 9839 . . . . 5  |-  (; 8 7  + ; 1 2 )  = ; 9
9
43 9p7e16 9877 . . . . . 6  |-  ( 9  +  7 )  = ; 1
6
44 eqid 2238 . . . . . . 7  |- ; 1 4  = ; 1 4
45 3cn 9381 . . . . . . . . 9  |-  3  e.  CC
46 ax-1cn 8272 . . . . . . . . 9  |-  1  e.  CC
47 3p1e4 9442 . . . . . . . . 9  |-  ( 3  +  1 )  =  4
4845, 46, 47addcomli 8472 . . . . . . . 8  |-  ( 1  +  3 )  =  4
4912dec0h 9807 . . . . . . . 8  |-  4  = ; 0 4
5048, 49eqtri 2259 . . . . . . 7  |-  ( 1  +  3 )  = ; 0
4
5146mulridi 8328 . . . . . . . . 9  |-  ( 1  x.  1 )  =  1
52 00id 8468 . . . . . . . . 9  |-  ( 0  +  0 )  =  0
5351, 52oveq12i 6097 . . . . . . . 8  |-  ( ( 1  x.  1 )  +  ( 0  +  0 ) )  =  ( 1  +  0 )
5446addridi 8469 . . . . . . . 8  |-  ( 1  +  0 )  =  1
5553, 54eqtri 2259 . . . . . . 7  |-  ( ( 1  x.  1 )  +  ( 0  +  0 ) )  =  1
56 4cn 9384 . . . . . . . . . 10  |-  4  e.  CC
5756mulridi 8328 . . . . . . . . 9  |-  ( 4  x.  1 )  =  4
5857oveq1i 6095 . . . . . . . 8  |-  ( ( 4  x.  1 )  +  4 )  =  ( 4  +  4 )
59 4p4e8 9452 . . . . . . . 8  |-  ( 4  +  4 )  =  8
6019dec0h 9807 . . . . . . . 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 9837 . . . . . 6  |-  ( (; 1
4  x.  1 )  +  ( 1  +  3 ) )  = ; 1
8
6317dec0h 9807 . . . . . . 7  |-  6  = ; 0 6
6426mullidi 8329 . . . . . . . . 9  |-  ( 1  x.  2 )  =  2
6546addlidi 8470 . . . . . . . . 9  |-  ( 0  +  1 )  =  1
6664, 65oveq12i 6097 . . . . . . . 8  |-  ( ( 1  x.  2 )  +  ( 0  +  1 ) )  =  ( 2  +  1 )
6766, 29eqtri 2259 . . . . . . 7  |-  ( ( 1  x.  2 )  +  ( 0  +  1 ) )  =  3
68 4t2e8 9466 . . . . . . . . 9  |-  ( 4  x.  2 )  =  8
6968oveq1i 6095 . . . . . . . 8  |-  ( ( 4  x.  2 )  +  6 )  =  ( 8  +  6 )
70 8p6e14 9869 . . . . . . . 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 9837 . . . . . 6  |-  ( (; 1
4  x.  2 )  +  6 )  = ; 3
4
739, 24, 9, 17, 39, 43, 13, 12, 15, 62, 72decma2c 9838 . . . . 5  |-  ( (; 1
4  x. ; 1 2 )  +  ( 9  +  7 ) )  = ;; 1 8 4
7435dec0h 9807 . . . . . 6  |-  9  = ; 0 9
75 5cn 9386 . . . . . . . . 9  |-  5  e.  CC
7675mullidi 8329 . . . . . . . 8  |-  ( 1  x.  5 )  =  5
7726addlidi 8470 . . . . . . . 8  |-  ( 0  +  2 )  =  2
7876, 77oveq12i 6097 . . . . . . 7  |-  ( ( 1  x.  5 )  +  ( 0  +  2 ) )  =  ( 5  +  2 )
79 5p2e7 9453 . . . . . . 7  |-  ( 5  +  2 )  =  7
8078, 79eqtri 2259 . . . . . 6  |-  ( ( 1  x.  5 )  +  ( 0  +  2 ) )  =  7
81 5t4e20 9887 . . . . . . . 8  |-  ( 5  x.  4 )  = ; 2
0
8275, 56, 81mulcomli 8333 . . . . . . 7  |-  ( 4  x.  5 )  = ; 2
0
83 9cn 9394 . . . . . . . 8  |-  9  e.  CC
8483addlidi 8470 . . . . . . 7  |-  ( 0  +  9 )  =  9
8524, 21, 35, 82, 84decaddi 9845 . . . . . 6  |-  ( ( 4  x.  5 )  +  9 )  = ; 2
9
869, 12, 21, 35, 44, 74, 3, 35, 24, 80, 85decmac 9837 . . . . 5  |-  ( (; 1
4  x.  5 )  +  9 )  = ; 7
9
872, 3, 35, 35, 37, 42, 13, 35, 10, 73, 86decma2c 9838 . . . 4  |-  ( (; 1
4  x. ;; 1 2 5 )  +  (; 8 7  + ; 1 2 ) )  = ;;; 1 8 4 9
8883mullidi 8329 . . . . . . . . 9  |-  ( 1  x.  9 )  =  9
8988oveq1i 6095 . . . . . . . 8  |-  ( ( 1  x.  9 )  +  3 )  =  ( 9  +  3 )
90 9p3e12 9873 . . . . . . . 8  |-  ( 9  +  3 )  = ; 1
2
9189, 90eqtri 2259 . . . . . . 7  |-  ( ( 1  x.  9 )  +  3 )  = ; 1
2
92 9t4e36 9909 . . . . . . . 8  |-  ( 9  x.  4 )  = ; 3
6
9383, 56, 92mulcomli 8333 . . . . . . 7  |-  ( 4  x.  9 )  = ; 3
6
9435, 9, 12, 44, 17, 15, 91, 93decmul1c 9850 . . . . . 6  |-  (; 1 4  x.  9 )  = ;; 1 2 6
9594oveq1i 6095 . . . . 5  |-  ( (; 1
4  x.  9 )  +  0 )  =  (;; 1 2 6  +  0 )
962, 17deccl 9795 . . . . . . 7  |- ;; 1 2 6  e.  NN0
9796nn0cni 9579 . . . . . 6  |- ;; 1 2 6  e.  CC
9897addridi 8469 . . . . 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 9838 . . 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 9795 . . . 4  |- ; 8 1  e.  NN0
103 eqid 2238 . . . . 5  |- ; 1 3  = ; 1 3
104 eqid 2238 . . . . 5  |- ; 8 1  = ; 8 1
10512, 21deccl 9795 . . . . 5  |- ; 4 0  e.  NN0
106 eqid 2238 . . . . . . 7  |- ; 4 0  = ; 4 0
10756addlidi 8470 . . . . . . 7  |-  ( 0  +  4 )  =  4
108 8cn 9392 . . . . . . . 8  |-  8  e.  CC
109108addridi 8469 . . . . . . 7  |-  ( 8  +  0 )  =  8
11021, 19, 12, 21, 60, 106, 107, 109decadd 9839 . . . . . 6  |-  ( 8  + ; 4 0 )  = ; 4
8
111 4p1e5 9443 . . . . . . . 8  |-  ( 4  +  1 )  =  5
1123dec0h 9807 . . . . . . . 8  |-  5  = ; 0 5
113111, 112eqtri 2259 . . . . . . 7  |-  ( 4  +  1 )  = ; 0
5
11445mulridi 8328 . . . . . . . . 9  |-  ( 3  x.  1 )  =  3
115114oveq1i 6095 . . . . . . . 8  |-  ( ( 3  x.  1 )  +  5 )  =  ( 3  +  5 )
116 5p3e8 9454 . . . . . . . . 9  |-  ( 5  +  3 )  =  8
11775, 45, 116addcomli 8472 . . . . . . . 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 9837 . . . . . 6  |-  ( (; 1
3  x.  1 )  +  ( 4  +  1 ) )  = ; 1
8
120 6cn 9388 . . . . . . . . 9  |-  6  e.  CC
121120mulridi 8328 . . . . . . . 8  |-  ( 6  x.  1 )  =  6
122121oveq1i 6095 . . . . . . 7  |-  ( ( 6  x.  1 )  +  8 )  =  ( 6  +  8 )
123108, 120, 70addcomli 8472 . . . . . . 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 9837 . . . . 5  |-  ( (;; 1 3 6  x.  1 )  +  ( 8  + ; 4 0 ) )  = ;; 1 8 4
1269dec0h 9807 . . . . . 6  |-  1  = ; 0 1
12765, 126eqtri 2259 . . . . . . 7  |-  ( 0  +  1 )  = ; 0
1
12845mullidi 8329 . . . . . . . . 9  |-  ( 1  x.  3 )  =  3
129128, 65oveq12i 6097 . . . . . . . 8  |-  ( ( 1  x.  3 )  +  ( 0  +  1 ) )  =  ( 3  +  1 )
130129, 47eqtri 2259 . . . . . . 7  |-  ( ( 1  x.  3 )  +  ( 0  +  1 ) )  =  4
131 3t3e9 9465 . . . . . . . . 9  |-  ( 3  x.  3 )  =  9
132131oveq1i 6095 . . . . . . . 8  |-  ( ( 3  x.  3 )  +  1 )  =  ( 9  +  1 )
133 9p1e10 9783 . . . . . . . 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 9837 . . . . . 6  |-  ( (; 1
3  x.  3 )  +  ( 0  +  1 ) )  = ; 4
0
136 6t3e18 9890 . . . . . . 7  |-  ( 6  x.  3 )  = ; 1
8
1379, 19, 9, 136, 40decaddi 9845 . . . . . 6  |-  ( ( 6  x.  3 )  +  1 )  = ; 1
9
13816, 17, 21, 9, 101, 126, 15, 35, 9, 135, 137decmac 9837 . . . . 5  |-  ( (;; 1 3 6  x.  3 )  +  1 )  = ;; 4 0 9
1399, 15, 19, 9, 103, 104, 18, 35, 105, 125, 138decma2c 9838 . . . 4  |-  ( (;; 1 3 6  x. ; 1
3 )  + ; 8 1 )  = ;;; 1 8 4 9
14015dec0h 9807 . . . . . 6  |-  3  = ; 0 3
141120mullidi 8329 . . . . . . . 8  |-  ( 1  x.  6 )  =  6
142141, 77oveq12i 6097 . . . . . . 7  |-  ( ( 1  x.  6 )  +  ( 0  +  2 ) )  =  ( 6  +  2 )
143 6p2e8 9456 . . . . . . 7  |-  ( 6  +  2 )  =  8
144142, 143eqtri 2259 . . . . . 6  |-  ( ( 1  x.  6 )  +  ( 0  +  2 ) )  =  8
145120, 45, 136mulcomli 8333 . . . . . . 7  |-  ( 3  x.  6 )  = ; 1
8
146 1p1e2 9423 . . . . . . 7  |-  ( 1  +  1 )  =  2
147 8p3e11 9866 . . . . . . 7  |-  ( 8  +  3 )  = ; 1
1
1489, 19, 15, 145, 146, 9, 147decaddci 9846 . . . . . 6  |-  ( ( 3  x.  6 )  +  3 )  = ; 2
1
1499, 15, 21, 15, 103, 140, 17, 9, 24, 144, 148decmac 9837 . . . . 5  |-  ( (; 1
3  x.  6 )  +  3 )  = ; 8
1
150 6t6e36 9893 . . . . 5  |-  ( 6  x.  6 )  = ; 3
6
15117, 16, 17, 101, 17, 15, 149, 150decmul1c 9850 . . . 4  |-  (;; 1 3 6  x.  6 )  = ;; 8 1 6
15218, 16, 17, 101, 17, 102, 139, 151decmul2c 9851 . . 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 13216 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 6085   0cc0 8179   1c1 8180    + caddc 8182    x. cmul 8184   NNcn 9306   2c2 9357   3c3 9358   4c4 9359   5c5 9360   6c6 9361   7c7 9362   8c8 9363   9c9 9364  ;cdc 9781    mod cmo 10772   ^cexp 10988
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 4246  ax-sep 4249  ax-nul 4259  ax-pow 4311  ax-pr 4346  ax-un 4578  ax-setind 4684  ax-iinf 4735  ax-cnex 8270  ax-resscn 8271  ax-1cn 8272  ax-1re 8273  ax-icn 8274  ax-addcl 8275  ax-addrcl 8276  ax-mulcl 8277  ax-mulrcl 8278  ax-addcom 8279  ax-mulcom 8280  ax-addass 8281  ax-mulass 8282  ax-distr 8283  ax-i2m1 8284  ax-0lt1 8285  ax-1rid 8286  ax-0id 8287  ax-rnegex 8288  ax-precex 8289  ax-cnre 8290  ax-pre-ltirr 8291  ax-pre-ltwlin 8292  ax-pre-lttrn 8293  ax-pre-apti 8294  ax-pre-ltadd 8295  ax-pre-mulgt0 8296  ax-pre-mulext 8297  ax-arch 8298
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 4131  df-opab 4193  df-mpt 4194  df-tr 4230  df-id 4438  df-po 4441  df-iso 4442  df-iord 4511  df-on 4513  df-ilim 4514  df-suc 4516  df-iom 4738  df-xp 4780  df-rel 4781  df-cnv 4782  df-co 4783  df-dm 4784  df-rn 4785  df-res 4786  df-ima 4787  df-iota 5337  df-fun 5379  df-fn 5380  df-f 5381  df-f1 5382  df-fo 5383  df-f1o 5384  df-fv 5385  df-riota 6038  df-ov 6088  df-oprab 6089  df-mpo 6090  df-1st 6374  df-2nd 6375  df-recs 6576  df-frec 6662  df-pnf 8362  df-mnf 8363  df-xr 8364  df-ltxr 8365  df-le 8366  df-sub 8500  df-neg 8501  df-reap 8905  df-ap 8912  df-div 9005  df-inn 9307  df-2 9365  df-3 9366  df-4 9367  df-5 9368  df-6 9369  df-7 9370  df-8 9371  df-9 9372  df-n0 9568  df-z 9649  df-dec 9782  df-uz 9931  df-q 10029  df-rp 10065  df-fl 10715  df-mod 10773  df-seqfrec 10898  df-exp 10989
This theorem is used by:  1259lem3  13264  1259lem5  13266
  Copyright terms: Public domain W3C validator