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

Theorem preqsnd 4825
Description: Equivalence for a pair equal to a singleton, deduction form. (Contributed by Thierry Arnoux, 27-Dec-2016.) (Revised by AV, 13-Jun-2022.) (Revised by AV, 16-Aug-2024.)
Hypotheses
Ref Expression
preqsnd.1 (𝜑𝐴𝑉)
preqsnd.2 (𝜑𝐵𝑊)
Assertion
Ref Expression
preqsnd (𝜑 → ({𝐴, 𝐵} = {𝐶} ↔ (𝐴 = 𝐶𝐵 = 𝐶)))

Proof of Theorem preqsnd
StepHypRef Expression
1 preqsnd.1 . . . 4 (𝜑𝐴𝑉)
21adantl 486 . . 3 ((𝐶 ∈ V ∧ 𝜑) → 𝐴𝑉)
3 preqsnd.2 . . . 4 (𝜑𝐵𝑊)
43adantl 486 . . 3 ((𝐶 ∈ V ∧ 𝜑) → 𝐵𝑊)
5 simpl 487 . . 3 ((𝐶 ∈ V ∧ 𝜑) → 𝐶 ∈ V)
6 dfsn2 4604 . . . . 5 {𝐶} = {𝐶, 𝐶}
76eqeq2i 2782 . . . 4 ({𝐴, 𝐵} = {𝐶} ↔ {𝐴, 𝐵} = {𝐶, 𝐶})
8 preq12bg 4819 . . . . 5 (((𝐴𝑉𝐵𝑊) ∧ (𝐶 ∈ V ∧ 𝐶 ∈ V)) → ({𝐴, 𝐵} = {𝐶, 𝐶} ↔ ((𝐴 = 𝐶𝐵 = 𝐶) ∨ (𝐴 = 𝐶𝐵 = 𝐶))))
9 oridm 917 . . . . 5 (((𝐴 = 𝐶𝐵 = 𝐶) ∨ (𝐴 = 𝐶𝐵 = 𝐶)) ↔ (𝐴 = 𝐶𝐵 = 𝐶))
108, 9bitrdi 290 . . . 4 (((𝐴𝑉𝐵𝑊) ∧ (𝐶 ∈ V ∧ 𝐶 ∈ V)) → ({𝐴, 𝐵} = {𝐶, 𝐶} ↔ (𝐴 = 𝐶𝐵 = 𝐶)))
117, 10bitrid 286 . . 3 (((𝐴𝑉𝐵𝑊) ∧ (𝐶 ∈ V ∧ 𝐶 ∈ V)) → ({𝐴, 𝐵} = {𝐶} ↔ (𝐴 = 𝐶𝐵 = 𝐶)))
122, 4, 5, 5, 11syl22anc 851 . 2 ((𝐶 ∈ V ∧ 𝜑) → ({𝐴, 𝐵} = {𝐶} ↔ (𝐴 = 𝐶𝐵 = 𝐶)))
13 snprc 4685 . . . . . 6 𝐶 ∈ V ↔ {𝐶} = ∅)
1413birani 508 . . . . 5 ((¬ 𝐶 ∈ V ∧ 𝜑) → {𝐶} = ∅)
1514eqeq2d 2780 . . . 4 ((¬ 𝐶 ∈ V ∧ 𝜑) → ({𝐴, 𝐵} = {𝐶} ↔ {𝐴, 𝐵} = ∅))
16 prnzg 4746 . . . . . . 7 (𝐴𝑉 → {𝐴, 𝐵} ≠ ∅)
17 eqneqall 2975 . . . . . . 7 ({𝐴, 𝐵} = ∅ → ({𝐴, 𝐵} ≠ ∅ → (𝐴 = 𝐶𝐵 = 𝐶)))
1816, 17syl5com 32 . . . . . 6 (𝐴𝑉 → ({𝐴, 𝐵} = ∅ → (𝐴 = 𝐶𝐵 = 𝐶)))
191, 18syl 18 . . . . 5 (𝜑 → ({𝐴, 𝐵} = ∅ → (𝐴 = 𝐶𝐵 = 𝐶)))
2019adantl 486 . . . 4 ((¬ 𝐶 ∈ V ∧ 𝜑) → ({𝐴, 𝐵} = ∅ → (𝐴 = 𝐶𝐵 = 𝐶)))
2115, 20sylbid 243 . . 3 ((¬ 𝐶 ∈ V ∧ 𝜑) → ({𝐴, 𝐵} = {𝐶} → (𝐴 = 𝐶𝐵 = 𝐶)))
22 eleq1 2857 . . . . . . . . . 10 (𝐶 = 𝐴 → (𝐶 ∈ V ↔ 𝐴 ∈ V))
2322eqcoms 2777 . . . . . . . . 9 (𝐴 = 𝐶 → (𝐶 ∈ V ↔ 𝐴 ∈ V))
2423notbid 321 . . . . . . . 8 (𝐴 = 𝐶 → (¬ 𝐶 ∈ V ↔ ¬ 𝐴 ∈ V))
25 pm2.24 125 . . . . . . . . 9 (𝐴 ∈ V → (¬ 𝐴 ∈ V → (𝐵 = 𝐶 → {𝐴, 𝐵} = {𝐶})))
26 elex 3484 . . . . . . . . 9 (𝐴𝑉𝐴 ∈ V)
2725, 26syl11 34 . . . . . . . 8 𝐴 ∈ V → (𝐴𝑉 → (𝐵 = 𝐶 → {𝐴, 𝐵} = {𝐶})))
2824, 27biimtrdi 256 . . . . . . 7 (𝐴 = 𝐶 → (¬ 𝐶 ∈ V → (𝐴𝑉 → (𝐵 = 𝐶 → {𝐴, 𝐵} = {𝐶}))))
2928com13 89 . . . . . 6 (𝐴𝑉 → (¬ 𝐶 ∈ V → (𝐴 = 𝐶 → (𝐵 = 𝐶 → {𝐴, 𝐵} = {𝐶}))))
301, 29syl 18 . . . . 5 (𝜑 → (¬ 𝐶 ∈ V → (𝐴 = 𝐶 → (𝐵 = 𝐶 → {𝐴, 𝐵} = {𝐶}))))
3130impcom 412 . . . 4 ((¬ 𝐶 ∈ V ∧ 𝜑) → (𝐴 = 𝐶 → (𝐵 = 𝐶 → {𝐴, 𝐵} = {𝐶})))
3231impd 415 . . 3 ((¬ 𝐶 ∈ V ∧ 𝜑) → ((𝐴 = 𝐶𝐵 = 𝐶) → {𝐴, 𝐵} = {𝐶}))
3321, 32impbid 215 . 2 ((¬ 𝐶 ∈ V ∧ 𝜑) → ({𝐴, 𝐵} = {𝐶} ↔ (𝐴 = 𝐶𝐵 = 𝐶)))
3412, 33pm2.61ian 823 1 (𝜑 → ({𝐴, 𝐵} = {𝐶} ↔ (𝐴 = 𝐶𝐵 = 𝐶)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209  wa 400  wo 860   = wceq 1567  wcel 2149  wne 2964  Vcvv 3463  c0 4294  {csn 4591  {cpr 4593
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1822  ax-4 1836  ax-5 1937  ax-6 1994  ax-7 2035  ax-8 2151  ax-9 2159  ax-ext 2741
This theorem depends on definitions:  df-bi 210  df-an 401  df-or 861  df-3an 1103  df-tru 1570  df-fal 1580  df-ex 1807  df-sb 2098  df-clab 2748  df-cleq 2761  df-clel 2844  df-ne 2965  df-v 3465  df-dif 3916  df-un 3918  df-nul 4295  df-sn 4592  df-pr 4594
This theorem is referenced by:  prnesn  4826  preqsn  4828  opeqsng  5484  1loopgrnb0  29789  disjdifprg  32857
  Copyright terms: Public domain W3C validator