| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > difab | Structured version Visualization version GIF version | ||
| Description: Difference of two class abstractions. (Contributed by NM, 23-Oct-2004.) (Proof shortened by Andrew Salmon, 26-Jun-2011.) |
| Ref | Expression |
|---|---|
| difab | ⊢ ({𝑥 ∣ 𝜑} ∖ {𝑥 ∣ 𝜓}) = {𝑥 ∣ (𝜑 ∧ ¬ 𝜓)} |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | df-clab 2710 | . . 3 ⊢ (𝑦 ∈ {𝑥 ∣ (𝜑 ∧ ¬ 𝜓)} ↔ [𝑦 / 𝑥](𝜑 ∧ ¬ 𝜓)) | |
| 2 | sban 2083 | . . 3 ⊢ ([𝑦 / 𝑥](𝜑 ∧ ¬ 𝜓) ↔ ([𝑦 / 𝑥]𝜑 ∧ [𝑦 / 𝑥] ¬ 𝜓)) | |
| 3 | df-clab 2710 | . . . . 5 ⊢ (𝑦 ∈ {𝑥 ∣ 𝜑} ↔ [𝑦 / 𝑥]𝜑) | |
| 4 | 3 | bicomi 224 | . . . 4 ⊢ ([𝑦 / 𝑥]𝜑 ↔ 𝑦 ∈ {𝑥 ∣ 𝜑}) |
| 5 | sbn 2282 | . . . . 5 ⊢ ([𝑦 / 𝑥] ¬ 𝜓 ↔ ¬ [𝑦 / 𝑥]𝜓) | |
| 6 | df-clab 2710 | . . . . 5 ⊢ (𝑦 ∈ {𝑥 ∣ 𝜓} ↔ [𝑦 / 𝑥]𝜓) | |
| 7 | 5, 6 | xchbinxr 335 | . . . 4 ⊢ ([𝑦 / 𝑥] ¬ 𝜓 ↔ ¬ 𝑦 ∈ {𝑥 ∣ 𝜓}) |
| 8 | 4, 7 | anbi12i 628 | . . 3 ⊢ (([𝑦 / 𝑥]𝜑 ∧ [𝑦 / 𝑥] ¬ 𝜓) ↔ (𝑦 ∈ {𝑥 ∣ 𝜑} ∧ ¬ 𝑦 ∈ {𝑥 ∣ 𝜓})) |
| 9 | 1, 2, 8 | 3bitrri 298 | . 2 ⊢ ((𝑦 ∈ {𝑥 ∣ 𝜑} ∧ ¬ 𝑦 ∈ {𝑥 ∣ 𝜓}) ↔ 𝑦 ∈ {𝑥 ∣ (𝜑 ∧ ¬ 𝜓)}) |
| 10 | 9 | difeqri 4078 | 1 ⊢ ({𝑥 ∣ 𝜑} ∖ {𝑥 ∣ 𝜓}) = {𝑥 ∣ (𝜑 ∧ ¬ 𝜓)} |
| Colors of variables: wff setvar class |
| Syntax hints: ¬ wn 3 ∧ wa 395 = wceq 1541 [wsb 2067 ∈ wcel 2111 {cab 2709 ∖ cdif 3899 |
| This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1796 ax-4 1810 ax-5 1911 ax-6 1968 ax-7 2009 ax-8 2113 ax-9 2121 ax-10 2144 ax-12 2180 ax-ext 2703 |
| This theorem depends on definitions: df-bi 207 df-an 396 df-tru 1544 df-ex 1781 df-nf 1785 df-sb 2068 df-clab 2710 df-cleq 2723 df-clel 2806 df-v 3438 df-dif 3905 |
| This theorem is referenced by: notab 4264 difrab 4268 notrab 4272 |
| Copyright terms: Public domain | W3C validator |