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

Theorem mgm2nsgrplem2 18558
Description: Lemma 2 for mgm2nsgrp 18561. (Contributed by AV, 27-Jan-2020.)
Hypotheses
Ref Expression
mgm2nsgrp.s 𝑆 = {𝐴, 𝐵}
mgm2nsgrp.b (Base‘𝑀) = 𝑆
mgm2nsgrp.o (+g𝑀) = (𝑥𝑆, 𝑦𝑆 ↦ if((𝑥 = 𝐴𝑦 = 𝐴), 𝐵, 𝐴))
mgm2nsgrp.p = (+g𝑀)
Assertion
Ref Expression
mgm2nsgrplem2 ((𝐴𝑉𝐵𝑊) → ((𝐴 𝐴) 𝐵) = 𝐴)
Distinct variable groups:   𝑥,𝑆,𝑦   𝑥,𝐴,𝑦   𝑥,𝐵,𝑦   𝑥,𝑀   𝑥, ,𝑦
Allowed substitution hints:   𝑀(𝑦)   𝑉(𝑥,𝑦)   𝑊(𝑥,𝑦)

Proof of Theorem mgm2nsgrplem2
StepHypRef Expression
1 prid1g 4696 . . 3 (𝐴𝑉𝐴 ∈ {𝐴, 𝐵})
2 mgm2nsgrp.s . . 3 𝑆 = {𝐴, 𝐵}
31, 2eleqtrrdi 2850 . 2 (𝐴𝑉𝐴𝑆)
4 prid2g 4697 . . 3 (𝐵𝑊𝐵 ∈ {𝐴, 𝐵})
54, 2eleqtrrdi 2850 . 2 (𝐵𝑊𝐵𝑆)
6 mgm2nsgrp.p . . . . 5 = (+g𝑀)
7 mgm2nsgrp.o . . . . 5 (+g𝑀) = (𝑥𝑆, 𝑦𝑆 ↦ if((𝑥 = 𝐴𝑦 = 𝐴), 𝐵, 𝐴))
86, 7eqtri 2766 . . . 4 = (𝑥𝑆, 𝑦𝑆 ↦ if((𝑥 = 𝐴𝑦 = 𝐴), 𝐵, 𝐴))
98a1i 11 . . 3 ((𝐴𝑆𝐵𝑆) → = (𝑥𝑆, 𝑦𝑆 ↦ if((𝑥 = 𝐴𝑦 = 𝐴), 𝐵, 𝐴)))
10 ifeq1 4463 . . . . . . 7 (𝐵 = 𝐴 → if((𝑥 = 𝐴𝑦 = 𝐴), 𝐵, 𝐴) = if((𝑥 = 𝐴𝑦 = 𝐴), 𝐴, 𝐴))
11 ifid 4499 . . . . . . 7 if((𝑥 = 𝐴𝑦 = 𝐴), 𝐴, 𝐴) = 𝐴
1210, 11eqtrdi 2794 . . . . . 6 (𝐵 = 𝐴 → if((𝑥 = 𝐴𝑦 = 𝐴), 𝐵, 𝐴) = 𝐴)
1312a1d 25 . . . . 5 (𝐵 = 𝐴 → (𝑦 = 𝐵 → if((𝑥 = 𝐴𝑦 = 𝐴), 𝐵, 𝐴) = 𝐴))
14 eqeq1 2742 . . . . . . . . . . 11 (𝑦 = 𝐵 → (𝑦 = 𝐴𝐵 = 𝐴))
1514bicomd 222 . . . . . . . . . 10 (𝑦 = 𝐵 → (𝐵 = 𝐴𝑦 = 𝐴))
1615notbid 318 . . . . . . . . 9 (𝑦 = 𝐵 → (¬ 𝐵 = 𝐴 ↔ ¬ 𝑦 = 𝐴))
1716biimpac 479 . . . . . . . 8 ((¬ 𝐵 = 𝐴𝑦 = 𝐵) → ¬ 𝑦 = 𝐴)
1817intnand 489 . . . . . . 7 ((¬ 𝐵 = 𝐴𝑦 = 𝐵) → ¬ (𝑥 = 𝐴𝑦 = 𝐴))
1918iffalsed 4470 . . . . . 6 ((¬ 𝐵 = 𝐴𝑦 = 𝐵) → if((𝑥 = 𝐴𝑦 = 𝐴), 𝐵, 𝐴) = 𝐴)
2019ex 413 . . . . 5 𝐵 = 𝐴 → (𝑦 = 𝐵 → if((𝑥 = 𝐴𝑦 = 𝐴), 𝐵, 𝐴) = 𝐴))
2113, 20pm2.61i 182 . . . 4 (𝑦 = 𝐵 → if((𝑥 = 𝐴𝑦 = 𝐴), 𝐵, 𝐴) = 𝐴)
2221ad2antll 726 . . 3 (((𝐴𝑆𝐵𝑆) ∧ (𝑥 = (𝐴 𝐴) ∧ 𝑦 = 𝐵)) → if((𝑥 = 𝐴𝑦 = 𝐴), 𝐵, 𝐴) = 𝐴)
23 iftrue 4465 . . . . . 6 ((𝑥 = 𝐴𝑦 = 𝐴) → if((𝑥 = 𝐴𝑦 = 𝐴), 𝐵, 𝐴) = 𝐵)
2423adantl 482 . . . . 5 (((𝐴𝑆𝐵𝑆) ∧ (𝑥 = 𝐴𝑦 = 𝐴)) → if((𝑥 = 𝐴𝑦 = 𝐴), 𝐵, 𝐴) = 𝐵)
25 simpl 483 . . . . 5 ((𝐴𝑆𝐵𝑆) → 𝐴𝑆)
26 simpr 485 . . . . 5 ((𝐴𝑆𝐵𝑆) → 𝐵𝑆)
279, 24, 25, 25, 26ovmpod 7425 . . . 4 ((𝐴𝑆𝐵𝑆) → (𝐴 𝐴) = 𝐵)
2827, 26eqeltrd 2839 . . 3 ((𝐴𝑆𝐵𝑆) → (𝐴 𝐴) ∈ 𝑆)
299, 22, 28, 26, 25ovmpod 7425 . 2 ((𝐴𝑆𝐵𝑆) → ((𝐴 𝐴) 𝐵) = 𝐴)
303, 5, 29syl2an 596 1 ((𝐴𝑉𝐵𝑊) → ((𝐴 𝐴) 𝐵) = 𝐴)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 396   = wceq 1539  wcel 2106  ifcif 4459  {cpr 4563  cfv 6433  (class class class)co 7275  cmpo 7277  Basecbs 16912  +gcplusg 16962
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  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 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-sbc 3717  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-br 5075  df-opab 5137  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-iota 6391  df-fun 6435  df-fv 6441  df-ov 7278  df-oprab 7279  df-mpo 7280
This theorem is referenced by:  mgm2nsgrplem4  18560
  Copyright terms: Public domain W3C validator