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

Theorem ssunpr 4365
Description: Possible values for a set sandwiched between another set and it plus a singleton. (Contributed by Mario Carneiro, 2-Jul-2016.)
Assertion
Ref Expression
ssunpr ((𝐵𝐴𝐴 ⊆ (𝐵 ∪ {𝐶, 𝐷})) ↔ ((𝐴 = 𝐵𝐴 = (𝐵 ∪ {𝐶})) ∨ (𝐴 = (𝐵 ∪ {𝐷}) ∨ 𝐴 = (𝐵 ∪ {𝐶, 𝐷}))))

Proof of Theorem ssunpr
StepHypRef Expression
1 df-pr 4180 . . . . . 6 {𝐶, 𝐷} = ({𝐶} ∪ {𝐷})
21uneq2i 3764 . . . . 5 (𝐵 ∪ {𝐶, 𝐷}) = (𝐵 ∪ ({𝐶} ∪ {𝐷}))
3 unass 3770 . . . . 5 ((𝐵 ∪ {𝐶}) ∪ {𝐷}) = (𝐵 ∪ ({𝐶} ∪ {𝐷}))
42, 3eqtr4i 2647 . . . 4 (𝐵 ∪ {𝐶, 𝐷}) = ((𝐵 ∪ {𝐶}) ∪ {𝐷})
54sseq2i 3630 . . 3 (𝐴 ⊆ (𝐵 ∪ {𝐶, 𝐷}) ↔ 𝐴 ⊆ ((𝐵 ∪ {𝐶}) ∪ {𝐷}))
65anbi2i 730 . 2 ((𝐵𝐴𝐴 ⊆ (𝐵 ∪ {𝐶, 𝐷})) ↔ (𝐵𝐴𝐴 ⊆ ((𝐵 ∪ {𝐶}) ∪ {𝐷})))
7 ssunsn2 4359 . 2 ((𝐵𝐴𝐴 ⊆ ((𝐵 ∪ {𝐶}) ∪ {𝐷})) ↔ ((𝐵𝐴𝐴 ⊆ (𝐵 ∪ {𝐶})) ∨ ((𝐵 ∪ {𝐷}) ⊆ 𝐴𝐴 ⊆ ((𝐵 ∪ {𝐶}) ∪ {𝐷}))))
8 ssunsn 4360 . . 3 ((𝐵𝐴𝐴 ⊆ (𝐵 ∪ {𝐶})) ↔ (𝐴 = 𝐵𝐴 = (𝐵 ∪ {𝐶})))
9 un23 3772 . . . . . 6 ((𝐵 ∪ {𝐶}) ∪ {𝐷}) = ((𝐵 ∪ {𝐷}) ∪ {𝐶})
109sseq2i 3630 . . . . 5 (𝐴 ⊆ ((𝐵 ∪ {𝐶}) ∪ {𝐷}) ↔ 𝐴 ⊆ ((𝐵 ∪ {𝐷}) ∪ {𝐶}))
1110anbi2i 730 . . . 4 (((𝐵 ∪ {𝐷}) ⊆ 𝐴𝐴 ⊆ ((𝐵 ∪ {𝐶}) ∪ {𝐷})) ↔ ((𝐵 ∪ {𝐷}) ⊆ 𝐴𝐴 ⊆ ((𝐵 ∪ {𝐷}) ∪ {𝐶})))
12 ssunsn 4360 . . . 4 (((𝐵 ∪ {𝐷}) ⊆ 𝐴𝐴 ⊆ ((𝐵 ∪ {𝐷}) ∪ {𝐶})) ↔ (𝐴 = (𝐵 ∪ {𝐷}) ∨ 𝐴 = ((𝐵 ∪ {𝐷}) ∪ {𝐶})))
134, 9eqtr2i 2645 . . . . . 6 ((𝐵 ∪ {𝐷}) ∪ {𝐶}) = (𝐵 ∪ {𝐶, 𝐷})
1413eqeq2i 2634 . . . . 5 (𝐴 = ((𝐵 ∪ {𝐷}) ∪ {𝐶}) ↔ 𝐴 = (𝐵 ∪ {𝐶, 𝐷}))
1514orbi2i 541 . . . 4 ((𝐴 = (𝐵 ∪ {𝐷}) ∨ 𝐴 = ((𝐵 ∪ {𝐷}) ∪ {𝐶})) ↔ (𝐴 = (𝐵 ∪ {𝐷}) ∨ 𝐴 = (𝐵 ∪ {𝐶, 𝐷})))
1611, 12, 153bitri 286 . . 3 (((𝐵 ∪ {𝐷}) ⊆ 𝐴𝐴 ⊆ ((𝐵 ∪ {𝐶}) ∪ {𝐷})) ↔ (𝐴 = (𝐵 ∪ {𝐷}) ∨ 𝐴 = (𝐵 ∪ {𝐶, 𝐷})))
178, 16orbi12i 543 . 2 (((𝐵𝐴𝐴 ⊆ (𝐵 ∪ {𝐶})) ∨ ((𝐵 ∪ {𝐷}) ⊆ 𝐴𝐴 ⊆ ((𝐵 ∪ {𝐶}) ∪ {𝐷}))) ↔ ((𝐴 = 𝐵𝐴 = (𝐵 ∪ {𝐶})) ∨ (𝐴 = (𝐵 ∪ {𝐷}) ∨ 𝐴 = (𝐵 ∪ {𝐶, 𝐷}))))
186, 7, 173bitri 286 1 ((𝐵𝐴𝐴 ⊆ (𝐵 ∪ {𝐶, 𝐷})) ↔ ((𝐴 = 𝐵𝐴 = (𝐵 ∪ {𝐶})) ∨ (𝐴 = (𝐵 ∪ {𝐷}) ∨ 𝐴 = (𝐵 ∪ {𝐶, 𝐷}))))
Colors of variables: wff setvar class
Syntax hints:  wb 196  wo 383  wa 384   = wceq 1483  cun 3572  wss 3574  {csn 4177  {cpr 4179
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3an 1039  df-tru 1486  df-ex 1705  df-nf 1710  df-sb 1881  df-clab 2609  df-cleq 2615  df-clel 2618  df-nfc 2753  df-ral 2917  df-v 3202  df-dif 3577  df-un 3579  df-in 3581  df-ss 3588  df-nul 3916  df-sn 4178  df-pr 4180
This theorem is referenced by:  sspr  4366  sstp  4367
  Copyright terms: Public domain W3C validator