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

Theorem 1259prm 17379
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 17364 . 2 37 ∈ ℙ
2 3nn0 12680 . . 3 3 ∈ ℕ0
3 4nn 12482 . . 3 4 ∈ ℕ
42, 3decnncl 12894 . 2 34 ∈ ℕ
5 1nn0 12678 . . . . . . . 8 1 ∈ ℕ0
6 2nn0 12679 . . . . . . . 8 2 ∈ ℕ0
75, 6deccl 12885 . . . . . . 7 12 ∈ ℕ0
8 5nn0 12682 . . . . . . 7 5 ∈ ℕ0
97, 8deccl 12885 . . . . . 6 125 ∈ ℕ0
10 8nn0 12685 . . . . . 6 8 ∈ ℕ0
119, 10deccl 12885 . . . . 5 1258 ∈ ℕ0
1211nn0cni 12674 . . . 4 1258 ∈ ℂ
13 ax-1cn 11313 . . . 4 1 ∈ ℂ
14 1259prm.1 . . . . 5 𝑁 = 1259
15 eqid 2774 . . . . . 6 1258 = 1258
16 8p1e9 12548 . . . . . 6 (8 + 1) = 9
179, 10, 5, 15, 16decaddi 12935 . . . . 5 (1258 + 1) = 1259
1814, 17eqtr4i 2800 . . . 4 𝑁 = (1258 + 1)
1912, 13, 18mvrraddi 11629 . . 3 (𝑁 − 1) = 1258
20 4nn0 12681 . . . . 5 4 ∈ ℕ0
212, 20deccl 12885 . . . 4 34 ∈ ℕ0
22 7nn0 12684 . . . 4 7 ∈ ℕ0
23 eqid 2774 . . . 4 37 = 37
246, 2deccl 12885 . . . 4 23 ∈ ℕ0
25 eqid 2774 . . . . 5 34 = 34
26 eqid 2774 . . . . 5 23 = 23
27 3t3e9 12566 . . . . . . 7 (3 · 3) = 9
28 2p1e3 12540 . . . . . . 7 (2 + 1) = 3
2927, 28oveq12i 7479 . . . . . 6 ((3 · 3) + (2 + 1)) = (9 + 3)
30 9p3e12 12963 . . . . . 6 (9 + 3) = 12
3129, 30eqtri 2797 . . . . 5 ((3 · 3) + (2 + 1)) = 12
32 4t3e12 12973 . . . . . 6 (4 · 3) = 12
33 3cn 12480 . . . . . . 7 3 ∈ ℂ
34 2cn 12474 . . . . . . 7 2 ∈ ℂ
35 3p2e5 12549 . . . . . . 7 (3 + 2) = 5
3633, 34, 35addcomli 11557 . . . . . 6 (2 + 3) = 5
375, 6, 2, 32, 36decaddi 12935 . . . . 5 ((4 · 3) + 3) = 15
382, 20, 6, 2, 25, 26, 2, 8, 5, 31, 37decmac 12927 . . . 4 ((34 · 3) + 23) = 125
39 7cn 12493 . . . . . . 7 7 ∈ ℂ
40 7t3e21 12985 . . . . . . 7 (7 · 3) = 21
4139, 33, 40mulcomli 11373 . . . . . 6 (3 · 7) = 21
42 1p2e3 12541 . . . . . 6 (1 + 2) = 3
436, 5, 6, 41, 42decaddi 12935 . . . . 5 ((3 · 7) + 2) = 23
44 4cn 12484 . . . . . 6 4 ∈ ℂ
45 7t4e28 12986 . . . . . 6 (7 · 4) = 28
4639, 44, 45mulcomli 11373 . . . . 5 (4 · 7) = 28
4722, 2, 20, 25, 10, 6, 43, 46decmul1c 12940 . . . 4 (34 · 7) = 238
4821, 2, 22, 23, 10, 24, 38, 47decmul2c 12941 . . 3 (34 · 37) = 1258
4919, 48eqtr4i 2800 . 2 (𝑁 − 1) = (34 · 37)
50 9nn0 12686 . . . . . . 7 9 ∈ ℕ0
519, 50deccl 12885 . . . . . 6 1259 ∈ ℕ0
5214, 51eqeltri 2871 . . . . 5 𝑁 ∈ ℕ0
5352nn0cni 12674 . . . 4 𝑁 ∈ ℂ
54 npcan 11621 . . . 4 ((𝑁 ∈ ℂ ∧ 1 ∈ ℂ) → ((𝑁 − 1) + 1) = 𝑁)
5553, 13, 54mp2an 705 . . 3 ((𝑁 − 1) + 1) = 𝑁
5655eqcomi 2783 . 2 𝑁 = ((𝑁 − 1) + 1)
57 1nn 12402 . 2 1 ∈ ℕ
58 2nn 12472 . 2 2 ∈ ℕ
592, 22deccl 12885 . . . . 5 37 ∈ ℕ0
6059numexp1 17319 . . . 4 (37↑1) = 37
6160oveq2i 7478 . . 3 (34 · (37↑1)) = (34 · 37)
6249, 61eqtr4i 2800 . 2 (𝑁 − 1) = (34 · (37↑1))
63 7nn 12491 . . . 4 7 ∈ ℕ
64 4lt7 12589 . . . 4 4 < 7
652, 20, 63, 64declt 12903 . . 3 34 < 37
6665, 60breqtrri 5146 . 2 34 < (37↑1)
67141259lem4 17377 . 2 ((2↑(𝑁 − 1)) mod 𝑁) = (1 mod 𝑁)
68141259lem5 17378 . 2 (((2↑34) − 1) gcd 𝑁) = 1
691, 4, 49, 56, 4, 57, 58, 62, 66, 67, 68pockthi 17150 1 𝑁 ∈ ℙ
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   = wceq 1572   ∈ wcel 2156  (class class class)co 7467  ℂcc 11253  1c1 11256   + caddc 11258   · cmul 11260   < clt 11398   − cmin 11596  2c2 12453  3c3 12454  4c4 12455  5c5 12456  7c7 12458  8c8 12459  9c9 12460  ℕ0cn0 12662  cdc 12870  ↑cexp 14262  ℙcprime 16908
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-10 2189  ax-11 2206  ax-12 2225  ax-ext 2746  ax-rep 5246  ax-sep 5263  ax-nul 5274  ax-pow 5342  ax-pr 5406  ax-un 7799  ax-cnex 11311  ax-resscn 11312  ax-1cn 11313  ax-icn 11314  ax-addcl 11315  ax-addrcl 11316  ax-mulcl 11317  ax-mulrcl 11318  ax-mulcom 11319  ax-addass 11320  ax-mulass 11321  ax-distr 11322  ax-i2m1 11323  ax-1ne0 11324  ax-1rid 11325  ax-rnegex 11326  ax-rrecex 11327  ax-cnre 11328  ax-pre-lttri 11329  ax-pre-lttrn 11330  ax-pre-ltadd 11331  ax-pre-mulgt0 11332  ax-pre-sup 11333
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1105  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1819  df-nf 1823  df-sb 2110  df-mo 2576  df-eu 2606  df-clab 2753  df-cleq 2766  df-clel 2850  df-nfc 2924  df-ne 2971  df-nel 3077  df-ral 3092  df-rex 3102  df-rmo 3376  df-reu 3377  df-rab 3424  df-v 3463  df-sbc 3750  df-csb 3859  df-ss 3908  df-pss 4024  df-dif 4057  df-in 4101  df-un 4161  df-nul 4289  df-if 4493  df-pw 4569  df-sn 4596  df-pr 4598  df-op 4849  df-uni 4881  df-int 4921  df-iun 4966  df-br 5117  df-opab 5182  df-mpt 5201  df-tr 5227  df-id 5561  df-eprel 5566  df-po 5574  df-so 5575  df-fr 5619  df-we 5621  df-xp 5672  df-rel 5673  df-cnv 5674  df-co 5675  df-dm 5676  df-rn 5677  df-res 5678  df-ima 5679  df-pred 6342  df-ord 6403  df-on 6404  df-lim 6405  df-suc 6406  df-iota 6532  df-fun 6580  df-fn 6581  df-f 6582  df-f1 6583  df-fo 6584  df-f1o 6585  df-fv 6586  df-riota 7423  df-ov 7470  df-oprab 7471  df-mpo 7472  df-om 7928  df-1st 8051  df-2nd 8052  df-frecs 8353  df-wrecs 8384  df-recs 8433  df-rdg 8472  df-1o 8530  df-2o 8531  df-oadd 8534  df-er 8771  df-en 9028  df-dom 9029  df-sdom 9030  df-fin 9031  df-sup 9487  df-inf 9488  df-dju 10035  df-card 10073  df-pnf 11400  df-mnf 11401  df-xr 11402  df-ltxr 11403  df-le 11404  df-sub 11598  df-neg 11599  df-div 12030  df-nn 12392  df-2 12461  df-3 12462  df-4 12463  df-5 12464  df-6 12465  df-7 12466  df-8 12467  df-9 12468  df-n0 12663  df-xnn0 12736  df-z 12750  df-dec 12871  df-uz 13022  df-q 13132  df-rp 13177  df-fz 13696  df-fzo 13845  df-fl 13990  df-mod 14068  df-seq 14203  df-exp 14263  df-hash 14534  df-cj 15327  df-re 15328  df-im 15329  df-sqrt 15463  df-abs 15464  df-dvds 16484  df-gcd 16726  df-prm 16909  df-odz 17007  df-phi 17008  df-pc 17080
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator