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

Theorem dirith 27932
Description: Dirichlet's theorem: there are infinitely many primes in any arithmetic progression coprime to 𝑁. Theorem 9.4.1 of [Shapiro], p. 375. See https://metamath-blog.blogspot.com/2016/05/dirichlets-theorem.html for an informal exposition. This is Metamath 100 proof #48. (Contributed by Mario Carneiro, 12-May-2016.)
Assertion
Ref Expression
dirith ((𝑁 ∈ ℕ ∧ 𝐴 ∈ ℤ ∧ (𝐴 gcd 𝑁) = 1) → {𝑝 ∈ ℙ ∣ 𝑁 ∥ (𝑝 − 𝐴)} ≈ ℕ)
Distinct variable groups:   𝐴,𝑝   𝑁,𝑝

Proof of Theorem dirith
StepHypRef Expression
1 simp1 1155 . . . . . . . 8 ((𝑁 ∈ ℕ ∧ 𝐴 ∈ ℤ ∧ (𝐴 gcd 𝑁) = 1) → 𝑁 ∈ ℕ)
21nnnn0d 12717 . . . . . . 7 ((𝑁 ∈ ℕ ∧ 𝐴 ∈ ℤ ∧ (𝐴 gcd 𝑁) = 1) → 𝑁 ∈ ℕ0)
32adantr 486 . . . . . 6 (((𝑁 ∈ ℕ ∧ 𝐴 ∈ ℤ ∧ (𝐴 gcd 𝑁) = 1) ∧ 𝑝 ∈ ℙ) → 𝑁 ∈ ℕ0)
4 eqid 2769 . . . . . . 7 (ℤ/nℤ‘𝑁) = (ℤ/nℤ‘𝑁)
5 eqid 2769 . . . . . . 7 (Base‘(ℤ/nℤ‘𝑁)) = (Base‘(ℤ/nℤ‘𝑁))
6 eqid 2769 . . . . . . 7 (ℤRHom‘(ℤ/nℤ‘𝑁)) = (ℤRHom‘(ℤ/nℤ‘𝑁))
74, 5, 6znzrhfo 21925 . . . . . 6 (𝑁 ∈ ℕ0 → (ℤRHom‘(ℤ/nℤ‘𝑁)):ℤ⟶onto(Base‘(ℤ/nℤ‘𝑁)))
8 fofn 6838 . . . . . 6 ((ℤRHom‘(ℤ/nℤ‘𝑁)):ℤ⟶onto(Base‘(ℤ/nℤ‘𝑁)) → (ℤRHom‘(ℤ/nℤ‘𝑁)) Fn ℤ)
93, 7, 83syl 19 . . . . 5 (((𝑁 ∈ ℕ ∧ 𝐴 ∈ ℤ ∧ (𝐴 gcd 𝑁) = 1) ∧ 𝑝 ∈ ℙ) → (ℤRHom‘(ℤ/nℤ‘𝑁)) Fn ℤ)
10 prmz 16904 . . . . . 6 (𝑝 ∈ ℙ → 𝑝 ∈ ℤ)
1110adantl 487 . . . . 5 (((𝑁 ∈ ℕ ∧ 𝐴 ∈ ℤ ∧ (𝐴 gcd 𝑁) = 1) ∧ 𝑝 ∈ ℙ) → 𝑝 ∈ ℤ)
12 fniniseg 7101 . . . . . 6 ((ℤRHom‘(ℤ/nℤ‘𝑁)) Fn ℤ → (𝑝 ∈ (◡(ℤRHom‘(ℤ/nℤ‘𝑁)) “ {((ℤRHom‘(ℤ/nℤ‘𝑁))‘𝐴)}) ↔ (𝑝 ∈ ℤ ∧ ((ℤRHom‘(ℤ/nℤ‘𝑁))‘𝑝) = ((ℤRHom‘(ℤ/nℤ‘𝑁))‘𝐴))))
1312baibd 549 . . . . 5 (((ℤRHom‘(ℤ/nℤ‘𝑁)) Fn ℤ ∧ 𝑝 ∈ ℤ) → (𝑝 ∈ (◡(ℤRHom‘(ℤ/nℤ‘𝑁)) “ {((ℤRHom‘(ℤ/nℤ‘𝑁))‘𝐴)}) ↔ ((ℤRHom‘(ℤ/nℤ‘𝑁))‘𝑝) = ((ℤRHom‘(ℤ/nℤ‘𝑁))‘𝐴)))
149, 11, 13syl2anc 596 . . . 4 (((𝑁 ∈ ℕ ∧ 𝐴 ∈ ℤ ∧ (𝐴 gcd 𝑁) = 1) ∧ 𝑝 ∈ ℙ) → (𝑝 ∈ (◡(ℤRHom‘(ℤ/nℤ‘𝑁)) “ {((ℤRHom‘(ℤ/nℤ‘𝑁))‘𝐴)}) ↔ ((ℤRHom‘(ℤ/nℤ‘𝑁))‘𝑝) = ((ℤRHom‘(ℤ/nℤ‘𝑁))‘𝐴)))
15 simp2 1156 . . . . . 6 ((𝑁 ∈ ℕ ∧ 𝐴 ∈ ℤ ∧ (𝐴 gcd 𝑁) = 1) → 𝐴 ∈ ℤ)
1615adantr 486 . . . . 5 (((𝑁 ∈ ℕ ∧ 𝐴 ∈ ℤ ∧ (𝐴 gcd 𝑁) = 1) ∧ 𝑝 ∈ ℙ) → 𝐴 ∈ ℤ)
174, 6zndvds 21927 . . . . 5 ((𝑁 ∈ ℕ0 ∧ 𝑝 ∈ ℤ ∧ 𝐴 ∈ ℤ) → (((ℤRHom‘(ℤ/nℤ‘𝑁))‘𝑝) = ((ℤRHom‘(ℤ/nℤ‘𝑁))‘𝐴) ↔ 𝑁 ∥ (𝑝 − 𝐴)))
183, 11, 16, 17syl3anc 1401 . . . 4 (((𝑁 ∈ ℕ ∧ 𝐴 ∈ ℤ ∧ (𝐴 gcd 𝑁) = 1) ∧ 𝑝 ∈ ℙ) → (((ℤRHom‘(ℤ/nℤ‘𝑁))‘𝑝) = ((ℤRHom‘(ℤ/nℤ‘𝑁))‘𝐴) ↔ 𝑁 ∥ (𝑝 − 𝐴)))
1914, 18bitrd 282 . . 3 (((𝑁 ∈ ℕ ∧ 𝐴 ∈ ℤ ∧ (𝐴 gcd 𝑁) = 1) ∧ 𝑝 ∈ ℙ) → (𝑝 ∈ (◡(ℤRHom‘(ℤ/nℤ‘𝑁)) “ {((ℤRHom‘(ℤ/nℤ‘𝑁))‘𝐴)}) ↔ 𝑁 ∥ (𝑝 − 𝐴)))
2019rabbi2dva 4127 . 2 ((𝑁 ∈ ℕ ∧ 𝐴 ∈ ℤ ∧ (𝐴 gcd 𝑁) = 1) → (ℙ ∩ (◡(ℤRHom‘(ℤ/nℤ‘𝑁)) “ {((ℤRHom‘(ℤ/nℤ‘𝑁))‘𝐴)})) = {𝑝 ∈ ℙ ∣ 𝑁 ∥ (𝑝 − 𝐴)})
21 eqid 2769 . . 3 (Unit‘(ℤ/nℤ‘𝑁)) = (Unit‘(ℤ/nℤ‘𝑁))
22 simp3 1157 . . . 4 ((𝑁 ∈ ℕ ∧ 𝐴 ∈ ℤ ∧ (𝐴 gcd 𝑁) = 1) → (𝐴 gcd 𝑁) = 1)
234, 21, 6znunit 21941 . . . . 5 ((𝑁 ∈ ℕ0 ∧ 𝐴 ∈ ℤ) → (((ℤRHom‘(ℤ/nℤ‘𝑁))‘𝐴) ∈ (Unit‘(ℤ/nℤ‘𝑁)) ↔ (𝐴 gcd 𝑁) = 1))
242, 15, 23syl2anc 596 . . . 4 ((𝑁 ∈ ℕ ∧ 𝐴 ∈ ℤ ∧ (𝐴 gcd 𝑁) = 1) → (((ℤRHom‘(ℤ/nℤ‘𝑁))‘𝐴) ∈ (Unit‘(ℤ/nℤ‘𝑁)) ↔ (𝐴 gcd 𝑁) = 1))
2522, 24mpbird 260 . . 3 ((𝑁 ∈ ℕ ∧ 𝐴 ∈ ℤ ∧ (𝐴 gcd 𝑁) = 1) → ((ℤRHom‘(ℤ/nℤ‘𝑁))‘𝐴) ∈ (Unit‘(ℤ/nℤ‘𝑁)))
26 eqid 2769 . . 3 (◡(ℤRHom‘(ℤ/nℤ‘𝑁)) “ {((ℤRHom‘(ℤ/nℤ‘𝑁))‘𝐴)}) = (◡(ℤRHom‘(ℤ/nℤ‘𝑁)) “ {((ℤRHom‘(ℤ/nℤ‘𝑁))‘𝐴)})
274, 6, 1, 21, 25, 26dirith2 27931 . 2 ((𝑁 ∈ ℕ ∧ 𝐴 ∈ ℤ ∧ (𝐴 gcd 𝑁) = 1) → (ℙ ∩ (◡(ℤRHom‘(ℤ/nℤ‘𝑁)) “ {((ℤRHom‘(ℤ/nℤ‘𝑁))‘𝐴)})) ≈ ℕ)
2820, 27eqbrtrrd 5138 1 ((𝑁 ∈ ℕ ∧ 𝐴 ∈ ℤ ∧ (𝐴 gcd 𝑁) = 1) → {𝑝 ∈ ℙ ∣ 𝑁 ∥ (𝑝 − 𝐴)} ≈ ℕ)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   ∧ w3a 1104   = wceq 1572   ∈ wcel 2151  {crab 3418   ∩ cin 4094  {csn 4590   class class class wbr 5111  ◡ccnv 5660   “ cima 5664   Fn wfn 6568  ⟶ontowfo 6571  ‘cfv 6573  (class class class)co 7461   ≈ cen 9018  1c1 11250   − cmin 11590  ℕcn 12385  ℕ0cn0 12656  ℤcz 12743   ∥ cdvds 16475   gcd cgcd 16717  ℙcprime 16900  Basecbs 17444  Unitcui 20653  ℤRHomczrh 21877  ℤ/nℤczn 21880
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2153  ax-9 2161  ax-10 2184  ax-11 2201  ax-12 2220  ax-ext 2741  ax-rep 5241  ax-sep 5258  ax-nul 5269  ax-pow 5337  ax-pr 5401  ax-un 7793  ax-inf2 9689  ax-cnex 11305  ax-resscn 11306  ax-1cn 11307  ax-icn 11308  ax-addcl 11309  ax-addrcl 11310  ax-mulcl 11311  ax-mulrcl 11312  ax-mulcom 11313  ax-addass 11314  ax-mulass 11315  ax-distr 11316  ax-i2m1 11317  ax-1ne0 11318  ax-1rid 11319  ax-rnegex 11320  ax-rrecex 11321  ax-cnre 11322  ax-pre-lttri 11323  ax-pre-lttrn 11324  ax-pre-ltadd 11325  ax-pre-mulgt0 11326  ax-pre-sup 11327  ax-addf 11328  ax-mulf 11329
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 1815  df-nf 1819  df-sb 2105  df-mo 2571  df-eu 2601  df-clab 2748  df-cleq 2761  df-clel 2845  df-nfc 2919  df-ne 2966  df-nel 3072  df-ral 3087  df-rex 3097  df-rmo 3371  df-reu 3372  df-rab 3419  df-v 3458  df-sbc 3745  df-csb 3854  df-ss 3903  df-pss 4019  df-dif 4052  df-in 4096  df-un 4156  df-nul 4284  df-if 4488  df-pw 4564  df-sn 4591  df-pr 4593  df-tp 4595  df-op 4844  df-uni 4876  df-int 4916  df-iun 4961  df-iin 4962  df-disj 5079  df-br 5112  df-opab 5177  df-mpt 5196  df-tr 5222  df-id 5556  df-eprel 5561  df-po 5569  df-so 5570  df-fr 5614  df-se 5615  df-we 5616  df-xp 5667  df-rel 5668  df-cnv 5669  df-co 5670  df-dm 5671  df-rn 5672  df-res 5673  df-ima 5674  df-pred 6337  df-ord 6398  df-on 6399  df-lim 6400  df-suc 6401  df-iota 6527  df-fun 6575  df-fn 6576  df-f 6577  df-f1 6578  df-fo 6579  df-f1o 6580  df-fv 6581  df-isom 6582  df-riota 7418  df-ov 7464  df-oprab 7465  df-mpo 7466  df-of 7735  df-rpss 7781  df-om 7922  df-1st 8045  df-2nd 8046  df-supp 8225  df-tpos 8291  df-frecs 8347  df-wrecs 8378  df-recs 8427  df-rdg 8466  df-1o 8524  df-2o 8525  df-oadd 8528  df-omul 8529  df-er 8765  df-ec 8767  df-qs 8771  df-map 8897  df-pm 8898  df-ixp 8974  df-en 9022  df-dom 9023  df-sdom 9024  df-fin 9025  df-fsupp 9402  df-fi 9450  df-sup 9481  df-inf 9482  df-oi 9551  df-dju 10029  df-card 10067  df-acn 10070  df-pnf 11394  df-mnf 11395  df-xr 11396  df-ltxr 11397  df-le 11398  df-sub 11592  df-neg 11593  df-div 12024  df-nn 12386  df-2 12455  df-3 12456  df-4 12457  df-5 12458  df-6 12459  df-7 12460  df-8 12461  df-9 12462  df-n0 12657  df-xnn0 12730  df-z 12744  df-dec 12865  df-uz 13016  df-q 13126  df-rp 13171  df-xneg 13291  df-xadd 13292  df-xmul 13293  df-ioo 13530  df-ioc 13531  df-ico 13532  df-icc 13533  df-fz 13690  df-fzo 13839  df-fl 13982  df-mod 14060  df-seq 14195  df-exp 14255  df-fac 14469  df-bc 14498  df-hash 14526  df-word 14710  df-concat 14767  df-s1 14794  df-shft 15273  df-cj 15319  df-re 15320  df-im 15321  df-sqrt 15455  df-abs 15456  df-limsup 15692  df-clim 15709  df-rlim 15710  df-o1 15711  df-lo1 15712  df-sum 15908  df-ef 16287  df-e 16288  df-sin 16289  df-cos 16290  df-tan 16291  df-pi 16292  df-dvds 16476  df-gcd 16718  df-prm 16901  df-numer 16966  df-denom 16967  df-phi 17000  df-pc 17072  df-struct 17382  df-sets 17399  df-slot 17417  df-ndx 17429  df-base 17445  df-ress 17466  df-plusg 17499  df-mulr 17500  df-starv 17501  df-sca 17502  df-vsca 17503  df-ip 17504  df-tset 17505  df-ple 17506  df-ds 17508  df-unif 17509  df-hom 17510  df-cco 17511  df-euf 17512  df-rest 17660  df-topn 17661  df-0g 17679  df-gsum 17680  df-topgen 17681  df-pt 17682  df-prds 17685  df-xrs 17741  df-qtop 17746  df-imas 17747  df-qus 17748  df-xps 17749  df-mre 17823  df-mrc 17824  df-acs 17826  df-mgm 18883  df-sgrp 18975  df-mnd 18991  df-mhm 19045  df-submnd 19046  df-grp 19214  df-minusg 19215  df-sbg 19216  df-mulg 19345  df-subg 19400  df-nsg 19401  df-eqg 19402  df-ghm 19495  df-gim 19540  df-ga 19572  df-cntz 19599  df-oppg 19628  df-od 19810  df-gex 19811  df-pgp 19812  df-lsm 19918  df-pj1 19919  df-cmn 20064  df-abl 20065  df-cyg 20160  df-dprd 20279  df-dpj 20280  df-mgp 20429  df-rng 20443  df-ur 20476  df-ring 20529  df-cring 20530  df-oppr 20635  df-dvdsr 20655  df-unit 20656  df-invr 20686  df-dvr 20699  df-rhm 20770  df-subrng 20866  df-subrg 20890  df-drng 21050  df-lmod 21205  df-lss 21275  df-lsp 21315  df-sra 21516  df-rgmod 21517  df-lidl 21554  df-rsp 21555  df-2idl 21611  df-psmet 21738  df-xmet 21739  df-met 21740  df-bl 21741  df-mopn 21742  df-fbas 21743  df-fg 21744  df-cnfld 21747  df-zring 21824  df-zrh 21881  df-zn 21884  df-top 23290  df-topon 23307  df-topsp 23329  df-bases 23342  df-cld 23415  df-ntr 23416  df-cls 23417  df-nei 23494  df-lp 23532  df-perf 23533  df-cn 23623  df-cnp 23624  df-haus 23711  df-cmp 23783  df-tx 23959  df-hmeo 24152  df-fil 24243  df-fm 24335  df-flim 24336  df-flf 24337  df-xms 24717  df-ms 24718  df-tms 24719  df-cncf 25277  df-0p 26069  df-limc 26264  df-dv 26265  df-ply 26580  df-idp 26581  df-coe 26582  df-dgr 26583  df-quot 26686  df-ulm 26780  df-log 26960  df-cxp 26961  df-atan 27271  df-em 27396  df-cht 27500  df-vma 27501  df-chp 27502  df-ppi 27503  df-mu 27504  df-dchr 27636
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator