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

Theorem grpridd 17887
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 7165 . . . . . 6 (𝑦 = 𝑛 → (𝑦 + 𝑥) = (𝑛 + 𝑥))
32eqeq1d 2825 . . . . 5 (𝑦 = 𝑛 → ((𝑦 + 𝑥) = 𝑂 ↔ (𝑛 + 𝑥) = 𝑂))
43cbvrexvw 3452 . . . 4 (∃𝑦𝐵 (𝑦 + 𝑥) = 𝑂 ↔ ∃𝑛𝐵 (𝑛 + 𝑥) = 𝑂)
51, 4sylib 220 . . 3 ((𝜑𝑥𝐵) → ∃𝑛𝐵 (𝑛 + 𝑥) = 𝑂)
6 grprinvlem.a . . . . . . . 8 ((𝜑 ∧ (𝑥𝐵𝑦𝐵𝑧𝐵)) → ((𝑥 + 𝑦) + 𝑧) = (𝑥 + (𝑦 + 𝑧)))
76caovassg 7348 . . . . . . 7 ((𝜑 ∧ (𝑢𝐵𝑣𝐵𝑤𝐵)) → ((𝑢 + 𝑣) + 𝑤) = (𝑢 + (𝑣 + 𝑤)))
87adantlr 713 . . . . . 6 (((𝜑 ∧ (𝑥𝐵 ∧ (𝑛𝐵 ∧ (𝑛 + 𝑥) = 𝑂))) ∧ (𝑢𝐵𝑣𝐵𝑤𝐵)) → ((𝑢 + 𝑣) + 𝑤) = (𝑢 + (𝑣 + 𝑤)))
9 simprl 769 . . . . . 6 ((𝜑 ∧ (𝑥𝐵 ∧ (𝑛𝐵 ∧ (𝑛 + 𝑥) = 𝑂))) → 𝑥𝐵)
10 simprrl 779 . . . . . 6 ((𝜑 ∧ (𝑥𝐵 ∧ (𝑛𝐵 ∧ (𝑛 + 𝑥) = 𝑂))) → 𝑛𝐵)
118, 9, 10, 9caovassd 7349 . . . . 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 17886 . . . . . 6 ((𝜑 ∧ (𝑥𝐵 ∧ (𝑛𝐵 ∧ (𝑛 + 𝑥) = 𝑂))) → (𝑥 + 𝑛) = 𝑂)
1716oveq1d 7173 . . . . 5 ((𝜑 ∧ (𝑥𝐵 ∧ (𝑛𝐵 ∧ (𝑛 + 𝑥) = 𝑂))) → ((𝑥 + 𝑛) + 𝑥) = (𝑂 + 𝑥))
1815oveq2d 7174 . . . . 5 ((𝜑 ∧ (𝑥𝐵 ∧ (𝑛𝐵 ∧ (𝑛 + 𝑥) = 𝑂))) → (𝑥 + (𝑛 + 𝑥)) = (𝑥 + 𝑂))
1911, 17, 183eqtr3d 2866 . . . 4 ((𝜑 ∧ (𝑥𝐵 ∧ (𝑛𝐵 ∧ (𝑛 + 𝑥) = 𝑂))) → (𝑂 + 𝑥) = (𝑥 + 𝑂))
2019anassrs 470 . . 3 (((𝜑𝑥𝐵) ∧ (𝑛𝐵 ∧ (𝑛 + 𝑥) = 𝑂)) → (𝑂 + 𝑥) = (𝑥 + 𝑂))
215, 20rexlimddv 3293 . 2 ((𝜑𝑥𝐵) → (𝑂 + 𝑥) = (𝑥 + 𝑂))
2221, 14eqtr3d 2860 1 ((𝜑𝑥𝐵) → (𝑥 + 𝑂) = 𝑥)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 398  w3a 1083   = wceq 1537  wcel 2114  wrex 3141  (class class class)co 7158
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2795
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-clab 2802  df-cleq 2816  df-clel 2895  df-nfc 2965  df-ral 3145  df-rex 3146  df-rab 3149  df-v 3498  df-dif 3941  df-un 3943  df-in 3945  df-ss 3954  df-nul 4294  df-if 4470  df-sn 4570  df-pr 4572  df-op 4576  df-uni 4841  df-br 5069  df-iota 6316  df-fv 6365  df-ov 7161
This theorem is referenced by:  isgrpde  18126
  Copyright terms: Public domain W3C validator