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

Theorem mgm2nsgrplem1 19117
Description: Lemma 1 for mgm2nsgrp 19121: 𝑀 is a magma, even if 𝐴 = 𝐵 (𝑀 is the trivial magma in this case, see mgmb1mgm1 18833). (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 4720 . . 3 (𝐴 ∈ 𝑉 → 𝐴 ∈ {𝐴, 𝐵})
2 mgm2nsgrp.s . . 3 𝑆 = {𝐴, 𝐵}
31, 2eleqtrrdi 2871 . 2 (𝐴 ∈ 𝑉 → 𝐴 ∈ 𝑆)
4 prid2g 4721 . . 3 (𝐵 ∈ 𝑊 → 𝐵 ∈ {𝐴, 𝐵})
54, 2eleqtrrdi 2871 . 2 (𝐵 ∈ 𝑊 → 𝐵 ∈ 𝑆)
6 mgm2nsgrp.b . . . 4 (Base‘𝑀) = 𝑆
76eqcomi 2769 . . 3 𝑆 = (Base‘𝑀)
8 mgm2nsgrp.o . . 3 (+g‘𝑀) = (𝑥 ∈ 𝑆, 𝑦 ∈ 𝑆 ↦ if((𝑥 = 𝐴 ∧ 𝑦 = 𝐴), 𝐵, 𝐴))
9 ne0i 4286 . . . 4 (𝐴 ∈ 𝑆 → 𝑆 ≠ ∅)
109adantr 486 . . 3 ((𝐴 ∈ 𝑆 ∧ 𝐵 ∈ 𝑆) → 𝑆 ≠ ∅)
11 simplr 781 . . 3 (((𝐴 ∈ 𝑆 ∧ 𝐵 ∈ 𝑆) ∧ (𝑥 ∈ 𝑆 ∧ 𝑦 ∈ 𝑆)) → 𝐵 ∈ 𝑆)
12 simpll 779 . . 3 (((𝐴 ∈ 𝑆 ∧ 𝐵 ∈ 𝑆) ∧ (𝑥 ∈ 𝑆 ∧ 𝑦 ∈ 𝑆)) → 𝐴 ∈ 𝑆)
137, 8, 10, 11, 12opifismgm 18837 . 2 ((𝐴 ∈ 𝑆 ∧ 𝐵 ∈ 𝑆) → 𝑀 ∈ Mgm)
143, 5, 13syl2an 608 1 ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊) → 𝑀 ∈ Mgm)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1569   ∈ wcel 2144   ≠ wne 2955  ∅c0 4278  ifcif 4481  {cpr 4585  ‘cfv 6538   ∈ cmpo 7422  Basecbs 17387  +gcplusg 17428  Mgmcmgm 18814
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-sep 5248  ax-nul 5259  ax-pr 5390  ax-un 7751
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-ral 3077  df-rex 3087  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3847  df-ss 3896  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-sn 4584  df-pr 4586  df-op 4590  df-uni 4867  df-iun 4952  df-br 5103  df-opab 5167  df-mpt 5186  df-id 5545  df-xp 5656  df-rel 5657  df-cnv 5658  df-co 5659  df-dm 5660  df-rn 5661  df-res 5662  df-ima 5663  df-iota 6494  df-fun 6540  df-fn 6541  df-f 6542  df-fv 6546  df-ov 7423  df-oprab 7424  df-mpo 7425  df-1st 8001  df-2nd 8002  df-mgm 18816
This theorem is used by:  mgm2nsgrp  19121  mgmnsgrpex  19130
  Copyright terms: Public domain W3C validator