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

Theorem mgm2nsgrplem1 19143
Description: Lemma 1 for mgm2nsgrp 19147: 𝑀 is a magma, even if 𝐴 = 𝐵 (𝑀 is the trivial magma in this case, see mgmb1mgm1 18859). (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 4721 . . 3 (𝐴 ∈ 𝑉 → 𝐴 ∈ {𝐴, 𝐵})
2 mgm2nsgrp.s . . 3 𝑆 = {𝐴, 𝐵}
31, 2eleqtrrdi 2875 . 2 (𝐴 ∈ 𝑉 → 𝐴 ∈ 𝑆)
4 prid2g 4722 . . 3 (𝐵 ∈ 𝑊 → 𝐵 ∈ {𝐴, 𝐵})
54, 2eleqtrrdi 2875 . 2 (𝐵 ∈ 𝑊 → 𝐵 ∈ 𝑆)
6 mgm2nsgrp.b . . . 4 (Base‘𝑀) = 𝑆
76eqcomi 2772 . . 3 𝑆 = (Base‘𝑀)
8 mgm2nsgrp.o . . 3 (+g‘𝑀) = (𝑥 ∈ 𝑆, 𝑦 ∈ 𝑆 ↦ if((𝑥 = 𝐴 ∧ 𝑦 = 𝐴), 𝐵, 𝐴))
9 ne0i 4290 . . . 4 (𝐴 ∈ 𝑆 → 𝑆 ≠ ∅)
109adantr 486 . . 3 ((𝐴 ∈ 𝑆 ∧ 𝐵 ∈ 𝑆) → 𝑆 ≠ ∅)
11 simplr 781 . . 3 (((𝐴 ∈ 𝑆 ∧ 𝐵 ∈ 𝑆) ∧ (𝑥 ∈ 𝑆 ∧ 𝑦 ∈ 𝑆)) → 𝐵 ∈ 𝑆)
12 simpll 779 . . 3 (((𝐴 ∈ 𝑆 ∧ 𝐵 ∈ 𝑆) ∧ (𝑥 ∈ 𝑆 ∧ 𝑦 ∈ 𝑆)) → 𝐴 ∈ 𝑆)
137, 8, 10, 11, 12opifismgm 18863 . 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 1570   ∈ wcel 2147   ≠ wne 2959  ∅c0 4281  ifcif 4485  {cpr 4590  ‘cfv 6555   ∈ cmpo 7442  Basecbs 17413  +gcplusg 17454  Mgmcmgm 18840
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-sep 5252  ax-nul 5263  ax-pr 5395  ax-un 7772
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-ral 3081  df-rex 3091  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-iun 4956  df-br 5107  df-opab 5171  df-mpt 5190  df-id 5550  df-xp 5661  df-rel 5662  df-cnv 5663  df-co 5664  df-dm 5665  df-rn 5666  df-res 5667  df-ima 5668  df-iota 6509  df-fun 6557  df-fn 6558  df-f 6559  df-fv 6563  df-ov 7443  df-oprab 7444  df-mpo 7445  df-1st 8022  df-2nd 8023  df-mgm 18842
This theorem is used by:  mgm2nsgrp  19147  mgmnsgrpex  19156
  Copyright terms: Public domain W3C validator