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

Theorem snopeqop 5414
Description: Equivalence for an ordered pair equal to a singleton of an ordered pair. (Contributed by AV, 18-Sep-2020.) (Revised by AV, 15-Jul-2022.) (Avoid depending on this detail.)
Hypotheses
Ref Expression
snopeqop.a 𝐴 ∈ V
snopeqop.b 𝐵 ∈ V
Assertion
Ref Expression
snopeqop ({⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩ ↔ (𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴}))

Proof of Theorem snopeqop
StepHypRef Expression
1 eqcom 2745 . . . . 5 ({⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩ ↔ ⟨𝐶, 𝐷⟩ = {⟨𝐴, 𝐵⟩})
2 opeqsng 5411 . . . . . 6 ((𝐶 ∈ V ∧ 𝐷 ∈ V) → (⟨𝐶, 𝐷⟩ = {⟨𝐴, 𝐵⟩} ↔ (𝐶 = 𝐷 ∧ ⟨𝐴, 𝐵⟩ = {𝐶})))
32ancoms 458 . . . . 5 ((𝐷 ∈ V ∧ 𝐶 ∈ V) → (⟨𝐶, 𝐷⟩ = {⟨𝐴, 𝐵⟩} ↔ (𝐶 = 𝐷 ∧ ⟨𝐴, 𝐵⟩ = {𝐶})))
41, 3syl5bb 282 . . . 4 ((𝐷 ∈ V ∧ 𝐶 ∈ V) → ({⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩ ↔ (𝐶 = 𝐷 ∧ ⟨𝐴, 𝐵⟩ = {𝐶})))
5 snopeqop.a . . . . . . 7 𝐴 ∈ V
6 snopeqop.b . . . . . . 7 𝐵 ∈ V
75, 6opeqsn 5412 . . . . . 6 (⟨𝐴, 𝐵⟩ = {𝐶} ↔ (𝐴 = 𝐵𝐶 = {𝐴}))
87a1i 11 . . . . 5 ((𝐷 ∈ V ∧ 𝐶 ∈ V) → (⟨𝐴, 𝐵⟩ = {𝐶} ↔ (𝐴 = 𝐵𝐶 = {𝐴})))
98anbi2d 628 . . . 4 ((𝐷 ∈ V ∧ 𝐶 ∈ V) → ((𝐶 = 𝐷 ∧ ⟨𝐴, 𝐵⟩ = {𝐶}) ↔ (𝐶 = 𝐷 ∧ (𝐴 = 𝐵𝐶 = {𝐴}))))
10 3anan12 1094 . . . . . 6 ((𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴}) ↔ (𝐶 = 𝐷 ∧ (𝐴 = 𝐵𝐶 = {𝐴})))
1110bicomi 223 . . . . 5 ((𝐶 = 𝐷 ∧ (𝐴 = 𝐵𝐶 = {𝐴})) ↔ (𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴}))
1211a1i 11 . . . 4 ((𝐷 ∈ V ∧ 𝐶 ∈ V) → ((𝐶 = 𝐷 ∧ (𝐴 = 𝐵𝐶 = {𝐴})) ↔ (𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴})))
134, 9, 123bitrd 304 . . 3 ((𝐷 ∈ V ∧ 𝐶 ∈ V) → ({⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩ ↔ (𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴})))
14 opprc2 4826 . . . . . . 7 𝐷 ∈ V → ⟨𝐶, 𝐷⟩ = ∅)
1514eqeq2d 2749 . . . . . 6 𝐷 ∈ V → ({⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩ ↔ {⟨𝐴, 𝐵⟩} = ∅))
16 opex 5373 . . . . . . . 8 𝐴, 𝐵⟩ ∈ V
1716snnz 4709 . . . . . . 7 {⟨𝐴, 𝐵⟩} ≠ ∅
18 eqneqall 2953 . . . . . . 7 ({⟨𝐴, 𝐵⟩} = ∅ → ({⟨𝐴, 𝐵⟩} ≠ ∅ → (𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴})))
1917, 18mpi 20 . . . . . 6 ({⟨𝐴, 𝐵⟩} = ∅ → (𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴}))
2015, 19syl6bi 252 . . . . 5 𝐷 ∈ V → ({⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩ → (𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴})))
2120adantr 480 . . . 4 ((¬ 𝐷 ∈ V ∧ 𝐶 ∈ V) → ({⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩ → (𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴})))
22 eleq1 2826 . . . . . . . . . 10 (𝐷 = 𝐶 → (𝐷 ∈ V ↔ 𝐶 ∈ V))
2322notbid 317 . . . . . . . . 9 (𝐷 = 𝐶 → (¬ 𝐷 ∈ V ↔ ¬ 𝐶 ∈ V))
2423eqcoms 2746 . . . . . . . 8 (𝐶 = 𝐷 → (¬ 𝐷 ∈ V ↔ ¬ 𝐶 ∈ V))
25 pm2.21 123 . . . . . . . 8 𝐶 ∈ V → (𝐶 ∈ V → {⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩))
2624, 25syl6bi 252 . . . . . . 7 (𝐶 = 𝐷 → (¬ 𝐷 ∈ V → (𝐶 ∈ V → {⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩)))
2726impd 410 . . . . . 6 (𝐶 = 𝐷 → ((¬ 𝐷 ∈ V ∧ 𝐶 ∈ V) → {⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩))
28273ad2ant2 1132 . . . . 5 ((𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴}) → ((¬ 𝐷 ∈ V ∧ 𝐶 ∈ V) → {⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩))
2928com12 32 . . . 4 ((¬ 𝐷 ∈ V ∧ 𝐶 ∈ V) → ((𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴}) → {⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩))
3021, 29impbid 211 . . 3 ((¬ 𝐷 ∈ V ∧ 𝐶 ∈ V) → ({⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩ ↔ (𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴})))
3113, 30pm2.61ian 808 . 2 (𝐶 ∈ V → ({⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩ ↔ (𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴})))
32 opprc1 4825 . . . . 5 𝐶 ∈ V → ⟨𝐶, 𝐷⟩ = ∅)
3332eqeq2d 2749 . . . 4 𝐶 ∈ V → ({⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩ ↔ {⟨𝐴, 𝐵⟩} = ∅))
3433, 19syl6bi 252 . . 3 𝐶 ∈ V → ({⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩ → (𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴})))
35 eleq1 2826 . . . . . . 7 (𝐶 = {𝐴} → (𝐶 ∈ V ↔ {𝐴} ∈ V))
3635notbid 317 . . . . . 6 (𝐶 = {𝐴} → (¬ 𝐶 ∈ V ↔ ¬ {𝐴} ∈ V))
37 snex 5349 . . . . . . 7 {𝐴} ∈ V
3837pm2.24i 150 . . . . . 6 (¬ {𝐴} ∈ V → {⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩)
3936, 38syl6bi 252 . . . . 5 (𝐶 = {𝐴} → (¬ 𝐶 ∈ V → {⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩))
40393ad2ant3 1133 . . . 4 ((𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴}) → (¬ 𝐶 ∈ V → {⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩))
4140com12 32 . . 3 𝐶 ∈ V → ((𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴}) → {⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩))
4234, 41impbid 211 . 2 𝐶 ∈ V → ({⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩ ↔ (𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴})))
4331, 42pm2.61i 182 1 ({⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩ ↔ (𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴}))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  w3a 1085   = wceq 1539  wcel 2108  wne 2942  Vcvv 3422  c0 4253  {csn 4558  cop 4564
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  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-ne 2943  df-v 3424  df-dif 3886  df-un 3888  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565
This theorem is referenced by:  snopeqopsnid  5417  funopsn  7002
  Copyright terms: Public domain W3C validator