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

Theorem mgm2nsgrplem1 18653
Description: Lemma 1 for mgm2nsgrp 18657: 𝑀 is a magma, even if 𝐴 = 𝐵 (𝑀 is the trivial magma in this case, see mgmb1mgm1 18436). (Contributed by AV, 27-Jan-2020.)
Hypotheses
Ref Expression
mgm2nsgrp.s 𝑆 = {𝐴, 𝐵}
mgm2nsgrp.b (Base‘𝑀) = 𝑆
mgm2nsgrp.o (+g𝑀) = (𝑥𝑆, 𝑦𝑆 ↦ if((𝑥 = 𝐴𝑦 = 𝐴), 𝐵, 𝐴))
Assertion
Ref Expression
mgm2nsgrplem1 ((𝐴𝑉𝐵𝑊) → 𝑀 ∈ Mgm)
Distinct variable groups:   𝑥,𝑆,𝑦   𝑥,𝐴,𝑦   𝑥,𝐵,𝑦   𝑥,𝑀
Allowed substitution hints:   𝑀(𝑦)   𝑉(𝑥,𝑦)   𝑊(𝑥,𝑦)

Proof of Theorem mgm2nsgrplem1
StepHypRef Expression
1 prid1g 4712 . . 3 (𝐴𝑉𝐴 ∈ {𝐴, 𝐵})
2 mgm2nsgrp.s . . 3 𝑆 = {𝐴, 𝐵}
31, 2eleqtrrdi 2849 . 2 (𝐴𝑉𝐴𝑆)
4 prid2g 4713 . . 3 (𝐵𝑊𝐵 ∈ {𝐴, 𝐵})
54, 2eleqtrrdi 2849 . 2 (𝐵𝑊𝐵𝑆)
6 mgm2nsgrp.b . . . 4 (Base‘𝑀) = 𝑆
76eqcomi 2746 . . 3 𝑆 = (Base‘𝑀)
8 mgm2nsgrp.o . . 3 (+g𝑀) = (𝑥𝑆, 𝑦𝑆 ↦ if((𝑥 = 𝐴𝑦 = 𝐴), 𝐵, 𝐴))
9 ne0i 4285 . . . 4 (𝐴𝑆𝑆 ≠ ∅)
109adantr 482 . . 3 ((𝐴𝑆𝐵𝑆) → 𝑆 ≠ ∅)
11 simplr 767 . . 3 (((𝐴𝑆𝐵𝑆) ∧ (𝑥𝑆𝑦𝑆)) → 𝐵𝑆)
12 simpll 765 . . 3 (((𝐴𝑆𝐵𝑆) ∧ (𝑥𝑆𝑦𝑆)) → 𝐴𝑆)
137, 8, 10, 11, 12opifismgm 18440 . 2 ((𝐴𝑆𝐵𝑆) → 𝑀 ∈ Mgm)
143, 5, 13syl2an 597 1 ((𝐴𝑉𝐵𝑊) → 𝑀 ∈ Mgm)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 397   = wceq 1541  wcel 2106  wne 2941  c0 4273  ifcif 4477  {cpr 4579  cfv 6483  cmpo 7343  Basecbs 17009  +gcplusg 17059  Mgmcmgm 18421
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 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2708  ax-sep 5247  ax-nul 5254  ax-pr 5376  ax-un 7654
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 846  df-3an 1089  df-tru 1544  df-fal 1554  df-ex 1782  df-nf 1786  df-sb 2068  df-mo 2539  df-eu 2568  df-clab 2715  df-cleq 2729  df-clel 2815  df-nfc 2887  df-ne 2942  df-ral 3063  df-rex 3072  df-rab 3405  df-v 3444  df-sbc 3731  df-csb 3847  df-dif 3904  df-un 3906  df-in 3908  df-ss 3918  df-nul 4274  df-if 4478  df-sn 4578  df-pr 4580  df-op 4584  df-uni 4857  df-iun 4947  df-br 5097  df-opab 5159  df-mpt 5180  df-id 5522  df-xp 5630  df-rel 5631  df-cnv 5632  df-co 5633  df-dm 5634  df-rn 5635  df-res 5636  df-ima 5637  df-iota 6435  df-fun 6485  df-fn 6486  df-f 6487  df-fv 6491  df-ov 7344  df-oprab 7345  df-mpo 7346  df-1st 7903  df-2nd 7904  df-mgm 18423
This theorem is referenced by:  mgm2nsgrp  18657  mgmnsgrpex  18666
  Copyright terms: Public domain W3C validator