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

Theorem isprm2lem 16219
Description: Lemma for isprm2 16220. (Contributed by Paul Chapman, 22-Jun-2011.)
Assertion
Ref Expression
isprm2lem ((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) → ({𝑛 ∈ ℕ ∣ 𝑛𝑃} ≈ 2o ↔ {𝑛 ∈ ℕ ∣ 𝑛𝑃} = {1, 𝑃}))
Distinct variable group:   𝑃,𝑛

Proof of Theorem isprm2lem
StepHypRef Expression
1 simplr 769 . . . . 5 (((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) ∧ {𝑛 ∈ ℕ ∣ 𝑛𝑃} ≈ 2o) → 𝑃 ≠ 1)
21necomd 2990 . . . 4 (((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) ∧ {𝑛 ∈ ℕ ∣ 𝑛𝑃} ≈ 2o) → 1 ≠ 𝑃)
3 simpr 488 . . . . 5 (((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) ∧ {𝑛 ∈ ℕ ∣ 𝑛𝑃} ≈ 2o) → {𝑛 ∈ ℕ ∣ 𝑛𝑃} ≈ 2o)
4 nnz 12182 . . . . . . . 8 (𝑃 ∈ ℕ → 𝑃 ∈ ℤ)
5 1dvds 15813 . . . . . . . 8 (𝑃 ∈ ℤ → 1 ∥ 𝑃)
64, 5syl 17 . . . . . . 7 (𝑃 ∈ ℕ → 1 ∥ 𝑃)
76ad2antrr 726 . . . . . 6 (((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) ∧ {𝑛 ∈ ℕ ∣ 𝑛𝑃} ≈ 2o) → 1 ∥ 𝑃)
8 1nn 11824 . . . . . . 7 1 ∈ ℕ
9 breq1 5046 . . . . . . . 8 (𝑛 = 1 → (𝑛𝑃 ↔ 1 ∥ 𝑃))
109elrab3 3596 . . . . . . 7 (1 ∈ ℕ → (1 ∈ {𝑛 ∈ ℕ ∣ 𝑛𝑃} ↔ 1 ∥ 𝑃))
118, 10ax-mp 5 . . . . . 6 (1 ∈ {𝑛 ∈ ℕ ∣ 𝑛𝑃} ↔ 1 ∥ 𝑃)
127, 11sylibr 237 . . . . 5 (((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) ∧ {𝑛 ∈ ℕ ∣ 𝑛𝑃} ≈ 2o) → 1 ∈ {𝑛 ∈ ℕ ∣ 𝑛𝑃})
13 iddvds 15812 . . . . . . . 8 (𝑃 ∈ ℤ → 𝑃𝑃)
144, 13syl 17 . . . . . . 7 (𝑃 ∈ ℕ → 𝑃𝑃)
1514ad2antrr 726 . . . . . 6 (((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) ∧ {𝑛 ∈ ℕ ∣ 𝑛𝑃} ≈ 2o) → 𝑃𝑃)
16 breq1 5046 . . . . . . . 8 (𝑛 = 𝑃 → (𝑛𝑃𝑃𝑃))
1716elrab3 3596 . . . . . . 7 (𝑃 ∈ ℕ → (𝑃 ∈ {𝑛 ∈ ℕ ∣ 𝑛𝑃} ↔ 𝑃𝑃))
1817ad2antrr 726 . . . . . 6 (((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) ∧ {𝑛 ∈ ℕ ∣ 𝑛𝑃} ≈ 2o) → (𝑃 ∈ {𝑛 ∈ ℕ ∣ 𝑛𝑃} ↔ 𝑃𝑃))
1915, 18mpbird 260 . . . . 5 (((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) ∧ {𝑛 ∈ ℕ ∣ 𝑛𝑃} ≈ 2o) → 𝑃 ∈ {𝑛 ∈ ℕ ∣ 𝑛𝑃})
20 en2eqpr 9604 . . . . 5 (({𝑛 ∈ ℕ ∣ 𝑛𝑃} ≈ 2o ∧ 1 ∈ {𝑛 ∈ ℕ ∣ 𝑛𝑃} ∧ 𝑃 ∈ {𝑛 ∈ ℕ ∣ 𝑛𝑃}) → (1 ≠ 𝑃 → {𝑛 ∈ ℕ ∣ 𝑛𝑃} = {1, 𝑃}))
213, 12, 19, 20syl3anc 1373 . . . 4 (((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) ∧ {𝑛 ∈ ℕ ∣ 𝑛𝑃} ≈ 2o) → (1 ≠ 𝑃 → {𝑛 ∈ ℕ ∣ 𝑛𝑃} = {1, 𝑃}))
222, 21mpd 15 . . 3 (((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) ∧ {𝑛 ∈ ℕ ∣ 𝑛𝑃} ≈ 2o) → {𝑛 ∈ ℕ ∣ 𝑛𝑃} = {1, 𝑃})
2322ex 416 . 2 ((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) → ({𝑛 ∈ ℕ ∣ 𝑛𝑃} ≈ 2o → {𝑛 ∈ ℕ ∣ 𝑛𝑃} = {1, 𝑃}))
24 necom 2988 . . . 4 (1 ≠ 𝑃𝑃 ≠ 1)
25 pr2ne 9602 . . . . . 6 ((1 ∈ ℕ ∧ 𝑃 ∈ ℕ) → ({1, 𝑃} ≈ 2o ↔ 1 ≠ 𝑃))
268, 25mpan 690 . . . . 5 (𝑃 ∈ ℕ → ({1, 𝑃} ≈ 2o ↔ 1 ≠ 𝑃))
2726biimpar 481 . . . 4 ((𝑃 ∈ ℕ ∧ 1 ≠ 𝑃) → {1, 𝑃} ≈ 2o)
2824, 27sylan2br 598 . . 3 ((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) → {1, 𝑃} ≈ 2o)
29 breq1 5046 . . 3 ({𝑛 ∈ ℕ ∣ 𝑛𝑃} = {1, 𝑃} → ({𝑛 ∈ ℕ ∣ 𝑛𝑃} ≈ 2o ↔ {1, 𝑃} ≈ 2o))
3028, 29syl5ibrcom 250 . 2 ((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) → ({𝑛 ∈ ℕ ∣ 𝑛𝑃} = {1, 𝑃} → {𝑛 ∈ ℕ ∣ 𝑛𝑃} ≈ 2o))
3123, 30impbid 215 1 ((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) → ({𝑛 ∈ ℕ ∣ 𝑛𝑃} ≈ 2o ↔ {𝑛 ∈ ℕ ∣ 𝑛𝑃} = {1, 𝑃}))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399   = wceq 1543  wcel 2110  wne 2935  {crab 3058  {cpr 4533   class class class wbr 5043  2oc2o 8185  cen 8612  1c1 10713  cn 11813  cz 12159  cdvds 15796
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2016  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2158  ax-12 2175  ax-ext 2706  ax-sep 5181  ax-nul 5188  ax-pow 5247  ax-pr 5311  ax-un 7512  ax-resscn 10769  ax-1cn 10770  ax-icn 10771  ax-addcl 10772  ax-addrcl 10773  ax-mulcl 10774  ax-mulrcl 10775  ax-mulcom 10776  ax-mulass 10778  ax-distr 10779  ax-i2m1 10780  ax-1ne0 10781  ax-1rid 10782  ax-rrecex 10784  ax-cnre 10785
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3or 1090  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-nf 1792  df-sb 2071  df-mo 2537  df-eu 2566  df-clab 2713  df-cleq 2726  df-clel 2812  df-nfc 2882  df-ne 2936  df-ral 3059  df-rex 3060  df-reu 3061  df-rab 3063  df-v 3403  df-sbc 3688  df-csb 3803  df-dif 3860  df-un 3862  df-in 3864  df-ss 3874  df-pss 3876  df-nul 4228  df-if 4430  df-pw 4505  df-sn 4532  df-pr 4534  df-tp 4536  df-op 4538  df-uni 4810  df-iun 4896  df-br 5044  df-opab 5106  df-mpt 5125  df-tr 5151  df-id 5444  df-eprel 5449  df-po 5457  df-so 5458  df-fr 5498  df-we 5500  df-xp 5546  df-rel 5547  df-cnv 5548  df-co 5549  df-dm 5550  df-rn 5551  df-res 5552  df-ima 5553  df-pred 6149  df-ord 6205  df-on 6206  df-lim 6207  df-suc 6208  df-iota 6327  df-fun 6371  df-fn 6372  df-f 6373  df-f1 6374  df-fo 6375  df-f1o 6376  df-fv 6377  df-ov 7205  df-om 7634  df-wrecs 8036  df-recs 8097  df-rdg 8135  df-1o 8191  df-2o 8192  df-er 8380  df-en 8616  df-dom 8617  df-sdom 8618  df-fin 8619  df-neg 11048  df-nn 11814  df-z 12160  df-dvds 15797
This theorem is referenced by:  isprm2  16220
  Copyright terms: Public domain W3C validator