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

Theorem preq1b 4777
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 4696 . . . . . . . 8 (𝐴𝑉𝐴 ∈ {𝐴, 𝐶})
31, 2syl 17 . . . . . . 7 (𝜑𝐴 ∈ {𝐴, 𝐶})
4 eleq2 2827 . . . . . . 7 ({𝐴, 𝐶} = {𝐵, 𝐶} → (𝐴 ∈ {𝐴, 𝐶} ↔ 𝐴 ∈ {𝐵, 𝐶}))
53, 4syl5ibcom 244 . . . . . 6 (𝜑 → ({𝐴, 𝐶} = {𝐵, 𝐶} → 𝐴 ∈ {𝐵, 𝐶}))
6 elprg 4582 . . . . . . 7 (𝐴𝑉 → (𝐴 ∈ {𝐵, 𝐶} ↔ (𝐴 = 𝐵𝐴 = 𝐶)))
71, 6syl 17 . . . . . 6 (𝜑 → (𝐴 ∈ {𝐵, 𝐶} ↔ (𝐴 = 𝐵𝐴 = 𝐶)))
85, 7sylibd 238 . . . . 5 (𝜑 → ({𝐴, 𝐶} = {𝐵, 𝐶} → (𝐴 = 𝐵𝐴 = 𝐶)))
98imp 407 . . . 4 ((𝜑 ∧ {𝐴, 𝐶} = {𝐵, 𝐶}) → (𝐴 = 𝐵𝐴 = 𝐶))
10 preq1b.b . . . . . . . 8 (𝜑𝐵𝑊)
11 prid1g 4696 . . . . . . . 8 (𝐵𝑊𝐵 ∈ {𝐵, 𝐶})
1210, 11syl 17 . . . . . . 7 (𝜑𝐵 ∈ {𝐵, 𝐶})
13 eleq2 2827 . . . . . . 7 ({𝐴, 𝐶} = {𝐵, 𝐶} → (𝐵 ∈ {𝐴, 𝐶} ↔ 𝐵 ∈ {𝐵, 𝐶}))
1412, 13syl5ibrcom 246 . . . . . 6 (𝜑 → ({𝐴, 𝐶} = {𝐵, 𝐶} → 𝐵 ∈ {𝐴, 𝐶}))
15 elprg 4582 . . . . . . 7 (𝐵𝑊 → (𝐵 ∈ {𝐴, 𝐶} ↔ (𝐵 = 𝐴𝐵 = 𝐶)))
1610, 15syl 17 . . . . . 6 (𝜑 → (𝐵 ∈ {𝐴, 𝐶} ↔ (𝐵 = 𝐴𝐵 = 𝐶)))
1714, 16sylibd 238 . . . . 5 (𝜑 → ({𝐴, 𝐶} = {𝐵, 𝐶} → (𝐵 = 𝐴𝐵 = 𝐶)))
1817imp 407 . . . 4 ((𝜑 ∧ {𝐴, 𝐶} = {𝐵, 𝐶}) → (𝐵 = 𝐴𝐵 = 𝐶))
19 eqcom 2745 . . . 4 (𝐴 = 𝐵𝐵 = 𝐴)
20 eqeq2 2750 . . . 4 (𝐴 = 𝐶 → (𝐵 = 𝐴𝐵 = 𝐶))
219, 18, 19, 20oplem1 1054 . . 3 ((𝜑 ∧ {𝐴, 𝐶} = {𝐵, 𝐶}) → 𝐴 = 𝐵)
2221ex 413 . 2 (𝜑 → ({𝐴, 𝐶} = {𝐵, 𝐶} → 𝐴 = 𝐵))
23 preq1 4669 . 2 (𝐴 = 𝐵 → {𝐴, 𝐶} = {𝐵, 𝐶})
2422, 23impbid1 224 1 (𝜑 → ({𝐴, 𝐶} = {𝐵, 𝐶} ↔ 𝐴 = 𝐵))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396  wo 844   = wceq 1539  wcel 2106  {cpr 4563
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-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-tru 1542  df-ex 1783  df-sb 2068  df-clab 2716  df-cleq 2730  df-clel 2816  df-v 3434  df-un 3892  df-sn 4562  df-pr 4564
This theorem is referenced by:  preq2b  4778  preqr1  4779  preqr1g  4783  uhgr3cyclexlem  28545
  Copyright terms: Public domain W3C validator