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

Theorem mndinvmod 18396
Description: Uniqueness of an inverse element in a monoid, if it exists. (Contributed by AV, 20-Jan-2024.)
Hypotheses
Ref Expression
mndinvmod.b 𝐵 = (Base‘𝐺)
mndinvmod.0 0 = (0g𝐺)
mndinvmod.p + = (+g𝐺)
mndinvmod.m (𝜑𝐺 ∈ Mnd)
mndinvmod.a (𝜑𝐴𝐵)
Assertion
Ref Expression
mndinvmod (𝜑 → ∃*𝑤𝐵 ((𝑤 + 𝐴) = 0 ∧ (𝐴 + 𝑤) = 0 ))
Distinct variable groups:   𝑤,𝐴   𝑤,𝐵   𝑤, 0   𝑤, +   𝜑,𝑤
Allowed substitution hint:   𝐺(𝑤)

Proof of Theorem mndinvmod
Dummy variable 𝑣 is distinct from all other variables.
StepHypRef Expression
1 mndinvmod.m . . . . . . . 8 (𝜑𝐺 ∈ Mnd)
2 simpl 482 . . . . . . . 8 ((𝑤𝐵𝑣𝐵) → 𝑤𝐵)
3 mndinvmod.b . . . . . . . . 9 𝐵 = (Base‘𝐺)
4 mndinvmod.p . . . . . . . . 9 + = (+g𝐺)
5 mndinvmod.0 . . . . . . . . 9 0 = (0g𝐺)
63, 4, 5mndrid 18387 . . . . . . . 8 ((𝐺 ∈ Mnd ∧ 𝑤𝐵) → (𝑤 + 0 ) = 𝑤)
71, 2, 6syl2an 595 . . . . . . 7 ((𝜑 ∧ (𝑤𝐵𝑣𝐵)) → (𝑤 + 0 ) = 𝑤)
87eqcomd 2745 . . . . . 6 ((𝜑 ∧ (𝑤𝐵𝑣𝐵)) → 𝑤 = (𝑤 + 0 ))
98adantr 480 . . . . 5 (((𝜑 ∧ (𝑤𝐵𝑣𝐵)) ∧ (((𝑤 + 𝐴) = 0 ∧ (𝐴 + 𝑤) = 0 ) ∧ ((𝑣 + 𝐴) = 0 ∧ (𝐴 + 𝑣) = 0 ))) → 𝑤 = (𝑤 + 0 ))
10 oveq2 7276 . . . . . . . . 9 ( 0 = (𝐴 + 𝑣) → (𝑤 + 0 ) = (𝑤 + (𝐴 + 𝑣)))
1110eqcoms 2747 . . . . . . . 8 ((𝐴 + 𝑣) = 0 → (𝑤 + 0 ) = (𝑤 + (𝐴 + 𝑣)))
1211adantl 481 . . . . . . 7 (((𝑣 + 𝐴) = 0 ∧ (𝐴 + 𝑣) = 0 ) → (𝑤 + 0 ) = (𝑤 + (𝐴 + 𝑣)))
1312adantl 481 . . . . . 6 ((((𝑤 + 𝐴) = 0 ∧ (𝐴 + 𝑤) = 0 ) ∧ ((𝑣 + 𝐴) = 0 ∧ (𝐴 + 𝑣) = 0 )) → (𝑤 + 0 ) = (𝑤 + (𝐴 + 𝑣)))
1413adantl 481 . . . . 5 (((𝜑 ∧ (𝑤𝐵𝑣𝐵)) ∧ (((𝑤 + 𝐴) = 0 ∧ (𝐴 + 𝑤) = 0 ) ∧ ((𝑣 + 𝐴) = 0 ∧ (𝐴 + 𝑣) = 0 ))) → (𝑤 + 0 ) = (𝑤 + (𝐴 + 𝑣)))
151adantr 480 . . . . . . . 8 ((𝜑 ∧ (𝑤𝐵𝑣𝐵)) → 𝐺 ∈ Mnd)
162adantl 481 . . . . . . . 8 ((𝜑 ∧ (𝑤𝐵𝑣𝐵)) → 𝑤𝐵)
17 mndinvmod.a . . . . . . . . 9 (𝜑𝐴𝐵)
1817adantr 480 . . . . . . . 8 ((𝜑 ∧ (𝑤𝐵𝑣𝐵)) → 𝐴𝐵)
19 simpr 484 . . . . . . . . 9 ((𝑤𝐵𝑣𝐵) → 𝑣𝐵)
2019adantl 481 . . . . . . . 8 ((𝜑 ∧ (𝑤𝐵𝑣𝐵)) → 𝑣𝐵)
213, 4mndass 18375 . . . . . . . . 9 ((𝐺 ∈ Mnd ∧ (𝑤𝐵𝐴𝐵𝑣𝐵)) → ((𝑤 + 𝐴) + 𝑣) = (𝑤 + (𝐴 + 𝑣)))
2221eqcomd 2745 . . . . . . . 8 ((𝐺 ∈ Mnd ∧ (𝑤𝐵𝐴𝐵𝑣𝐵)) → (𝑤 + (𝐴 + 𝑣)) = ((𝑤 + 𝐴) + 𝑣))
2315, 16, 18, 20, 22syl13anc 1370 . . . . . . 7 ((𝜑 ∧ (𝑤𝐵𝑣𝐵)) → (𝑤 + (𝐴 + 𝑣)) = ((𝑤 + 𝐴) + 𝑣))
2423adantr 480 . . . . . 6 (((𝜑 ∧ (𝑤𝐵𝑣𝐵)) ∧ (((𝑤 + 𝐴) = 0 ∧ (𝐴 + 𝑤) = 0 ) ∧ ((𝑣 + 𝐴) = 0 ∧ (𝐴 + 𝑣) = 0 ))) → (𝑤 + (𝐴 + 𝑣)) = ((𝑤 + 𝐴) + 𝑣))
25 oveq1 7275 . . . . . . . . 9 ((𝑤 + 𝐴) = 0 → ((𝑤 + 𝐴) + 𝑣) = ( 0 + 𝑣))
2625adantr 480 . . . . . . . 8 (((𝑤 + 𝐴) = 0 ∧ (𝐴 + 𝑤) = 0 ) → ((𝑤 + 𝐴) + 𝑣) = ( 0 + 𝑣))
2726adantr 480 . . . . . . 7 ((((𝑤 + 𝐴) = 0 ∧ (𝐴 + 𝑤) = 0 ) ∧ ((𝑣 + 𝐴) = 0 ∧ (𝐴 + 𝑣) = 0 )) → ((𝑤 + 𝐴) + 𝑣) = ( 0 + 𝑣))
2827adantl 481 . . . . . 6 (((𝜑 ∧ (𝑤𝐵𝑣𝐵)) ∧ (((𝑤 + 𝐴) = 0 ∧ (𝐴 + 𝑤) = 0 ) ∧ ((𝑣 + 𝐴) = 0 ∧ (𝐴 + 𝑣) = 0 ))) → ((𝑤 + 𝐴) + 𝑣) = ( 0 + 𝑣))
293, 4, 5mndlid 18386 . . . . . . . 8 ((𝐺 ∈ Mnd ∧ 𝑣𝐵) → ( 0 + 𝑣) = 𝑣)
301, 19, 29syl2an 595 . . . . . . 7 ((𝜑 ∧ (𝑤𝐵𝑣𝐵)) → ( 0 + 𝑣) = 𝑣)
3130adantr 480 . . . . . 6 (((𝜑 ∧ (𝑤𝐵𝑣𝐵)) ∧ (((𝑤 + 𝐴) = 0 ∧ (𝐴 + 𝑤) = 0 ) ∧ ((𝑣 + 𝐴) = 0 ∧ (𝐴 + 𝑣) = 0 ))) → ( 0 + 𝑣) = 𝑣)
3224, 28, 313eqtrd 2783 . . . . 5 (((𝜑 ∧ (𝑤𝐵𝑣𝐵)) ∧ (((𝑤 + 𝐴) = 0 ∧ (𝐴 + 𝑤) = 0 ) ∧ ((𝑣 + 𝐴) = 0 ∧ (𝐴 + 𝑣) = 0 ))) → (𝑤 + (𝐴 + 𝑣)) = 𝑣)
339, 14, 323eqtrd 2783 . . . 4 (((𝜑 ∧ (𝑤𝐵𝑣𝐵)) ∧ (((𝑤 + 𝐴) = 0 ∧ (𝐴 + 𝑤) = 0 ) ∧ ((𝑣 + 𝐴) = 0 ∧ (𝐴 + 𝑣) = 0 ))) → 𝑤 = 𝑣)
3433ex 412 . . 3 ((𝜑 ∧ (𝑤𝐵𝑣𝐵)) → ((((𝑤 + 𝐴) = 0 ∧ (𝐴 + 𝑤) = 0 ) ∧ ((𝑣 + 𝐴) = 0 ∧ (𝐴 + 𝑣) = 0 )) → 𝑤 = 𝑣))
3534ralrimivva 3116 . 2 (𝜑 → ∀𝑤𝐵𝑣𝐵 ((((𝑤 + 𝐴) = 0 ∧ (𝐴 + 𝑤) = 0 ) ∧ ((𝑣 + 𝐴) = 0 ∧ (𝐴 + 𝑣) = 0 )) → 𝑤 = 𝑣))
36 oveq1 7275 . . . . 5 (𝑤 = 𝑣 → (𝑤 + 𝐴) = (𝑣 + 𝐴))
3736eqeq1d 2741 . . . 4 (𝑤 = 𝑣 → ((𝑤 + 𝐴) = 0 ↔ (𝑣 + 𝐴) = 0 ))
38 oveq2 7276 . . . . 5 (𝑤 = 𝑣 → (𝐴 + 𝑤) = (𝐴 + 𝑣))
3938eqeq1d 2741 . . . 4 (𝑤 = 𝑣 → ((𝐴 + 𝑤) = 0 ↔ (𝐴 + 𝑣) = 0 ))
4037, 39anbi12d 630 . . 3 (𝑤 = 𝑣 → (((𝑤 + 𝐴) = 0 ∧ (𝐴 + 𝑤) = 0 ) ↔ ((𝑣 + 𝐴) = 0 ∧ (𝐴 + 𝑣) = 0 )))
4140rmo4 3668 . 2 (∃*𝑤𝐵 ((𝑤 + 𝐴) = 0 ∧ (𝐴 + 𝑤) = 0 ) ↔ ∀𝑤𝐵𝑣𝐵 ((((𝑤 + 𝐴) = 0 ∧ (𝐴 + 𝑤) = 0 ) ∧ ((𝑣 + 𝐴) = 0 ∧ (𝐴 + 𝑣) = 0 )) → 𝑤 = 𝑣))
4235, 41sylibr 233 1 (𝜑 → ∃*𝑤𝐵 ((𝑤 + 𝐴) = 0 ∧ (𝐴 + 𝑤) = 0 ))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395  w3a 1085   = wceq 1541  wcel 2109  wral 3065  ∃*wrmo 3068  cfv 6430  (class class class)co 7268  Basecbs 16893  +gcplusg 16943  0gc0g 17131  Mndcmnd 18366
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1801  ax-4 1815  ax-5 1916  ax-6 1974  ax-7 2014  ax-8 2111  ax-9 2119  ax-10 2140  ax-11 2157  ax-12 2174  ax-ext 2710  ax-sep 5226  ax-nul 5233  ax-pr 5355
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1544  df-fal 1554  df-ex 1786  df-nf 1790  df-sb 2071  df-mo 2541  df-eu 2570  df-clab 2717  df-cleq 2731  df-clel 2817  df-nfc 2890  df-ne 2945  df-ral 3070  df-rex 3071  df-reu 3072  df-rmo 3073  df-rab 3074  df-v 3432  df-sbc 3720  df-dif 3894  df-un 3896  df-in 3898  df-ss 3908  df-nul 4262  df-if 4465  df-sn 4567  df-pr 4569  df-op 4573  df-uni 4845  df-br 5079  df-opab 5141  df-mpt 5162  df-id 5488  df-xp 5594  df-rel 5595  df-cnv 5596  df-co 5597  df-dm 5598  df-iota 6388  df-fun 6432  df-fv 6438  df-riota 7225  df-ov 7271  df-0g 17133  df-mgm 18307  df-sgrp 18356  df-mnd 18367
This theorem is referenced by:  rinvmod  19391
  Copyright terms: Public domain W3C validator