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

Theorem preleqg 9616
Description: Equality of two unordered pairs when one member of each pair contains the other member. Closed form of preleq 9617. (Contributed by AV, 15-Jun-2022.)
Assertion
Ref Expression
preleqg (((𝐴 ∈ 𝐵 ∧ 𝐵 ∈ 𝑉 ∧ 𝐶 ∈ 𝐷) ∧ {𝐴, 𝐵} = {𝐶, 𝐷}) → (𝐴 = 𝐶 ∧ 𝐵 = 𝐷))

Proof of Theorem preleqg
StepHypRef Expression
1 elneq 9595 . . . . 5 (𝐴 ∈ 𝐵 → 𝐴 ≠ 𝐵)
213ad2ant1 1151 . . . 4 ((𝐴 ∈ 𝐵 ∧ 𝐵 ∈ 𝑉 ∧ 𝐶 ∈ 𝐷) → 𝐴 ≠ 𝐵)
3 preq12nebg 4822 . . . 4 ((𝐴 ∈ 𝐵 ∧ 𝐵 ∈ 𝑉 ∧ 𝐴 ≠ 𝐵) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶 ∧ 𝐵 = 𝐷) ∨ (𝐴 = 𝐷 ∧ 𝐵 = 𝐶))))
42, 3syld3an3 1436 . . 3 ((𝐴 ∈ 𝐵 ∧ 𝐵 ∈ 𝑉 ∧ 𝐶 ∈ 𝐷) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶 ∧ 𝐵 = 𝐷) ∨ (𝐴 = 𝐷 ∧ 𝐵 = 𝐶))))
5 eleq12 2850 . . . . . . . . . 10 ((𝐴 = 𝐷 ∧ 𝐵 = 𝐶) → (𝐴 ∈ 𝐵 ↔ 𝐷 ∈ 𝐶))
6 elnotel 9611 . . . . . . . . . . 11 (𝐷 ∈ 𝐶 → ¬ 𝐶 ∈ 𝐷)
76pm2.21d 122 . . . . . . . . . 10 (𝐷 ∈ 𝐶 → (𝐶 ∈ 𝐷 → (𝐴 = 𝐶 ∧ 𝐵 = 𝐷)))
85, 7biimtrdi 256 . . . . . . . . 9 ((𝐴 = 𝐷 ∧ 𝐵 = 𝐶) → (𝐴 ∈ 𝐵 → (𝐶 ∈ 𝐷 → (𝐴 = 𝐶 ∧ 𝐵 = 𝐷))))
98com3l 90 . . . . . . . 8 (𝐴 ∈ 𝐵 → (𝐶 ∈ 𝐷 → ((𝐴 = 𝐷 ∧ 𝐵 = 𝐶) → (𝐴 = 𝐶 ∧ 𝐵 = 𝐷))))
109a1d 26 . . . . . . 7 (𝐴 ∈ 𝐵 → (𝐵 ∈ 𝑉 → (𝐶 ∈ 𝐷 → ((𝐴 = 𝐷 ∧ 𝐵 = 𝐶) → (𝐴 = 𝐶 ∧ 𝐵 = 𝐷)))))
11103imp 1128 . . . . . 6 ((𝐴 ∈ 𝐵 ∧ 𝐵 ∈ 𝑉 ∧ 𝐶 ∈ 𝐷) → ((𝐴 = 𝐷 ∧ 𝐵 = 𝐶) → (𝐴 = 𝐶 ∧ 𝐵 = 𝐷)))
1211com12 33 . . . . 5 ((𝐴 = 𝐷 ∧ 𝐵 = 𝐶) → ((𝐴 ∈ 𝐵 ∧ 𝐵 ∈ 𝑉 ∧ 𝐶 ∈ 𝐷) → (𝐴 = 𝐶 ∧ 𝐵 = 𝐷)))
1312jao1i 872 . . . 4 (((𝐴 = 𝐶 ∧ 𝐵 = 𝐷) ∨ (𝐴 = 𝐷 ∧ 𝐵 = 𝐶)) → ((𝐴 ∈ 𝐵 ∧ 𝐵 ∈ 𝑉 ∧ 𝐶 ∈ 𝐷) → (𝐴 = 𝐶 ∧ 𝐵 = 𝐷)))
1413com12 33 . . 3 ((𝐴 ∈ 𝐵 ∧ 𝐵 ∈ 𝑉 ∧ 𝐶 ∈ 𝐷) → (((𝐴 = 𝐶 ∧ 𝐵 = 𝐷) ∨ (𝐴 = 𝐷 ∧ 𝐵 = 𝐶)) → (𝐴 = 𝐶 ∧ 𝐵 = 𝐷)))
154, 14sylbid 243 . 2 ((𝐴 ∈ 𝐵 ∧ 𝐵 ∈ 𝑉 ∧ 𝐶 ∈ 𝐷) → ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 = 𝐶 ∧ 𝐵 = 𝐷)))
1615imp 412 1 (((𝐴 ∈ 𝐵 ∧ 𝐵 ∈ 𝑉 ∧ 𝐶 ∈ 𝐷) ∧ {𝐴, 𝐵} = {𝐶, 𝐷}) → (𝐴 = 𝐶 ∧ 𝐵 = 𝐷))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   ∨ wo 861   ∧ w3a 1103   = wceq 1569   ∈ wcel 2144   ≠ wne 2955  {cpr 4585
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-ext 2732  ax-sep 5248  ax-pr 5390  ax-reg 9586
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-sb 2099  df-clab 2739  df-cleq 2752  df-clel 2835  df-ne 2956  df-ral 3077  df-rex 3087  df-rab 3413  df-v 3452  df-ss 3896  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-pw 4558  df-sn 4584  df-pr 4586  df-op 4590  df-br 5103  df-opab 5167  df-eprel 5550  df-fr 5603
This theorem is used by:  preleq  9617
  Copyright terms: Public domain W3C validator