| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > dfif6 | Structured version Visualization version GIF version | ||
| Description: An alternate definition of the conditional operator df-if 4526 as a simple class abstraction. (Contributed by Mario Carneiro, 8-Sep-2013.) |
| Ref | Expression |
|---|---|
| dfif6 | ⊢ if(𝜑, 𝐴, 𝐵) = ({𝑥 ∈ 𝐴 ∣ 𝜑} ∪ {𝑥 ∈ 𝐵 ∣ ¬ 𝜑}) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | eleq1w 2824 | . . . 4 ⊢ (𝑥 = 𝑦 → (𝑥 ∈ 𝐴 ↔ 𝑦 ∈ 𝐴)) | |
| 2 | 1 | anbi1d 631 | . . 3 ⊢ (𝑥 = 𝑦 → ((𝑥 ∈ 𝐴 ∧ 𝜑) ↔ (𝑦 ∈ 𝐴 ∧ 𝜑))) |
| 3 | eleq1w 2824 | . . . 4 ⊢ (𝑥 = 𝑦 → (𝑥 ∈ 𝐵 ↔ 𝑦 ∈ 𝐵)) | |
| 4 | 3 | anbi1d 631 | . . 3 ⊢ (𝑥 = 𝑦 → ((𝑥 ∈ 𝐵 ∧ ¬ 𝜑) ↔ (𝑦 ∈ 𝐵 ∧ ¬ 𝜑))) |
| 5 | 2, 4 | unabw 4307 | . 2 ⊢ ({𝑥 ∣ (𝑥 ∈ 𝐴 ∧ 𝜑)} ∪ {𝑥 ∣ (𝑥 ∈ 𝐵 ∧ ¬ 𝜑)}) = {𝑦 ∣ ((𝑦 ∈ 𝐴 ∧ 𝜑) ∨ (𝑦 ∈ 𝐵 ∧ ¬ 𝜑))} |
| 6 | df-rab 3437 | . . 3 ⊢ {𝑥 ∈ 𝐴 ∣ 𝜑} = {𝑥 ∣ (𝑥 ∈ 𝐴 ∧ 𝜑)} | |
| 7 | df-rab 3437 | . . 3 ⊢ {𝑥 ∈ 𝐵 ∣ ¬ 𝜑} = {𝑥 ∣ (𝑥 ∈ 𝐵 ∧ ¬ 𝜑)} | |
| 8 | 6, 7 | uneq12i 4166 | . 2 ⊢ ({𝑥 ∈ 𝐴 ∣ 𝜑} ∪ {𝑥 ∈ 𝐵 ∣ ¬ 𝜑}) = ({𝑥 ∣ (𝑥 ∈ 𝐴 ∧ 𝜑)} ∪ {𝑥 ∣ (𝑥 ∈ 𝐵 ∧ ¬ 𝜑)}) |
| 9 | df-if 4526 | . 2 ⊢ if(𝜑, 𝐴, 𝐵) = {𝑦 ∣ ((𝑦 ∈ 𝐴 ∧ 𝜑) ∨ (𝑦 ∈ 𝐵 ∧ ¬ 𝜑))} | |
| 10 | 5, 8, 9 | 3eqtr4ri 2776 | 1 ⊢ if(𝜑, 𝐴, 𝐵) = ({𝑥 ∈ 𝐴 ∣ 𝜑} ∪ {𝑥 ∈ 𝐵 ∣ ¬ 𝜑}) |
| Colors of variables: wff setvar class |
| Syntax hints: ¬ wn 3 ∧ wa 395 ∨ wo 848 = wceq 1540 ∈ wcel 2108 {cab 2714 {crab 3436 ∪ cun 3949 ifcif 4525 |
| This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1795 ax-4 1809 ax-5 1910 ax-6 1967 ax-7 2007 ax-8 2110 ax-9 2118 ax-ext 2708 |
| This theorem depends on definitions: df-bi 207 df-an 396 df-or 849 df-tru 1543 df-ex 1780 df-sb 2065 df-clab 2715 df-cleq 2729 df-clel 2816 df-rab 3437 df-v 3482 df-un 3956 df-if 4526 |
| This theorem is referenced by: ifeq1 4529 ifeq2 4530 dfif3 4540 |
| Copyright terms: Public domain | W3C validator |