MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  4001prm Structured version   Visualization version   Unicode version

Theorem 4001prm 15852
Description: 4001 is a prime number. (Contributed by Mario Carneiro, 3-Mar-2014.) (Proof shortened by Mario Carneiro, 20-Apr-2015.) (Proof shortened by AV, 16-Sep-2021.)
Hypothesis
Ref Expression
4001prm.1  |-  N  = ;;; 4 0 0 1
Assertion
Ref Expression
4001prm  |-  N  e. 
Prime

Proof of Theorem 4001prm
StepHypRef Expression
1 5prm 15815 . 2  |-  5  e.  Prime
2 8nn 11191 . . . 4  |-  8  e.  NN
32decnncl2 11525 . . 3  |- ; 8 0  e.  NN
43decnncl2 11525 . 2  |- ;; 8 0 0  e.  NN
5 4nn0 11311 . . . . . . . 8  |-  4  e.  NN0
6 0nn0 11307 . . . . . . . 8  |-  0  e.  NN0
75, 6deccl 11512 . . . . . . 7  |- ; 4 0  e.  NN0
87, 6deccl 11512 . . . . . 6  |- ;; 4 0 0  e.  NN0
98, 6deccl 11512 . . . . 5  |- ;;; 4 0 0 0  e.  NN0
109nn0cni 11304 . . . 4  |- ;;; 4 0 0 0  e.  CC
11 ax-1cn 9994 . . . 4  |-  1  e.  CC
12 4001prm.1 . . . . 5  |-  N  = ;;; 4 0 0 1
1311addid2i 10224 . . . . . 6  |-  ( 0  +  1 )  =  1
14 eqid 2622 . . . . . 6  |- ;;; 4 0 0 0  = ;;; 4 0 0 0
158, 6, 13, 14decsuc 11535 . . . . 5  |-  (;;; 4 0 0 0  +  1 )  = ;;; 4 0 0 1
1612, 15eqtr4i 2647 . . . 4  |-  N  =  (;;; 4 0 0 0  +  1 )
1710, 11, 16mvrraddi 10298 . . 3  |-  ( N  -  1 )  = ;;; 4 0 0 0
18 5nn0 11312 . . . 4  |-  5  e.  NN0
19 8nn0 11315 . . . . 5  |-  8  e.  NN0
2019, 6deccl 11512 . . . 4  |- ; 8 0  e.  NN0
21 eqid 2622 . . . 4  |- ;; 8 0 0  = ;; 8 0 0
22 eqid 2622 . . . . 5  |- ; 8 0  = ; 8 0
23 8t5e40 11657 . . . . 5  |-  ( 8  x.  5 )  = ; 4
0
24 5cn 11100 . . . . . 6  |-  5  e.  CC
2524mul02i 10225 . . . . 5  |-  ( 0  x.  5 )  =  0
2618, 19, 6, 22, 6, 23, 25decmul1 11585 . . . 4  |-  (; 8 0  x.  5 )  = ;; 4 0 0
2718, 20, 6, 21, 6, 26, 25decmul1 11585 . . 3  |-  (;; 8 0 0  x.  5 )  = ;;; 4 0 0 0
2817, 27eqtr4i 2647 . 2  |-  ( N  -  1 )  =  (;; 8 0 0  x.  5 )
29 1nn0 11308 . . . . . . 7  |-  1  e.  NN0
308, 29deccl 11512 . . . . . 6  |- ;;; 4 0 0 1  e.  NN0
3112, 30eqeltri 2697 . . . . 5  |-  N  e. 
NN0
3231nn0cni 11304 . . . 4  |-  N  e.  CC
33 npcan 10290 . . . 4  |-  ( ( N  e.  CC  /\  1  e.  CC )  ->  ( ( N  - 
1 )  +  1 )  =  N )
3432, 11, 33mp2an 708 . . 3  |-  ( ( N  -  1 )  +  1 )  =  N
3534eqcomi 2631 . 2  |-  N  =  ( ( N  - 
1 )  +  1 )
36 3nn0 11310 . . 3  |-  3  e.  NN0
37 2nn 11185 . . 3  |-  2  e.  NN
3836, 37decnncl 11518 . 2  |- ; 3 2  e.  NN
39 3nn 11186 . 2  |-  3  e.  NN
40 2nn0 11309 . . . . 5  |-  2  e.  NN0
4136, 40deccl 11512 . . . 4  |- ; 3 2  e.  NN0
4229, 40deccl 11512 . . . 4  |- ; 1 2  e.  NN0
43 2p1e3 11151 . . . . 5  |-  ( 2  +  1 )  =  3
4424sqvali 12943 . . . . . . 7  |-  ( 5 ^ 2 )  =  ( 5  x.  5 )
45 5t5e25 11639 . . . . . . 7  |-  ( 5  x.  5 )  = ; 2
5
4644, 45eqtri 2644 . . . . . 6  |-  ( 5 ^ 2 )  = ; 2
5
47 2cn 11091 . . . . . . . 8  |-  2  e.  CC
48 5t2e10 11634 . . . . . . . 8  |-  ( 5  x.  2 )  = ; 1
0
4924, 47, 48mulcomli 10047 . . . . . . 7  |-  ( 2  x.  5 )  = ; 1
0
5047addid2i 10224 . . . . . . 7  |-  ( 0  +  2 )  =  2
5129, 6, 40, 49, 50decaddi 11579 . . . . . 6  |-  ( ( 2  x.  5 )  +  2 )  = ; 1
2
5218, 40, 18, 46, 18, 40, 51, 45decmul1c 11587 . . . . 5  |-  ( ( 5 ^ 2 )  x.  5 )  = ;; 1 2 5
5318, 40, 43, 52numexpp1 15782 . . . 4  |-  ( 5 ^ 3 )  = ;; 1 2 5
54 6nn0 11313 . . . . 5  |-  6  e.  NN0
5529, 54deccl 11512 . . . 4  |- ; 1 6  e.  NN0
56 eqid 2622 . . . . 5  |- ; 1 2  = ; 1 2
57 eqid 2622 . . . . 5  |- ; 1 6  = ; 1 6
58 7nn0 11314 . . . . 5  |-  7  e.  NN0
59 7cn 11104 . . . . . . . 8  |-  7  e.  CC
60 7p1e8 11157 . . . . . . . 8  |-  ( 7  +  1 )  =  8
6159, 11, 60addcomli 10228 . . . . . . 7  |-  ( 1  +  7 )  =  8
6261, 19eqeltri 2697 . . . . . 6  |-  ( 1  +  7 )  e. 
NN0
63 eqid 2622 . . . . . 6  |- ; 3 2  = ; 3 2
64 3t1e3 11178 . . . . . . . 8  |-  ( 3  x.  1 )  =  3
6564oveq1i 6660 . . . . . . 7  |-  ( ( 3  x.  1 )  +  1 )  =  ( 3  +  1 )
66 3p1e4 11153 . . . . . . 7  |-  ( 3  +  1 )  =  4
6765, 66eqtri 2644 . . . . . 6  |-  ( ( 3  x.  1 )  +  1 )  =  4
68 2t1e2 11176 . . . . . . . 8  |-  ( 2  x.  1 )  =  2
6968, 61oveq12i 6662 . . . . . . 7  |-  ( ( 2  x.  1 )  +  ( 1  +  7 ) )  =  ( 2  +  8 )
70 8cn 11106 . . . . . . . 8  |-  8  e.  CC
71 8p2e10 11610 . . . . . . . 8  |-  ( 8  +  2 )  = ; 1
0
7270, 47, 71addcomli 10228 . . . . . . 7  |-  ( 2  +  8 )  = ; 1
0
7369, 72eqtri 2644 . . . . . 6  |-  ( ( 2  x.  1 )  +  ( 1  +  7 ) )  = ; 1
0
7436, 40, 62, 63, 29, 6, 29, 67, 73decrmac 11577 . . . . 5  |-  ( (; 3
2  x.  1 )  +  ( 1  +  7 ) )  = ; 4
0
75 3t2e6 11179 . . . . . . . 8  |-  ( 3  x.  2 )  =  6
7675oveq1i 6660 . . . . . . 7  |-  ( ( 3  x.  2 )  +  1 )  =  ( 6  +  1 )
77 6p1e7 11156 . . . . . . 7  |-  ( 6  +  1 )  =  7
7876, 77eqtri 2644 . . . . . 6  |-  ( ( 3  x.  2 )  +  1 )  =  7
79 2t2e4 11177 . . . . . . . 8  |-  ( 2  x.  2 )  =  4
8079oveq1i 6660 . . . . . . 7  |-  ( ( 2  x.  2 )  +  6 )  =  ( 4  +  6 )
81 6cn 11102 . . . . . . . 8  |-  6  e.  CC
82 4cn 11098 . . . . . . . 8  |-  4  e.  CC
83 6p4e10 11598 . . . . . . . 8  |-  ( 6  +  4 )  = ; 1
0
8481, 82, 83addcomli 10228 . . . . . . 7  |-  ( 4  +  6 )  = ; 1
0
8580, 84eqtri 2644 . . . . . 6  |-  ( ( 2  x.  2 )  +  6 )  = ; 1
0
8636, 40, 54, 63, 40, 6, 29, 78, 85decrmac 11577 . . . . 5  |-  ( (; 3
2  x.  2 )  +  6 )  = ; 7
0
8729, 40, 29, 54, 56, 57, 41, 6, 58, 74, 86decma2c 11568 . . . 4  |-  ( (; 3
2  x. ; 1 2 )  + ; 1
6 )  = ;; 4 0 0
88 5p1e6 11155 . . . . . 6  |-  ( 5  +  1 )  =  6
89 3cn 11095 . . . . . . 7  |-  3  e.  CC
90 5t3e15 11635 . . . . . . 7  |-  ( 5  x.  3 )  = ; 1
5
9124, 89, 90mulcomli 10047 . . . . . 6  |-  ( 3  x.  5 )  = ; 1
5
9229, 18, 88, 91decsuc 11535 . . . . 5  |-  ( ( 3  x.  5 )  +  1 )  = ; 1
6
9318, 36, 40, 63, 6, 29, 92, 49decmul1c 11587 . . . 4  |-  (; 3 2  x.  5 )  = ;; 1 6 0
9441, 42, 18, 53, 6, 55, 87, 93decmul2c 11589 . . 3  |-  (; 3 2  x.  (
5 ^ 3 ) )  = ;;; 4 0 0 0
9517, 94eqtr4i 2647 . 2  |-  ( N  -  1 )  =  (; 3 2  x.  (
5 ^ 3 ) )
96 2lt10 11680 . . . 4  |-  2  < ; 1
0
97 1nn 11031 . . . . 5  |-  1  e.  NN
98 3lt10 11679 . . . . 5  |-  3  < ; 1
0
9997, 40, 36, 98declti 11546 . . . 4  |-  3  < ; 1
2
10036, 42, 40, 18, 96, 99decltc 11532 . . 3  |- ; 3 2  < ;; 1 2 5
101100, 53breqtrri 4680 . 2  |- ; 3 2  <  (
5 ^ 3 )
102124001lem3 15850 . 2  |-  ( ( 2 ^ ( N  -  1 ) )  mod  N )  =  ( 1  mod  N
)
103124001lem4 15851 . 2  |-  ( ( ( 2 ^;; 8 0 0 )  - 
1 )  gcd  N
)  =  1
1041, 4, 28, 35, 38, 39, 37, 95, 101, 102, 103pockthi 15611 1  |-  N  e. 
Prime
Colors of variables: wff setvar class
Syntax hints:    = wceq 1483    e. wcel 1990  (class class class)co 6650   CCcc 9934   0cc0 9936   1c1 9937    + caddc 9939    x. cmul 9941    < clt 10074    - cmin 10266   2c2 11070   3c3 11071   4c4 11072   5c5 11073   6c6 11074   7c7 11075   8c8 11076   NN0cn0 11292  ;cdc 11493   ^cexp 12860   Primecprime 15385
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-8 1992  ax-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602  ax-rep 4771  ax-sep 4781  ax-nul 4789  ax-pow 4843  ax-pr 4906  ax-un 6949  ax-cnex 9992  ax-resscn 9993  ax-1cn 9994  ax-icn 9995  ax-addcl 9996  ax-addrcl 9997  ax-mulcl 9998  ax-mulrcl 9999  ax-mulcom 10000  ax-addass 10001  ax-mulass 10002  ax-distr 10003  ax-i2m1 10004  ax-1ne0 10005  ax-1rid 10006  ax-rnegex 10007  ax-rrecex 10008  ax-cnre 10009  ax-pre-lttri 10010  ax-pre-lttrn 10011  ax-pre-ltadd 10012  ax-pre-mulgt0 10013  ax-pre-sup 10014
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1038  df-3an 1039  df-tru 1486  df-ex 1705  df-nf 1710  df-sb 1881  df-eu 2474  df-mo 2475  df-clab 2609  df-cleq 2615  df-clel 2618  df-nfc 2753  df-ne 2795  df-nel 2898  df-ral 2917  df-rex 2918  df-reu 2919  df-rmo 2920  df-rab 2921  df-v 3202  df-sbc 3436  df-csb 3534  df-dif 3577  df-un 3579  df-in 3581  df-ss 3588  df-pss 3590  df-nul 3916  df-if 4087  df-pw 4160  df-sn 4178  df-pr 4180  df-tp 4182  df-op 4184  df-uni 4437  df-int 4476  df-iun 4522  df-br 4654  df-opab 4713  df-mpt 4730  df-tr 4753  df-id 5024  df-eprel 5029  df-po 5035  df-so 5036  df-fr 5073  df-we 5075  df-xp 5120  df-rel 5121  df-cnv 5122  df-co 5123  df-dm 5124  df-rn 5125  df-res 5126  df-ima 5127  df-pred 5680  df-ord 5726  df-on 5727  df-lim 5728  df-suc 5729  df-iota 5851  df-fun 5890  df-fn 5891  df-f 5892  df-f1 5893  df-fo 5894  df-f1o 5895  df-fv 5896  df-riota 6611  df-ov 6653  df-oprab 6654  df-mpt2 6655  df-om 7066  df-1st 7168  df-2nd 7169  df-wrecs 7407  df-recs 7468  df-rdg 7506  df-1o 7560  df-2o 7561  df-oadd 7564  df-er 7742  df-map 7859  df-en 7956  df-dom 7957  df-sdom 7958  df-fin 7959  df-sup 8348  df-inf 8349  df-card 8765  df-cda 8990  df-pnf 10076  df-mnf 10077  df-xr 10078  df-ltxr 10079  df-le 10080  df-sub 10268  df-neg 10269  df-div 10685  df-nn 11021  df-2 11079  df-3 11080  df-4 11081  df-5 11082  df-6 11083  df-7 11084  df-8 11085  df-9 11086  df-n0 11293  df-xnn0 11364  df-z 11378  df-dec 11494  df-uz 11688  df-q 11789  df-rp 11833  df-fz 12327  df-fzo 12466  df-fl 12593  df-mod 12669  df-seq 12802  df-exp 12861  df-hash 13118  df-cj 13839  df-re 13840  df-im 13841  df-sqrt 13975  df-abs 13976  df-dvds 14984  df-gcd 15217  df-prm 15386  df-odz 15470  df-phi 15471  df-pc 15542
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator