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

Theorem cyggenod 18992
Description: An element is the generator of a finite group iff the order of the generator equals the order of the group. (Contributed by Mario Carneiro, 21-Apr-2016.)
Hypotheses
Ref Expression
iscyg.1 𝐵 = (Base‘𝐺)
iscyg.2 · = (.g𝐺)
iscyg3.e 𝐸 = {𝑥𝐵 ∣ ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑥)) = 𝐵}
cyggenod.o 𝑂 = (od‘𝐺)
Assertion
Ref Expression
cyggenod ((𝐺 ∈ Grp ∧ 𝐵 ∈ Fin) → (𝑋𝐸 ↔ (𝑋𝐵 ∧ (𝑂𝑋) = (♯‘𝐵))))
Distinct variable groups:   𝑥,𝑛,𝐵   𝑛,𝑂   𝑛,𝑋,𝑥   𝑛,𝐺,𝑥   · ,𝑛,𝑥
Allowed substitution hints:   𝐸(𝑥,𝑛)   𝑂(𝑥)

Proof of Theorem cyggenod
StepHypRef Expression
1 iscyg.1 . . 3 𝐵 = (Base‘𝐺)
2 iscyg.2 . . 3 · = (.g𝐺)
3 iscyg3.e . . 3 𝐸 = {𝑥𝐵 ∣ ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑥)) = 𝐵}
41, 2, 3iscyggen 18988 . 2 (𝑋𝐸 ↔ (𝑋𝐵 ∧ ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋)) = 𝐵))
5 simplr 768 . . . . . 6 (((𝐺 ∈ Grp ∧ 𝐵 ∈ Fin) ∧ 𝑋𝐵) → 𝐵 ∈ Fin)
6 simplll 774 . . . . . . . . 9 ((((𝐺 ∈ Grp ∧ 𝐵 ∈ Fin) ∧ 𝑋𝐵) ∧ 𝑛 ∈ ℤ) → 𝐺 ∈ Grp)
7 simpr 488 . . . . . . . . 9 ((((𝐺 ∈ Grp ∧ 𝐵 ∈ Fin) ∧ 𝑋𝐵) ∧ 𝑛 ∈ ℤ) → 𝑛 ∈ ℤ)
8 simplr 768 . . . . . . . . 9 ((((𝐺 ∈ Grp ∧ 𝐵 ∈ Fin) ∧ 𝑋𝐵) ∧ 𝑛 ∈ ℤ) → 𝑋𝐵)
91, 2mulgcl 18234 . . . . . . . . 9 ((𝐺 ∈ Grp ∧ 𝑛 ∈ ℤ ∧ 𝑋𝐵) → (𝑛 · 𝑋) ∈ 𝐵)
106, 7, 8, 9syl3anc 1368 . . . . . . . 8 ((((𝐺 ∈ Grp ∧ 𝐵 ∈ Fin) ∧ 𝑋𝐵) ∧ 𝑛 ∈ ℤ) → (𝑛 · 𝑋) ∈ 𝐵)
1110fmpttd 6860 . . . . . . 7 (((𝐺 ∈ Grp ∧ 𝐵 ∈ Fin) ∧ 𝑋𝐵) → (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋)):ℤ⟶𝐵)
1211frnd 6502 . . . . . 6 (((𝐺 ∈ Grp ∧ 𝐵 ∈ Fin) ∧ 𝑋𝐵) → ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋)) ⊆ 𝐵)
135, 12ssfid 8725 . . . . 5 (((𝐺 ∈ Grp ∧ 𝐵 ∈ Fin) ∧ 𝑋𝐵) → ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋)) ∈ Fin)
14 hashen 13701 . . . . 5 ((ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋)) ∈ Fin ∧ 𝐵 ∈ Fin) → ((♯‘ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋))) = (♯‘𝐵) ↔ ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋)) ≈ 𝐵))
1513, 5, 14syl2anc 587 . . . 4 (((𝐺 ∈ Grp ∧ 𝐵 ∈ Fin) ∧ 𝑋𝐵) → ((♯‘ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋))) = (♯‘𝐵) ↔ ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋)) ≈ 𝐵))
16 cyggenod.o . . . . . . . 8 𝑂 = (od‘𝐺)
17 eqid 2824 . . . . . . . 8 (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋)) = (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋))
181, 16, 2, 17dfod2 18680 . . . . . . 7 ((𝐺 ∈ Grp ∧ 𝑋𝐵) → (𝑂𝑋) = if(ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋)) ∈ Fin, (♯‘ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋))), 0))
1918adantlr 714 . . . . . 6 (((𝐺 ∈ Grp ∧ 𝐵 ∈ Fin) ∧ 𝑋𝐵) → (𝑂𝑋) = if(ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋)) ∈ Fin, (♯‘ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋))), 0))
2013iftrued 4456 . . . . . 6 (((𝐺 ∈ Grp ∧ 𝐵 ∈ Fin) ∧ 𝑋𝐵) → if(ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋)) ∈ Fin, (♯‘ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋))), 0) = (♯‘ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋))))
2119, 20eqtr2d 2860 . . . . 5 (((𝐺 ∈ Grp ∧ 𝐵 ∈ Fin) ∧ 𝑋𝐵) → (♯‘ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋))) = (𝑂𝑋))
2221eqeq1d 2826 . . . 4 (((𝐺 ∈ Grp ∧ 𝐵 ∈ Fin) ∧ 𝑋𝐵) → ((♯‘ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋))) = (♯‘𝐵) ↔ (𝑂𝑋) = (♯‘𝐵)))
23 fisseneq 8713 . . . . . . 7 ((𝐵 ∈ Fin ∧ ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋)) ⊆ 𝐵 ∧ ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋)) ≈ 𝐵) → ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋)) = 𝐵)
24233expia 1118 . . . . . 6 ((𝐵 ∈ Fin ∧ ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋)) ⊆ 𝐵) → (ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋)) ≈ 𝐵 → ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋)) = 𝐵))
25 enrefg 8524 . . . . . . . 8 (𝐵 ∈ Fin → 𝐵𝐵)
2625adantr 484 . . . . . . 7 ((𝐵 ∈ Fin ∧ ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋)) ⊆ 𝐵) → 𝐵𝐵)
27 breq1 5050 . . . . . . 7 (ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋)) = 𝐵 → (ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋)) ≈ 𝐵𝐵𝐵))
2826, 27syl5ibrcom 250 . . . . . 6 ((𝐵 ∈ Fin ∧ ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋)) ⊆ 𝐵) → (ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋)) = 𝐵 → ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋)) ≈ 𝐵))
2924, 28impbid 215 . . . . 5 ((𝐵 ∈ Fin ∧ ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋)) ⊆ 𝐵) → (ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋)) ≈ 𝐵 ↔ ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋)) = 𝐵))
305, 12, 29syl2anc 587 . . . 4 (((𝐺 ∈ Grp ∧ 𝐵 ∈ Fin) ∧ 𝑋𝐵) → (ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋)) ≈ 𝐵 ↔ ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋)) = 𝐵))
3115, 22, 303bitr3rd 313 . . 3 (((𝐺 ∈ Grp ∧ 𝐵 ∈ Fin) ∧ 𝑋𝐵) → (ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋)) = 𝐵 ↔ (𝑂𝑋) = (♯‘𝐵)))
3231pm5.32da 582 . 2 ((𝐺 ∈ Grp ∧ 𝐵 ∈ Fin) → ((𝑋𝐵 ∧ ran (𝑛 ∈ ℤ ↦ (𝑛 · 𝑋)) = 𝐵) ↔ (𝑋𝐵 ∧ (𝑂𝑋) = (♯‘𝐵))))
334, 32syl5bb 286 1 ((𝐺 ∈ Grp ∧ 𝐵 ∈ Fin) → (𝑋𝐸 ↔ (𝑋𝐵 ∧ (𝑂𝑋) = (♯‘𝐵))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399   = wceq 1538  wcel 2115  {crab 3136  wss 3918  ifcif 4448   class class class wbr 5047  cmpt 5127  ran crn 5537  cfv 6336  (class class class)co 7138  cen 8489  Fincfn 8492  0cc0 10522  cz 11967  chash 13684  Basecbs 16472  Grpcgrp 18092  .gcmg 18213  odcod 18641
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1912  ax-6 1971  ax-7 2016  ax-8 2117  ax-9 2125  ax-10 2146  ax-11 2162  ax-12 2179  ax-ext 2796  ax-rep 5171  ax-sep 5184  ax-nul 5191  ax-pow 5247  ax-pr 5311  ax-un 7444  ax-inf2 9088  ax-cnex 10578  ax-resscn 10579  ax-1cn 10580  ax-icn 10581  ax-addcl 10582  ax-addrcl 10583  ax-mulcl 10584  ax-mulrcl 10585  ax-mulcom 10586  ax-addass 10587  ax-mulass 10588  ax-distr 10589  ax-i2m1 10590  ax-1ne0 10591  ax-1rid 10592  ax-rnegex 10593  ax-rrecex 10594  ax-cnre 10595  ax-pre-lttri 10596  ax-pre-lttrn 10597  ax-pre-ltadd 10598  ax-pre-mulgt0 10599  ax-pre-sup 10600
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2071  df-mo 2624  df-eu 2655  df-clab 2803  df-cleq 2817  df-clel 2896  df-nfc 2964  df-ne 3014  df-nel 3118  df-ral 3137  df-rex 3138  df-reu 3139  df-rmo 3140  df-rab 3141  df-v 3481  df-sbc 3758  df-csb 3866  df-dif 3921  df-un 3923  df-in 3925  df-ss 3935  df-pss 3937  df-nul 4275  df-if 4449  df-pw 4522  df-sn 4549  df-pr 4551  df-tp 4553  df-op 4555  df-uni 4820  df-int 4858  df-iun 4902  df-br 5048  df-opab 5110  df-mpt 5128  df-tr 5154  df-id 5441  df-eprel 5446  df-po 5455  df-so 5456  df-fr 5495  df-se 5496  df-we 5497  df-xp 5542  df-rel 5543  df-cnv 5544  df-co 5545  df-dm 5546  df-rn 5547  df-res 5548  df-ima 5549  df-pred 6129  df-ord 6175  df-on 6176  df-lim 6177  df-suc 6178  df-iota 6295  df-fun 6338  df-fn 6339  df-f 6340  df-f1 6341  df-fo 6342  df-f1o 6343  df-fv 6344  df-isom 6345  df-riota 7096  df-ov 7141  df-oprab 7142  df-mpo 7143  df-om 7564  df-1st 7672  df-2nd 7673  df-wrecs 7930  df-recs 7991  df-rdg 8029  df-1o 8085  df-oadd 8089  df-omul 8090  df-er 8272  df-map 8391  df-en 8493  df-dom 8494  df-sdom 8495  df-fin 8496  df-sup 8890  df-inf 8891  df-oi 8958  df-card 9352  df-acn 9355  df-pnf 10662  df-mnf 10663  df-xr 10664  df-ltxr 10665  df-le 10666  df-sub 10857  df-neg 10858  df-div 11283  df-nn 11624  df-2 11686  df-3 11687  df-n0 11884  df-z 11968  df-uz 12230  df-rp 12376  df-fz 12884  df-fl 13155  df-mod 13231  df-seq 13363  df-exp 13424  df-hash 13685  df-cj 14447  df-re 14448  df-im 14449  df-sqrt 14583  df-abs 14584  df-dvds 15597  df-0g 16704  df-mgm 17841  df-sgrp 17890  df-mnd 17901  df-grp 18095  df-minusg 18096  df-sbg 18097  df-mulg 18214  df-od 18645
This theorem is referenced by:  iscygodd  18996  cyggexb  19008
  Copyright terms: Public domain W3C validator