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

Theorem mgm2nsgrplem1 19169
Description: Lemma 1 for mgm2nsgrp 19173: 𝑀 is a magma, even if 𝐴 = 𝐵 (𝑀 is the trivial magma in this case, see mgmb1mgm1 18885). (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 4722 . . 3 (𝐴 ∈ 𝑉 → 𝐴 ∈ {𝐴, 𝐵})
2 mgm2nsgrp.s . . 3 𝑆 = {𝐴, 𝐵}
31, 2eleqtrrdi 2878 . 2 (𝐴 ∈ 𝑉 → 𝐴 ∈ 𝑆)
4 prid2g 4723 . . 3 (𝐵 ∈ 𝑊 → 𝐵 ∈ {𝐴, 𝐵})
54, 2eleqtrrdi 2878 . 2 (𝐵 ∈ 𝑊 → 𝐵 ∈ 𝑆)
6 mgm2nsgrp.b . . . 4 (Base‘𝑀) = 𝑆
76eqcomi 2775 . . 3 𝑆 = (Base‘𝑀)
8 mgm2nsgrp.o . . 3 (+g‘𝑀) = (𝑥 ∈ 𝑆, 𝑦 ∈ 𝑆 ↦ if((𝑥 = 𝐴 ∧ 𝑦 = 𝐴), 𝐵, 𝐴))
9 ne0i 4289 . . . 4 (𝐴 ∈ 𝑆 → 𝑆 ≠ ∅)
109adantr 486 . . 3 ((𝐴 ∈ 𝑆 ∧ 𝐵 ∈ 𝑆) → 𝑆 ≠ ∅)
11 simplr 781 . . 3 (((𝐴 ∈ 𝑆 ∧ 𝐵 ∈ 𝑆) ∧ (𝑥 ∈ 𝑆 ∧ 𝑦 ∈ 𝑆)) → 𝐵 ∈ 𝑆)
12 simpll 779 . . 3 (((𝐴 ∈ 𝑆 ∧ 𝐵 ∈ 𝑆) ∧ (𝑥 ∈ 𝑆 ∧ 𝑦 ∈ 𝑆)) → 𝐴 ∈ 𝑆)
137, 8, 10, 11, 12opifismgm 18889 . 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 1572   ∈ wcel 2150   ≠ wne 2962  ∅c0 4280  ifcif 4484  {cpr 4589  ‘cfv 6565   ∈ cmpo 7452  Basecbs 17433  +gcplusg 17474  Mgmcmgm 18866
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2152  ax-9 2160  ax-10 2183  ax-11 2200  ax-12 2219  ax-ext 2738  ax-sep 5254  ax-nul 5265  ax-pr 5397  ax-un 7782
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2104  df-mo 2570  df-eu 2600  df-clab 2745  df-cleq 2758  df-clel 2842  df-nfc 2916  df-ne 2963  df-ral 3084  df-rex 3094  df-rab 3416  df-v 3455  df-sbc 3742  df-csb 3851  df-ss 3900  df-dif 4049  df-in 4093  df-un 4153  df-nul 4281  df-if 4485  df-sn 4588  df-pr 4590  df-op 4840  df-uni 4872  df-iun 4957  df-br 5108  df-opab 5173  df-mpt 5192  df-id 5552  df-xp 5663  df-rel 5664  df-cnv 5665  df-co 5666  df-dm 5667  df-rn 5668  df-res 5669  df-ima 5670  df-iota 6519  df-fun 6567  df-fn 6568  df-f 6569  df-fv 6573  df-ov 7453  df-oprab 7454  df-mpo 7455  df-1st 8034  df-2nd 8035  df-mgm 18868
This theorem is used by:  mgm2nsgrp  19173  mgmnsgrpex  19182
  Copyright terms: Public domain W3C validator