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

Theorem mgmidmo 18259
Description: A two-sided identity element is unique (if it exists) in any magma. (Contributed by Mario Carneiro, 7-Dec-2014.) (Revised by NM, 17-Jun-2017.)
Assertion
Ref Expression
mgmidmo ∃*𝑢𝐵𝑥𝐵 ((𝑢 + 𝑥) = 𝑥 ∧ (𝑥 + 𝑢) = 𝑥)
Distinct variable groups:   𝑥,𝑢,𝐵   𝑢, + ,𝑥

Proof of Theorem mgmidmo
Dummy variable 𝑤 is distinct from all other variables.
StepHypRef Expression
1 simpl 482 . . . . 5 (((𝑢 + 𝑥) = 𝑥 ∧ (𝑥 + 𝑢) = 𝑥) → (𝑢 + 𝑥) = 𝑥)
21ralimi 3086 . . . 4 (∀𝑥𝐵 ((𝑢 + 𝑥) = 𝑥 ∧ (𝑥 + 𝑢) = 𝑥) → ∀𝑥𝐵 (𝑢 + 𝑥) = 𝑥)
3 simpr 484 . . . . 5 (((𝑤 + 𝑥) = 𝑥 ∧ (𝑥 + 𝑤) = 𝑥) → (𝑥 + 𝑤) = 𝑥)
43ralimi 3086 . . . 4 (∀𝑥𝐵 ((𝑤 + 𝑥) = 𝑥 ∧ (𝑥 + 𝑤) = 𝑥) → ∀𝑥𝐵 (𝑥 + 𝑤) = 𝑥)
5 oveq1 7262 . . . . . . . . 9 (𝑥 = 𝑢 → (𝑥 + 𝑤) = (𝑢 + 𝑤))
6 id 22 . . . . . . . . 9 (𝑥 = 𝑢𝑥 = 𝑢)
75, 6eqeq12d 2754 . . . . . . . 8 (𝑥 = 𝑢 → ((𝑥 + 𝑤) = 𝑥 ↔ (𝑢 + 𝑤) = 𝑢))
87rspcva 3550 . . . . . . 7 ((𝑢𝐵 ∧ ∀𝑥𝐵 (𝑥 + 𝑤) = 𝑥) → (𝑢 + 𝑤) = 𝑢)
9 oveq2 7263 . . . . . . . . 9 (𝑥 = 𝑤 → (𝑢 + 𝑥) = (𝑢 + 𝑤))
10 id 22 . . . . . . . . 9 (𝑥 = 𝑤𝑥 = 𝑤)
119, 10eqeq12d 2754 . . . . . . . 8 (𝑥 = 𝑤 → ((𝑢 + 𝑥) = 𝑥 ↔ (𝑢 + 𝑤) = 𝑤))
1211rspcva 3550 . . . . . . 7 ((𝑤𝐵 ∧ ∀𝑥𝐵 (𝑢 + 𝑥) = 𝑥) → (𝑢 + 𝑤) = 𝑤)
138, 12sylan9req 2800 . . . . . 6 (((𝑢𝐵 ∧ ∀𝑥𝐵 (𝑥 + 𝑤) = 𝑥) ∧ (𝑤𝐵 ∧ ∀𝑥𝐵 (𝑢 + 𝑥) = 𝑥)) → 𝑢 = 𝑤)
1413an42s 657 . . . . 5 (((𝑢𝐵𝑤𝐵) ∧ (∀𝑥𝐵 (𝑢 + 𝑥) = 𝑥 ∧ ∀𝑥𝐵 (𝑥 + 𝑤) = 𝑥)) → 𝑢 = 𝑤)
1514ex 412 . . . 4 ((𝑢𝐵𝑤𝐵) → ((∀𝑥𝐵 (𝑢 + 𝑥) = 𝑥 ∧ ∀𝑥𝐵 (𝑥 + 𝑤) = 𝑥) → 𝑢 = 𝑤))
162, 4, 15syl2ani 606 . . 3 ((𝑢𝐵𝑤𝐵) → ((∀𝑥𝐵 ((𝑢 + 𝑥) = 𝑥 ∧ (𝑥 + 𝑢) = 𝑥) ∧ ∀𝑥𝐵 ((𝑤 + 𝑥) = 𝑥 ∧ (𝑥 + 𝑤) = 𝑥)) → 𝑢 = 𝑤))
1716rgen2 3126 . 2 𝑢𝐵𝑤𝐵 ((∀𝑥𝐵 ((𝑢 + 𝑥) = 𝑥 ∧ (𝑥 + 𝑢) = 𝑥) ∧ ∀𝑥𝐵 ((𝑤 + 𝑥) = 𝑥 ∧ (𝑥 + 𝑤) = 𝑥)) → 𝑢 = 𝑤)
18 oveq1 7262 . . . . 5 (𝑢 = 𝑤 → (𝑢 + 𝑥) = (𝑤 + 𝑥))
1918eqeq1d 2740 . . . 4 (𝑢 = 𝑤 → ((𝑢 + 𝑥) = 𝑥 ↔ (𝑤 + 𝑥) = 𝑥))
2019ovanraleqv 7279 . . 3 (𝑢 = 𝑤 → (∀𝑥𝐵 ((𝑢 + 𝑥) = 𝑥 ∧ (𝑥 + 𝑢) = 𝑥) ↔ ∀𝑥𝐵 ((𝑤 + 𝑥) = 𝑥 ∧ (𝑥 + 𝑤) = 𝑥)))
2120rmo4 3660 . 2 (∃*𝑢𝐵𝑥𝐵 ((𝑢 + 𝑥) = 𝑥 ∧ (𝑥 + 𝑢) = 𝑥) ↔ ∀𝑢𝐵𝑤𝐵 ((∀𝑥𝐵 ((𝑢 + 𝑥) = 𝑥 ∧ (𝑥 + 𝑢) = 𝑥) ∧ ∀𝑥𝐵 ((𝑤 + 𝑥) = 𝑥 ∧ (𝑥 + 𝑤) = 𝑥)) → 𝑢 = 𝑤))
2217, 21mpbir 230 1 ∃*𝑢𝐵𝑥𝐵 ((𝑢 + 𝑥) = 𝑥 ∧ (𝑥 + 𝑢) = 𝑥)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395   = wceq 1539  wcel 2108  wral 3063  ∃*wrmo 3066  (class class class)co 7255
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-ext 2709
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-sb 2069  df-mo 2540  df-clab 2716  df-cleq 2730  df-clel 2817  df-ral 3068  df-rmo 3071  df-rab 3072  df-v 3424  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-iota 6376  df-fv 6426  df-ov 7258
This theorem is referenced by:  ismgmid  18264  mndideu  18311
  Copyright terms: Public domain W3C validator