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

Theorem pr1eqbg 4787
Description: A (proper) pair is equal to another (maybe improper) pair containing one element of the first pair if and only if the other element of the first pair is contained in the second pair. (Contributed by Alexander van der Vekens, 26-Jan-2018.)
Assertion
Ref Expression
pr1eqbg (((𝐴𝑈𝐵𝑉𝐶𝑋) ∧ 𝐴𝐵) → (𝐴 = 𝐶 ↔ {𝐴, 𝐵} = {𝐵, 𝐶}))

Proof of Theorem pr1eqbg
StepHypRef Expression
1 eqid 2821 . . . . 5 𝐵 = 𝐵
21biantru 532 . . . 4 (𝐴 = 𝐶 ↔ (𝐴 = 𝐶𝐵 = 𝐵))
32orbi2i 909 . . 3 (((𝐴 = 𝐵𝐵 = 𝐶) ∨ 𝐴 = 𝐶) ↔ ((𝐴 = 𝐵𝐵 = 𝐶) ∨ (𝐴 = 𝐶𝐵 = 𝐵)))
43a1i 11 . 2 (((𝐴𝑈𝐵𝑉𝐶𝑋) ∧ 𝐴𝐵) → (((𝐴 = 𝐵𝐵 = 𝐶) ∨ 𝐴 = 𝐶) ↔ ((𝐴 = 𝐵𝐵 = 𝐶) ∨ (𝐴 = 𝐶𝐵 = 𝐵))))
5 neneq 3022 . . . . 5 (𝐴𝐵 → ¬ 𝐴 = 𝐵)
65adantl 484 . . . 4 (((𝐴𝑈𝐵𝑉𝐶𝑋) ∧ 𝐴𝐵) → ¬ 𝐴 = 𝐵)
76intnanrd 492 . . 3 (((𝐴𝑈𝐵𝑉𝐶𝑋) ∧ 𝐴𝐵) → ¬ (𝐴 = 𝐵𝐵 = 𝐶))
8 biorf 933 . . 3 (¬ (𝐴 = 𝐵𝐵 = 𝐶) → (𝐴 = 𝐶 ↔ ((𝐴 = 𝐵𝐵 = 𝐶) ∨ 𝐴 = 𝐶)))
97, 8syl 17 . 2 (((𝐴𝑈𝐵𝑉𝐶𝑋) ∧ 𝐴𝐵) → (𝐴 = 𝐶 ↔ ((𝐴 = 𝐵𝐵 = 𝐶) ∨ 𝐴 = 𝐶)))
10 3simpa 1144 . . . . 5 ((𝐴𝑈𝐵𝑉𝐶𝑋) → (𝐴𝑈𝐵𝑉))
11 3simpc 1146 . . . . 5 ((𝐴𝑈𝐵𝑉𝐶𝑋) → (𝐵𝑉𝐶𝑋))
1210, 11jca 514 . . . 4 ((𝐴𝑈𝐵𝑉𝐶𝑋) → ((𝐴𝑈𝐵𝑉) ∧ (𝐵𝑉𝐶𝑋)))
1312adantr 483 . . 3 (((𝐴𝑈𝐵𝑉𝐶𝑋) ∧ 𝐴𝐵) → ((𝐴𝑈𝐵𝑉) ∧ (𝐵𝑉𝐶𝑋)))
14 preq12bg 4784 . . 3 (((𝐴𝑈𝐵𝑉) ∧ (𝐵𝑉𝐶𝑋)) → ({𝐴, 𝐵} = {𝐵, 𝐶} ↔ ((𝐴 = 𝐵𝐵 = 𝐶) ∨ (𝐴 = 𝐶𝐵 = 𝐵))))
1513, 14syl 17 . 2 (((𝐴𝑈𝐵𝑉𝐶𝑋) ∧ 𝐴𝐵) → ({𝐴, 𝐵} = {𝐵, 𝐶} ↔ ((𝐴 = 𝐵𝐵 = 𝐶) ∨ (𝐴 = 𝐶𝐵 = 𝐵))))
164, 9, 153bitr4d 313 1 (((𝐴𝑈𝐵𝑉𝐶𝑋) ∧ 𝐴𝐵) → (𝐴 = 𝐶 ↔ {𝐴, 𝐵} = {𝐵, 𝐶}))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 208  wa 398  wo 843  w3a 1083   = wceq 1537  wcel 2114  wne 3016  {cpr 4569
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 2793
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 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-v 3496  df-un 3941  df-sn 4568  df-pr 4570
This theorem is referenced by:  pr1nebg  4788
  Copyright terms: Public domain W3C validator