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

Theorem snopeqop 5420
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 5417 . . . . . 6 ((𝐶 ∈ V ∧ 𝐷 ∈ V) → (⟨𝐶, 𝐷⟩ = {⟨𝐴, 𝐵⟩} ↔ (𝐶 = 𝐷 ∧ ⟨𝐴, 𝐵⟩ = {𝐶})))
32ancoms 459 . . . . 5 ((𝐷 ∈ V ∧ 𝐶 ∈ V) → (⟨𝐶, 𝐷⟩ = {⟨𝐴, 𝐵⟩} ↔ (𝐶 = 𝐷 ∧ ⟨𝐴, 𝐵⟩ = {𝐶})))
41, 3bitrid 282 . . . 4 ((𝐷 ∈ V ∧ 𝐶 ∈ V) → ({⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩ ↔ (𝐶 = 𝐷 ∧ ⟨𝐴, 𝐵⟩ = {𝐶})))
5 snopeqop.a . . . . . . 7 𝐴 ∈ V
6 snopeqop.b . . . . . . 7 𝐵 ∈ V
75, 6opeqsn 5418 . . . . . 6 (⟨𝐴, 𝐵⟩ = {𝐶} ↔ (𝐴 = 𝐵𝐶 = {𝐴}))
87a1i 11 . . . . 5 ((𝐷 ∈ V ∧ 𝐶 ∈ V) → (⟨𝐴, 𝐵⟩ = {𝐶} ↔ (𝐴 = 𝐵𝐶 = {𝐴})))
98anbi2d 629 . . . 4 ((𝐷 ∈ V ∧ 𝐶 ∈ V) → ((𝐶 = 𝐷 ∧ ⟨𝐴, 𝐵⟩ = {𝐶}) ↔ (𝐶 = 𝐷 ∧ (𝐴 = 𝐵𝐶 = {𝐴}))))
10 3anan12 1095 . . . . . 6 ((𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴}) ↔ (𝐶 = 𝐷 ∧ (𝐴 = 𝐵𝐶 = {𝐴})))
1110bicomi 223 . . . . 5 ((𝐶 = 𝐷 ∧ (𝐴 = 𝐵𝐶 = {𝐴})) ↔ (𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴}))
1211a1i 11 . . . 4 ((𝐷 ∈ V ∧ 𝐶 ∈ V) → ((𝐶 = 𝐷 ∧ (𝐴 = 𝐵𝐶 = {𝐴})) ↔ (𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴})))
134, 9, 123bitrd 305 . . 3 ((𝐷 ∈ V ∧ 𝐶 ∈ V) → ({⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩ ↔ (𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴})))
14 opprc2 4829 . . . . . . 7 𝐷 ∈ V → ⟨𝐶, 𝐷⟩ = ∅)
1514eqeq2d 2749 . . . . . 6 𝐷 ∈ V → ({⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩ ↔ {⟨𝐴, 𝐵⟩} = ∅))
16 opex 5379 . . . . . . . 8 𝐴, 𝐵⟩ ∈ V
1716snnz 4712 . . . . . . 7 {⟨𝐴, 𝐵⟩} ≠ ∅
18 eqneqall 2954 . . . . . . 7 ({⟨𝐴, 𝐵⟩} = ∅ → ({⟨𝐴, 𝐵⟩} ≠ ∅ → (𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴})))
1917, 18mpi 20 . . . . . 6 ({⟨𝐴, 𝐵⟩} = ∅ → (𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴}))
2015, 19syl6bi 252 . . . . 5 𝐷 ∈ V → ({⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩ → (𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴})))
2120adantr 481 . . . 4 ((¬ 𝐷 ∈ V ∧ 𝐶 ∈ V) → ({⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩ → (𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴})))
22 eleq1 2826 . . . . . . . . . 10 (𝐷 = 𝐶 → (𝐷 ∈ V ↔ 𝐶 ∈ V))
2322notbid 318 . . . . . . . . 9 (𝐷 = 𝐶 → (¬ 𝐷 ∈ V ↔ ¬ 𝐶 ∈ V))
2423eqcoms 2746 . . . . . . . 8 (𝐶 = 𝐷 → (¬ 𝐷 ∈ V ↔ ¬ 𝐶 ∈ V))
25 pm2.21 123 . . . . . . . 8 𝐶 ∈ V → (𝐶 ∈ V → {⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩))
2624, 25syl6bi 252 . . . . . . 7 (𝐶 = 𝐷 → (¬ 𝐷 ∈ V → (𝐶 ∈ V → {⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩)))
2726impd 411 . . . . . 6 (𝐶 = 𝐷 → ((¬ 𝐷 ∈ V ∧ 𝐶 ∈ V) → {⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩))
28273ad2ant2 1133 . . . . 5 ((𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴}) → ((¬ 𝐷 ∈ V ∧ 𝐶 ∈ V) → {⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩))
2928com12 32 . . . 4 ((¬ 𝐷 ∈ V ∧ 𝐶 ∈ V) → ((𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴}) → {⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩))
3021, 29impbid 211 . . 3 ((¬ 𝐷 ∈ V ∧ 𝐶 ∈ V) → ({⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩ ↔ (𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴})))
3113, 30pm2.61ian 809 . 2 (𝐶 ∈ V → ({⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩ ↔ (𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴})))
32 opprc1 4828 . . . . 5 𝐶 ∈ V → ⟨𝐶, 𝐷⟩ = ∅)
3332eqeq2d 2749 . . . 4 𝐶 ∈ V → ({⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩ ↔ {⟨𝐴, 𝐵⟩} = ∅))
3433, 19syl6bi 252 . . 3 𝐶 ∈ V → ({⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩ → (𝐴 = 𝐵𝐶 = 𝐷𝐶 = {𝐴})))
35 eleq1 2826 . . . . . . 7 (𝐶 = {𝐴} → (𝐶 ∈ V ↔ {𝐴} ∈ V))
3635notbid 318 . . . . . 6 (𝐶 = {𝐴} → (¬ 𝐶 ∈ V ↔ ¬ {𝐴} ∈ V))
37 snex 5354 . . . . . . 7 {𝐴} ∈ V
3837pm2.24i 150 . . . . . 6 (¬ {𝐴} ∈ V → {⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩)
3936, 38syl6bi 252 . . . . 5 (𝐶 = {𝐴} → (¬ 𝐶 ∈ V → {⟨𝐴, 𝐵⟩} = ⟨𝐶, 𝐷⟩))
40393ad2ant3 1134 . . . 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 396  w3a 1086   = wceq 1539  wcel 2106  wne 2943  Vcvv 3432  c0 4256  {csn 4561  cop 4567
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  ax-sep 5223  ax-nul 5230  ax-pr 5352
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-sb 2068  df-clab 2716  df-cleq 2730  df-clel 2816  df-ne 2944  df-v 3434  df-dif 3890  df-un 3892  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568
This theorem is referenced by:  snopeqopsnid  5423  funopsn  7020
  Copyright terms: Public domain W3C validator