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

Theorem grpridd 17879
Description: Deduce right identity from left inverse and left identity in an associative structure (such as a group). (Contributed by NM, 10-Aug-2013.) (Proof shortened by Mario Carneiro, 6-Jan-2015.)
Hypotheses
Ref Expression
grprinvlem.c ((𝜑𝑥𝐵𝑦𝐵) → (𝑥 + 𝑦) ∈ 𝐵)
grprinvlem.o (𝜑𝑂𝐵)
grprinvlem.i ((𝜑𝑥𝐵) → (𝑂 + 𝑥) = 𝑥)
grprinvlem.a ((𝜑 ∧ (𝑥𝐵𝑦𝐵𝑧𝐵)) → ((𝑥 + 𝑦) + 𝑧) = (𝑥 + (𝑦 + 𝑧)))
grprinvlem.n ((𝜑𝑥𝐵) → ∃𝑦𝐵 (𝑦 + 𝑥) = 𝑂)
Assertion
Ref Expression
grpridd ((𝜑𝑥𝐵) → (𝑥 + 𝑂) = 𝑥)
Distinct variable groups:   𝑥,𝑦,𝑧,𝐵   𝑥,𝑂,𝑦,𝑧   𝜑,𝑥,𝑦,𝑧   𝑥, + ,𝑦,𝑧

Proof of Theorem grpridd
Dummy variables 𝑢 𝑛 𝑣 𝑤 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 grprinvlem.n . . . 4 ((𝜑𝑥𝐵) → ∃𝑦𝐵 (𝑦 + 𝑥) = 𝑂)
2 oveq1 7157 . . . . . 6 (𝑦 = 𝑛 → (𝑦 + 𝑥) = (𝑛 + 𝑥))
32eqeq1d 2823 . . . . 5 (𝑦 = 𝑛 → ((𝑦 + 𝑥) = 𝑂 ↔ (𝑛 + 𝑥) = 𝑂))
43cbvrexvw 3451 . . . 4 (∃𝑦𝐵 (𝑦 + 𝑥) = 𝑂 ↔ ∃𝑛𝐵 (𝑛 + 𝑥) = 𝑂)
51, 4sylib 220 . . 3 ((𝜑𝑥𝐵) → ∃𝑛𝐵 (𝑛 + 𝑥) = 𝑂)
6 grprinvlem.a . . . . . . . 8 ((𝜑 ∧ (𝑥𝐵𝑦𝐵𝑧𝐵)) → ((𝑥 + 𝑦) + 𝑧) = (𝑥 + (𝑦 + 𝑧)))
76caovassg 7340 . . . . . . 7 ((𝜑 ∧ (𝑢𝐵𝑣𝐵𝑤𝐵)) → ((𝑢 + 𝑣) + 𝑤) = (𝑢 + (𝑣 + 𝑤)))
87adantlr 713 . . . . . 6 (((𝜑 ∧ (𝑥𝐵 ∧ (𝑛𝐵 ∧ (𝑛 + 𝑥) = 𝑂))) ∧ (𝑢𝐵𝑣𝐵𝑤𝐵)) → ((𝑢 + 𝑣) + 𝑤) = (𝑢 + (𝑣 + 𝑤)))
9 simprl 769 . . . . . 6 ((𝜑 ∧ (𝑥𝐵 ∧ (𝑛𝐵 ∧ (𝑛 + 𝑥) = 𝑂))) → 𝑥𝐵)
10 simprrl 779 . . . . . 6 ((𝜑 ∧ (𝑥𝐵 ∧ (𝑛𝐵 ∧ (𝑛 + 𝑥) = 𝑂))) → 𝑛𝐵)
118, 9, 10, 9caovassd 7341 . . . . 5 ((𝜑 ∧ (𝑥𝐵 ∧ (𝑛𝐵 ∧ (𝑛 + 𝑥) = 𝑂))) → ((𝑥 + 𝑛) + 𝑥) = (𝑥 + (𝑛 + 𝑥)))
12 grprinvlem.c . . . . . . 7 ((𝜑𝑥𝐵𝑦𝐵) → (𝑥 + 𝑦) ∈ 𝐵)
13 grprinvlem.o . . . . . . 7 (𝜑𝑂𝐵)
14 grprinvlem.i . . . . . . 7 ((𝜑𝑥𝐵) → (𝑂 + 𝑥) = 𝑥)
15 simprrr 780 . . . . . . 7 ((𝜑 ∧ (𝑥𝐵 ∧ (𝑛𝐵 ∧ (𝑛 + 𝑥) = 𝑂))) → (𝑛 + 𝑥) = 𝑂)
1612, 13, 14, 6, 1, 9, 10, 15grprinvd 17878 . . . . . 6 ((𝜑 ∧ (𝑥𝐵 ∧ (𝑛𝐵 ∧ (𝑛 + 𝑥) = 𝑂))) → (𝑥 + 𝑛) = 𝑂)
1716oveq1d 7165 . . . . 5 ((𝜑 ∧ (𝑥𝐵 ∧ (𝑛𝐵 ∧ (𝑛 + 𝑥) = 𝑂))) → ((𝑥 + 𝑛) + 𝑥) = (𝑂 + 𝑥))
1815oveq2d 7166 . . . . 5 ((𝜑 ∧ (𝑥𝐵 ∧ (𝑛𝐵 ∧ (𝑛 + 𝑥) = 𝑂))) → (𝑥 + (𝑛 + 𝑥)) = (𝑥 + 𝑂))
1911, 17, 183eqtr3d 2864 . . . 4 ((𝜑 ∧ (𝑥𝐵 ∧ (𝑛𝐵 ∧ (𝑛 + 𝑥) = 𝑂))) → (𝑂 + 𝑥) = (𝑥 + 𝑂))
2019anassrs 470 . . 3 (((𝜑𝑥𝐵) ∧ (𝑛𝐵 ∧ (𝑛 + 𝑥) = 𝑂)) → (𝑂 + 𝑥) = (𝑥 + 𝑂))
215, 20rexlimddv 3291 . 2 ((𝜑𝑥𝐵) → (𝑂 + 𝑥) = (𝑥 + 𝑂))
2221, 14eqtr3d 2858 1 ((𝜑𝑥𝐵) → (𝑥 + 𝑂) = 𝑥)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 398  w3a 1083   = wceq 1533  wcel 2110  wrex 3139  (class class class)co 7150
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2156  ax-12 2172  ax-ext 2793
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ral 3143  df-rex 3144  df-rab 3147  df-v 3497  df-dif 3939  df-un 3941  df-in 3943  df-ss 3952  df-nul 4292  df-if 4468  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4833  df-br 5060  df-iota 6309  df-fv 6358  df-ov 7153
This theorem is referenced by:  isgrpde  18118
  Copyright terms: Public domain W3C validator