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

Theorem smndex1mnd 18067
Description: The monoid of endofunctions on 0 restricted to the modulo function 𝐼 and the constant functions (𝐺𝐾) is a monoid. (Contributed by AV, 16-Feb-2024.)
Hypotheses
Ref Expression
smndex1ibas.m 𝑀 = (EndoFMnd‘ℕ0)
smndex1ibas.n 𝑁 ∈ ℕ
smndex1ibas.i 𝐼 = (𝑥 ∈ ℕ0 ↦ (𝑥 mod 𝑁))
smndex1ibas.g 𝐺 = (𝑛 ∈ (0..^𝑁) ↦ (𝑥 ∈ ℕ0𝑛))
smndex1mgm.b 𝐵 = ({𝐼} ∪ 𝑛 ∈ (0..^𝑁){(𝐺𝑛)})
smndex1mgm.s 𝑆 = (𝑀s 𝐵)
Assertion
Ref Expression
smndex1mnd 𝑆 ∈ Mnd
Distinct variable groups:   𝑥,𝑁,𝑛   𝑥,𝑀   𝑛,𝐺   𝑛,𝑀   𝑥,𝐺   𝑛,𝐼,𝑥   𝑥,𝑆
Allowed substitution hints:   𝐵(𝑥,𝑛)   𝑆(𝑛)

Proof of Theorem smndex1mnd
Dummy variables 𝑏 𝑎 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 smndex1ibas.m . . 3 𝑀 = (EndoFMnd‘ℕ0)
2 smndex1ibas.n . . 3 𝑁 ∈ ℕ
3 smndex1ibas.i . . 3 𝐼 = (𝑥 ∈ ℕ0 ↦ (𝑥 mod 𝑁))
4 smndex1ibas.g . . 3 𝐺 = (𝑛 ∈ (0..^𝑁) ↦ (𝑥 ∈ ℕ0𝑛))
5 smndex1mgm.b . . 3 𝐵 = ({𝐼} ∪ 𝑛 ∈ (0..^𝑁){(𝐺𝑛)})
6 smndex1mgm.s . . 3 𝑆 = (𝑀s 𝐵)
71, 2, 3, 4, 5, 6smndex1sgrp 18065 . 2 𝑆 ∈ Smgrp
8 nn0ex 11891 . . . . . . . . 9 0 ∈ V
98mptex 6963 . . . . . . . 8 (𝑥 ∈ ℕ0 ↦ (𝑥 mod 𝑁)) ∈ V
103, 9eqeltri 2886 . . . . . . 7 𝐼 ∈ V
1110snid 4561 . . . . . 6 𝐼 ∈ {𝐼}
12 elun1 4103 . . . . . 6 (𝐼 ∈ {𝐼} → 𝐼 ∈ ({𝐼} ∪ 𝑛 ∈ (0..^𝑁){(𝐺𝑛)}))
1311, 12ax-mp 5 . . . . 5 𝐼 ∈ ({𝐼} ∪ 𝑛 ∈ (0..^𝑁){(𝐺𝑛)})
1413, 5eleqtrri 2889 . . . 4 𝐼𝐵
15 id 22 . . . . 5 (𝐼𝐵𝐼𝐵)
16 coeq1 5692 . . . . . . . . 9 (𝑎 = 𝐼 → (𝑎𝑏) = (𝐼𝑏))
1716eqeq1d 2800 . . . . . . . 8 (𝑎 = 𝐼 → ((𝑎𝑏) = 𝑏 ↔ (𝐼𝑏) = 𝑏))
18 coeq2 5693 . . . . . . . . 9 (𝑎 = 𝐼 → (𝑏𝑎) = (𝑏𝐼))
1918eqeq1d 2800 . . . . . . . 8 (𝑎 = 𝐼 → ((𝑏𝑎) = 𝑏 ↔ (𝑏𝐼) = 𝑏))
2017, 19anbi12d 633 . . . . . . 7 (𝑎 = 𝐼 → (((𝑎𝑏) = 𝑏 ∧ (𝑏𝑎) = 𝑏) ↔ ((𝐼𝑏) = 𝑏 ∧ (𝑏𝐼) = 𝑏)))
2120ralbidv 3162 . . . . . 6 (𝑎 = 𝐼 → (∀𝑏𝐵 ((𝑎𝑏) = 𝑏 ∧ (𝑏𝑎) = 𝑏) ↔ ∀𝑏𝐵 ((𝐼𝑏) = 𝑏 ∧ (𝑏𝐼) = 𝑏)))
2221adantl 485 . . . . 5 ((𝐼𝐵𝑎 = 𝐼) → (∀𝑏𝐵 ((𝑎𝑏) = 𝑏 ∧ (𝑏𝑎) = 𝑏) ↔ ∀𝑏𝐵 ((𝐼𝑏) = 𝑏 ∧ (𝑏𝐼) = 𝑏)))
231, 2, 3, 4, 5, 6smndex1mndlem 18066 . . . . . . 7 (𝑏𝐵 → ((𝐼𝑏) = 𝑏 ∧ (𝑏𝐼) = 𝑏))
2423rgen 3116 . . . . . 6 𝑏𝐵 ((𝐼𝑏) = 𝑏 ∧ (𝑏𝐼) = 𝑏)
2524a1i 11 . . . . 5 (𝐼𝐵 → ∀𝑏𝐵 ((𝐼𝑏) = 𝑏 ∧ (𝑏𝐼) = 𝑏))
2615, 22, 25rspcedvd 3574 . . . 4 (𝐼𝐵 → ∃𝑎𝐵𝑏𝐵 ((𝑎𝑏) = 𝑏 ∧ (𝑏𝑎) = 𝑏))
2714, 26ax-mp 5 . . 3 𝑎𝐵𝑏𝐵 ((𝑎𝑏) = 𝑏 ∧ (𝑏𝑎) = 𝑏)
281, 2, 3, 4, 5smndex1basss 18062 . . . . . . 7 𝐵 ⊆ (Base‘𝑀)
29 ssel 3908 . . . . . . . 8 (𝐵 ⊆ (Base‘𝑀) → (𝑎𝐵𝑎 ∈ (Base‘𝑀)))
30 ssel 3908 . . . . . . . 8 (𝐵 ⊆ (Base‘𝑀) → (𝑏𝐵𝑏 ∈ (Base‘𝑀)))
3129, 30anim12d 611 . . . . . . 7 (𝐵 ⊆ (Base‘𝑀) → ((𝑎𝐵𝑏𝐵) → (𝑎 ∈ (Base‘𝑀) ∧ 𝑏 ∈ (Base‘𝑀))))
3228, 31ax-mp 5 . . . . . 6 ((𝑎𝐵𝑏𝐵) → (𝑎 ∈ (Base‘𝑀) ∧ 𝑏 ∈ (Base‘𝑀)))
33 eqid 2798 . . . . . . . . 9 (Base‘𝑀) = (Base‘𝑀)
34 snex 5297 . . . . . . . . . . . . 13 {𝐼} ∈ V
35 ovex 7168 . . . . . . . . . . . . . 14 (0..^𝑁) ∈ V
36 snex 5297 . . . . . . . . . . . . . 14 {(𝐺𝑛)} ∈ V
3735, 36iunex 7651 . . . . . . . . . . . . 13 𝑛 ∈ (0..^𝑁){(𝐺𝑛)} ∈ V
3834, 37unex 7449 . . . . . . . . . . . 12 ({𝐼} ∪ 𝑛 ∈ (0..^𝑁){(𝐺𝑛)}) ∈ V
395, 38eqeltri 2886 . . . . . . . . . . 11 𝐵 ∈ V
40 eqid 2798 . . . . . . . . . . . 12 (+g𝑀) = (+g𝑀)
416, 40ressplusg 16604 . . . . . . . . . . 11 (𝐵 ∈ V → (+g𝑀) = (+g𝑆))
4239, 41ax-mp 5 . . . . . . . . . 10 (+g𝑀) = (+g𝑆)
4342eqcomi 2807 . . . . . . . . 9 (+g𝑆) = (+g𝑀)
441, 33, 43efmndov 18038 . . . . . . . 8 ((𝑎 ∈ (Base‘𝑀) ∧ 𝑏 ∈ (Base‘𝑀)) → (𝑎(+g𝑆)𝑏) = (𝑎𝑏))
4544eqeq1d 2800 . . . . . . 7 ((𝑎 ∈ (Base‘𝑀) ∧ 𝑏 ∈ (Base‘𝑀)) → ((𝑎(+g𝑆)𝑏) = 𝑏 ↔ (𝑎𝑏) = 𝑏))
4643oveqi 7148 . . . . . . . . 9 (𝑏(+g𝑆)𝑎) = (𝑏(+g𝑀)𝑎)
471, 33, 40efmndov 18038 . . . . . . . . . 10 ((𝑏 ∈ (Base‘𝑀) ∧ 𝑎 ∈ (Base‘𝑀)) → (𝑏(+g𝑀)𝑎) = (𝑏𝑎))
4847ancoms 462 . . . . . . . . 9 ((𝑎 ∈ (Base‘𝑀) ∧ 𝑏 ∈ (Base‘𝑀)) → (𝑏(+g𝑀)𝑎) = (𝑏𝑎))
4946, 48syl5eq 2845 . . . . . . . 8 ((𝑎 ∈ (Base‘𝑀) ∧ 𝑏 ∈ (Base‘𝑀)) → (𝑏(+g𝑆)𝑎) = (𝑏𝑎))
5049eqeq1d 2800 . . . . . . 7 ((𝑎 ∈ (Base‘𝑀) ∧ 𝑏 ∈ (Base‘𝑀)) → ((𝑏(+g𝑆)𝑎) = 𝑏 ↔ (𝑏𝑎) = 𝑏))
5145, 50anbi12d 633 . . . . . 6 ((𝑎 ∈ (Base‘𝑀) ∧ 𝑏 ∈ (Base‘𝑀)) → (((𝑎(+g𝑆)𝑏) = 𝑏 ∧ (𝑏(+g𝑆)𝑎) = 𝑏) ↔ ((𝑎𝑏) = 𝑏 ∧ (𝑏𝑎) = 𝑏)))
5232, 51syl 17 . . . . 5 ((𝑎𝐵𝑏𝐵) → (((𝑎(+g𝑆)𝑏) = 𝑏 ∧ (𝑏(+g𝑆)𝑎) = 𝑏) ↔ ((𝑎𝑏) = 𝑏 ∧ (𝑏𝑎) = 𝑏)))
5352ralbidva 3161 . . . 4 (𝑎𝐵 → (∀𝑏𝐵 ((𝑎(+g𝑆)𝑏) = 𝑏 ∧ (𝑏(+g𝑆)𝑎) = 𝑏) ↔ ∀𝑏𝐵 ((𝑎𝑏) = 𝑏 ∧ (𝑏𝑎) = 𝑏)))
5453rexbiia 3209 . . 3 (∃𝑎𝐵𝑏𝐵 ((𝑎(+g𝑆)𝑏) = 𝑏 ∧ (𝑏(+g𝑆)𝑎) = 𝑏) ↔ ∃𝑎𝐵𝑏𝐵 ((𝑎𝑏) = 𝑏 ∧ (𝑏𝑎) = 𝑏))
5527, 54mpbir 234 . 2 𝑎𝐵𝑏𝐵 ((𝑎(+g𝑆)𝑏) = 𝑏 ∧ (𝑏(+g𝑆)𝑎) = 𝑏)
561, 2, 3, 4, 5, 6smndex1bas 18063 . . . 4 (Base‘𝑆) = 𝐵
5756eqcomi 2807 . . 3 𝐵 = (Base‘𝑆)
58 eqid 2798 . . 3 (+g𝑆) = (+g𝑆)
5957, 58ismnddef 17905 . 2 (𝑆 ∈ Mnd ↔ (𝑆 ∈ Smgrp ∧ ∃𝑎𝐵𝑏𝐵 ((𝑎(+g𝑆)𝑏) = 𝑏 ∧ (𝑏(+g𝑆)𝑎) = 𝑏)))
607, 55, 59mpbir2an 710 1 𝑆 ∈ Mnd
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399   = wceq 1538  wcel 2111  wral 3106  wrex 3107  Vcvv 3441  cun 3879  wss 3881  {csn 4525   ciun 4881  cmpt 5110  ccom 5523  cfv 6324  (class class class)co 7135  0cc0 10526  cn 11625  0cn0 11885  ..^cfzo 13028   mod cmo 13232  Basecbs 16475  s cress 16476  +gcplusg 16557  Smgrpcsgrp 17892  Mndcmnd 17903  EndoFMndcefmnd 18025
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 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-rep 5154  ax-sep 5167  ax-nul 5174  ax-pow 5231  ax-pr 5295  ax-un 7441  ax-cnex 10582  ax-resscn 10583  ax-1cn 10584  ax-icn 10585  ax-addcl 10586  ax-addrcl 10587  ax-mulcl 10588  ax-mulrcl 10589  ax-mulcom 10590  ax-addass 10591  ax-mulass 10592  ax-distr 10593  ax-i2m1 10594  ax-1ne0 10595  ax-1rid 10596  ax-rnegex 10597  ax-rrecex 10598  ax-cnre 10599  ax-pre-lttri 10600  ax-pre-lttrn 10601  ax-pre-ltadd 10602  ax-pre-mulgt0 10603  ax-pre-sup 10604
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 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-nel 3092  df-ral 3111  df-rex 3112  df-reu 3113  df-rmo 3114  df-rab 3115  df-v 3443  df-sbc 3721  df-csb 3829  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-pss 3900  df-nul 4244  df-if 4426  df-pw 4499  df-sn 4526  df-pr 4528  df-tp 4530  df-op 4532  df-uni 4801  df-int 4839  df-iun 4883  df-br 5031  df-opab 5093  df-mpt 5111  df-tr 5137  df-id 5425  df-eprel 5430  df-po 5438  df-so 5439  df-fr 5478  df-we 5480  df-xp 5525  df-rel 5526  df-cnv 5527  df-co 5528  df-dm 5529  df-rn 5530  df-res 5531  df-ima 5532  df-pred 6116  df-ord 6162  df-on 6163  df-lim 6164  df-suc 6165  df-iota 6283  df-fun 6326  df-fn 6327  df-f 6328  df-f1 6329  df-fo 6330  df-f1o 6331  df-fv 6332  df-riota 7093  df-ov 7138  df-oprab 7139  df-mpo 7140  df-om 7561  df-1st 7671  df-2nd 7672  df-wrecs 7930  df-recs 7991  df-rdg 8029  df-1o 8085  df-oadd 8089  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-pnf 10666  df-mnf 10667  df-xr 10668  df-ltxr 10669  df-le 10670  df-sub 10861  df-neg 10862  df-div 11287  df-nn 11626  df-2 11688  df-3 11689  df-4 11690  df-5 11691  df-6 11692  df-7 11693  df-8 11694  df-9 11695  df-n0 11886  df-z 11970  df-uz 12232  df-rp 12378  df-fz 12886  df-fzo 13029  df-fl 13157  df-mod 13233  df-struct 16477  df-ndx 16478  df-slot 16479  df-base 16481  df-sets 16482  df-ress 16483  df-plusg 16570  df-tset 16576  df-mgm 17844  df-sgrp 17893  df-mnd 17904  df-efmnd 18026
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator