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

Theorem sgrp2rid2 18353
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 4676 . . . 4 (𝐴𝑉𝐴 ∈ {𝐴, 𝐵})
2 mgm2nsgrp.s . . . 4 𝑆 = {𝐴, 𝐵}
31, 2eleqtrrdi 2849 . . 3 (𝐴𝑉𝐴𝑆)
4 prid2g 4677 . . . 4 (𝐵𝑊𝐵 ∈ {𝐴, 𝐵})
54, 2eleqtrrdi 2849 . . 3 (𝐵𝑊𝐵𝑆)
6 simpl 486 . . . . 5 ((𝐴𝑆𝐵𝑆) → 𝐴𝑆)
7 mgm2nsgrp.b . . . . . 6 (Base‘𝑀) = 𝑆
8 sgrp2nmnd.o . . . . . 6 (+g𝑀) = (𝑥𝑆, 𝑦𝑆 ↦ if(𝑥 = 𝐴, 𝐴, 𝐵))
9 sgrp2nmnd.p . . . . . 6 = (+g𝑀)
102, 7, 8, 9sgrp2nmndlem2 18351 . . . . 5 ((𝐴𝑆𝐴𝑆) → (𝐴 𝐴) = 𝐴)
116, 10syldan 594 . . . 4 ((𝐴𝑆𝐵𝑆) → (𝐴 𝐴) = 𝐴)
12 oveq1 7220 . . . . . . 7 (𝐴 = 𝐵 → (𝐴 𝐴) = (𝐵 𝐴))
13 id 22 . . . . . . 7 (𝐴 = 𝐵𝐴 = 𝐵)
1412, 13eqeq12d 2753 . . . . . 6 (𝐴 = 𝐵 → ((𝐴 𝐴) = 𝐴 ↔ (𝐵 𝐴) = 𝐵))
1511, 14syl5ib 247 . . . . 5 (𝐴 = 𝐵 → ((𝐴𝑆𝐵𝑆) → (𝐵 𝐴) = 𝐵))
16 simprl 771 . . . . . . 7 ((¬ 𝐴 = 𝐵 ∧ (𝐴𝑆𝐵𝑆)) → 𝐴𝑆)
17 simprr 773 . . . . . . 7 ((¬ 𝐴 = 𝐵 ∧ (𝐴𝑆𝐵𝑆)) → 𝐵𝑆)
18 neqne 2948 . . . . . . . 8 𝐴 = 𝐵𝐴𝐵)
1918adantr 484 . . . . . . 7 ((¬ 𝐴 = 𝐵 ∧ (𝐴𝑆𝐵𝑆)) → 𝐴𝐵)
202, 7, 8, 9sgrp2nmndlem3 18352 . . . . . . 7 ((𝐴𝑆𝐵𝑆𝐴𝐵) → (𝐵 𝐴) = 𝐵)
2116, 17, 19, 20syl3anc 1373 . . . . . 6 ((¬ 𝐴 = 𝐵 ∧ (𝐴𝑆𝐵𝑆)) → (𝐵 𝐴) = 𝐵)
2221ex 416 . . . . 5 𝐴 = 𝐵 → ((𝐴𝑆𝐵𝑆) → (𝐵 𝐴) = 𝐵))
2315, 22pm2.61i 185 . . . 4 ((𝐴𝑆𝐵𝑆) → (𝐵 𝐴) = 𝐵)
242, 7, 8, 9sgrp2nmndlem2 18351 . . . . 5 ((𝐴𝑆𝐵𝑆) → (𝐴 𝐵) = 𝐴)
2513, 13oveq12d 7231 . . . . . . . 8 (𝐴 = 𝐵 → (𝐴 𝐴) = (𝐵 𝐵))
2625, 13eqeq12d 2753 . . . . . . 7 (𝐴 = 𝐵 → ((𝐴 𝐴) = 𝐴 ↔ (𝐵 𝐵) = 𝐵))
2711, 26syl5ib 247 . . . . . 6 (𝐴 = 𝐵 → ((𝐴𝑆𝐵𝑆) → (𝐵 𝐵) = 𝐵))
282, 7, 8, 9sgrp2nmndlem3 18352 . . . . . . . 8 ((𝐵𝑆𝐵𝑆𝐴𝐵) → (𝐵 𝐵) = 𝐵)
2917, 17, 19, 28syl3anc 1373 . . . . . . 7 ((¬ 𝐴 = 𝐵 ∧ (𝐴𝑆𝐵𝑆)) → (𝐵 𝐵) = 𝐵)
3029ex 416 . . . . . 6 𝐴 = 𝐵 → ((𝐴𝑆𝐵𝑆) → (𝐵 𝐵) = 𝐵))
3127, 30pm2.61i 185 . . . . 5 ((𝐴𝑆𝐵𝑆) → (𝐵 𝐵) = 𝐵)
3224, 31jca 515 . . . 4 ((𝐴𝑆𝐵𝑆) → ((𝐴 𝐵) = 𝐴 ∧ (𝐵 𝐵) = 𝐵))
3311, 23, 32jca31 518 . . 3 ((𝐴𝑆𝐵𝑆) → (((𝐴 𝐴) = 𝐴 ∧ (𝐵 𝐴) = 𝐵) ∧ ((𝐴 𝐵) = 𝐴 ∧ (𝐵 𝐵) = 𝐵)))
343, 5, 33syl2an 599 . 2 ((𝐴𝑉𝐵𝑊) → (((𝐴 𝐴) = 𝐴 ∧ (𝐵 𝐴) = 𝐵) ∧ ((𝐴 𝐵) = 𝐴 ∧ (𝐵 𝐵) = 𝐵)))
352raleqi 3323 . . . . 5 (∀𝑦𝑆 (𝑦 𝑥) = 𝑦 ↔ ∀𝑦 ∈ {𝐴, 𝐵} (𝑦 𝑥) = 𝑦)
36 oveq1 7220 . . . . . . 7 (𝑦 = 𝐴 → (𝑦 𝑥) = (𝐴 𝑥))
37 id 22 . . . . . . 7 (𝑦 = 𝐴𝑦 = 𝐴)
3836, 37eqeq12d 2753 . . . . . 6 (𝑦 = 𝐴 → ((𝑦 𝑥) = 𝑦 ↔ (𝐴 𝑥) = 𝐴))
39 oveq1 7220 . . . . . . 7 (𝑦 = 𝐵 → (𝑦 𝑥) = (𝐵 𝑥))
40 id 22 . . . . . . 7 (𝑦 = 𝐵𝑦 = 𝐵)
4139, 40eqeq12d 2753 . . . . . 6 (𝑦 = 𝐵 → ((𝑦 𝑥) = 𝑦 ↔ (𝐵 𝑥) = 𝐵))
4238, 41ralprg 4610 . . . . 5 ((𝐴𝑉𝐵𝑊) → (∀𝑦 ∈ {𝐴, 𝐵} (𝑦 𝑥) = 𝑦 ↔ ((𝐴 𝑥) = 𝐴 ∧ (𝐵 𝑥) = 𝐵)))
4335, 42syl5bb 286 . . . 4 ((𝐴𝑉𝐵𝑊) → (∀𝑦𝑆 (𝑦 𝑥) = 𝑦 ↔ ((𝐴 𝑥) = 𝐴 ∧ (𝐵 𝑥) = 𝐵)))
4443ralbidv 3118 . . 3 ((𝐴𝑉𝐵𝑊) → (∀𝑥𝑆𝑦𝑆 (𝑦 𝑥) = 𝑦 ↔ ∀𝑥𝑆 ((𝐴 𝑥) = 𝐴 ∧ (𝐵 𝑥) = 𝐵)))
452raleqi 3323 . . . 4 (∀𝑥𝑆 ((𝐴 𝑥) = 𝐴 ∧ (𝐵 𝑥) = 𝐵) ↔ ∀𝑥 ∈ {𝐴, 𝐵} ((𝐴 𝑥) = 𝐴 ∧ (𝐵 𝑥) = 𝐵))
46 oveq2 7221 . . . . . . 7 (𝑥 = 𝐴 → (𝐴 𝑥) = (𝐴 𝐴))
4746eqeq1d 2739 . . . . . 6 (𝑥 = 𝐴 → ((𝐴 𝑥) = 𝐴 ↔ (𝐴 𝐴) = 𝐴))
48 oveq2 7221 . . . . . . 7 (𝑥 = 𝐴 → (𝐵 𝑥) = (𝐵 𝐴))
4948eqeq1d 2739 . . . . . 6 (𝑥 = 𝐴 → ((𝐵 𝑥) = 𝐵 ↔ (𝐵 𝐴) = 𝐵))
5047, 49anbi12d 634 . . . . 5 (𝑥 = 𝐴 → (((𝐴 𝑥) = 𝐴 ∧ (𝐵 𝑥) = 𝐵) ↔ ((𝐴 𝐴) = 𝐴 ∧ (𝐵 𝐴) = 𝐵)))
51 oveq2 7221 . . . . . . 7 (𝑥 = 𝐵 → (𝐴 𝑥) = (𝐴 𝐵))
5251eqeq1d 2739 . . . . . 6 (𝑥 = 𝐵 → ((𝐴 𝑥) = 𝐴 ↔ (𝐴 𝐵) = 𝐴))
53 oveq2 7221 . . . . . . 7 (𝑥 = 𝐵 → (𝐵 𝑥) = (𝐵 𝐵))
5453eqeq1d 2739 . . . . . 6 (𝑥 = 𝐵 → ((𝐵 𝑥) = 𝐵 ↔ (𝐵 𝐵) = 𝐵))
5552, 54anbi12d 634 . . . . 5 (𝑥 = 𝐵 → (((𝐴 𝑥) = 𝐴 ∧ (𝐵 𝑥) = 𝐵) ↔ ((𝐴 𝐵) = 𝐴 ∧ (𝐵 𝐵) = 𝐵)))
5650, 55ralprg 4610 . . . 4 ((𝐴𝑉𝐵𝑊) → (∀𝑥 ∈ {𝐴, 𝐵} ((𝐴 𝑥) = 𝐴 ∧ (𝐵 𝑥) = 𝐵) ↔ (((𝐴 𝐴) = 𝐴 ∧ (𝐵 𝐴) = 𝐵) ∧ ((𝐴 𝐵) = 𝐴 ∧ (𝐵 𝐵) = 𝐵))))
5745, 56syl5bb 286 . . 3 ((𝐴𝑉𝐵𝑊) → (∀𝑥𝑆 ((𝐴 𝑥) = 𝐴 ∧ (𝐵 𝑥) = 𝐵) ↔ (((𝐴 𝐴) = 𝐴 ∧ (𝐵 𝐴) = 𝐵) ∧ ((𝐴 𝐵) = 𝐴 ∧ (𝐵 𝐵) = 𝐵))))
5844, 57bitrd 282 . 2 ((𝐴𝑉𝐵𝑊) → (∀𝑥𝑆𝑦𝑆 (𝑦 𝑥) = 𝑦 ↔ (((𝐴 𝐴) = 𝐴 ∧ (𝐵 𝐴) = 𝐵) ∧ ((𝐴 𝐵) = 𝐴 ∧ (𝐵 𝐵) = 𝐵))))
5934, 58mpbird 260 1 ((𝐴𝑉𝐵𝑊) → ∀𝑥𝑆𝑦𝑆 (𝑦 𝑥) = 𝑦)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 399   = wceq 1543  wcel 2110  wne 2940  wral 3061  ifcif 4439  {cpr 4543  cfv 6380  (class class class)co 7213  cmpo 7215  Basecbs 16760  +gcplusg 16802
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2016  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2158  ax-12 2175  ax-ext 2708  ax-sep 5192  ax-nul 5199  ax-pr 5322
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-nf 1792  df-sb 2071  df-mo 2539  df-eu 2568  df-clab 2715  df-cleq 2729  df-clel 2816  df-nfc 2886  df-ne 2941  df-ral 3066  df-rex 3067  df-rab 3070  df-v 3410  df-sbc 3695  df-dif 3869  df-un 3871  df-in 3873  df-ss 3883  df-nul 4238  df-if 4440  df-sn 4542  df-pr 4544  df-op 4548  df-uni 4820  df-br 5054  df-opab 5116  df-id 5455  df-xp 5557  df-rel 5558  df-cnv 5559  df-co 5560  df-dm 5561  df-iota 6338  df-fun 6382  df-fv 6388  df-ov 7216  df-oprab 7217  df-mpo 7218
This theorem is referenced by:  sgrp2rid2ex  18354
  Copyright terms: Public domain W3C validator