| Metamath Proof Explorer |
< Previous
Next >
Related theorems GIF version |
| Description: Define class difference, also called relative complement. Definition 5.12 of [TakeutiZaring] p. 20. Several notations are used in the literature; we chose the ∖ convention used in Definition 5.3 of [Eisenberg] p. 67 instead of the more common minus sign to reserve the latter for later use in, e.g., arithmetic. We will use the terminology "A excludes B" to mean A ∖ B. We will use "B is removed from A" to mean A ∖ {B} i.e. the removal of an element or equivalently the exclusion of a singleton. |
| Ref | Expression |
|---|---|
| df-dif | ⊢ (A ∖ B) = {x∣(x ∈ A ⋀ ¬ x ∈ B)} |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | cA | . . 3 class A | |
| 2 | cB | . . 3 class B | |
| 3 | 1, 2 | cdif 2041 | . 2 class (A ∖ B) |
| 4 | vx | . . . . . 6 set x | |
| 5 | 4 | cv 954 | . . . . 5 class x |
| 6 | 5, 1 | wcel 957 | . . . 4 wff x ∈ A |
| 7 | 5, 2 | wcel 957 | . . . . 5 wff x ∈ B |
| 8 | 7 | wn 2 | . . . 4 wff ¬ x ∈ B |
| 9 | 6, 8 | wa 223 | . . 3 wff (x ∈ A ⋀ ¬ x ∈ B) |
| 10 | 9, 4 | cab 1462 | . 2 class {x∣(x ∈ A ⋀ ¬ x ∈ B)} |
| 11 | 3, 10 | wceq 955 | 1 wff (A ∖ B) = {x∣(x ∈ A ⋀ ¬ x ∈ B)} |
| Colors of variables: wff set class |
| This definition is referenced by: dfdif2 2053 eldif 2054 difeq1 2150 difeq2 2151 difeqri 2157 difeqri2 10402 |