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

Theorem infpn2 15664
 Description: There exist infinitely many prime numbers: the set of all primes 𝑆 is unbounded by infpn 15663, so by unben 15660 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 ∨ 𝑚 = 𝑛)))}
2 ssrab2 3720 . . 3 {𝑛 ∈ ℕ ∣ (1 < 𝑛 ∧ ∀𝑚 ∈ ℕ ((𝑛 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑛)))} ⊆ ℕ
31, 2eqsstri 3668 . 2 𝑆 ⊆ ℕ
4 infpn 15663 . . . . 5 (𝑗 ∈ ℕ → ∃𝑘 ∈ ℕ (𝑗 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘))))
5 nnge1 11084 . . . . . . . . . . 11 (𝑗 ∈ ℕ → 1 ≤ 𝑗)
65adantr 480 . . . . . . . . . 10 ((𝑗 ∈ ℕ ∧ 𝑘 ∈ ℕ) → 1 ≤ 𝑗)
7 nnre 11065 . . . . . . . . . . 11 (𝑗 ∈ ℕ → 𝑗 ∈ ℝ)
8 nnre 11065 . . . . . . . . . . 11 (𝑘 ∈ ℕ → 𝑘 ∈ ℝ)
9 1re 10077 . . . . . . . . . . . 12 1 ∈ ℝ
10 lelttr 10166 . . . . . . . . . . . 12 ((1 ∈ ℝ ∧ 𝑗 ∈ ℝ ∧ 𝑘 ∈ ℝ) → ((1 ≤ 𝑗𝑗 < 𝑘) → 1 < 𝑘))
119, 10mp3an1 1451 . . . . . . . . . . 11 ((𝑗 ∈ ℝ ∧ 𝑘 ∈ ℝ) → ((1 ≤ 𝑗𝑗 < 𝑘) → 1 < 𝑘))
127, 8, 11syl2an 493 . . . . . . . . . 10 ((𝑗 ∈ ℕ ∧ 𝑘 ∈ ℕ) → ((1 ≤ 𝑗𝑗 < 𝑘) → 1 < 𝑘))
136, 12mpand 711 . . . . . . . . 9 ((𝑗 ∈ ℕ ∧ 𝑘 ∈ ℕ) → (𝑗 < 𝑘 → 1 < 𝑘))
1413ancld 575 . . . . . . . 8 ((𝑗 ∈ ℕ ∧ 𝑘 ∈ ℕ) → (𝑗 < 𝑘 → (𝑗 < 𝑘 ∧ 1 < 𝑘)))
1514anim1d 587 . . . . . . 7 ((𝑗 ∈ ℕ ∧ 𝑘 ∈ ℕ) → ((𝑗 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘))) → ((𝑗 < 𝑘 ∧ 1 < 𝑘) ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘)))))
16 anass 682 . . . . . . 7 (((𝑗 < 𝑘 ∧ 1 < 𝑘) ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘))) ↔ (𝑗 < 𝑘 ∧ (1 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘)))))
1715, 16syl6ib 241 . . . . . 6 ((𝑗 ∈ ℕ ∧ 𝑘 ∈ ℕ) → ((𝑗 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘))) → (𝑗 < 𝑘 ∧ (1 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘))))))
1817reximdva 3046 . . . . 5 (𝑗 ∈ ℕ → (∃𝑘 ∈ ℕ (𝑗 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘))) → ∃𝑘 ∈ ℕ (𝑗 < 𝑘 ∧ (1 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘))))))
194, 18mpd 15 . . . 4 (𝑗 ∈ ℕ → ∃𝑘 ∈ ℕ (𝑗 < 𝑘 ∧ (1 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘)))))
20 breq2 4689 . . . . . . . . 9 (𝑛 = 𝑘 → (1 < 𝑛 ↔ 1 < 𝑘))
21 oveq1 6697 . . . . . . . . . . . 12 (𝑛 = 𝑘 → (𝑛 / 𝑚) = (𝑘 / 𝑚))
2221eleq1d 2715 . . . . . . . . . . 11 (𝑛 = 𝑘 → ((𝑛 / 𝑚) ∈ ℕ ↔ (𝑘 / 𝑚) ∈ ℕ))
23 equequ2 1999 . . . . . . . . . . . 12 (𝑛 = 𝑘 → (𝑚 = 𝑛𝑚 = 𝑘))
2423orbi2d 738 . . . . . . . . . . 11 (𝑛 = 𝑘 → ((𝑚 = 1 ∨ 𝑚 = 𝑛) ↔ (𝑚 = 1 ∨ 𝑚 = 𝑘)))
2522, 24imbi12d 333 . . . . . . . . . 10 (𝑛 = 𝑘 → (((𝑛 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑛)) ↔ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘))))
2625ralbidv 3015 . . . . . . . . 9 (𝑛 = 𝑘 → (∀𝑚 ∈ ℕ ((𝑛 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑛)) ↔ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘))))
2720, 26anbi12d 747 . . . . . . . 8 (𝑛 = 𝑘 → ((1 < 𝑛 ∧ ∀𝑚 ∈ ℕ ((𝑛 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑛))) ↔ (1 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘)))))
2827, 1elrab2 3399 . . . . . . 7 (𝑘𝑆 ↔ (𝑘 ∈ ℕ ∧ (1 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘)))))
2928anbi1i 731 . . . . . 6 ((𝑘𝑆𝑗 < 𝑘) ↔ ((𝑘 ∈ ℕ ∧ (1 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘)))) ∧ 𝑗 < 𝑘))
30 anass 682 . . . . . 6 (((𝑘 ∈ ℕ ∧ (1 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘)))) ∧ 𝑗 < 𝑘) ↔ (𝑘 ∈ ℕ ∧ ((1 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘))) ∧ 𝑗 < 𝑘)))
31 ancom 465 . . . . . . 7 (((1 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘))) ∧ 𝑗 < 𝑘) ↔ (𝑗 < 𝑘 ∧ (1 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘)))))
3231anbi2i 730 . . . . . 6 ((𝑘 ∈ ℕ ∧ ((1 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘))) ∧ 𝑗 < 𝑘)) ↔ (𝑘 ∈ ℕ ∧ (𝑗 < 𝑘 ∧ (1 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘))))))
3329, 30, 323bitri 286 . . . . 5 ((𝑘𝑆𝑗 < 𝑘) ↔ (𝑘 ∈ ℕ ∧ (𝑗 < 𝑘 ∧ (1 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘))))))
3433rexbii2 3068 . . . 4 (∃𝑘𝑆 𝑗 < 𝑘 ↔ ∃𝑘 ∈ ℕ (𝑗 < 𝑘 ∧ (1 < 𝑘 ∧ ∀𝑚 ∈ ℕ ((𝑘 / 𝑚) ∈ ℕ → (𝑚 = 1 ∨ 𝑚 = 𝑘)))))
3519, 34sylibr 224 . . 3 (𝑗 ∈ ℕ → ∃𝑘𝑆 𝑗 < 𝑘)
3635rgen 2951 . 2 𝑗 ∈ ℕ ∃𝑘𝑆 𝑗 < 𝑘
37 unben 15660 . 2 ((𝑆 ⊆ ℕ ∧ ∀𝑗 ∈ ℕ ∃𝑘𝑆 𝑗 < 𝑘) → 𝑆 ≈ ℕ)
383, 36, 37mp2an 708 1 𝑆 ≈ ℕ
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ∨ wo 382   ∧ wa 383   = wceq 1523   ∈ wcel 2030  ∀wral 2941  ∃wrex 2942  {crab 2945   ⊆ wss 3607   class class class wbr 4685  (class class class)co 6690   ≈ cen 7994  ℝcr 9973  1c1 9975   < clt 10112   ≤ cle 10113   / cdiv 10722  ℕcn 11058 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1762  ax-4 1777  ax-5 1879  ax-6 1945  ax-7 1981  ax-8 2032  ax-9 2039  ax-10 2059  ax-11 2074  ax-12 2087  ax-13 2282  ax-ext 2631  ax-rep 4804  ax-sep 4814  ax-nul 4822  ax-pow 4873  ax-pr 4936  ax-un 6991  ax-inf2 8576  ax-cnex 10030  ax-resscn 10031  ax-1cn 10032  ax-icn 10033  ax-addcl 10034  ax-addrcl 10035  ax-mulcl 10036  ax-mulrcl 10037  ax-mulcom 10038  ax-addass 10039  ax-mulass 10040  ax-distr 10041  ax-i2m1 10042  ax-1ne0 10043  ax-1rid 10044  ax-rnegex 10045  ax-rrecex 10046  ax-cnre 10047  ax-pre-lttri 10048  ax-pre-lttrn 10049  ax-pre-ltadd 10050  ax-pre-mulgt0 10051 This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-3or 1055  df-3an 1056  df-tru 1526  df-ex 1745  df-nf 1750  df-sb 1938  df-eu 2502  df-mo 2503  df-clab 2638  df-cleq 2644  df-clel 2647  df-nfc 2782  df-ne 2824  df-nel 2927  df-ral 2946  df-rex 2947  df-reu 2948  df-rmo 2949  df-rab 2950  df-v 3233  df-sbc 3469  df-csb 3567  df-dif 3610  df-un 3612  df-in 3614  df-ss 3621  df-pss 3623  df-nul 3949  df-if 4120  df-pw 4193  df-sn 4211  df-pr 4213  df-tp 4215  df-op 4217  df-uni 4469  df-int 4508  df-iun 4554  df-br 4686  df-opab 4746  df-mpt 4763  df-tr 4786  df-id 5053  df-eprel 5058  df-po 5064  df-so 5065  df-fr 5102  df-we 5104  df-xp 5149  df-rel 5150  df-cnv 5151  df-co 5152  df-dm 5153  df-rn 5154  df-res 5155  df-ima 5156  df-pred 5718  df-ord 5764  df-on 5765  df-lim 5766  df-suc 5767  df-iota 5889  df-fun 5928  df-fn 5929  df-f 5930  df-f1 5931  df-fo 5932  df-f1o 5933  df-fv 5934  df-riota 6651  df-ov 6693  df-oprab 6694  df-mpt2 6695  df-om 7108  df-2nd 7211  df-wrecs 7452  df-recs 7513  df-rdg 7551  df-er 7787  df-en 7998  df-dom 7999  df-sdom 8000  df-pnf 10114  df-mnf 10115  df-xr 10116  df-ltxr 10117  df-le 10118  df-sub 10306  df-neg 10307  df-div 10723  df-nn 11059  df-n0 11331  df-z 11416  df-uz 11726  df-seq 12842  df-fac 13101 This theorem is referenced by: (None)
 Copyright terms: Public domain W3C validator