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

Theorem preq1b 4806
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 4721 . . . . . . . 8 (𝐴 ∈ 𝑉 → 𝐴 ∈ {𝐴, 𝐶})
31, 2syl 18 . . . . . . 7 (𝜑 → 𝐴 ∈ {𝐴, 𝐶})
4 eleq2 2850 . . . . . . 7 ({𝐴, 𝐶} = {𝐵, 𝐶} → (𝐴 ∈ {𝐴, 𝐶} ↔ 𝐴 ∈ {𝐵, 𝐶}))
53, 4syl5ibcom 248 . . . . . 6 (𝜑 → ({𝐴, 𝐶} = {𝐵, 𝐶} → 𝐴 ∈ {𝐵, 𝐶}))
6 elprg 4607 . . . . . . 7 (𝐴 ∈ 𝑉 → (𝐴 ∈ {𝐵, 𝐶} ↔ (𝐴 = 𝐵 ∨ 𝐴 = 𝐶)))
71, 6syl 18 . . . . . 6 (𝜑 → (𝐴 ∈ {𝐵, 𝐶} ↔ (𝐴 = 𝐵 ∨ 𝐴 = 𝐶)))
85, 7sylibd 242 . . . . 5 (𝜑 → ({𝐴, 𝐶} = {𝐵, 𝐶} → (𝐴 = 𝐵 ∨ 𝐴 = 𝐶)))
98imp 412 . . . 4 ((𝜑 ∧ {𝐴, 𝐶} = {𝐵, 𝐶}) → (𝐴 = 𝐵 ∨ 𝐴 = 𝐶))
10 preq1b.b . . . . . . . 8 (𝜑 → 𝐵 ∈ 𝑊)
11 prid1g 4721 . . . . . . . 8 (𝐵 ∈ 𝑊 → 𝐵 ∈ {𝐵, 𝐶})
1210, 11syl 18 . . . . . . 7 (𝜑 → 𝐵 ∈ {𝐵, 𝐶})
13 eleq2 2850 . . . . . . 7 ({𝐴, 𝐶} = {𝐵, 𝐶} → (𝐵 ∈ {𝐴, 𝐶} ↔ 𝐵 ∈ {𝐵, 𝐶}))
1412, 13syl5ibrcom 250 . . . . . 6 (𝜑 → ({𝐴, 𝐶} = {𝐵, 𝐶} → 𝐵 ∈ {𝐴, 𝐶}))
15 elprg 4607 . . . . . . 7 (𝐵 ∈ 𝑊 → (𝐵 ∈ {𝐴, 𝐶} ↔ (𝐵 = 𝐴 ∨ 𝐵 = 𝐶)))
1610, 15syl 18 . . . . . 6 (𝜑 → (𝐵 ∈ {𝐴, 𝐶} ↔ (𝐵 = 𝐴 ∨ 𝐵 = 𝐶)))
1714, 16sylibd 242 . . . . 5 (𝜑 → ({𝐴, 𝐶} = {𝐵, 𝐶} → (𝐵 = 𝐴 ∨ 𝐵 = 𝐶)))
1817imp 412 . . . 4 ((𝜑 ∧ {𝐴, 𝐶} = {𝐵, 𝐶}) → (𝐵 = 𝐴 ∨ 𝐵 = 𝐶))
19 eqcom 2768 . . . 4 (𝐴 = 𝐵 ↔ 𝐵 = 𝐴)
20 eqeq2 2773 . . . 4 (𝐴 = 𝐶 → (𝐵 = 𝐴 ↔ 𝐵 = 𝐶))
219, 18, 19, 20oplem1 1072 . . 3 ((𝜑 ∧ {𝐴, 𝐶} = {𝐵, 𝐶}) → 𝐴 = 𝐵)
2221ex 418 . 2 (𝜑 → ({𝐴, 𝐶} = {𝐵, 𝐶} → 𝐴 = 𝐵))
23 preq1 4694 . 2 (𝐴 = 𝐵 → {𝐴, 𝐶} = {𝐵, 𝐶})
2422, 23impbid1 228 1 (𝜑 → ({𝐴, 𝐶} = {𝐵, 𝐶} ↔ 𝐴 = 𝐵))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   ∨ wo 861   = wceq 1570   ∈ wcel 2145  {cpr 4586
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-ext 2733
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1573  df-ex 1813  df-sb 2100  df-clab 2740  df-cleq 2753  df-clel 2836  df-v 3453  df-un 3904  df-sn 4585  df-pr 4587
This theorem is used by:  preq2b  4807  preqr1  4808  preqr1g  4812  uhgr3cyclexlem  30764
  Copyright terms: Public domain W3C validator