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

Theorem preqsnd 4789
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 482 . . 3 ((𝐶 ∈ V ∧ 𝜑) → 𝐴𝑉)
3 preqsnd.2 . . . 4 (𝜑𝐵𝑊)
43adantl 482 . . 3 ((𝐶 ∈ V ∧ 𝜑) → 𝐵𝑊)
5 simpl 483 . . 3 ((𝐶 ∈ V ∧ 𝜑) → 𝐶 ∈ V)
6 dfsn2 4574 . . . . 5 {𝐶} = {𝐶, 𝐶}
76eqeq2i 2751 . . . 4 ({𝐴, 𝐵} = {𝐶} ↔ {𝐴, 𝐵} = {𝐶, 𝐶})
8 preq12bg 4784 . . . . 5 (((𝐴𝑉𝐵𝑊) ∧ (𝐶 ∈ V ∧ 𝐶 ∈ V)) → ({𝐴, 𝐵} = {𝐶, 𝐶} ↔ ((𝐴 = 𝐶𝐵 = 𝐶) ∨ (𝐴 = 𝐶𝐵 = 𝐶))))
9 oridm 902 . . . . 5 (((𝐴 = 𝐶𝐵 = 𝐶) ∨ (𝐴 = 𝐶𝐵 = 𝐶)) ↔ (𝐴 = 𝐶𝐵 = 𝐶))
108, 9bitrdi 287 . . . 4 (((𝐴𝑉𝐵𝑊) ∧ (𝐶 ∈ V ∧ 𝐶 ∈ V)) → ({𝐴, 𝐵} = {𝐶, 𝐶} ↔ (𝐴 = 𝐶𝐵 = 𝐶)))
117, 10bitrid 282 . . 3 (((𝐴𝑉𝐵𝑊) ∧ (𝐶 ∈ V ∧ 𝐶 ∈ V)) → ({𝐴, 𝐵} = {𝐶} ↔ (𝐴 = 𝐶𝐵 = 𝐶)))
122, 4, 5, 5, 11syl22anc 836 . 2 ((𝐶 ∈ V ∧ 𝜑) → ({𝐴, 𝐵} = {𝐶} ↔ (𝐴 = 𝐶𝐵 = 𝐶)))
13 snprc 4653 . . . . . . 7 𝐶 ∈ V ↔ {𝐶} = ∅)
1413biimpi 215 . . . . . 6 𝐶 ∈ V → {𝐶} = ∅)
1514adantr 481 . . . . 5 ((¬ 𝐶 ∈ V ∧ 𝜑) → {𝐶} = ∅)
1615eqeq2d 2749 . . . 4 ((¬ 𝐶 ∈ V ∧ 𝜑) → ({𝐴, 𝐵} = {𝐶} ↔ {𝐴, 𝐵} = ∅))
17 prnzg 4714 . . . . . . 7 (𝐴𝑉 → {𝐴, 𝐵} ≠ ∅)
18 eqneqall 2954 . . . . . . 7 ({𝐴, 𝐵} = ∅ → ({𝐴, 𝐵} ≠ ∅ → (𝐴 = 𝐶𝐵 = 𝐶)))
1917, 18syl5com 31 . . . . . 6 (𝐴𝑉 → ({𝐴, 𝐵} = ∅ → (𝐴 = 𝐶𝐵 = 𝐶)))
201, 19syl 17 . . . . 5 (𝜑 → ({𝐴, 𝐵} = ∅ → (𝐴 = 𝐶𝐵 = 𝐶)))
2120adantl 482 . . . 4 ((¬ 𝐶 ∈ V ∧ 𝜑) → ({𝐴, 𝐵} = ∅ → (𝐴 = 𝐶𝐵 = 𝐶)))
2216, 21sylbid 239 . . 3 ((¬ 𝐶 ∈ V ∧ 𝜑) → ({𝐴, 𝐵} = {𝐶} → (𝐴 = 𝐶𝐵 = 𝐶)))
23 eleq1 2826 . . . . . . . . . 10 (𝐶 = 𝐴 → (𝐶 ∈ V ↔ 𝐴 ∈ V))
2423eqcoms 2746 . . . . . . . . 9 (𝐴 = 𝐶 → (𝐶 ∈ V ↔ 𝐴 ∈ V))
2524notbid 318 . . . . . . . 8 (𝐴 = 𝐶 → (¬ 𝐶 ∈ V ↔ ¬ 𝐴 ∈ V))
26 pm2.24 124 . . . . . . . . 9 (𝐴 ∈ V → (¬ 𝐴 ∈ V → (𝐵 = 𝐶 → {𝐴, 𝐵} = {𝐶})))
27 elex 3450 . . . . . . . . 9 (𝐴𝑉𝐴 ∈ V)
2826, 27syl11 33 . . . . . . . 8 𝐴 ∈ V → (𝐴𝑉 → (𝐵 = 𝐶 → {𝐴, 𝐵} = {𝐶})))
2925, 28syl6bi 252 . . . . . . 7 (𝐴 = 𝐶 → (¬ 𝐶 ∈ V → (𝐴𝑉 → (𝐵 = 𝐶 → {𝐴, 𝐵} = {𝐶}))))
3029com13 88 . . . . . 6 (𝐴𝑉 → (¬ 𝐶 ∈ V → (𝐴 = 𝐶 → (𝐵 = 𝐶 → {𝐴, 𝐵} = {𝐶}))))
311, 30syl 17 . . . . 5 (𝜑 → (¬ 𝐶 ∈ V → (𝐴 = 𝐶 → (𝐵 = 𝐶 → {𝐴, 𝐵} = {𝐶}))))
3231impcom 408 . . . 4 ((¬ 𝐶 ∈ V ∧ 𝜑) → (𝐴 = 𝐶 → (𝐵 = 𝐶 → {𝐴, 𝐵} = {𝐶})))
3332impd 411 . . 3 ((¬ 𝐶 ∈ V ∧ 𝜑) → ((𝐴 = 𝐶𝐵 = 𝐶) → {𝐴, 𝐵} = {𝐶}))
3422, 33impbid 211 . 2 ((¬ 𝐶 ∈ V ∧ 𝜑) → ({𝐴, 𝐵} = {𝐶} ↔ (𝐴 = 𝐶𝐵 = 𝐶)))
3512, 34pm2.61ian 809 1 (𝜑 → ({𝐴, 𝐵} = {𝐶} ↔ (𝐴 = 𝐶𝐵 = 𝐶)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396  wo 844   = wceq 1539  wcel 2106  wne 2943  Vcvv 3432  c0 4256  {csn 4561  {cpr 4563
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
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-sn 4562  df-pr 4564
This theorem is referenced by:  prnesn  4790  preqsn  4792  opeqsng  5417  1loopgrnb0  27869  disjdifprg  30914
  Copyright terms: Public domain W3C validator