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

Theorem tppreqb 4698
Description: An unordered triple is an unordered pair if and only if one of its elements is a proper class or is identical with one of the another elements. (Contributed by Alexander van der Vekens, 15-Jan-2018.)
Assertion
Ref Expression
tppreqb (¬ (𝐶 ∈ V ∧ 𝐶𝐴𝐶𝐵) ↔ {𝐴, 𝐵, 𝐶} = {𝐴, 𝐵})

Proof of Theorem tppreqb
StepHypRef Expression
1 3ianor 1104 . . . 4 (¬ (𝐶 ∈ V ∧ 𝐶𝐴𝐶𝐵) ↔ (¬ 𝐶 ∈ V ∨ ¬ 𝐶𝐴 ∨ ¬ 𝐶𝐵))
2 df-3or 1085 . . . 4 ((¬ 𝐶 ∈ V ∨ ¬ 𝐶𝐴 ∨ ¬ 𝐶𝐵) ↔ ((¬ 𝐶 ∈ V ∨ ¬ 𝐶𝐴) ∨ ¬ 𝐶𝐵))
31, 2bitri 278 . . 3 (¬ (𝐶 ∈ V ∧ 𝐶𝐴𝐶𝐵) ↔ ((¬ 𝐶 ∈ V ∨ ¬ 𝐶𝐴) ∨ ¬ 𝐶𝐵))
4 orass 919 . . . . 5 ((((¬ 𝐶 ∈ V ∨ ¬ 𝐶𝐴) ∨ ¬ 𝐶𝐵) ∨ ¬ 𝐶 ∈ V) ↔ ((¬ 𝐶 ∈ V ∨ ¬ 𝐶𝐴) ∨ (¬ 𝐶𝐵 ∨ ¬ 𝐶 ∈ V)))
5 ianor 979 . . . . . . . 8 (¬ (𝐶 ∈ V ∧ 𝐶𝐴) ↔ (¬ 𝐶 ∈ V ∨ ¬ 𝐶𝐴))
6 tpprceq3 4697 . . . . . . . 8 (¬ (𝐶 ∈ V ∧ 𝐶𝐴) → {𝐵, 𝐴, 𝐶} = {𝐵, 𝐴})
75, 6sylbir 238 . . . . . . 7 ((¬ 𝐶 ∈ V ∨ ¬ 𝐶𝐴) → {𝐵, 𝐴, 𝐶} = {𝐵, 𝐴})
8 tpcoma 4646 . . . . . . 7 {𝐵, 𝐴, 𝐶} = {𝐴, 𝐵, 𝐶}
9 prcom 4628 . . . . . . 7 {𝐵, 𝐴} = {𝐴, 𝐵}
107, 8, 93eqtr3g 2856 . . . . . 6 ((¬ 𝐶 ∈ V ∨ ¬ 𝐶𝐴) → {𝐴, 𝐵, 𝐶} = {𝐴, 𝐵})
11 orcom 867 . . . . . . . 8 ((¬ 𝐶𝐵 ∨ ¬ 𝐶 ∈ V) ↔ (¬ 𝐶 ∈ V ∨ ¬ 𝐶𝐵))
12 ianor 979 . . . . . . . 8 (¬ (𝐶 ∈ V ∧ 𝐶𝐵) ↔ (¬ 𝐶 ∈ V ∨ ¬ 𝐶𝐵))
1311, 12bitr4i 281 . . . . . . 7 ((¬ 𝐶𝐵 ∨ ¬ 𝐶 ∈ V) ↔ ¬ (𝐶 ∈ V ∧ 𝐶𝐵))
14 tpprceq3 4697 . . . . . . 7 (¬ (𝐶 ∈ V ∧ 𝐶𝐵) → {𝐴, 𝐵, 𝐶} = {𝐴, 𝐵})
1513, 14sylbi 220 . . . . . 6 ((¬ 𝐶𝐵 ∨ ¬ 𝐶 ∈ V) → {𝐴, 𝐵, 𝐶} = {𝐴, 𝐵})
1610, 15jaoi 854 . . . . 5 (((¬ 𝐶 ∈ V ∨ ¬ 𝐶𝐴) ∨ (¬ 𝐶𝐵 ∨ ¬ 𝐶 ∈ V)) → {𝐴, 𝐵, 𝐶} = {𝐴, 𝐵})
174, 16sylbi 220 . . . 4 ((((¬ 𝐶 ∈ V ∨ ¬ 𝐶𝐴) ∨ ¬ 𝐶𝐵) ∨ ¬ 𝐶 ∈ V) → {𝐴, 𝐵, 𝐶} = {𝐴, 𝐵})
1817orcs 872 . . 3 (((¬ 𝐶 ∈ V ∨ ¬ 𝐶𝐴) ∨ ¬ 𝐶𝐵) → {𝐴, 𝐵, 𝐶} = {𝐴, 𝐵})
193, 18sylbi 220 . 2 (¬ (𝐶 ∈ V ∧ 𝐶𝐴𝐶𝐵) → {𝐴, 𝐵, 𝐶} = {𝐴, 𝐵})
20 df-tp 4530 . . . 4 {𝐴, 𝐵, 𝐶} = ({𝐴, 𝐵} ∪ {𝐶})
2120eqeq1i 2803 . . 3 ({𝐴, 𝐵, 𝐶} = {𝐴, 𝐵} ↔ ({𝐴, 𝐵} ∪ {𝐶}) = {𝐴, 𝐵})
22 ssequn2 4110 . . . 4 ({𝐶} ⊆ {𝐴, 𝐵} ↔ ({𝐴, 𝐵} ∪ {𝐶}) = {𝐴, 𝐵})
23 snssg 4678 . . . . . . 7 (𝐶 ∈ V → (𝐶 ∈ {𝐴, 𝐵} ↔ {𝐶} ⊆ {𝐴, 𝐵}))
24 elpri 4547 . . . . . . . 8 (𝐶 ∈ {𝐴, 𝐵} → (𝐶 = 𝐴𝐶 = 𝐵))
25 nne 2991 . . . . . . . . . 10 𝐶𝐴𝐶 = 𝐴)
26 3mix2 1328 . . . . . . . . . 10 𝐶𝐴 → (¬ 𝐶 ∈ V ∨ ¬ 𝐶𝐴 ∨ ¬ 𝐶𝐵))
2725, 26sylbir 238 . . . . . . . . 9 (𝐶 = 𝐴 → (¬ 𝐶 ∈ V ∨ ¬ 𝐶𝐴 ∨ ¬ 𝐶𝐵))
28 nne 2991 . . . . . . . . . 10 𝐶𝐵𝐶 = 𝐵)
29 3mix3 1329 . . . . . . . . . 10 𝐶𝐵 → (¬ 𝐶 ∈ V ∨ ¬ 𝐶𝐴 ∨ ¬ 𝐶𝐵))
3028, 29sylbir 238 . . . . . . . . 9 (𝐶 = 𝐵 → (¬ 𝐶 ∈ V ∨ ¬ 𝐶𝐴 ∨ ¬ 𝐶𝐵))
3127, 30jaoi 854 . . . . . . . 8 ((𝐶 = 𝐴𝐶 = 𝐵) → (¬ 𝐶 ∈ V ∨ ¬ 𝐶𝐴 ∨ ¬ 𝐶𝐵))
3224, 31syl 17 . . . . . . 7 (𝐶 ∈ {𝐴, 𝐵} → (¬ 𝐶 ∈ V ∨ ¬ 𝐶𝐴 ∨ ¬ 𝐶𝐵))
3323, 32syl6bir 257 . . . . . 6 (𝐶 ∈ V → ({𝐶} ⊆ {𝐴, 𝐵} → (¬ 𝐶 ∈ V ∨ ¬ 𝐶𝐴 ∨ ¬ 𝐶𝐵)))
34 3mix1 1327 . . . . . . 7 𝐶 ∈ V → (¬ 𝐶 ∈ V ∨ ¬ 𝐶𝐴 ∨ ¬ 𝐶𝐵))
3534a1d 25 . . . . . 6 𝐶 ∈ V → ({𝐶} ⊆ {𝐴, 𝐵} → (¬ 𝐶 ∈ V ∨ ¬ 𝐶𝐴 ∨ ¬ 𝐶𝐵)))
3633, 35pm2.61i 185 . . . . 5 ({𝐶} ⊆ {𝐴, 𝐵} → (¬ 𝐶 ∈ V ∨ ¬ 𝐶𝐴 ∨ ¬ 𝐶𝐵))
3736, 1sylibr 237 . . . 4 ({𝐶} ⊆ {𝐴, 𝐵} → ¬ (𝐶 ∈ V ∧ 𝐶𝐴𝐶𝐵))
3822, 37sylbir 238 . . 3 (({𝐴, 𝐵} ∪ {𝐶}) = {𝐴, 𝐵} → ¬ (𝐶 ∈ V ∧ 𝐶𝐴𝐶𝐵))
3921, 38sylbi 220 . 2 ({𝐴, 𝐵, 𝐶} = {𝐴, 𝐵} → ¬ (𝐶 ∈ V ∧ 𝐶𝐴𝐶𝐵))
4019, 39impbii 212 1 (¬ (𝐶 ∈ V ∧ 𝐶𝐴𝐶𝐵) ↔ {𝐴, 𝐵, 𝐶} = {𝐴, 𝐵})
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209  wa 399  wo 844  w3o 1083  w3a 1084   = wceq 1538  wcel 2111  wne 2987  Vcvv 3441  cun 3879  wss 3881  {csn 4525  {cpr 4527  {ctp 4529
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-12 2175  ax-ext 2770
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-clab 2777  df-cleq 2791  df-clel 2870  df-ne 2988  df-v 3443  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-nul 4244  df-sn 4526  df-pr 4528  df-tp 4530
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator