| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > diftpsn3 | Structured version Visualization version GIF version | ||
| Description: Removal of a singleton from an unordered triple. (Contributed by Alexander van der Vekens, 5-Oct-2017.) (Proof shortened by JJ, 23-Jul-2021.) |
| Ref | Expression |
|---|---|
| diftpsn3 | ⊢ ((𝐴 ≠ 𝐶 ∧ 𝐵 ≠ 𝐶) → ({𝐴, 𝐵, 𝐶} ∖ {𝐶}) = {𝐴, 𝐵}) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | disjprsn 4670 | . . . . 5 ⊢ ((𝐴 ≠ 𝐶 ∧ 𝐵 ≠ 𝐶) → ({𝐴, 𝐵} ∩ {𝐶}) = ∅) | |
| 2 | disj3 4405 | . . . . 5 ⊢ (({𝐴, 𝐵} ∩ {𝐶}) = ∅ ↔ {𝐴, 𝐵} = ({𝐴, 𝐵} ∖ {𝐶})) | |
| 3 | 1, 2 | sylib 220 | . . . 4 ⊢ ((𝐴 ≠ 𝐶 ∧ 𝐵 ≠ 𝐶) → {𝐴, 𝐵} = ({𝐴, 𝐵} ∖ {𝐶})) |
| 4 | 3 | eqcomd 2767 | . . 3 ⊢ ((𝐴 ≠ 𝐶 ∧ 𝐵 ≠ 𝐶) → ({𝐴, 𝐵} ∖ {𝐶}) = {𝐴, 𝐵}) |
| 5 | difid 4326 | . . . 4 ⊢ ({𝐶} ∖ {𝐶}) = ∅ | |
| 6 | 5 | a1i 11 | . . 3 ⊢ ((𝐴 ≠ 𝐶 ∧ 𝐵 ≠ 𝐶) → ({𝐶} ∖ {𝐶}) = ∅) |
| 7 | 4, 6 | uneq12d 4120 | . 2 ⊢ ((𝐴 ≠ 𝐶 ∧ 𝐵 ≠ 𝐶) → (({𝐴, 𝐵} ∖ {𝐶}) ∪ ({𝐶} ∖ {𝐶})) = ({𝐴, 𝐵} ∪ ∅)) |
| 8 | df-tp 4584 | . . . 4 ⊢ {𝐴, 𝐵, 𝐶} = ({𝐴, 𝐵} ∪ {𝐶}) | |
| 9 | 8 | difeq1i 4074 | . . 3 ⊢ ({𝐴, 𝐵, 𝐶} ∖ {𝐶}) = (({𝐴, 𝐵} ∪ {𝐶}) ∖ {𝐶}) |
| 10 | difundir 4241 | . . 3 ⊢ (({𝐴, 𝐵} ∪ {𝐶}) ∖ {𝐶}) = (({𝐴, 𝐵} ∖ {𝐶}) ∪ ({𝐶} ∖ {𝐶})) | |
| 11 | 9, 10 | eqtr2i 2785 | . 2 ⊢ (({𝐴, 𝐵} ∖ {𝐶}) ∪ ({𝐶} ∖ {𝐶})) = ({𝐴, 𝐵, 𝐶} ∖ {𝐶}) |
| 12 | un0 4345 | . 2 ⊢ ({𝐴, 𝐵} ∪ ∅) = {𝐴, 𝐵} | |
| 13 | 7, 11, 12 | 3eqtr3g 2819 | 1 ⊢ ((𝐴 ≠ 𝐶 ∧ 𝐵 ≠ 𝐶) → ({𝐴, 𝐵, 𝐶} ∖ {𝐶}) = {𝐴, 𝐵}) |
| Colors of variables: wff setvar class |
| Syntax hints: → wi 4 ∧ wa 399 = wceq 1559 ≠ wne 2956 ∖ cdif 3899 ∪ cun 3900 ∩ cin 3901 ∅c0 4283 {csn 4579 {cpr 4581 {ctp 4583 |
| This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1814 ax-4 1828 ax-5 1929 ax-6 1986 ax-7 2027 ax-8 2143 ax-9 2151 ax-ext 2733 |
| This theorem depends on definitions: df-bi 209 df-an 400 df-or 859 df-tru 1562 df-fal 1572 df-ex 1799 df-sb 2090 df-clab 2740 df-cleq 2753 df-clel 2836 df-ne 2957 df-ral 3076 df-rab 3414 df-v 3455 df-dif 3905 df-un 3907 df-in 3909 df-ss 3919 df-nul 4284 df-sn 4580 df-pr 4582 df-tp 4584 |
| This theorem is referenced by: f13dfv 7253 ex-chn2 18661 nb3grprlem2 29539 cplgr3v 29593 frgr3v 30434 3vfriswmgr 30437 signswch 34816 signstfvcl 34828 |
| Copyright terms: Public domain | W3C validator |