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

Theorem 1259prm 17192
Description: 1259 is a prime number. (Contributed by Mario Carneiro, 22-Feb-2014.) (Proof shortened by Mario Carneiro, 20-Apr-2015.)
Hypothesis
Ref Expression
1259prm.1 𝑁 = 1259
Assertion
Ref Expression
1259prm 𝑁 ∈ ℙ

Proof of Theorem 1259prm
StepHypRef Expression
1 37prm 17177 . 2 37 ∈ ℙ
2 3nn0 12518 . . 3 3 ∈ ℕ0
3 4nn 12320 . . 3 4 ∈ ℕ
42, 3decnncl 12731 . 2 34 ∈ ℕ
5 1nn0 12516 . . . . . . . 8 1 ∈ ℕ0
6 2nn0 12517 . . . . . . . 8 2 ∈ ℕ0
75, 6deccl 12722 . . . . . . 7 12 ∈ ℕ0
8 5nn0 12520 . . . . . . 7 5 ∈ ℕ0
97, 8deccl 12722 . . . . . 6 125 ∈ ℕ0
10 8nn0 12523 . . . . . 6 8 ∈ ℕ0
119, 10deccl 12722 . . . . 5 1258 ∈ ℕ0
1211nn0cni 12512 . . . 4 1258 ∈ ℂ
13 ax-1cn 11154 . . . 4 1 ∈ ℂ
14 1259prm.1 . . . . 5 𝑁 = 1259
15 eqid 2769 . . . . . 6 1258 = 1258
16 8p1e9 12386 . . . . . 6 (8 + 1) = 9
179, 10, 5, 15, 16decaddi 12772 . . . . 5 (1258 + 1) = 1259
1814, 17eqtr4i 2795 . . . 4 𝑁 = (1258 + 1)
1912, 13, 18mvrraddi 11470 . . 3 (𝑁 − 1) = 1258
20 4nn0 12519 . . . . 5 4 ∈ ℕ0
212, 20deccl 12722 . . . 4 34 ∈ ℕ0
22 7nn0 12522 . . . 4 7 ∈ ℕ0
23 eqid 2769 . . . 4 37 = 37
246, 2deccl 12722 . . . 4 23 ∈ ℕ0
25 eqid 2769 . . . . 5 34 = 34
26 eqid 2769 . . . . 5 23 = 23
27 3t3e9 12404 . . . . . . 7 (3 · 3) = 9
28 2p1e3 12378 . . . . . . 7 (2 + 1) = 3
2927, 28oveq12i 7420 . . . . . 6 ((3 · 3) + (2 + 1)) = (9 + 3)
30 9p3e12 12800 . . . . . 6 (9 + 3) = 12
3129, 30eqtri 2792 . . . . 5 ((3 · 3) + (2 + 1)) = 12
32 4t3e12 12810 . . . . . 6 (4 · 3) = 12
33 3cn 12318 . . . . . . 7 3 ∈ ℂ
34 2cn 12312 . . . . . . 7 2 ∈ ℂ
35 3p2e5 12387 . . . . . . 7 (3 + 2) = 5
3633, 34, 35addcomli 11398 . . . . . 6 (2 + 3) = 5
375, 6, 2, 32, 36decaddi 12772 . . . . 5 ((4 · 3) + 3) = 15
382, 20, 6, 2, 25, 26, 2, 8, 5, 31, 37decmac 12764 . . . 4 ((34 · 3) + 23) = 125
39 7cn 12331 . . . . . . 7 7 ∈ ℂ
40 7t3e21 12822 . . . . . . 7 (7 · 3) = 21
4139, 33, 40mulcomli 11214 . . . . . 6 (3 · 7) = 21
42 1p2e3 12379 . . . . . 6 (1 + 2) = 3
436, 5, 6, 41, 42decaddi 12772 . . . . 5 ((3 · 7) + 2) = 23
44 4cn 12322 . . . . . 6 4 ∈ ℂ
45 7t4e28 12823 . . . . . 6 (7 · 4) = 28
4639, 44, 45mulcomli 11214 . . . . 5 (4 · 7) = 28
4722, 2, 20, 25, 10, 6, 43, 46decmul1c 12777 . . . 4 (34 · 7) = 238
4821, 2, 22, 23, 10, 24, 38, 47decmul2c 12778 . . 3 (34 · 37) = 1258
4919, 48eqtr4i 2795 . 2 (𝑁 − 1) = (34 · 37)
50 9nn0 12524 . . . . . . 7 9 ∈ ℕ0
519, 50deccl 12722 . . . . . 6 1259 ∈ ℕ0
5214, 51eqeltri 2865 . . . . 5 𝑁 ∈ ℕ0
5352nn0cni 12512 . . . 4 𝑁 ∈ ℂ
54 npcan 11462 . . . 4 ((𝑁 ∈ ℂ ∧ 1 ∈ ℂ) → ((𝑁 − 1) + 1) = 𝑁)
5553, 13, 54mp2an 704 . . 3 ((𝑁 − 1) + 1) = 𝑁
5655eqcomi 2778 . 2 𝑁 = ((𝑁 − 1) + 1)
57 1nn 12240 . 2 1 ∈ ℕ
58 2nn 12310 . 2 2 ∈ ℕ
592, 22deccl 12722 . . . . 5 37 ∈ ℕ0
6059numexp1 17132 . . . 4 (37↑1) = 37
6160oveq2i 7419 . . 3 (34 · (37↑1)) = (34 · 37)
6249, 61eqtr4i 2795 . 2 (𝑁 − 1) = (34 · (37↑1))
63 7nn 12329 . . . 4 7 ∈ ℕ
64 4lt7 12427 . . . 4 4 < 7
652, 20, 63, 64declt 12740 . . 3 34 < 37
6665, 60breqtrri 5139 . 2 34 < (37↑1)
67141259lem4 17190 . 2 ((2↑(𝑁 − 1)) mod 𝑁) = (1 mod 𝑁)
68141259lem5 17191 . 2 (((2↑34) − 1) gcd 𝑁) = 1
691, 4, 49, 56, 4, 57, 58, 62, 66, 67, 68pockthi 16963 1 𝑁 ∈ ℙ
Colors of variables: wff setvar class
Syntax hints:   = wceq 1567  wcel 2149  (class class class)co 7408  cc 11094  1c1 11097   + caddc 11099   · cmul 11101   < clt 11239  cmin 11437  2c2 12291  3c3 12292  4c4 12293  5c5 12294  7c7 12296  8c8 12297  9c9 12298  0cn0 12500  cdc 12707  cexp 14093  cprime 16725
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1822  ax-4 1836  ax-5 1937  ax-6 1994  ax-7 2035  ax-8 2151  ax-9 2159  ax-10 2182  ax-11 2198  ax-12 2219  ax-ext 2741  ax-rep 5239  ax-sep 5258  ax-nul 5268  ax-pow 5334  ax-pr 5402  ax-un 7730  ax-cnex 11152  ax-resscn 11153  ax-1cn 11154  ax-icn 11155  ax-addcl 11156  ax-addrcl 11157  ax-mulcl 11158  ax-mulrcl 11159  ax-mulcom 11160  ax-addass 11161  ax-mulass 11162  ax-distr 11163  ax-i2m1 11164  ax-1ne0 11165  ax-1rid 11166  ax-rnegex 11167  ax-rrecex 11168  ax-cnre 11169  ax-pre-lttri 11170  ax-pre-lttrn 11171  ax-pre-ltadd 11172  ax-pre-mulgt0 11173  ax-pre-sup 11174
This theorem depends on definitions:  df-bi 210  df-an 401  df-or 861  df-3or 1102  df-3an 1103  df-tru 1570  df-fal 1580  df-ex 1807  df-nf 1811  df-sb 2098  df-mo 2573  df-eu 2603  df-clab 2748  df-cleq 2761  df-clel 2844  df-nfc 2918  df-ne 2965  df-nel 3071  df-ral 3086  df-rex 3096  df-rmo 3376  df-reu 3377  df-rab 3424  df-v 3465  df-sbc 3754  df-csb 3862  df-dif 3916  df-un 3918  df-in 3920  df-ss 3930  df-pss 3933  df-nul 4295  df-if 4490  df-pw 4566  df-sn 4592  df-pr 4594  df-op 4598  df-uni 4874  df-int 4914  df-iun 4959  df-br 5111  df-opab 5175  df-mpt 5194  df-tr 5220  df-id 5554  df-eprel 5559  df-po 5567  df-so 5568  df-fr 5612  df-we 5614  df-xp 5665  df-rel 5666  df-cnv 5667  df-co 5668  df-dm 5669  df-rn 5670  df-res 5671  df-ima 5672  df-pred 6300  df-ord 6361  df-on 6362  df-lim 6363  df-suc 6364  df-iota 6490  df-fun 6536  df-fn 6537  df-f 6538  df-f1 6539  df-fo 6540  df-f1o 6541  df-fv 6542  df-riota 7365  df-ov 7411  df-oprab 7412  df-mpo 7413  df-om 7859  df-1st 7982  df-2nd 7983  df-frecs 8274  df-wrecs 8305  df-recs 8354  df-rdg 8393  df-1o 8449  df-2o 8450  df-oadd 8453  df-er 8690  df-en 8940  df-dom 8941  df-sdom 8942  df-fin 8943  df-sup 9398  df-inf 9399  df-dju 9883  df-card 9921  df-pnf 11241  df-mnf 11242  df-xr 11243  df-ltxr 11244  df-le 11245  df-sub 11439  df-neg 11440  df-div 11868  df-nn 12230  df-2 12299  df-3 12300  df-4 12301  df-5 12302  df-6 12303  df-7 12304  df-8 12305  df-9 12306  df-n0 12501  df-xnn0 12574  df-z 12588  df-dec 12708  df-uz 12859  df-q 12969  df-rp 13013  df-fz 13532  df-fzo 13679  df-fl 13821  df-mod 13899  df-seq 14034  df-exp 14094  df-hash 14363  df-cj 15146  df-re 15147  df-im 15148  df-sqrt 15282  df-abs 15283  df-dvds 16307  df-gcd 16549  df-prm 16726  df-odz 16820  df-phi 16821  df-pc 16893
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator