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

Theorem preq1b 4774
Description: Biconditional equality lemma for unordered pairs, deduction form. Two unordered pairs have the same second element iff the first elements are equal. (Contributed by AV, 18-Dec-2020.)
Hypotheses
Ref Expression
preq1b.a (𝜑𝐴𝑉)
preq1b.b (𝜑𝐵𝑊)
Assertion
Ref Expression
preq1b (𝜑 → ({𝐴, 𝐶} = {𝐵, 𝐶} ↔ 𝐴 = 𝐵))

Proof of Theorem preq1b
StepHypRef Expression
1 preq1b.a . . . . . . . 8 (𝜑𝐴𝑉)
2 prid1g 4693 . . . . . . . 8 (𝐴𝑉𝐴 ∈ {𝐴, 𝐶})
31, 2syl 17 . . . . . . 7 (𝜑𝐴 ∈ {𝐴, 𝐶})
4 eleq2 2827 . . . . . . 7 ({𝐴, 𝐶} = {𝐵, 𝐶} → (𝐴 ∈ {𝐴, 𝐶} ↔ 𝐴 ∈ {𝐵, 𝐶}))
53, 4syl5ibcom 244 . . . . . 6 (𝜑 → ({𝐴, 𝐶} = {𝐵, 𝐶} → 𝐴 ∈ {𝐵, 𝐶}))
6 elprg 4579 . . . . . . 7 (𝐴𝑉 → (𝐴 ∈ {𝐵, 𝐶} ↔ (𝐴 = 𝐵𝐴 = 𝐶)))
71, 6syl 17 . . . . . 6 (𝜑 → (𝐴 ∈ {𝐵, 𝐶} ↔ (𝐴 = 𝐵𝐴 = 𝐶)))
85, 7sylibd 238 . . . . 5 (𝜑 → ({𝐴, 𝐶} = {𝐵, 𝐶} → (𝐴 = 𝐵𝐴 = 𝐶)))
98imp 406 . . . 4 ((𝜑 ∧ {𝐴, 𝐶} = {𝐵, 𝐶}) → (𝐴 = 𝐵𝐴 = 𝐶))
10 preq1b.b . . . . . . . 8 (𝜑𝐵𝑊)
11 prid1g 4693 . . . . . . . 8 (𝐵𝑊𝐵 ∈ {𝐵, 𝐶})
1210, 11syl 17 . . . . . . 7 (𝜑𝐵 ∈ {𝐵, 𝐶})
13 eleq2 2827 . . . . . . 7 ({𝐴, 𝐶} = {𝐵, 𝐶} → (𝐵 ∈ {𝐴, 𝐶} ↔ 𝐵 ∈ {𝐵, 𝐶}))
1412, 13syl5ibrcom 246 . . . . . 6 (𝜑 → ({𝐴, 𝐶} = {𝐵, 𝐶} → 𝐵 ∈ {𝐴, 𝐶}))
15 elprg 4579 . . . . . . 7 (𝐵𝑊 → (𝐵 ∈ {𝐴, 𝐶} ↔ (𝐵 = 𝐴𝐵 = 𝐶)))
1610, 15syl 17 . . . . . 6 (𝜑 → (𝐵 ∈ {𝐴, 𝐶} ↔ (𝐵 = 𝐴𝐵 = 𝐶)))
1714, 16sylibd 238 . . . . 5 (𝜑 → ({𝐴, 𝐶} = {𝐵, 𝐶} → (𝐵 = 𝐴𝐵 = 𝐶)))
1817imp 406 . . . 4 ((𝜑 ∧ {𝐴, 𝐶} = {𝐵, 𝐶}) → (𝐵 = 𝐴𝐵 = 𝐶))
19 eqcom 2745 . . . 4 (𝐴 = 𝐵𝐵 = 𝐴)
20 eqeq2 2750 . . . 4 (𝐴 = 𝐶 → (𝐵 = 𝐴𝐵 = 𝐶))
219, 18, 19, 20oplem1 1053 . . 3 ((𝜑 ∧ {𝐴, 𝐶} = {𝐵, 𝐶}) → 𝐴 = 𝐵)
2221ex 412 . 2 (𝜑 → ({𝐴, 𝐶} = {𝐵, 𝐶} → 𝐴 = 𝐵))
23 preq1 4666 . 2 (𝐴 = 𝐵 → {𝐴, 𝐶} = {𝐵, 𝐶})
2422, 23impbid1 224 1 (𝜑 → ({𝐴, 𝐶} = {𝐵, 𝐶} ↔ 𝐴 = 𝐵))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  wo 843   = wceq 1539  wcel 2108  {cpr 4560
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-tru 1542  df-ex 1784  df-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-v 3424  df-un 3888  df-sn 4559  df-pr 4561
This theorem is referenced by:  preq2b  4775  preqr1  4776  preqr1g  4780  uhgr3cyclexlem  28446
  Copyright terms: Public domain W3C validator