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

Theorem grprcan 18613
Description: Right cancellation law for groups. (Contributed by NM, 24-Aug-2011.) (Proof shortened by Mario Carneiro, 6-Jan-2015.)
Hypotheses
Ref Expression
grprcan.b 𝐵 = (Base‘𝐺)
grprcan.p + = (+g𝐺)
Assertion
Ref Expression
grprcan ((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) → ((𝑋 + 𝑍) = (𝑌 + 𝑍) ↔ 𝑋 = 𝑌))

Proof of Theorem grprcan
Dummy variables 𝑣 𝑢 𝑤 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 grprcan.b . . . . 5 𝐵 = (Base‘𝐺)
2 grprcan.p . . . . 5 + = (+g𝐺)
3 eqid 2738 . . . . 5 (0g𝐺) = (0g𝐺)
41, 2, 3grpinvex 18587 . . . 4 ((𝐺 ∈ Grp ∧ 𝑍𝐵) → ∃𝑦𝐵 (𝑦 + 𝑍) = (0g𝐺))
543ad2antr3 1189 . . 3 ((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) → ∃𝑦𝐵 (𝑦 + 𝑍) = (0g𝐺))
6 simprr 770 . . . . . . . 8 (((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ ((𝑦𝐵 ∧ (𝑦 + 𝑍) = (0g𝐺)) ∧ (𝑋 + 𝑍) = (𝑌 + 𝑍))) → (𝑋 + 𝑍) = (𝑌 + 𝑍))
76oveq1d 7290 . . . . . . 7 (((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ ((𝑦𝐵 ∧ (𝑦 + 𝑍) = (0g𝐺)) ∧ (𝑋 + 𝑍) = (𝑌 + 𝑍))) → ((𝑋 + 𝑍) + 𝑦) = ((𝑌 + 𝑍) + 𝑦))
8 simpll 764 . . . . . . . . 9 (((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ ((𝑦𝐵 ∧ (𝑦 + 𝑍) = (0g𝐺)) ∧ (𝑋 + 𝑍) = (𝑌 + 𝑍))) → 𝐺 ∈ Grp)
91, 2grpass 18586 . . . . . . . . 9 ((𝐺 ∈ Grp ∧ (𝑢𝐵𝑣𝐵𝑤𝐵)) → ((𝑢 + 𝑣) + 𝑤) = (𝑢 + (𝑣 + 𝑤)))
108, 9sylan 580 . . . . . . . 8 ((((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ ((𝑦𝐵 ∧ (𝑦 + 𝑍) = (0g𝐺)) ∧ (𝑋 + 𝑍) = (𝑌 + 𝑍))) ∧ (𝑢𝐵𝑣𝐵𝑤𝐵)) → ((𝑢 + 𝑣) + 𝑤) = (𝑢 + (𝑣 + 𝑤)))
11 simplr1 1214 . . . . . . . 8 (((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ ((𝑦𝐵 ∧ (𝑦 + 𝑍) = (0g𝐺)) ∧ (𝑋 + 𝑍) = (𝑌 + 𝑍))) → 𝑋𝐵)
12 simplr3 1216 . . . . . . . 8 (((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ ((𝑦𝐵 ∧ (𝑦 + 𝑍) = (0g𝐺)) ∧ (𝑋 + 𝑍) = (𝑌 + 𝑍))) → 𝑍𝐵)
13 simprll 776 . . . . . . . 8 (((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ ((𝑦𝐵 ∧ (𝑦 + 𝑍) = (0g𝐺)) ∧ (𝑋 + 𝑍) = (𝑌 + 𝑍))) → 𝑦𝐵)
1410, 11, 12, 13caovassd 7471 . . . . . . 7 (((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ ((𝑦𝐵 ∧ (𝑦 + 𝑍) = (0g𝐺)) ∧ (𝑋 + 𝑍) = (𝑌 + 𝑍))) → ((𝑋 + 𝑍) + 𝑦) = (𝑋 + (𝑍 + 𝑦)))
15 simplr2 1215 . . . . . . . 8 (((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ ((𝑦𝐵 ∧ (𝑦 + 𝑍) = (0g𝐺)) ∧ (𝑋 + 𝑍) = (𝑌 + 𝑍))) → 𝑌𝐵)
1610, 15, 12, 13caovassd 7471 . . . . . . 7 (((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ ((𝑦𝐵 ∧ (𝑦 + 𝑍) = (0g𝐺)) ∧ (𝑋 + 𝑍) = (𝑌 + 𝑍))) → ((𝑌 + 𝑍) + 𝑦) = (𝑌 + (𝑍 + 𝑦)))
177, 14, 163eqtr3d 2786 . . . . . 6 (((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ ((𝑦𝐵 ∧ (𝑦 + 𝑍) = (0g𝐺)) ∧ (𝑋 + 𝑍) = (𝑌 + 𝑍))) → (𝑋 + (𝑍 + 𝑦)) = (𝑌 + (𝑍 + 𝑦)))
181, 2grpcl 18585 . . . . . . . . . 10 ((𝐺 ∈ Grp ∧ 𝑢𝐵𝑣𝐵) → (𝑢 + 𝑣) ∈ 𝐵)
198, 18syl3an1 1162 . . . . . . . . 9 ((((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ ((𝑦𝐵 ∧ (𝑦 + 𝑍) = (0g𝐺)) ∧ (𝑋 + 𝑍) = (𝑌 + 𝑍))) ∧ 𝑢𝐵𝑣𝐵) → (𝑢 + 𝑣) ∈ 𝐵)
201, 3grpidcl 18607 . . . . . . . . . 10 (𝐺 ∈ Grp → (0g𝐺) ∈ 𝐵)
218, 20syl 17 . . . . . . . . 9 (((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ ((𝑦𝐵 ∧ (𝑦 + 𝑍) = (0g𝐺)) ∧ (𝑋 + 𝑍) = (𝑌 + 𝑍))) → (0g𝐺) ∈ 𝐵)
221, 2, 3grplid 18609 . . . . . . . . . 10 ((𝐺 ∈ Grp ∧ 𝑢𝐵) → ((0g𝐺) + 𝑢) = 𝑢)
238, 22sylan 580 . . . . . . . . 9 ((((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ ((𝑦𝐵 ∧ (𝑦 + 𝑍) = (0g𝐺)) ∧ (𝑋 + 𝑍) = (𝑌 + 𝑍))) ∧ 𝑢𝐵) → ((0g𝐺) + 𝑢) = 𝑢)
241, 2, 3grpinvex 18587 . . . . . . . . . 10 ((𝐺 ∈ Grp ∧ 𝑢𝐵) → ∃𝑣𝐵 (𝑣 + 𝑢) = (0g𝐺))
258, 24sylan 580 . . . . . . . . 9 ((((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ ((𝑦𝐵 ∧ (𝑦 + 𝑍) = (0g𝐺)) ∧ (𝑋 + 𝑍) = (𝑌 + 𝑍))) ∧ 𝑢𝐵) → ∃𝑣𝐵 (𝑣 + 𝑢) = (0g𝐺))
26 simpr 485 . . . . . . . . 9 ((((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ ((𝑦𝐵 ∧ (𝑦 + 𝑍) = (0g𝐺)) ∧ (𝑋 + 𝑍) = (𝑌 + 𝑍))) ∧ 𝑍𝐵) → 𝑍𝐵)
2713adantr 481 . . . . . . . . 9 ((((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ ((𝑦𝐵 ∧ (𝑦 + 𝑍) = (0g𝐺)) ∧ (𝑋 + 𝑍) = (𝑌 + 𝑍))) ∧ 𝑍𝐵) → 𝑦𝐵)
28 simprlr 777 . . . . . . . . . 10 (((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ ((𝑦𝐵 ∧ (𝑦 + 𝑍) = (0g𝐺)) ∧ (𝑋 + 𝑍) = (𝑌 + 𝑍))) → (𝑦 + 𝑍) = (0g𝐺))
2928adantr 481 . . . . . . . . 9 ((((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ ((𝑦𝐵 ∧ (𝑦 + 𝑍) = (0g𝐺)) ∧ (𝑋 + 𝑍) = (𝑌 + 𝑍))) ∧ 𝑍𝐵) → (𝑦 + 𝑍) = (0g𝐺))
3019, 21, 23, 10, 25, 26, 27, 29grprinvd 18358 . . . . . . . 8 ((((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ ((𝑦𝐵 ∧ (𝑦 + 𝑍) = (0g𝐺)) ∧ (𝑋 + 𝑍) = (𝑌 + 𝑍))) ∧ 𝑍𝐵) → (𝑍 + 𝑦) = (0g𝐺))
3112, 30mpdan 684 . . . . . . 7 (((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ ((𝑦𝐵 ∧ (𝑦 + 𝑍) = (0g𝐺)) ∧ (𝑋 + 𝑍) = (𝑌 + 𝑍))) → (𝑍 + 𝑦) = (0g𝐺))
3231oveq2d 7291 . . . . . 6 (((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ ((𝑦𝐵 ∧ (𝑦 + 𝑍) = (0g𝐺)) ∧ (𝑋 + 𝑍) = (𝑌 + 𝑍))) → (𝑋 + (𝑍 + 𝑦)) = (𝑋 + (0g𝐺)))
3331oveq2d 7291 . . . . . 6 (((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ ((𝑦𝐵 ∧ (𝑦 + 𝑍) = (0g𝐺)) ∧ (𝑋 + 𝑍) = (𝑌 + 𝑍))) → (𝑌 + (𝑍 + 𝑦)) = (𝑌 + (0g𝐺)))
3417, 32, 333eqtr3d 2786 . . . . 5 (((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ ((𝑦𝐵 ∧ (𝑦 + 𝑍) = (0g𝐺)) ∧ (𝑋 + 𝑍) = (𝑌 + 𝑍))) → (𝑋 + (0g𝐺)) = (𝑌 + (0g𝐺)))
351, 2, 3grprid 18610 . . . . . 6 ((𝐺 ∈ Grp ∧ 𝑋𝐵) → (𝑋 + (0g𝐺)) = 𝑋)
368, 11, 35syl2anc 584 . . . . 5 (((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ ((𝑦𝐵 ∧ (𝑦 + 𝑍) = (0g𝐺)) ∧ (𝑋 + 𝑍) = (𝑌 + 𝑍))) → (𝑋 + (0g𝐺)) = 𝑋)
371, 2, 3grprid 18610 . . . . . 6 ((𝐺 ∈ Grp ∧ 𝑌𝐵) → (𝑌 + (0g𝐺)) = 𝑌)
388, 15, 37syl2anc 584 . . . . 5 (((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ ((𝑦𝐵 ∧ (𝑦 + 𝑍) = (0g𝐺)) ∧ (𝑋 + 𝑍) = (𝑌 + 𝑍))) → (𝑌 + (0g𝐺)) = 𝑌)
3934, 36, 383eqtr3d 2786 . . . 4 (((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ ((𝑦𝐵 ∧ (𝑦 + 𝑍) = (0g𝐺)) ∧ (𝑋 + 𝑍) = (𝑌 + 𝑍))) → 𝑋 = 𝑌)
4039expr 457 . . 3 (((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ (𝑦𝐵 ∧ (𝑦 + 𝑍) = (0g𝐺))) → ((𝑋 + 𝑍) = (𝑌 + 𝑍) → 𝑋 = 𝑌))
415, 40rexlimddv 3220 . 2 ((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) → ((𝑋 + 𝑍) = (𝑌 + 𝑍) → 𝑋 = 𝑌))
42 oveq1 7282 . 2 (𝑋 = 𝑌 → (𝑋 + 𝑍) = (𝑌 + 𝑍))
4341, 42impbid1 224 1 ((𝐺 ∈ Grp ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) → ((𝑋 + 𝑍) = (𝑌 + 𝑍) ↔ 𝑋 = 𝑌))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396  w3a 1086   = wceq 1539  wcel 2106  wrex 3065  cfv 6433  (class class class)co 7275  Basecbs 16912  +gcplusg 16962  0gc0g 17150  Grpcgrp 18577
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-ne 2944  df-ral 3069  df-rex 3070  df-rmo 3071  df-reu 3072  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-mpt 5158  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-riota 7232  df-ov 7278  df-0g 17152  df-mgm 18326  df-sgrp 18375  df-mnd 18386  df-grp 18580
This theorem is referenced by:  grpinveu  18614  grpid  18615  grpidlcan  18641  grpinvssd  18652  grpsubrcan  18656  grpsubadd  18663  sylow1lem4  19206  ringcom  19818  ringrz  19827  lmodcom  20169  ogrpaddlt  31343  rhmunitinv  31521  isnumbasgrplem2  40929  grptcepi  46378
  Copyright terms: Public domain W3C validator