ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  exprmfct GIF version

Theorem exprmfct 12626
Description: Every integer greater than or equal to 2 has a prime factor. (Contributed by Paul Chapman, 26-Oct-2012.) (Proof shortened by Mario Carneiro, 20-Jun-2015.)
Assertion
Ref Expression
exprmfct (𝑁 ∈ (ℤ‘2) → ∃𝑝 ∈ ℙ 𝑝𝑁)
Distinct variable group:   𝑁,𝑝

Proof of Theorem exprmfct
Dummy variables 𝑥 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 eluz2nn 9729 . 2 (𝑁 ∈ (ℤ‘2) → 𝑁 ∈ ℕ)
2 eleq1 2272 . . . 4 (𝑥 = 1 → (𝑥 ∈ (ℤ‘2) ↔ 1 ∈ (ℤ‘2)))
32imbi1d 231 . . 3 (𝑥 = 1 → ((𝑥 ∈ (ℤ‘2) → ∃𝑝 ∈ ℙ 𝑝𝑥) ↔ (1 ∈ (ℤ‘2) → ∃𝑝 ∈ ℙ 𝑝𝑥)))
4 eleq1 2272 . . . 4 (𝑥 = 𝑦 → (𝑥 ∈ (ℤ‘2) ↔ 𝑦 ∈ (ℤ‘2)))
5 breq2 4066 . . . . 5 (𝑥 = 𝑦 → (𝑝𝑥𝑝𝑦))
65rexbidv 2511 . . . 4 (𝑥 = 𝑦 → (∃𝑝 ∈ ℙ 𝑝𝑥 ↔ ∃𝑝 ∈ ℙ 𝑝𝑦))
74, 6imbi12d 234 . . 3 (𝑥 = 𝑦 → ((𝑥 ∈ (ℤ‘2) → ∃𝑝 ∈ ℙ 𝑝𝑥) ↔ (𝑦 ∈ (ℤ‘2) → ∃𝑝 ∈ ℙ 𝑝𝑦)))
8 eleq1 2272 . . . 4 (𝑥 = 𝑧 → (𝑥 ∈ (ℤ‘2) ↔ 𝑧 ∈ (ℤ‘2)))
9 breq2 4066 . . . . 5 (𝑥 = 𝑧 → (𝑝𝑥𝑝𝑧))
109rexbidv 2511 . . . 4 (𝑥 = 𝑧 → (∃𝑝 ∈ ℙ 𝑝𝑥 ↔ ∃𝑝 ∈ ℙ 𝑝𝑧))
118, 10imbi12d 234 . . 3 (𝑥 = 𝑧 → ((𝑥 ∈ (ℤ‘2) → ∃𝑝 ∈ ℙ 𝑝𝑥) ↔ (𝑧 ∈ (ℤ‘2) → ∃𝑝 ∈ ℙ 𝑝𝑧)))
12 eleq1 2272 . . . 4 (𝑥 = (𝑦 · 𝑧) → (𝑥 ∈ (ℤ‘2) ↔ (𝑦 · 𝑧) ∈ (ℤ‘2)))
13 breq2 4066 . . . . 5 (𝑥 = (𝑦 · 𝑧) → (𝑝𝑥𝑝 ∥ (𝑦 · 𝑧)))
1413rexbidv 2511 . . . 4 (𝑥 = (𝑦 · 𝑧) → (∃𝑝 ∈ ℙ 𝑝𝑥 ↔ ∃𝑝 ∈ ℙ 𝑝 ∥ (𝑦 · 𝑧)))
1512, 14imbi12d 234 . . 3 (𝑥 = (𝑦 · 𝑧) → ((𝑥 ∈ (ℤ‘2) → ∃𝑝 ∈ ℙ 𝑝𝑥) ↔ ((𝑦 · 𝑧) ∈ (ℤ‘2) → ∃𝑝 ∈ ℙ 𝑝 ∥ (𝑦 · 𝑧))))
16 eleq1 2272 . . . 4 (𝑥 = 𝑁 → (𝑥 ∈ (ℤ‘2) ↔ 𝑁 ∈ (ℤ‘2)))
17 breq2 4066 . . . . 5 (𝑥 = 𝑁 → (𝑝𝑥𝑝𝑁))
1817rexbidv 2511 . . . 4 (𝑥 = 𝑁 → (∃𝑝 ∈ ℙ 𝑝𝑥 ↔ ∃𝑝 ∈ ℙ 𝑝𝑁))
1916, 18imbi12d 234 . . 3 (𝑥 = 𝑁 → ((𝑥 ∈ (ℤ‘2) → ∃𝑝 ∈ ℙ 𝑝𝑥) ↔ (𝑁 ∈ (ℤ‘2) → ∃𝑝 ∈ ℙ 𝑝𝑁)))
20 1m1e0 9147 . . . . 5 (1 − 1) = 0
21 uz2m1nn 9768 . . . . 5 (1 ∈ (ℤ‘2) → (1 − 1) ∈ ℕ)
2220, 21eqeltrrid 2297 . . . 4 (1 ∈ (ℤ‘2) → 0 ∈ ℕ)
23 0nnn 9105 . . . . 5 ¬ 0 ∈ ℕ
2423pm2.21i 649 . . . 4 (0 ∈ ℕ → ∃𝑝 ∈ ℙ 𝑝𝑥)
2522, 24syl 14 . . 3 (1 ∈ (ℤ‘2) → ∃𝑝 ∈ ℙ 𝑝𝑥)
26 prmz 12599 . . . . . 6 (𝑥 ∈ ℙ → 𝑥 ∈ ℤ)
27 iddvds 12281 . . . . . 6 (𝑥 ∈ ℤ → 𝑥𝑥)
2826, 27syl 14 . . . . 5 (𝑥 ∈ ℙ → 𝑥𝑥)
29 breq1 4065 . . . . . 6 (𝑝 = 𝑥 → (𝑝𝑥𝑥𝑥))
3029rspcev 2887 . . . . 5 ((𝑥 ∈ ℙ ∧ 𝑥𝑥) → ∃𝑝 ∈ ℙ 𝑝𝑥)
3128, 30mpdan 421 . . . 4 (𝑥 ∈ ℙ → ∃𝑝 ∈ ℙ 𝑝𝑥)
3231a1d 22 . . 3 (𝑥 ∈ ℙ → (𝑥 ∈ (ℤ‘2) → ∃𝑝 ∈ ℙ 𝑝𝑥))
33 simpl 109 . . . . . 6 ((𝑦 ∈ (ℤ‘2) ∧ 𝑧 ∈ (ℤ‘2)) → 𝑦 ∈ (ℤ‘2))
34 eluzelz 9699 . . . . . . . . . 10 (𝑦 ∈ (ℤ‘2) → 𝑦 ∈ ℤ)
3534ad2antrr 488 . . . . . . . . 9 (((𝑦 ∈ (ℤ‘2) ∧ 𝑧 ∈ (ℤ‘2)) ∧ 𝑝 ∈ ℙ) → 𝑦 ∈ ℤ)
36 eluzelz 9699 . . . . . . . . . 10 (𝑧 ∈ (ℤ‘2) → 𝑧 ∈ ℤ)
3736ad2antlr 489 . . . . . . . . 9 (((𝑦 ∈ (ℤ‘2) ∧ 𝑧 ∈ (ℤ‘2)) ∧ 𝑝 ∈ ℙ) → 𝑧 ∈ ℤ)
38 dvdsmul1 12290 . . . . . . . . 9 ((𝑦 ∈ ℤ ∧ 𝑧 ∈ ℤ) → 𝑦 ∥ (𝑦 · 𝑧))
3935, 37, 38syl2anc 411 . . . . . . . 8 (((𝑦 ∈ (ℤ‘2) ∧ 𝑧 ∈ (ℤ‘2)) ∧ 𝑝 ∈ ℙ) → 𝑦 ∥ (𝑦 · 𝑧))
40 prmz 12599 . . . . . . . . . 10 (𝑝 ∈ ℙ → 𝑝 ∈ ℤ)
4140adantl 277 . . . . . . . . 9 (((𝑦 ∈ (ℤ‘2) ∧ 𝑧 ∈ (ℤ‘2)) ∧ 𝑝 ∈ ℙ) → 𝑝 ∈ ℤ)
4235, 37zmulcld 9543 . . . . . . . . 9 (((𝑦 ∈ (ℤ‘2) ∧ 𝑧 ∈ (ℤ‘2)) ∧ 𝑝 ∈ ℙ) → (𝑦 · 𝑧) ∈ ℤ)
43 dvdstr 12305 . . . . . . . . 9 ((𝑝 ∈ ℤ ∧ 𝑦 ∈ ℤ ∧ (𝑦 · 𝑧) ∈ ℤ) → ((𝑝𝑦𝑦 ∥ (𝑦 · 𝑧)) → 𝑝 ∥ (𝑦 · 𝑧)))
4441, 35, 42, 43syl3anc 1252 . . . . . . . 8 (((𝑦 ∈ (ℤ‘2) ∧ 𝑧 ∈ (ℤ‘2)) ∧ 𝑝 ∈ ℙ) → ((𝑝𝑦𝑦 ∥ (𝑦 · 𝑧)) → 𝑝 ∥ (𝑦 · 𝑧)))
4539, 44mpan2d 428 . . . . . . 7 (((𝑦 ∈ (ℤ‘2) ∧ 𝑧 ∈ (ℤ‘2)) ∧ 𝑝 ∈ ℙ) → (𝑝𝑦𝑝 ∥ (𝑦 · 𝑧)))
4645reximdva 2612 . . . . . 6 ((𝑦 ∈ (ℤ‘2) ∧ 𝑧 ∈ (ℤ‘2)) → (∃𝑝 ∈ ℙ 𝑝𝑦 → ∃𝑝 ∈ ℙ 𝑝 ∥ (𝑦 · 𝑧)))
4733, 46embantd 56 . . . . 5 ((𝑦 ∈ (ℤ‘2) ∧ 𝑧 ∈ (ℤ‘2)) → ((𝑦 ∈ (ℤ‘2) → ∃𝑝 ∈ ℙ 𝑝𝑦) → ∃𝑝 ∈ ℙ 𝑝 ∥ (𝑦 · 𝑧)))
4847a1dd 48 . . . 4 ((𝑦 ∈ (ℤ‘2) ∧ 𝑧 ∈ (ℤ‘2)) → ((𝑦 ∈ (ℤ‘2) → ∃𝑝 ∈ ℙ 𝑝𝑦) → ((𝑦 · 𝑧) ∈ (ℤ‘2) → ∃𝑝 ∈ ℙ 𝑝 ∥ (𝑦 · 𝑧))))
4948adantrd 279 . . 3 ((𝑦 ∈ (ℤ‘2) ∧ 𝑧 ∈ (ℤ‘2)) → (((𝑦 ∈ (ℤ‘2) → ∃𝑝 ∈ ℙ 𝑝𝑦) ∧ (𝑧 ∈ (ℤ‘2) → ∃𝑝 ∈ ℙ 𝑝𝑧)) → ((𝑦 · 𝑧) ∈ (ℤ‘2) → ∃𝑝 ∈ ℙ 𝑝 ∥ (𝑦 · 𝑧))))
503, 7, 11, 15, 19, 25, 32, 49prmind 12609 . 2 (𝑁 ∈ ℕ → (𝑁 ∈ (ℤ‘2) → ∃𝑝 ∈ ℙ 𝑝𝑁))
511, 50mpcom 36 1 (𝑁 ∈ (ℤ‘2) → ∃𝑝 ∈ ℙ 𝑝𝑁)
Colors of variables: wff set class
Syntax hints:  wi 4  wa 104   = wceq 1375  wcel 2180  wrex 2489   class class class wbr 4062  cfv 5294  (class class class)co 5974  0cc0 7967  1c1 7968   · cmul 7972  cmin 8285  cn 9078  2c2 9129  cz 9414  cuz 9690  cdvds 12264  cprime 12595
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 617  ax-in2 618  ax-io 713  ax-5 1473  ax-7 1474  ax-gen 1475  ax-ie1 1519  ax-ie2 1520  ax-8 1530  ax-10 1531  ax-11 1532  ax-i12 1533  ax-bndl 1535  ax-4 1536  ax-17 1552  ax-i9 1556  ax-ial 1560  ax-i5r 1561  ax-13 2182  ax-14 2183  ax-ext 2191  ax-coll 4178  ax-sep 4181  ax-nul 4189  ax-pow 4237  ax-pr 4272  ax-un 4501  ax-setind 4606  ax-iinf 4657  ax-cnex 8058  ax-resscn 8059  ax-1cn 8060  ax-1re 8061  ax-icn 8062  ax-addcl 8063  ax-addrcl 8064  ax-mulcl 8065  ax-mulrcl 8066  ax-addcom 8067  ax-mulcom 8068  ax-addass 8069  ax-mulass 8070  ax-distr 8071  ax-i2m1 8072  ax-0lt1 8073  ax-1rid 8074  ax-0id 8075  ax-rnegex 8076  ax-precex 8077  ax-cnre 8078  ax-pre-ltirr 8079  ax-pre-ltwlin 8080  ax-pre-lttrn 8081  ax-pre-apti 8082  ax-pre-ltadd 8083  ax-pre-mulgt0 8084  ax-pre-mulext 8085  ax-arch 8086  ax-caucvg 8087
This theorem depends on definitions:  df-bi 117  df-stab 835  df-dc 839  df-3or 984  df-3an 985  df-tru 1378  df-fal 1381  df-nf 1487  df-sb 1789  df-eu 2060  df-mo 2061  df-clab 2196  df-cleq 2202  df-clel 2205  df-nfc 2341  df-ne 2381  df-nel 2476  df-ral 2493  df-rex 2494  df-reu 2495  df-rmo 2496  df-rab 2497  df-v 2781  df-sbc 3009  df-csb 3105  df-dif 3179  df-un 3181  df-in 3183  df-ss 3190  df-nul 3472  df-if 3583  df-pw 3631  df-sn 3652  df-pr 3653  df-op 3655  df-uni 3868  df-int 3903  df-iun 3946  df-br 4063  df-opab 4125  df-mpt 4126  df-tr 4162  df-id 4361  df-po 4364  df-iso 4365  df-iord 4434  df-on 4436  df-ilim 4437  df-suc 4439  df-iom 4660  df-xp 4702  df-rel 4703  df-cnv 4704  df-co 4705  df-dm 4706  df-rn 4707  df-res 4708  df-ima 4709  df-iota 5254  df-fun 5296  df-fn 5297  df-f 5298  df-f1 5299  df-fo 5300  df-f1o 5301  df-fv 5302  df-riota 5927  df-ov 5977  df-oprab 5978  df-mpo 5979  df-1st 6256  df-2nd 6257  df-recs 6421  df-frec 6507  df-1o 6532  df-2o 6533  df-er 6650  df-en 6858  df-pnf 8151  df-mnf 8152  df-xr 8153  df-ltxr 8154  df-le 8155  df-sub 8287  df-neg 8288  df-reap 8690  df-ap 8697  df-div 8788  df-inn 9079  df-2 9137  df-3 9138  df-4 9139  df-n0 9338  df-z 9415  df-uz 9691  df-q 9783  df-rp 9818  df-fz 10173  df-fzo 10307  df-fl 10457  df-mod 10512  df-seqfrec 10637  df-exp 10728  df-cj 11319  df-re 11320  df-im 11321  df-rsqrt 11475  df-abs 11476  df-dvds 12265  df-prm 12596
This theorem is referenced by:  prmdvdsfz  12627  isprm5lem  12629  rpexp  12641  pc2dvds  12819  oddprmdvds  12843  prmunb  12851  lgsne0  15682
  Copyright terms: Public domain W3C validator