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

Theorem sgrp2rid2 18480
Description: A small semigroup (with two elements) with two right identities which are different if 𝐴𝐵. (Contributed by AV, 10-Feb-2020.)
Hypotheses
Ref Expression
mgm2nsgrp.s 𝑆 = {𝐴, 𝐵}
mgm2nsgrp.b (Base‘𝑀) = 𝑆
sgrp2nmnd.o (+g𝑀) = (𝑥𝑆, 𝑦𝑆 ↦ if(𝑥 = 𝐴, 𝐴, 𝐵))
sgrp2nmnd.p = (+g𝑀)
Assertion
Ref Expression
sgrp2rid2 ((𝐴𝑉𝐵𝑊) → ∀𝑥𝑆𝑦𝑆 (𝑦 𝑥) = 𝑦)
Distinct variable groups:   𝑥,𝑆,𝑦   𝑥,𝐴,𝑦   𝑥,𝐵,𝑦   𝑥,𝑀   𝑥,𝑉   𝑥,𝑊   𝑥, ,𝑦
Allowed substitution hints:   𝑀(𝑦)   𝑉(𝑦)   𝑊(𝑦)

Proof of Theorem sgrp2rid2
StepHypRef Expression
1 prid1g 4693 . . . 4 (𝐴𝑉𝐴 ∈ {𝐴, 𝐵})
2 mgm2nsgrp.s . . . 4 𝑆 = {𝐴, 𝐵}
31, 2eleqtrrdi 2850 . . 3 (𝐴𝑉𝐴𝑆)
4 prid2g 4694 . . . 4 (𝐵𝑊𝐵 ∈ {𝐴, 𝐵})
54, 2eleqtrrdi 2850 . . 3 (𝐵𝑊𝐵𝑆)
6 simpl 482 . . . . 5 ((𝐴𝑆𝐵𝑆) → 𝐴𝑆)
7 mgm2nsgrp.b . . . . . 6 (Base‘𝑀) = 𝑆
8 sgrp2nmnd.o . . . . . 6 (+g𝑀) = (𝑥𝑆, 𝑦𝑆 ↦ if(𝑥 = 𝐴, 𝐴, 𝐵))
9 sgrp2nmnd.p . . . . . 6 = (+g𝑀)
102, 7, 8, 9sgrp2nmndlem2 18478 . . . . 5 ((𝐴𝑆𝐴𝑆) → (𝐴 𝐴) = 𝐴)
116, 10syldan 590 . . . 4 ((𝐴𝑆𝐵𝑆) → (𝐴 𝐴) = 𝐴)
12 oveq1 7262 . . . . . . 7 (𝐴 = 𝐵 → (𝐴 𝐴) = (𝐵 𝐴))
13 id 22 . . . . . . 7 (𝐴 = 𝐵𝐴 = 𝐵)
1412, 13eqeq12d 2754 . . . . . 6 (𝐴 = 𝐵 → ((𝐴 𝐴) = 𝐴 ↔ (𝐵 𝐴) = 𝐵))
1511, 14syl5ib 243 . . . . 5 (𝐴 = 𝐵 → ((𝐴𝑆𝐵𝑆) → (𝐵 𝐴) = 𝐵))
16 simprl 767 . . . . . . 7 ((¬ 𝐴 = 𝐵 ∧ (𝐴𝑆𝐵𝑆)) → 𝐴𝑆)
17 simprr 769 . . . . . . 7 ((¬ 𝐴 = 𝐵 ∧ (𝐴𝑆𝐵𝑆)) → 𝐵𝑆)
18 neqne 2950 . . . . . . . 8 𝐴 = 𝐵𝐴𝐵)
1918adantr 480 . . . . . . 7 ((¬ 𝐴 = 𝐵 ∧ (𝐴𝑆𝐵𝑆)) → 𝐴𝐵)
202, 7, 8, 9sgrp2nmndlem3 18479 . . . . . . 7 ((𝐴𝑆𝐵𝑆𝐴𝐵) → (𝐵 𝐴) = 𝐵)
2116, 17, 19, 20syl3anc 1369 . . . . . 6 ((¬ 𝐴 = 𝐵 ∧ (𝐴𝑆𝐵𝑆)) → (𝐵 𝐴) = 𝐵)
2221ex 412 . . . . 5 𝐴 = 𝐵 → ((𝐴𝑆𝐵𝑆) → (𝐵 𝐴) = 𝐵))
2315, 22pm2.61i 182 . . . 4 ((𝐴𝑆𝐵𝑆) → (𝐵 𝐴) = 𝐵)
242, 7, 8, 9sgrp2nmndlem2 18478 . . . . 5 ((𝐴𝑆𝐵𝑆) → (𝐴 𝐵) = 𝐴)
2513, 13oveq12d 7273 . . . . . . . 8 (𝐴 = 𝐵 → (𝐴 𝐴) = (𝐵 𝐵))
2625, 13eqeq12d 2754 . . . . . . 7 (𝐴 = 𝐵 → ((𝐴 𝐴) = 𝐴 ↔ (𝐵 𝐵) = 𝐵))
2711, 26syl5ib 243 . . . . . 6 (𝐴 = 𝐵 → ((𝐴𝑆𝐵𝑆) → (𝐵 𝐵) = 𝐵))
282, 7, 8, 9sgrp2nmndlem3 18479 . . . . . . . 8 ((𝐵𝑆𝐵𝑆𝐴𝐵) → (𝐵 𝐵) = 𝐵)
2917, 17, 19, 28syl3anc 1369 . . . . . . 7 ((¬ 𝐴 = 𝐵 ∧ (𝐴𝑆𝐵𝑆)) → (𝐵 𝐵) = 𝐵)
3029ex 412 . . . . . 6 𝐴 = 𝐵 → ((𝐴𝑆𝐵𝑆) → (𝐵 𝐵) = 𝐵))
3127, 30pm2.61i 182 . . . . 5 ((𝐴𝑆𝐵𝑆) → (𝐵 𝐵) = 𝐵)
3224, 31jca 511 . . . 4 ((𝐴𝑆𝐵𝑆) → ((𝐴 𝐵) = 𝐴 ∧ (𝐵 𝐵) = 𝐵))
3311, 23, 32jca31 514 . . 3 ((𝐴𝑆𝐵𝑆) → (((𝐴 𝐴) = 𝐴 ∧ (𝐵 𝐴) = 𝐵) ∧ ((𝐴 𝐵) = 𝐴 ∧ (𝐵 𝐵) = 𝐵)))
343, 5, 33syl2an 595 . 2 ((𝐴𝑉𝐵𝑊) → (((𝐴 𝐴) = 𝐴 ∧ (𝐵 𝐴) = 𝐵) ∧ ((𝐴 𝐵) = 𝐴 ∧ (𝐵 𝐵) = 𝐵)))
352raleqi 3337 . . . . 5 (∀𝑦𝑆 (𝑦 𝑥) = 𝑦 ↔ ∀𝑦 ∈ {𝐴, 𝐵} (𝑦 𝑥) = 𝑦)
36 oveq1 7262 . . . . . . 7 (𝑦 = 𝐴 → (𝑦 𝑥) = (𝐴 𝑥))
37 id 22 . . . . . . 7 (𝑦 = 𝐴𝑦 = 𝐴)
3836, 37eqeq12d 2754 . . . . . 6 (𝑦 = 𝐴 → ((𝑦 𝑥) = 𝑦 ↔ (𝐴 𝑥) = 𝐴))
39 oveq1 7262 . . . . . . 7 (𝑦 = 𝐵 → (𝑦 𝑥) = (𝐵 𝑥))
40 id 22 . . . . . . 7 (𝑦 = 𝐵𝑦 = 𝐵)
4139, 40eqeq12d 2754 . . . . . 6 (𝑦 = 𝐵 → ((𝑦 𝑥) = 𝑦 ↔ (𝐵 𝑥) = 𝐵))
4238, 41ralprg 4627 . . . . 5 ((𝐴𝑉𝐵𝑊) → (∀𝑦 ∈ {𝐴, 𝐵} (𝑦 𝑥) = 𝑦 ↔ ((𝐴 𝑥) = 𝐴 ∧ (𝐵 𝑥) = 𝐵)))
4335, 42syl5bb 282 . . . 4 ((𝐴𝑉𝐵𝑊) → (∀𝑦𝑆 (𝑦 𝑥) = 𝑦 ↔ ((𝐴 𝑥) = 𝐴 ∧ (𝐵 𝑥) = 𝐵)))
4443ralbidv 3120 . . 3 ((𝐴𝑉𝐵𝑊) → (∀𝑥𝑆𝑦𝑆 (𝑦 𝑥) = 𝑦 ↔ ∀𝑥𝑆 ((𝐴 𝑥) = 𝐴 ∧ (𝐵 𝑥) = 𝐵)))
452raleqi 3337 . . . 4 (∀𝑥𝑆 ((𝐴 𝑥) = 𝐴 ∧ (𝐵 𝑥) = 𝐵) ↔ ∀𝑥 ∈ {𝐴, 𝐵} ((𝐴 𝑥) = 𝐴 ∧ (𝐵 𝑥) = 𝐵))
46 oveq2 7263 . . . . . . 7 (𝑥 = 𝐴 → (𝐴 𝑥) = (𝐴 𝐴))
4746eqeq1d 2740 . . . . . 6 (𝑥 = 𝐴 → ((𝐴 𝑥) = 𝐴 ↔ (𝐴 𝐴) = 𝐴))
48 oveq2 7263 . . . . . . 7 (𝑥 = 𝐴 → (𝐵 𝑥) = (𝐵 𝐴))
4948eqeq1d 2740 . . . . . 6 (𝑥 = 𝐴 → ((𝐵 𝑥) = 𝐵 ↔ (𝐵 𝐴) = 𝐵))
5047, 49anbi12d 630 . . . . 5 (𝑥 = 𝐴 → (((𝐴 𝑥) = 𝐴 ∧ (𝐵 𝑥) = 𝐵) ↔ ((𝐴 𝐴) = 𝐴 ∧ (𝐵 𝐴) = 𝐵)))
51 oveq2 7263 . . . . . . 7 (𝑥 = 𝐵 → (𝐴 𝑥) = (𝐴 𝐵))
5251eqeq1d 2740 . . . . . 6 (𝑥 = 𝐵 → ((𝐴 𝑥) = 𝐴 ↔ (𝐴 𝐵) = 𝐴))
53 oveq2 7263 . . . . . . 7 (𝑥 = 𝐵 → (𝐵 𝑥) = (𝐵 𝐵))
5453eqeq1d 2740 . . . . . 6 (𝑥 = 𝐵 → ((𝐵 𝑥) = 𝐵 ↔ (𝐵 𝐵) = 𝐵))
5552, 54anbi12d 630 . . . . 5 (𝑥 = 𝐵 → (((𝐴 𝑥) = 𝐴 ∧ (𝐵 𝑥) = 𝐵) ↔ ((𝐴 𝐵) = 𝐴 ∧ (𝐵 𝐵) = 𝐵)))
5650, 55ralprg 4627 . . . 4 ((𝐴𝑉𝐵𝑊) → (∀𝑥 ∈ {𝐴, 𝐵} ((𝐴 𝑥) = 𝐴 ∧ (𝐵 𝑥) = 𝐵) ↔ (((𝐴 𝐴) = 𝐴 ∧ (𝐵 𝐴) = 𝐵) ∧ ((𝐴 𝐵) = 𝐴 ∧ (𝐵 𝐵) = 𝐵))))
5745, 56syl5bb 282 . . 3 ((𝐴𝑉𝐵𝑊) → (∀𝑥𝑆 ((𝐴 𝑥) = 𝐴 ∧ (𝐵 𝑥) = 𝐵) ↔ (((𝐴 𝐴) = 𝐴 ∧ (𝐵 𝐴) = 𝐵) ∧ ((𝐴 𝐵) = 𝐴 ∧ (𝐵 𝐵) = 𝐵))))
5844, 57bitrd 278 . 2 ((𝐴𝑉𝐵𝑊) → (∀𝑥𝑆𝑦𝑆 (𝑦 𝑥) = 𝑦 ↔ (((𝐴 𝐴) = 𝐴 ∧ (𝐵 𝐴) = 𝐵) ∧ ((𝐴 𝐵) = 𝐴 ∧ (𝐵 𝐵) = 𝐵))))
5934, 58mpbird 256 1 ((𝐴𝑉𝐵𝑊) → ∀𝑥𝑆𝑦𝑆 (𝑦 𝑥) = 𝑦)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 395   = wceq 1539  wcel 2108  wne 2942  wral 3063  ifcif 4456  {cpr 4560  cfv 6418  (class class class)co 7255  cmpo 7257  Basecbs 16840  +gcplusg 16888
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-sbc 3712  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-opab 5133  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-iota 6376  df-fun 6420  df-fv 6426  df-ov 7258  df-oprab 7259  df-mpo 7260
This theorem is referenced by:  sgrp2rid2ex  18481
  Copyright terms: Public domain W3C validator