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

Theorem infpn2 16846
Description: There exist infinitely many prime numbers: the set of all primes 𝑆 is unbounded by infpn 16845, so by unben 16842 it is infinite. This is Metamath 100 proof #11. (Contributed by NM, 5-May-2005.)
Hypothesis
Ref Expression
infpn2.1 𝑆 = {𝑛 ∈ ℕ ∣ (1 < 𝑛 ∧ ∀𝑚 ∈ ℕ ((𝑛 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑛)))}
Assertion
Ref Expression
infpn2 𝑆 ≈ ℕ
Distinct variable group:   𝑚,𝑛
Allowed substitution hints:   𝑆(𝑚,𝑛)

Proof of Theorem infpn2
Dummy variables 𝑗 𝑘 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 infpn2.1 . . 3 𝑆 = {𝑛 ∈ ℕ ∣ (1 < 𝑛 ∧ ∀𝑚 ∈ ℕ ((𝑛 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑛)))}
21ssrab3 4081 . 2 𝑆 ⊆ ℕ
3 infpn 16845 . . . . 5 (𝑗 ∈ ℕ → ∃𝑘 ∈ ℕ (𝑗 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘))))
4 nnge1 12240 . . . . . . . . . . 11 (𝑗 ∈ ℕ → 1 ≤ 𝑗)
54adantr 482 . . . . . . . . . 10 ((𝑗 ∈ ℕ ∧ 𝑘 ∈ ℕ) → 1 ≤ 𝑗)
6 1re 11214 . . . . . . . . . . 11 1 ∈ ℝ
7 nnre 12219 . . . . . . . . . . 11 (𝑗 ∈ ℕ → 𝑗 ∈ ℝ)
8 nnre 12219 . . . . . . . . . . 11 (𝑘 ∈ ℕ → 𝑘 ∈ ℝ)
9 lelttr 11304 . . . . . . . . . . 11 ((1 ∈ ℝ ∧ 𝑗 ∈ ℝ ∧ 𝑘 ∈ ℝ) → ((1 ≤ 𝑗𝑗 < 𝑘) → 1 < 𝑘))
106, 7, 8, 9mp3an3an 1468 . . . . . . . . . 10 ((𝑗 ∈ ℕ ∧ 𝑘 ∈ ℕ) → ((1 ≤ 𝑗𝑗 < 𝑘) → 1 < 𝑘))
115, 10mpand 694 . . . . . . . . 9 ((𝑗 ∈ ℕ ∧ 𝑘 ∈ ℕ) → (𝑗 < 𝑘 → 1 < 𝑘))
1211ancld 552 . . . . . . . 8 ((𝑗 ∈ ℕ ∧ 𝑘 ∈ ℕ) → (𝑗 < 𝑘 → (𝑗 < 𝑘 ∧ 1 < 𝑘)))
1312anim1d 612 . . . . . . 7 ((𝑗 ∈ ℕ ∧ 𝑘 ∈ ℕ) → ((𝑗 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘))) → ((𝑗 < 𝑘 ∧ 1 < 𝑘) ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘)))))
14 anass 470 . . . . . . 7 (((𝑗 < 𝑘 ∧ 1 < 𝑘) ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘))) ↔ (𝑗 < 𝑘 ∧ (1 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘)))))
1513, 14imbitrdi 250 . . . . . 6 ((𝑗 ∈ ℕ ∧ 𝑘 ∈ ℕ) → ((𝑗 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘))) → (𝑗 < 𝑘 ∧ (1 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘))))))
1615reximdva 3169 . . . . 5 (𝑗 ∈ ℕ → (∃𝑘 ∈ ℕ (𝑗 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘))) → ∃𝑘 ∈ ℕ (𝑗 < 𝑘 ∧ (1 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘))))))
173, 16mpd 15 . . . 4 (𝑗 ∈ ℕ → ∃𝑘 ∈ ℕ (𝑗 < 𝑘 ∧ (1 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘)))))
18 breq2 5153 . . . . . . . . 9 (𝑛 = 𝑘 → (1 < 𝑛 ↔ 1 < 𝑘))
19 oveq1 7416 . . . . . . . . . . . 12 (𝑛 = 𝑘 → (𝑛 / 𝑚) = (𝑘 / 𝑚))
2019eleq1d 2819 . . . . . . . . . . 11 (𝑛 = 𝑘 → ((𝑛 / 𝑚) ∈ ℕ ↔ (𝑘 / 𝑚) ∈ ℕ))
21 equequ2 2030 . . . . . . . . . . . 12 (𝑛 = 𝑘 → (𝑚 = 𝑛𝑚 = 𝑘))
2221orbi2d 915 . . . . . . . . . . 11 (𝑛 = 𝑘 → ((𝑚 = 1 ∨ 𝑚 = 𝑛) ↔ (𝑚 = 1 ∨ 𝑚 = 𝑘)))
2320, 22imbi12d 345 . . . . . . . . . 10 (𝑛 = 𝑘 → (((𝑛 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑛)) ↔ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘))))
2423ralbidv 3178 . . . . . . . . 9 (𝑛 = 𝑘 → (∀𝑚 ∈ ℕ ((𝑛 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑛)) ↔ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘))))
2518, 24anbi12d 632 . . . . . . . 8 (𝑛 = 𝑘 → ((1 < 𝑛 ∧ ∀𝑚 ∈ ℕ ((𝑛 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑛))) ↔ (1 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘)))))
2625, 1elrab2 3687 . . . . . . 7 (𝑘𝑆 ↔ (𝑘 ∈ ℕ ∧ (1 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘)))))
2726anbi1i 625 . . . . . 6 ((𝑘𝑆𝑗 < 𝑘) ↔ ((𝑘 ∈ ℕ ∧ (1 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘)))) ∧ 𝑗 < 𝑘))
28 anass 470 . . . . . 6 (((𝑘 ∈ ℕ ∧ (1 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘)))) ∧ 𝑗 < 𝑘) ↔ (𝑘 ∈ ℕ ∧ ((1 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘))) ∧ 𝑗 < 𝑘)))
29 ancom 462 . . . . . . 7 (((1 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘))) ∧ 𝑗 < 𝑘) ↔ (𝑗 < 𝑘 ∧ (1 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘)))))
3029anbi2i 624 . . . . . 6 ((𝑘 ∈ ℕ ∧ ((1 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘))) ∧ 𝑗 < 𝑘)) ↔ (𝑘 ∈ ℕ ∧ (𝑗 < 𝑘 ∧ (1 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘))))))
3127, 28, 303bitri 297 . . . . 5 ((𝑘𝑆𝑗 < 𝑘) ↔ (𝑘 ∈ ℕ ∧ (𝑗 < 𝑘 ∧ (1 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘))))))
3231rexbii2 3091 . . . 4 (∃𝑘𝑆 𝑗 < 𝑘 ↔ ∃𝑘 ∈ ℕ (𝑗 < 𝑘 ∧ (1 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘)))))
3317, 32sylibr 233 . . 3 (𝑗 ∈ ℕ → ∃𝑘𝑆 𝑗 < 𝑘)
3433rgen 3064 . 2 𝑗 ∈ ℕ ∃𝑘𝑆 𝑗 < 𝑘
35 unben 16842 . 2 ((𝑆 ⊆ ℕ ∧ ∀𝑗 ∈ ℕ ∃𝑘𝑆 𝑗 < 𝑘) → 𝑆 ≈ ℕ)
362, 34, 35mp2an 691 1 𝑆 ≈ ℕ
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 397  wo 846   = wceq 1542  wcel 2107  wral 3062  wrex 3071  {crab 3433  wss 3949   class class class wbr 5149  (class class class)co 7409  cen 8936  cr 11109  1c1 11111   < clt 11248  cle 11249   / cdiv 11871  cn 12212
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2109  ax-9 2117  ax-10 2138  ax-11 2155  ax-12 2172  ax-ext 2704  ax-rep 5286  ax-sep 5300  ax-nul 5307  ax-pow 5364  ax-pr 5428  ax-un 7725  ax-inf2 9636  ax-cnex 11166  ax-resscn 11167  ax-1cn 11168  ax-icn 11169  ax-addcl 11170  ax-addrcl 11171  ax-mulcl 11172  ax-mulrcl 11173  ax-mulcom 11174  ax-addass 11175  ax-mulass 11176  ax-distr 11177  ax-i2m1 11178  ax-1ne0 11179  ax-1rid 11180  ax-rnegex 11181  ax-rrecex 11182  ax-cnre 11183  ax-pre-lttri 11184  ax-pre-lttrn 11185  ax-pre-ltadd 11186  ax-pre-mulgt0 11187
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 847  df-3or 1089  df-3an 1090  df-tru 1545  df-fal 1555  df-ex 1783  df-nf 1787  df-sb 2069  df-mo 2535  df-eu 2564  df-clab 2711  df-cleq 2725  df-clel 2811  df-nfc 2886  df-ne 2942  df-nel 3048  df-ral 3063  df-rex 3072  df-rmo 3377  df-reu 3378  df-rab 3434  df-v 3477  df-sbc 3779  df-csb 3895  df-dif 3952  df-un 3954  df-in 3956  df-ss 3966  df-pss 3968  df-nul 4324  df-if 4530  df-pw 4605  df-sn 4630  df-pr 4632  df-op 4636  df-uni 4910  df-int 4952  df-iun 5000  df-br 5150  df-opab 5212  df-mpt 5233  df-tr 5267  df-id 5575  df-eprel 5581  df-po 5589  df-so 5590  df-fr 5632  df-we 5634  df-xp 5683  df-rel 5684  df-cnv 5685  df-co 5686  df-dm 5687  df-rn 5688  df-res 5689  df-ima 5690  df-pred 6301  df-ord 6368  df-on 6369  df-lim 6370  df-suc 6371  df-iota 6496  df-fun 6546  df-fn 6547  df-f 6548  df-f1 6549  df-fo 6550  df-f1o 6551  df-fv 6552  df-riota 7365  df-ov 7412  df-oprab 7413  df-mpo 7414  df-om 7856  df-2nd 7976  df-frecs 8266  df-wrecs 8297  df-recs 8371  df-rdg 8410  df-er 8703  df-en 8940  df-dom 8941  df-sdom 8942  df-pnf 11250  df-mnf 11251  df-xr 11252  df-ltxr 11253  df-le 11254  df-sub 11446  df-neg 11447  df-div 11872  df-nn 12213  df-n0 12473  df-z 12559  df-uz 12823  df-seq 13967  df-fac 14234
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator